@alipay/ams-checkout 0.0.1763539719-dev.0 → 0.0.1763711027-dev.1

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.
Files changed (139) hide show
  1. package/ams-checkout.js +1 -0
  2. package/dist/umd/ams-checkout.min.js +1 -1
  3. package/esm/config/index.js +8 -8
  4. package/esm/constant/auto-debit.js +15 -0
  5. package/esm/constant/element.js +30 -0
  6. package/esm/constant/index.js +3 -0
  7. package/esm/core/component/element/elementProcessor/addressProcessor.js +2 -3
  8. package/esm/core/component/element/elementProcessor/authProcessor.js +2 -3
  9. package/esm/core/component/element/elementProcessor/paymentProcessor.js +30 -28
  10. package/esm/foundation/core/index.js +27 -0
  11. package/esm/foundation/service/container/index.js +33 -2
  12. package/esm/foundation/utils/web_app_url_utils.js +10 -15
  13. package/esm/index.js +19 -339
  14. package/esm/loader/Proxy.js +364 -0
  15. package/esm/loader/constant.js +36 -0
  16. package/esm/loader/index.js +23 -0
  17. package/esm/loader/utils/common.js +63 -0
  18. package/esm/loader/utils/debugger.js +15 -0
  19. package/esm/loader/utils/loadSDK.js +92 -0
  20. package/esm/loader/utils/logger.js +59 -0
  21. package/esm/loader/utils/proxyPerformance.js +66 -0
  22. package/esm/main.js +329 -0
  23. package/esm/plugin/component/cashierApp.js +7 -4
  24. package/esm/util/integrationType.js +48 -0
  25. package/esm/util/logger.js +1 -1
  26. package/package.json +7 -1
  27. package/LEGAL.md +0 -6
  28. package/LICENSE +0 -6
  29. package/README.md +0 -49
  30. package/esm/component/channel.d.ts +0 -21
  31. package/esm/component/component.inline.style.d.ts +0 -10
  32. package/esm/component/component.popup.style.d.ts +0 -26
  33. package/esm/component/popupWindow.style.d.ts +0 -24
  34. package/esm/config/index.d.ts +0 -16
  35. package/esm/config/request.d.ts +0 -21
  36. package/esm/constant/easysafepay.d.ts +0 -16
  37. package/esm/constant/index.d.ts +0 -341
  38. package/esm/core/bus/ability/callback.d.ts +0 -9
  39. package/esm/core/bus/ability/security.d.ts +0 -10
  40. package/esm/core/bus/ability/tracker.d.ts +0 -9
  41. package/esm/core/bus/index.d.ts +0 -125
  42. package/esm/core/bus/interface.d.ts +0 -36
  43. package/esm/core/component/address.d.ts +0 -8
  44. package/esm/core/component/appPreloadProcessing.d.ts +0 -1
  45. package/esm/core/component/ckp/index.d.ts +0 -29
  46. package/esm/core/component/element/EventCenter/index.d.ts +0 -31
  47. package/esm/core/component/element/elementContainerService/containerService.d.ts +0 -34
  48. package/esm/core/component/element/elementContainerService/index.d.ts +0 -20
  49. package/esm/core/component/element/elementController/index.d.ts +0 -48
  50. package/esm/core/component/element/elementProcessor/addressProcessor.d.ts +0 -20
  51. package/esm/core/component/element/elementProcessor/authProcessor.d.ts +0 -20
  52. package/esm/core/component/element/elementProcessor/baseElementProcessor.d.ts +0 -41
  53. package/esm/core/component/element/elementProcessor/paymentProcessor.d.ts +0 -22
  54. package/esm/core/component/element/index.d.ts +0 -13
  55. package/esm/core/component/element/mock.d.ts +0 -10
  56. package/esm/core/component/element/type.d.ts +0 -443
  57. package/esm/core/component/element/util.d.ts +0 -85
  58. package/esm/core/component/index.d.ts +0 -58
  59. package/esm/core/drop-in/index.d.ts +0 -22
  60. package/esm/core/instance/index.d.ts +0 -89
  61. package/esm/foundation/core/index.d.ts +0 -36
  62. package/esm/foundation/index.d.ts +0 -97
  63. package/esm/foundation/product-processor/autoDebit/deps.d.ts +0 -14
  64. package/esm/foundation/product-processor/autoDebit/index.d.ts +0 -48
  65. package/esm/foundation/product-processor/easysafepay/deps.d.ts +0 -20
  66. package/esm/foundation/product-processor/easysafepay/index.d.ts +0 -29
  67. package/esm/foundation/product-processor/element/index.d.ts +0 -7
  68. package/esm/foundation/service/api-bus/ability/callback.d.ts +0 -9
  69. package/esm/foundation/service/api-bus/ability/globalData.d.ts +0 -10
  70. package/esm/foundation/service/api-bus/ability/request.d.ts +0 -10
  71. package/esm/foundation/service/api-bus/ability/security.d.ts +0 -12
  72. package/esm/foundation/service/api-bus/ability/tracker.d.ts +0 -9
  73. package/esm/foundation/service/api-bus/busManager.d.ts +0 -127
  74. package/esm/foundation/service/api-bus/index.d.ts +0 -20
  75. package/esm/foundation/service/api-bus/interface.d.ts +0 -48
  76. package/esm/foundation/service/container/index.d.ts +0 -41
  77. package/esm/foundation/service/container/popup.d.ts +0 -31
  78. package/esm/foundation/service/container/utils.d.ts +0 -7
  79. package/esm/foundation/service/event-center.d.ts +0 -82
  80. package/esm/foundation/service/global-data/index.d.ts +0 -11
  81. package/esm/foundation/service/index.d.ts +0 -19
  82. package/esm/foundation/service/log/index.d.ts +0 -43
  83. package/esm/foundation/service/log/keys.d.ts +0 -13
  84. package/esm/foundation/service/log/processor.d.ts +0 -9
  85. package/esm/foundation/service/log/types.d.ts +0 -33
  86. package/esm/foundation/service/requester/deps.d.ts +0 -17
  87. package/esm/foundation/service/requester/requester.d.ts +0 -22
  88. package/esm/foundation/service/security/index.d.ts +0 -28
  89. package/esm/foundation/service/security/security.d.ts +0 -33
  90. package/esm/foundation/utils/gray_scale_utils.d.ts +0 -7
  91. package/esm/foundation/utils/payment_context_utils.d.ts +0 -13
  92. package/esm/foundation/utils/payment_product_utils.d.ts +0 -13
  93. package/esm/foundation/utils/preload_helper.d.ts +0 -21
  94. package/esm/foundation/utils/redirect_utils.d.ts +0 -11
  95. package/esm/foundation/utils/system_events.d.ts +0 -4
  96. package/esm/foundation/utils/web_app_url_utils.d.ts +0 -116
  97. package/esm/index.d.ts +0 -54
  98. package/esm/plugin/applepay/component.d.ts +0 -50
  99. package/esm/plugin/applepay/index.d.ts +0 -17
  100. package/esm/plugin/applepay/interface.d.ts +0 -161
  101. package/esm/plugin/applepay/service.d.ts +0 -54
  102. package/esm/plugin/component/cashierApp.d.ts +0 -38
  103. package/esm/plugin/component/channel.d.ts +0 -57
  104. package/esm/plugin/component/component.inline.style.d.ts +0 -10
  105. package/esm/plugin/component/component.popup.style.d.ts +0 -25
  106. package/esm/plugin/component/index.d.ts +0 -133
  107. package/esm/plugin/component/popupWindow.style.d.ts +0 -11
  108. package/esm/plugin/const.d.ts +0 -2
  109. package/esm/plugin/drop-in/index.d.ts +0 -71
  110. package/esm/plugin/payment-element/utils.d.ts +0 -2
  111. package/esm/plugin/paypal/index.d.ts +0 -20
  112. package/esm/plugin/type.d.ts +0 -34
  113. package/esm/plugin/utils.d.ts +0 -6
  114. package/esm/request/index.d.ts +0 -9
  115. package/esm/request/utils.d.ts +0 -28
  116. package/esm/service/index.d.ts +0 -13
  117. package/esm/types/index.d.ts +0 -854
  118. package/esm/util/createIframeNode.d.ts +0 -6
  119. package/esm/util/debug.d.ts +0 -1
  120. package/esm/util/get.d.ts +0 -25
  121. package/esm/util/getBackScheme.d.ts +0 -5
  122. package/esm/util/index.d.ts +0 -61
  123. package/esm/util/intl-callapp/es/browser.d.ts +0 -21
  124. package/esm/util/intl-callapp/es/evoke.d.ts +0 -13
  125. package/esm/util/intl-callapp/es/generate.d.ts +0 -29
  126. package/esm/util/intl-callapp/es/index.d.ts +0 -43
  127. package/esm/util/intl-callapp/es/main.d.ts +0 -41
  128. package/esm/util/intl-callapp/es/openWallet.d.ts +0 -15
  129. package/esm/util/intl-callapp/es/types.d.ts +0 -46
  130. package/esm/util/intl-callapp/es/utils/config.d.ts +0 -24
  131. package/esm/util/intl-callapp/es/utils/index.d.ts +0 -15
  132. package/esm/util/logger.d.ts +0 -64
  133. package/esm/util/mock.d.ts +0 -1
  134. package/esm/util/redirect.d.ts +0 -6
  135. package/esm/util/security.d.ts +0 -34
  136. package/esm/util/spm-map.d.ts +0 -211
  137. package/esm/util/storage.d.ts +0 -2
  138. package/esm/util/upgrade.d.ts +0 -39
  139. package/esm/util/versionCompare.d.ts +0 -15
