@alipay/ams-checkout 0.0.1783663570-dev.5 → 0.0.1783663570-dev.7
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 +4 -3
- package/dist/ams-checkout.min.js +2 -1
- package/dist/ams-checkout.min.js.map +1 -0
- package/esm/config/index.d.ts +7 -0
- package/esm/config/index.js +2 -2
- package/esm/constant/element.d.ts +2 -1
- package/esm/constant/element.js +1 -0
- package/esm/constant/index.d.ts +4 -21
- package/esm/core/component/element/elementController/index.d.ts +3 -3
- package/esm/core/component/element/index.d.ts +4 -1
- package/esm/core/component/element/index.js +19 -4
- package/esm/core/component/element/modernElementController/adapter.d.ts +19 -0
- package/esm/core/component/element/modernElementController/adapter.js +79 -0
- package/esm/core/component/element/modernElementController/index.d.ts +152 -0
- package/esm/core/component/element/modernElementController/index.js +1747 -0
- package/esm/core/component/element/type.d.ts +14 -17
- package/esm/foundation/service/event-center.js +1 -1
- package/esm/modern/global.d.ts +3 -0
- package/esm/modern/index.d.ts +5 -1
- package/esm/modern/index.js +1 -51
- package/esm/modern/tools.js +1 -0
- package/esm/tsdoc-metadata.json +1 -1
- package/esm/types/index.d.ts +1 -0
- package/esm/util/logger.js +1 -2
- package/package.json +15 -9
- package/types.d.ts +834 -1103
- package/types.untrimmed.d.ts +986 -1122
- package/esm/modern/stageName.d.ts +0 -3
- package/esm/modern/stageName.js +0 -1
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
|
|
@@ -143,7 +143,26 @@ declare interface AmountLimitInfo {
|
|
|
143
143
|
/**
|
|
144
144
|
* AntomBridge事件类型,包含了SDK与webapp通信的所有事件类型
|
|
145
145
|
*/
|
|
146
|
-
export declare interface AntomBridgeEventMap<AppConfig extends Record<string, any> = Record<string, any>, SubmitParams extends Record<string, any> = Record<string, any
|
|
146
|
+
export declare interface AntomBridgeEventMap<AppConfig extends Record<string, any> = Record<string, any>, SubmitParams extends Record<string, any> = Record<string, any>, SR extends SubmitResult = SubmitResult> extends BaseBridgeEventMap<AppConfig, SR, SubmitParams, string, AntomOpenModalConfig> {
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @description 整合了native事件的eventMap,如果你的业务element需要支持native,事件请继承这个类型
|
|
151
|
+
*/
|
|
152
|
+
export declare interface AntomBridgeWithNativeEventMap<AppConfig extends Record<string, any> = Record<string, any>, SubmitParams extends Record<string, any> = Record<string, any>, SR extends SubmitResult = SubmitResult> extends AntomBridgeEventMap<AppConfig, SubmitParams, SR> {
|
|
153
|
+
/* Excluded from this release type: showPopup */
|
|
154
|
+
/* Excluded from this release type: dismissLoading */
|
|
155
|
+
/* Excluded from this release type: webAppReady */
|
|
156
|
+
/* Excluded from this release type: onLaunch */
|
|
157
|
+
/* Excluded from this release type: renderComponent */
|
|
158
|
+
/* Excluded from this release type: appHeartBeat */
|
|
159
|
+
/* Excluded from this release type: showToast */
|
|
160
|
+
/* Excluded from this release type: onEventCallback */
|
|
161
|
+
/* Excluded from this release type: onSubmitPayCallback */
|
|
162
|
+
/* Excluded from this release type: reset */
|
|
163
|
+
/* Excluded from this release type: destroy */
|
|
164
|
+
/* Excluded from this release type: onClose */
|
|
165
|
+
/* Excluded from this release type: onRedirect */
|
|
147
166
|
}
|
|
148
167
|
|
|
149
168
|
/**
|
|
@@ -178,9 +197,9 @@ declare interface AntomErrorResponse {
|
|
|
178
197
|
extendInfo?: Record<string, any>;
|
|
179
198
|
}
|
|
180
199
|
|
|
181
|
-
|
|
200
|
+
export declare type AntomLayouts = 'tabs' | 'accordion';
|
|
182
201
|
|
|
183
|
-
/* Excluded from this release type:
|
|
202
|
+
/* Excluded from this release type: AntomMiddlePageEventMap */
|
|
184
203
|
|
|
185
204
|
/* Excluded from this release type: AntomOpenModalConfig */
|
|
186
205
|
|
|
@@ -195,11 +214,14 @@ export declare class AntomSDK extends BaseElementsFactory {
|
|
|
195
214
|
* @description 更新配置
|
|
196
215
|
*/
|
|
197
216
|
updateConfig(config: Partial<BaseFactoryConfig>): void;
|
|
217
|
+
/* Excluded from this release type: redirect */
|
|
198
218
|
/* Excluded from this release type: openModal */
|
|
199
219
|
elements(): Elements;
|
|
220
|
+
createElement(elementType: 'payment', options?: PaymentAppConfig): PaymentElement;
|
|
200
221
|
createElement(elementType: 'vaulting', options?: VaultingAppConfig): VaultingElement;
|
|
201
222
|
createElement(elementType: 'CVV', options?: CVVAppConfig): CVVElement;
|
|
202
223
|
createElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
|
|
224
|
+
getElement(elementType: 'payment', options?: PaymentAppConfig): PaymentElement;
|
|
203
225
|
getElement(elementType: 'vaulting', options?: VaultingAppConfig): VaultingElement;
|
|
204
226
|
getElement(elementType: 'CVV', options?: CVVAppConfig): CVVElement;
|
|
205
227
|
getElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
|
|
@@ -256,6 +278,22 @@ export declare const AntomSDKErrorCodes: {
|
|
|
256
278
|
* @description channelClientId 查询失败(请求异常,如网络错误、服务器错误等)
|
|
257
279
|
*/
|
|
258
280
|
readonly CHANNEL_CLIENT_ID_QUERY_ERROR: "CHANNEL_CLIENT_ID_QUERY_ERROR";
|
|
281
|
+
/**
|
|
282
|
+
* @description checkout 页面未加载成功,不允许 updateConfig
|
|
283
|
+
*/
|
|
284
|
+
readonly CHECKOUT_NOT_READY: "CHECKOUT_NOT_READY";
|
|
285
|
+
/**
|
|
286
|
+
* @description 支付进行中,不允许更新金额
|
|
287
|
+
*/
|
|
288
|
+
readonly PAYMENT_IN_PROGRESS: "PAYMENT_IN_PROGRESS";
|
|
289
|
+
/**
|
|
290
|
+
* @description 金额不能为空
|
|
291
|
+
*/
|
|
292
|
+
readonly AMOUNT_VALUE_EMPTY: "AMOUNT_VALUE_EMPTY";
|
|
293
|
+
/**
|
|
294
|
+
* @description 金额格式非法(仅允许整数和小数)
|
|
295
|
+
*/
|
|
296
|
+
readonly AMOUNT_VALUE_INVALID: "AMOUNT_VALUE_INVALID";
|
|
259
297
|
readonly GENERATE_ELEMENT_KEY_FAILED: "GENERATE_ELEMENT_KEY_FAILED";
|
|
260
298
|
readonly ELEMENT_INIT_FAILED: "ELEMENT_INIT_FAILED";
|
|
261
299
|
readonly MOUNT_TIMEOUT: "MOUNT_TIMEOUT";
|
|
@@ -272,6 +310,11 @@ export declare const AntomSDKErrorCodes: {
|
|
|
272
310
|
readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
|
|
273
311
|
readonly NOT_SUPPORT_ELEMENT: "NOT_SUPPORT_ELEMENT";
|
|
274
312
|
readonly NOT_SUPPORT_SUBMIT: "NOT_SUPPORT_SUBMIT";
|
|
313
|
+
readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
|
|
314
|
+
readonly UPDATE_CONFIG_NOT_READY: "UPDATE_CONFIG_NOT_READY";
|
|
315
|
+
/**
|
|
316
|
+
* @description 是否需要更换 session 重试
|
|
317
|
+
*/
|
|
275
318
|
readonly INVALID_MODAL_URL: "INVALID_MODAL_URL";
|
|
276
319
|
readonly LOAD_DEBUGGER_FAILED: "LOAD_DEBUGGER_FAILED";
|
|
277
320
|
readonly API_MISS_PARAMS: "API_MISS_PARAMS";
|
|
@@ -289,29 +332,23 @@ export declare type AntomSDKErrorCodes = (typeof AntomSDKErrorCodes)[keyof typeo
|
|
|
289
332
|
|
|
290
333
|
export declare type AntomTheme = 'default' | 'agateGreen' | 'night' | 'nostalgicGray' | 'gamingPurple' | 'cherryBlossomPink' | 'light';
|
|
291
334
|
|
|
292
|
-
declare
|
|
293
|
-
requestType: 'fetch' | 'xhr';
|
|
294
|
-
time: number;
|
|
295
|
-
url: string;
|
|
296
|
-
isSuccess?: boolean;
|
|
297
|
-
error?: unknown;
|
|
298
|
-
status?: number;
|
|
299
|
-
type?: string;
|
|
300
|
-
method?: string;
|
|
301
|
-
traceId?: string;
|
|
302
|
-
errorCode?: string | number;
|
|
303
|
-
errorMsg?: string;
|
|
304
|
-
}
|
|
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';
|
|
305
336
|
|
|
337
|
+
/**
|
|
338
|
+
* @description SDK UI组件的外观配置。
|
|
339
|
+
* 控制主题、CSS变量、布局规则及显示设置。
|
|
340
|
+
* @template Props - 自定义外观属性类型,默认为 DefaultAppearanceProps。
|
|
341
|
+
*/
|
|
306
342
|
declare interface Appearance<Props extends Partial<DefaultAppearanceProps> = DefaultAppearanceProps> {
|
|
307
343
|
theme?: Props['theme'];
|
|
308
344
|
variables?: PartialSpeKey<Props['variables'], string>;
|
|
309
345
|
rules?: PartialSpeKey<Props['rules'], CSS_2.Properties<string, number>>;
|
|
310
346
|
displaySetting?: PartialSpeKey<Props['displaySetting'], boolean>;
|
|
311
347
|
layout?: Props['layout'];
|
|
348
|
+
fonts?: FontSource[];
|
|
312
349
|
}
|
|
313
350
|
|
|
314
|
-
declare type AppearanceSetting = {
|
|
351
|
+
export declare type AppearanceSetting = {
|
|
315
352
|
displaySetting: Record<'showCardBrandIcon', boolean>;
|
|
316
353
|
theme: 'light' | 'dark';
|
|
317
354
|
layout: 'accordion' | 'tabs';
|
|
@@ -712,6 +749,16 @@ declare interface BaseBridgeEventMap<AppConfig extends Record<string, any> = Rec
|
|
|
712
749
|
/* Excluded from this release type: "OPENSDK@HANDSHAKE" */
|
|
713
750
|
/* Excluded from this release type: "OPENSDK@READY_HANDSHAKE" */
|
|
714
751
|
/* Excluded from this release type: "OPENSDK@UPDATE_CONFIG" */
|
|
752
|
+
/**
|
|
753
|
+
* 更新配置时的回复事件,包含可能发生的错误信息。
|
|
754
|
+
* 如果 error 为 undefined,则表示没有错误发生。
|
|
755
|
+
*/
|
|
756
|
+
"OPENSDK@UPDATE_CONFIG_REPLY": {
|
|
757
|
+
/**
|
|
758
|
+
* 更新配置时发生的错误,如果error为undefined,则表示没有错误发生
|
|
759
|
+
*/
|
|
760
|
+
error?: ErrorPayload<string>;
|
|
761
|
+
} | undefined;
|
|
715
762
|
/* Excluded from this release type: "OPENSDK@HANDSHAKE_ACK" */
|
|
716
763
|
/* Excluded from this release type: "OPENSDK@SUBMIT" */
|
|
717
764
|
/* Excluded from this release type: "OPENSDK@SUBMIT_REPLY" */
|
|
@@ -721,12 +768,14 @@ declare interface BaseBridgeEventMap<AppConfig extends Record<string, any> = Rec
|
|
|
721
768
|
/* Excluded from this release type: "OPENSDK@REDIRECT" */
|
|
722
769
|
/* Excluded from this release type: "OPENSDK@TRANSFER_MODAL_PORT" */
|
|
723
770
|
/* Excluded from this release type: "OPENSDK@TRANSFER_MODAL_APPEARANCE" */
|
|
771
|
+
/* Excluded from this release type: "OPENSDK@TRANSFER_MODAL_INITIALDATA" */
|
|
724
772
|
/* Excluded from this release type: "OPENSDK@TRANSFER_APP_PORT" */
|
|
725
773
|
/* Excluded from this release type: "OPENSDK@ERROR" */
|
|
726
774
|
/* Excluded from this release type: "OPENSDK@TRANSFER_RECEIVE_PORT" */
|
|
727
775
|
/* Excluded from this release type: "OPENSDK@TRANSFER_SEND_PORT" */
|
|
728
776
|
/* Excluded from this release type: "OPENSDK@MESSAGE" */
|
|
729
777
|
/* Excluded from this release type: "OPENSDK@HEIGHT_UPDATE" */
|
|
778
|
+
/* Excluded from this release type: "OPENSDK@DESTROY_ELEMENT" */
|
|
730
779
|
}
|
|
731
780
|
|
|
732
781
|
declare interface BaseConfig {
|
|
@@ -747,6 +796,7 @@ declare interface BaseConfig {
|
|
|
747
796
|
*/
|
|
748
797
|
locale?: string;
|
|
749
798
|
/* Excluded from this release type: version */
|
|
799
|
+
/* Excluded from this release type: colorScheme */
|
|
750
800
|
}
|
|
751
801
|
|
|
752
802
|
/**
|
|
@@ -761,21 +811,26 @@ declare abstract class BaseElement<Config extends BaseElementConfig = BaseElemen
|
|
|
761
811
|
/* Excluded from this release type: bridge */
|
|
762
812
|
/* Excluded from this release type: hooks */
|
|
763
813
|
/* Excluded from this release type: iframe */
|
|
764
|
-
status:
|
|
814
|
+
status: ElementStatus;
|
|
765
815
|
/* Excluded from this release type: cachedSend */
|
|
816
|
+
/** Reuses the pending reply for concurrent submit calls. */
|
|
817
|
+
private submitPromise?;
|
|
766
818
|
constructor(name: string, config: WithAppURL<Config>);
|
|
767
819
|
/* Excluded from this release type: submit */
|
|
768
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 */
|
|
769
824
|
/**
|
|
770
|
-
* @param {
|
|
825
|
+
* @param {HTMLElement} container
|
|
771
826
|
*/
|
|
772
|
-
mount(
|
|
827
|
+
mount(container: HTMLElement): Promise<void>;
|
|
773
828
|
/* Excluded from this release type: _mount */
|
|
774
829
|
/**
|
|
775
830
|
* 更新webapp配置
|
|
776
831
|
* @param {Partial<BaseElementAppConfig>} newConfig
|
|
777
832
|
*/
|
|
778
|
-
updateConfig(newConfig: Partial<Config['appConfig']>):
|
|
833
|
+
updateConfig(newConfig: Partial<Config['appConfig']>): Promise<EventMap["OPENSDK@UPDATE_CONFIG_REPLY"]>;
|
|
779
834
|
/**
|
|
780
835
|
* 卸载元素
|
|
781
836
|
*/
|
|
@@ -808,13 +863,14 @@ declare abstract class BaseElement<Config extends BaseElementConfig = BaseElemen
|
|
|
808
863
|
}
|
|
809
864
|
|
|
810
865
|
declare interface BaseElementAppConfig {
|
|
811
|
-
locale
|
|
866
|
+
/* Excluded from this release type: locale */
|
|
812
867
|
/* Excluded from this release type: env */
|
|
813
868
|
/* Excluded from this release type: merchantId */
|
|
814
869
|
[key: string]: any;
|
|
815
870
|
}
|
|
816
871
|
|
|
817
|
-
declare interface BaseElementConfig<T extends BaseElementAppConfig =
|
|
872
|
+
declare interface BaseElementConfig<T extends BaseElementAppConfig = BaseElementAppConfig> extends BaseConfig {
|
|
873
|
+
/* Excluded from this release type: trackId */
|
|
818
874
|
appConfig: T;
|
|
819
875
|
elementMode: ElementMode;
|
|
820
876
|
}
|
|
@@ -865,6 +921,7 @@ declare abstract class BaseFactory {
|
|
|
865
921
|
*/
|
|
866
922
|
constructor(config: BaseFactoryConfig);
|
|
867
923
|
protected openModal(payload: BaseBridgeEventMap['OPENSDK@OPEN_MODAL']): Promise<OpenModalHandle>;
|
|
924
|
+
protected redirect(payload: BaseBridgeEventMap['OPENSDK@REDIRECT']): void | Promise<void>;
|
|
868
925
|
/* Excluded from this release type: canUseElements */
|
|
869
926
|
/**
|
|
870
927
|
* @description 无需手动调用
|
|
@@ -904,26 +961,6 @@ declare interface BaseFactoryConfig extends BaseConfig {
|
|
|
904
961
|
/* Excluded from this release type: trackerCode */
|
|
905
962
|
}
|
|
906
963
|
|
|
907
|
-
declare type BaseInfo = BrowserInfo & DeviceInfo & NetworkInfo & LocationInfo & EnvInfo & OSInfo & {
|
|
908
|
-
sdk?: string;
|
|
909
|
-
marmotId?: string;
|
|
910
|
-
compatibleAppId?: string;
|
|
911
|
-
deviceId?: string;
|
|
912
|
-
userId?: string;
|
|
913
|
-
programVer?: string;
|
|
914
|
-
language?: string;
|
|
915
|
-
timezone?: string;
|
|
916
|
-
bizType?: string;
|
|
917
|
-
productId?: string;
|
|
918
|
-
clientId?: string;
|
|
919
|
-
visibleState?: 'visible' | 'hidden' | 'app-visible' | 'page-visible' | 'app-hidden' | 'page-hidden';
|
|
920
|
-
};
|
|
921
|
-
|
|
922
|
-
declare interface BaseInfoPlugin {
|
|
923
|
-
getAppName?(): Promise<string | undefined>;
|
|
924
|
-
getDefaultExtraInfo?(): Promise<BaseInfo>;
|
|
925
|
-
}
|
|
926
|
-
|
|
927
964
|
/**
|
|
928
965
|
* @description 主元素,可以独立提交
|
|
929
966
|
*/
|
|
@@ -939,6 +976,10 @@ declare abstract class BaseMainElement<Config extends BaseElementConfig = BaseEl
|
|
|
939
976
|
/* Excluded from this release type: _submit */
|
|
940
977
|
}
|
|
941
978
|
|
|
979
|
+
/**
|
|
980
|
+
* @description 打开模态框的配置项。
|
|
981
|
+
* 包含显示选项、关闭行为、外观设置及初始化数据。
|
|
982
|
+
*/
|
|
942
983
|
declare interface BaseOpenModalConfig {
|
|
943
984
|
/**
|
|
944
985
|
* 无需手动传递,app的唯一scope
|
|
@@ -962,74 +1003,23 @@ declare interface BaseOpenModalConfig {
|
|
|
962
1003
|
onClose?: () => void;
|
|
963
1004
|
url: string;
|
|
964
1005
|
/**
|
|
965
|
-
*
|
|
1006
|
+
* @description 关闭时,是否需要告知webapp页面来进行关闭 链路为 modalApp 告知-> webapp 关闭-> sdk,默认为false,即直接在modal中进行关闭 modalApp 关闭-> sdk,
|
|
966
1007
|
*/
|
|
967
1008
|
closeConfirm?: boolean;
|
|
1009
|
+
/**
|
|
1010
|
+
* @description 需要同步的外观配置
|
|
1011
|
+
*/
|
|
968
1012
|
appearance?: Appearance;
|
|
1013
|
+
/**
|
|
1014
|
+
* @description 需要传递的初始化数据
|
|
1015
|
+
*/
|
|
1016
|
+
initialData?: Record<string, any>;
|
|
1017
|
+
/**
|
|
1018
|
+
* @description 无需手动传递, 模态框的唯一标识
|
|
1019
|
+
*/
|
|
1020
|
+
modalId?: string;
|
|
969
1021
|
}
|
|
970
1022
|
|
|
971
|
-
declare type BehaviorConfig = {
|
|
972
|
-
enableConsole?: boolean;
|
|
973
|
-
};
|
|
974
|
-
|
|
975
|
-
declare interface BehaviorData {
|
|
976
|
-
type: string;
|
|
977
|
-
data: {
|
|
978
|
-
msg?: string | null;
|
|
979
|
-
from?: string;
|
|
980
|
-
to?: string;
|
|
981
|
-
};
|
|
982
|
-
timestamp: number;
|
|
983
|
-
times?: number;
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
declare type BlankMonitorConfig = {
|
|
987
|
-
selector?: string | string[];
|
|
988
|
-
delay?: number | (() => number);
|
|
989
|
-
persistent?: boolean;
|
|
990
|
-
};
|
|
991
|
-
|
|
992
|
-
declare interface BrowserInfo {
|
|
993
|
-
title?: string;
|
|
994
|
-
fullUrl?: string;
|
|
995
|
-
url?: string;
|
|
996
|
-
referrer?: string;
|
|
997
|
-
domCnt?: number;
|
|
998
|
-
delay?: number;
|
|
999
|
-
scrollTop?: number;
|
|
1000
|
-
lastAction?: string;
|
|
1001
|
-
sessionId?: string;
|
|
1002
|
-
containerPageSessionId?: string;
|
|
1003
|
-
containerSessionId?: string;
|
|
1004
|
-
ua?: string;
|
|
1005
|
-
browser?: string;
|
|
1006
|
-
cCoreVer?: string;
|
|
1007
|
-
assetsVer?: string;
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
declare type C = {
|
|
1011
|
-
c1?: string;
|
|
1012
|
-
c2?: string;
|
|
1013
|
-
c3?: string;
|
|
1014
|
-
c4?: string;
|
|
1015
|
-
c5?: string;
|
|
1016
|
-
c6?: string;
|
|
1017
|
-
c7?: string;
|
|
1018
|
-
c8?: string;
|
|
1019
|
-
c9?: string;
|
|
1020
|
-
c10?: string;
|
|
1021
|
-
c11?: string;
|
|
1022
|
-
c12?: string;
|
|
1023
|
-
c13?: string;
|
|
1024
|
-
c14?: string;
|
|
1025
|
-
c15?: string;
|
|
1026
|
-
c16?: string;
|
|
1027
|
-
c17?: string;
|
|
1028
|
-
c18?: string;
|
|
1029
|
-
c19?: string;
|
|
1030
|
-
c20?: string;
|
|
1031
|
-
};
|
|
1032
|
-
|
|
1033
1023
|
/**
|
|
1034
1024
|
* @description C2P标识
|
|
1035
1025
|
*/
|
|
@@ -1063,6 +1053,12 @@ declare interface C2PProps {
|
|
|
1063
1053
|
merchantTransactionId?: string;
|
|
1064
1054
|
}
|
|
1065
1055
|
|
|
1056
|
+
/* Excluded from this release type: CallbackErrorInfo */
|
|
1057
|
+
|
|
1058
|
+
/* Excluded from this release type: CallbackReturnData */
|
|
1059
|
+
|
|
1060
|
+
/* Excluded from this release type: CallbackSessionNextAction */
|
|
1061
|
+
|
|
1066
1062
|
declare interface CardIssuerAuthentication {
|
|
1067
1063
|
/**
|
|
1068
1064
|
* @description 卡售卖单元
|
|
@@ -1480,7 +1476,7 @@ declare interface CashierSdkActionQueryResult {
|
|
|
1480
1476
|
/**
|
|
1481
1477
|
* @description 物流信息, 包含物流地址和物流费
|
|
1482
1478
|
*/
|
|
1483
|
-
shippingInfo?:
|
|
1479
|
+
shippingInfo?: ShippingInfo_2;
|
|
1484
1480
|
/**
|
|
1485
1481
|
* @description 用户已绑资产信息
|
|
1486
1482
|
*/
|
|
@@ -1513,28 +1509,6 @@ declare interface ChargeInfo {
|
|
|
1513
1509
|
chargeActualAmountView?: PaymentView;
|
|
1514
1510
|
}
|
|
1515
1511
|
|
|
1516
|
-
/** click 事件 resolve 参数 */
|
|
1517
|
-
export declare interface ClickResolveOptions {
|
|
1518
|
-
amount?: {
|
|
1519
|
-
currency: string;
|
|
1520
|
-
value: string;
|
|
1521
|
-
};
|
|
1522
|
-
shippingAddressRequired?: boolean;
|
|
1523
|
-
allowedShippingCountries?: string[];
|
|
1524
|
-
shippingRates?: Array<{
|
|
1525
|
-
id: string;
|
|
1526
|
-
displayName: string;
|
|
1527
|
-
amount: string;
|
|
1528
|
-
}>;
|
|
1529
|
-
lineItems?: Array<{
|
|
1530
|
-
name: string;
|
|
1531
|
-
amount: string;
|
|
1532
|
-
}>;
|
|
1533
|
-
business?: {
|
|
1534
|
-
name: string;
|
|
1535
|
-
};
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
1512
|
declare interface CodeFormView {
|
|
1539
1513
|
/**
|
|
1540
1514
|
* @description title
|
|
@@ -1560,6 +1534,11 @@ declare interface CodeFormView {
|
|
|
1560
1534
|
* @description label
|
|
1561
1535
|
*/
|
|
1562
1536
|
label?: string;
|
|
1537
|
+
/**
|
|
1538
|
+
* @description Payment guidance information (CKP scenario) The frontend only displays the payment guide button
|
|
1539
|
+
* when appLinkUrlForWeb is populated
|
|
1540
|
+
*/
|
|
1541
|
+
paymentGuideInfo?: PaymentGuideInfo;
|
|
1563
1542
|
/**
|
|
1564
1543
|
* @description 提醒事项
|
|
1565
1544
|
*/
|
|
@@ -1576,6 +1555,10 @@ declare interface CodeFormView {
|
|
|
1576
1555
|
* @description 码过期时间
|
|
1577
1556
|
*/
|
|
1578
1557
|
codeExpireTime?: string;
|
|
1558
|
+
/**
|
|
1559
|
+
* @description QR code configuration including renderStyle, centerIcon and cornerIcon
|
|
1560
|
+
*/
|
|
1561
|
+
qrcodeConfig?: QrCodeConfig;
|
|
1579
1562
|
}
|
|
1580
1563
|
|
|
1581
1564
|
/**
|
|
@@ -2043,68 +2026,7 @@ declare interface ComIpayIexpprodServiceFacadeCommonPromotionInfo {
|
|
|
2043
2026
|
extendInfo?: Record<string, string>;
|
|
2044
2027
|
}
|
|
2045
2028
|
|
|
2046
|
-
declare
|
|
2047
|
-
private mdata;
|
|
2048
|
-
initi(options: OriginTrackerInitOptions & {
|
|
2049
|
-
performance?: boolean;
|
|
2050
|
-
error?: boolean;
|
|
2051
|
-
}): Promise<boolean>;
|
|
2052
|
-
set(options: Record<string, any>): void;
|
|
2053
|
-
protected getDefaultExtraInfo(): Promise<{
|
|
2054
|
-
title?: string | undefined;
|
|
2055
|
-
fullUrl?: string | undefined;
|
|
2056
|
-
url?: string | undefined;
|
|
2057
|
-
referrer?: string | undefined;
|
|
2058
|
-
domCnt?: number | undefined;
|
|
2059
|
-
delay?: number | undefined;
|
|
2060
|
-
scrollTop?: number | undefined;
|
|
2061
|
-
lastAction?: string | undefined;
|
|
2062
|
-
sessionId?: string | undefined;
|
|
2063
|
-
containerPageSessionId?: string | undefined;
|
|
2064
|
-
containerSessionId?: string | undefined;
|
|
2065
|
-
ua?: string | undefined;
|
|
2066
|
-
browser?: string | undefined;
|
|
2067
|
-
cCoreVer?: string | undefined;
|
|
2068
|
-
assetsVer?: string | undefined;
|
|
2069
|
-
device?: string | undefined;
|
|
2070
|
-
deviceType?: string | undefined;
|
|
2071
|
-
deviceBrand?: string | undefined;
|
|
2072
|
-
deviceModel?: string | undefined;
|
|
2073
|
-
screenWidth?: number | undefined;
|
|
2074
|
-
screenHeight?: number | undefined;
|
|
2075
|
-
contentHeight?: number | undefined;
|
|
2076
|
-
pixelRatio?: number | undefined;
|
|
2077
|
-
cClient?: string | undefined;
|
|
2078
|
-
networkType?: string | undefined;
|
|
2079
|
-
isp?: string | undefined;
|
|
2080
|
-
ip?: string | undefined;
|
|
2081
|
-
countryName?: string | undefined;
|
|
2082
|
-
cityName?: string | undefined;
|
|
2083
|
-
provinceName?: string | undefined;
|
|
2084
|
-
area?: string | undefined;
|
|
2085
|
-
env?: Env_2 | undefined;
|
|
2086
|
-
sprintId?: string | undefined;
|
|
2087
|
-
container?: string | undefined;
|
|
2088
|
-
cOfflineVer?: string | undefined;
|
|
2089
|
-
serverIp?: string | undefined;
|
|
2090
|
-
serverEnv?: string | undefined;
|
|
2091
|
-
canaryFlag?: string | undefined;
|
|
2092
|
-
os?: string | undefined;
|
|
2093
|
-
osVer?: string | undefined;
|
|
2094
|
-
sdk?: string | undefined;
|
|
2095
|
-
marmotId?: string | undefined;
|
|
2096
|
-
compatibleAppId?: string | undefined;
|
|
2097
|
-
deviceId?: string | undefined;
|
|
2098
|
-
userId?: string | undefined;
|
|
2099
|
-
programVer?: string | undefined;
|
|
2100
|
-
language?: string | undefined;
|
|
2101
|
-
timezone?: string | undefined;
|
|
2102
|
-
bizType?: string | undefined;
|
|
2103
|
-
productId?: string | undefined;
|
|
2104
|
-
clientId?: string | undefined;
|
|
2105
|
-
visibleState?: "hidden" | "visible" | "app-visible" | "page-visible" | "app-hidden" | "page-hidden" | undefined;
|
|
2106
|
-
}>;
|
|
2107
|
-
}
|
|
2029
|
+
declare type CompatibleTrackerFullOptions = ConstructorParameters<typeof CompatibleTrackerFull>[0];
|
|
2108
2030
|
|
|
2109
2031
|
/**
|
|
2110
2032
|
* @description googlePay createPaymentSession 入参
|
|
@@ -2129,13 +2051,17 @@ export declare interface ConfirmCardSetupOptions {
|
|
|
2129
2051
|
redirect?: 'always' | 'if_required';
|
|
2130
2052
|
}
|
|
2131
2053
|
|
|
2132
|
-
export declare interface ConfirmPaymentOptions extends Omit<ConfirmCardSetupOptions, 'elements'
|
|
2054
|
+
export declare interface ConfirmPaymentOptions extends Omit<ConfirmCardSetupOptions, 'elements'>, PaymentSubmitParams {
|
|
2133
2055
|
sessionData: string;
|
|
2134
2056
|
/**
|
|
2135
|
-
* @description 传入已挂载的 CVVElement
|
|
2057
|
+
* @description 传入已挂载的 CVVElement / PaymentElement / Elements 实例,不传则使用无 UI 自动提交模式
|
|
2136
2058
|
*/
|
|
2137
2059
|
elements?: BaseMainElement | BaseElements;
|
|
2138
2060
|
appearance?: CVVAppearance;
|
|
2061
|
+
/**
|
|
2062
|
+
* @description 集成用户自定义信息(如 cardHolderName)
|
|
2063
|
+
*/
|
|
2064
|
+
params?: Record<string, unknown>;
|
|
2139
2065
|
}
|
|
2140
2066
|
|
|
2141
2067
|
/**
|
|
@@ -2207,6 +2133,13 @@ declare namespace CSS_2 {
|
|
|
2207
2133
|
}
|
|
2208
2134
|
}
|
|
2209
2135
|
|
|
2136
|
+
/**
|
|
2137
|
+
* CSS 字体源 — 通过 <link> 标签加载外部 CSS(如 Google Fonts)
|
|
2138
|
+
*/
|
|
2139
|
+
declare interface CssFontSource {
|
|
2140
|
+
cssSrc: string;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2210
2143
|
declare interface CurrencyInfo {
|
|
2211
2144
|
/**
|
|
2212
2145
|
* @description Getter method for property <tt>currencyCode</tt>.
|
|
@@ -2252,15 +2185,21 @@ declare interface CustomerFxInfo {
|
|
|
2252
2185
|
}
|
|
2253
2186
|
|
|
2254
2187
|
/**
|
|
2255
|
-
*
|
|
2188
|
+
* 自定义字体源 — 通过 @font-face 加载自托管字体
|
|
2256
2189
|
*/
|
|
2257
|
-
declare
|
|
2190
|
+
declare interface CustomFontSource {
|
|
2191
|
+
family: string;
|
|
2192
|
+
src: string;
|
|
2193
|
+
weight?: string;
|
|
2194
|
+
style?: string;
|
|
2195
|
+
unicodeRange?: string;
|
|
2196
|
+
}
|
|
2258
2197
|
|
|
2259
2198
|
/**
|
|
2260
2199
|
* @public
|
|
2261
2200
|
* @description CVV element app config type
|
|
2262
2201
|
*/
|
|
2263
|
-
export declare interface CVVAppConfig extends BaseAppearance<CVVAppearance
|
|
2202
|
+
export declare interface CVVAppConfig extends BaseAppearance<CVVAppearance>, BaseElementAppConfig {
|
|
2264
2203
|
/**
|
|
2265
2204
|
* @description sessionData
|
|
2266
2205
|
*/
|
|
@@ -2280,7 +2219,8 @@ export declare type CVVAppearance = PickAppearance<CVVAppearanceProps>;
|
|
|
2280
2219
|
|
|
2281
2220
|
export declare type CVVAppearanceProps = {
|
|
2282
2221
|
theme: AntomTheme;
|
|
2283
|
-
variables:
|
|
2222
|
+
variables: AntomVariables;
|
|
2223
|
+
fonts?: FontSource[];
|
|
2284
2224
|
};
|
|
2285
2225
|
|
|
2286
2226
|
/**
|
|
@@ -2366,6 +2306,10 @@ export declare interface CVVSubmitParams {
|
|
|
2366
2306
|
* 重定向策略
|
|
2367
2307
|
*/
|
|
2368
2308
|
redirect?: 'always' | 'if_required';
|
|
2309
|
+
/**
|
|
2310
|
+
* 集成用户自定义信息(如 cardHolderName)
|
|
2311
|
+
*/
|
|
2312
|
+
params?: Record<string, unknown>;
|
|
2369
2313
|
}
|
|
2370
2314
|
|
|
2371
2315
|
declare interface DanaSofCouponInfo {
|
|
@@ -2943,18 +2887,6 @@ declare interface DeliveryEstimateInfo {
|
|
|
2943
2887
|
value?: number;
|
|
2944
2888
|
}
|
|
2945
2889
|
|
|
2946
|
-
declare interface DeviceInfo {
|
|
2947
|
-
device?: string;
|
|
2948
|
-
deviceType?: string;
|
|
2949
|
-
deviceBrand?: string;
|
|
2950
|
-
deviceModel?: string;
|
|
2951
|
-
screenWidth?: number;
|
|
2952
|
-
screenHeight?: number;
|
|
2953
|
-
contentHeight?: number;
|
|
2954
|
-
pixelRatio?: number;
|
|
2955
|
-
cClient?: string;
|
|
2956
|
-
}
|
|
2957
|
-
|
|
2958
2890
|
/**
|
|
2959
2891
|
* @description 立减型营销信息
|
|
2960
2892
|
*/
|
|
@@ -3000,29 +2932,6 @@ declare interface DisplayItem {
|
|
|
3000
2932
|
status?: string;
|
|
3001
2933
|
}
|
|
3002
2934
|
|
|
3003
|
-
declare type DMC = {
|
|
3004
|
-
d1?: number | string;
|
|
3005
|
-
d2?: number | string;
|
|
3006
|
-
d3?: number | string;
|
|
3007
|
-
d4?: number | string;
|
|
3008
|
-
d5?: number | string;
|
|
3009
|
-
d6?: number | string;
|
|
3010
|
-
d7?: number | string;
|
|
3011
|
-
d8?: number | string;
|
|
3012
|
-
d9?: number | string;
|
|
3013
|
-
d10?: number | string;
|
|
3014
|
-
d11?: number | string;
|
|
3015
|
-
d12?: number | string;
|
|
3016
|
-
d13?: number | string;
|
|
3017
|
-
d14?: number | string;
|
|
3018
|
-
d15?: number | string;
|
|
3019
|
-
d16?: number | string;
|
|
3020
|
-
d17?: number | string;
|
|
3021
|
-
d18?: number | string;
|
|
3022
|
-
d19?: number | string;
|
|
3023
|
-
d20?: number | string;
|
|
3024
|
-
} & C & M;
|
|
3025
|
-
|
|
3026
2935
|
/**
|
|
3027
2936
|
* @description 元素列表项类型
|
|
3028
2937
|
*/
|
|
@@ -3084,21 +2993,9 @@ declare class Elements extends BaseElements {
|
|
|
3084
2993
|
getElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
|
|
3085
2994
|
}
|
|
3086
2995
|
|
|
3087
|
-
declare type
|
|
3088
|
-
|
|
3089
|
-
declare type Env = 'local' | 'dev' | 'sit' | 'pre' | 'prod';
|
|
2996
|
+
declare type ElementStatus = 'initialized' | 'mounting' | 'mounted' | 'ready' | 'destroyed' | 'unmounted';
|
|
3090
2997
|
|
|
3091
|
-
declare type
|
|
3092
|
-
|
|
3093
|
-
declare interface EnvInfo {
|
|
3094
|
-
env?: Env_2;
|
|
3095
|
-
sprintId?: string;
|
|
3096
|
-
container?: string;
|
|
3097
|
-
cOfflineVer?: string;
|
|
3098
|
-
serverIp?: string;
|
|
3099
|
-
serverEnv?: string;
|
|
3100
|
-
canaryFlag?: string;
|
|
3101
|
-
}
|
|
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';
|
|
3102
2999
|
|
|
3103
3000
|
/**
|
|
3104
3001
|
* @description 错误上下文对象。参考主站<code>ErrorContext</code>实现。
|
|
@@ -3129,9 +3026,11 @@ declare type ErrorSource = ErrorSource_2;
|
|
|
3129
3026
|
|
|
3130
3027
|
declare type ErrorSource_2 = 'SDK_INTERNAL' | 'SDK_USAGE' | 'APP_RUNTIME' | 'SERVER_API' | 'SYSTEM';
|
|
3131
3028
|
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3029
|
+
/**
|
|
3030
|
+
* @description 工具类型,从类型中排除 undefined。
|
|
3031
|
+
* 如果 T 继承 undefined 则返回 never,否则返回 T。
|
|
3032
|
+
*/
|
|
3033
|
+
declare type ExcludeUndefined<T> = T extends undefined ? never : T;
|
|
3135
3034
|
|
|
3136
3035
|
/**
|
|
3137
3036
|
* @description 卡分期计划
|
|
@@ -3175,6 +3074,22 @@ declare interface ExpCardPlan {
|
|
|
3175
3074
|
* @description 每个月分期利息
|
|
3176
3075
|
*/
|
|
3177
3076
|
monthlyInterest?: ComIpayIexpprodServiceFacadeCommonAmount;
|
|
3077
|
+
/**
|
|
3078
|
+
* @description 分期有效期开始时间
|
|
3079
|
+
*/
|
|
3080
|
+
validStartTime?: string;
|
|
3081
|
+
/**
|
|
3082
|
+
* @description 分期有效期结束时间
|
|
3083
|
+
*/
|
|
3084
|
+
validEndTime?: string;
|
|
3085
|
+
/**
|
|
3086
|
+
* @description 支持的银行信息
|
|
3087
|
+
*
|
|
3088
|
+
* 包含该分期计划支持的银行详细信息,包括银行简称、logo等。
|
|
3089
|
+
* 该字段从 installmentBanks 数据中通过 bankShortName 关联而来,
|
|
3090
|
+
* 若分期计划无银行限制或未匹配到银行信息,该字段可能为null。@see ExpSupportIppBank
|
|
3091
|
+
*/
|
|
3092
|
+
supportedBank?: ExpSupportIppBank;
|
|
3178
3093
|
}
|
|
3179
3094
|
|
|
3180
3095
|
declare interface ExpInstallmentInfo {
|
|
@@ -3199,12 +3114,18 @@ declare interface ExpPaymentOptionDetail {
|
|
|
3199
3114
|
* @public
|
|
3200
3115
|
* @description Express element app config type
|
|
3201
3116
|
*/
|
|
3202
|
-
export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetting
|
|
3117
|
+
export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetting>, BaseElementAppConfig {
|
|
3203
3118
|
/** payment SessionData */
|
|
3204
3119
|
sessionData?: string;
|
|
3205
3120
|
/** Business division (country/region) */
|
|
3206
3121
|
businessDivision?: string;
|
|
3207
|
-
/**
|
|
3122
|
+
/**
|
|
3123
|
+
* Amount & Currency
|
|
3124
|
+
*
|
|
3125
|
+
* Only effective via `updateConfig({ amount })` at runtime.
|
|
3126
|
+
* Passing amount at creation time is ignored; the initial amount
|
|
3127
|
+
* comes from the server-side sdkQuery result (renderData.paymentAmount).
|
|
3128
|
+
*/
|
|
3208
3129
|
amount?: {
|
|
3209
3130
|
currency: string;
|
|
3210
3131
|
value: string;
|
|
@@ -3213,20 +3134,20 @@ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetti
|
|
|
3213
3134
|
paypal?: PayPalConfig;
|
|
3214
3135
|
/**
|
|
3215
3136
|
* Button text type (following Stripe Express Checkout Element design)
|
|
3216
|
-
* Each payment method can independently set the button display text
|
|
3217
|
-
* Reserved index signature for future payment method integration
|
|
3137
|
+
* Each payment method can independently set the button display text.
|
|
3218
3138
|
*/
|
|
3219
3139
|
buttonType?: {
|
|
3220
3140
|
/** PayPal: paypal | checkout | buynow | pay */
|
|
3221
3141
|
paypal?: 'paypal' | 'checkout' | 'buynow' | 'pay';
|
|
3222
3142
|
[method: string]: string | undefined;
|
|
3223
3143
|
};
|
|
3224
|
-
/**
|
|
3144
|
+
/**
|
|
3145
|
+
* Unified height for all buttons (px)
|
|
3146
|
+
*/
|
|
3225
3147
|
buttonHeight?: number;
|
|
3226
3148
|
/**
|
|
3227
3149
|
* Button color theme (following Stripe Express Checkout Element design)
|
|
3228
|
-
* Each payment method can independently set the theme color
|
|
3229
|
-
* Reserved index signature for future payment method integration
|
|
3150
|
+
* Each payment method can independently set the theme color.
|
|
3230
3151
|
*/
|
|
3231
3152
|
buttonTheme?: {
|
|
3232
3153
|
/** PayPal: gold | blue | silver | white | black */
|
|
@@ -3244,6 +3165,13 @@ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetti
|
|
|
3244
3165
|
* Locale for internationalization, passed from entry params (loadAntom), default to en_US
|
|
3245
3166
|
*/
|
|
3246
3167
|
locale?: string;
|
|
3168
|
+
/**
|
|
3169
|
+
* 是否运行在 Native App 的 WebView 中。
|
|
3170
|
+
* 为 true 时,跳转通过 onRedirect 事件委托给 Native 端处理。
|
|
3171
|
+
*/
|
|
3172
|
+
isNativeAppWebview?: boolean;
|
|
3173
|
+
/* Excluded from this release type: merchantDomain */
|
|
3174
|
+
/* Excluded from this release type: doMain */
|
|
3247
3175
|
}
|
|
3248
3176
|
|
|
3249
3177
|
/** cancel 事件负载 */
|
|
@@ -3252,24 +3180,54 @@ export declare interface ExpressCancelEvent {
|
|
|
3252
3180
|
data?: any;
|
|
3253
3181
|
}
|
|
3254
3182
|
|
|
3255
|
-
/** click
|
|
3183
|
+
/** click 事件负载(纯通知,商户可用于埋点,SDK 不等待响应) */
|
|
3256
3184
|
export declare interface ExpressClickEvent {
|
|
3257
3185
|
expressPaymentType: string;
|
|
3258
|
-
resolve: (options: ClickResolveOptions) => void;
|
|
3259
3186
|
}
|
|
3260
3187
|
|
|
3261
3188
|
/** confirm 事件负载(统一终态,替代 approve) */
|
|
3262
3189
|
export declare interface ExpressConfirmData {
|
|
3263
3190
|
expressPaymentType: string;
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3191
|
+
billingDetails?: {
|
|
3192
|
+
name?: string;
|
|
3193
|
+
email?: string;
|
|
3194
|
+
phone?: string;
|
|
3195
|
+
address?: {
|
|
3196
|
+
line1?: string;
|
|
3197
|
+
line2?: string;
|
|
3198
|
+
city?: string;
|
|
3199
|
+
state?: string;
|
|
3200
|
+
postalCode?: string;
|
|
3201
|
+
country?: string;
|
|
3202
|
+
};
|
|
3203
|
+
};
|
|
3204
|
+
shippingAddress?: {
|
|
3205
|
+
name?: string;
|
|
3206
|
+
phone?: string;
|
|
3207
|
+
address?: {
|
|
3208
|
+
line1?: string;
|
|
3209
|
+
line2?: string;
|
|
3210
|
+
city?: string;
|
|
3211
|
+
state?: string;
|
|
3212
|
+
postalCode?: string;
|
|
3213
|
+
country?: string;
|
|
3214
|
+
};
|
|
3215
|
+
};
|
|
3216
|
+
/** 支付方式返回的原始支付数据(如 alipayCn、applePay 等) */
|
|
3217
|
+
paymentData?: unknown;
|
|
3218
|
+
/**
|
|
3219
|
+
* 商户主动拒绝本次支付(如库存不足、价格变动等)。
|
|
3220
|
+
* 调用后 SDK 立即取消支付流程,confirmPayment() 无需调用。
|
|
3221
|
+
*/
|
|
3222
|
+
paymentFailed: () => void;
|
|
3268
3223
|
}
|
|
3269
3224
|
|
|
3270
3225
|
/**
|
|
3271
3226
|
* @public
|
|
3272
3227
|
* @description Express element - express checkout element, supports PayPal / Apple Pay / Google Pay
|
|
3228
|
+
*
|
|
3229
|
+
* Host 侧只保留 Element 生命周期、商户事件包装和 bridge 连接。
|
|
3230
|
+
* AP/GP/AlipayCN 的 submit、2DS/3DS、polling 结果处理都由 express_element webapp 承接。
|
|
3273
3231
|
*/
|
|
3274
3232
|
export declare class ExpressElement extends BaseMainElement<ExpressElementConfig, ExpressElementEvents> {
|
|
3275
3233
|
static elementType: string;
|
|
@@ -3277,15 +3235,44 @@ export declare class ExpressElement extends BaseMainElement<ExpressElementConfig
|
|
|
3277
3235
|
* Store all function-type callbacks locally, not involved in postMessage serialization
|
|
3278
3236
|
*/
|
|
3279
3237
|
private _callbacks;
|
|
3238
|
+
/** setup 阶段的 renderData,仅供非 Safari PC Apple Pay host-token 路径读取 paymentRequest。 */
|
|
3239
|
+
private _renderData;
|
|
3240
|
+
private _hostSign;
|
|
3241
|
+
/**
|
|
3242
|
+
* 本地事件处理器(绕过 bridge 的 host→webapp 方向限制)。
|
|
3243
|
+
* bridge.on 只能监听 iframe 发来的消息;SDK host 主动推送事件给商户时走 _emit → _localHandlers。
|
|
3244
|
+
*/
|
|
3245
|
+
private _localHandlers;
|
|
3246
|
+
/** 支付流程进行中标志(click → confirm/error/cancel 之间) */
|
|
3247
|
+
private _paymentInProgress;
|
|
3248
|
+
private _paypalOverlay;
|
|
3280
3249
|
constructor(name: string, config: ExpressElementConfig);
|
|
3281
|
-
setup(): Promise<Partial<ExpressAppConfig> | undefined>;
|
|
3282
3250
|
/**
|
|
3283
|
-
*
|
|
3251
|
+
* 重写 on:
|
|
3252
|
+
* 1. 对 confirm 事件拦截,在商户回调执行前注入 paymentFailed()
|
|
3253
|
+
* 2. 对 onRedirect 事件同步注册到 _localHandlers(SDK host 主动推送时商户能收到)
|
|
3254
|
+
*/
|
|
3255
|
+
on(event: string, handler: (...args: any[]) => void): void;
|
|
3256
|
+
/**
|
|
3257
|
+
* SDK host 主动推送事件给商户(不走 bridge postMessage,直接调用本地注册的 handler)。
|
|
3258
|
+
* 用于 Native WebView 场景下 SDK 需要向商户透传跳转信息等。
|
|
3284
3259
|
*/
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3260
|
+
private _emit;
|
|
3261
|
+
updateConfig(newConfig: Pick<ExpressAppConfig, 'amount'>): Promise<ExpressElementEvents['OPENSDK@UPDATE_CONFIG_REPLY']>;
|
|
3262
|
+
/**
|
|
3263
|
+
* 商户在 confirm 回调内调用,触发实际支付提交。
|
|
3264
|
+
* iframe 收到 OPENSDK@COMPLETE_PAYMENT 后执行 submitPay / polling 等,
|
|
3265
|
+
* 完成后通过 OPENSDK@COMPLETE_PAYMENT_RESULT 回包,Promise resolve。
|
|
3266
|
+
*/
|
|
3267
|
+
completePayment(redirect?: 'always' | 'if_required'): Promise<{
|
|
3268
|
+
success: boolean;
|
|
3269
|
+
result?: any;
|
|
3270
|
+
error?: {
|
|
3271
|
+
code: string;
|
|
3272
|
+
message: string;
|
|
3273
|
+
};
|
|
3274
|
+
}>;
|
|
3275
|
+
setup(): Promise<Partial<ExpressAppConfig> | undefined>;
|
|
3289
3276
|
private registerInternalListeners;
|
|
3290
3277
|
protected focus(): void;
|
|
3291
3278
|
protected blur(): void;
|
|
@@ -3303,57 +3290,83 @@ export declare interface ExpressElementConfig extends BaseElementConfig<ExpressA
|
|
|
3303
3290
|
* @public
|
|
3304
3291
|
* @description Express element events type
|
|
3305
3292
|
*/
|
|
3306
|
-
export declare interface ExpressElementEvents extends
|
|
3307
|
-
/**
|
|
3308
|
-
* @description Element ready event — 上报可用支付方式
|
|
3309
|
-
*/
|
|
3293
|
+
export declare interface ExpressElementEvents extends AntomBridgeWithNativeEventMap<ExpressAppConfig> {
|
|
3310
3294
|
ready: {
|
|
3311
3295
|
availablePaymentMethods: Record<string, boolean>;
|
|
3312
3296
|
};
|
|
3313
|
-
/**
|
|
3314
|
-
* @description 用户点击按钮 — 商户必须调用 event.resolve() 后 sheet 才弹出
|
|
3315
|
-
* 对 PayPal: resolve 为 no-op(PayPal 自行弹出 popup)
|
|
3316
|
-
*/
|
|
3317
3297
|
click: ExpressClickEvent;
|
|
3318
|
-
/**
|
|
3319
|
-
* @description 统一支付完成事件(替代 approve)
|
|
3320
|
-
* 用户授权完成后触发,通过 expressPaymentType 区分钱包类型
|
|
3321
|
-
*/
|
|
3322
3298
|
confirm: ExpressConfirmData;
|
|
3323
|
-
/**
|
|
3324
|
-
* @description 支付错误事件(扩展基类 ErrorPayload,新增 expressPaymentType)
|
|
3325
|
-
*/
|
|
3326
3299
|
error: ErrorPayload & {
|
|
3327
3300
|
expressPaymentType: string;
|
|
3328
3301
|
};
|
|
3329
|
-
/**
|
|
3330
|
-
* @description 用户取消支付
|
|
3331
|
-
*/
|
|
3332
3302
|
cancel: ExpressCancelEvent;
|
|
3333
|
-
/**
|
|
3334
|
-
* @description 用户在 sheet 内变更收货地址(AP/GP only,PayPal 不触发)
|
|
3335
|
-
*/
|
|
3336
3303
|
shippingaddresschange: {
|
|
3337
3304
|
expressPaymentType: string;
|
|
3338
3305
|
address: any;
|
|
3339
3306
|
resolve: (options: ShippingResolveOptions) => void;
|
|
3340
3307
|
reject: (reason: string) => void;
|
|
3341
3308
|
};
|
|
3342
|
-
/**
|
|
3343
|
-
* @description 用户在 sheet 内变更配送方式(AP/GP only,PayPal 不触发)
|
|
3344
|
-
*/
|
|
3345
3309
|
shippingratechange: {
|
|
3346
3310
|
expressPaymentType: string;
|
|
3347
3311
|
shippingRate: any;
|
|
3348
3312
|
resolve: (options: RateResolveOptions) => void;
|
|
3349
3313
|
};
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3314
|
+
contentHeightChanged: {
|
|
3315
|
+
height: number;
|
|
3316
|
+
};
|
|
3317
|
+
'OPENSDK@CLICK': {
|
|
3318
|
+
expressPaymentType: string;
|
|
3319
|
+
};
|
|
3320
|
+
'OPENSDK@CLICK_RESOLVE': Record<string, never>;
|
|
3321
|
+
'OPENSDK@PAYPAL_CREATE_ORDER': {
|
|
3322
|
+
requestId: string;
|
|
3323
|
+
};
|
|
3324
|
+
'OPENSDK@PAYPAL_CREATE_ORDER_REPLY': {
|
|
3325
|
+
requestId: string;
|
|
3326
|
+
sessionData?: string;
|
|
3327
|
+
error?: string;
|
|
3328
|
+
};
|
|
3329
|
+
'OPENSDK@PAYPAL_SHIPPING_ADDRESS_CHANGE': {
|
|
3330
|
+
requestId: string;
|
|
3331
|
+
shippingData: any;
|
|
3332
|
+
};
|
|
3333
|
+
'OPENSDK@PAYPAL_SHIPPING_ADDRESS_CHANGE_REPLY': {
|
|
3334
|
+
requestId: string;
|
|
3335
|
+
error?: string;
|
|
3336
|
+
};
|
|
3337
|
+
'OPENSDK@PAYPAL_SHIPPING_OPTIONS_CHANGE': {
|
|
3338
|
+
requestId: string;
|
|
3339
|
+
shippingData: any;
|
|
3340
|
+
};
|
|
3341
|
+
'OPENSDK@PAYPAL_SHIPPING_OPTIONS_CHANGE_REPLY': {
|
|
3342
|
+
requestId: string;
|
|
3343
|
+
error?: string;
|
|
3344
|
+
};
|
|
3345
|
+
'OPENSDK@GET_APPLE_PAY_TOKEN': {
|
|
3346
|
+
requestId: string;
|
|
3347
|
+
expressPaymentType: string;
|
|
3348
|
+
};
|
|
3349
|
+
/** host 完成 Apple Pay token 获取后回包给 iframe,submit/3DS/polling 均由 webapp 完成 */
|
|
3350
|
+
'OPENSDK@GET_APPLE_PAY_TOKEN_REPLY': {
|
|
3351
|
+
requestId: string;
|
|
3352
|
+
success: boolean;
|
|
3353
|
+
result?: any;
|
|
3354
|
+
errorCode?: string;
|
|
3355
|
+
errorMessage?: string;
|
|
3356
|
+
billingDetails?: any;
|
|
3357
|
+
shippingAddress?: any;
|
|
3358
|
+
};
|
|
3359
|
+
'OPENSDK@UPDATE_CONFIG_REPLY': {
|
|
3360
|
+
error?: ErrorPayload<string>;
|
|
3361
|
+
};
|
|
3362
|
+
'OPENSDK@COMPLETE_PAYMENT_REJECT': Record<string, never>;
|
|
3363
|
+
onRedirect: {
|
|
3364
|
+
normalUrl: string;
|
|
3365
|
+
applinkUrl?: string;
|
|
3366
|
+
schemaUrl?: string;
|
|
3367
|
+
isDestroy: boolean;
|
|
3368
|
+
needReset: boolean;
|
|
3369
|
+
};
|
|
3357
3370
|
}
|
|
3358
3371
|
|
|
3359
3372
|
declare interface ExpSupportBank {
|
|
@@ -3378,6 +3391,24 @@ declare interface ExpSupportCardBrand {
|
|
|
3378
3391
|
logo?: Logo;
|
|
3379
3392
|
}
|
|
3380
3393
|
|
|
3394
|
+
/**
|
|
3395
|
+
* @description 支持的分期银行信息
|
|
3396
|
+
*/
|
|
3397
|
+
declare interface ExpSupportIppBank {
|
|
3398
|
+
/**
|
|
3399
|
+
* @description bank short name or bank code
|
|
3400
|
+
*/
|
|
3401
|
+
bankShortName?: string;
|
|
3402
|
+
/**
|
|
3403
|
+
* @description logo
|
|
3404
|
+
*/
|
|
3405
|
+
logo?: Logo;
|
|
3406
|
+
/**
|
|
3407
|
+
* @description bins
|
|
3408
|
+
*/
|
|
3409
|
+
bins?: string[];
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3381
3412
|
declare type Fallback<T> = { [P in keyof T]: T[P] | readonly NonNullable<T[P]>[] };
|
|
3382
3413
|
|
|
3383
3414
|
declare interface FirstPhaseSubscriptionDetail {
|
|
@@ -3395,6 +3426,27 @@ declare interface FirstPhaseSubscriptionDetail {
|
|
|
3395
3426
|
promotionDetails?: PromotionDetail[];
|
|
3396
3427
|
}
|
|
3397
3428
|
|
|
3429
|
+
declare type FontSource = CssFontSource | CustomFontSource;
|
|
3430
|
+
|
|
3431
|
+
declare interface FrontModulesToBeLoadedInterface {
|
|
3432
|
+
acquirerName: string;
|
|
3433
|
+
scriptUrl: string;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
/**
|
|
3437
|
+
* @description 分期银行展示模型
|
|
3438
|
+
*/
|
|
3439
|
+
declare interface FrontSupportIppBank {
|
|
3440
|
+
/**
|
|
3441
|
+
* @description bank short name or bank code
|
|
3442
|
+
*/
|
|
3443
|
+
bankShortName?: string;
|
|
3444
|
+
/**
|
|
3445
|
+
* @description logo
|
|
3446
|
+
*/
|
|
3447
|
+
logo?: Logo;
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3398
3450
|
declare type GetI18nQueryParam = string | {
|
|
3399
3451
|
/**
|
|
3400
3452
|
* 多语言文案的 key
|
|
@@ -3412,40 +3464,6 @@ declare type GetI18nQueryParam = string | {
|
|
|
3412
3464
|
defaultMessage?: string;
|
|
3413
3465
|
};
|
|
3414
3466
|
|
|
3415
|
-
declare function getMiniPerformance(): Promise<{
|
|
3416
|
-
performance: {
|
|
3417
|
-
appLaunch: number;
|
|
3418
|
-
jumpAppStartUnix: number;
|
|
3419
|
-
preparePhase: number;
|
|
3420
|
-
appPhase: number;
|
|
3421
|
-
pagePhase: number;
|
|
3422
|
-
appxPhase: number;
|
|
3423
|
-
launchId: string;
|
|
3424
|
-
launchType: 0 | 1;
|
|
3425
|
-
};
|
|
3426
|
-
onLoadTime: number;
|
|
3427
|
-
loadId: string;
|
|
3428
|
-
srcCount: number;
|
|
3429
|
-
webviewComponentSrc?: string | undefined;
|
|
3430
|
-
} | undefined>;
|
|
3431
|
-
|
|
3432
|
-
declare type GetRequesterResult = (data: string, rawData: (ReportData & BaseInfo) | IOptions | IEventOPtions) => Promise<void>;
|
|
3433
|
-
|
|
3434
|
-
declare interface GetWebVitalsInfoResult {
|
|
3435
|
-
fcp: Promise<number | null | undefined>;
|
|
3436
|
-
ttfb: Promise<number | null | undefined>;
|
|
3437
|
-
lcp: Promise<number | null | undefined>;
|
|
3438
|
-
inp: Promise<number | null | undefined>;
|
|
3439
|
-
cls: Promise<number | null | undefined>;
|
|
3440
|
-
}
|
|
3441
|
-
|
|
3442
|
-
declare interface GetWhiteScreenInfoOptions {
|
|
3443
|
-
selector?: string | string[];
|
|
3444
|
-
delay?: number | (() => number);
|
|
3445
|
-
persistent?: boolean;
|
|
3446
|
-
ignoreNotInViewport?: boolean;
|
|
3447
|
-
}
|
|
3448
|
-
|
|
3449
3467
|
declare type GlobalOptions = {
|
|
3450
3468
|
i18n?: SimpleI18n;
|
|
3451
3469
|
i18nPrefix: string;
|
|
@@ -4013,17 +4031,12 @@ declare type HtmlAttributes =
|
|
|
4013
4031
|
| "[writingsuggestions]"
|
|
4014
4032
|
| "[xmlns]";
|
|
4015
4033
|
|
|
4016
|
-
declare interface
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
redirected?: 0 | 1;
|
|
4023
|
-
responseUrl?: string;
|
|
4024
|
-
time: number;
|
|
4025
|
-
method?: string;
|
|
4026
|
-
aborted?: 0 | 1;
|
|
4034
|
+
declare interface IApplePayContactField {
|
|
4035
|
+
email: string;
|
|
4036
|
+
name: string;
|
|
4037
|
+
phone: string;
|
|
4038
|
+
postalAddress: string;
|
|
4039
|
+
phoneticName: string;
|
|
4027
4040
|
}
|
|
4028
4041
|
|
|
4029
4042
|
declare interface iBaseElementClass {
|
|
@@ -4031,16 +4044,6 @@ declare interface iBaseElementClass {
|
|
|
4031
4044
|
elementType: string;
|
|
4032
4045
|
}
|
|
4033
4046
|
|
|
4034
|
-
declare interface IEventOPtions {
|
|
4035
|
-
eventId: string;
|
|
4036
|
-
param4: Record<string, any>;
|
|
4037
|
-
immediat?: boolean;
|
|
4038
|
-
}
|
|
4039
|
-
|
|
4040
|
-
declare type IMDAP_SERVER = (typeof imdapServers)[number];
|
|
4041
|
-
|
|
4042
|
-
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"];
|
|
4043
|
-
|
|
4044
4047
|
declare interface InstallmentPlan {
|
|
4045
4048
|
/**
|
|
4046
4049
|
* @description 分期支持的银行
|
|
@@ -4159,102 +4162,117 @@ declare interface InterestFree {
|
|
|
4159
4162
|
bankShortName?: string;
|
|
4160
4163
|
}
|
|
4161
4164
|
|
|
4162
|
-
declare
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
declare interface IntlOpenSDKTrackerInitOptions extends Omit<IntlOpenSDKTrackerInitOptions_2, 'appId'> {
|
|
4165
|
+
declare interface IntlOpenSDKTrackerInitOptions extends Omit<ExcludeUndefined<CompatibleTrackerFullOptions>, 'appId'> {
|
|
4166
|
+
trackId?: string;
|
|
4167
|
+
/**
|
|
4168
|
+
* @description appId,默认值为180020050100012557
|
|
4169
|
+
*/
|
|
4169
4170
|
appId?: string;
|
|
4170
|
-
}
|
|
4171
|
-
|
|
4172
|
-
declare interface IntlOpenSDKTrackerInitOptions_2 extends Omit<OriginTrackerInitOptions, 'bizType' | 'productId'> {
|
|
4173
|
-
whiteScreen?: BlankMonitorConfig | boolean;
|
|
4174
|
-
bizType?: string;
|
|
4175
|
-
productId?: string;
|
|
4176
4171
|
/**
|
|
4177
|
-
*
|
|
4172
|
+
* origin → 完全按入参 key 输出
|
|
4173
|
+
* snake → 强制 snake_case
|
|
4174
|
+
* camel → 强制 camelCase
|
|
4175
|
+
* both → snake + origin 双写
|
|
4178
4176
|
*/
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
declare interface IOptions {
|
|
4186
|
-
actionId: string;
|
|
4187
|
-
spmId: string;
|
|
4188
|
-
param1?: string;
|
|
4189
|
-
param2?: string;
|
|
4190
|
-
param3?: string;
|
|
4191
|
-
param4?: Record<string, any>;
|
|
4192
|
-
param5?: Record<string, any>;
|
|
4193
|
-
stayTime?: number;
|
|
4194
|
-
}
|
|
4195
|
-
|
|
4196
|
-
declare interface ISystemInfo {
|
|
4197
|
-
readonly pixelRatio: number;
|
|
4198
|
-
readonly windowWidth: number;
|
|
4199
|
-
readonly windowHeight: number;
|
|
4200
|
-
readonly model: string;
|
|
4201
|
-
readonly language: string;
|
|
4202
|
-
readonly version: string;
|
|
4203
|
-
readonly platform: string;
|
|
4204
|
-
readonly system: string;
|
|
4205
|
-
readonly screenWidth: number;
|
|
4206
|
-
readonly screenHeight: number;
|
|
4207
|
-
readonly brand: string;
|
|
4208
|
-
readonly app: string;
|
|
4209
|
-
readonly [propName: string]: any;
|
|
4210
|
-
}
|
|
4211
|
-
|
|
4212
|
-
declare interface ITracert extends IUserTracertProperties {
|
|
4213
|
-
get: (arg0: string) => any;
|
|
4214
|
-
set: (arg0: IUserTracertProperties) => void;
|
|
4215
|
-
loadPlugins: (_plugins: PluginFunction[]) => void;
|
|
4216
|
-
readonly logLevel?: string;
|
|
4217
|
-
readonly logVersion?: string;
|
|
4218
|
-
readonly debug?: boolean;
|
|
4219
|
-
readonly contact?: boolean;
|
|
4220
|
-
readonly pluginReady?: boolean;
|
|
4221
|
-
readonly _plugins?: readonly PluginFunction[];
|
|
4222
|
-
readonly _beforeEvObj?: Record<string, EventFunction[]>;
|
|
4223
|
-
readonly _afterEvObj?: Record<string, EventFunction[]>;
|
|
4224
|
-
readonly _pluginLoadCnt?: number;
|
|
4225
|
-
readonly apiCashList?: any[];
|
|
4226
|
-
}
|
|
4227
|
-
|
|
4228
|
-
declare interface IUserTracertProperties {
|
|
4229
|
-
readonly ready?: boolean;
|
|
4230
|
-
readonly bizType?: string;
|
|
4231
|
-
readonly deviceId?: string;
|
|
4232
|
-
readonly userId?: string;
|
|
4233
|
-
readonly spmAPos?: string;
|
|
4234
|
-
readonly spmBPos?: string;
|
|
4235
|
-
readonly pageId?: string;
|
|
4236
|
-
readonly server?: string;
|
|
4237
|
-
readonly servers?: string[];
|
|
4238
|
-
readonly chInfo?: string;
|
|
4239
|
-
readonly scm?: string;
|
|
4240
|
-
readonly env?: Env;
|
|
4241
|
-
readonly switch?: boolean;
|
|
4242
|
-
readonly sendFrequency?: number;
|
|
4243
|
-
readonly batchCount?: number;
|
|
4244
|
-
readonly referSPM?: string;
|
|
4245
|
-
readonly sessionId?: string;
|
|
4246
|
-
readonly appId?: string;
|
|
4247
|
-
readonly productId?: string;
|
|
4248
|
-
readonly mdata?: Record<string, number | string>;
|
|
4249
|
-
readonly systemInfo?: ISystemInfo;
|
|
4250
|
-
readonly networkType?: string;
|
|
4251
|
-
readonly path?: string;
|
|
4252
|
-
readonly packageVersion?: string;
|
|
4253
|
-
readonly autoExpo?: boolean;
|
|
4177
|
+
keyFormat?: 'origin' | 'snake' | 'camel' | 'both';
|
|
4178
|
+
/**
|
|
4179
|
+
* 是否上报idengine_user_path
|
|
4180
|
+
*/
|
|
4181
|
+
userPathAuto?: boolean;
|
|
4254
4182
|
}
|
|
4255
4183
|
|
|
4256
|
-
declare interface
|
|
4257
|
-
|
|
4184
|
+
declare interface IPaymentSessionMetaData {
|
|
4185
|
+
clientId?: string;
|
|
4186
|
+
renderDisplayType?: string;
|
|
4187
|
+
paymentSessionConfig?: PaymentSessionConfig;
|
|
4188
|
+
securityConfig?: SessionSecurityConfig;
|
|
4189
|
+
moneyView?: any;
|
|
4190
|
+
extendInfo?: string;
|
|
4191
|
+
paymentMethodInfoView?: any;
|
|
4192
|
+
paymentView?: any;
|
|
4193
|
+
modernWeb?: boolean;
|
|
4194
|
+
action?: PaymentSessionAction;
|
|
4195
|
+
/**
|
|
4196
|
+
* @description 是一个string,灰度开关,格式为 flag1,flag2,flag3
|
|
4197
|
+
*/
|
|
4198
|
+
flowSwitchTags?: string;
|
|
4199
|
+
authUrlInfo?: {
|
|
4200
|
+
appIdentifier?: string;
|
|
4201
|
+
applinkUrl?: string;
|
|
4202
|
+
normalUrl?: string;
|
|
4203
|
+
schemeUrl?: string;
|
|
4204
|
+
authUrl?: string;
|
|
4205
|
+
};
|
|
4206
|
+
paymentSessionFactor?: {
|
|
4207
|
+
externalRiskTimeout?: number;
|
|
4208
|
+
extendInfo?: {
|
|
4209
|
+
merchantCapabilities?: string[];
|
|
4210
|
+
supportedNetworks?: string[];
|
|
4211
|
+
requiredBillingContactFields: IApplePayContactField[];
|
|
4212
|
+
requiredShippingContactFields: IApplePayContactField[];
|
|
4213
|
+
};
|
|
4214
|
+
merchantInfo?: {
|
|
4215
|
+
registeredCountry?: string;
|
|
4216
|
+
partnerId?: string;
|
|
4217
|
+
merchantName?: string;
|
|
4218
|
+
};
|
|
4219
|
+
order?: {
|
|
4220
|
+
orderDescription: string;
|
|
4221
|
+
};
|
|
4222
|
+
paymentAmount?: {
|
|
4223
|
+
value?: string;
|
|
4224
|
+
currency?: string;
|
|
4225
|
+
};
|
|
4226
|
+
paymentMethodInfo?: {
|
|
4227
|
+
paymentMethodType?: string;
|
|
4228
|
+
};
|
|
4229
|
+
paymentMethodViewMetaData?: any;
|
|
4230
|
+
paymentRequestId?: string;
|
|
4231
|
+
supportedLanguages?: any;
|
|
4232
|
+
/**
|
|
4233
|
+
* 当前为苹果分期场景的信息
|
|
4234
|
+
*/
|
|
4235
|
+
recurringInfo?: {
|
|
4236
|
+
/**
|
|
4237
|
+
* 代扣协议开始日期 不传为当前系统时间
|
|
4238
|
+
*/
|
|
4239
|
+
startDate?: number;
|
|
4240
|
+
/**
|
|
4241
|
+
* 代扣协议结束日期 不传不限制结束时间
|
|
4242
|
+
*/
|
|
4243
|
+
endDate?: number;
|
|
4244
|
+
/**
|
|
4245
|
+
* 付款时间间隔单位,支持:"year" "month" "day" "hour" "minute" 不传默认month
|
|
4246
|
+
*/
|
|
4247
|
+
intervalUnit?: string;
|
|
4248
|
+
/**
|
|
4249
|
+
* 付款时间间隔。比如每过6个月付款一次,intervalCount就是6, 不传默认为1
|
|
4250
|
+
*/
|
|
4251
|
+
intervalCount?: number;
|
|
4252
|
+
/**
|
|
4253
|
+
* 分期标题信息
|
|
4254
|
+
*/
|
|
4255
|
+
title?: string;
|
|
4256
|
+
/**
|
|
4257
|
+
* 分期管理页面
|
|
4258
|
+
*/
|
|
4259
|
+
managementURL?: string;
|
|
4260
|
+
/**
|
|
4261
|
+
* 苹果通知ipay MAPN信息变更的地址
|
|
4262
|
+
*/
|
|
4263
|
+
tokenNotificationURL?: string;
|
|
4264
|
+
/**
|
|
4265
|
+
* 分期协议描述
|
|
4266
|
+
*/
|
|
4267
|
+
agreementDescription?: string;
|
|
4268
|
+
};
|
|
4269
|
+
frontModulesToBeLoaded?: FrontModulesToBeLoadedInterface[];
|
|
4270
|
+
};
|
|
4271
|
+
connectFactor?: {
|
|
4272
|
+
enableConnect?: boolean;
|
|
4273
|
+
};
|
|
4274
|
+
skipRenderPaymentMethod?: boolean;
|
|
4275
|
+
needAccountConfirmPage?: boolean;
|
|
4258
4276
|
}
|
|
4259
4277
|
|
|
4260
4278
|
/**
|
|
@@ -4309,86 +4327,6 @@ export declare interface LoadAntomConfig extends Omit<BaseFactoryConfig, 'tracke
|
|
|
4309
4327
|
env?: 'sandbox' | 'prod';
|
|
4310
4328
|
}
|
|
4311
4329
|
|
|
4312
|
-
declare interface LocationInfo {
|
|
4313
|
-
countryName?: string;
|
|
4314
|
-
cityName?: string;
|
|
4315
|
-
provinceName?: string;
|
|
4316
|
-
area?: string;
|
|
4317
|
-
}
|
|
4318
|
-
|
|
4319
|
-
declare interface LogInfo {
|
|
4320
|
-
title: string;
|
|
4321
|
-
msg?: string | Error | Record<string, number | string>;
|
|
4322
|
-
}
|
|
4323
|
-
|
|
4324
|
-
declare type LogItem = {
|
|
4325
|
-
code: string;
|
|
4326
|
-
msg: string;
|
|
4327
|
-
marmotId?: string;
|
|
4328
|
-
s1?: string | number;
|
|
4329
|
-
s2?: string | number;
|
|
4330
|
-
s3?: string | number;
|
|
4331
|
-
s4?: string | number;
|
|
4332
|
-
s5?: string | number;
|
|
4333
|
-
s6?: string | number;
|
|
4334
|
-
s7?: string | number;
|
|
4335
|
-
s8?: string | number;
|
|
4336
|
-
s9?: string | number;
|
|
4337
|
-
s10?: string | number;
|
|
4338
|
-
s11?: string | number;
|
|
4339
|
-
s12?: string | number;
|
|
4340
|
-
s13?: string | number;
|
|
4341
|
-
s14?: string | number;
|
|
4342
|
-
s15?: string | number;
|
|
4343
|
-
s16?: string | number;
|
|
4344
|
-
s17?: string | number;
|
|
4345
|
-
s18?: string | number;
|
|
4346
|
-
s19?: string | number;
|
|
4347
|
-
s20?: string | number;
|
|
4348
|
-
env?: Env_2;
|
|
4349
|
-
sdk?: string;
|
|
4350
|
-
container?: string;
|
|
4351
|
-
title?: string;
|
|
4352
|
-
fullUrl?: string;
|
|
4353
|
-
sprintId?: string;
|
|
4354
|
-
ip?: string;
|
|
4355
|
-
countryName?: string;
|
|
4356
|
-
cityName?: string;
|
|
4357
|
-
provinceName?: string;
|
|
4358
|
-
cOfflineVer?: string;
|
|
4359
|
-
url?: string;
|
|
4360
|
-
referrer?: string;
|
|
4361
|
-
domCnt?: number;
|
|
4362
|
-
delay?: number;
|
|
4363
|
-
scrollTop?: number;
|
|
4364
|
-
lastAction?: string;
|
|
4365
|
-
sessionId?: string;
|
|
4366
|
-
isp?: string;
|
|
4367
|
-
area?: string;
|
|
4368
|
-
ua?: string;
|
|
4369
|
-
browser?: string;
|
|
4370
|
-
os?: string;
|
|
4371
|
-
device?: string;
|
|
4372
|
-
deviceType?: string;
|
|
4373
|
-
deviceBrand?: string;
|
|
4374
|
-
deviceModel?: string;
|
|
4375
|
-
screenWidth?: number;
|
|
4376
|
-
screenHeight?: number;
|
|
4377
|
-
contentHeight?: number;
|
|
4378
|
-
pixelRatio?: number;
|
|
4379
|
-
cClient?: string;
|
|
4380
|
-
cClientId?: string;
|
|
4381
|
-
cCoreVer?: string;
|
|
4382
|
-
assetsVer?: string;
|
|
4383
|
-
traceId?: string;
|
|
4384
|
-
serverIp?: string;
|
|
4385
|
-
serverEnv?: string;
|
|
4386
|
-
clientId?: string;
|
|
4387
|
-
spm?: string;
|
|
4388
|
-
spma?: string;
|
|
4389
|
-
spmb?: string;
|
|
4390
|
-
} & DMC;
|
|
4391
|
-
|
|
4392
4330
|
/**
|
|
4393
4331
|
* @description Logo信息
|
|
4394
4332
|
*/
|
|
@@ -4419,29 +4357,6 @@ declare interface Logo {
|
|
|
4419
4357
|
logoHeight?: string;
|
|
4420
4358
|
}
|
|
4421
4359
|
|
|
4422
|
-
declare type M = {
|
|
4423
|
-
m1?: number;
|
|
4424
|
-
m2?: number;
|
|
4425
|
-
m3?: number;
|
|
4426
|
-
m4?: number;
|
|
4427
|
-
m5?: number;
|
|
4428
|
-
m6?: number;
|
|
4429
|
-
m7?: number;
|
|
4430
|
-
m8?: number;
|
|
4431
|
-
m9?: number;
|
|
4432
|
-
m10?: number;
|
|
4433
|
-
m11?: number;
|
|
4434
|
-
m12?: number;
|
|
4435
|
-
m13?: number;
|
|
4436
|
-
m14?: number;
|
|
4437
|
-
m15?: number;
|
|
4438
|
-
m16?: number;
|
|
4439
|
-
m17?: number;
|
|
4440
|
-
m18?: number;
|
|
4441
|
-
m19?: number;
|
|
4442
|
-
m20?: number;
|
|
4443
|
-
};
|
|
4444
|
-
|
|
4445
4360
|
/**
|
|
4446
4361
|
* @description 端上的行为设定 @Author yanhong
|
|
4447
4362
|
*/
|
|
@@ -4585,12 +4500,6 @@ declare interface MultiCurrencyMoney {
|
|
|
4585
4500
|
currencyValue?: string;
|
|
4586
4501
|
}
|
|
4587
4502
|
|
|
4588
|
-
declare interface NetworkInfo {
|
|
4589
|
-
networkType?: string;
|
|
4590
|
-
isp?: string;
|
|
4591
|
-
ip?: string;
|
|
4592
|
-
}
|
|
4593
|
-
|
|
4594
4503
|
declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
4595
4504
|
/**
|
|
4596
4505
|
* 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.
|
|
@@ -6662,34 +6571,96 @@ declare interface ObsoletePropertiesHyphen<TLength = (string & {}) | 0, TTime =
|
|
|
6662
6571
|
*
|
|
6663
6572
|
* @deprecated
|
|
6664
6573
|
*/
|
|
6665
|
-
"-webkit-box-orient"?: Property.BoxOrient | undefined;
|
|
6574
|
+
"-webkit-box-orient"?: Property.BoxOrient | undefined;
|
|
6575
|
+
/**
|
|
6576
|
+
* The **`-moz-box-pack`** and **`-webkit-box-pack`** CSS properties specify how a `-moz-box` or `-webkit-box` packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box.
|
|
6577
|
+
*
|
|
6578
|
+
* **Syntax**: `start | center | end | justify`
|
|
6579
|
+
*
|
|
6580
|
+
* **Initial value**: `start`
|
|
6581
|
+
*
|
|
6582
|
+
* @deprecated
|
|
6583
|
+
*/
|
|
6584
|
+
"-webkit-box-pack"?: Property.BoxPack | undefined;
|
|
6585
|
+
}
|
|
6586
|
+
|
|
6587
|
+
declare type ObsoletePropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<ObsoletePropertiesHyphen<TLength, TTime>>;
|
|
6588
|
+
|
|
6589
|
+
declare interface OneAccountInfo {
|
|
6590
|
+
/**
|
|
6591
|
+
* @description accountId
|
|
6592
|
+
*/
|
|
6593
|
+
oneAccountId?: string;
|
|
6594
|
+
/**
|
|
6595
|
+
* @description 邮箱
|
|
6596
|
+
*/
|
|
6597
|
+
email?: string;
|
|
6598
|
+
/**
|
|
6599
|
+
* @description 账号状态
|
|
6600
|
+
*/
|
|
6601
|
+
accountStatus?: string;
|
|
6602
|
+
}
|
|
6603
|
+
|
|
6604
|
+
/**
|
|
6605
|
+
* @description one account 账户信息查询结果
|
|
6606
|
+
*/
|
|
6607
|
+
declare interface OneAccountQueryResult {
|
|
6608
|
+
/**
|
|
6609
|
+
* @description 是否业务处理成功
|
|
6610
|
+
*/
|
|
6611
|
+
success?: boolean;
|
|
6612
|
+
/**
|
|
6613
|
+
* @description 错误上下文
|
|
6614
|
+
*/
|
|
6615
|
+
errorContext?: ErrorContext;
|
|
6616
|
+
/**
|
|
6617
|
+
* @description 返回结果码
|
|
6618
|
+
*/
|
|
6619
|
+
resultCode?: string;
|
|
6620
|
+
/**
|
|
6621
|
+
* @description 返回结果信息
|
|
6622
|
+
*/
|
|
6623
|
+
resultMessage?: string;
|
|
6624
|
+
/**
|
|
6625
|
+
* @description error actions
|
|
6626
|
+
*/
|
|
6627
|
+
errorActions?: Record<string, string>;
|
|
6628
|
+
/**
|
|
6629
|
+
* @description error code
|
|
6630
|
+
*/
|
|
6631
|
+
errorCode?: string;
|
|
6632
|
+
/**
|
|
6633
|
+
* @description error status
|
|
6634
|
+
*/
|
|
6635
|
+
errorStatus?: string;
|
|
6636
|
+
/**
|
|
6637
|
+
* @description error message
|
|
6638
|
+
*/
|
|
6639
|
+
errorMessage?: string;
|
|
6640
|
+
/**
|
|
6641
|
+
* @description extend info
|
|
6642
|
+
*/
|
|
6643
|
+
extendInfo?: Record<string, string>;
|
|
6666
6644
|
/**
|
|
6667
|
-
*
|
|
6668
|
-
*
|
|
6669
|
-
* **Syntax**: `start | center | end | justify`
|
|
6670
|
-
*
|
|
6671
|
-
* **Initial value**: `start`
|
|
6672
|
-
*
|
|
6673
|
-
* @deprecated
|
|
6645
|
+
* @description one account 账户信息
|
|
6674
6646
|
*/
|
|
6675
|
-
|
|
6676
|
-
}
|
|
6677
|
-
|
|
6678
|
-
declare type ObsoletePropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<ObsoletePropertiesHyphen<TLength, TTime>>;
|
|
6679
|
-
|
|
6680
|
-
declare interface OneAccountInfo {
|
|
6647
|
+
accountInfo?: OneAccountInfo;
|
|
6681
6648
|
/**
|
|
6682
|
-
* @description
|
|
6649
|
+
* @description action form 下一步动作
|
|
6683
6650
|
*/
|
|
6684
|
-
|
|
6651
|
+
actionForm?: OtpChallengeActionForm;
|
|
6685
6652
|
/**
|
|
6686
|
-
* @description
|
|
6653
|
+
* @description 支付方式列表
|
|
6687
6654
|
*/
|
|
6688
|
-
|
|
6655
|
+
paymentMethods?: PaymentMethodView[];
|
|
6689
6656
|
/**
|
|
6690
|
-
* @description
|
|
6657
|
+
* @description 物流信息
|
|
6691
6658
|
*/
|
|
6692
|
-
|
|
6659
|
+
shippings?: ShippingInfo_2[];
|
|
6660
|
+
/**
|
|
6661
|
+
* @description 支付金额 (订单金额 + 物流费)
|
|
6662
|
+
*/
|
|
6663
|
+
paymentAmount?: MobileMoneyView;
|
|
6693
6664
|
}
|
|
6694
6665
|
|
|
6695
6666
|
/**
|
|
@@ -6770,7 +6741,7 @@ declare class OpenSDKTracker {
|
|
|
6770
6741
|
* @param options
|
|
6771
6742
|
* @returns
|
|
6772
6743
|
*/
|
|
6773
|
-
initTracker(options?: IntlOpenSDKTrackerInitOptions): Promise<
|
|
6744
|
+
initTracker(options?: IntlOpenSDKTrackerInitOptions): Promise<CompatibleTrackerFull | undefined>;
|
|
6774
6745
|
private safeCall;
|
|
6775
6746
|
/**
|
|
6776
6747
|
*
|
|
@@ -6780,7 +6751,7 @@ declare class OpenSDKTracker {
|
|
|
6780
6751
|
/**
|
|
6781
6752
|
* @description 设置属性
|
|
6782
6753
|
*/
|
|
6783
|
-
set(data: Partial<IntlOpenSDKTrackerInitOptions
|
|
6754
|
+
set(data: Partial<ExcludeUndefined<IntlOpenSDKTrackerInitOptions>>): void;
|
|
6784
6755
|
/**
|
|
6785
6756
|
* 会以 10141 code 上报一条常规日志,日志头为 D-AE
|
|
6786
6757
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#cq9Zw
|
|
@@ -6790,38 +6761,38 @@ declare class OpenSDKTracker {
|
|
|
6790
6761
|
* 请在marmot申请code后使用,必须关联code
|
|
6791
6762
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#W3dtb
|
|
6792
6763
|
*/
|
|
6793
|
-
log(...args: Parameters<
|
|
6764
|
+
log(...args: Parameters<CompatibleTrackerFull['log']>): void;
|
|
6794
6765
|
/**
|
|
6795
6766
|
* 用于埋点相关上报,点击
|
|
6796
6767
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#XQel9
|
|
6797
6768
|
*/
|
|
6798
|
-
click(...args: Parameters<
|
|
6769
|
+
click(...args: Parameters<CompatibleTrackerFull['click']>): void;
|
|
6799
6770
|
/**
|
|
6800
6771
|
* 用于埋点相关上报,曝光
|
|
6801
6772
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#LiVxE
|
|
6802
6773
|
*/
|
|
6803
|
-
expo(...args: Parameters<
|
|
6774
|
+
expo(...args: Parameters<CompatibleTrackerFull['expo']>): void;
|
|
6804
6775
|
/**
|
|
6805
6776
|
* 用于日志管控
|
|
6806
6777
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#rK7Ru
|
|
6807
6778
|
*/
|
|
6808
|
-
onSendData(...args: Parameters<
|
|
6779
|
+
onSendData(...args: Parameters<CompatibleTrackerFull['onSendData']>): void;
|
|
6809
6780
|
/**
|
|
6810
6781
|
* 用于日志管控
|
|
6811
6782
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#rK7Ru
|
|
6812
6783
|
*/
|
|
6813
|
-
offSendData(...args: Parameters<
|
|
6784
|
+
offSendData(...args: Parameters<CompatibleTrackerFull['offSendData']>): void;
|
|
6814
6785
|
/**
|
|
6815
6786
|
* 用于埋点相关上报,上报的日志头为 D-VM
|
|
6816
6787
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#RSCKn
|
|
6817
6788
|
*/
|
|
6818
|
-
pageMonitor(...args: Parameters<
|
|
6789
|
+
pageMonitor(...args: Parameters<CompatibleTrackerFull['pageMonitor']>): void;
|
|
6819
6790
|
/**
|
|
6820
6791
|
* 用于上报自定义性能指标,单次仅上报一个指标
|
|
6821
6792
|
* @param {string} key — m1 - m20
|
|
6822
6793
|
* @param {number} num — 耗时,数字,一定要 >= 0,否则无统计意义
|
|
6823
6794
|
*/
|
|
6824
|
-
reportCustomizedPerformance(...args: Parameters<
|
|
6795
|
+
reportCustomizedPerformance(...args: Parameters<CompatibleTrackerFull['reportCustomizedPerformance']>): void;
|
|
6825
6796
|
}
|
|
6826
6797
|
|
|
6827
6798
|
/**
|
|
@@ -6834,65 +6805,54 @@ declare interface OrderInfo {
|
|
|
6834
6805
|
orderDescription?: string;
|
|
6835
6806
|
}
|
|
6836
6807
|
|
|
6837
|
-
declare interface
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
/**
|
|
6843
|
-
*
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
};
|
|
6886
|
-
whiteScreenConfig?: BlankMonitorConfig | boolean;
|
|
6887
|
-
fmpIgnoreElements?: string[];
|
|
6888
|
-
enableBehavior?: BehaviorConfig | boolean;
|
|
6889
|
-
enableRequestHook?: RequestHookConfig | boolean;
|
|
6890
|
-
enableJSAPIReport?: boolean;
|
|
6891
|
-
}
|
|
6892
|
-
|
|
6893
|
-
declare interface OSInfo {
|
|
6894
|
-
os?: string;
|
|
6895
|
-
osVer?: string;
|
|
6808
|
+
declare interface OtpChallengeActionForm {
|
|
6809
|
+
/**
|
|
6810
|
+
* @description action form type
|
|
6811
|
+
*/
|
|
6812
|
+
actionFormType?: string;
|
|
6813
|
+
/**
|
|
6814
|
+
* @description type of challenge
|
|
6815
|
+
*/
|
|
6816
|
+
challengeType?: string;
|
|
6817
|
+
/**
|
|
6818
|
+
* @description The actual render value
|
|
6819
|
+
*/
|
|
6820
|
+
challengeRenderValue?: string;
|
|
6821
|
+
/**
|
|
6822
|
+
* @description Describe the challenge is required by AAC or external party
|
|
6823
|
+
*/
|
|
6824
|
+
triggerSource?: string;
|
|
6825
|
+
/**
|
|
6826
|
+
* @description is support retry challenge
|
|
6827
|
+
* @default true
|
|
6828
|
+
*/
|
|
6829
|
+
isChallengeRetrySupported?: boolean;
|
|
6830
|
+
/**
|
|
6831
|
+
* @description is fist otp auto triggered
|
|
6832
|
+
* @default false
|
|
6833
|
+
*/
|
|
6834
|
+
isChallengeAutoTriggered?: boolean;
|
|
6835
|
+
/**
|
|
6836
|
+
* @description estimated challenge response duration
|
|
6837
|
+
* @default 0
|
|
6838
|
+
*/
|
|
6839
|
+
estimatedDuration?: number;
|
|
6840
|
+
/**
|
|
6841
|
+
* @description url - like h5 sdk challenge need to call back url
|
|
6842
|
+
*/
|
|
6843
|
+
challengeUrl?: string;
|
|
6844
|
+
/**
|
|
6845
|
+
* @description extend information
|
|
6846
|
+
*/
|
|
6847
|
+
extendInfo?: string;
|
|
6848
|
+
/**
|
|
6849
|
+
* @description verify Id
|
|
6850
|
+
*/
|
|
6851
|
+
verifyId?: string;
|
|
6852
|
+
/**
|
|
6853
|
+
* @description 重发次数
|
|
6854
|
+
*/
|
|
6855
|
+
resendLeftTimes?: number;
|
|
6896
6856
|
}
|
|
6897
6857
|
|
|
6898
6858
|
declare type PartialSpeKey<T, V> = Partial<T extends infer K extends string ? Record<K, V> : Record<string, V>>;
|
|
@@ -6916,6 +6876,60 @@ declare interface PayByLinkInfo {
|
|
|
6916
6876
|
linkVersion?: number;
|
|
6917
6877
|
}
|
|
6918
6878
|
|
|
6879
|
+
/**
|
|
6880
|
+
* @description Payment element app config type
|
|
6881
|
+
*/
|
|
6882
|
+
export declare interface PaymentAppConfig extends BaseAppearance<PaymentAppearance>, BaseElementAppConfig {
|
|
6883
|
+
/**
|
|
6884
|
+
* @description sessionData,无法通过updateConfig更新
|
|
6885
|
+
*/
|
|
6886
|
+
sessionData?: string;
|
|
6887
|
+
/* Excluded from this release type: merchantDomain */
|
|
6888
|
+
/* Excluded from this release type: renderData */
|
|
6889
|
+
/* Excluded from this release type: connectAccount */
|
|
6890
|
+
/* Excluded from this release type: sessionMetaData */
|
|
6891
|
+
/* Excluded from this release type: renderDataError */
|
|
6892
|
+
/* Excluded from this release type: sdkVersion */
|
|
6893
|
+
/* Excluded from this release type: _requestConfig */
|
|
6894
|
+
/* Excluded from this release type: logMetaData */
|
|
6895
|
+
/* Excluded from this release type: heightOfVisible */
|
|
6896
|
+
}
|
|
6897
|
+
|
|
6898
|
+
/**
|
|
6899
|
+
* @description Payment element appearance type
|
|
6900
|
+
*/
|
|
6901
|
+
export declare type PaymentAppearance = PickAppearance<{
|
|
6902
|
+
displaySetting: 'showPaymentMethodListWhenSingleOption' | 'showCardBrandIcon' | 'showRadioWhenAccordionLayout' | 'showCardCVV';
|
|
6903
|
+
theme: AntomTheme;
|
|
6904
|
+
variables: AntomVariables;
|
|
6905
|
+
layout: AntomLayouts;
|
|
6906
|
+
}>;
|
|
6907
|
+
|
|
6908
|
+
/**
|
|
6909
|
+
* @description Payment element
|
|
6910
|
+
*/
|
|
6911
|
+
export declare class PaymentElement extends BaseMainElement<PaymentElementConfig, PaymentElementEvents> {
|
|
6912
|
+
static elementType: string;
|
|
6913
|
+
constructor(name: string, config: PaymentElementConfig);
|
|
6914
|
+
/* Excluded from this release type: setup */
|
|
6915
|
+
/* Excluded from this release type: submit */
|
|
6916
|
+
protected focus(): void;
|
|
6917
|
+
protected blur(): void;
|
|
6918
|
+
protected clear(): void;
|
|
6919
|
+
}
|
|
6920
|
+
|
|
6921
|
+
/**
|
|
6922
|
+
* @description Payment element config type
|
|
6923
|
+
*/
|
|
6924
|
+
declare interface PaymentElementConfig extends BaseElementConfig<PaymentAppConfig> {
|
|
6925
|
+
}
|
|
6926
|
+
|
|
6927
|
+
/**
|
|
6928
|
+
* @description Payment element events
|
|
6929
|
+
*/
|
|
6930
|
+
export declare interface PaymentElementEvents extends AntomBridgeWithNativeEventMap<PaymentAppConfig, PaymentSubmitParams, PaymentSubmitResult> {
|
|
6931
|
+
}
|
|
6932
|
+
|
|
6919
6933
|
declare interface PaymentElementView {
|
|
6920
6934
|
/**
|
|
6921
6935
|
* @description payment element key
|
|
@@ -7017,6 +7031,36 @@ declare interface PaymentEvaluationResult {
|
|
|
7017
7031
|
paymentBalanceInfo?: DanaSofPayMethodView[];
|
|
7018
7032
|
}
|
|
7019
7033
|
|
|
7034
|
+
/**
|
|
7035
|
+
* @description Payment guidance information (CKP scenario)
|
|
7036
|
+
*
|
|
7037
|
+
* <p>Displays payment guide buttons on the checkout page, including: - Deep link: For launching the
|
|
7038
|
+
* bank application (required) - Copy configuration: Divider text, button labels, etc. (extensible
|
|
7039
|
+
* via Map, dynamically addable)
|
|
7040
|
+
*/
|
|
7041
|
+
declare interface PaymentGuideInfo {
|
|
7042
|
+
/**
|
|
7043
|
+
* @description The deep link (from iexpprod, used to launch the bank app) The frontend only displays the
|
|
7044
|
+
* payment guide button when this field is populated
|
|
7045
|
+
*/
|
|
7046
|
+
appLinkUrlForWeb?: string;
|
|
7047
|
+
/**
|
|
7048
|
+
* @description Copy configuration (from the config center) Stored in a Map to support dynamic extension of
|
|
7049
|
+
* text fields
|
|
7050
|
+
*
|
|
7051
|
+
* <p>Example configuration:
|
|
7052
|
+
*
|
|
7053
|
+
* <pre>
|
|
7054
|
+
* {
|
|
7055
|
+
* "dividerText": "or pay using",
|
|
7056
|
+
* "directPayButtonText": "Pay directly with online banking",
|
|
7057
|
+
* "ctoPButtonText": "Continue to payment"
|
|
7058
|
+
* }
|
|
7059
|
+
* </pre>
|
|
7060
|
+
*/
|
|
7061
|
+
copyWriting?: Record<string, any>;
|
|
7062
|
+
}
|
|
7063
|
+
|
|
7020
7064
|
/**
|
|
7021
7065
|
* @description 支付方式余额检查结果信息
|
|
7022
7066
|
*/
|
|
@@ -7079,6 +7123,10 @@ declare interface PaymentMethodView {
|
|
|
7079
7123
|
* @description icon
|
|
7080
7124
|
*/
|
|
7081
7125
|
icon?: string;
|
|
7126
|
+
/**
|
|
7127
|
+
* @description adaptive icon for PAYME payment method
|
|
7128
|
+
*/
|
|
7129
|
+
adaptiveIcon?: string;
|
|
7082
7130
|
/**
|
|
7083
7131
|
* @description icon对应的名称
|
|
7084
7132
|
*/
|
|
@@ -7087,6 +7135,10 @@ declare interface PaymentMethodView {
|
|
|
7087
7135
|
* @description 支付方式描述
|
|
7088
7136
|
*/
|
|
7089
7137
|
description?: string;
|
|
7138
|
+
/**
|
|
7139
|
+
* @description 支付方式点击后的描述
|
|
7140
|
+
*/
|
|
7141
|
+
descriptionAfterClick?: string;
|
|
7090
7142
|
/**
|
|
7091
7143
|
* @description category
|
|
7092
7144
|
*/
|
|
@@ -7221,6 +7273,10 @@ declare interface PaymentMethodView {
|
|
|
7221
7273
|
* @description 账单地址收集模式
|
|
7222
7274
|
*/
|
|
7223
7275
|
billingAddressCollectionMode?: string;
|
|
7276
|
+
/**
|
|
7277
|
+
* @description 分期银行信息列表
|
|
7278
|
+
*/
|
|
7279
|
+
supportIppBankList?: FrontSupportIppBank[];
|
|
7224
7280
|
}
|
|
7225
7281
|
|
|
7226
7282
|
declare interface PaymentOption {
|
|
@@ -7288,6 +7344,10 @@ declare interface PaymentOption {
|
|
|
7288
7344
|
* @description 支付选项Logo信息
|
|
7289
7345
|
*/
|
|
7290
7346
|
logo?: Logo;
|
|
7347
|
+
/**
|
|
7348
|
+
* @description 支付描述多语言列表。如果入参有locale,且入参的locale有对应语言,则这里只返回locale对应的语言。
|
|
7349
|
+
*/
|
|
7350
|
+
description?: Record<string, string>;
|
|
7291
7351
|
/**
|
|
7292
7352
|
* @description extendInfo extendInfo information
|
|
7293
7353
|
*/
|
|
@@ -7355,6 +7415,13 @@ declare interface PaymentQuoteInfo {
|
|
|
7355
7415
|
* @description payment amount view
|
|
7356
7416
|
*/
|
|
7357
7417
|
paymentAmountView?: PaymentView;
|
|
7418
|
+
/**
|
|
7419
|
+
* @description Display exchange rate from FX domain Quote, direction-adjusted and formatted to 2 decimal
|
|
7420
|
+
* places. - BID direction: value = 1/price, setScale(2, HALF_UP) - OFFER direction: value =
|
|
7421
|
+
* price, setScale(2, HALF_UP) Used for direct frontend access to exchange rate. Example: 3.16 for
|
|
7422
|
+
* MYR/SGD currency pair
|
|
7423
|
+
*/
|
|
7424
|
+
quotePrice?: any;
|
|
7358
7425
|
}
|
|
7359
7426
|
|
|
7360
7427
|
/**
|
|
@@ -7464,6 +7531,45 @@ declare interface PaymentSessionConfig {
|
|
|
7464
7531
|
productSceneVersion?: string;
|
|
7465
7532
|
}
|
|
7466
7533
|
|
|
7534
|
+
/**
|
|
7535
|
+
* @description The submit params
|
|
7536
|
+
*/
|
|
7537
|
+
export declare interface PaymentSubmitParams extends SubmitParams {
|
|
7538
|
+
/**
|
|
7539
|
+
* @description 是否由antom sdk自动处理唤端逻辑,默认为true,由sdk自动处理。
|
|
7540
|
+
* 如果antom sdk唤起客户端失败,建议设置为false,商家自行唤端
|
|
7541
|
+
*/
|
|
7542
|
+
handleActions?: boolean;
|
|
7543
|
+
/**
|
|
7544
|
+
* @description 收件地址信息
|
|
7545
|
+
*/
|
|
7546
|
+
shippingInfo?: ShippingInfo;
|
|
7547
|
+
/**
|
|
7548
|
+
* @description 集成用户自定义信息(如 cardHolderName)
|
|
7549
|
+
*/
|
|
7550
|
+
params?: Record<string, unknown>;
|
|
7551
|
+
}
|
|
7552
|
+
|
|
7553
|
+
/**
|
|
7554
|
+
* @description Payment element submit result
|
|
7555
|
+
*/
|
|
7556
|
+
export declare interface PaymentSubmitResult extends SubmitResult {
|
|
7557
|
+
paymentSession?: {
|
|
7558
|
+
/**
|
|
7559
|
+
* @description 回调页面的url链接,使用浏览器可直接打开,比如 http://xxx.app.com/xxx
|
|
7560
|
+
*/
|
|
7561
|
+
returnUrl: string;
|
|
7562
|
+
/**
|
|
7563
|
+
* @description 回调页面唤起app的url链接,使用浏览器可直接打开,比如 http://xxx.app.com/xxx
|
|
7564
|
+
*/
|
|
7565
|
+
returnAppUrl?: string;
|
|
7566
|
+
/**
|
|
7567
|
+
* @description 回调页面唤起app的scheme链接,比如 alipay://xxx
|
|
7568
|
+
*/
|
|
7569
|
+
returnAppScheme?: string;
|
|
7570
|
+
};
|
|
7571
|
+
}
|
|
7572
|
+
|
|
7467
7573
|
declare interface PaymentView {
|
|
7468
7574
|
/**
|
|
7469
7575
|
* @description 金额,以元为单位的金额
|
|
@@ -7521,56 +7627,6 @@ export declare interface PayPalConfig {
|
|
|
7521
7627
|
onShippingOptionsChange?: (data: any, actions: any) => Promise<void>;
|
|
7522
7628
|
}
|
|
7523
7629
|
|
|
7524
|
-
declare interface PerformancePlugin extends BaseInfoPlugin {
|
|
7525
|
-
getAnalyzePerformanceInfo?(): Record<string, any> | null;
|
|
7526
|
-
getPagePerformanceInfo?(): {
|
|
7527
|
-
onload: string | number;
|
|
7528
|
-
domContentLoad: string | number;
|
|
7529
|
-
redirect: string | number;
|
|
7530
|
-
appCache: string | number;
|
|
7531
|
-
dns: string | number;
|
|
7532
|
-
tcp: string | number;
|
|
7533
|
-
ssl: string | number;
|
|
7534
|
-
reqt: string | number;
|
|
7535
|
-
rest: string | number;
|
|
7536
|
-
dpt: string | number;
|
|
7537
|
-
ft: string | number;
|
|
7538
|
-
domInteractive: string | number;
|
|
7539
|
-
domReady: string | number;
|
|
7540
|
-
domComplete: string | number;
|
|
7541
|
-
random: string | number;
|
|
7542
|
-
miniPerformance?: ReturnType<typeof getMiniPerformance>;
|
|
7543
|
-
timeOrigin?: number;
|
|
7544
|
-
};
|
|
7545
|
-
getWebVitalsInfo?(): GetWebVitalsInfoResult;
|
|
7546
|
-
getWhiteScreenInfo?(options?: Pick<GetWhiteScreenInfoOptions, 'selector' | 'ignoreNotInViewport'>): Promise<{
|
|
7547
|
-
status: 'error' | 'ok';
|
|
7548
|
-
}>;
|
|
7549
|
-
getFMP?(options?: {
|
|
7550
|
-
ignoreElements?: string[];
|
|
7551
|
-
}): Promise<{
|
|
7552
|
-
time: number;
|
|
7553
|
-
selector: string;
|
|
7554
|
-
} | undefined>;
|
|
7555
|
-
getTTI?(): Promise<number | undefined>;
|
|
7556
|
-
getFP?(): Promise<number | undefined>;
|
|
7557
|
-
getT2Time?(): Promise<number | undefined>;
|
|
7558
|
-
/**
|
|
7559
|
-
* 将性能数据发送到容器,目前只需 H5 应用实现
|
|
7560
|
-
*/
|
|
7561
|
-
sendPerformanceDataToContainer?(data: LogItem): Promise<void>;
|
|
7562
|
-
getSnapshot?: () => {
|
|
7563
|
-
fmp: string;
|
|
7564
|
-
lcp: string;
|
|
7565
|
-
};
|
|
7566
|
-
/**
|
|
7567
|
-
* 用于采集详细的性能数据,越晚调用,搜集的数据越多
|
|
7568
|
-
*/
|
|
7569
|
-
getDetailPerformance?(): Promise<DMC | null>;
|
|
7570
|
-
startCheckingPageWhiteScreen?(config: GetWhiteScreenInfoOptions | boolean | undefined): Promise<(() => void) | undefined>;
|
|
7571
|
-
startCheckingDOMWhiteScreen?(selector: string, options: Omit<GetWhiteScreenInfoOptions, 'selector'>): (() => void) | undefined;
|
|
7572
|
-
}
|
|
7573
|
-
|
|
7574
7630
|
declare interface PeriodRule {
|
|
7575
7631
|
/**
|
|
7576
7632
|
* @description period type
|
|
@@ -7582,87 +7638,13 @@ declare interface PeriodRule {
|
|
|
7582
7638
|
periodCount?: number;
|
|
7583
7639
|
}
|
|
7584
7640
|
|
|
7641
|
+
/**
|
|
7642
|
+
* @description 工具类型,仅从 Appearance 中拾取与 Props 类型匹配的属性。
|
|
7643
|
+
* 返回受 Props 中存在的键约束的部分外观对象。
|
|
7644
|
+
* @template Props - 要从 Appearance 中拾取的自定义外观属性类型。
|
|
7645
|
+
*/
|
|
7585
7646
|
declare type PickAppearance<Props extends Partial<DefaultAppearanceProps>> = Partial<Pick<Appearance<Props>, keyof Props extends infer k extends keyof Partial<Appearance> ? k : keyof Partial<Appearance>>>;
|
|
7586
7647
|
|
|
7587
|
-
declare interface PluginContext {
|
|
7588
|
-
userPath: {
|
|
7589
|
-
reStoreUserPath: (appId: string) => void;
|
|
7590
|
-
parseUserPathExtra: (key: string) => {
|
|
7591
|
-
idengine_user_path: string;
|
|
7592
|
-
} | null;
|
|
7593
|
-
getUserPathExtra: () => {
|
|
7594
|
-
cachePath: string[];
|
|
7595
|
-
extra: {
|
|
7596
|
-
idengine_user_path: string;
|
|
7597
|
-
};
|
|
7598
|
-
};
|
|
7599
|
-
};
|
|
7600
|
-
waitInit: () => Promise<void>;
|
|
7601
|
-
}
|
|
7602
|
-
|
|
7603
|
-
declare type PluginFunction = (iTracert: ITracert, callback: () => void) => boolean;
|
|
7604
|
-
|
|
7605
|
-
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'> & {
|
|
7606
|
-
server?: string;
|
|
7607
|
-
servers?: string[];
|
|
7608
|
-
isMarmot?: boolean;
|
|
7609
|
-
deviceId?: Promise<string>;
|
|
7610
|
-
whiteScreenConfig?: (BlankMonitorConfig & {
|
|
7611
|
-
callback?: (options: ReportData) => Promise<void>;
|
|
7612
|
-
}) | boolean;
|
|
7613
|
-
spmCheckCover?: string;
|
|
7614
|
-
whiteListConfigSource?: WHITE_LIST_CONFIG_SOURCE;
|
|
7615
|
-
remoteConfigValidDuration?: number;
|
|
7616
|
-
};
|
|
7617
|
-
|
|
7618
|
-
declare interface PluginOnErrorCallbackErrorInfo {
|
|
7619
|
-
message: string;
|
|
7620
|
-
extra: Record<string, any>;
|
|
7621
|
-
type: ErrorType;
|
|
7622
|
-
}
|
|
7623
|
-
|
|
7624
|
-
declare interface PluginPageMonitorOptions {
|
|
7625
|
-
spmInfo: {
|
|
7626
|
-
spmAPos: string;
|
|
7627
|
-
spmBPos: string;
|
|
7628
|
-
currentPage: string;
|
|
7629
|
-
};
|
|
7630
|
-
logData?: Record<string, any>;
|
|
7631
|
-
}
|
|
7632
|
-
|
|
7633
|
-
declare interface PluginShape extends PerformancePlugin, LagPlugin {
|
|
7634
|
-
getRequester(): GetRequesterResult;
|
|
7635
|
-
getDataFilter?(): (data: string[]) => Promise<string[]>;
|
|
7636
|
-
getExtraDataFilter?(): (data: Record<string, any>) => Promise<Record<string, any>>;
|
|
7637
|
-
onSendData?(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
|
|
7638
|
-
offSendData?(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
|
|
7639
|
-
init?(options: PluginInitOptions): Promise<void>;
|
|
7640
|
-
onError?(callback: (error: PluginOnErrorCallbackErrorInfo) => void): () => void;
|
|
7641
|
-
onPageLoad?(callback: () => void): () => void;
|
|
7642
|
-
set?(options: Record<string, any>): void;
|
|
7643
|
-
/**
|
|
7644
|
-
* @deprecated Compatible with old APIs. Use `Tracker#report` instead.
|
|
7645
|
-
* @param info
|
|
7646
|
-
* @param extra
|
|
7647
|
-
*/
|
|
7648
|
-
log?(type: string, params?: Record<string, any>): void;
|
|
7649
|
-
pageMonitor?(options: PluginPageMonitorOptions): void;
|
|
7650
|
-
expo?(code: string, extra?: Record<string, number | string | boolean>): void;
|
|
7651
|
-
click?(code: string, extra: Record<string, number | string | boolean>): void;
|
|
7652
|
-
getSessionItem?(key: string): string | null;
|
|
7653
|
-
removeSessionItem?(key: string): void;
|
|
7654
|
-
setSessionItem?(key: string, value: string): void;
|
|
7655
|
-
getSessionId?(): string | null;
|
|
7656
|
-
getStorageItem?(key: string): Promise<string | null>;
|
|
7657
|
-
removeStorageItem?(key: string): void;
|
|
7658
|
-
setStorageItem?(key: string, value: string): void;
|
|
7659
|
-
onHTTPError?(callback: (options: HTTPErrorCallbackOptions) => void): void;
|
|
7660
|
-
triggerPreCaptureReport?(callback: (error: PluginOnErrorCallbackErrorInfo) => void): void;
|
|
7661
|
-
PluginShape?: void;
|
|
7662
|
-
initBehaviorListener?(addBehavior: AddBehavior, config: BehaviorConfig): void;
|
|
7663
|
-
reportAPI?(config: RequestHookConfig, callback: (options: APICallbackOptions) => void): void;
|
|
7664
|
-
}
|
|
7665
|
-
|
|
7666
7648
|
/**
|
|
7667
7649
|
* @description 政策信息,例如隐私链接,免责声明等
|
|
7668
7650
|
*/
|
|
@@ -9554,6 +9536,24 @@ TValue extends Array<infer AValue> ? Array<AValue extends infer TUnpacked & {} ?
|
|
|
9554
9536
|
|
|
9555
9537
|
declare type Pseudos = AdvancedPseudos | SimplePseudos;
|
|
9556
9538
|
|
|
9539
|
+
/**
|
|
9540
|
+
* @description QR code configuration for code form view
|
|
9541
|
+
*/
|
|
9542
|
+
declare interface QrCodeConfig {
|
|
9543
|
+
/**
|
|
9544
|
+
* @description QR code render style, e.g. "rounded"
|
|
9545
|
+
*/
|
|
9546
|
+
renderStyle?: string;
|
|
9547
|
+
/**
|
|
9548
|
+
* @description QR code center icon, can be URL or Base64 format
|
|
9549
|
+
*/
|
|
9550
|
+
centerIcon?: string;
|
|
9551
|
+
/**
|
|
9552
|
+
* @description QR code corner icon, can be URL or Base64 format
|
|
9553
|
+
*/
|
|
9554
|
+
cornerIcon?: string;
|
|
9555
|
+
}
|
|
9556
|
+
|
|
9557
9557
|
declare interface Rate {
|
|
9558
9558
|
/**
|
|
9559
9559
|
* @description rate label value
|
|
@@ -9623,66 +9623,35 @@ declare class ReceivePort {
|
|
|
9623
9623
|
}): Promise<Record<string, any> | undefined>;
|
|
9624
9624
|
}
|
|
9625
9625
|
|
|
9626
|
+
/**
|
|
9627
|
+
* @description 从webapp重定向到新URL的配置项。
|
|
9628
|
+
* 支持浏览器重定向、app link唤端及schema唤端。
|
|
9629
|
+
*/
|
|
9626
9630
|
declare interface RedirectOption {
|
|
9631
|
+
/**
|
|
9632
|
+
* @description 浏览器重定向到兜底的url,通常在唤端失败时会走这个,或者你不需要唤端,只需要跳转到某个url
|
|
9633
|
+
*/
|
|
9627
9634
|
url: string;
|
|
9635
|
+
/**
|
|
9636
|
+
* @description 唤端到url地址,http或https的地址
|
|
9637
|
+
*/
|
|
9638
|
+
appLinkUrl?: string;
|
|
9639
|
+
/**
|
|
9640
|
+
* @description 唤端到schema地址, schema://的地址
|
|
9641
|
+
*/
|
|
9642
|
+
schemaUrl?: string;
|
|
9643
|
+
/**
|
|
9644
|
+
* @description 重定向模式,默认为redirect
|
|
9645
|
+
*/
|
|
9628
9646
|
mode?: 'redirect' | 'replace';
|
|
9629
9647
|
/**
|
|
9630
9648
|
* @description 是否重定向后销毁实例,默认为true
|
|
9631
9649
|
*/
|
|
9632
|
-
|
|
9650
|
+
destroy?: boolean;
|
|
9633
9651
|
}
|
|
9634
9652
|
|
|
9635
|
-
declare type ReportData = {
|
|
9636
|
-
title?: string;
|
|
9637
|
-
msg?: string | Error | Record<string, number | string> | Event;
|
|
9638
|
-
logType: 'error' | 'info';
|
|
9639
|
-
extra?: Record<string, number | boolean | string | undefined | Error | null>;
|
|
9640
|
-
} | ({
|
|
9641
|
-
logType: 'custom';
|
|
9642
|
-
} & LogItem);
|
|
9643
|
-
|
|
9644
9653
|
declare type RequestEnv = 'local' | 'dev' | 'sit' | 'pre' | 'prod' | 'sandbox' | 'light_sandbox';
|
|
9645
9654
|
|
|
9646
|
-
declare class RequesterCacheWrapper {
|
|
9647
|
-
private autoReportConfig;
|
|
9648
|
-
private dataCache;
|
|
9649
|
-
private lastSendTime;
|
|
9650
|
-
private batchCount;
|
|
9651
|
-
private sendFrequency;
|
|
9652
|
-
constructor(autoReportConfig: {
|
|
9653
|
-
immediate?: boolean;
|
|
9654
|
-
deviceId?: Promise<string>;
|
|
9655
|
-
isReport?: boolean;
|
|
9656
|
-
programVersion?: string;
|
|
9657
|
-
productId?: string;
|
|
9658
|
-
appId?: string;
|
|
9659
|
-
compatibleAppId?: string;
|
|
9660
|
-
bizType?: string;
|
|
9661
|
-
});
|
|
9662
|
-
report(options: ReportData & {
|
|
9663
|
-
request: GetRequesterResult;
|
|
9664
|
-
extraDataFilter?: (data: Record<string, any>) => Promise<Record<string, any>>;
|
|
9665
|
-
dataFilter?: (data: string[]) => Promise<string[]>;
|
|
9666
|
-
} & BaseInfo & {
|
|
9667
|
-
immediate?: boolean;
|
|
9668
|
-
}): Promise<void>;
|
|
9669
|
-
private send;
|
|
9670
|
-
/**
|
|
9671
|
-
* 分批发送请求
|
|
9672
|
-
*/
|
|
9673
|
-
private httpRequest;
|
|
9674
|
-
private sendBatch;
|
|
9675
|
-
}
|
|
9676
|
-
|
|
9677
|
-
declare type RequestHookConfig = {
|
|
9678
|
-
/**
|
|
9679
|
-
* @description 不上报的域名
|
|
9680
|
-
*/
|
|
9681
|
-
excludes?: Array<string | RegExp>;
|
|
9682
|
-
getFetchResponseInfo?: (headers: Headers, responseData: Record<string, any>, requestParam: Array<any>) => ResponseInfo;
|
|
9683
|
-
getXHRResponseInfo?: (response: XHRResponse) => ResponseInfo;
|
|
9684
|
-
};
|
|
9685
|
-
|
|
9686
9655
|
declare interface RequestOptions {
|
|
9687
9656
|
env?: RequestEnv;
|
|
9688
9657
|
baseURL?: string;
|
|
@@ -9707,15 +9676,6 @@ declare interface RequestOptions {
|
|
|
9707
9676
|
scope?: string;
|
|
9708
9677
|
}
|
|
9709
9678
|
|
|
9710
|
-
declare type ResponseInfo = {
|
|
9711
|
-
responseUrl?: string;
|
|
9712
|
-
traceId?: string;
|
|
9713
|
-
isSuccess?: boolean;
|
|
9714
|
-
errorCode?: string | number;
|
|
9715
|
-
errorMsg?: string;
|
|
9716
|
-
url?: string;
|
|
9717
|
-
};
|
|
9718
|
-
|
|
9719
9679
|
/**
|
|
9720
9680
|
* @description 国际支付标准结果码,参考主站<code>ErrorCode</code>实现。
|
|
9721
9681
|
*
|
|
@@ -9860,7 +9820,25 @@ declare interface SharePayInfo {
|
|
|
9860
9820
|
securityText?: string;
|
|
9861
9821
|
}
|
|
9862
9822
|
|
|
9863
|
-
declare interface ShippingInfo {
|
|
9823
|
+
export declare interface ShippingInfo {
|
|
9824
|
+
shippingName: {
|
|
9825
|
+
firstName: string;
|
|
9826
|
+
lastName: string;
|
|
9827
|
+
middleName?: string;
|
|
9828
|
+
fullName?: string;
|
|
9829
|
+
};
|
|
9830
|
+
shippingPhoneNo: string;
|
|
9831
|
+
shippingAddress: {
|
|
9832
|
+
region: string;
|
|
9833
|
+
address1: string;
|
|
9834
|
+
address2: string;
|
|
9835
|
+
city?: string;
|
|
9836
|
+
state?: string;
|
|
9837
|
+
zipCode: string;
|
|
9838
|
+
};
|
|
9839
|
+
}
|
|
9840
|
+
|
|
9841
|
+
declare interface ShippingInfo_2 {
|
|
9864
9842
|
/**
|
|
9865
9843
|
* @description The unique ID to identify the shipping info
|
|
9866
9844
|
*/
|
|
@@ -10072,14 +10050,6 @@ declare type SimplePseudos =
|
|
|
10072
10050
|
| ":volume-locked"
|
|
10073
10051
|
| ":xr-overlay";
|
|
10074
10052
|
|
|
10075
|
-
declare interface SpmConfig {
|
|
10076
|
-
spmAPos: string;
|
|
10077
|
-
bizType: string;
|
|
10078
|
-
pages?: Record<string, Record<string, string>>;
|
|
10079
|
-
mdata?: Record<string, number | string | boolean>;
|
|
10080
|
-
immediate?: boolean;
|
|
10081
|
-
}
|
|
10082
|
-
|
|
10083
10053
|
declare interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
10084
10054
|
/**
|
|
10085
10055
|
* This feature is not Baseline because it does not work in some of the most widely-used browsers.
|
|
@@ -23778,16 +23748,20 @@ declare interface StandardShorthandPropertiesHyphen<TLength = (string & {}) | 0,
|
|
|
23778
23748
|
|
|
23779
23749
|
declare type StandardShorthandPropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<StandardShorthandPropertiesHyphen<TLength, TTime>>;
|
|
23780
23750
|
|
|
23751
|
+
export declare type SubmitParams = {
|
|
23752
|
+
redirect?: 'always' | 'if_required';
|
|
23753
|
+
};
|
|
23754
|
+
|
|
23781
23755
|
/**
|
|
23782
|
-
* @description
|
|
23756
|
+
* @description 成功时的数据类型
|
|
23783
23757
|
*/
|
|
23784
23758
|
export declare type SubmitResult = {
|
|
23759
|
+
/* Excluded from this release type: code */
|
|
23760
|
+
/* Excluded from this release type: message */
|
|
23785
23761
|
/**
|
|
23786
23762
|
* 查询到的状态
|
|
23787
23763
|
*/
|
|
23788
23764
|
status: 'SUCCESS' | 'CANCELLED' | 'FAIL' | 'PROCESSING';
|
|
23789
|
-
/* Excluded from this release type: code */
|
|
23790
|
-
/* Excluded from this release type: message */
|
|
23791
23765
|
/**
|
|
23792
23766
|
* @description 对结果的详细结果码和结果信息,在status为SUCCESS时无该字段
|
|
23793
23767
|
*/
|
|
@@ -23800,6 +23774,10 @@ export declare type SubmitResult = {
|
|
|
23800
23774
|
* 查询到的结果消息
|
|
23801
23775
|
*/
|
|
23802
23776
|
message?: string;
|
|
23777
|
+
/**
|
|
23778
|
+
* @description 是否需要更换 session 重试
|
|
23779
|
+
*/
|
|
23780
|
+
needChangeSessionForRetry?: boolean;
|
|
23803
23781
|
};
|
|
23804
23782
|
/**
|
|
23805
23783
|
* 是否是用户手动取消3D
|
|
@@ -24258,256 +24236,15 @@ declare interface TerminalTypeAction {
|
|
|
24258
24236
|
interactionType?: string;
|
|
24259
24237
|
}
|
|
24260
24238
|
|
|
24261
|
-
|
|
24262
|
-
|
|
24263
|
-
|
|
24264
|
-
|
|
24265
|
-
|
|
24266
|
-
|
|
24267
|
-
|
|
24268
|
-
|
|
24269
|
-
|
|
24270
|
-
private cachePath;
|
|
24271
|
-
private userPathLength;
|
|
24272
|
-
private pathUserMeta;
|
|
24273
|
-
private isMarmot;
|
|
24274
|
-
protected appId?: string;
|
|
24275
|
-
protected compatibleAppId?: string;
|
|
24276
|
-
private plugin;
|
|
24277
|
-
private sprintId?;
|
|
24278
|
-
private userId;
|
|
24279
|
-
protected deviceId?: Promise<string>;
|
|
24280
|
-
protected programVersion?: string;
|
|
24281
|
-
private language?;
|
|
24282
|
-
protected bizType?: string;
|
|
24283
|
-
protected productId?: string;
|
|
24284
|
-
private whiteScreenConfig?;
|
|
24285
|
-
private performance?;
|
|
24286
|
-
protected isReport?: boolean;
|
|
24287
|
-
protected server?: string;
|
|
24288
|
-
protected servers?: string[];
|
|
24289
|
-
protected platform?: string;
|
|
24290
|
-
private env?;
|
|
24291
|
-
private immediate?;
|
|
24292
|
-
enableScreenshot: boolean | undefined | {
|
|
24293
|
-
rate: number;
|
|
24294
|
-
};
|
|
24295
|
-
private enableResourceAnalysis?;
|
|
24296
|
-
private _lag?;
|
|
24297
|
-
private spmCheckCover?;
|
|
24298
|
-
private enableBehavior?;
|
|
24299
|
-
private behavior?;
|
|
24300
|
-
private enableRequestHook?;
|
|
24301
|
-
private enableJSAPIReport?;
|
|
24302
|
-
private customizedPerformanceMark?;
|
|
24303
|
-
constructor(Plugin: new (context: PluginContext) => PluginShape);
|
|
24304
|
-
init(options: TrackerInitOptions): Promise<boolean>;
|
|
24305
|
-
/**
|
|
24306
|
-
* 业务侧可以拦截发送日志的请求,用于手动过滤
|
|
24307
|
-
* 当前仅对浏览器环境生效
|
|
24308
|
-
* rawData 是 intl-tracker 内部格式的数据,为对象
|
|
24309
|
-
* data 是最终发送到服务端的数据,为字符串形式
|
|
24310
|
-
*/
|
|
24311
|
-
onSendData(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
|
|
24312
|
-
/**
|
|
24313
|
-
* 业务侧可以取消拦截发送日志的请求
|
|
24314
|
-
* 当前仅对浏览器环境生效
|
|
24315
|
-
*/
|
|
24316
|
-
offSendData(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
|
|
24317
|
-
private startReportSnapshot;
|
|
24318
|
-
/**
|
|
24319
|
-
* 用于上报自定义性能指标,单次仅上报一个指标
|
|
24320
|
-
* @param key m1 - m20
|
|
24321
|
-
* @param num 耗时,数字,一定要 >= 0,否则无统计意义
|
|
24322
|
-
*/
|
|
24323
|
-
reportCustomizedPerformance(key: CustomizedPerformanceKey, num: number): void | undefined;
|
|
24324
|
-
/**
|
|
24325
|
-
* 上报自定义性能指标
|
|
24326
|
-
* @param data 适合单次合并上报多个指标的场景
|
|
24327
|
-
* 请注意,使用 reportCustomizedPerformance 上报时,每次上报会发送一次日志请求
|
|
24328
|
-
* 不同阶段的数据量会有差异,这些差异可以作为页面流失漏斗的数据源
|
|
24329
|
-
* 但合并上报时,同时上报的多个指标数量是相同的
|
|
24330
|
-
*/
|
|
24331
|
-
reportCustomizedPerformanceData(data: Partial<Record<CustomizedPerformanceKey, number>>): void | undefined;
|
|
24332
|
-
/**
|
|
24333
|
-
* 用于显式上报小程序性能指标
|
|
24334
|
-
* 由于小程序的性能指标仅在“使用 schema 打开页面”时有效,原来的自动上报未区分场景,会导致脏数据较多
|
|
24335
|
-
* 改为数据自动采集、仅在必要时由业务方手动调用接口上报
|
|
24336
|
-
*/
|
|
24337
|
-
reportMiniProgramPerformance(): Promise<void> | undefined;
|
|
24338
|
-
getMiniProgramPerformanceData(): Promise<{
|
|
24339
|
-
s1: number;
|
|
24340
|
-
s2: number;
|
|
24341
|
-
s3: number;
|
|
24342
|
-
s4: number;
|
|
24343
|
-
s5: number;
|
|
24344
|
-
s6: number;
|
|
24345
|
-
s7: number;
|
|
24346
|
-
s8: number;
|
|
24347
|
-
} | undefined> | undefined;
|
|
24348
|
-
/**
|
|
24349
|
-
* 用于显式上报网页性能指标,一般用不上
|
|
24350
|
-
* 1. tracker.onPageLoad() 会自动上报
|
|
24351
|
-
* 2. tracker.reportCustomizedPerformanceData() 会自动上报
|
|
24352
|
-
* 3. tracker.reportCustomizedPerformance() 会自动上报
|
|
24353
|
-
* 4. tracker.reportMiniProgramPerformance() 会自动上报
|
|
24354
|
-
* 5. 以上方法仅会上报一次网页性能指标,多次调用不受影响
|
|
24355
|
-
* 6. 仅当以上所有方法均未调用时,才需要手动调用此方法
|
|
24356
|
-
*/
|
|
24357
|
-
reportPagePerformance(): Promise<void> | undefined;
|
|
24358
|
-
private handleReportSnapShot;
|
|
24359
|
-
get lag(): {
|
|
24360
|
-
log: (msg: string) => Promise<void>;
|
|
24361
|
-
fps: () => Promise<void>;
|
|
24362
|
-
};
|
|
24363
|
-
onPageLoad(options?: string | {
|
|
24364
|
-
title?: string;
|
|
24365
|
-
fmpIgnoreElements?: string[];
|
|
24366
|
-
}): Promise<void>;
|
|
24367
|
-
reportPerformance(title?: string): void;
|
|
24368
|
-
reportDetailPerformance(): void;
|
|
24369
|
-
onError(): Promise<(() => void) | undefined>;
|
|
24370
|
-
fmp(time: number): void;
|
|
24371
|
-
flushBehavior(): void;
|
|
24372
|
-
/**
|
|
24373
|
-
* 内部使用
|
|
24374
|
-
*
|
|
24375
|
-
* @param error
|
|
24376
|
-
*/
|
|
24377
|
-
private reportError;
|
|
24378
|
-
private triggerPreCaptureReport;
|
|
24379
|
-
onHTTPError(): Promise<void>;
|
|
24380
|
-
private reportAPI;
|
|
24381
|
-
/**
|
|
24382
|
-
* 内部使用,业务项目不要调用
|
|
24383
|
-
*
|
|
24384
|
-
* @param options
|
|
24385
|
-
*/
|
|
24386
|
-
reportHTTPError(options: HTTPErrorCallbackOptions): void;
|
|
24387
|
-
set(options: Record<string, any>): void;
|
|
24388
|
-
log(item: LogItem): void;
|
|
24389
|
-
/**
|
|
24390
|
-
* @deprecated Compatible with old APIs. Use `Tracker#log` instead.
|
|
24391
|
-
* @param info
|
|
24392
|
-
* @param extra
|
|
24393
|
-
*/
|
|
24394
|
-
logInfo(info: LogInfo, extra?: Record<string, number | boolean | string>): Promise<void>;
|
|
24395
|
-
/**
|
|
24396
|
-
* @deprecated Compatible with old APIs. Use `Tracker#log` instead.
|
|
24397
|
-
* @param info
|
|
24398
|
-
* @param extra
|
|
24399
|
-
*/
|
|
24400
|
-
logError(info: LogInfo, extra?: Record<string, number | boolean | string>): Promise<void>;
|
|
24401
|
-
reportFunnel(title: string, config?: {
|
|
24402
|
-
[prop: string]: string | number;
|
|
24403
|
-
name: string;
|
|
24404
|
-
level: number;
|
|
24405
|
-
label: string;
|
|
24406
|
-
} | undefined): Promise<void>;
|
|
24407
|
-
reportRPC(rpcInfo: {
|
|
24408
|
-
name: string;
|
|
24409
|
-
label: string;
|
|
24410
|
-
code?: string | undefined;
|
|
24411
|
-
msg?: string | Error | Record<string, string | number> | undefined;
|
|
24412
|
-
success?: boolean | undefined;
|
|
24413
|
-
result?: number | undefined;
|
|
24414
|
-
traceId?: string | undefined;
|
|
24415
|
-
httpStatus?: string | undefined;
|
|
24416
|
-
time?: number | undefined;
|
|
24417
|
-
}): void;
|
|
24418
|
-
logJSBridgeError(info: LogInfo): void;
|
|
24419
|
-
pageMonitor(page: string, extraParams?: Record<string, any>, autoPv?: boolean): void;
|
|
24420
|
-
expo(code: string, extra?: Record<string, string | number | boolean> | undefined): void;
|
|
24421
|
-
click(code: string, extra?: Record<string, string | number | boolean>): void;
|
|
24422
|
-
pv(): void;
|
|
24423
|
-
/**
|
|
24424
|
-
* 指定点位白屏的监控 - 用于监控目标点位的白屏
|
|
24425
|
-
* 页面白屏和目标点位白屏的通用监控逻辑
|
|
24426
|
-
*
|
|
24427
|
-
* @param selector 目标点位选择器
|
|
24428
|
-
* @param options 配置项
|
|
24429
|
-
* {
|
|
24430
|
-
* 检测延时,单位 second,即启动白屏检测后多久开始执行白屏识别
|
|
24431
|
-
* NOTE: 设置时间时要考虑业务平均加载时间,太短可能会误报
|
|
24432
|
-
* delay
|
|
24433
|
-
*
|
|
24434
|
-
* 是否持续监测, 即初始化白屏检测结束之后是否继续监控业务运行中白屏, default: true
|
|
24435
|
-
* persistent
|
|
24436
|
-
* }
|
|
24437
|
-
*/
|
|
24438
|
-
startCheckingDOMWhiteScreen(selector: string, options: Omit<BlankMonitorConfig, 'selector'>): void;
|
|
24439
|
-
private getRequester;
|
|
24440
|
-
protected getDefaultExtraInfo(): Promise<BaseInfo>;
|
|
24441
|
-
private request;
|
|
24442
|
-
private formatExtra;
|
|
24443
|
-
private reportLog;
|
|
24444
|
-
/**
|
|
24445
|
-
* 解析成功率上报参数
|
|
24446
|
-
* @param key p_ page c_ click expo r l -info或者-error结尾是前端日志
|
|
24447
|
-
* @param funnelConfig 标准漏斗上报参数
|
|
24448
|
-
* @returns 扩展参数数据
|
|
24449
|
-
*/
|
|
24450
|
-
private parseUserPathExtra;
|
|
24451
|
-
/**
|
|
24452
|
-
* 获取成功率上报参数
|
|
24453
|
-
* 用于去冲
|
|
24454
|
-
*/
|
|
24455
|
-
private getUserPathExtra;
|
|
24456
|
-
/**
|
|
24457
|
-
* 恢复存储的用户路径
|
|
24458
|
-
*/
|
|
24459
|
-
private reStoreUserPath;
|
|
24460
|
-
private reStoreUserPathMeta;
|
|
24461
|
-
private reStoreSessionId;
|
|
24462
|
-
/**
|
|
24463
|
-
* 重置session id
|
|
24464
|
-
*/
|
|
24465
|
-
resetSessionId(): void;
|
|
24466
|
-
/**
|
|
24467
|
-
* 重置用户路径
|
|
24468
|
-
*/
|
|
24469
|
-
resetUserPath(): void;
|
|
24470
|
-
private normalizeServer;
|
|
24471
|
-
private normalizeServers;
|
|
24472
|
-
}
|
|
24473
|
-
|
|
24474
|
-
declare interface TrackerInitOptions {
|
|
24475
|
-
spmConfig?: SpmConfig;
|
|
24476
|
-
marmotId: string;
|
|
24477
|
-
compatibleAppId?: string;
|
|
24478
|
-
userId?: string;
|
|
24479
|
-
server?: IMDAP_SERVER | string;
|
|
24480
|
-
servers?: (IMDAP_SERVER | string)[];
|
|
24481
|
-
env?: Env_2;
|
|
24482
|
-
sprintId?: string;
|
|
24483
|
-
whiteScreen?: BlankMonitorConfig | boolean;
|
|
24484
|
-
immediate?: boolean;
|
|
24485
|
-
autoExpo?: boolean;
|
|
24486
|
-
autoClick?: boolean;
|
|
24487
|
-
expoOnce?: boolean;
|
|
24488
|
-
enableScreenshot?: boolean | {
|
|
24489
|
-
rate: number;
|
|
24490
|
-
};
|
|
24491
|
-
enableResourceAnalysis?: boolean;
|
|
24492
|
-
spmCheckCover?: string;
|
|
24493
|
-
enableBehavior?: BehaviorConfig | boolean;
|
|
24494
|
-
enableRequestHook?: RequestHookConfig | boolean;
|
|
24495
|
-
enableJSAPIReport?: boolean;
|
|
24496
|
-
/**
|
|
24497
|
-
* 白名单配置源,仅浏览器环境支持
|
|
24498
|
-
* 不传值时,与旧版功能相同,所有日志都会发送
|
|
24499
|
-
* 1. 值为 REMOTE 时,表示从远程服务器获取白名单配置
|
|
24500
|
-
* 2. 值为 NONE 时,表示不使用白名单配置,所有日志都会发送
|
|
24501
|
-
*/
|
|
24502
|
-
whiteListConfigSource?: WHITE_LIST_CONFIG_SOURCE;
|
|
24503
|
-
/**
|
|
24504
|
-
* 当且仅当 whiteListConfigSource 为 REMOTE 时有效
|
|
24505
|
-
* 在有效期内,不重复加载 json 请求
|
|
24506
|
-
*/
|
|
24507
|
-
remoteConfigValidDuration?: number;
|
|
24508
|
-
productId?: string;
|
|
24509
|
-
bizType?: string;
|
|
24510
|
-
}
|
|
24239
|
+
/**
|
|
24240
|
+
* 主题色映射表 — 将 AntomTheme 映射到 loading 阶段的明暗模式和背景色。
|
|
24241
|
+
* 被 antom.ts(老架构入口)和 modernElementController(新架构入口)共用,
|
|
24242
|
+
* 确保两条路径的弹窗 loading 表现一致。
|
|
24243
|
+
*/
|
|
24244
|
+
export declare const themeColorMap: Record<AntomTheme, {
|
|
24245
|
+
theme: 'dark' | 'light';
|
|
24246
|
+
backgroundColor: string;
|
|
24247
|
+
}>;
|
|
24511
24248
|
|
|
24512
24249
|
/**
|
|
24513
24250
|
* @description 交易信息
|
|
@@ -24587,7 +24324,8 @@ export declare type VaultingAppearance = PickAppearance<VaultingAppearanceProps>
|
|
|
24587
24324
|
export declare type VaultingAppearanceProps = {
|
|
24588
24325
|
displaySetting: 'showCardBrandIcon';
|
|
24589
24326
|
theme: AntomTheme;
|
|
24590
|
-
variables:
|
|
24327
|
+
variables: AntomVariables;
|
|
24328
|
+
fonts?: FontSource[];
|
|
24591
24329
|
};
|
|
24592
24330
|
|
|
24593
24331
|
/**
|
|
@@ -24610,7 +24348,7 @@ export declare class VaultingElement extends BaseMainElement<VaultingElementConf
|
|
|
24610
24348
|
declare interface VaultingElementConfig extends BaseElementConfig<VaultingAppConfig> {
|
|
24611
24349
|
}
|
|
24612
24350
|
|
|
24613
|
-
export declare interface VaultingElementEvents extends
|
|
24351
|
+
export declare interface VaultingElementEvents extends AntomBridgeWithNativeEventMap<VaultingAppConfig, VaultingSubmitParams> {
|
|
24614
24352
|
}
|
|
24615
24353
|
|
|
24616
24354
|
/**
|
|
@@ -28250,16 +27988,9 @@ declare interface VendorShorthandPropertiesHyphen<TLength = (string & {}) | 0, T
|
|
|
28250
27988
|
|
|
28251
27989
|
declare type VendorShorthandPropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<VendorShorthandPropertiesHyphen<TLength, TTime>>;
|
|
28252
27990
|
|
|
28253
|
-
declare type WHITE_LIST_CONFIG_SOURCE = 'REMOTE' | 'NONE';
|
|
28254
|
-
|
|
28255
27991
|
declare type WithAppURL<T> = T & {
|
|
28256
27992
|
appUrl: string;
|
|
28257
27993
|
isMainElement: boolean;
|
|
28258
27994
|
};
|
|
28259
27995
|
|
|
28260
|
-
declare type XHRResponse = {
|
|
28261
|
-
headers: ReturnType<XMLHttpRequest['getAllResponseHeaders']>;
|
|
28262
|
-
body: XMLHttpRequest['response'];
|
|
28263
|
-
};
|
|
28264
|
-
|
|
28265
27996
|
export { }
|