@paypay/mini-app-js-sdk 1.39.0 → 1.42.0
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/dist/composition-api/useRegisterEmail.d.ts +1 -1
- package/dist/mini-app-api.d.ts +2 -1
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.d.ts +2 -1
- package/dist/mini-app-js-sdk.es.js +8751 -8457
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/checkAccessToken.d.ts +1 -1
- package/dist/model/bridge/debug.d.ts +1 -1
- package/dist/model/bridge/getAuthStatus.d.ts +1 -1
- package/dist/model/bridge/getBankInfo.d.ts +1 -1
- package/dist/model/bridge/getConfigure.d.ts +6 -0
- package/dist/model/bridge/getDeviceInformation.d.ts +1 -1
- package/dist/model/bridge/getPlatformInformation.d.ts +1 -1
- package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
- package/dist/model/bridge/getUAID.d.ts +1 -1
- package/dist/model/bridge/getUserProfile.d.ts +1 -1
- package/dist/model/bridge/logout.d.ts +1 -1
- package/dist/model/bridge/registerEmail.d.ts +1 -1
- package/dist/model/bridge/scanCode.d.ts +1 -1
- package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +1 -1
- package/dist/model/makePayment.d.ts +21 -19
- package/dist/package/action-sheet/index.d.ts +1 -1
- package/dist/package/banner-header/index.vue.d.ts +1 -1
- package/dist/package/input/currency/index.d.ts +124 -0
- package/dist/package/input/email/index.d.ts +137 -0
- package/dist/package/input/{index.d.ts → text/index.d.ts} +0 -113
- package/dist/package/input/zip/index.d.ts +107 -0
- package/dist/package/payment-method/PayLaterCC.vue.d.ts +3 -3
- package/dist/package/payment-type/CreditCard.vue.d.ts +11 -0
- package/dist/package/payment-type/PayLaterCC.vue.d.ts +14 -3
- package/dist/package/payment-type/Wallet.vue.d.ts +11 -0
- package/dist/package/payment-type/index.d.ts +11 -0
- package/dist/package/select-list/index.d.ts +2 -2
- package/dist/types.d.ts +28 -1
- package/dist/utils/api.d.ts +53 -6
- package/dist/utils/fetch.d.ts +9 -0
- package/dist/utils/helper.d.ts +1 -0
- package/dist/views/email-registration/App.vue.d.ts +1 -1
- package/dist/views/email-registration/hooks/callback.d.ts +1 -1
- package/dist/views/email-registration/parts/AuthMailNotFoundSheet.vue.d.ts +2 -2
- package/dist/views/email-registration/parts/SentEmailSheet.vue.d.ts +1 -1
- package/dist/views/error-sheet/Index.vue.d.ts +1 -1
- package/dist/views/get-bank-info/GetBankInfoWrapper.vue.d.ts +1 -1
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +1 -1
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +1 -2
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +130 -88
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +8 -9
- package/dist/views/make-payment/hooks/app-hooks.d.ts +70 -49
- package/dist/views/make-payment/store/handle-error.d.ts +2 -2
- package/dist/views/make-payment/store/util-for-handle-error.d.ts +2 -2
- package/dist/views/make-payment/utils/paymentMethod.d.ts +4 -5
- package/dist/views/register-user-info/RegisterUserInfoCancelConfirmationSheet.vue.d.ts +252 -70
- package/dist/views/register-user-info/RegisterUserInfoCategoryView.vue.d.ts +252 -70
- package/dist/views/register-user-info/RegisterUserInfoFooterView.vue.d.ts +252 -70
- package/dist/views/register-user-info/RegisterUserInfoKycInfoSheet.vue.d.ts +252 -70
- package/dist/views/register-user-info/RegisterUserInfoMailInfoSheet.vue.d.ts +252 -70
- package/dist/views/register-user-info/RegisterUserInfoRootView.vue.d.ts +252 -70
- package/dist/views/register-user-info/store.d.ts +28 -70
- package/dist/views/topup/App.vue.d.ts +2 -1
- package/package.json +2 -2
- package/dist/composition-api/dom/index.d.ts +0 -6
- package/dist/jsbridge-core/index.d.ts +0 -4
- package/dist/model/bridge/index.d.ts +0 -46
- package/dist/package/index.d.ts +0 -18
- package/dist/package/switch/index.d.ts +0 -23
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare const Zip: import("vue").DefineComponent<{
|
|
2
|
+
name: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
disabled: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
prepend: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
19
|
+
required: false;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
placeholder: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
id: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
required: false;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
prependClassName: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
required: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
required: false;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
class: {
|
|
43
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
44
|
+
required: false;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
+
'update:modelValue': (_value: string) => true;
|
|
49
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
name: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
required: false;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
disabled: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
required: false;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
prepend: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
required: false;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
modelValue: {
|
|
66
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
67
|
+
required: false;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
placeholder: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
required: false;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
id: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
required: false;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
prependClassName: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
required: false;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
required: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
required: false;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
class: {
|
|
91
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
92
|
+
required: false;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
}>> & {
|
|
96
|
+
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
name: string;
|
|
99
|
+
class: string | Record<string, any>;
|
|
100
|
+
required: boolean;
|
|
101
|
+
disabled: boolean;
|
|
102
|
+
id: string;
|
|
103
|
+
prepend: string;
|
|
104
|
+
modelValue: string | number;
|
|
105
|
+
placeholder: string;
|
|
106
|
+
prependClassName: string;
|
|
107
|
+
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { PayLaterCCMethod } from '../../model/makePayment';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
payLater: {
|
|
5
|
-
type: PropType<
|
|
5
|
+
type: PropType<PayLaterCCMethod>;
|
|
6
6
|
required: true;
|
|
7
7
|
};
|
|
8
8
|
}, {
|
|
@@ -350,7 +350,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
350
350
|
paymentMethodStatusText: import("vue").ComputedRef<unknown>;
|
|
351
351
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
352
352
|
payLater: {
|
|
353
|
-
type: PropType<
|
|
353
|
+
type: PropType<PayLaterCCMethod>;
|
|
354
354
|
required: true;
|
|
355
355
|
};
|
|
356
356
|
}>>, {}>;
|
|
@@ -10,6 +10,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
required: false;
|
|
11
11
|
default: boolean;
|
|
12
12
|
};
|
|
13
|
+
isMakepaymentWithAddress: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
required: false;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
13
18
|
}, {
|
|
14
19
|
last4digits: import("vue").ComputedRef<string | undefined>;
|
|
15
20
|
authInfo: import("vue").ComputedRef<{
|
|
@@ -39,7 +44,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
44
|
required: false;
|
|
40
45
|
default: boolean;
|
|
41
46
|
};
|
|
47
|
+
isMakepaymentWithAddress: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
required: false;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
42
52
|
}>>, {
|
|
43
53
|
isMakePayment: boolean;
|
|
54
|
+
isMakepaymentWithAddress: boolean;
|
|
44
55
|
}>;
|
|
45
56
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { PayLaterCCMethod } from '../../model/makePayment';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
payLater: {
|
|
5
|
-
type: PropType<
|
|
5
|
+
type: PropType<PayLaterCCMethod>;
|
|
6
6
|
required: true;
|
|
7
7
|
};
|
|
8
8
|
isMakePayment: {
|
|
@@ -10,6 +10,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
required: false;
|
|
11
11
|
default: boolean;
|
|
12
12
|
};
|
|
13
|
+
isMakepaymentWithAddress: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
required: false;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
13
18
|
}, {
|
|
14
19
|
formattedBalance: import("vue").ComputedRef<string>;
|
|
15
20
|
images: {
|
|
@@ -353,7 +358,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
353
358
|
};
|
|
354
359
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
355
360
|
payLater: {
|
|
356
|
-
type: PropType<
|
|
361
|
+
type: PropType<PayLaterCCMethod>;
|
|
357
362
|
required: true;
|
|
358
363
|
};
|
|
359
364
|
isMakePayment: {
|
|
@@ -361,7 +366,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
361
366
|
required: false;
|
|
362
367
|
default: boolean;
|
|
363
368
|
};
|
|
369
|
+
isMakepaymentWithAddress: {
|
|
370
|
+
type: BooleanConstructor;
|
|
371
|
+
required: false;
|
|
372
|
+
default: boolean;
|
|
373
|
+
};
|
|
364
374
|
}>>, {
|
|
365
375
|
isMakePayment: boolean;
|
|
376
|
+
isMakepaymentWithAddress: boolean;
|
|
366
377
|
}>;
|
|
367
378
|
export default _default;
|
|
@@ -10,6 +10,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
required: false;
|
|
11
11
|
default: boolean;
|
|
12
12
|
};
|
|
13
|
+
isMakepaymentWithAddress: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
required: false;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
13
18
|
}, {
|
|
14
19
|
formattedBalance: import("vue").ComputedRef<string>;
|
|
15
20
|
images: {
|
|
@@ -363,7 +368,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
363
368
|
required: false;
|
|
364
369
|
default: boolean;
|
|
365
370
|
};
|
|
371
|
+
isMakepaymentWithAddress: {
|
|
372
|
+
type: BooleanConstructor;
|
|
373
|
+
required: false;
|
|
374
|
+
default: boolean;
|
|
375
|
+
};
|
|
366
376
|
}>>, {
|
|
367
377
|
isMakePayment: boolean;
|
|
378
|
+
isMakepaymentWithAddress: boolean;
|
|
368
379
|
}>;
|
|
369
380
|
export default _default;
|
|
@@ -11,6 +11,11 @@ export declare const PaymentType: import("vue").DefineComponent<{
|
|
|
11
11
|
required: false;
|
|
12
12
|
default: boolean;
|
|
13
13
|
};
|
|
14
|
+
isMakepaymentWithAddress: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
required: false;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
14
19
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
20
|
paymentMethod: {
|
|
16
21
|
type: PropType<TPaymentMethod | null>;
|
|
@@ -22,6 +27,12 @@ export declare const PaymentType: import("vue").DefineComponent<{
|
|
|
22
27
|
required: false;
|
|
23
28
|
default: boolean;
|
|
24
29
|
};
|
|
30
|
+
isMakepaymentWithAddress: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
required: false;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
25
35
|
}>>, {
|
|
26
36
|
isMakePayment: boolean;
|
|
37
|
+
isMakepaymentWithAddress: boolean;
|
|
27
38
|
}>;
|
|
@@ -100,10 +100,10 @@ export declare const SelectList: import("vue").DefineComponent<{
|
|
|
100
100
|
}, {
|
|
101
101
|
required: boolean;
|
|
102
102
|
disabled: boolean;
|
|
103
|
-
append: string;
|
|
104
103
|
placeholder: string;
|
|
105
|
-
appendClassName: string;
|
|
106
104
|
list: ListType;
|
|
107
105
|
prepare: string;
|
|
106
|
+
append: string;
|
|
107
|
+
appendClassName: string;
|
|
108
108
|
prepareClassName: string;
|
|
109
109
|
}>;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NativeParams } from './jsbridge-core';
|
|
1
|
+
import { NativeParams } from './jsbridge-core/jsbridge';
|
|
2
2
|
import { MiniAppErrorType } from './model/miniAppError';
|
|
3
3
|
export declare type MiniAppResult = Record<string, unknown>;
|
|
4
4
|
export interface MiniAppErrorResultType {
|
|
@@ -407,4 +407,31 @@ export declare type AddressUpdateEvent = {
|
|
|
407
407
|
selectedAddress: Address;
|
|
408
408
|
addresses: Address[];
|
|
409
409
|
};
|
|
410
|
+
export declare type GrantedPermissionRespone = {
|
|
411
|
+
unsigned?: {
|
|
412
|
+
data?: {
|
|
413
|
+
scopes?: Array<string>;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
export declare type BalanceType = {
|
|
418
|
+
unsigned?: {
|
|
419
|
+
resultInfo?: {
|
|
420
|
+
code?: string;
|
|
421
|
+
};
|
|
422
|
+
data?: {
|
|
423
|
+
totalBalance?: {
|
|
424
|
+
amount?: number;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
export declare type SessionResponse = {
|
|
430
|
+
unsigned?: {
|
|
431
|
+
data?: Record<string, unknown>;
|
|
432
|
+
resultInfo?: {
|
|
433
|
+
code?: string;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
};
|
|
410
437
|
export {};
|
package/dist/utils/api.d.ts
CHANGED
|
@@ -71,7 +71,54 @@ declare type WalletInfoResponse = {
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
|
-
export declare function topup(queryParams: TopupQuery, body: TopupBody): Promise<
|
|
74
|
+
export declare function topup(queryParams: TopupQuery, body: TopupBody): Promise<{
|
|
75
|
+
ppFetchResult: "notAuthorized";
|
|
76
|
+
body: null;
|
|
77
|
+
} | {
|
|
78
|
+
ppFetchResult: "fetchError";
|
|
79
|
+
body: null;
|
|
80
|
+
} | {
|
|
81
|
+
ppFetchResult: "timeout";
|
|
82
|
+
body: null;
|
|
83
|
+
} | {
|
|
84
|
+
ppFetchResult: "tokenExpired";
|
|
85
|
+
statusCode: number;
|
|
86
|
+
body?: null | undefined;
|
|
87
|
+
} | {
|
|
88
|
+
ppFetchResult: "apiError";
|
|
89
|
+
statusCode: number;
|
|
90
|
+
body: ({
|
|
91
|
+
signed: {
|
|
92
|
+
jws: string;
|
|
93
|
+
};
|
|
94
|
+
unsigned: {
|
|
95
|
+
resultInfo: {
|
|
96
|
+
code: string;
|
|
97
|
+
};
|
|
98
|
+
data?: {
|
|
99
|
+
header?: {
|
|
100
|
+
resultCode?: string | undefined;
|
|
101
|
+
} | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
};
|
|
104
|
+
uiComponents?: {
|
|
105
|
+
displayErrorResponse?: UIComponentsError | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
} | {
|
|
108
|
+
signed?: undefined;
|
|
109
|
+
unsigned?: undefined;
|
|
110
|
+
resultInfo: {
|
|
111
|
+
code: string;
|
|
112
|
+
};
|
|
113
|
+
uiComponents?: {
|
|
114
|
+
displayErrorResponse: UIComponentsError;
|
|
115
|
+
} | undefined;
|
|
116
|
+
}) & Record<string, unknown>;
|
|
117
|
+
} | {
|
|
118
|
+
ppFetchResult: "success";
|
|
119
|
+
statusCode: number;
|
|
120
|
+
body: TopupResponse;
|
|
121
|
+
}>;
|
|
75
122
|
export declare type BalanceParams = {
|
|
76
123
|
clientId?: string;
|
|
77
124
|
currency?: string;
|
|
@@ -79,8 +126,8 @@ export declare type BalanceParams = {
|
|
|
79
126
|
productType?: string;
|
|
80
127
|
sourceInfoApp?: string;
|
|
81
128
|
};
|
|
82
|
-
export declare function getBalance(params?: BalanceParams): Promise<unknown
|
|
83
|
-
export declare function getCashBackInfo(): Promise<import("./fetch").
|
|
129
|
+
export declare function getBalance(params?: BalanceParams): Promise<import("./fetch").PPFetchResult<unknown, Record<string, unknown>>>;
|
|
130
|
+
export declare function getCashBackInfo(): Promise<import("./fetch").PPFetchResult<WalletInfoResponse, Record<string, unknown>>>;
|
|
84
131
|
export declare type getCashBackResponse = {
|
|
85
132
|
signed: unknown;
|
|
86
133
|
unsigned: unknown;
|
|
@@ -158,7 +205,7 @@ export declare type ProfileResponse = {
|
|
|
158
205
|
};
|
|
159
206
|
statusCode: number;
|
|
160
207
|
};
|
|
161
|
-
export declare function getUserProfileData(): Promise<import("./fetch").
|
|
208
|
+
export declare function getUserProfileData(): Promise<import("./fetch").PPFetchResult<ProfileResponse, Record<string, unknown>>>;
|
|
162
209
|
export declare function getUserProfileDataV2(): Promise<import("./fetch").PPFetchResult<ProfileResponse, Record<string, unknown>>>;
|
|
163
210
|
export declare type RegisterEmailResponse = {
|
|
164
211
|
signed: unknown;
|
|
@@ -178,7 +225,7 @@ export declare type RegisterEmailResponse = {
|
|
|
178
225
|
};
|
|
179
226
|
};
|
|
180
227
|
};
|
|
181
|
-
export declare function registerEmail(email: string): Promise<import("./fetch").
|
|
228
|
+
export declare function registerEmail(email: string): Promise<import("./fetch").PPFetchResult<RegisterEmailResponse, Record<string, unknown>>>;
|
|
182
229
|
export declare function resendEmail(): Promise<import("./fetch").PPFetchResult<RegisterEmailResponse, Record<string, unknown>>>;
|
|
183
230
|
export declare type UserLocationResponse = {
|
|
184
231
|
unsigned: {
|
|
@@ -192,6 +239,6 @@ export declare type UserLocationResponse = {
|
|
|
192
239
|
};
|
|
193
240
|
export declare function getUserLocationRequest(params: {
|
|
194
241
|
validTimeMinutes: number;
|
|
195
|
-
}): Promise<import("./fetch").
|
|
242
|
+
}): Promise<import("./fetch").PPFetchResult<UserLocationResponse, Record<string, unknown>>>;
|
|
196
243
|
export declare function isValidUrl(urlChallenge: string): boolean;
|
|
197
244
|
export {};
|
package/dist/utils/fetch.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UIComponentsError } from '../model/uiComponents';
|
|
1
2
|
declare const createHeaderMiniAppApi: (urlEndpoint: string, customHeaders?: Record<string, string> | undefined) => Headers | undefined;
|
|
2
3
|
export declare type ErrorResponse = {
|
|
3
4
|
error: {
|
|
@@ -12,6 +13,8 @@ declare type PPFetchOptions = {
|
|
|
12
13
|
headers?: Record<string, string>;
|
|
13
14
|
suppressRefresh?: boolean;
|
|
14
15
|
timeout?: number;
|
|
16
|
+
skipResultCodeCheck?: boolean;
|
|
17
|
+
skipStatusCodeCheck?: boolean;
|
|
15
18
|
};
|
|
16
19
|
declare function ppFetch<T>(options: PPFetchOptions): Promise<T | ErrorResponse>;
|
|
17
20
|
declare type APIBaseResponse = {
|
|
@@ -28,12 +31,18 @@ declare type APIBaseResponse = {
|
|
|
28
31
|
};
|
|
29
32
|
};
|
|
30
33
|
};
|
|
34
|
+
uiComponents?: {
|
|
35
|
+
displayErrorResponse?: UIComponentsError;
|
|
36
|
+
};
|
|
31
37
|
} | {
|
|
32
38
|
signed?: undefined;
|
|
33
39
|
unsigned?: undefined;
|
|
34
40
|
resultInfo: {
|
|
35
41
|
code: string;
|
|
36
42
|
};
|
|
43
|
+
uiComponents?: {
|
|
44
|
+
displayErrorResponse: UIComponentsError;
|
|
45
|
+
};
|
|
37
46
|
};
|
|
38
47
|
export declare type PPFetchResult<T, E = Record<string, unknown>> = {
|
|
39
48
|
ppFetchResult: 'success';
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -49,4 +49,5 @@ export declare function updateLocalisedString(data: string, target: string, valu
|
|
|
49
49
|
export declare function handleHeightResize(el: HTMLElement, windowHeight: number, isScrollable: boolean, offsetHeight: number): boolean;
|
|
50
50
|
export declare function getPaymentMethodStatus(isExpired: boolean, val?: PaymentMethodStatus): unknown;
|
|
51
51
|
export declare function filterErrorButtonList(buttonList: UIComponentsErrorButton[] | null): UIComponentsErrorButton[] | undefined;
|
|
52
|
+
export declare function getFailErrorCode(ppFetchResult: string): MiniAppErrorType.timeOut | MiniAppErrorType.serverError | MiniAppErrorType.tokenExpired | MiniAppErrorType.notAuthorized;
|
|
52
53
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { NativeParams } from '../../jsbridge-core';
|
|
2
|
+
import { NativeParams } from '../../jsbridge-core/jsbridge';
|
|
3
3
|
import { MiniAppStatusType } from '../../model/miniAppStatus';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
show: BooleanConstructor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SetupContext } from 'vue';
|
|
2
|
-
import { NativeParams } from '../../../jsbridge-core';
|
|
2
|
+
import { NativeParams } from '../../../jsbridge-core/jsbridge';
|
|
3
3
|
import { MiniAppStatusType } from '../../../model/miniAppStatus';
|
|
4
4
|
export declare function useCallBack(props: NativeParams<unknown>, ctx: SetupContext<{
|
|
5
5
|
click: () => true;
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
start: () => void;
|
|
17
17
|
pause: () => void;
|
|
18
18
|
reset: (totalTime?: number) => void;
|
|
19
|
-
current: import("vue").ComputedRef<import('../../../composition-api/dom').CurrentTime>;
|
|
19
|
+
current: import("vue").ComputedRef<import('../../../composition-api/dom/useCountDown').CurrentTime>;
|
|
20
20
|
};
|
|
21
21
|
sendEmailAction: () => Promise<void>;
|
|
22
22
|
sentText: import("vue").ComputedRef<string>;
|
|
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
36
|
"onClose-not-found-email"?: (() => any) | undefined;
|
|
37
37
|
"onResend-other-email"?: (() => any) | undefined;
|
|
38
38
|
}, {
|
|
39
|
-
email: string;
|
|
40
39
|
isVisible: boolean;
|
|
40
|
+
email: string;
|
|
41
41
|
}>;
|
|
42
42
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, PropType } from 'vue';
|
|
2
2
|
import { UIComponentsErrorButton } from '../../model/uiComponents';
|
|
3
|
-
import { ButtonType } from '../../package';
|
|
3
|
+
import { ButtonType } from '../../package/button';
|
|
4
4
|
export declare type ErrorSheetButton = {
|
|
5
5
|
title: string;
|
|
6
6
|
buttonType: 'BLUE' | 'WHITE' | ButtonType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { NativeParams } from '../../jsbridge-core';
|
|
2
|
+
import { NativeParams } from '../../jsbridge-core/jsbridge';
|
|
3
3
|
import { MiniAppResult } from '../../types';
|
|
4
4
|
import { MiniAppErrorType } from '../../model/miniAppError';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { PaymentMethod as TPaymentMethod, BannerInfo
|
|
2
|
+
import { PaymentMethod as TPaymentMethod, BannerInfo } from '../../../../model/makePayment';
|
|
3
3
|
import { AnimationItem } from 'lottie-web';
|
|
4
4
|
import { Address, AddressUpdateEvent } from '../../../../types';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -428,7 +428,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
428
428
|
isMobile: import("vue").ComputedRef<boolean>;
|
|
429
429
|
isDesktop: import("vue").ComputedRef<boolean>;
|
|
430
430
|
showPaymentMethodList: import("vue").ComputedRef<boolean>;
|
|
431
|
-
paymentOpType: import("vue").ComputedRef<typeof PaymentOpType>;
|
|
432
431
|
addressSelect: (address: Address) => void;
|
|
433
432
|
updateAddress: (data: AddressUpdateEvent) => void;
|
|
434
433
|
layoutUpdate: (value?: boolean | undefined) => void;
|