@alipay/ams-checkout 0.0.1783663570-dev.6 → 0.0.1783663570-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ams-checkout.js +3 -3
- package/dist/ams-checkout.min.js +1 -1
- package/dist/ams-checkout.min.js.map +1 -1
- package/esm/config/index.js +1 -1
- package/esm/core/component/element/modernElementController/adapter.js +16 -10
- package/esm/core/component/element/modernElementController/index.d.ts +5 -0
- package/esm/core/component/element/modernElementController/index.js +193 -81
- package/esm/modern/index.js +1 -1
- package/esm/modern/tools.js +1 -1
- package/esm/tsdoc-metadata.json +1 -1
- package/esm/util/logger.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +46 -1001
- package/types.untrimmed.d.ts +51 -1003
package/types.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { CompatibleTrackerFull } from '@antintl/intl-tracker/common';
|
|
2
|
+
|
|
1
3
|
declare interface ActionForm {
|
|
2
4
|
/**
|
|
3
5
|
* @description action form type
|
|
@@ -5,8 +7,6 @@ declare interface ActionForm {
|
|
|
5
7
|
actionFormType?: string;
|
|
6
8
|
}
|
|
7
9
|
|
|
8
|
-
declare type AddBehavior = (behavior: BehaviorData) => void;
|
|
9
|
-
|
|
10
10
|
declare interface Address {
|
|
11
11
|
/**
|
|
12
12
|
* @description 2-letter courtry/region code, refer to ISO 3166
|
|
@@ -312,6 +312,9 @@ export declare const AntomSDKErrorCodes: {
|
|
|
312
312
|
readonly NOT_SUPPORT_SUBMIT: "NOT_SUPPORT_SUBMIT";
|
|
313
313
|
readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
|
|
314
314
|
readonly UPDATE_CONFIG_NOT_READY: "UPDATE_CONFIG_NOT_READY";
|
|
315
|
+
/**
|
|
316
|
+
* @description 是否需要更换 session 重试
|
|
317
|
+
*/
|
|
315
318
|
readonly INVALID_MODAL_URL: "INVALID_MODAL_URL";
|
|
316
319
|
readonly LOAD_DEBUGGER_FAILED: "LOAD_DEBUGGER_FAILED";
|
|
317
320
|
readonly API_MISS_PARAMS: "API_MISS_PARAMS";
|
|
@@ -331,20 +334,6 @@ export declare type AntomTheme = 'default' | 'agateGreen' | 'night' | 'nostalgic
|
|
|
331
334
|
|
|
332
335
|
export declare type AntomVariables = 'content-primary' | 'content-secondary' | 'content-tertiary' | 'content-quaternary' | 'background-primary' | 'background-secondary' | 'background-disable' | 'background-transparency' | 'border-primary' | 'border-secondary' | 'border-disable' | 'action-normal' | 'action-hover' | 'action-disable' | 'action-secondary' | 'state-failure' | 'state-warning' | 'state-success' | 'state-info' | 'state-marketing' | 'state-conventional' | 'radius-backup' | 'radius-module' | 'radius-component' | 'radius-button' | 'wrapper-padding' | 'stroke-default' | 'stroke-active' | 'fontFamily';
|
|
333
336
|
|
|
334
|
-
declare interface APICallbackOptions {
|
|
335
|
-
requestType: 'fetch' | 'xhr';
|
|
336
|
-
time: number;
|
|
337
|
-
url: string;
|
|
338
|
-
isSuccess?: boolean;
|
|
339
|
-
error?: unknown;
|
|
340
|
-
status?: number;
|
|
341
|
-
type?: string;
|
|
342
|
-
method?: string;
|
|
343
|
-
traceId?: string;
|
|
344
|
-
errorCode?: string | number;
|
|
345
|
-
errorMsg?: string;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
337
|
/**
|
|
349
338
|
* @description SDK UI组件的外观配置。
|
|
350
339
|
* 控制主题、CSS变量、布局规则及显示设置。
|
|
@@ -822,13 +811,16 @@ declare abstract class BaseElement<Config extends BaseElementConfig = BaseElemen
|
|
|
822
811
|
/* Excluded from this release type: bridge */
|
|
823
812
|
/* Excluded from this release type: hooks */
|
|
824
813
|
/* Excluded from this release type: iframe */
|
|
825
|
-
status:
|
|
814
|
+
status: ElementStatus;
|
|
826
815
|
/* Excluded from this release type: cachedSend */
|
|
827
816
|
/** Reuses the pending reply for concurrent submit calls. */
|
|
828
817
|
private submitPromise?;
|
|
829
818
|
constructor(name: string, config: WithAppURL<Config>);
|
|
830
819
|
/* Excluded from this release type: submit */
|
|
831
820
|
/* Excluded from this release type: setup */
|
|
821
|
+
/** Races merchant setup against destruction to stop the mount flow immediately. */
|
|
822
|
+
private _setup;
|
|
823
|
+
/* Excluded from this release type: is */
|
|
832
824
|
/**
|
|
833
825
|
* @param {HTMLElement} container
|
|
834
826
|
*/
|
|
@@ -969,26 +961,6 @@ declare interface BaseFactoryConfig extends BaseConfig {
|
|
|
969
961
|
/* Excluded from this release type: trackerCode */
|
|
970
962
|
}
|
|
971
963
|
|
|
972
|
-
declare type BaseInfo = BrowserInfo & DeviceInfo & NetworkInfo & LocationInfo & EnvInfo & OSInfo & {
|
|
973
|
-
sdk?: string;
|
|
974
|
-
marmotId?: string;
|
|
975
|
-
compatibleAppId?: string;
|
|
976
|
-
deviceId?: string;
|
|
977
|
-
userId?: string;
|
|
978
|
-
programVer?: string;
|
|
979
|
-
language?: string;
|
|
980
|
-
timezone?: string;
|
|
981
|
-
bizType?: string;
|
|
982
|
-
productId?: string;
|
|
983
|
-
clientId?: string;
|
|
984
|
-
visibleState?: 'visible' | 'hidden' | 'app-visible' | 'page-visible' | 'app-hidden' | 'page-hidden';
|
|
985
|
-
};
|
|
986
|
-
|
|
987
|
-
declare interface BaseInfoPlugin {
|
|
988
|
-
getAppName?(): Promise<string | undefined>;
|
|
989
|
-
getDefaultExtraInfo?(): Promise<BaseInfo>;
|
|
990
|
-
}
|
|
991
|
-
|
|
992
964
|
/**
|
|
993
965
|
* @description 主元素,可以独立提交
|
|
994
966
|
*/
|
|
@@ -1048,68 +1020,6 @@ declare interface BaseOpenModalConfig {
|
|
|
1048
1020
|
modalId?: string;
|
|
1049
1021
|
}
|
|
1050
1022
|
|
|
1051
|
-
declare type BehaviorConfig = {
|
|
1052
|
-
enableConsole?: boolean;
|
|
1053
|
-
};
|
|
1054
|
-
|
|
1055
|
-
declare interface BehaviorData {
|
|
1056
|
-
type: string;
|
|
1057
|
-
data: {
|
|
1058
|
-
msg?: string | null;
|
|
1059
|
-
from?: string;
|
|
1060
|
-
to?: string;
|
|
1061
|
-
};
|
|
1062
|
-
timestamp: number;
|
|
1063
|
-
times?: number;
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
declare type BlankMonitorConfig = {
|
|
1067
|
-
selector?: string | string[];
|
|
1068
|
-
delay?: number | (() => number);
|
|
1069
|
-
persistent?: boolean;
|
|
1070
|
-
};
|
|
1071
|
-
|
|
1072
|
-
declare interface BrowserInfo {
|
|
1073
|
-
title?: string;
|
|
1074
|
-
fullUrl?: string;
|
|
1075
|
-
url?: string;
|
|
1076
|
-
referrer?: string;
|
|
1077
|
-
domCnt?: number;
|
|
1078
|
-
delay?: number;
|
|
1079
|
-
scrollTop?: number;
|
|
1080
|
-
lastAction?: string;
|
|
1081
|
-
sessionId?: string;
|
|
1082
|
-
containerPageSessionId?: string;
|
|
1083
|
-
containerSessionId?: string;
|
|
1084
|
-
ua?: string;
|
|
1085
|
-
browser?: string;
|
|
1086
|
-
cCoreVer?: string;
|
|
1087
|
-
assetsVer?: string;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
declare type C = {
|
|
1091
|
-
c1?: string;
|
|
1092
|
-
c2?: string;
|
|
1093
|
-
c3?: string;
|
|
1094
|
-
c4?: string;
|
|
1095
|
-
c5?: string;
|
|
1096
|
-
c6?: string;
|
|
1097
|
-
c7?: string;
|
|
1098
|
-
c8?: string;
|
|
1099
|
-
c9?: string;
|
|
1100
|
-
c10?: string;
|
|
1101
|
-
c11?: string;
|
|
1102
|
-
c12?: string;
|
|
1103
|
-
c13?: string;
|
|
1104
|
-
c14?: string;
|
|
1105
|
-
c15?: string;
|
|
1106
|
-
c16?: string;
|
|
1107
|
-
c17?: string;
|
|
1108
|
-
c18?: string;
|
|
1109
|
-
c19?: string;
|
|
1110
|
-
c20?: string;
|
|
1111
|
-
};
|
|
1112
|
-
|
|
1113
1023
|
/**
|
|
1114
1024
|
* @description C2P标识
|
|
1115
1025
|
*/
|
|
@@ -2116,68 +2026,7 @@ declare interface ComIpayIexpprodServiceFacadeCommonPromotionInfo {
|
|
|
2116
2026
|
extendInfo?: Record<string, string>;
|
|
2117
2027
|
}
|
|
2118
2028
|
|
|
2119
|
-
declare
|
|
2120
|
-
private mdata;
|
|
2121
|
-
initi(options: OriginTrackerInitOptions & {
|
|
2122
|
-
performance?: boolean;
|
|
2123
|
-
error?: boolean;
|
|
2124
|
-
}): Promise<boolean>;
|
|
2125
|
-
set(options: Record<string, any>): void;
|
|
2126
|
-
protected getDefaultExtraInfo(): Promise<{
|
|
2127
|
-
title?: string | undefined;
|
|
2128
|
-
fullUrl?: string | undefined;
|
|
2129
|
-
url?: string | undefined;
|
|
2130
|
-
referrer?: string | undefined;
|
|
2131
|
-
domCnt?: number | undefined;
|
|
2132
|
-
delay?: number | undefined;
|
|
2133
|
-
scrollTop?: number | undefined;
|
|
2134
|
-
lastAction?: string | undefined;
|
|
2135
|
-
sessionId?: string | undefined;
|
|
2136
|
-
containerPageSessionId?: string | undefined;
|
|
2137
|
-
containerSessionId?: string | undefined;
|
|
2138
|
-
ua?: string | undefined;
|
|
2139
|
-
browser?: string | undefined;
|
|
2140
|
-
cCoreVer?: string | undefined;
|
|
2141
|
-
assetsVer?: string | undefined;
|
|
2142
|
-
device?: string | undefined;
|
|
2143
|
-
deviceType?: string | undefined;
|
|
2144
|
-
deviceBrand?: string | undefined;
|
|
2145
|
-
deviceModel?: string | undefined;
|
|
2146
|
-
screenWidth?: number | undefined;
|
|
2147
|
-
screenHeight?: number | undefined;
|
|
2148
|
-
contentHeight?: number | undefined;
|
|
2149
|
-
pixelRatio?: number | undefined;
|
|
2150
|
-
cClient?: string | undefined;
|
|
2151
|
-
networkType?: string | undefined;
|
|
2152
|
-
isp?: string | undefined;
|
|
2153
|
-
ip?: string | undefined;
|
|
2154
|
-
countryName?: string | undefined;
|
|
2155
|
-
cityName?: string | undefined;
|
|
2156
|
-
provinceName?: string | undefined;
|
|
2157
|
-
area?: string | undefined;
|
|
2158
|
-
env?: Env_2 | undefined;
|
|
2159
|
-
sprintId?: string | undefined;
|
|
2160
|
-
container?: string | undefined;
|
|
2161
|
-
cOfflineVer?: string | undefined;
|
|
2162
|
-
serverIp?: string | undefined;
|
|
2163
|
-
serverEnv?: string | undefined;
|
|
2164
|
-
canaryFlag?: string | undefined;
|
|
2165
|
-
os?: string | undefined;
|
|
2166
|
-
osVer?: string | undefined;
|
|
2167
|
-
sdk?: string | undefined;
|
|
2168
|
-
marmotId?: string | undefined;
|
|
2169
|
-
compatibleAppId?: string | undefined;
|
|
2170
|
-
deviceId?: string | undefined;
|
|
2171
|
-
userId?: string | undefined;
|
|
2172
|
-
programVer?: string | undefined;
|
|
2173
|
-
language?: string | undefined;
|
|
2174
|
-
timezone?: string | undefined;
|
|
2175
|
-
bizType?: string | undefined;
|
|
2176
|
-
productId?: string | undefined;
|
|
2177
|
-
clientId?: string | undefined;
|
|
2178
|
-
visibleState?: "hidden" | "visible" | "app-visible" | "page-visible" | "app-hidden" | "page-hidden" | undefined;
|
|
2179
|
-
}>;
|
|
2180
|
-
}
|
|
2029
|
+
declare type CompatibleTrackerFullOptions = ConstructorParameters<typeof CompatibleTrackerFull>[0];
|
|
2181
2030
|
|
|
2182
2031
|
/**
|
|
2183
2032
|
* @description googlePay createPaymentSession 入参
|
|
@@ -2202,7 +2051,7 @@ export declare interface ConfirmCardSetupOptions {
|
|
|
2202
2051
|
redirect?: 'always' | 'if_required';
|
|
2203
2052
|
}
|
|
2204
2053
|
|
|
2205
|
-
export declare interface ConfirmPaymentOptions extends Omit<ConfirmCardSetupOptions, 'elements'
|
|
2054
|
+
export declare interface ConfirmPaymentOptions extends Omit<ConfirmCardSetupOptions, 'elements'>, PaymentSubmitParams {
|
|
2206
2055
|
sessionData: string;
|
|
2207
2056
|
/**
|
|
2208
2057
|
* @description 传入已挂载的 CVVElement / PaymentElement / Elements 实例,不传则使用无 UI 自动提交模式
|
|
@@ -2346,11 +2195,6 @@ declare interface CustomFontSource {
|
|
|
2346
2195
|
unicodeRange?: string;
|
|
2347
2196
|
}
|
|
2348
2197
|
|
|
2349
|
-
/**
|
|
2350
|
-
* CustomizedPerformanceKey 是给业务使用的自定义指标,共 20 个,页面之间互相独立
|
|
2351
|
-
*/
|
|
2352
|
-
declare type CustomizedPerformanceKey = 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm6' | 'm7' | 'm8' | 'm9' | 'm10' | 'm11' | 'm12' | 'm13' | 'm14' | 'm15' | 'm16' | 'm17' | 'm18' | 'm19' | 'm20';
|
|
2353
|
-
|
|
2354
2198
|
/**
|
|
2355
2199
|
* @public
|
|
2356
2200
|
* @description CVV element app config type
|
|
@@ -3043,18 +2887,6 @@ declare interface DeliveryEstimateInfo {
|
|
|
3043
2887
|
value?: number;
|
|
3044
2888
|
}
|
|
3045
2889
|
|
|
3046
|
-
declare interface DeviceInfo {
|
|
3047
|
-
device?: string;
|
|
3048
|
-
deviceType?: string;
|
|
3049
|
-
deviceBrand?: string;
|
|
3050
|
-
deviceModel?: string;
|
|
3051
|
-
screenWidth?: number;
|
|
3052
|
-
screenHeight?: number;
|
|
3053
|
-
contentHeight?: number;
|
|
3054
|
-
pixelRatio?: number;
|
|
3055
|
-
cClient?: string;
|
|
3056
|
-
}
|
|
3057
|
-
|
|
3058
2890
|
/**
|
|
3059
2891
|
* @description 立减型营销信息
|
|
3060
2892
|
*/
|
|
@@ -3100,29 +2932,6 @@ declare interface DisplayItem {
|
|
|
3100
2932
|
status?: string;
|
|
3101
2933
|
}
|
|
3102
2934
|
|
|
3103
|
-
declare type DMC = {
|
|
3104
|
-
d1?: number | string;
|
|
3105
|
-
d2?: number | string;
|
|
3106
|
-
d3?: number | string;
|
|
3107
|
-
d4?: number | string;
|
|
3108
|
-
d5?: number | string;
|
|
3109
|
-
d6?: number | string;
|
|
3110
|
-
d7?: number | string;
|
|
3111
|
-
d8?: number | string;
|
|
3112
|
-
d9?: number | string;
|
|
3113
|
-
d10?: number | string;
|
|
3114
|
-
d11?: number | string;
|
|
3115
|
-
d12?: number | string;
|
|
3116
|
-
d13?: number | string;
|
|
3117
|
-
d14?: number | string;
|
|
3118
|
-
d15?: number | string;
|
|
3119
|
-
d16?: number | string;
|
|
3120
|
-
d17?: number | string;
|
|
3121
|
-
d18?: number | string;
|
|
3122
|
-
d19?: number | string;
|
|
3123
|
-
d20?: number | string;
|
|
3124
|
-
} & C & M;
|
|
3125
|
-
|
|
3126
2935
|
/**
|
|
3127
2936
|
* @description 元素列表项类型
|
|
3128
2937
|
*/
|
|
@@ -3184,21 +2993,9 @@ declare class Elements extends BaseElements {
|
|
|
3184
2993
|
getElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
|
|
3185
2994
|
}
|
|
3186
2995
|
|
|
3187
|
-
declare type
|
|
3188
|
-
|
|
3189
|
-
declare type Env = 'local' | 'dev' | 'sit' | 'pre' | 'prod';
|
|
2996
|
+
declare type ElementStatus = 'initialized' | 'mounting' | 'mounted' | 'ready' | 'destroyed' | 'unmounted';
|
|
3190
2997
|
|
|
3191
|
-
declare type
|
|
3192
|
-
|
|
3193
|
-
declare interface EnvInfo {
|
|
3194
|
-
env?: Env_2;
|
|
3195
|
-
sprintId?: string;
|
|
3196
|
-
container?: string;
|
|
3197
|
-
cOfflineVer?: string;
|
|
3198
|
-
serverIp?: string;
|
|
3199
|
-
serverEnv?: string;
|
|
3200
|
-
canaryFlag?: string;
|
|
3201
|
-
}
|
|
2998
|
+
declare type ElementTypeEnum = 'TEXT' | 'DIGIT_6' | 'DIGIT_18' | 'DIGIT_32' | 'DIGIT_11' | 'DIGIT_4' | 'DIGIT_10' | 'CHECKBOX' | 'SELECT' | 'SWITCH' | 'PASSWORD_2' | 'DATE_PICKER' | 'CHECKLIST' | 'ADDRESS' | 'DROPBOX' | 'DIGIT_13' | 'GRIDLIST' | 'TENOR_SELECT_KR' | 'STORELIST' | 'GRIDBANKLIST' | 'SUB_QR_CODE' | 'GRIDBANKTOP' | 'PHONE_TEXT_AREA_CODE' | 'SUPPORTIPPBANKLIST';
|
|
3202
2999
|
|
|
3203
3000
|
/**
|
|
3204
3001
|
* @description 错误上下文对象。参考主站<code>ErrorContext</code>实现。
|
|
@@ -3229,9 +3026,11 @@ declare type ErrorSource = ErrorSource_2;
|
|
|
3229
3026
|
|
|
3230
3027
|
declare type ErrorSource_2 = 'SDK_INTERNAL' | 'SDK_USAGE' | 'APP_RUNTIME' | 'SERVER_API' | 'SYSTEM';
|
|
3231
3028
|
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3029
|
+
/**
|
|
3030
|
+
* @description 工具类型,从类型中排除 undefined。
|
|
3031
|
+
* 如果 T 继承 undefined 则返回 never,否则返回 T。
|
|
3032
|
+
*/
|
|
3033
|
+
declare type ExcludeUndefined<T> = T extends undefined ? never : T;
|
|
3235
3034
|
|
|
3236
3035
|
/**
|
|
3237
3036
|
* @description 卡分期计划
|
|
@@ -3439,6 +3238,11 @@ export declare class ExpressElement extends BaseMainElement<ExpressElementConfig
|
|
|
3439
3238
|
/** setup 阶段的 renderData,仅供非 Safari PC Apple Pay host-token 路径读取 paymentRequest。 */
|
|
3440
3239
|
private _renderData;
|
|
3441
3240
|
private _hostSign;
|
|
3241
|
+
/**
|
|
3242
|
+
* 构造时传入的初始金额。cleanAppConfig 已剔除 amount,setup 阶段透传给 iframe(PayPal 按钮首屏需要)
|
|
3243
|
+
* 与 PayPal channelClientId 查询仍需读它;运行时改额只能走 updateConfig。
|
|
3244
|
+
*/
|
|
3245
|
+
private _initialAmount;
|
|
3442
3246
|
/**
|
|
3443
3247
|
* 本地事件处理器(绕过 bridge 的 host→webapp 方向限制)。
|
|
3444
3248
|
* bridge.on 只能监听 iframe 发来的消息;SDK host 主动推送事件给商户时走 _emit → _localHandlers。
|
|
@@ -3665,40 +3469,6 @@ declare type GetI18nQueryParam = string | {
|
|
|
3665
3469
|
defaultMessage?: string;
|
|
3666
3470
|
};
|
|
3667
3471
|
|
|
3668
|
-
declare function getMiniPerformance(): Promise<{
|
|
3669
|
-
performance: {
|
|
3670
|
-
appLaunch: number;
|
|
3671
|
-
jumpAppStartUnix: number;
|
|
3672
|
-
preparePhase: number;
|
|
3673
|
-
appPhase: number;
|
|
3674
|
-
pagePhase: number;
|
|
3675
|
-
appxPhase: number;
|
|
3676
|
-
launchId: string;
|
|
3677
|
-
launchType: 0 | 1;
|
|
3678
|
-
};
|
|
3679
|
-
onLoadTime: number;
|
|
3680
|
-
loadId: string;
|
|
3681
|
-
srcCount: number;
|
|
3682
|
-
webviewComponentSrc?: string | undefined;
|
|
3683
|
-
} | undefined>;
|
|
3684
|
-
|
|
3685
|
-
declare type GetRequesterResult = (data: string, rawData: (ReportData & BaseInfo) | IOptions | IEventOPtions) => Promise<void>;
|
|
3686
|
-
|
|
3687
|
-
declare interface GetWebVitalsInfoResult {
|
|
3688
|
-
fcp: Promise<number | null | undefined>;
|
|
3689
|
-
ttfb: Promise<number | null | undefined>;
|
|
3690
|
-
lcp: Promise<number | null | undefined>;
|
|
3691
|
-
inp: Promise<number | null | undefined>;
|
|
3692
|
-
cls: Promise<number | null | undefined>;
|
|
3693
|
-
}
|
|
3694
|
-
|
|
3695
|
-
declare interface GetWhiteScreenInfoOptions {
|
|
3696
|
-
selector?: string | string[];
|
|
3697
|
-
delay?: number | (() => number);
|
|
3698
|
-
persistent?: boolean;
|
|
3699
|
-
ignoreNotInViewport?: boolean;
|
|
3700
|
-
}
|
|
3701
|
-
|
|
3702
3472
|
declare type GlobalOptions = {
|
|
3703
3473
|
i18n?: SimpleI18n;
|
|
3704
3474
|
i18nPrefix: string;
|
|
@@ -4266,19 +4036,6 @@ declare type HtmlAttributes =
|
|
|
4266
4036
|
| "[writingsuggestions]"
|
|
4267
4037
|
| "[xmlns]";
|
|
4268
4038
|
|
|
4269
|
-
declare interface HTTPErrorCallbackOptions {
|
|
4270
|
-
requestType: 'fetch' | 'xhr';
|
|
4271
|
-
error?: unknown;
|
|
4272
|
-
status?: number;
|
|
4273
|
-
url: string;
|
|
4274
|
-
type?: string;
|
|
4275
|
-
redirected?: 0 | 1;
|
|
4276
|
-
responseUrl?: string;
|
|
4277
|
-
time: number;
|
|
4278
|
-
method?: string;
|
|
4279
|
-
aborted?: 0 | 1;
|
|
4280
|
-
}
|
|
4281
|
-
|
|
4282
4039
|
declare interface IApplePayContactField {
|
|
4283
4040
|
email: string;
|
|
4284
4041
|
name: string;
|
|
@@ -4292,16 +4049,6 @@ declare interface iBaseElementClass {
|
|
|
4292
4049
|
elementType: string;
|
|
4293
4050
|
}
|
|
4294
4051
|
|
|
4295
|
-
declare interface IEventOPtions {
|
|
4296
|
-
eventId: string;
|
|
4297
|
-
param4: Record<string, any>;
|
|
4298
|
-
immediat?: boolean;
|
|
4299
|
-
}
|
|
4300
|
-
|
|
4301
|
-
declare type IMDAP_SERVER = (typeof imdapServers)[number];
|
|
4302
|
-
|
|
4303
|
-
declare const imdapServers: readonly ["https://imdap-sea.alipay.com/loggw/dwcookieLogGet.do", "https://imdap.alipay.com/loggw/dwcookieLogGet.do", "https://imdap-de.alipay.com/loggw/dwcookieLogGet.do"];
|
|
4304
|
-
|
|
4305
4052
|
declare interface InstallmentPlan {
|
|
4306
4053
|
/**
|
|
4307
4054
|
* @description 分期支持的银行
|
|
@@ -4420,38 +4167,23 @@ declare interface InterestFree {
|
|
|
4420
4167
|
bankShortName?: string;
|
|
4421
4168
|
}
|
|
4422
4169
|
|
|
4423
|
-
declare
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
declare interface IntlOpenSDKTrackerInitOptions extends Omit<IntlOpenSDKTrackerInitOptions_2, 'appId'> {
|
|
4170
|
+
declare interface IntlOpenSDKTrackerInitOptions extends Omit<ExcludeUndefined<CompatibleTrackerFullOptions>, 'appId'> {
|
|
4171
|
+
trackId?: string;
|
|
4172
|
+
/**
|
|
4173
|
+
* @description appId,默认值为180020050100012557
|
|
4174
|
+
*/
|
|
4430
4175
|
appId?: string;
|
|
4431
|
-
}
|
|
4432
|
-
|
|
4433
|
-
declare interface IntlOpenSDKTrackerInitOptions_2 extends Omit<OriginTrackerInitOptions, 'bizType' | 'productId'> {
|
|
4434
|
-
whiteScreen?: BlankMonitorConfig | boolean;
|
|
4435
|
-
bizType?: string;
|
|
4436
|
-
productId?: string;
|
|
4437
4176
|
/**
|
|
4438
|
-
*
|
|
4177
|
+
* origin → 完全按入参 key 输出
|
|
4178
|
+
* snake → 强制 snake_case
|
|
4179
|
+
* camel → 强制 camelCase
|
|
4180
|
+
* both → snake + origin 双写
|
|
4439
4181
|
*/
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
declare interface IOptions {
|
|
4447
|
-
actionId: string;
|
|
4448
|
-
spmId: string;
|
|
4449
|
-
param1?: string;
|
|
4450
|
-
param2?: string;
|
|
4451
|
-
param3?: string;
|
|
4452
|
-
param4?: Record<string, any>;
|
|
4453
|
-
param5?: Record<string, any>;
|
|
4454
|
-
stayTime?: number;
|
|
4182
|
+
keyFormat?: 'origin' | 'snake' | 'camel' | 'both';
|
|
4183
|
+
/**
|
|
4184
|
+
* 是否上报idengine_user_path
|
|
4185
|
+
*/
|
|
4186
|
+
userPathAuto?: boolean;
|
|
4455
4187
|
}
|
|
4456
4188
|
|
|
4457
4189
|
declare interface IPaymentSessionMetaData {
|
|
@@ -4548,70 +4280,6 @@ declare interface IPaymentSessionMetaData {
|
|
|
4548
4280
|
needAccountConfirmPage?: boolean;
|
|
4549
4281
|
}
|
|
4550
4282
|
|
|
4551
|
-
declare interface ISystemInfo {
|
|
4552
|
-
readonly pixelRatio: number;
|
|
4553
|
-
readonly windowWidth: number;
|
|
4554
|
-
readonly windowHeight: number;
|
|
4555
|
-
readonly model: string;
|
|
4556
|
-
readonly language: string;
|
|
4557
|
-
readonly version: string;
|
|
4558
|
-
readonly platform: string;
|
|
4559
|
-
readonly system: string;
|
|
4560
|
-
readonly screenWidth: number;
|
|
4561
|
-
readonly screenHeight: number;
|
|
4562
|
-
readonly brand: string;
|
|
4563
|
-
readonly app: string;
|
|
4564
|
-
readonly [propName: string]: any;
|
|
4565
|
-
}
|
|
4566
|
-
|
|
4567
|
-
declare interface ITracert extends IUserTracertProperties {
|
|
4568
|
-
get: (arg0: string) => any;
|
|
4569
|
-
set: (arg0: IUserTracertProperties) => void;
|
|
4570
|
-
loadPlugins: (_plugins: PluginFunction[]) => void;
|
|
4571
|
-
readonly logLevel?: string;
|
|
4572
|
-
readonly logVersion?: string;
|
|
4573
|
-
readonly debug?: boolean;
|
|
4574
|
-
readonly contact?: boolean;
|
|
4575
|
-
readonly pluginReady?: boolean;
|
|
4576
|
-
readonly _plugins?: readonly PluginFunction[];
|
|
4577
|
-
readonly _beforeEvObj?: Record<string, EventFunction[]>;
|
|
4578
|
-
readonly _afterEvObj?: Record<string, EventFunction[]>;
|
|
4579
|
-
readonly _pluginLoadCnt?: number;
|
|
4580
|
-
readonly apiCashList?: any[];
|
|
4581
|
-
}
|
|
4582
|
-
|
|
4583
|
-
declare interface IUserTracertProperties {
|
|
4584
|
-
readonly ready?: boolean;
|
|
4585
|
-
readonly bizType?: string;
|
|
4586
|
-
readonly deviceId?: string;
|
|
4587
|
-
readonly userId?: string;
|
|
4588
|
-
readonly spmAPos?: string;
|
|
4589
|
-
readonly spmBPos?: string;
|
|
4590
|
-
readonly pageId?: string;
|
|
4591
|
-
readonly server?: string;
|
|
4592
|
-
readonly servers?: string[];
|
|
4593
|
-
readonly chInfo?: string;
|
|
4594
|
-
readonly scm?: string;
|
|
4595
|
-
readonly env?: Env;
|
|
4596
|
-
readonly switch?: boolean;
|
|
4597
|
-
readonly sendFrequency?: number;
|
|
4598
|
-
readonly batchCount?: number;
|
|
4599
|
-
readonly referSPM?: string;
|
|
4600
|
-
readonly sessionId?: string;
|
|
4601
|
-
readonly appId?: string;
|
|
4602
|
-
readonly productId?: string;
|
|
4603
|
-
readonly mdata?: Record<string, number | string>;
|
|
4604
|
-
readonly systemInfo?: ISystemInfo;
|
|
4605
|
-
readonly networkType?: string;
|
|
4606
|
-
readonly path?: string;
|
|
4607
|
-
readonly packageVersion?: string;
|
|
4608
|
-
readonly autoExpo?: boolean;
|
|
4609
|
-
}
|
|
4610
|
-
|
|
4611
|
-
declare interface LagPlugin {
|
|
4612
|
-
onFpsLag?: (callback: (durationList: number[]) => void, maxDuration?: number, maxTimeoutCount?: number) => void;
|
|
4613
|
-
}
|
|
4614
|
-
|
|
4615
4283
|
/**
|
|
4616
4284
|
* @description 前端语言模型
|
|
4617
4285
|
*/
|
|
@@ -4664,86 +4332,6 @@ export declare interface LoadAntomConfig extends Omit<BaseFactoryConfig, 'tracke
|
|
|
4664
4332
|
env?: 'sandbox' | 'prod';
|
|
4665
4333
|
}
|
|
4666
4334
|
|
|
4667
|
-
declare interface LocationInfo {
|
|
4668
|
-
countryName?: string;
|
|
4669
|
-
cityName?: string;
|
|
4670
|
-
provinceName?: string;
|
|
4671
|
-
area?: string;
|
|
4672
|
-
}
|
|
4673
|
-
|
|
4674
|
-
declare interface LogInfo {
|
|
4675
|
-
title: string;
|
|
4676
|
-
msg?: string | Error | Record<string, number | string>;
|
|
4677
|
-
}
|
|
4678
|
-
|
|
4679
|
-
declare type LogItem = {
|
|
4680
|
-
code: string;
|
|
4681
|
-
msg: string;
|
|
4682
|
-
marmotId?: string;
|
|
4683
|
-
s1?: string | number;
|
|
4684
|
-
s2?: string | number;
|
|
4685
|
-
s3?: string | number;
|
|
4686
|
-
s4?: string | number;
|
|
4687
|
-
s5?: string | number;
|
|
4688
|
-
s6?: string | number;
|
|
4689
|
-
s7?: string | number;
|
|
4690
|
-
s8?: string | number;
|
|
4691
|
-
s9?: string | number;
|
|
4692
|
-
s10?: string | number;
|
|
4693
|
-
s11?: string | number;
|
|
4694
|
-
s12?: string | number;
|
|
4695
|
-
s13?: string | number;
|
|
4696
|
-
s14?: string | number;
|
|
4697
|
-
s15?: string | number;
|
|
4698
|
-
s16?: string | number;
|
|
4699
|
-
s17?: string | number;
|
|
4700
|
-
s18?: string | number;
|
|
4701
|
-
s19?: string | number;
|
|
4702
|
-
s20?: string | number;
|
|
4703
|
-
env?: Env_2;
|
|
4704
|
-
sdk?: string;
|
|
4705
|
-
container?: string;
|
|
4706
|
-
title?: string;
|
|
4707
|
-
fullUrl?: string;
|
|
4708
|
-
sprintId?: string;
|
|
4709
|
-
ip?: string;
|
|
4710
|
-
countryName?: string;
|
|
4711
|
-
cityName?: string;
|
|
4712
|
-
provinceName?: string;
|
|
4713
|
-
cOfflineVer?: string;
|
|
4714
|
-
url?: string;
|
|
4715
|
-
referrer?: string;
|
|
4716
|
-
domCnt?: number;
|
|
4717
|
-
delay?: number;
|
|
4718
|
-
scrollTop?: number;
|
|
4719
|
-
lastAction?: string;
|
|
4720
|
-
sessionId?: string;
|
|
4721
|
-
isp?: string;
|
|
4722
|
-
area?: string;
|
|
4723
|
-
ua?: string;
|
|
4724
|
-
browser?: string;
|
|
4725
|
-
os?: string;
|
|
4726
|
-
device?: string;
|
|
4727
|
-
deviceType?: string;
|
|
4728
|
-
deviceBrand?: string;
|
|
4729
|
-
deviceModel?: string;
|
|
4730
|
-
screenWidth?: number;
|
|
4731
|
-
screenHeight?: number;
|
|
4732
|
-
contentHeight?: number;
|
|
4733
|
-
pixelRatio?: number;
|
|
4734
|
-
cClient?: string;
|
|
4735
|
-
cClientId?: string;
|
|
4736
|
-
cCoreVer?: string;
|
|
4737
|
-
assetsVer?: string;
|
|
4738
|
-
traceId?: string;
|
|
4739
|
-
serverIp?: string;
|
|
4740
|
-
serverEnv?: string;
|
|
4741
|
-
clientId?: string;
|
|
4742
|
-
spm?: string;
|
|
4743
|
-
spma?: string;
|
|
4744
|
-
spmb?: string;
|
|
4745
|
-
} & DMC;
|
|
4746
|
-
|
|
4747
4335
|
/**
|
|
4748
4336
|
* @description Logo信息
|
|
4749
4337
|
*/
|
|
@@ -4774,29 +4362,6 @@ declare interface Logo {
|
|
|
4774
4362
|
logoHeight?: string;
|
|
4775
4363
|
}
|
|
4776
4364
|
|
|
4777
|
-
declare type M = {
|
|
4778
|
-
m1?: number;
|
|
4779
|
-
m2?: number;
|
|
4780
|
-
m3?: number;
|
|
4781
|
-
m4?: number;
|
|
4782
|
-
m5?: number;
|
|
4783
|
-
m6?: number;
|
|
4784
|
-
m7?: number;
|
|
4785
|
-
m8?: number;
|
|
4786
|
-
m9?: number;
|
|
4787
|
-
m10?: number;
|
|
4788
|
-
m11?: number;
|
|
4789
|
-
m12?: number;
|
|
4790
|
-
m13?: number;
|
|
4791
|
-
m14?: number;
|
|
4792
|
-
m15?: number;
|
|
4793
|
-
m16?: number;
|
|
4794
|
-
m17?: number;
|
|
4795
|
-
m18?: number;
|
|
4796
|
-
m19?: number;
|
|
4797
|
-
m20?: number;
|
|
4798
|
-
};
|
|
4799
|
-
|
|
4800
4365
|
/**
|
|
4801
4366
|
* @description 端上的行为设定 @Author yanhong
|
|
4802
4367
|
*/
|
|
@@ -4940,12 +4505,6 @@ declare interface MultiCurrencyMoney {
|
|
|
4940
4505
|
currencyValue?: string;
|
|
4941
4506
|
}
|
|
4942
4507
|
|
|
4943
|
-
declare interface NetworkInfo {
|
|
4944
|
-
networkType?: string;
|
|
4945
|
-
isp?: string;
|
|
4946
|
-
ip?: string;
|
|
4947
|
-
}
|
|
4948
|
-
|
|
4949
4508
|
declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
4950
4509
|
/**
|
|
4951
4510
|
* The **`box-align`** CSS property specifies how an element aligns its contents across its layout in a perpendicular direction. The effect of the property is only visible if there is extra space in the box.
|
|
@@ -7187,7 +6746,7 @@ declare class OpenSDKTracker {
|
|
|
7187
6746
|
* @param options
|
|
7188
6747
|
* @returns
|
|
7189
6748
|
*/
|
|
7190
|
-
initTracker(options?: IntlOpenSDKTrackerInitOptions): Promise<
|
|
6749
|
+
initTracker(options?: IntlOpenSDKTrackerInitOptions): Promise<CompatibleTrackerFull | undefined>;
|
|
7191
6750
|
private safeCall;
|
|
7192
6751
|
/**
|
|
7193
6752
|
*
|
|
@@ -7197,7 +6756,7 @@ declare class OpenSDKTracker {
|
|
|
7197
6756
|
/**
|
|
7198
6757
|
* @description 设置属性
|
|
7199
6758
|
*/
|
|
7200
|
-
set(data: Partial<IntlOpenSDKTrackerInitOptions
|
|
6759
|
+
set(data: Partial<ExcludeUndefined<IntlOpenSDKTrackerInitOptions>>): void;
|
|
7201
6760
|
/**
|
|
7202
6761
|
* 会以 10141 code 上报一条常规日志,日志头为 D-AE
|
|
7203
6762
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#cq9Zw
|
|
@@ -7207,38 +6766,38 @@ declare class OpenSDKTracker {
|
|
|
7207
6766
|
* 请在marmot申请code后使用,必须关联code
|
|
7208
6767
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#W3dtb
|
|
7209
6768
|
*/
|
|
7210
|
-
log(...args: Parameters<
|
|
6769
|
+
log(...args: Parameters<CompatibleTrackerFull['log']>): void;
|
|
7211
6770
|
/**
|
|
7212
6771
|
* 用于埋点相关上报,点击
|
|
7213
6772
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#XQel9
|
|
7214
6773
|
*/
|
|
7215
|
-
click(...args: Parameters<
|
|
6774
|
+
click(...args: Parameters<CompatibleTrackerFull['click']>): void;
|
|
7216
6775
|
/**
|
|
7217
6776
|
* 用于埋点相关上报,曝光
|
|
7218
6777
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#LiVxE
|
|
7219
6778
|
*/
|
|
7220
|
-
expo(...args: Parameters<
|
|
6779
|
+
expo(...args: Parameters<CompatibleTrackerFull['expo']>): void;
|
|
7221
6780
|
/**
|
|
7222
6781
|
* 用于日志管控
|
|
7223
6782
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#rK7Ru
|
|
7224
6783
|
*/
|
|
7225
|
-
onSendData(...args: Parameters<
|
|
6784
|
+
onSendData(...args: Parameters<CompatibleTrackerFull['onSendData']>): void;
|
|
7226
6785
|
/**
|
|
7227
6786
|
* 用于日志管控
|
|
7228
6787
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#rK7Ru
|
|
7229
6788
|
*/
|
|
7230
|
-
offSendData(...args: Parameters<
|
|
6789
|
+
offSendData(...args: Parameters<CompatibleTrackerFull['offSendData']>): void;
|
|
7231
6790
|
/**
|
|
7232
6791
|
* 用于埋点相关上报,上报的日志头为 D-VM
|
|
7233
6792
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#RSCKn
|
|
7234
6793
|
*/
|
|
7235
|
-
pageMonitor(...args: Parameters<
|
|
6794
|
+
pageMonitor(...args: Parameters<CompatibleTrackerFull['pageMonitor']>): void;
|
|
7236
6795
|
/**
|
|
7237
6796
|
* 用于上报自定义性能指标,单次仅上报一个指标
|
|
7238
6797
|
* @param {string} key — m1 - m20
|
|
7239
6798
|
* @param {number} num — 耗时,数字,一定要 >= 0,否则无统计意义
|
|
7240
6799
|
*/
|
|
7241
|
-
reportCustomizedPerformance(...args: Parameters<
|
|
6800
|
+
reportCustomizedPerformance(...args: Parameters<CompatibleTrackerFull['reportCustomizedPerformance']>): void;
|
|
7242
6801
|
}
|
|
7243
6802
|
|
|
7244
6803
|
/**
|
|
@@ -7251,67 +6810,6 @@ declare interface OrderInfo {
|
|
|
7251
6810
|
orderDescription?: string;
|
|
7252
6811
|
}
|
|
7253
6812
|
|
|
7254
|
-
declare interface OriginTrackerInitOptions {
|
|
7255
|
-
isMarmot?: boolean;
|
|
7256
|
-
spmConfig?: SpmConfig;
|
|
7257
|
-
bizType: string;
|
|
7258
|
-
appId: string;
|
|
7259
|
-
/**
|
|
7260
|
-
* 适用于从雨燕监控迁移到 marmot 的场景
|
|
7261
|
-
* 该字段的值可使用雨燕监控的 appId 值
|
|
7262
|
-
* 最终该值会放在 D-AE 日志类型的 appId 字段位置,并覆盖扩展参数 4 中的 idengine_groupId 值
|
|
7263
|
-
* 正常情况下不需要用到,有疑问咨询 @之其 205637
|
|
7264
|
-
**/
|
|
7265
|
-
compatibleAppId?: string;
|
|
7266
|
-
productId: string;
|
|
7267
|
-
userId?: string;
|
|
7268
|
-
deviceId?: string;
|
|
7269
|
-
chInfo?: string;
|
|
7270
|
-
batchCount?: number;
|
|
7271
|
-
plugins?: PluginFunction[];
|
|
7272
|
-
server?: string;
|
|
7273
|
-
/**
|
|
7274
|
-
* servers 传入空数组或不传的情况下,不会禁用所有日志的上报,这个字段不是用来做上报开关的
|
|
7275
|
-
* 就像 server 不传或传空字符串的情况下,也不会禁用日志的上报,会使用默认的服务器地址
|
|
7276
|
-
* servers 只在有至少一个有效值的情况下才有意义
|
|
7277
|
-
*/
|
|
7278
|
-
servers?: string[];
|
|
7279
|
-
mdata?: Record<string, number | string>;
|
|
7280
|
-
env?: Env_2;
|
|
7281
|
-
ready?: boolean;
|
|
7282
|
-
isReport?: boolean;
|
|
7283
|
-
version?: string;
|
|
7284
|
-
funnelAuto?: boolean;
|
|
7285
|
-
userPathAuto?: boolean;
|
|
7286
|
-
autoExpo?: boolean;
|
|
7287
|
-
autoClick?: boolean;
|
|
7288
|
-
expoOnce?: boolean;
|
|
7289
|
-
platform?: string;
|
|
7290
|
-
sprintId?: string;
|
|
7291
|
-
autoReportConfig?: {
|
|
7292
|
-
isReport?: boolean;
|
|
7293
|
-
programVersion?: string;
|
|
7294
|
-
productId?: string;
|
|
7295
|
-
appId?: string;
|
|
7296
|
-
bizType?: string;
|
|
7297
|
-
imdapServerIndex?: number;
|
|
7298
|
-
server?: string;
|
|
7299
|
-
servers?: string[];
|
|
7300
|
-
platform?: string;
|
|
7301
|
-
deviceId?: string;
|
|
7302
|
-
};
|
|
7303
|
-
whiteScreenConfig?: BlankMonitorConfig | boolean;
|
|
7304
|
-
fmpIgnoreElements?: string[];
|
|
7305
|
-
enableBehavior?: BehaviorConfig | boolean;
|
|
7306
|
-
enableRequestHook?: RequestHookConfig | boolean;
|
|
7307
|
-
enableJSAPIReport?: boolean;
|
|
7308
|
-
}
|
|
7309
|
-
|
|
7310
|
-
declare interface OSInfo {
|
|
7311
|
-
os?: string;
|
|
7312
|
-
osVer?: string;
|
|
7313
|
-
}
|
|
7314
|
-
|
|
7315
6813
|
declare interface OtpChallengeActionForm {
|
|
7316
6814
|
/**
|
|
7317
6815
|
* @description action form type
|
|
@@ -8134,56 +7632,6 @@ export declare interface PayPalConfig {
|
|
|
8134
7632
|
onShippingOptionsChange?: (data: any, actions: any) => Promise<void>;
|
|
8135
7633
|
}
|
|
8136
7634
|
|
|
8137
|
-
declare interface PerformancePlugin extends BaseInfoPlugin {
|
|
8138
|
-
getAnalyzePerformanceInfo?(): Record<string, any> | null;
|
|
8139
|
-
getPagePerformanceInfo?(): {
|
|
8140
|
-
onload: string | number;
|
|
8141
|
-
domContentLoad: string | number;
|
|
8142
|
-
redirect: string | number;
|
|
8143
|
-
appCache: string | number;
|
|
8144
|
-
dns: string | number;
|
|
8145
|
-
tcp: string | number;
|
|
8146
|
-
ssl: string | number;
|
|
8147
|
-
reqt: string | number;
|
|
8148
|
-
rest: string | number;
|
|
8149
|
-
dpt: string | number;
|
|
8150
|
-
ft: string | number;
|
|
8151
|
-
domInteractive: string | number;
|
|
8152
|
-
domReady: string | number;
|
|
8153
|
-
domComplete: string | number;
|
|
8154
|
-
random: string | number;
|
|
8155
|
-
miniPerformance?: ReturnType<typeof getMiniPerformance>;
|
|
8156
|
-
timeOrigin?: number;
|
|
8157
|
-
};
|
|
8158
|
-
getWebVitalsInfo?(): GetWebVitalsInfoResult;
|
|
8159
|
-
getWhiteScreenInfo?(options?: Pick<GetWhiteScreenInfoOptions, 'selector' | 'ignoreNotInViewport'>): Promise<{
|
|
8160
|
-
status: 'error' | 'ok';
|
|
8161
|
-
}>;
|
|
8162
|
-
getFMP?(options?: {
|
|
8163
|
-
ignoreElements?: string[];
|
|
8164
|
-
}): Promise<{
|
|
8165
|
-
time: number;
|
|
8166
|
-
selector: string;
|
|
8167
|
-
} | undefined>;
|
|
8168
|
-
getTTI?(): Promise<number | undefined>;
|
|
8169
|
-
getFP?(): Promise<number | undefined>;
|
|
8170
|
-
getT2Time?(): Promise<number | undefined>;
|
|
8171
|
-
/**
|
|
8172
|
-
* 将性能数据发送到容器,目前只需 H5 应用实现
|
|
8173
|
-
*/
|
|
8174
|
-
sendPerformanceDataToContainer?(data: LogItem): Promise<void>;
|
|
8175
|
-
getSnapshot?: () => {
|
|
8176
|
-
fmp: string;
|
|
8177
|
-
lcp: string;
|
|
8178
|
-
};
|
|
8179
|
-
/**
|
|
8180
|
-
* 用于采集详细的性能数据,越晚调用,搜集的数据越多
|
|
8181
|
-
*/
|
|
8182
|
-
getDetailPerformance?(): Promise<DMC | null>;
|
|
8183
|
-
startCheckingPageWhiteScreen?(config: GetWhiteScreenInfoOptions | boolean | undefined): Promise<(() => void) | undefined>;
|
|
8184
|
-
startCheckingDOMWhiteScreen?(selector: string, options: Omit<GetWhiteScreenInfoOptions, 'selector'>): (() => void) | undefined;
|
|
8185
|
-
}
|
|
8186
|
-
|
|
8187
7635
|
declare interface PeriodRule {
|
|
8188
7636
|
/**
|
|
8189
7637
|
* @description period type
|
|
@@ -8202,85 +7650,6 @@ declare interface PeriodRule {
|
|
|
8202
7650
|
*/
|
|
8203
7651
|
declare type PickAppearance<Props extends Partial<DefaultAppearanceProps>> = Partial<Pick<Appearance<Props>, keyof Props extends infer k extends keyof Partial<Appearance> ? k : keyof Partial<Appearance>>>;
|
|
8204
7652
|
|
|
8205
|
-
declare interface PluginContext {
|
|
8206
|
-
userPath: {
|
|
8207
|
-
reStoreUserPath: (appId: string) => void;
|
|
8208
|
-
parseUserPathExtra: (key: string) => {
|
|
8209
|
-
idengine_user_path: string;
|
|
8210
|
-
} | null;
|
|
8211
|
-
getUserPathExtra: () => {
|
|
8212
|
-
cachePath: string[];
|
|
8213
|
-
extra: {
|
|
8214
|
-
idengine_user_path: string;
|
|
8215
|
-
};
|
|
8216
|
-
};
|
|
8217
|
-
};
|
|
8218
|
-
waitInit: () => Promise<void>;
|
|
8219
|
-
}
|
|
8220
|
-
|
|
8221
|
-
declare type PluginFunction = (iTracert: ITracert, callback: () => void) => boolean;
|
|
8222
|
-
|
|
8223
|
-
declare type PluginInitOptions = Pick<OriginTrackerInitOptions, 'spmConfig' | 'autoExpo' | 'autoClick' | 'bizType' | 'appId' | 'compatibleAppId' | 'productId' | 'batchCount' | 'mdata' | 'env' | 'plugins' | 'userId' | 'ready' | 'isReport' | 'version' | 'chInfo' | 'expoOnce' | 'platform' | 'sprintId' | 'autoReportConfig' | 'enableJSAPIReport'> & {
|
|
8224
|
-
server?: string;
|
|
8225
|
-
servers?: string[];
|
|
8226
|
-
isMarmot?: boolean;
|
|
8227
|
-
deviceId?: Promise<string>;
|
|
8228
|
-
whiteScreenConfig?: (BlankMonitorConfig & {
|
|
8229
|
-
callback?: (options: ReportData) => Promise<void>;
|
|
8230
|
-
}) | boolean;
|
|
8231
|
-
spmCheckCover?: string;
|
|
8232
|
-
whiteListConfigSource?: WHITE_LIST_CONFIG_SOURCE;
|
|
8233
|
-
remoteConfigValidDuration?: number;
|
|
8234
|
-
};
|
|
8235
|
-
|
|
8236
|
-
declare interface PluginOnErrorCallbackErrorInfo {
|
|
8237
|
-
message: string;
|
|
8238
|
-
extra: Record<string, any>;
|
|
8239
|
-
type: ErrorType;
|
|
8240
|
-
}
|
|
8241
|
-
|
|
8242
|
-
declare interface PluginPageMonitorOptions {
|
|
8243
|
-
spmInfo: {
|
|
8244
|
-
spmAPos: string;
|
|
8245
|
-
spmBPos: string;
|
|
8246
|
-
currentPage: string;
|
|
8247
|
-
};
|
|
8248
|
-
logData?: Record<string, any>;
|
|
8249
|
-
}
|
|
8250
|
-
|
|
8251
|
-
declare interface PluginShape extends PerformancePlugin, LagPlugin {
|
|
8252
|
-
getRequester(): GetRequesterResult;
|
|
8253
|
-
getDataFilter?(): (data: string[]) => Promise<string[]>;
|
|
8254
|
-
getExtraDataFilter?(): (data: Record<string, any>) => Promise<Record<string, any>>;
|
|
8255
|
-
onSendData?(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
|
|
8256
|
-
offSendData?(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
|
|
8257
|
-
init?(options: PluginInitOptions): Promise<void>;
|
|
8258
|
-
onError?(callback: (error: PluginOnErrorCallbackErrorInfo) => void): () => void;
|
|
8259
|
-
onPageLoad?(callback: () => void): () => void;
|
|
8260
|
-
set?(options: Record<string, any>): void;
|
|
8261
|
-
/**
|
|
8262
|
-
* @deprecated Compatible with old APIs. Use `Tracker#report` instead.
|
|
8263
|
-
* @param info
|
|
8264
|
-
* @param extra
|
|
8265
|
-
*/
|
|
8266
|
-
log?(type: string, params?: Record<string, any>): void;
|
|
8267
|
-
pageMonitor?(options: PluginPageMonitorOptions): void;
|
|
8268
|
-
expo?(code: string, extra?: Record<string, number | string | boolean>): void;
|
|
8269
|
-
click?(code: string, extra: Record<string, number | string | boolean>): void;
|
|
8270
|
-
getSessionItem?(key: string): string | null;
|
|
8271
|
-
removeSessionItem?(key: string): void;
|
|
8272
|
-
setSessionItem?(key: string, value: string): void;
|
|
8273
|
-
getSessionId?(): string | null;
|
|
8274
|
-
getStorageItem?(key: string): Promise<string | null>;
|
|
8275
|
-
removeStorageItem?(key: string): void;
|
|
8276
|
-
setStorageItem?(key: string, value: string): void;
|
|
8277
|
-
onHTTPError?(callback: (options: HTTPErrorCallbackOptions) => void): void;
|
|
8278
|
-
triggerPreCaptureReport?(callback: (error: PluginOnErrorCallbackErrorInfo) => void): void;
|
|
8279
|
-
PluginShape?: void;
|
|
8280
|
-
initBehaviorListener?(addBehavior: AddBehavior, config: BehaviorConfig): void;
|
|
8281
|
-
reportAPI?(config: RequestHookConfig, callback: (options: APICallbackOptions) => void): void;
|
|
8282
|
-
}
|
|
8283
|
-
|
|
8284
7653
|
/**
|
|
8285
7654
|
* @description 政策信息,例如隐私链接,免责声明等
|
|
8286
7655
|
*/
|
|
@@ -10286,57 +9655,8 @@ declare interface RedirectOption {
|
|
|
10286
9655
|
destroy?: boolean;
|
|
10287
9656
|
}
|
|
10288
9657
|
|
|
10289
|
-
declare type ReportData = {
|
|
10290
|
-
title?: string;
|
|
10291
|
-
msg?: string | Error | Record<string, number | string> | Event;
|
|
10292
|
-
logType: 'error' | 'info';
|
|
10293
|
-
extra?: Record<string, number | boolean | string | undefined | Error | null>;
|
|
10294
|
-
} | ({
|
|
10295
|
-
logType: 'custom';
|
|
10296
|
-
} & LogItem);
|
|
10297
|
-
|
|
10298
9658
|
declare type RequestEnv = 'local' | 'dev' | 'sit' | 'pre' | 'prod' | 'sandbox' | 'light_sandbox';
|
|
10299
9659
|
|
|
10300
|
-
declare class RequesterCacheWrapper {
|
|
10301
|
-
private autoReportConfig;
|
|
10302
|
-
private dataCache;
|
|
10303
|
-
private lastSendTime;
|
|
10304
|
-
private batchCount;
|
|
10305
|
-
private sendFrequency;
|
|
10306
|
-
constructor(autoReportConfig: {
|
|
10307
|
-
immediate?: boolean;
|
|
10308
|
-
deviceId?: Promise<string>;
|
|
10309
|
-
isReport?: boolean;
|
|
10310
|
-
programVersion?: string;
|
|
10311
|
-
productId?: string;
|
|
10312
|
-
appId?: string;
|
|
10313
|
-
compatibleAppId?: string;
|
|
10314
|
-
bizType?: string;
|
|
10315
|
-
});
|
|
10316
|
-
report(options: ReportData & {
|
|
10317
|
-
request: GetRequesterResult;
|
|
10318
|
-
extraDataFilter?: (data: Record<string, any>) => Promise<Record<string, any>>;
|
|
10319
|
-
dataFilter?: (data: string[]) => Promise<string[]>;
|
|
10320
|
-
} & BaseInfo & {
|
|
10321
|
-
immediate?: boolean;
|
|
10322
|
-
}): Promise<void>;
|
|
10323
|
-
private send;
|
|
10324
|
-
/**
|
|
10325
|
-
* 分批发送请求
|
|
10326
|
-
*/
|
|
10327
|
-
private httpRequest;
|
|
10328
|
-
private sendBatch;
|
|
10329
|
-
}
|
|
10330
|
-
|
|
10331
|
-
declare type RequestHookConfig = {
|
|
10332
|
-
/**
|
|
10333
|
-
* @description 不上报的域名
|
|
10334
|
-
*/
|
|
10335
|
-
excludes?: Array<string | RegExp>;
|
|
10336
|
-
getFetchResponseInfo?: (headers: Headers, responseData: Record<string, any>, requestParam: Array<any>) => ResponseInfo;
|
|
10337
|
-
getXHRResponseInfo?: (response: XHRResponse) => ResponseInfo;
|
|
10338
|
-
};
|
|
10339
|
-
|
|
10340
9660
|
declare interface RequestOptions {
|
|
10341
9661
|
env?: RequestEnv;
|
|
10342
9662
|
baseURL?: string;
|
|
@@ -10361,15 +9681,6 @@ declare interface RequestOptions {
|
|
|
10361
9681
|
scope?: string;
|
|
10362
9682
|
}
|
|
10363
9683
|
|
|
10364
|
-
declare type ResponseInfo = {
|
|
10365
|
-
responseUrl?: string;
|
|
10366
|
-
traceId?: string;
|
|
10367
|
-
isSuccess?: boolean;
|
|
10368
|
-
errorCode?: string | number;
|
|
10369
|
-
errorMsg?: string;
|
|
10370
|
-
url?: string;
|
|
10371
|
-
};
|
|
10372
|
-
|
|
10373
9684
|
/**
|
|
10374
9685
|
* @description 国际支付标准结果码,参考主站<code>ErrorCode</code>实现。
|
|
10375
9686
|
*
|
|
@@ -10744,14 +10055,6 @@ declare type SimplePseudos =
|
|
|
10744
10055
|
| ":volume-locked"
|
|
10745
10056
|
| ":xr-overlay";
|
|
10746
10057
|
|
|
10747
|
-
declare interface SpmConfig {
|
|
10748
|
-
spmAPos: string;
|
|
10749
|
-
bizType: string;
|
|
10750
|
-
pages?: Record<string, Record<string, string>>;
|
|
10751
|
-
mdata?: Record<string, number | string | boolean>;
|
|
10752
|
-
immediate?: boolean;
|
|
10753
|
-
}
|
|
10754
|
-
|
|
10755
10058
|
declare interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
10756
10059
|
/**
|
|
10757
10060
|
* This feature is not Baseline because it does not work in some of the most widely-used browsers.
|
|
@@ -24948,257 +24251,6 @@ export declare const themeColorMap: Record<AntomTheme, {
|
|
|
24948
24251
|
backgroundColor: string;
|
|
24949
24252
|
}>;
|
|
24950
24253
|
|
|
24951
|
-
declare class Tracker {
|
|
24952
|
-
protected requesterCacheWrapper?: RequesterCacheWrapper;
|
|
24953
|
-
private initPromise;
|
|
24954
|
-
private spmInfo;
|
|
24955
|
-
private spmConfig?;
|
|
24956
|
-
private spmAPos?;
|
|
24957
|
-
private spmBPos?;
|
|
24958
|
-
private funnelAuto?;
|
|
24959
|
-
private userPathAuto?;
|
|
24960
|
-
private cachePath;
|
|
24961
|
-
private userPathLength;
|
|
24962
|
-
private pathUserMeta;
|
|
24963
|
-
private isMarmot;
|
|
24964
|
-
protected appId?: string;
|
|
24965
|
-
protected compatibleAppId?: string;
|
|
24966
|
-
private plugin;
|
|
24967
|
-
private sprintId?;
|
|
24968
|
-
private userId;
|
|
24969
|
-
protected deviceId?: Promise<string>;
|
|
24970
|
-
protected programVersion?: string;
|
|
24971
|
-
private language?;
|
|
24972
|
-
protected bizType?: string;
|
|
24973
|
-
protected productId?: string;
|
|
24974
|
-
private whiteScreenConfig?;
|
|
24975
|
-
private performance?;
|
|
24976
|
-
protected isReport?: boolean;
|
|
24977
|
-
protected server?: string;
|
|
24978
|
-
protected servers?: string[];
|
|
24979
|
-
protected platform?: string;
|
|
24980
|
-
private env?;
|
|
24981
|
-
private immediate?;
|
|
24982
|
-
enableScreenshot: boolean | undefined | {
|
|
24983
|
-
rate: number;
|
|
24984
|
-
};
|
|
24985
|
-
private enableResourceAnalysis?;
|
|
24986
|
-
private _lag?;
|
|
24987
|
-
private spmCheckCover?;
|
|
24988
|
-
private enableBehavior?;
|
|
24989
|
-
private behavior?;
|
|
24990
|
-
private enableRequestHook?;
|
|
24991
|
-
private enableJSAPIReport?;
|
|
24992
|
-
private customizedPerformanceMark?;
|
|
24993
|
-
constructor(Plugin: new (context: PluginContext) => PluginShape);
|
|
24994
|
-
init(options: TrackerInitOptions): Promise<boolean>;
|
|
24995
|
-
/**
|
|
24996
|
-
* 业务侧可以拦截发送日志的请求,用于手动过滤
|
|
24997
|
-
* 当前仅对浏览器环境生效
|
|
24998
|
-
* rawData 是 intl-tracker 内部格式的数据,为对象
|
|
24999
|
-
* data 是最终发送到服务端的数据,为字符串形式
|
|
25000
|
-
*/
|
|
25001
|
-
onSendData(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
|
|
25002
|
-
/**
|
|
25003
|
-
* 业务侧可以取消拦截发送日志的请求
|
|
25004
|
-
* 当前仅对浏览器环境生效
|
|
25005
|
-
*/
|
|
25006
|
-
offSendData(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
|
|
25007
|
-
private startReportSnapshot;
|
|
25008
|
-
/**
|
|
25009
|
-
* 用于上报自定义性能指标,单次仅上报一个指标
|
|
25010
|
-
* @param key m1 - m20
|
|
25011
|
-
* @param num 耗时,数字,一定要 >= 0,否则无统计意义
|
|
25012
|
-
*/
|
|
25013
|
-
reportCustomizedPerformance(key: CustomizedPerformanceKey, num: number): void | undefined;
|
|
25014
|
-
/**
|
|
25015
|
-
* 上报自定义性能指标
|
|
25016
|
-
* @param data 适合单次合并上报多个指标的场景
|
|
25017
|
-
* 请注意,使用 reportCustomizedPerformance 上报时,每次上报会发送一次日志请求
|
|
25018
|
-
* 不同阶段的数据量会有差异,这些差异可以作为页面流失漏斗的数据源
|
|
25019
|
-
* 但合并上报时,同时上报的多个指标数量是相同的
|
|
25020
|
-
*/
|
|
25021
|
-
reportCustomizedPerformanceData(data: Partial<Record<CustomizedPerformanceKey, number>>): void | undefined;
|
|
25022
|
-
/**
|
|
25023
|
-
* 用于显式上报小程序性能指标
|
|
25024
|
-
* 由于小程序的性能指标仅在“使用 schema 打开页面”时有效,原来的自动上报未区分场景,会导致脏数据较多
|
|
25025
|
-
* 改为数据自动采集、仅在必要时由业务方手动调用接口上报
|
|
25026
|
-
*/
|
|
25027
|
-
reportMiniProgramPerformance(): Promise<void> | undefined;
|
|
25028
|
-
getMiniProgramPerformanceData(): Promise<{
|
|
25029
|
-
s1: number;
|
|
25030
|
-
s2: number;
|
|
25031
|
-
s3: number;
|
|
25032
|
-
s4: number;
|
|
25033
|
-
s5: number;
|
|
25034
|
-
s6: number;
|
|
25035
|
-
s7: number;
|
|
25036
|
-
s8: number;
|
|
25037
|
-
} | undefined> | undefined;
|
|
25038
|
-
/**
|
|
25039
|
-
* 用于显式上报网页性能指标,一般用不上
|
|
25040
|
-
* 1. tracker.onPageLoad() 会自动上报
|
|
25041
|
-
* 2. tracker.reportCustomizedPerformanceData() 会自动上报
|
|
25042
|
-
* 3. tracker.reportCustomizedPerformance() 会自动上报
|
|
25043
|
-
* 4. tracker.reportMiniProgramPerformance() 会自动上报
|
|
25044
|
-
* 5. 以上方法仅会上报一次网页性能指标,多次调用不受影响
|
|
25045
|
-
* 6. 仅当以上所有方法均未调用时,才需要手动调用此方法
|
|
25046
|
-
*/
|
|
25047
|
-
reportPagePerformance(): Promise<void> | undefined;
|
|
25048
|
-
private handleReportSnapShot;
|
|
25049
|
-
get lag(): {
|
|
25050
|
-
log: (msg: string) => Promise<void>;
|
|
25051
|
-
fps: () => Promise<void>;
|
|
25052
|
-
};
|
|
25053
|
-
onPageLoad(options?: string | {
|
|
25054
|
-
title?: string;
|
|
25055
|
-
fmpIgnoreElements?: string[];
|
|
25056
|
-
}): Promise<void>;
|
|
25057
|
-
reportPerformance(title?: string): void;
|
|
25058
|
-
reportDetailPerformance(): void;
|
|
25059
|
-
onError(): Promise<(() => void) | undefined>;
|
|
25060
|
-
fmp(time: number): void;
|
|
25061
|
-
flushBehavior(): void;
|
|
25062
|
-
/**
|
|
25063
|
-
* 内部使用
|
|
25064
|
-
*
|
|
25065
|
-
* @param error
|
|
25066
|
-
*/
|
|
25067
|
-
private reportError;
|
|
25068
|
-
private triggerPreCaptureReport;
|
|
25069
|
-
onHTTPError(): Promise<void>;
|
|
25070
|
-
private reportAPI;
|
|
25071
|
-
/**
|
|
25072
|
-
* 内部使用,业务项目不要调用
|
|
25073
|
-
*
|
|
25074
|
-
* @param options
|
|
25075
|
-
*/
|
|
25076
|
-
reportHTTPError(options: HTTPErrorCallbackOptions): void;
|
|
25077
|
-
set(options: Record<string, any>): void;
|
|
25078
|
-
log(item: LogItem): void;
|
|
25079
|
-
/**
|
|
25080
|
-
* @deprecated Compatible with old APIs. Use `Tracker#log` instead.
|
|
25081
|
-
* @param info
|
|
25082
|
-
* @param extra
|
|
25083
|
-
*/
|
|
25084
|
-
logInfo(info: LogInfo, extra?: Record<string, number | boolean | string>): Promise<void>;
|
|
25085
|
-
/**
|
|
25086
|
-
* @deprecated Compatible with old APIs. Use `Tracker#log` instead.
|
|
25087
|
-
* @param info
|
|
25088
|
-
* @param extra
|
|
25089
|
-
*/
|
|
25090
|
-
logError(info: LogInfo, extra?: Record<string, number | boolean | string>): Promise<void>;
|
|
25091
|
-
reportFunnel(title: string, config?: {
|
|
25092
|
-
[prop: string]: string | number;
|
|
25093
|
-
name: string;
|
|
25094
|
-
level: number;
|
|
25095
|
-
label: string;
|
|
25096
|
-
} | undefined): Promise<void>;
|
|
25097
|
-
reportRPC(rpcInfo: {
|
|
25098
|
-
name: string;
|
|
25099
|
-
label: string;
|
|
25100
|
-
code?: string | undefined;
|
|
25101
|
-
msg?: string | Error | Record<string, string | number> | undefined;
|
|
25102
|
-
success?: boolean | undefined;
|
|
25103
|
-
result?: number | undefined;
|
|
25104
|
-
traceId?: string | undefined;
|
|
25105
|
-
httpStatus?: string | undefined;
|
|
25106
|
-
time?: number | undefined;
|
|
25107
|
-
}): void;
|
|
25108
|
-
logJSBridgeError(info: LogInfo): void;
|
|
25109
|
-
pageMonitor(page: string, extraParams?: Record<string, any>, autoPv?: boolean): void;
|
|
25110
|
-
expo(code: string, extra?: Record<string, string | number | boolean> | undefined): void;
|
|
25111
|
-
click(code: string, extra?: Record<string, string | number | boolean>): void;
|
|
25112
|
-
pv(): void;
|
|
25113
|
-
/**
|
|
25114
|
-
* 指定点位白屏的监控 - 用于监控目标点位的白屏
|
|
25115
|
-
* 页面白屏和目标点位白屏的通用监控逻辑
|
|
25116
|
-
*
|
|
25117
|
-
* @param selector 目标点位选择器
|
|
25118
|
-
* @param options 配置项
|
|
25119
|
-
* {
|
|
25120
|
-
* 检测延时,单位 second,即启动白屏检测后多久开始执行白屏识别
|
|
25121
|
-
* NOTE: 设置时间时要考虑业务平均加载时间,太短可能会误报
|
|
25122
|
-
* delay
|
|
25123
|
-
*
|
|
25124
|
-
* 是否持续监测, 即初始化白屏检测结束之后是否继续监控业务运行中白屏, default: true
|
|
25125
|
-
* persistent
|
|
25126
|
-
* }
|
|
25127
|
-
*/
|
|
25128
|
-
startCheckingDOMWhiteScreen(selector: string, options: Omit<BlankMonitorConfig, 'selector'>): void;
|
|
25129
|
-
private getRequester;
|
|
25130
|
-
protected getDefaultExtraInfo(): Promise<BaseInfo>;
|
|
25131
|
-
private request;
|
|
25132
|
-
private formatExtra;
|
|
25133
|
-
private reportLog;
|
|
25134
|
-
/**
|
|
25135
|
-
* 解析成功率上报参数
|
|
25136
|
-
* @param key p_ page c_ click expo r l -info或者-error结尾是前端日志
|
|
25137
|
-
* @param funnelConfig 标准漏斗上报参数
|
|
25138
|
-
* @returns 扩展参数数据
|
|
25139
|
-
*/
|
|
25140
|
-
private parseUserPathExtra;
|
|
25141
|
-
/**
|
|
25142
|
-
* 获取成功率上报参数
|
|
25143
|
-
* 用于去冲
|
|
25144
|
-
*/
|
|
25145
|
-
private getUserPathExtra;
|
|
25146
|
-
/**
|
|
25147
|
-
* 恢复存储的用户路径
|
|
25148
|
-
*/
|
|
25149
|
-
private reStoreUserPath;
|
|
25150
|
-
private reStoreUserPathMeta;
|
|
25151
|
-
private reStoreSessionId;
|
|
25152
|
-
/**
|
|
25153
|
-
* 重置session id
|
|
25154
|
-
*/
|
|
25155
|
-
resetSessionId(): void;
|
|
25156
|
-
/**
|
|
25157
|
-
* 重置用户路径
|
|
25158
|
-
*/
|
|
25159
|
-
resetUserPath(): void;
|
|
25160
|
-
private normalizeServer;
|
|
25161
|
-
private normalizeServers;
|
|
25162
|
-
}
|
|
25163
|
-
|
|
25164
|
-
declare interface TrackerInitOptions {
|
|
25165
|
-
spmConfig?: SpmConfig;
|
|
25166
|
-
marmotId: string;
|
|
25167
|
-
compatibleAppId?: string;
|
|
25168
|
-
userId?: string;
|
|
25169
|
-
server?: IMDAP_SERVER | string;
|
|
25170
|
-
servers?: (IMDAP_SERVER | string)[];
|
|
25171
|
-
env?: Env_2;
|
|
25172
|
-
sprintId?: string;
|
|
25173
|
-
whiteScreen?: BlankMonitorConfig | boolean;
|
|
25174
|
-
immediate?: boolean;
|
|
25175
|
-
autoExpo?: boolean;
|
|
25176
|
-
autoClick?: boolean;
|
|
25177
|
-
expoOnce?: boolean;
|
|
25178
|
-
enableScreenshot?: boolean | {
|
|
25179
|
-
rate: number;
|
|
25180
|
-
};
|
|
25181
|
-
enableResourceAnalysis?: boolean;
|
|
25182
|
-
spmCheckCover?: string;
|
|
25183
|
-
enableBehavior?: BehaviorConfig | boolean;
|
|
25184
|
-
enableRequestHook?: RequestHookConfig | boolean;
|
|
25185
|
-
enableJSAPIReport?: boolean;
|
|
25186
|
-
/**
|
|
25187
|
-
* 白名单配置源,仅浏览器环境支持
|
|
25188
|
-
* 不传值时,与旧版功能相同,所有日志都会发送
|
|
25189
|
-
* 1. 值为 REMOTE 时,表示从远程服务器获取白名单配置
|
|
25190
|
-
* 2. 值为 NONE 时,表示不使用白名单配置,所有日志都会发送
|
|
25191
|
-
*/
|
|
25192
|
-
whiteListConfigSource?: WHITE_LIST_CONFIG_SOURCE;
|
|
25193
|
-
/**
|
|
25194
|
-
* 当且仅当 whiteListConfigSource 为 REMOTE 时有效
|
|
25195
|
-
* 在有效期内,不重复加载 json 请求
|
|
25196
|
-
*/
|
|
25197
|
-
remoteConfigValidDuration?: number;
|
|
25198
|
-
productId?: string;
|
|
25199
|
-
bizType?: string;
|
|
25200
|
-
}
|
|
25201
|
-
|
|
25202
24254
|
/**
|
|
25203
24255
|
* @description 交易信息
|
|
25204
24256
|
*/
|
|
@@ -28941,16 +27993,9 @@ declare interface VendorShorthandPropertiesHyphen<TLength = (string & {}) | 0, T
|
|
|
28941
27993
|
|
|
28942
27994
|
declare type VendorShorthandPropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<VendorShorthandPropertiesHyphen<TLength, TTime>>;
|
|
28943
27995
|
|
|
28944
|
-
declare type WHITE_LIST_CONFIG_SOURCE = 'REMOTE' | 'NONE';
|
|
28945
|
-
|
|
28946
27996
|
declare type WithAppURL<T> = T & {
|
|
28947
27997
|
appUrl: string;
|
|
28948
27998
|
isMainElement: boolean;
|
|
28949
27999
|
};
|
|
28950
28000
|
|
|
28951
|
-
declare type XHRResponse = {
|
|
28952
|
-
headers: ReturnType<XMLHttpRequest['getAllResponseHeaders']>;
|
|
28953
|
-
body: XMLHttpRequest['response'];
|
|
28954
|
-
};
|
|
28955
|
-
|
|
28956
28001
|
export { }
|