@paypay/mini-app-js-sdk 1.17.1 → 1.21.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/dom/index.d.ts +4 -4
- package/dist/composition-api/dom/useEventListener.d.ts +8 -8
- package/dist/composition-api/dom/useHorizontalScrollDirective.d.ts +4 -4
- package/dist/composition-api/dom/useOnMountedOrActivated.d.ts +1 -1
- package/dist/composition-api/dom/useVerticalScrollDirective.d.ts +4 -4
- package/dist/composition-api/useErrorSheet.d.ts +3 -3
- package/dist/composition-api/useGetUserAddress.d.ts +2 -2
- package/dist/composition-api/useHeightProperties.d.ts +19 -19
- package/dist/composition-api/useInpuAddress.d.ts +2 -2
- package/dist/composition-api/useMakePayment.d.ts +3 -3
- package/dist/composition-api/useOpenApp.d.ts +3 -3
- package/dist/composition-api/useOpenMap.d.ts +3 -3
- package/dist/composition-api/useRegisterEmail.d.ts +2 -2
- package/dist/composition-api/useRenderSmartButton.d.ts +3 -3
- package/dist/composition-api/useShowAlert.d.ts +3 -3
- package/dist/composition-api/useShowUpdateWarning.d.ts +3 -3
- package/dist/composition-api/useTakePhoto.d.ts +3 -3
- package/dist/composition-api/useTopup.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/jsbridge-core/index.d.ts +4 -4
- package/dist/jsbridge-core/jsbridge.d.ts +62 -62
- package/dist/jsbridge-core/lib/browser.d.ts +3 -3
- package/dist/jsbridge-core/lib/logger.d.ts +9 -9
- package/dist/jsbridge-core/lib/reconstructParams.d.ts +2 -2
- package/dist/jsbridge-core/module.d.ts +15 -14
- package/dist/jsbridge-core/namespace.d.ts +2 -2
- package/dist/jsbridge-core/paypay-jsbridge.d.ts +17 -16
- package/dist/mini-app-api.d.ts +51 -51
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.d.ts +9 -9
- package/dist/mini-app-js-sdk.es.js +31031 -1
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/checkAccessToken.d.ts +3 -3
- package/dist/model/bridge/checkPaymentMethod.d.ts +2 -2
- package/dist/model/bridge/closeApp.d.ts +2 -2
- package/dist/model/bridge/copyToClipboard.d.ts +2 -2
- package/dist/model/bridge/debug.d.ts +3 -3
- package/dist/model/bridge/getAppDetail.d.ts +17 -17
- package/dist/model/bridge/getAuthStatus.d.ts +3 -3
- package/dist/model/bridge/getBalance.d.ts +2 -2
- package/dist/model/bridge/getConfigure.d.ts +39 -39
- package/dist/model/bridge/getDeviceInformation.d.ts +3 -3
- package/dist/model/bridge/getKycInformation.d.ts +2 -2
- package/dist/model/bridge/getPermissionStatus.d.ts +2 -2
- package/dist/model/bridge/getPlatformInformation.d.ts +3 -3
- package/dist/model/bridge/getSessionData.d.ts +2 -2
- package/dist/model/bridge/getStorageData.d.ts +2 -2
- package/dist/model/bridge/getTopBarHeight.d.ts +3 -3
- package/dist/model/bridge/getUAID.d.ts +3 -3
- package/dist/model/bridge/getUserAddress.d.ts +2 -2
- package/dist/model/bridge/getUserLocation.d.ts +2 -2
- package/dist/model/bridge/getUserProfile.d.ts +3 -3
- package/dist/model/bridge/index.d.ts +43 -43
- package/dist/model/bridge/init.d.ts +2 -2
- package/dist/model/bridge/inputAddress.d.ts +2 -2
- package/dist/model/bridge/logout.d.ts +3 -3
- package/dist/model/bridge/makePayment.d.ts +2 -2
- package/dist/model/bridge/openApp.d.ts +2 -2
- package/dist/model/bridge/openMap.d.ts +2 -2
- package/dist/model/bridge/openWebview.d.ts +3 -3
- package/dist/model/bridge/registerEmail.d.ts +2 -2
- package/dist/model/bridge/registerKyc.d.ts +2 -2
- package/dist/model/bridge/removeStorageData.d.ts +2 -2
- package/dist/model/bridge/render.d.ts +2 -2
- package/dist/model/bridge/renderLoginButton.d.ts +2 -2
- package/dist/model/bridge/renderPayButton.d.ts +2 -2
- package/dist/model/bridge/request.d.ts +2 -2
- package/dist/model/bridge/requestInternal.d.ts +2 -2
- package/dist/model/bridge/scanCode.d.ts +3 -3
- package/dist/model/bridge/setSessionData.d.ts +2 -2
- package/dist/model/bridge/setStorageData.d.ts +2 -2
- package/dist/model/bridge/setTitle.d.ts +2 -2
- package/dist/model/bridge/share.d.ts +2 -2
- package/dist/model/bridge/showAlert.d.ts +2 -2
- package/dist/model/bridge/showErrorSheet.d.ts +2 -2
- package/dist/model/bridge/showUpdateWarning.d.ts +2 -2
- package/dist/model/bridge/startMultiFactorAuth.d.ts +2 -2
- package/dist/model/bridge/takePhoto.d.ts +2 -2
- package/dist/model/bridge/topup.d.ts +2 -2
- package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +3 -3
- package/dist/model/makePayment.d.ts +324 -324
- package/dist/model/miniAppError.d.ts +57 -57
- package/dist/model/miniAppStatus.d.ts +9 -9
- package/dist/model/permission.d.ts +21 -19
- package/dist/model/uiComponents.d.ts +23 -23
- package/dist/package/action-sheet/index.d.ts +90 -91
- package/dist/package/banner-header/index.vue.d.ts +56 -56
- package/dist/package/button/index.d.ts +69 -69
- package/dist/package/charge-amount-list/index.vue.d.ts +54 -54
- package/dist/package/charge-amount-more-list/index.vue.d.ts +19 -19
- package/dist/package/date-button/index.vue.d.ts +21 -21
- package/dist/package/divider/index.d.ts +21 -22
- package/dist/package/header/index.d.ts +65 -65
- package/dist/package/index.d.ts +16 -16
- package/dist/package/input/index.d.ts +169 -170
- package/dist/package/input/utils.d.ts +10 -10
- package/dist/package/lottie/index.d.ts +61 -62
- package/dist/package/overlay/index.d.ts +44 -45
- package/dist/package/payment-method/Bank.vue.d.ts +35 -35
- package/dist/package/payment-method/CreditCard.vue.d.ts +42 -42
- package/dist/package/payment-method/SbidBank.vue.d.ts +21 -21
- package/dist/package/payment-method/Wallet.vue.d.ts +31 -31
- package/dist/package/payment-method/index.d.ts +15 -15
- package/dist/package/payment-method-list/index.vue.d.ts +27 -27
- package/dist/package/payment-type/Bank.vue.d.ts +31 -31
- package/dist/package/payment-type/CreditCard.vue.d.ts +32 -32
- package/dist/package/payment-type/Sbid.vue.d.ts +17 -17
- package/dist/package/payment-type/Wallet.vue.d.ts +17 -17
- package/dist/package/payment-type/index.d.ts +15 -15
- package/dist/package/select-list/Components.d.ts +65 -65
- package/dist/package/select-list/index.d.ts +73 -73
- package/dist/package/switch/index.d.ts +22 -23
- package/dist/types.d.ts +345 -344
- package/dist/utils/api.d.ts +160 -147
- package/dist/utils/common.d.ts +2 -2
- package/dist/utils/create/bem.d.ts +6 -6
- package/dist/utils/create/index.d.ts +5 -5
- package/dist/utils/fetch.d.ts +16 -16
- package/dist/utils/getImages.d.ts +5 -5
- package/dist/utils/getLanguage.d.ts +3 -3
- package/dist/utils/helper.d.ts +47 -47
- package/dist/utils/ip.d.ts +2 -2
- package/dist/utils/miniAppRequest.d.ts +9 -9
- package/dist/utils/popstateHandler.d.ts +4 -4
- package/dist/utils/secondary-list.d.ts +1 -1
- package/dist/utils/storage.d.ts +26 -26
- package/dist/views/email-registration/App.vue.d.ts +79 -79
- package/dist/views/email-registration/components/EmailButton.vue.d.ts +45 -45
- package/dist/views/email-registration/components/icons.d.ts +2 -2
- package/dist/views/email-registration/hooks/callback.d.ts +7 -7
- package/dist/views/email-registration/hooks/ui.d.ts +29 -29
- package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +52 -52
- package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +24 -24
- package/dist/views/error-sheet/Index.vue.d.ts +52 -52
- package/dist/views/get-user-address/App.vue.d.ts +44 -52
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +73 -73
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +23 -23
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +33 -33
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +35 -35
- package/dist/views/get-user-address/Sheet/AddSheet/constants.d.ts +4 -4
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +83 -83
- package/dist/views/get-user-address/Sheet/App.vue.d.ts +62 -70
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +32 -32
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +25 -25
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +41 -49
- package/dist/views/get-user-address/hooks/ui-hooks.d.ts +14 -14
- package/dist/views/get-user-address/store/error-handle.d.ts +12 -12
- package/dist/views/get-user-address/store/root.d.ts +14 -14
- package/dist/views/input-address/App.vue.d.ts +36 -36
- package/dist/views/input-address/hook/app.d.ts +13 -13
- package/dist/views/input-address/hook/error-handle.d.ts +10 -10
- package/dist/views/input-address/hook/root.d.ts +10 -10
- package/dist/views/make-payment/App.vue.d.ts +52 -60
- package/dist/views/make-payment/Main.vue.d.ts +630 -638
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +25 -25
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +20 -20
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +19 -19
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +16 -16
- package/dist/views/make-payment/Sheets/CashBackDetails/FloatingButton.vue.d.ts +24 -24
- package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +26 -26
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +53 -53
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +32 -32
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +80 -80
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +49 -49
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +522 -522
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +38 -38
- package/dist/views/make-payment/Sheets/Consult.vue.d.ts +23 -23
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +27 -27
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +108 -108
- package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +36 -36
- package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +69 -69
- package/dist/views/make-payment/hooks/app-hooks.d.ts +568 -568
- package/dist/views/make-payment/hooks/ui-hooks.d.ts +72 -72
- package/dist/views/make-payment/store/age-confirm.d.ts +9 -9
- package/dist/views/make-payment/store/handle-error.d.ts +36 -36
- package/dist/views/make-payment/store/root.d.ts +22 -22
- package/dist/views/make-payment/store/util-for-handle-error.d.ts +16 -16
- package/dist/views/make-payment/utils/paymentMethod.d.ts +3 -3
- package/dist/views/open-app/App.vue.d.ts +28 -28
- package/dist/views/open-map/App.vue.d.ts +28 -28
- package/dist/views/show-alert/App.vue.d.ts +36 -36
- package/dist/views/show-update-warning/App.vue.d.ts +28 -28
- package/dist/views/smart-button/App.vue.d.ts +87 -87
- package/dist/views/take-photo/App.vue.d.ts +25 -25
- package/dist/views/take-photo/helper.d.ts +2 -2
- package/dist/views/topup/App.vue.d.ts +102 -100
- package/dist/views/topup/BannerInfo.vue.d.ts +23 -23
- package/dist/views/topup/CashbackInfo.vue.d.ts +44 -44
- package/dist/views/topup/TopupCompletion.vue.d.ts +26 -26
- package/package.json +9 -16
- package/dist/utils/mock-data/mockData.d.ts +0 -64
package/dist/types.d.ts
CHANGED
|
@@ -1,344 +1,345 @@
|
|
|
1
|
-
import { NativeParams } from './jsbridge-core';
|
|
2
|
-
import { MiniAppErrorType } from './model/miniAppError';
|
|
3
|
-
export declare type NativeCallback<R = unknown> = (args?: R) => void;
|
|
4
|
-
export declare type MiniAppResult = Record<string, unknown>;
|
|
5
|
-
export interface MiniAppErrorResultType {
|
|
6
|
-
errorCode: MiniAppErrorType;
|
|
7
|
-
}
|
|
8
|
-
interface OrderItem {
|
|
9
|
-
name: string;
|
|
10
|
-
category?: string;
|
|
11
|
-
quantity: number;
|
|
12
|
-
productId?: string;
|
|
13
|
-
unitPrice: Amount;
|
|
14
|
-
}
|
|
15
|
-
export interface MakePaymentParams extends NativeParams<MiniAppResult, unknown, void> {
|
|
16
|
-
amount: Amount;
|
|
17
|
-
merchantPaymentId: string;
|
|
18
|
-
requestedAt: number;
|
|
19
|
-
merchantAlias?: string;
|
|
20
|
-
orderDescription?: string;
|
|
21
|
-
storeId?: string;
|
|
22
|
-
terminalId?: string;
|
|
23
|
-
isAuthorization?: boolean;
|
|
24
|
-
orderItems?: Array<OrderItem>;
|
|
25
|
-
expiresAt?: number;
|
|
26
|
-
orderReceiptNumber?: string;
|
|
27
|
-
agreeSimilarTransaction?: boolean;
|
|
28
|
-
prepaidOnly?: boolean;
|
|
29
|
-
metadata?: string;
|
|
30
|
-
sourceInfoApp?: string;
|
|
31
|
-
alwaysDisplayCompletionScreen?: boolean;
|
|
32
|
-
storeInfo?: string;
|
|
33
|
-
productType?: string;
|
|
34
|
-
taxExempt?: boolean;
|
|
35
|
-
additionalUserInfo?: any;
|
|
36
|
-
}
|
|
37
|
-
export interface CopyToClipBoardParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
38
|
-
value: string;
|
|
39
|
-
}
|
|
40
|
-
export interface GetPermissionStatusParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
41
|
-
name?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface InitParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
44
|
-
clientId?: string;
|
|
45
|
-
env?: string;
|
|
46
|
-
mode?: string;
|
|
47
|
-
}
|
|
48
|
-
interface IosMapParams {
|
|
49
|
-
label: string;
|
|
50
|
-
scheme?: string;
|
|
51
|
-
url: string;
|
|
52
|
-
}
|
|
53
|
-
interface AndroidMapParams {
|
|
54
|
-
parameters: string;
|
|
55
|
-
}
|
|
56
|
-
export interface MapParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
57
|
-
ios: Array<IosMapParams>;
|
|
58
|
-
android: AndroidMapParams;
|
|
59
|
-
}
|
|
60
|
-
export interface RequestParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
61
|
-
url: string;
|
|
62
|
-
method?: string;
|
|
63
|
-
header?: Record<string, string>;
|
|
64
|
-
data?: Record<string, string>;
|
|
65
|
-
}
|
|
66
|
-
export interface RequestInternalParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
67
|
-
path: string;
|
|
68
|
-
environment?: string | Environment;
|
|
69
|
-
endpointType?: string | EndpointType;
|
|
70
|
-
method?: string;
|
|
71
|
-
header?: Record<string, string>;
|
|
72
|
-
data?: Record<string, string>;
|
|
73
|
-
}
|
|
74
|
-
export declare type EmptyParamsWithResult = NativeParams<MiniAppResult, void, void>;
|
|
75
|
-
export interface Amount {
|
|
76
|
-
amount: number;
|
|
77
|
-
currency?: string;
|
|
78
|
-
}
|
|
79
|
-
export interface TopupParams extends NativeParams<MiniAppResult,
|
|
80
|
-
merchantTopUpId: string;
|
|
81
|
-
requestedAt: number;
|
|
82
|
-
prepaidOnly?: boolean;
|
|
83
|
-
merchant?: string;
|
|
84
|
-
productType?: string;
|
|
85
|
-
sourceInfoApp?: string;
|
|
86
|
-
methodType?: string;
|
|
87
|
-
bankCode?: string;
|
|
88
|
-
}
|
|
89
|
-
export interface SetDataParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
90
|
-
key: string;
|
|
91
|
-
value: string;
|
|
92
|
-
}
|
|
93
|
-
export interface GetDataParams extends NativeParams<MiniAppResult, void, void> {
|
|
94
|
-
key: string;
|
|
95
|
-
}
|
|
96
|
-
export interface ShowAlertParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
97
|
-
text: string;
|
|
98
|
-
title?: string;
|
|
99
|
-
buttonTitle?: string;
|
|
100
|
-
}
|
|
101
|
-
export interface ShowErrorSheetParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
102
|
-
text: string;
|
|
103
|
-
title?: string;
|
|
104
|
-
}
|
|
105
|
-
export interface SetEnablePullDownRefreshParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
106
|
-
enabled: boolean;
|
|
107
|
-
}
|
|
108
|
-
export interface ShowUpdateWarningParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
109
|
-
isMandatory?: boolean;
|
|
110
|
-
}
|
|
111
|
-
interface IosOpenApp {
|
|
112
|
-
link: string;
|
|
113
|
-
}
|
|
114
|
-
interface ExtraParameter {
|
|
115
|
-
name: string;
|
|
116
|
-
value: string;
|
|
117
|
-
}
|
|
118
|
-
interface AndroidOpenApp {
|
|
119
|
-
package: string;
|
|
120
|
-
className?: string;
|
|
121
|
-
extra?: Array<ExtraParameter>;
|
|
122
|
-
}
|
|
123
|
-
export interface OpenAppParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
124
|
-
url?: string;
|
|
125
|
-
ios?: IosOpenApp;
|
|
126
|
-
android?: AndroidOpenApp;
|
|
127
|
-
}
|
|
128
|
-
export interface Address {
|
|
129
|
-
id: number;
|
|
130
|
-
kyc: boolean;
|
|
131
|
-
street1: string;
|
|
132
|
-
country: string;
|
|
133
|
-
zip: string;
|
|
134
|
-
state: string;
|
|
135
|
-
city: string;
|
|
136
|
-
tags?: Array<string>;
|
|
137
|
-
title?: string;
|
|
138
|
-
receiver?: string;
|
|
139
|
-
street2?: string;
|
|
140
|
-
}
|
|
141
|
-
export interface InputAddressParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
142
|
-
address?: Address;
|
|
143
|
-
}
|
|
144
|
-
export interface GetUserLocationResult {
|
|
145
|
-
result: {
|
|
146
|
-
lat: number;
|
|
147
|
-
long: number;
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
export interface GetUserLocationParams extends NativeParams<GetUserLocationResult, MiniAppErrorResultType, void> {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
export declare type
|
|
238
|
-
export declare type
|
|
239
|
-
export declare type
|
|
240
|
-
export
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
1
|
+
import { NativeParams } from './jsbridge-core';
|
|
2
|
+
import { MiniAppErrorType } from './model/miniAppError';
|
|
3
|
+
export declare type NativeCallback<R = unknown> = (args?: R) => void;
|
|
4
|
+
export declare type MiniAppResult = Record<string, unknown>;
|
|
5
|
+
export interface MiniAppErrorResultType {
|
|
6
|
+
errorCode: MiniAppErrorType;
|
|
7
|
+
}
|
|
8
|
+
interface OrderItem {
|
|
9
|
+
name: string;
|
|
10
|
+
category?: string;
|
|
11
|
+
quantity: number;
|
|
12
|
+
productId?: string;
|
|
13
|
+
unitPrice: Amount;
|
|
14
|
+
}
|
|
15
|
+
export interface MakePaymentParams extends NativeParams<MiniAppResult, unknown, void> {
|
|
16
|
+
amount: Amount;
|
|
17
|
+
merchantPaymentId: string;
|
|
18
|
+
requestedAt: number;
|
|
19
|
+
merchantAlias?: string;
|
|
20
|
+
orderDescription?: string;
|
|
21
|
+
storeId?: string;
|
|
22
|
+
terminalId?: string;
|
|
23
|
+
isAuthorization?: boolean;
|
|
24
|
+
orderItems?: Array<OrderItem>;
|
|
25
|
+
expiresAt?: number;
|
|
26
|
+
orderReceiptNumber?: string;
|
|
27
|
+
agreeSimilarTransaction?: boolean;
|
|
28
|
+
prepaidOnly?: boolean;
|
|
29
|
+
metadata?: string;
|
|
30
|
+
sourceInfoApp?: string;
|
|
31
|
+
alwaysDisplayCompletionScreen?: boolean;
|
|
32
|
+
storeInfo?: string;
|
|
33
|
+
productType?: string;
|
|
34
|
+
taxExempt?: boolean;
|
|
35
|
+
additionalUserInfo?: any;
|
|
36
|
+
}
|
|
37
|
+
export interface CopyToClipBoardParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
38
|
+
value: string;
|
|
39
|
+
}
|
|
40
|
+
export interface GetPermissionStatusParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
41
|
+
name?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface InitParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
44
|
+
clientId?: string;
|
|
45
|
+
env?: string;
|
|
46
|
+
mode?: string;
|
|
47
|
+
}
|
|
48
|
+
interface IosMapParams {
|
|
49
|
+
label: string;
|
|
50
|
+
scheme?: string;
|
|
51
|
+
url: string;
|
|
52
|
+
}
|
|
53
|
+
interface AndroidMapParams {
|
|
54
|
+
parameters: string;
|
|
55
|
+
}
|
|
56
|
+
export interface MapParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
57
|
+
ios: Array<IosMapParams>;
|
|
58
|
+
android: AndroidMapParams;
|
|
59
|
+
}
|
|
60
|
+
export interface RequestParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
61
|
+
url: string;
|
|
62
|
+
method?: string;
|
|
63
|
+
header?: Record<string, string>;
|
|
64
|
+
data?: Record<string, string>;
|
|
65
|
+
}
|
|
66
|
+
export interface RequestInternalParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
67
|
+
path: string;
|
|
68
|
+
environment?: string | Environment;
|
|
69
|
+
endpointType?: string | EndpointType;
|
|
70
|
+
method?: string;
|
|
71
|
+
header?: Record<string, string>;
|
|
72
|
+
data?: Record<string, string>;
|
|
73
|
+
}
|
|
74
|
+
export declare type EmptyParamsWithResult = NativeParams<MiniAppResult, void, void>;
|
|
75
|
+
export interface Amount {
|
|
76
|
+
amount: number;
|
|
77
|
+
currency?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface TopupParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
80
|
+
merchantTopUpId: string;
|
|
81
|
+
requestedAt: number;
|
|
82
|
+
prepaidOnly?: boolean;
|
|
83
|
+
merchant?: string;
|
|
84
|
+
productType?: string;
|
|
85
|
+
sourceInfoApp?: string;
|
|
86
|
+
methodType?: string;
|
|
87
|
+
bankCode?: string;
|
|
88
|
+
}
|
|
89
|
+
export interface SetDataParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
90
|
+
key: string;
|
|
91
|
+
value: string;
|
|
92
|
+
}
|
|
93
|
+
export interface GetDataParams extends NativeParams<MiniAppResult, void, void> {
|
|
94
|
+
key: string;
|
|
95
|
+
}
|
|
96
|
+
export interface ShowAlertParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
97
|
+
text: string;
|
|
98
|
+
title?: string;
|
|
99
|
+
buttonTitle?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface ShowErrorSheetParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
102
|
+
text: string;
|
|
103
|
+
title?: string;
|
|
104
|
+
}
|
|
105
|
+
export interface SetEnablePullDownRefreshParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
106
|
+
enabled: boolean;
|
|
107
|
+
}
|
|
108
|
+
export interface ShowUpdateWarningParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
109
|
+
isMandatory?: boolean;
|
|
110
|
+
}
|
|
111
|
+
interface IosOpenApp {
|
|
112
|
+
link: string;
|
|
113
|
+
}
|
|
114
|
+
interface ExtraParameter {
|
|
115
|
+
name: string;
|
|
116
|
+
value: string;
|
|
117
|
+
}
|
|
118
|
+
interface AndroidOpenApp {
|
|
119
|
+
package: string;
|
|
120
|
+
className?: string;
|
|
121
|
+
extra?: Array<ExtraParameter>;
|
|
122
|
+
}
|
|
123
|
+
export interface OpenAppParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
124
|
+
url?: string;
|
|
125
|
+
ios?: IosOpenApp;
|
|
126
|
+
android?: AndroidOpenApp;
|
|
127
|
+
}
|
|
128
|
+
export interface Address {
|
|
129
|
+
id: number;
|
|
130
|
+
kyc: boolean;
|
|
131
|
+
street1: string;
|
|
132
|
+
country: string;
|
|
133
|
+
zip: string;
|
|
134
|
+
state: string;
|
|
135
|
+
city: string;
|
|
136
|
+
tags?: Array<string>;
|
|
137
|
+
title?: string;
|
|
138
|
+
receiver?: string;
|
|
139
|
+
street2?: string;
|
|
140
|
+
}
|
|
141
|
+
export interface InputAddressParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
142
|
+
address?: Address;
|
|
143
|
+
}
|
|
144
|
+
export interface GetUserLocationResult {
|
|
145
|
+
result: {
|
|
146
|
+
lat: number;
|
|
147
|
+
long: number;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
export interface GetUserLocationParams extends NativeParams<GetUserLocationResult, MiniAppErrorResultType, void> {
|
|
151
|
+
validTimeMinutes?: number;
|
|
152
|
+
accuracy?: string;
|
|
153
|
+
}
|
|
154
|
+
export declare enum TakePhotoMode {
|
|
155
|
+
camera = 0,
|
|
156
|
+
album = 1
|
|
157
|
+
}
|
|
158
|
+
export interface TakePhotoResult extends MiniAppResult {
|
|
159
|
+
data?: string;
|
|
160
|
+
}
|
|
161
|
+
export interface TakePhotoParams extends NativeParams<TakePhotoResult, MiniAppErrorResultType, void> {
|
|
162
|
+
}
|
|
163
|
+
export interface SetTitleParams extends NativeParams<void, MiniAppErrorResultType, void> {
|
|
164
|
+
title?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface OpenWebviewParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
167
|
+
url: string;
|
|
168
|
+
style?: string;
|
|
169
|
+
authorization?: boolean;
|
|
170
|
+
}
|
|
171
|
+
export interface ShareParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
172
|
+
text: string;
|
|
173
|
+
screenshot?: boolean;
|
|
174
|
+
imageUrl?: string;
|
|
175
|
+
includeAppIconWhenShare?: boolean;
|
|
176
|
+
}
|
|
177
|
+
export declare enum EndpointType {
|
|
178
|
+
BFF = "bff",
|
|
179
|
+
GFF = "gff"
|
|
180
|
+
}
|
|
181
|
+
export declare enum Environment {
|
|
182
|
+
DEV = "dev",
|
|
183
|
+
STG = "stg",
|
|
184
|
+
PRD = "prd"
|
|
185
|
+
}
|
|
186
|
+
export interface GetBalanceParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
187
|
+
productType?: string;
|
|
188
|
+
merchant?: string;
|
|
189
|
+
sourceInfoApp?: string;
|
|
190
|
+
}
|
|
191
|
+
export interface CloseAppParams extends NativeParams<unknown, unknown, void> {
|
|
192
|
+
options?: Record<string, any>;
|
|
193
|
+
}
|
|
194
|
+
export interface GetKycInformationParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
195
|
+
type?: string;
|
|
196
|
+
eKycDocuments?: Array<string>;
|
|
197
|
+
}
|
|
198
|
+
export interface CheckPaymentMethodParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
199
|
+
type: string;
|
|
200
|
+
methodType: string;
|
|
201
|
+
bankCode: string;
|
|
202
|
+
merchant?: string;
|
|
203
|
+
productType?: string;
|
|
204
|
+
sourceInfoApp?: string;
|
|
205
|
+
}
|
|
206
|
+
export interface GetUserAddressParams extends NativeParams<Address, MiniAppErrorResultType, void> {
|
|
207
|
+
type?: string;
|
|
208
|
+
}
|
|
209
|
+
export interface KycAddress {
|
|
210
|
+
zipCode?: string;
|
|
211
|
+
countryCode?: string;
|
|
212
|
+
country?: string;
|
|
213
|
+
state?: string;
|
|
214
|
+
city?: string;
|
|
215
|
+
street1?: string;
|
|
216
|
+
street2?: string;
|
|
217
|
+
}
|
|
218
|
+
export interface KycData {
|
|
219
|
+
lastName?: string;
|
|
220
|
+
firstName?: string;
|
|
221
|
+
lastNameKana?: string;
|
|
222
|
+
firstNameKana?: string;
|
|
223
|
+
dateOfBirth?: string;
|
|
224
|
+
address?: KycAddress;
|
|
225
|
+
job?: string;
|
|
226
|
+
}
|
|
227
|
+
export interface RegisterKycParams extends NativeParams<unknown, unknown, void> {
|
|
228
|
+
type?: string;
|
|
229
|
+
eKycDocuments?: Array<string>;
|
|
230
|
+
redirectUrl?: string;
|
|
231
|
+
data?: KycData;
|
|
232
|
+
}
|
|
233
|
+
export interface StartMultiFactorAuthParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
234
|
+
type: string;
|
|
235
|
+
callbackUrl: string;
|
|
236
|
+
}
|
|
237
|
+
export declare type SmartButtonType = 'login' | 'pay';
|
|
238
|
+
export declare type SmartButtonSize = 'lg' | 'sm';
|
|
239
|
+
export declare type SmartButtonTheme = 'light' | 'dark' | 'red';
|
|
240
|
+
export declare type SmartButtonLg = 'en' | 'ja';
|
|
241
|
+
export interface RenderSmartButtonParams extends NativeParams<MiniAppResult, MiniAppErrorResultType, void> {
|
|
242
|
+
type: SmartButtonType;
|
|
243
|
+
containerId: string;
|
|
244
|
+
locale?: SmartButtonLg;
|
|
245
|
+
isShortText?: Boolean;
|
|
246
|
+
buttonSize?: SmartButtonSize;
|
|
247
|
+
theme?: SmartButtonTheme;
|
|
248
|
+
url?: string;
|
|
249
|
+
orderInfo?: SmartPayParams;
|
|
250
|
+
callback: Function;
|
|
251
|
+
}
|
|
252
|
+
export interface SmartButtonParam {
|
|
253
|
+
title: String;
|
|
254
|
+
avatarUrl?: String;
|
|
255
|
+
cashbackInfo?: String;
|
|
256
|
+
}
|
|
257
|
+
declare type SmartPayCurrency = 'JPY';
|
|
258
|
+
interface SmartPayAmount {
|
|
259
|
+
amount: number;
|
|
260
|
+
currency: SmartPayCurrency;
|
|
261
|
+
}
|
|
262
|
+
interface SmartPayOrderItems {
|
|
263
|
+
name: string;
|
|
264
|
+
category?: string;
|
|
265
|
+
quantity: number;
|
|
266
|
+
productId?: string;
|
|
267
|
+
unitPrice: SmartPayAmount;
|
|
268
|
+
cashbackPercentage?: number;
|
|
269
|
+
}
|
|
270
|
+
export interface SmartPayParams {
|
|
271
|
+
amount: SmartPayAmount;
|
|
272
|
+
requestedAt: number;
|
|
273
|
+
orderItems?: Array<SmartPayOrderItems>;
|
|
274
|
+
productType?: string;
|
|
275
|
+
storeId?: string;
|
|
276
|
+
merchantPaymentId?: string;
|
|
277
|
+
merchantAlias?: string;
|
|
278
|
+
}
|
|
279
|
+
export declare type Permission = {
|
|
280
|
+
blocker: boolean;
|
|
281
|
+
name: string;
|
|
282
|
+
type: string;
|
|
283
|
+
isBlocker: boolean;
|
|
284
|
+
};
|
|
285
|
+
export declare type Window = {
|
|
286
|
+
navigationBarBackgroundColor: string;
|
|
287
|
+
navigationBarTextStyle: string;
|
|
288
|
+
navigationBarTitleText: string;
|
|
289
|
+
navigationStyle: string;
|
|
290
|
+
backgroundColor: string;
|
|
291
|
+
enablePullDownRefresh: boolean;
|
|
292
|
+
};
|
|
293
|
+
export declare type AppDetail = {
|
|
294
|
+
description: string;
|
|
295
|
+
menuItems: {
|
|
296
|
+
setting: boolean;
|
|
297
|
+
help: boolean;
|
|
298
|
+
share: boolean;
|
|
299
|
+
guidance: true;
|
|
300
|
+
};
|
|
301
|
+
clientId: string;
|
|
302
|
+
version: string;
|
|
303
|
+
statusDescription: string;
|
|
304
|
+
userAuthorizationId: string;
|
|
305
|
+
permissions: Permission[];
|
|
306
|
+
isInternal: boolean;
|
|
307
|
+
terms: Array<{
|
|
308
|
+
url: string;
|
|
309
|
+
description: string;
|
|
310
|
+
}>;
|
|
311
|
+
responseValidTill: string;
|
|
312
|
+
appLogo: string;
|
|
313
|
+
helpUrl: string;
|
|
314
|
+
appName: string;
|
|
315
|
+
guidanceUrl: string;
|
|
316
|
+
openUrl: string;
|
|
317
|
+
companyName: string;
|
|
318
|
+
displayBackButton: boolean;
|
|
319
|
+
downloadUrl: string;
|
|
320
|
+
status: string;
|
|
321
|
+
englishName: string;
|
|
322
|
+
whiteListDomains: string[];
|
|
323
|
+
window: Window;
|
|
324
|
+
subdomainCookieSharing: boolean;
|
|
325
|
+
};
|
|
326
|
+
export declare enum PpLocalStorageKey {
|
|
327
|
+
accessToken = "ppjssdk.accessToken",
|
|
328
|
+
refreshToken = "ppjssdk.refreshToken",
|
|
329
|
+
env = "ppjssdk.env",
|
|
330
|
+
deviceUUID = "ppjssdk.deviceUUID",
|
|
331
|
+
clientUUID = "ppjssdk.clientUUID",
|
|
332
|
+
lastPayment = "ppjssdk.lastPayment",
|
|
333
|
+
lastTopup = "ppjssdk.lastTopup",
|
|
334
|
+
appDetail = "ppjssdk.appDetail",
|
|
335
|
+
appConfig = "ppjssdk.appConfig",
|
|
336
|
+
clientId = "ppjssdk.clientId",
|
|
337
|
+
address = "ppjssdk.address",
|
|
338
|
+
userInfo = "ppjssdk.userInfo"
|
|
339
|
+
}
|
|
340
|
+
export declare enum CookieDuration {
|
|
341
|
+
oneDay = 1,
|
|
342
|
+
oneMonth = 30,
|
|
343
|
+
oneYear = 365
|
|
344
|
+
}
|
|
345
|
+
export {};
|