@alipay/ams-checkout 2.0.20 → 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ams-checkout.js +3 -3
- package/dist/ams-checkout.min.js +1 -1
- package/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/elementController/index.js +66 -42
- package/esm/core/component/element/elementProcessor/paymentProcessor.js +13 -10
- package/esm/core/component/element/index.d.ts +4 -1
- package/esm/core/component/element/index.js +19 -4
- package/esm/core/component/element/mock.js +1 -1
- 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 +155 -0
- package/esm/core/component/element/modernElementController/index.js +1780 -0
- package/esm/core/component/element/type.d.ts +16 -18
- package/esm/core/instance/index.d.ts +12 -4
- package/esm/core/instance/index.js +152 -26
- package/esm/foundation/service/event-center.js +1 -1
- package/esm/foundation/service/security/index.d.ts +9 -4
- package/esm/foundation/service/security/index.js +158 -35
- package/esm/foundation/service/security/security.d.ts +22 -1
- package/esm/foundation/service/security/security.js +150 -37
- package/esm/foundation/utils/preload_helper.d.ts +6 -3
- package/esm/foundation/utils/preload_helper.js +122 -32
- package/esm/main.js +4 -4
- 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/plugin/component/channel.d.ts +2 -2
- package/esm/plugin/component/channel.js +18 -18
- package/esm/plugin/component/index.js +36 -29
- package/esm/tsdoc-metadata.json +1 -1
- package/esm/types/index.d.ts +1 -0
- package/esm/util/beforeConfirm.d.ts +4 -2
- package/esm/util/beforeConfirm.js +15 -14
- package/esm/util/jshield-apdid/apdid-loader.js +377 -0
- package/esm/util/jshield-apdid/index.js +21 -0
- package/esm/util/logger.js +1 -2
- package/esm/util/security-registry.d.ts +72 -0
- package/esm/util/security-registry.js +175 -0
- package/esm/util/security.d.ts +22 -1
- package/esm/util/security.js +150 -39
- package/package.json +15 -9
- package/types.d.ts +840 -1103
- package/types.untrimmed.d.ts +992 -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,48 @@ 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
|
+
/**
|
|
3241
|
+
* 构造时传入的初始金额。cleanAppConfig 已剔除 amount,setup 阶段透传给 iframe(PayPal 按钮首屏需要)
|
|
3242
|
+
* 与 PayPal channelClientId 查询仍需读它;运行时改额只能走 updateConfig。
|
|
3243
|
+
*/
|
|
3244
|
+
private _initialAmount;
|
|
3245
|
+
/**
|
|
3246
|
+
* 本地事件处理器(绕过 bridge 的 host→webapp 方向限制)。
|
|
3247
|
+
* bridge.on 只能监听 iframe 发来的消息;SDK host 主动推送事件给商户时走 _emit → _localHandlers。
|
|
3248
|
+
*/
|
|
3249
|
+
private _localHandlers;
|
|
3250
|
+
/** 支付流程进行中标志(click → confirm/error/cancel 之间) */
|
|
3251
|
+
private _paymentInProgress;
|
|
3252
|
+
private _paypalOverlay;
|
|
3280
3253
|
constructor(name: string, config: ExpressElementConfig);
|
|
3281
|
-
setup(): Promise<Partial<ExpressAppConfig> | undefined>;
|
|
3282
3254
|
/**
|
|
3283
|
-
*
|
|
3255
|
+
* 重写 on:
|
|
3256
|
+
* 1. 对 confirm 事件拦截,在商户回调执行前注入 paymentFailed()
|
|
3257
|
+
* 2. 对 onRedirect 事件同步注册到 _localHandlers(SDK host 主动推送时商户能收到)
|
|
3258
|
+
*/
|
|
3259
|
+
on(event: string, handler: (...args: any[]) => void): void;
|
|
3260
|
+
/**
|
|
3261
|
+
* SDK host 主动推送事件给商户(不走 bridge postMessage,直接调用本地注册的 handler)。
|
|
3262
|
+
* 用于 Native WebView 场景下 SDK 需要向商户透传跳转信息等。
|
|
3263
|
+
*/
|
|
3264
|
+
private _emit;
|
|
3265
|
+
updateConfig(newConfig: Pick<ExpressAppConfig, 'amount'>): Promise<ExpressElementEvents['OPENSDK@UPDATE_CONFIG_REPLY']>;
|
|
3266
|
+
/**
|
|
3267
|
+
* 商户在 confirm 回调内调用,触发实际支付提交。
|
|
3268
|
+
* iframe 收到 OPENSDK@COMPLETE_PAYMENT 后执行 submitPay / polling 等,
|
|
3269
|
+
* 完成后通过 OPENSDK@COMPLETE_PAYMENT_RESULT 回包,Promise resolve。
|
|
3284
3270
|
*/
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3271
|
+
completePayment(redirect?: 'always' | 'if_required'): Promise<{
|
|
3272
|
+
success: boolean;
|
|
3273
|
+
result?: any;
|
|
3274
|
+
error?: {
|
|
3275
|
+
code: string;
|
|
3276
|
+
message: string;
|
|
3277
|
+
};
|
|
3278
|
+
}>;
|
|
3279
|
+
setup(): Promise<Partial<ExpressAppConfig> | undefined>;
|
|
3289
3280
|
private registerInternalListeners;
|
|
3290
3281
|
protected focus(): void;
|
|
3291
3282
|
protected blur(): void;
|
|
@@ -3303,57 +3294,83 @@ export declare interface ExpressElementConfig extends BaseElementConfig<ExpressA
|
|
|
3303
3294
|
* @public
|
|
3304
3295
|
* @description Express element events type
|
|
3305
3296
|
*/
|
|
3306
|
-
export declare interface ExpressElementEvents extends
|
|
3307
|
-
/**
|
|
3308
|
-
* @description Element ready event — 上报可用支付方式
|
|
3309
|
-
*/
|
|
3297
|
+
export declare interface ExpressElementEvents extends AntomBridgeWithNativeEventMap<ExpressAppConfig> {
|
|
3310
3298
|
ready: {
|
|
3311
3299
|
availablePaymentMethods: Record<string, boolean>;
|
|
3312
3300
|
};
|
|
3313
|
-
/**
|
|
3314
|
-
* @description 用户点击按钮 — 商户必须调用 event.resolve() 后 sheet 才弹出
|
|
3315
|
-
* 对 PayPal: resolve 为 no-op(PayPal 自行弹出 popup)
|
|
3316
|
-
*/
|
|
3317
3301
|
click: ExpressClickEvent;
|
|
3318
|
-
/**
|
|
3319
|
-
* @description 统一支付完成事件(替代 approve)
|
|
3320
|
-
* 用户授权完成后触发,通过 expressPaymentType 区分钱包类型
|
|
3321
|
-
*/
|
|
3322
3302
|
confirm: ExpressConfirmData;
|
|
3323
|
-
/**
|
|
3324
|
-
* @description 支付错误事件(扩展基类 ErrorPayload,新增 expressPaymentType)
|
|
3325
|
-
*/
|
|
3326
3303
|
error: ErrorPayload & {
|
|
3327
3304
|
expressPaymentType: string;
|
|
3328
3305
|
};
|
|
3329
|
-
/**
|
|
3330
|
-
* @description 用户取消支付
|
|
3331
|
-
*/
|
|
3332
3306
|
cancel: ExpressCancelEvent;
|
|
3333
|
-
/**
|
|
3334
|
-
* @description 用户在 sheet 内变更收货地址(AP/GP only,PayPal 不触发)
|
|
3335
|
-
*/
|
|
3336
3307
|
shippingaddresschange: {
|
|
3337
3308
|
expressPaymentType: string;
|
|
3338
3309
|
address: any;
|
|
3339
3310
|
resolve: (options: ShippingResolveOptions) => void;
|
|
3340
3311
|
reject: (reason: string) => void;
|
|
3341
3312
|
};
|
|
3342
|
-
/**
|
|
3343
|
-
* @description 用户在 sheet 内变更配送方式(AP/GP only,PayPal 不触发)
|
|
3344
|
-
*/
|
|
3345
3313
|
shippingratechange: {
|
|
3346
3314
|
expressPaymentType: string;
|
|
3347
3315
|
shippingRate: any;
|
|
3348
3316
|
resolve: (options: RateResolveOptions) => void;
|
|
3349
3317
|
};
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3318
|
+
contentHeightChanged: {
|
|
3319
|
+
height: number;
|
|
3320
|
+
};
|
|
3321
|
+
'OPENSDK@CLICK': {
|
|
3322
|
+
expressPaymentType: string;
|
|
3323
|
+
};
|
|
3324
|
+
'OPENSDK@CLICK_RESOLVE': Record<string, never>;
|
|
3325
|
+
'OPENSDK@PAYPAL_CREATE_ORDER': {
|
|
3326
|
+
requestId: string;
|
|
3327
|
+
};
|
|
3328
|
+
'OPENSDK@PAYPAL_CREATE_ORDER_REPLY': {
|
|
3329
|
+
requestId: string;
|
|
3330
|
+
sessionData?: string;
|
|
3331
|
+
error?: string;
|
|
3332
|
+
};
|
|
3333
|
+
'OPENSDK@PAYPAL_SHIPPING_ADDRESS_CHANGE': {
|
|
3334
|
+
requestId: string;
|
|
3335
|
+
shippingData: any;
|
|
3336
|
+
};
|
|
3337
|
+
'OPENSDK@PAYPAL_SHIPPING_ADDRESS_CHANGE_REPLY': {
|
|
3338
|
+
requestId: string;
|
|
3339
|
+
error?: string;
|
|
3340
|
+
};
|
|
3341
|
+
'OPENSDK@PAYPAL_SHIPPING_OPTIONS_CHANGE': {
|
|
3342
|
+
requestId: string;
|
|
3343
|
+
shippingData: any;
|
|
3344
|
+
};
|
|
3345
|
+
'OPENSDK@PAYPAL_SHIPPING_OPTIONS_CHANGE_REPLY': {
|
|
3346
|
+
requestId: string;
|
|
3347
|
+
error?: string;
|
|
3348
|
+
};
|
|
3349
|
+
'OPENSDK@GET_APPLE_PAY_TOKEN': {
|
|
3350
|
+
requestId: string;
|
|
3351
|
+
expressPaymentType: string;
|
|
3352
|
+
};
|
|
3353
|
+
/** host 完成 Apple Pay token 获取后回包给 iframe,submit/3DS/polling 均由 webapp 完成 */
|
|
3354
|
+
'OPENSDK@GET_APPLE_PAY_TOKEN_REPLY': {
|
|
3355
|
+
requestId: string;
|
|
3356
|
+
success: boolean;
|
|
3357
|
+
result?: any;
|
|
3358
|
+
errorCode?: string;
|
|
3359
|
+
errorMessage?: string;
|
|
3360
|
+
billingDetails?: any;
|
|
3361
|
+
shippingAddress?: any;
|
|
3362
|
+
};
|
|
3363
|
+
'OPENSDK@UPDATE_CONFIG_REPLY': {
|
|
3364
|
+
error?: ErrorPayload<string>;
|
|
3365
|
+
};
|
|
3366
|
+
'OPENSDK@COMPLETE_PAYMENT_REJECT': Record<string, never>;
|
|
3367
|
+
onRedirect: {
|
|
3368
|
+
normalUrl: string;
|
|
3369
|
+
applinkUrl?: string;
|
|
3370
|
+
schemaUrl?: string;
|
|
3371
|
+
isDestroy: boolean;
|
|
3372
|
+
needReset: boolean;
|
|
3373
|
+
};
|
|
3357
3374
|
}
|
|
3358
3375
|
|
|
3359
3376
|
declare interface ExpSupportBank {
|
|
@@ -3378,6 +3395,24 @@ declare interface ExpSupportCardBrand {
|
|
|
3378
3395
|
logo?: Logo;
|
|
3379
3396
|
}
|
|
3380
3397
|
|
|
3398
|
+
/**
|
|
3399
|
+
* @description 支持的分期银行信息
|
|
3400
|
+
*/
|
|
3401
|
+
declare interface ExpSupportIppBank {
|
|
3402
|
+
/**
|
|
3403
|
+
* @description bank short name or bank code
|
|
3404
|
+
*/
|
|
3405
|
+
bankShortName?: string;
|
|
3406
|
+
/**
|
|
3407
|
+
* @description logo
|
|
3408
|
+
*/
|
|
3409
|
+
logo?: Logo;
|
|
3410
|
+
/**
|
|
3411
|
+
* @description bins
|
|
3412
|
+
*/
|
|
3413
|
+
bins?: string[];
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3381
3416
|
declare type Fallback<T> = { [P in keyof T]: T[P] | readonly NonNullable<T[P]>[] };
|
|
3382
3417
|
|
|
3383
3418
|
declare interface FirstPhaseSubscriptionDetail {
|
|
@@ -3395,6 +3430,27 @@ declare interface FirstPhaseSubscriptionDetail {
|
|
|
3395
3430
|
promotionDetails?: PromotionDetail[];
|
|
3396
3431
|
}
|
|
3397
3432
|
|
|
3433
|
+
declare type FontSource = CssFontSource | CustomFontSource;
|
|
3434
|
+
|
|
3435
|
+
declare interface FrontModulesToBeLoadedInterface {
|
|
3436
|
+
acquirerName: string;
|
|
3437
|
+
scriptUrl: string;
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3440
|
+
/**
|
|
3441
|
+
* @description 分期银行展示模型
|
|
3442
|
+
*/
|
|
3443
|
+
declare interface FrontSupportIppBank {
|
|
3444
|
+
/**
|
|
3445
|
+
* @description bank short name or bank code
|
|
3446
|
+
*/
|
|
3447
|
+
bankShortName?: string;
|
|
3448
|
+
/**
|
|
3449
|
+
* @description logo
|
|
3450
|
+
*/
|
|
3451
|
+
logo?: Logo;
|
|
3452
|
+
}
|
|
3453
|
+
|
|
3398
3454
|
declare type GetI18nQueryParam = string | {
|
|
3399
3455
|
/**
|
|
3400
3456
|
* 多语言文案的 key
|
|
@@ -3412,40 +3468,6 @@ declare type GetI18nQueryParam = string | {
|
|
|
3412
3468
|
defaultMessage?: string;
|
|
3413
3469
|
};
|
|
3414
3470
|
|
|
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
3471
|
declare type GlobalOptions = {
|
|
3450
3472
|
i18n?: SimpleI18n;
|
|
3451
3473
|
i18nPrefix: string;
|
|
@@ -4013,17 +4035,12 @@ declare type HtmlAttributes =
|
|
|
4013
4035
|
| "[writingsuggestions]"
|
|
4014
4036
|
| "[xmlns]";
|
|
4015
4037
|
|
|
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;
|
|
4038
|
+
declare interface IApplePayContactField {
|
|
4039
|
+
email: string;
|
|
4040
|
+
name: string;
|
|
4041
|
+
phone: string;
|
|
4042
|
+
postalAddress: string;
|
|
4043
|
+
phoneticName: string;
|
|
4027
4044
|
}
|
|
4028
4045
|
|
|
4029
4046
|
declare interface iBaseElementClass {
|
|
@@ -4031,16 +4048,6 @@ declare interface iBaseElementClass {
|
|
|
4031
4048
|
elementType: string;
|
|
4032
4049
|
}
|
|
4033
4050
|
|
|
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
4051
|
declare interface InstallmentPlan {
|
|
4045
4052
|
/**
|
|
4046
4053
|
* @description 分期支持的银行
|
|
@@ -4159,102 +4166,117 @@ declare interface InterestFree {
|
|
|
4159
4166
|
bankShortName?: string;
|
|
4160
4167
|
}
|
|
4161
4168
|
|
|
4162
|
-
declare
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
declare interface IntlOpenSDKTrackerInitOptions extends Omit<IntlOpenSDKTrackerInitOptions_2, 'appId'> {
|
|
4169
|
+
declare interface IntlOpenSDKTrackerInitOptions extends Omit<ExcludeUndefined<CompatibleTrackerFullOptions>, 'appId'> {
|
|
4170
|
+
trackId?: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* @description appId,默认值为180020050100012557
|
|
4173
|
+
*/
|
|
4169
4174
|
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
4175
|
/**
|
|
4177
|
-
*
|
|
4176
|
+
* origin → 完全按入参 key 输出
|
|
4177
|
+
* snake → 强制 snake_case
|
|
4178
|
+
* camel → 强制 camelCase
|
|
4179
|
+
* both → snake + origin 双写
|
|
4178
4180
|
*/
|
|
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;
|
|
4181
|
+
keyFormat?: 'origin' | 'snake' | 'camel' | 'both';
|
|
4182
|
+
/**
|
|
4183
|
+
* 是否上报idengine_user_path
|
|
4184
|
+
*/
|
|
4185
|
+
userPathAuto?: boolean;
|
|
4254
4186
|
}
|
|
4255
4187
|
|
|
4256
|
-
declare interface
|
|
4257
|
-
|
|
4188
|
+
declare interface IPaymentSessionMetaData {
|
|
4189
|
+
clientId?: string;
|
|
4190
|
+
renderDisplayType?: string;
|
|
4191
|
+
paymentSessionConfig?: PaymentSessionConfig;
|
|
4192
|
+
securityConfig?: SessionSecurityConfig;
|
|
4193
|
+
moneyView?: any;
|
|
4194
|
+
extendInfo?: string;
|
|
4195
|
+
paymentMethodInfoView?: any;
|
|
4196
|
+
paymentView?: any;
|
|
4197
|
+
modernWeb?: boolean;
|
|
4198
|
+
action?: PaymentSessionAction;
|
|
4199
|
+
/**
|
|
4200
|
+
* @description 是一个string,灰度开关,格式为 flag1,flag2,flag3
|
|
4201
|
+
*/
|
|
4202
|
+
flowSwitchTags?: string;
|
|
4203
|
+
authUrlInfo?: {
|
|
4204
|
+
appIdentifier?: string;
|
|
4205
|
+
applinkUrl?: string;
|
|
4206
|
+
normalUrl?: string;
|
|
4207
|
+
schemeUrl?: string;
|
|
4208
|
+
authUrl?: string;
|
|
4209
|
+
};
|
|
4210
|
+
paymentSessionFactor?: {
|
|
4211
|
+
externalRiskTimeout?: number;
|
|
4212
|
+
extendInfo?: {
|
|
4213
|
+
merchantCapabilities?: string[];
|
|
4214
|
+
supportedNetworks?: string[];
|
|
4215
|
+
requiredBillingContactFields: IApplePayContactField[];
|
|
4216
|
+
requiredShippingContactFields: IApplePayContactField[];
|
|
4217
|
+
};
|
|
4218
|
+
merchantInfo?: {
|
|
4219
|
+
registeredCountry?: string;
|
|
4220
|
+
partnerId?: string;
|
|
4221
|
+
merchantName?: string;
|
|
4222
|
+
};
|
|
4223
|
+
order?: {
|
|
4224
|
+
orderDescription: string;
|
|
4225
|
+
};
|
|
4226
|
+
paymentAmount?: {
|
|
4227
|
+
value?: string;
|
|
4228
|
+
currency?: string;
|
|
4229
|
+
};
|
|
4230
|
+
paymentMethodInfo?: {
|
|
4231
|
+
paymentMethodType?: string;
|
|
4232
|
+
};
|
|
4233
|
+
paymentMethodViewMetaData?: any;
|
|
4234
|
+
paymentRequestId?: string;
|
|
4235
|
+
supportedLanguages?: any;
|
|
4236
|
+
/**
|
|
4237
|
+
* 当前为苹果分期场景的信息
|
|
4238
|
+
*/
|
|
4239
|
+
recurringInfo?: {
|
|
4240
|
+
/**
|
|
4241
|
+
* 代扣协议开始日期 不传为当前系统时间
|
|
4242
|
+
*/
|
|
4243
|
+
startDate?: number;
|
|
4244
|
+
/**
|
|
4245
|
+
* 代扣协议结束日期 不传不限制结束时间
|
|
4246
|
+
*/
|
|
4247
|
+
endDate?: number;
|
|
4248
|
+
/**
|
|
4249
|
+
* 付款时间间隔单位,支持:"year" "month" "day" "hour" "minute" 不传默认month
|
|
4250
|
+
*/
|
|
4251
|
+
intervalUnit?: string;
|
|
4252
|
+
/**
|
|
4253
|
+
* 付款时间间隔。比如每过6个月付款一次,intervalCount就是6, 不传默认为1
|
|
4254
|
+
*/
|
|
4255
|
+
intervalCount?: number;
|
|
4256
|
+
/**
|
|
4257
|
+
* 分期标题信息
|
|
4258
|
+
*/
|
|
4259
|
+
title?: string;
|
|
4260
|
+
/**
|
|
4261
|
+
* 分期管理页面
|
|
4262
|
+
*/
|
|
4263
|
+
managementURL?: string;
|
|
4264
|
+
/**
|
|
4265
|
+
* 苹果通知ipay MAPN信息变更的地址
|
|
4266
|
+
*/
|
|
4267
|
+
tokenNotificationURL?: string;
|
|
4268
|
+
/**
|
|
4269
|
+
* 分期协议描述
|
|
4270
|
+
*/
|
|
4271
|
+
agreementDescription?: string;
|
|
4272
|
+
};
|
|
4273
|
+
frontModulesToBeLoaded?: FrontModulesToBeLoadedInterface[];
|
|
4274
|
+
};
|
|
4275
|
+
connectFactor?: {
|
|
4276
|
+
enableConnect?: boolean;
|
|
4277
|
+
};
|
|
4278
|
+
skipRenderPaymentMethod?: boolean;
|
|
4279
|
+
needAccountConfirmPage?: boolean;
|
|
4258
4280
|
}
|
|
4259
4281
|
|
|
4260
4282
|
/**
|
|
@@ -4309,86 +4331,6 @@ export declare interface LoadAntomConfig extends Omit<BaseFactoryConfig, 'tracke
|
|
|
4309
4331
|
env?: 'sandbox' | 'prod';
|
|
4310
4332
|
}
|
|
4311
4333
|
|
|
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
4334
|
/**
|
|
4393
4335
|
* @description Logo信息
|
|
4394
4336
|
*/
|
|
@@ -4419,29 +4361,6 @@ declare interface Logo {
|
|
|
4419
4361
|
logoHeight?: string;
|
|
4420
4362
|
}
|
|
4421
4363
|
|
|
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
4364
|
/**
|
|
4446
4365
|
* @description 端上的行为设定 @Author yanhong
|
|
4447
4366
|
*/
|
|
@@ -4585,12 +4504,6 @@ declare interface MultiCurrencyMoney {
|
|
|
4585
4504
|
currencyValue?: string;
|
|
4586
4505
|
}
|
|
4587
4506
|
|
|
4588
|
-
declare interface NetworkInfo {
|
|
4589
|
-
networkType?: string;
|
|
4590
|
-
isp?: string;
|
|
4591
|
-
ip?: string;
|
|
4592
|
-
}
|
|
4593
|
-
|
|
4594
4507
|
declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
4595
4508
|
/**
|
|
4596
4509
|
* 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 +6575,96 @@ declare interface ObsoletePropertiesHyphen<TLength = (string & {}) | 0, TTime =
|
|
|
6662
6575
|
*
|
|
6663
6576
|
* @deprecated
|
|
6664
6577
|
*/
|
|
6665
|
-
"-webkit-box-orient"?: Property.BoxOrient | undefined;
|
|
6578
|
+
"-webkit-box-orient"?: Property.BoxOrient | undefined;
|
|
6579
|
+
/**
|
|
6580
|
+
* 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.
|
|
6581
|
+
*
|
|
6582
|
+
* **Syntax**: `start | center | end | justify`
|
|
6583
|
+
*
|
|
6584
|
+
* **Initial value**: `start`
|
|
6585
|
+
*
|
|
6586
|
+
* @deprecated
|
|
6587
|
+
*/
|
|
6588
|
+
"-webkit-box-pack"?: Property.BoxPack | undefined;
|
|
6589
|
+
}
|
|
6590
|
+
|
|
6591
|
+
declare type ObsoletePropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<ObsoletePropertiesHyphen<TLength, TTime>>;
|
|
6592
|
+
|
|
6593
|
+
declare interface OneAccountInfo {
|
|
6594
|
+
/**
|
|
6595
|
+
* @description accountId
|
|
6596
|
+
*/
|
|
6597
|
+
oneAccountId?: string;
|
|
6598
|
+
/**
|
|
6599
|
+
* @description 邮箱
|
|
6600
|
+
*/
|
|
6601
|
+
email?: string;
|
|
6602
|
+
/**
|
|
6603
|
+
* @description 账号状态
|
|
6604
|
+
*/
|
|
6605
|
+
accountStatus?: string;
|
|
6606
|
+
}
|
|
6607
|
+
|
|
6608
|
+
/**
|
|
6609
|
+
* @description one account 账户信息查询结果
|
|
6610
|
+
*/
|
|
6611
|
+
declare interface OneAccountQueryResult {
|
|
6612
|
+
/**
|
|
6613
|
+
* @description 是否业务处理成功
|
|
6614
|
+
*/
|
|
6615
|
+
success?: boolean;
|
|
6616
|
+
/**
|
|
6617
|
+
* @description 错误上下文
|
|
6618
|
+
*/
|
|
6619
|
+
errorContext?: ErrorContext;
|
|
6620
|
+
/**
|
|
6621
|
+
* @description 返回结果码
|
|
6622
|
+
*/
|
|
6623
|
+
resultCode?: string;
|
|
6624
|
+
/**
|
|
6625
|
+
* @description 返回结果信息
|
|
6626
|
+
*/
|
|
6627
|
+
resultMessage?: string;
|
|
6628
|
+
/**
|
|
6629
|
+
* @description error actions
|
|
6630
|
+
*/
|
|
6631
|
+
errorActions?: Record<string, string>;
|
|
6632
|
+
/**
|
|
6633
|
+
* @description error code
|
|
6634
|
+
*/
|
|
6635
|
+
errorCode?: string;
|
|
6636
|
+
/**
|
|
6637
|
+
* @description error status
|
|
6638
|
+
*/
|
|
6639
|
+
errorStatus?: string;
|
|
6640
|
+
/**
|
|
6641
|
+
* @description error message
|
|
6642
|
+
*/
|
|
6643
|
+
errorMessage?: string;
|
|
6644
|
+
/**
|
|
6645
|
+
* @description extend info
|
|
6646
|
+
*/
|
|
6647
|
+
extendInfo?: Record<string, string>;
|
|
6666
6648
|
/**
|
|
6667
|
-
*
|
|
6668
|
-
*
|
|
6669
|
-
* **Syntax**: `start | center | end | justify`
|
|
6670
|
-
*
|
|
6671
|
-
* **Initial value**: `start`
|
|
6672
|
-
*
|
|
6673
|
-
* @deprecated
|
|
6649
|
+
* @description one account 账户信息
|
|
6674
6650
|
*/
|
|
6675
|
-
|
|
6676
|
-
}
|
|
6677
|
-
|
|
6678
|
-
declare type ObsoletePropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<ObsoletePropertiesHyphen<TLength, TTime>>;
|
|
6679
|
-
|
|
6680
|
-
declare interface OneAccountInfo {
|
|
6651
|
+
accountInfo?: OneAccountInfo;
|
|
6681
6652
|
/**
|
|
6682
|
-
* @description
|
|
6653
|
+
* @description action form 下一步动作
|
|
6683
6654
|
*/
|
|
6684
|
-
|
|
6655
|
+
actionForm?: OtpChallengeActionForm;
|
|
6685
6656
|
/**
|
|
6686
|
-
* @description
|
|
6657
|
+
* @description 支付方式列表
|
|
6687
6658
|
*/
|
|
6688
|
-
|
|
6659
|
+
paymentMethods?: PaymentMethodView[];
|
|
6689
6660
|
/**
|
|
6690
|
-
* @description
|
|
6661
|
+
* @description 物流信息
|
|
6691
6662
|
*/
|
|
6692
|
-
|
|
6663
|
+
shippings?: ShippingInfo_2[];
|
|
6664
|
+
/**
|
|
6665
|
+
* @description 支付金额 (订单金额 + 物流费)
|
|
6666
|
+
*/
|
|
6667
|
+
paymentAmount?: MobileMoneyView;
|
|
6693
6668
|
}
|
|
6694
6669
|
|
|
6695
6670
|
/**
|
|
@@ -6752,7 +6727,9 @@ declare type OpenSDKInternalErrorCodes = (typeof OpenSDKInternalErrorCodes)[keyo
|
|
|
6752
6727
|
|
|
6753
6728
|
declare class OpenSDKTracker {
|
|
6754
6729
|
private options?;
|
|
6730
|
+
private intlTrackerOptions?;
|
|
6755
6731
|
private tracker?;
|
|
6732
|
+
private trackerInitPromise?;
|
|
6756
6733
|
/**
|
|
6757
6734
|
* @description trackId,会话最终的唯一标识,可以用来打通服务端,追踪整体会话
|
|
6758
6735
|
*/
|
|
@@ -6770,7 +6747,7 @@ declare class OpenSDKTracker {
|
|
|
6770
6747
|
* @param options
|
|
6771
6748
|
* @returns
|
|
6772
6749
|
*/
|
|
6773
|
-
initTracker(options?: IntlOpenSDKTrackerInitOptions): Promise<
|
|
6750
|
+
initTracker(options?: IntlOpenSDKTrackerInitOptions): Promise<CompatibleTrackerFull | undefined>;
|
|
6774
6751
|
private safeCall;
|
|
6775
6752
|
/**
|
|
6776
6753
|
*
|
|
@@ -6780,7 +6757,7 @@ declare class OpenSDKTracker {
|
|
|
6780
6757
|
/**
|
|
6781
6758
|
* @description 设置属性
|
|
6782
6759
|
*/
|
|
6783
|
-
set(data: Partial<IntlOpenSDKTrackerInitOptions
|
|
6760
|
+
set(data: Partial<ExcludeUndefined<IntlOpenSDKTrackerInitOptions>>): void;
|
|
6784
6761
|
/**
|
|
6785
6762
|
* 会以 10141 code 上报一条常规日志,日志头为 D-AE
|
|
6786
6763
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#cq9Zw
|
|
@@ -6790,38 +6767,38 @@ declare class OpenSDKTracker {
|
|
|
6790
6767
|
* 请在marmot申请code后使用,必须关联code
|
|
6791
6768
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#W3dtb
|
|
6792
6769
|
*/
|
|
6793
|
-
log(...args: Parameters<
|
|
6770
|
+
log(...args: Parameters<CompatibleTrackerFull['log']>): void;
|
|
6794
6771
|
/**
|
|
6795
6772
|
* 用于埋点相关上报,点击
|
|
6796
6773
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#XQel9
|
|
6797
6774
|
*/
|
|
6798
|
-
click(...args: Parameters<
|
|
6775
|
+
click(...args: Parameters<CompatibleTrackerFull['click']>): void;
|
|
6799
6776
|
/**
|
|
6800
6777
|
* 用于埋点相关上报,曝光
|
|
6801
6778
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#LiVxE
|
|
6802
6779
|
*/
|
|
6803
|
-
expo(...args: Parameters<
|
|
6780
|
+
expo(...args: Parameters<CompatibleTrackerFull['expo']>): void;
|
|
6804
6781
|
/**
|
|
6805
6782
|
* 用于日志管控
|
|
6806
6783
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#rK7Ru
|
|
6807
6784
|
*/
|
|
6808
|
-
onSendData(...args: Parameters<
|
|
6785
|
+
onSendData(...args: Parameters<CompatibleTrackerFull['onSendData']>): void;
|
|
6809
6786
|
/**
|
|
6810
6787
|
* 用于日志管控
|
|
6811
6788
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#rK7Ru
|
|
6812
6789
|
*/
|
|
6813
|
-
offSendData(...args: Parameters<
|
|
6790
|
+
offSendData(...args: Parameters<CompatibleTrackerFull['offSendData']>): void;
|
|
6814
6791
|
/**
|
|
6815
6792
|
* 用于埋点相关上报,上报的日志头为 D-VM
|
|
6816
6793
|
* @see https://yuque.antfin.com/marmot/handbook/beginning#RSCKn
|
|
6817
6794
|
*/
|
|
6818
|
-
pageMonitor(...args: Parameters<
|
|
6795
|
+
pageMonitor(...args: Parameters<CompatibleTrackerFull['pageMonitor']>): void;
|
|
6819
6796
|
/**
|
|
6820
6797
|
* 用于上报自定义性能指标,单次仅上报一个指标
|
|
6821
6798
|
* @param {string} key — m1 - m20
|
|
6822
6799
|
* @param {number} num — 耗时,数字,一定要 >= 0,否则无统计意义
|
|
6823
6800
|
*/
|
|
6824
|
-
reportCustomizedPerformance(...args: Parameters<
|
|
6801
|
+
reportCustomizedPerformance(...args: Parameters<CompatibleTrackerFull['reportCustomizedPerformance']>): void;
|
|
6825
6802
|
}
|
|
6826
6803
|
|
|
6827
6804
|
/**
|
|
@@ -6834,65 +6811,54 @@ declare interface OrderInfo {
|
|
|
6834
6811
|
orderDescription?: string;
|
|
6835
6812
|
}
|
|
6836
6813
|
|
|
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;
|
|
6814
|
+
declare interface OtpChallengeActionForm {
|
|
6815
|
+
/**
|
|
6816
|
+
* @description action form type
|
|
6817
|
+
*/
|
|
6818
|
+
actionFormType?: string;
|
|
6819
|
+
/**
|
|
6820
|
+
* @description type of challenge
|
|
6821
|
+
*/
|
|
6822
|
+
challengeType?: string;
|
|
6823
|
+
/**
|
|
6824
|
+
* @description The actual render value
|
|
6825
|
+
*/
|
|
6826
|
+
challengeRenderValue?: string;
|
|
6827
|
+
/**
|
|
6828
|
+
* @description Describe the challenge is required by AAC or external party
|
|
6829
|
+
*/
|
|
6830
|
+
triggerSource?: string;
|
|
6831
|
+
/**
|
|
6832
|
+
* @description is support retry challenge
|
|
6833
|
+
* @default true
|
|
6834
|
+
*/
|
|
6835
|
+
isChallengeRetrySupported?: boolean;
|
|
6836
|
+
/**
|
|
6837
|
+
* @description is fist otp auto triggered
|
|
6838
|
+
* @default false
|
|
6839
|
+
*/
|
|
6840
|
+
isChallengeAutoTriggered?: boolean;
|
|
6841
|
+
/**
|
|
6842
|
+
* @description estimated challenge response duration
|
|
6843
|
+
* @default 0
|
|
6844
|
+
*/
|
|
6845
|
+
estimatedDuration?: number;
|
|
6846
|
+
/**
|
|
6847
|
+
* @description url - like h5 sdk challenge need to call back url
|
|
6848
|
+
*/
|
|
6849
|
+
challengeUrl?: string;
|
|
6850
|
+
/**
|
|
6851
|
+
* @description extend information
|
|
6852
|
+
*/
|
|
6853
|
+
extendInfo?: string;
|
|
6854
|
+
/**
|
|
6855
|
+
* @description verify Id
|
|
6856
|
+
*/
|
|
6857
|
+
verifyId?: string;
|
|
6858
|
+
/**
|
|
6859
|
+
* @description 重发次数
|
|
6860
|
+
*/
|
|
6861
|
+
resendLeftTimes?: number;
|
|
6896
6862
|
}
|
|
6897
6863
|
|
|
6898
6864
|
declare type PartialSpeKey<T, V> = Partial<T extends infer K extends string ? Record<K, V> : Record<string, V>>;
|
|
@@ -6916,6 +6882,60 @@ declare interface PayByLinkInfo {
|
|
|
6916
6882
|
linkVersion?: number;
|
|
6917
6883
|
}
|
|
6918
6884
|
|
|
6885
|
+
/**
|
|
6886
|
+
* @description Payment element app config type
|
|
6887
|
+
*/
|
|
6888
|
+
export declare interface PaymentAppConfig extends BaseAppearance<PaymentAppearance>, BaseElementAppConfig {
|
|
6889
|
+
/**
|
|
6890
|
+
* @description sessionData,无法通过updateConfig更新
|
|
6891
|
+
*/
|
|
6892
|
+
sessionData?: string;
|
|
6893
|
+
/* Excluded from this release type: merchantDomain */
|
|
6894
|
+
/* Excluded from this release type: renderData */
|
|
6895
|
+
/* Excluded from this release type: connectAccount */
|
|
6896
|
+
/* Excluded from this release type: sessionMetaData */
|
|
6897
|
+
/* Excluded from this release type: renderDataError */
|
|
6898
|
+
/* Excluded from this release type: sdkVersion */
|
|
6899
|
+
/* Excluded from this release type: _requestConfig */
|
|
6900
|
+
/* Excluded from this release type: logMetaData */
|
|
6901
|
+
/* Excluded from this release type: heightOfVisible */
|
|
6902
|
+
}
|
|
6903
|
+
|
|
6904
|
+
/**
|
|
6905
|
+
* @description Payment element appearance type
|
|
6906
|
+
*/
|
|
6907
|
+
export declare type PaymentAppearance = PickAppearance<{
|
|
6908
|
+
displaySetting: 'showPaymentMethodListWhenSingleOption' | 'showCardBrandIcon' | 'showRadioWhenAccordionLayout' | 'showCardCVV';
|
|
6909
|
+
theme: AntomTheme;
|
|
6910
|
+
variables: AntomVariables;
|
|
6911
|
+
layout: AntomLayouts;
|
|
6912
|
+
}>;
|
|
6913
|
+
|
|
6914
|
+
/**
|
|
6915
|
+
* @description Payment element
|
|
6916
|
+
*/
|
|
6917
|
+
export declare class PaymentElement extends BaseMainElement<PaymentElementConfig, PaymentElementEvents> {
|
|
6918
|
+
static elementType: string;
|
|
6919
|
+
constructor(name: string, config: PaymentElementConfig);
|
|
6920
|
+
/* Excluded from this release type: setup */
|
|
6921
|
+
/* Excluded from this release type: submit */
|
|
6922
|
+
protected focus(): void;
|
|
6923
|
+
protected blur(): void;
|
|
6924
|
+
protected clear(): void;
|
|
6925
|
+
}
|
|
6926
|
+
|
|
6927
|
+
/**
|
|
6928
|
+
* @description Payment element config type
|
|
6929
|
+
*/
|
|
6930
|
+
declare interface PaymentElementConfig extends BaseElementConfig<PaymentAppConfig> {
|
|
6931
|
+
}
|
|
6932
|
+
|
|
6933
|
+
/**
|
|
6934
|
+
* @description Payment element events
|
|
6935
|
+
*/
|
|
6936
|
+
export declare interface PaymentElementEvents extends AntomBridgeWithNativeEventMap<PaymentAppConfig, PaymentSubmitParams, PaymentSubmitResult> {
|
|
6937
|
+
}
|
|
6938
|
+
|
|
6919
6939
|
declare interface PaymentElementView {
|
|
6920
6940
|
/**
|
|
6921
6941
|
* @description payment element key
|
|
@@ -7017,6 +7037,36 @@ declare interface PaymentEvaluationResult {
|
|
|
7017
7037
|
paymentBalanceInfo?: DanaSofPayMethodView[];
|
|
7018
7038
|
}
|
|
7019
7039
|
|
|
7040
|
+
/**
|
|
7041
|
+
* @description Payment guidance information (CKP scenario)
|
|
7042
|
+
*
|
|
7043
|
+
* <p>Displays payment guide buttons on the checkout page, including: - Deep link: For launching the
|
|
7044
|
+
* bank application (required) - Copy configuration: Divider text, button labels, etc. (extensible
|
|
7045
|
+
* via Map, dynamically addable)
|
|
7046
|
+
*/
|
|
7047
|
+
declare interface PaymentGuideInfo {
|
|
7048
|
+
/**
|
|
7049
|
+
* @description The deep link (from iexpprod, used to launch the bank app) The frontend only displays the
|
|
7050
|
+
* payment guide button when this field is populated
|
|
7051
|
+
*/
|
|
7052
|
+
appLinkUrlForWeb?: string;
|
|
7053
|
+
/**
|
|
7054
|
+
* @description Copy configuration (from the config center) Stored in a Map to support dynamic extension of
|
|
7055
|
+
* text fields
|
|
7056
|
+
*
|
|
7057
|
+
* <p>Example configuration:
|
|
7058
|
+
*
|
|
7059
|
+
* <pre>
|
|
7060
|
+
* {
|
|
7061
|
+
* "dividerText": "or pay using",
|
|
7062
|
+
* "directPayButtonText": "Pay directly with online banking",
|
|
7063
|
+
* "ctoPButtonText": "Continue to payment"
|
|
7064
|
+
* }
|
|
7065
|
+
* </pre>
|
|
7066
|
+
*/
|
|
7067
|
+
copyWriting?: Record<string, any>;
|
|
7068
|
+
}
|
|
7069
|
+
|
|
7020
7070
|
/**
|
|
7021
7071
|
* @description 支付方式余额检查结果信息
|
|
7022
7072
|
*/
|
|
@@ -7079,6 +7129,10 @@ declare interface PaymentMethodView {
|
|
|
7079
7129
|
* @description icon
|
|
7080
7130
|
*/
|
|
7081
7131
|
icon?: string;
|
|
7132
|
+
/**
|
|
7133
|
+
* @description adaptive icon for PAYME payment method
|
|
7134
|
+
*/
|
|
7135
|
+
adaptiveIcon?: string;
|
|
7082
7136
|
/**
|
|
7083
7137
|
* @description icon对应的名称
|
|
7084
7138
|
*/
|
|
@@ -7087,6 +7141,10 @@ declare interface PaymentMethodView {
|
|
|
7087
7141
|
* @description 支付方式描述
|
|
7088
7142
|
*/
|
|
7089
7143
|
description?: string;
|
|
7144
|
+
/**
|
|
7145
|
+
* @description 支付方式点击后的描述
|
|
7146
|
+
*/
|
|
7147
|
+
descriptionAfterClick?: string;
|
|
7090
7148
|
/**
|
|
7091
7149
|
* @description category
|
|
7092
7150
|
*/
|
|
@@ -7221,6 +7279,10 @@ declare interface PaymentMethodView {
|
|
|
7221
7279
|
* @description 账单地址收集模式
|
|
7222
7280
|
*/
|
|
7223
7281
|
billingAddressCollectionMode?: string;
|
|
7282
|
+
/**
|
|
7283
|
+
* @description 分期银行信息列表
|
|
7284
|
+
*/
|
|
7285
|
+
supportIppBankList?: FrontSupportIppBank[];
|
|
7224
7286
|
}
|
|
7225
7287
|
|
|
7226
7288
|
declare interface PaymentOption {
|
|
@@ -7288,6 +7350,10 @@ declare interface PaymentOption {
|
|
|
7288
7350
|
* @description 支付选项Logo信息
|
|
7289
7351
|
*/
|
|
7290
7352
|
logo?: Logo;
|
|
7353
|
+
/**
|
|
7354
|
+
* @description 支付描述多语言列表。如果入参有locale,且入参的locale有对应语言,则这里只返回locale对应的语言。
|
|
7355
|
+
*/
|
|
7356
|
+
description?: Record<string, string>;
|
|
7291
7357
|
/**
|
|
7292
7358
|
* @description extendInfo extendInfo information
|
|
7293
7359
|
*/
|
|
@@ -7355,6 +7421,13 @@ declare interface PaymentQuoteInfo {
|
|
|
7355
7421
|
* @description payment amount view
|
|
7356
7422
|
*/
|
|
7357
7423
|
paymentAmountView?: PaymentView;
|
|
7424
|
+
/**
|
|
7425
|
+
* @description Display exchange rate from FX domain Quote, direction-adjusted and formatted to 2 decimal
|
|
7426
|
+
* places. - BID direction: value = 1/price, setScale(2, HALF_UP) - OFFER direction: value =
|
|
7427
|
+
* price, setScale(2, HALF_UP) Used for direct frontend access to exchange rate. Example: 3.16 for
|
|
7428
|
+
* MYR/SGD currency pair
|
|
7429
|
+
*/
|
|
7430
|
+
quotePrice?: any;
|
|
7358
7431
|
}
|
|
7359
7432
|
|
|
7360
7433
|
/**
|
|
@@ -7464,6 +7537,45 @@ declare interface PaymentSessionConfig {
|
|
|
7464
7537
|
productSceneVersion?: string;
|
|
7465
7538
|
}
|
|
7466
7539
|
|
|
7540
|
+
/**
|
|
7541
|
+
* @description The submit params
|
|
7542
|
+
*/
|
|
7543
|
+
export declare interface PaymentSubmitParams extends SubmitParams {
|
|
7544
|
+
/**
|
|
7545
|
+
* @description 是否由antom sdk自动处理唤端逻辑,默认为true,由sdk自动处理。
|
|
7546
|
+
* 如果antom sdk唤起客户端失败,建议设置为false,商家自行唤端
|
|
7547
|
+
*/
|
|
7548
|
+
handleActions?: boolean;
|
|
7549
|
+
/**
|
|
7550
|
+
* @description 收件地址信息
|
|
7551
|
+
*/
|
|
7552
|
+
shippingInfo?: ShippingInfo;
|
|
7553
|
+
/**
|
|
7554
|
+
* @description 集成用户自定义信息(如 cardHolderName)
|
|
7555
|
+
*/
|
|
7556
|
+
params?: Record<string, unknown>;
|
|
7557
|
+
}
|
|
7558
|
+
|
|
7559
|
+
/**
|
|
7560
|
+
* @description Payment element submit result
|
|
7561
|
+
*/
|
|
7562
|
+
export declare interface PaymentSubmitResult extends SubmitResult {
|
|
7563
|
+
paymentSession?: {
|
|
7564
|
+
/**
|
|
7565
|
+
* @description 回调页面的url链接,使用浏览器可直接打开,比如 http://xxx.app.com/xxx
|
|
7566
|
+
*/
|
|
7567
|
+
returnUrl: string;
|
|
7568
|
+
/**
|
|
7569
|
+
* @description 回调页面唤起app的url链接,使用浏览器可直接打开,比如 http://xxx.app.com/xxx
|
|
7570
|
+
*/
|
|
7571
|
+
returnAppUrl?: string;
|
|
7572
|
+
/**
|
|
7573
|
+
* @description 回调页面唤起app的scheme链接,比如 alipay://xxx
|
|
7574
|
+
*/
|
|
7575
|
+
returnAppScheme?: string;
|
|
7576
|
+
};
|
|
7577
|
+
}
|
|
7578
|
+
|
|
7467
7579
|
declare interface PaymentView {
|
|
7468
7580
|
/**
|
|
7469
7581
|
* @description 金额,以元为单位的金额
|
|
@@ -7521,56 +7633,6 @@ export declare interface PayPalConfig {
|
|
|
7521
7633
|
onShippingOptionsChange?: (data: any, actions: any) => Promise<void>;
|
|
7522
7634
|
}
|
|
7523
7635
|
|
|
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
7636
|
declare interface PeriodRule {
|
|
7575
7637
|
/**
|
|
7576
7638
|
* @description period type
|
|
@@ -7582,87 +7644,13 @@ declare interface PeriodRule {
|
|
|
7582
7644
|
periodCount?: number;
|
|
7583
7645
|
}
|
|
7584
7646
|
|
|
7647
|
+
/**
|
|
7648
|
+
* @description 工具类型,仅从 Appearance 中拾取与 Props 类型匹配的属性。
|
|
7649
|
+
* 返回受 Props 中存在的键约束的部分外观对象。
|
|
7650
|
+
* @template Props - 要从 Appearance 中拾取的自定义外观属性类型。
|
|
7651
|
+
*/
|
|
7585
7652
|
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
7653
|
|
|
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
7654
|
/**
|
|
7667
7655
|
* @description 政策信息,例如隐私链接,免责声明等
|
|
7668
7656
|
*/
|
|
@@ -9554,6 +9542,24 @@ TValue extends Array<infer AValue> ? Array<AValue extends infer TUnpacked & {} ?
|
|
|
9554
9542
|
|
|
9555
9543
|
declare type Pseudos = AdvancedPseudos | SimplePseudos;
|
|
9556
9544
|
|
|
9545
|
+
/**
|
|
9546
|
+
* @description QR code configuration for code form view
|
|
9547
|
+
*/
|
|
9548
|
+
declare interface QrCodeConfig {
|
|
9549
|
+
/**
|
|
9550
|
+
* @description QR code render style, e.g. "rounded"
|
|
9551
|
+
*/
|
|
9552
|
+
renderStyle?: string;
|
|
9553
|
+
/**
|
|
9554
|
+
* @description QR code center icon, can be URL or Base64 format
|
|
9555
|
+
*/
|
|
9556
|
+
centerIcon?: string;
|
|
9557
|
+
/**
|
|
9558
|
+
* @description QR code corner icon, can be URL or Base64 format
|
|
9559
|
+
*/
|
|
9560
|
+
cornerIcon?: string;
|
|
9561
|
+
}
|
|
9562
|
+
|
|
9557
9563
|
declare interface Rate {
|
|
9558
9564
|
/**
|
|
9559
9565
|
* @description rate label value
|
|
@@ -9623,66 +9629,35 @@ declare class ReceivePort {
|
|
|
9623
9629
|
}): Promise<Record<string, any> | undefined>;
|
|
9624
9630
|
}
|
|
9625
9631
|
|
|
9632
|
+
/**
|
|
9633
|
+
* @description 从webapp重定向到新URL的配置项。
|
|
9634
|
+
* 支持浏览器重定向、app link唤端及schema唤端。
|
|
9635
|
+
*/
|
|
9626
9636
|
declare interface RedirectOption {
|
|
9637
|
+
/**
|
|
9638
|
+
* @description 浏览器重定向到兜底的url,通常在唤端失败时会走这个,或者你不需要唤端,只需要跳转到某个url
|
|
9639
|
+
*/
|
|
9627
9640
|
url: string;
|
|
9641
|
+
/**
|
|
9642
|
+
* @description 唤端到url地址,http或https的地址
|
|
9643
|
+
*/
|
|
9644
|
+
appLinkUrl?: string;
|
|
9645
|
+
/**
|
|
9646
|
+
* @description 唤端到schema地址, schema://的地址
|
|
9647
|
+
*/
|
|
9648
|
+
schemaUrl?: string;
|
|
9649
|
+
/**
|
|
9650
|
+
* @description 重定向模式,默认为redirect
|
|
9651
|
+
*/
|
|
9628
9652
|
mode?: 'redirect' | 'replace';
|
|
9629
9653
|
/**
|
|
9630
9654
|
* @description 是否重定向后销毁实例,默认为true
|
|
9631
9655
|
*/
|
|
9632
|
-
|
|
9656
|
+
destroy?: boolean;
|
|
9633
9657
|
}
|
|
9634
9658
|
|
|
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
9659
|
declare type RequestEnv = 'local' | 'dev' | 'sit' | 'pre' | 'prod' | 'sandbox' | 'light_sandbox';
|
|
9645
9660
|
|
|
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
9661
|
declare interface RequestOptions {
|
|
9687
9662
|
env?: RequestEnv;
|
|
9688
9663
|
baseURL?: string;
|
|
@@ -9707,15 +9682,6 @@ declare interface RequestOptions {
|
|
|
9707
9682
|
scope?: string;
|
|
9708
9683
|
}
|
|
9709
9684
|
|
|
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
9685
|
/**
|
|
9720
9686
|
* @description 国际支付标准结果码,参考主站<code>ErrorCode</code>实现。
|
|
9721
9687
|
*
|
|
@@ -9860,7 +9826,25 @@ declare interface SharePayInfo {
|
|
|
9860
9826
|
securityText?: string;
|
|
9861
9827
|
}
|
|
9862
9828
|
|
|
9863
|
-
declare interface ShippingInfo {
|
|
9829
|
+
export declare interface ShippingInfo {
|
|
9830
|
+
shippingName: {
|
|
9831
|
+
firstName: string;
|
|
9832
|
+
lastName: string;
|
|
9833
|
+
middleName?: string;
|
|
9834
|
+
fullName?: string;
|
|
9835
|
+
};
|
|
9836
|
+
shippingPhoneNo: string;
|
|
9837
|
+
shippingAddress: {
|
|
9838
|
+
region: string;
|
|
9839
|
+
address1: string;
|
|
9840
|
+
address2: string;
|
|
9841
|
+
city?: string;
|
|
9842
|
+
state?: string;
|
|
9843
|
+
zipCode: string;
|
|
9844
|
+
};
|
|
9845
|
+
}
|
|
9846
|
+
|
|
9847
|
+
declare interface ShippingInfo_2 {
|
|
9864
9848
|
/**
|
|
9865
9849
|
* @description The unique ID to identify the shipping info
|
|
9866
9850
|
*/
|
|
@@ -10072,14 +10056,6 @@ declare type SimplePseudos =
|
|
|
10072
10056
|
| ":volume-locked"
|
|
10073
10057
|
| ":xr-overlay";
|
|
10074
10058
|
|
|
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
10059
|
declare interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
10084
10060
|
/**
|
|
10085
10061
|
* This feature is not Baseline because it does not work in some of the most widely-used browsers.
|
|
@@ -23778,16 +23754,20 @@ declare interface StandardShorthandPropertiesHyphen<TLength = (string & {}) | 0,
|
|
|
23778
23754
|
|
|
23779
23755
|
declare type StandardShorthandPropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<StandardShorthandPropertiesHyphen<TLength, TTime>>;
|
|
23780
23756
|
|
|
23757
|
+
export declare type SubmitParams = {
|
|
23758
|
+
redirect?: 'always' | 'if_required';
|
|
23759
|
+
};
|
|
23760
|
+
|
|
23781
23761
|
/**
|
|
23782
|
-
* @description
|
|
23762
|
+
* @description 成功时的数据类型
|
|
23783
23763
|
*/
|
|
23784
23764
|
export declare type SubmitResult = {
|
|
23765
|
+
/* Excluded from this release type: code */
|
|
23766
|
+
/* Excluded from this release type: message */
|
|
23785
23767
|
/**
|
|
23786
23768
|
* 查询到的状态
|
|
23787
23769
|
*/
|
|
23788
23770
|
status: 'SUCCESS' | 'CANCELLED' | 'FAIL' | 'PROCESSING';
|
|
23789
|
-
/* Excluded from this release type: code */
|
|
23790
|
-
/* Excluded from this release type: message */
|
|
23791
23771
|
/**
|
|
23792
23772
|
* @description 对结果的详细结果码和结果信息,在status为SUCCESS时无该字段
|
|
23793
23773
|
*/
|
|
@@ -23800,6 +23780,10 @@ export declare type SubmitResult = {
|
|
|
23800
23780
|
* 查询到的结果消息
|
|
23801
23781
|
*/
|
|
23802
23782
|
message?: string;
|
|
23783
|
+
/**
|
|
23784
|
+
* @description 是否需要更换 session 重试
|
|
23785
|
+
*/
|
|
23786
|
+
needChangeSessionForRetry?: boolean;
|
|
23803
23787
|
};
|
|
23804
23788
|
/**
|
|
23805
23789
|
* 是否是用户手动取消3D
|
|
@@ -24258,256 +24242,15 @@ declare interface TerminalTypeAction {
|
|
|
24258
24242
|
interactionType?: string;
|
|
24259
24243
|
}
|
|
24260
24244
|
|
|
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
|
-
}
|
|
24245
|
+
/**
|
|
24246
|
+
* 主题色映射表 — 将 AntomTheme 映射到 loading 阶段的明暗模式和背景色。
|
|
24247
|
+
* 被 antom.ts(老架构入口)和 modernElementController(新架构入口)共用,
|
|
24248
|
+
* 确保两条路径的弹窗 loading 表现一致。
|
|
24249
|
+
*/
|
|
24250
|
+
export declare const themeColorMap: Record<AntomTheme, {
|
|
24251
|
+
theme: 'dark' | 'light';
|
|
24252
|
+
backgroundColor: string;
|
|
24253
|
+
}>;
|
|
24511
24254
|
|
|
24512
24255
|
/**
|
|
24513
24256
|
* @description 交易信息
|
|
@@ -24587,7 +24330,8 @@ export declare type VaultingAppearance = PickAppearance<VaultingAppearanceProps>
|
|
|
24587
24330
|
export declare type VaultingAppearanceProps = {
|
|
24588
24331
|
displaySetting: 'showCardBrandIcon';
|
|
24589
24332
|
theme: AntomTheme;
|
|
24590
|
-
variables:
|
|
24333
|
+
variables: AntomVariables;
|
|
24334
|
+
fonts?: FontSource[];
|
|
24591
24335
|
};
|
|
24592
24336
|
|
|
24593
24337
|
/**
|
|
@@ -24610,7 +24354,7 @@ export declare class VaultingElement extends BaseMainElement<VaultingElementConf
|
|
|
24610
24354
|
declare interface VaultingElementConfig extends BaseElementConfig<VaultingAppConfig> {
|
|
24611
24355
|
}
|
|
24612
24356
|
|
|
24613
|
-
export declare interface VaultingElementEvents extends
|
|
24357
|
+
export declare interface VaultingElementEvents extends AntomBridgeWithNativeEventMap<VaultingAppConfig, VaultingSubmitParams> {
|
|
24614
24358
|
}
|
|
24615
24359
|
|
|
24616
24360
|
/**
|
|
@@ -28250,16 +27994,9 @@ declare interface VendorShorthandPropertiesHyphen<TLength = (string & {}) | 0, T
|
|
|
28250
27994
|
|
|
28251
27995
|
declare type VendorShorthandPropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<VendorShorthandPropertiesHyphen<TLength, TTime>>;
|
|
28252
27996
|
|
|
28253
|
-
declare type WHITE_LIST_CONFIG_SOURCE = 'REMOTE' | 'NONE';
|
|
28254
|
-
|
|
28255
27997
|
declare type WithAppURL<T> = T & {
|
|
28256
27998
|
appUrl: string;
|
|
28257
27999
|
isMainElement: boolean;
|
|
28258
28000
|
};
|
|
28259
28001
|
|
|
28260
|
-
declare type XHRResponse = {
|
|
28261
|
-
headers: ReturnType<XMLHttpRequest['getAllResponseHeaders']>;
|
|
28262
|
-
body: XMLHttpRequest['response'];
|
|
28263
|
-
};
|
|
28264
|
-
|
|
28265
28002
|
export { }
|