You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.6 KiB
51 lines
1.6 KiB
import Core, { Config, CoreApiConfig, SendOption, SendSuccess, SendFail, TraceType } from "../../core/src";
|
|
declare type WebApiConfig = {
|
|
injectTraceHeader?: TraceType;
|
|
injectTraceUrls?: Array<string | RegExp>;
|
|
injectTraceIgnoreUrls?: Array<string | RegExp>;
|
|
ignoreHackReg?: RegExp;
|
|
usePerformanceTiming?: boolean;
|
|
} & CoreApiConfig;
|
|
export interface WebConfig extends Config {
|
|
asyncPlugin?: boolean;
|
|
reportApiSpeed?: boolean | {
|
|
urlHandler: (url: string, payload: object) => string;
|
|
};
|
|
reportImmediately?: boolean;
|
|
offlineLog?: boolean;
|
|
dbConfig?: any;
|
|
offlineLogExp?: number;
|
|
getNetworkType?: Function;
|
|
getNetworkStatus?: Function;
|
|
reportBridgeSpeed?: boolean;
|
|
h5Bridge?: Object;
|
|
h5BridgeFunc?: string[];
|
|
/** 当前页面是否是单页应用 */
|
|
spa?: boolean;
|
|
api?: WebApiConfig;
|
|
}
|
|
export default class Aegis extends Core {
|
|
static sessionID: string;
|
|
sendNow: boolean;
|
|
isReportReady: boolean;
|
|
reportRequestQueue: {
|
|
options: SendOption;
|
|
success?: SendSuccess;
|
|
fail?: SendFail;
|
|
}[];
|
|
firstScreenInfo: {
|
|
element: any;
|
|
timing: number;
|
|
[key: string]: any;
|
|
};
|
|
constructor(config: WebConfig);
|
|
getBean(filter?: string[]): string;
|
|
private getCurrentPageUrl;
|
|
ready(): void;
|
|
request(_options: SendOption, _success?: SendSuccess, _fail?: SendFail): void;
|
|
private $request;
|
|
speedLogPipeline: import("../../core/src").Pipeline<any, any>;
|
|
publishPluginsLogs(): void;
|
|
uploadLogs(params?: any, conds?: any): void;
|
|
}
|
|
export {};
|
|
|