@@ -1,6 +0,0 @@
1
- import { Iselector, DisplayTypeEnum } from '../types';
2
- /**
3
- * @description context中需要包含app节点,用于插入selector中
4
- */
5
- export declare const createIframeNode: (context: any, selector: Iselector, renderDisplayType: DisplayTypeEnum) => Promise<void>;
6
- export declare const createPreloadIframeNode: (virtualPreloadIframe: any) => void;
@@ -1 +0,0 @@
1
- export declare const isDebugLog: () => boolean;
package/esm/util/get.d.ts DELETED
@@ -1,25 +0,0 @@
1
- /**
2
- * Gets the value at `path` of `object`. If the resolved value is
3
- * `undefined`, the `defaultValue` is returned in its place.
4
- *
5
- * @since 3.7.0
6
- * @category Object
7
- * @param {Object} object The object to query.
8
- * @param {Array|string} path The path of the property to get.
9
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
10
- * @returns {*} Returns the resolved value.
11
- * @see has, hasIn, set, unset
12
- * @example
13
- *
14
- * const object = { 'a': [{ 'b': { 'c': 3 } }] }
15
- *
16
- * get(object, 'a[0].b.c')
17
- * // => 3
18
- *
19
- * get(object, ['a', '0', 'b', 'c'])
20
- * // => 3
21
- *
22
- * get(object, 'a.b.c', 'default')
23
- * // => 'default'
24
- */
25
- export declare function get(object: any, path: string, defaultValue?: any): any;
@@ -1,5 +0,0 @@
1
- import { Logger } from './logger';
2
- /**
3
- * 通过配置规则检测 UA 和获得回跳 scheme
4
- */
5
- export declare function getBackScheme(mockUa?: string, logger?: Logger): any;
@@ -1,61 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
3
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
- * 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
5
- * 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
6
- */
7
- declare const getType: (target: any) => string;
8
- declare class EventCenter {
9
- private events;
10
- private eventsKey;
11
- constructor();
12
- on(name: string, func: any, key?: string): void;
13
- off(name: string, func: any, key?: string): void;
14
- emit(name: string, ...rest: any): void;
15
- once(name: string, func: any, key?: string): void;
16
- isExist(name: string): boolean;
17
- }
18
- declare const getViewPort: (key: string) => any;
19
- declare const getOrigin: () => string;
20
- declare const serialize: (obj: Record<string, string>) => string;
21
- declare const isJsonString: (str: string) => boolean;
22
- declare const isDom: (obj: any) => boolean;
23
- declare const device: {
24
- iOS: boolean;
25
- Android: boolean;
26
- macOS: boolean;
27
- WindowsNT: boolean;
28
- isMobile: boolean;
29
- isOpenHarmonyMobile: boolean;
30
- };
31
- declare const safeJson: (data: any, obj: any) => any;
32
- declare const isPC: () => boolean;
33
- declare const queryParse: (url?: string) => Record<string, any>;
34
- declare const getDesignFontSize: () => number;
35
- declare const amsSetSize: (event?: any, dom?: any) => void;
36
- declare const addSetFontSizeEvent: () => void;
37
- /**
38
- * @description get or set STORAGE
39
- */
40
- declare const getOrSetStorageId: (key: string, value?: string) => string;
41
- declare const checkTimeElapsed: () => boolean;
42
- declare const isFunction: (func: any) => boolean;
43
- declare function parseBase64ToString(base64: string): string;
44
- declare function loadSDKScript({ src, attrOptions, timeOut, loadCallback }: {
45
- src: any;
46
- attrOptions?: {};
47
- timeOut?: number;
48
- loadCallback?: any;
49
- }, logger: any): Promise<unknown>;
50
- declare const isEmpty: (value: any) => boolean;
51
- /**
52
- * 判断一个值是否为真
53
- * @param value 要判断的值
54
- * @returns 如果值为true或者字符串"true"(不区分大小写),则返回true,否则返回false
55
- */
56
- declare const isTrue: (value: unknown) => boolean;
57
- export declare const omit: <T extends {
58
- [x: string]: any;
59
- hasOwnProperty: (arg0: any) => any;
60
- }>(obj: T, keys: Array<keyof T>) => T;
61
- export { getType, EventCenter, getViewPort, getOrigin, serialize, isJsonString, isDom, isFunction, device, safeJson, isPC, queryParse, getDesignFontSize, amsSetSize, addSetFontSizeEvent, getOrSetStorageId, checkTimeElapsed, parseBase64ToString, loadSDKScript, isEmpty, isTrue, };
@@ -1,21 +0,0 @@
1
- /**
2
- * @param versionA
3
- * @param versionB
4
- * @returns
5
- */
6
- export declare const semverCompare: (
7
- versionA: string,
8
- versionB: string,
9
- ) => -1 | 0 | 1;
10
-
11
- export declare const getIOSVersion: () => number;
12
- export declare const isAndroid: boolean;
13
- export declare const isIOS: boolean;
14
- export declare const isOriginalChrome: boolean;
15
- export declare const isQQBrowser: boolean;
16
- export declare const isFirefox: boolean;
17
- export declare const isBaidu: boolean;
18
- /**
19
- * @returns boolean
20
- */
21
- export declare const haveSchemeToLinkOrFallback: () => boolean;
@@ -1,13 +0,0 @@
1
- /**
2
- * @param url
3
- */
4
- export declare function evokeByLocation(url: string): void;
5
- /**
6
- * @param url
7
- */
8
- export declare function evokeByTagA(url: string): void;
9
- export declare function buildIFrame(): void;
10
- /**
11
- * @param url
12
- */
13
- export declare function evokeByIFrame(url: string): void;
@@ -1,29 +0,0 @@
1
- /**
2
- * @param url
3
- * @param params
4
- * @returns
5
- */
6
- export declare function generateQS(
7
- url: string,
8
- params?: Record<string, any>,
9
- ): string;
10
- /**
11
- * @param url
12
- * @param params
13
- * @returns
14
- */
15
- export declare function generateLink(
16
- url: string,
17
- params?: Record<string, any>,
18
- ): string;
19
- /**
20
- * @param url
21
- * @param packageName
22
- * @param params
23
- * @returns
24
- */
25
- export declare function generateIntent(
26
- url: string,
27
- packageName?: string,
28
- fallbackUrl?: string,
29
- ): string;
@@ -1,43 +0,0 @@
1
- /// <reference types="node" />
2
- import type { CallappConfig, CallappOptions, EvokeAppBy } from './types';
3
- declare class CallApp {
4
- config: CallappConfig;
5
- timer: NodeJS.Timeout | null;
6
- options: CallappOptions;
7
- evokeAppBy: EvokeAppBy;
8
- constructor(config?: CallappConfig);
9
-
10
- private init;
11
- /**
12
- * @param options
13
- */
14
- open(options: CallappOptions): void;
15
-
16
- private handleLink;
17
-
18
- private handleIntent;
19
-
20
- private handleScheme;
21
-
22
- private handleIOSScheme;
23
-
24
- private handleOriginalChrome;
25
- /**
26
- * @param evokeFn
27
- * @param delay
28
- * @param fallback
29
- * @param degradationStrategy
30
- */
31
- private evokeAppDelay;
32
- private evokeByLocationDelay;
33
- private evokeByTagADelay;
34
- private evokeByIFrameDelay;
35
- /**
36
- * @param fallback
37
- * @returns
38
- */
39
- private checkIsOpen;
40
-
41
- private clearTimer;
42
- }
43
- export default CallApp;
@@ -1,41 +0,0 @@
1
- /// <reference types="node" />
2
- import type { CallappConfig, CallappOptions, EvokeAppBy } from './types';
3
- declare class CallApp {
4
- config: CallappConfig;
5
- timer: NodeJS.Timeout | null;
6
- options: CallappOptions;
7
- evokeAppBy: EvokeAppBy;
8
- constructor(config?: CallappConfig);
9
- private init;
10
- /**
11
- * @param options
12
- */
13
- open(options: CallappOptions): void;
14
- private handleDegradationStrategy;
15
-
16
- private evokeLink;
17
-
18
- private evokeScheme;
19
-
20
- private handleIntent;
21
-
22
- private handleOriginalChrome;
23
- /**
24
- * @param evokeFn
25
- * @param delay
26
- * @param fallback
27
- * @param degradationStrategy
28
- */
29
- private evokeAppDelay;
30
- private evokeByLocationDelay;
31
- private evokeByTagADelay;
32
- private evokeByIFrameDelay;
33
- /**
34
- * @param fallback
35
- * @returns
36
- */
37
- private checkIsOpen;
38
-
39
- private clearTimer;
40
- }
41
- export default CallApp;
@@ -1,15 +0,0 @@
1
- import CallApp from './main';
2
- import type { OpenWalletConfig, OpenWalletOptions } from './types';
3
- import type { WalletType } from './utils/config';
4
- declare class OpenWallet extends CallApp {
5
- constructor(config?: OpenWalletConfig);
6
- /**
7
- * @param options
8
- */
9
- openWallet(options: OpenWalletOptions): void;
10
- /**
11
- * @param options
12
- */
13
- openAppStore(walletName: WalletType): void;
14
- }
15
- export default OpenWallet;
@@ -1,46 +0,0 @@
1
- export interface EvokeAppBy {
2
- url: string;
3
- type: 'Scheme' | 'Link' | 'Intent';
4
- }
5
- export type SuccessCb = (evokeAppBy?: EvokeAppBy) => void;
6
- export interface CallappConfig {
7
- fallback?: () => void;
8
- delay?: number;
9
- fallbackUrl?: string;
10
- successCb?: SuccessCb;
11
- resultJudgmentTime?: number;
12
- }
13
- export interface CallappOptions
14
- extends Omit<CallappConfig, 'successCb' | 'resultJudgmentTime'> {
15
- scheme?: string;
16
- intent?: {
17
- package?: string;
18
- scheme: string;
19
- fallbackUrl?: string;
20
- };
21
- link?: string;
22
- params?: Record<string, any>;
23
- }
24
- export type Hidden =
25
- | 'hidden'
26
- | 'webkitHidden'
27
- | 'msHidden'
28
- | 'mozHidden'
29
- | undefined;
30
- export type VisibilityChange =
31
- | 'visibilitychange'
32
- | 'webkitvisibilitychange'
33
- | 'msvisibilitychange'
34
- | 'mozvisibilitychange'
35
- | undefined;
36
- export interface EvokeAppResultOptions {
37
- evokeAppBy: EvokeAppBy;
38
- successCb?: SuccessCb;
39
- timeout?: number;
40
- }
41
- export interface OpenWalletConfig extends CallappConfig {
42
- walletName: string;
43
- }
44
- export interface OpenWalletOptions extends CallappOptions {
45
- walletName: string;
46
- }
@@ -1,24 +0,0 @@
1
- export declare enum WalletType {
2
- TnGD = 'TNG',
3
- KKP = 'KAKAOPAY',
4
- TMN = 'TRUEMONEY',
5
- DANA = 'DANA',
6
- GCash = 'GCASH',
7
- AlipayHK = 'ALIPAY_HK',
8
- }
9
- export declare const AndroidWalletPackageName: {
10
- TNG: string;
11
- KAKAOPAY: string;
12
- TRUEMONEY: string;
13
- DANA: string;
14
- GCASH: string;
15
- ALIPAY_HK: string;
16
- };
17
- export declare const IOSWalletAppId: {
18
- TNG: string;
19
- KAKAOPAY: string;
20
- TRUEMONEY: string;
21
- DANA: string;
22
- GCASH: string;
23
- ALIPAY_HK: string;
24
- };
@@ -1,15 +0,0 @@
1
- import type { EvokeAppResultOptions } from '../types';
2
- export declare function checkCallAppSuccess(
3
- fallback?: () => void,
4
- timeout?: number,
5
- ): void;
6
- /**
7
- * Listening page
8
- */
9
- export declare function addEventListener(options: EvokeAppResultOptions): void;
10
- /**
11
- * Determine whether the URL is an http or application market link
12
- * @param {[type]} url
13
- * @return {Boolean} [description]
14
- */
15
- export declare function checkIsHttpUrl(url: string): boolean;
@@ -1,64 +0,0 @@
1
- interface LogPayload {
2
- title?: string;
3
- msg?: string;
4
- name?: string;
5
- label?: string;
6
- time?: number;
7
- success?: boolean;
8
- code?: string;
9
- traceId?: string;
10
- }
11
- type Extra = Record<string, any>;
12
- export interface LogMetaData {
13
- platform?: string;
14
- sdkVersion?: string;
15
- webAppVersion?: string;
16
- firstLogTime?: number;
17
- fsDuration?: number;
18
- instanceId?: string;
19
- deviceId?: string;
20
- renderDisplayType?: string;
21
- merchantId?: string;
22
- productScene?: string;
23
- productSceneVersion?: string;
24
- paymentMethodType?: string;
25
- paymentMethodCategoryType?: string;
26
- requestSeq?: string;
27
- trackId?: string;
28
- }
29
- interface Config {
30
- scriptUrl: string;
31
- spmConfig: object;
32
- appId: string;
33
- server?: string;
34
- bizType: string;
35
- batchCount: number;
36
- productId: string;
37
- mdata?: LogMetaData;
38
- version?: string;
39
- }
40
- export declare class Logger {
41
- private logs;
42
- private config;
43
- private debug;
44
- private componentStartTime;
45
- private isLoaded;
46
- private static instance;
47
- private trackId;
48
- constructor(config: Config, debug: boolean);
49
- static setInstance(instance: Logger): Logger;
50
- static getInstance(): Logger;
51
- setMedta(mdata: LogMetaData): void;
52
- logError(error: LogPayload, extra?: Extra, enableExtractCompliance?: boolean): Logger;
53
- logInfo(info: LogPayload, extra?: Extra): Logger;
54
- reportRPC(rpcData: LogPayload, extra?: Extra): Logger;
55
- reportLogs(): void;
56
- loadScript(url: string, callback: () => void): void;
57
- initTracker(): void;
58
- send(): void;
59
- setComponentStartTime(val: number): void;
60
- setTrackId(trackId: string): void;
61
- getComponentStartTime(): number;
62
- }
63
- export declare const LogConfig: Config;
64
- export {};
@@ -1 +0,0 @@
1
- export declare const isLocalMock: () => boolean;
@@ -1,6 +0,0 @@
1
- export declare function redirect(data: {
2
- normalUrl?: string;
3
- schemeUrl?: string;
4
- applinkUrl?: string;
5
- callAppJudgeTime?: number;
6
- }): Promise<void>;
@@ -1,34 +0,0 @@
1
- import { IsecurityConfig, ProductSceneEnum, DeviceIdParameter } from '../types';
2
- export declare const getSecurityConfigStorageKey: (scene: ProductSceneEnum) => string;
3
- export declare enum SecurityRegionEnum {
4
- SG = "SG",
5
- US = "US",
6
- DE = "DE"
7
- }
8
- export declare const securityHost: {
9
- SG: string;
10
- US: string;
11
- DE: string;
12
- };
13
- export declare const sceneMap: {
14
- CASHIER_PAYMENT: string;
15
- AUTO_DEBIT: string;
16
- AUTO_DEBIT_PAY: string;
17
- VAULTING: string;
18
- CARD_APPLE_PAY: string;
19
- EASYPAY: string;
20
- EASY_PAY: string;
21
- FLASH_BUY: string;
22
- ELEMENT_PAYMENT: string;
23
- };
24
- export declare const getSecurityHost: (region: string) => string;
25
- export declare const getSecurityScene: (product: string) => string;
26
- export declare class Security {
27
- scene: string;
28
- h5gateway: string;
29
- constructor(options: IsecurityConfig);
30
- initSecurity(successCallback: any, failCallback: any): void;
31
- private initToken;
32
- pollingGetApdidToken(config?: DeviceIdParameter): Promise<string>;
33
- getApdidToken(): Promise<string>;
34
- }
@@ -1,211 +0,0 @@
1
- export declare const ELEMENT_SPM_MAP: {
2
- sdk_event_mount_element: string;
3
- sdk_element_create: string;
4
- sdk_element_mount_fail: string;
5
- sdk_element_mount_start: string;
6
- multiple_instance_error: string;
7
- auto_apple_pay_start: string;
8
- auto_apple_pay_failed: string;
9
- auto_apple_pay_success: string;
10
- sdk_element_handleHeartBeat: string;
11
- sdk_element_handleInterAction: string;
12
- sdk_element_callback_error: string;
13
- sdk_element_missKeyData: string;
14
- sdk_event_mount: string;
15
- sdk_event_mount_end: string;
16
- sdk_event_submitPay: string;
17
- sdk_event_payment_end: string;
18
- sdk_event_validateFields: string;
19
- sdk_event_validateFields_end: string;
20
- sdk_event_apiOnDestroy: string;
21
- sdk_event_apiOnDestroy_end: string;
22
- };
23
- export declare const SPM_MAP: {
24
- sdk_event_mount_element: string;
25
- sdk_element_create: string;
26
- sdk_element_mount_fail: string;
27
- sdk_element_mount_start: string;
28
- multiple_instance_error: string;
29
- auto_apple_pay_start: string;
30
- auto_apple_pay_failed: string;
31
- auto_apple_pay_success: string;
32
- sdk_element_handleHeartBeat: string;
33
- sdk_element_handleInterAction: string;
34
- sdk_element_callback_error: string;
35
- sdk_element_missKeyData: string;
36
- sdk_event_mount: string;
37
- sdk_event_mount_end: string;
38
- sdk_event_submitPay: string;
39
- sdk_event_payment_end: string;
40
- sdk_event_validateFields: string;
41
- sdk_event_validateFields_end: string;
42
- sdk_event_apiOnDestroy: string;
43
- sdk_event_apiOnDestroy_end: string;
44
- sdk_error_runtime_error: string;
45
- sdk_event_sdkQuery_failed: string;
46
- container_error_error_insert_js: string;
47
- event_important_error: string;
48
- sdk_error_parameter: string;
49
- sdk_event_submitPay_failed: string;
50
- sdk_event_destroyComponent: string;
51
- container_error_page_load_failed: string;
52
- sdk_event_eventCallback: string;
53
- iap_net_error: string;
54
- sdk_event_event_callback: string;
55
- sdk_event_renderComponent: string;
56
- sdk_event_call_url_success: string;
57
- sdk_event_web_app_timeout: string;
58
- container_error_jsapi_call: string;
59
- sdk_event_appUpgradeInfo: string;
60
- sdk_event_webAppOnLaunch: string;
61
- sdk_event_createComponent: string;
62
- container_error_insert_js: string;
63
- container_error_error_jsapi_call: string;
64
- sdk_error_receive_message_from_web: string;
65
- sdk_error_securitySdkGetCodeFailed: string;
66
- sdk_error_securitySdkGetTokenFailed: string;
67
- sdk_error_securitySdkInitFailed: string;
68
- sdk_error_caught_exception_in_callback: string;
69
- sdk_error_call_url_failed: string;
70
- sdk_event_webAppTimeout: string;
71
- sdk_error_getGaidFailed: string;
72
- sdk_error_securitySdkInitTokenFailed: string;
73
- container_error_error_invalid_param: string;
74
- container_error_error_set_ua_failed: string;
75
- sdk_event_onAddressResult: string;
76
- sdk_event_onAbnormalEventName: string;
77
- event_important_log: string;
78
- sdk_event_sdkQueryEnd: string;
79
- container_event_manifest_load_start: string;
80
- sdk_event_api_preheat: string;
81
- container_event_manifest_load_complete: string;
82
- sdk_event_apiSubmit: string;
83
- sdk_event_securitySdkGetCodeSuccess: string;
84
- sdk_event_securitySdkInitSuccess: string;
85
- container_event_start_load: string;
86
- sdk_event_getRemoteConfigStart: string;
87
- container_event_webViewOnPageFinished: string;
88
- container_event_page_load_success: string;
89
- sdk_event_pre_init: string;
90
- sdk_event_submitPayEnd: string;
91
- container_stop_event_loop: string;
92
- iap_net_start: string;
93
- sdk_event_securitySdkPreInitSuccess: string;
94
- sdk_event_securitySdkPreInit: string;
95
- sdk_event_important_event: string;
96
- sdk_event_accelerateInfo: string;
97
- container_event_manifest_res_complete: string;
98
- container_event_manifest_res_start: string;
99
- sdk_event_dismissWindowCloseCancel: string;
100
- sdk_event_jsBridgeCall_httpRequestStart: string;
101
- sdk_event_getGaidSuccess: string;
102
- sdk_event_securitySdkInit: string;
103
- sdk_event_getRemoteLanguageResult: string;
104
- sdk_event_getRemoteLanguageStart: string;
105
- sdk_event_handleSDKPaymentResult: string;
106
- sdk_event_handleSDKPaymentFail: string;
107
- sdk_event_sdkQuery: string;
108
- sdk_event_handleSDKPaymentStart: string;
109
- sdk_event_securitySdkGetTokenSuccess: string;
110
- sdk_event_api_onDestroy: string;
111
- container_load_failed: string;
112
- sdk_event_kycAppPreLoadStart: string;
113
- sdk_event_getRemoteConfigResult: string;
114
- iap_net_result: string;
115
- sdk_event_popupWindowCloseButtonClick: string;
116
- container_error_resourceLoadFailed: string;
117
- container_event_startPreRenderUrl: string;
118
- sdk_event_webAppPreLoadStart: string;
119
- sdk_event_importantEvent: string;
120
- container_error_registerJSAPIPlugin: string;
121
- sdk_event_afterEventCallback: string;
122
- sdk_event_createPayment: string;
123
- sdk_event_sendMessageToWeb: string;
124
- sdk_error_appHeartBeatTimeout: string;
125
- container_event_jSEngineEvaluateJavascript: string;
126
- container_event_jSEngineLoadJavascript: string;
127
- sdk_event_receive_message_from_web: string;
128
- sdk_event_receiveMessageFromWeb: string;
129
- sdk_event_monitorFlushReport: string;
130
- container_event_page_pv: string;
131
- container_event_override_url_loading: string;
132
- sdk_event_dismissWindowCloseConfirm: string;
133
- container_load_success: string;
134
- container_event_page_start: string;
135
- sdk_event_webAppStartLoad: string;
136
- container_event_startPreLoadUrl: string;
137
- container_event_jsSEngineStart: string;
138
- container_event_jSEngineDestroy: string;
139
- sdk_event_send_message_to_web: string;
140
- container_event_importantEvent: string;
141
- sdk_event_monitorCrashTrackInit: string;
142
- container_event_stop_event_loop: string;
143
- sdk_event_requestAccelerateInfo: string;
144
- native_rpc_performance: string;
145
- container_event_jSEngineEvaluateJavascriptCallback: string;
146
- container_event_jSEngineRegisterJsapi: string;
147
- jSEngineEvaluateJavascriptConvertError: string;
148
- sdk_event_security_unneeded_scenarios: string;
149
- container_event_launch: string;
150
- event_jsapi_call_start: string;
151
- event_jsapi_call_end: string;
152
- sdk_event_call_url_start: string;
153
- sdk_event_onAbnormalKeys: string;
154
- sdk_event_espBeforePay: string;
155
- sdk_event_busPublishMessage: string;
156
- sdk_event_busIsSubscribe: string;
157
- sdk_event_busSubscribe: string;
158
- NEW_AMSSDK_BY_MECHANT: string;
159
- sdk_event_busClear: string;
160
- sdk_event_busAddInterceptor: string;
161
- sdk_error_securitySdkInitTimeout: string;
162
- sdk_error_busPublishNoResult: string;
163
- sdk_event_busPublishCallback: string;
164
- sdk_error_busPublishError: string;
165
- sdk_error_busPublishUnsubscribeError: string;
166
- sdk_event_busUnsubscribe: string;
167
- onBusPublishException: string;
168
- sdk_event_apiGetValue: string;
169
- load_channel_sdk_start: string;
170
- preload_match: string;
171
- preload_no_match: string;
172
- canMakePayments_error: string;
173
- performance_optimization_clearPreloadIframe: string;
174
- performance_optimization_clearPreloadIframe_timeout: string;
175
- sdk_event_call_url_failed: string;
176
- sdk_event_applePaymentResult: string;
177
- submitPayStatus: string;
178
- sdk_event_appleAvailable: string;
179
- sdk_event_appleCreateComponent: string;
180
- sdk_event_appleShowPaymentSheet: string;
181
- sdk_event_appleSubmitToken: string;
182
- sdk_event_appleDestroyComponent: string;
183
- paypal_payment_failed: string;
184
- paypal_payment_approved: string;
185
- paypal_payment_cancelled: string;
186
- sdk_event_clean_component: string;
187
- load_item_sdk_start: string;
188
- load_item_sdk_end: string;
189
- performance_optimization_get_previousChannel_error: string;
190
- performance_optimization_channelType_error: string;
191
- sdk_error_before_submit: string;
192
- sessionDataNull: string;
193
- 'appple runtime excepiton': string;
194
- sdk_error_created_app_process_failed: string;
195
- sdk_error_web_app_timeout: string;
196
- performance_optimization_preload: string;
197
- performance_optimization_preload_path_error: string;
198
- sdk_error_created_app_failed: string;
199
- sdk_error_create_pop_up: string;
200
- button_render_failed: string;
201
- paypal_payment_loadSDK_failed: string;
202
- load_item_sdk_error: string;
203
- load_item_sdk_timeout: string;
204
- MerchantValidationError: string;
205
- PaymentAuthorizedError: string;
206
- 'ApplePaySession is only support in Safari': string;
207
- 'Abnormal params paymentSessionFactor': string;
208
- 'Abnormal params recurringInfo': string;
209
- 'Payment processing but user dismissed the sheet': string;
210
- 'User dismissed the sheet': string;
211
- };