@paypay/mini-app-js-sdk 2.15.0 → 2.18.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/client/index.d.ts +6 -5
- package/dist/client/supportedFunctionsList.d.ts +1 -1
- package/dist/composition-api/useGetUserAddress.d.ts +1 -1
- package/dist/composition-api/useInpuAddress.d.ts +1 -1
- package/dist/composition-api/useKycPassport.d.ts +1 -1
- package/dist/composition-api/useMakePayment.d.ts +1 -1
- package/dist/composition-api/useRegisterEmail.d.ts +2 -1
- package/dist/composition-api/useShowUpdateWarning.d.ts +1 -1
- package/dist/composition-api/useShowUpdateWarningKycPassport.d.ts +2 -2
- package/dist/composition-api/useTopup.d.ts +1 -1
- package/dist/core/coreFunctions/claimCoupon.d.ts +1 -0
- package/dist/core/coreFunctions/fetchCoupons.d.ts +3 -2
- package/dist/core/coreFunctions/getPaymentSettings.d.ts +1 -1
- package/dist/core/coreFunctions/logEvent.d.ts +2 -1
- package/dist/core/coreUtils.d.ts +4 -3
- package/dist/core/coupon/couponFunctions/renderCoupons.d.ts +2 -2
- package/dist/core/sentry.d.ts +6 -0
- package/dist/environment-variables.d.ts +5 -0
- package/dist/mini-app-api.d.ts +29 -7
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +1659 -5831
- package/dist/model/OPAErrorCodes.d.ts +4 -0
- package/dist/model/bridge/checkAccessToken.d.ts +4 -2
- package/dist/model/bridge/checkPaymentMethod.d.ts +1 -1
- package/dist/model/bridge/getAuthStatus.d.ts +3 -2
- package/dist/model/bridge/getBalance.d.ts +1 -1
- package/dist/model/bridge/getBankInfo.d.ts +2 -2
- package/dist/model/bridge/getDeviceInformation.d.ts +2 -2
- package/dist/model/bridge/getKycInformation.d.ts +1 -1
- package/dist/model/bridge/getKycPassportInfo.d.ts +1 -1
- package/dist/model/bridge/getLoginUrl.d.ts +4 -3
- package/dist/model/bridge/getPayPayCardInfo.d.ts +3 -0
- package/dist/model/bridge/getPermissionStatus.d.ts +1 -1
- package/dist/model/bridge/getPlatformInformation.d.ts +2 -2
- package/dist/model/bridge/getTopBarHeight.d.ts +2 -2
- package/dist/model/bridge/getTransactionInfo.d.ts +1 -1
- package/dist/model/bridge/getTransactions.d.ts +1 -1
- package/dist/model/bridge/getUAID.d.ts +2 -2
- package/dist/model/bridge/getUserAddress.d.ts +1 -1
- package/dist/model/bridge/getUserLocation.d.ts +1 -1
- package/dist/model/bridge/getUserPaymentFeatureSettings.d.ts +1 -1
- package/dist/model/bridge/getUserProfile.d.ts +2 -2
- package/dist/model/bridge/init.d.ts +3 -2
- package/dist/model/bridge/initKycPassport.d.ts +1 -1
- package/dist/model/bridge/inputAddress.d.ts +1 -1
- package/dist/model/bridge/logout.d.ts +2 -2
- package/dist/model/bridge/makePayment.d.ts +1 -1
- package/dist/model/bridge/openWebview.d.ts +1 -1
- package/dist/model/bridge/registerEmail.d.ts +2 -1
- package/dist/model/bridge/registerKyc.d.ts +1 -1
- package/dist/model/bridge/render.d.ts +2 -3
- package/dist/model/bridge/renderLoginButton.d.ts +2 -2
- package/dist/model/bridge/renderPayButton.d.ts +2 -2
- package/dist/model/bridge/showUpdateWarning.d.ts +1 -1
- package/dist/model/bridge/startMultiFactorAuth.d.ts +1 -1
- package/dist/model/bridge/topup.d.ts +1 -1
- package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +1 -1
- package/dist/model/makePayment.d.ts +18 -17
- package/dist/model/miniAppError.d.ts +2 -1
- package/dist/model/permission.d.ts +2 -23
- package/dist/package/button/index.d.ts +2 -2
- package/dist/package/lottie/index.d.ts +1 -72
- package/dist/resources/en.d.ts +2 -0
- package/dist/resources/ja.d.ts +2 -0
- package/dist/types/checkPaymentMethod.d.ts +20 -0
- package/dist/types/getAuthStatus.d.ts +18 -0
- package/dist/types/getBalance.d.ts +31 -0
- package/dist/types/getBankInfo.d.ts +32 -0
- package/dist/types/getDeviceInformation.d.ts +3 -0
- package/dist/types/getKycInformation.d.ts +50 -0
- package/dist/types/getKycPassportInfo.d.ts +21 -0
- package/dist/types/getPermissionStatus.d.ts +68 -0
- package/dist/types/getPlatformInformation.d.ts +7 -0
- package/dist/types/getTopBarHeight.d.ts +3 -0
- package/dist/types/getTransactionInfo.d.ts +32 -0
- package/dist/types/getTransactions.d.ts +16 -0
- package/dist/types/getUAID.d.ts +3 -0
- package/dist/types/getUserAddress.d.ts +39 -0
- package/dist/types/getUserLocation.d.ts +13 -0
- package/dist/types/getUserPaymentFeatureSettings.d.ts +16 -0
- package/dist/types/getUserProfile.d.ts +25 -0
- package/dist/types/init.d.ts +40 -0
- package/dist/types/initKycPassport.d.ts +12 -0
- package/dist/types/logout.d.ts +3 -0
- package/dist/types/makePayment.d.ts +46 -0
- package/dist/types/openWebview.d.ts +11 -0
- package/dist/types/registerEmail.d.ts +5 -0
- package/dist/types/registerKycParams.d.ts +8 -0
- package/dist/types/showUpdateWarning.d.ts +12 -0
- package/dist/types/startMultiFactorAuth.d.ts +10 -0
- package/dist/types/topup.d.ts +18 -0
- package/dist/types/verifyMultiFactorAuthResult.d.ts +15 -0
- package/dist/types.d.ts +13 -230
- package/dist/utils/analytics.d.ts +10 -2
- package/dist/utils/api.d.ts +7 -12
- package/dist/utils/getLanguage.d.ts +2 -0
- package/dist/utils/helper.d.ts +1 -1
- package/dist/utils/storage.d.ts +3 -2
- package/dist/views/coupon/index.d.ts +8 -0
- package/dist/views/registerPaymentFeatures/types.d.ts +4 -4
- package/package.json +4 -2
- package/dist/composition-api/useRenderSmartButton.d.ts +0 -3
- package/dist/model/bridge/index.d.ts +0 -47
package/dist/types.d.ts
CHANGED
|
@@ -1,74 +1,27 @@
|
|
|
1
1
|
import { NativeParams, NativeResponse } from './jsbridge-core/jsbridge';
|
|
2
2
|
import { MiniAppErrorType } from './model/miniAppError';
|
|
3
3
|
import { ButtonType } from './package/button';
|
|
4
|
+
import { RegisterEmailResult } from './types/registerEmail';
|
|
5
|
+
import { ShowUpdateWarningParams } from './types/showUpdateWarning';
|
|
6
|
+
import { GetBankInfoResult } from './types/getBankInfo';
|
|
7
|
+
import { MakePaymentParams } from './types/makePayment';
|
|
8
|
+
import { GetUserAddressParams, InputAddressParams } from './types/getUserAddress';
|
|
9
|
+
import { AuthStatusFailResult } from './types/getAuthStatus';
|
|
10
|
+
import { Permission } from './types/getPermissionStatus';
|
|
11
|
+
import { TopupParams } from './types/topup';
|
|
4
12
|
declare global {
|
|
5
13
|
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
6
14
|
}
|
|
15
|
+
export interface MiniAppFunctionContext {
|
|
16
|
+
clientOrigin: string;
|
|
17
|
+
}
|
|
7
18
|
export declare type MiniAppResult = Record<string, unknown>;
|
|
8
19
|
export interface MiniAppErrorResultType {
|
|
9
20
|
errorCode: MiniAppErrorType;
|
|
10
21
|
}
|
|
11
|
-
export interface OrderItem {
|
|
12
|
-
name: string;
|
|
13
|
-
category?: string;
|
|
14
|
-
quantity: number;
|
|
15
|
-
productId?: string;
|
|
16
|
-
unitPrice: Amount;
|
|
17
|
-
}
|
|
18
|
-
export interface MakePaymentParams extends NativeParams<MiniAppResult> {
|
|
19
|
-
amount: Amount;
|
|
20
|
-
merchantPaymentId: string;
|
|
21
|
-
requestedAt: number;
|
|
22
|
-
merchantAlias?: string;
|
|
23
|
-
orderDescription?: string;
|
|
24
|
-
storeId?: string;
|
|
25
|
-
terminalId?: string;
|
|
26
|
-
isAuthorization?: boolean;
|
|
27
|
-
orderItems?: Array<OrderItem>;
|
|
28
|
-
expiresAt?: number;
|
|
29
|
-
orderReceiptNumber?: string;
|
|
30
|
-
agreeSimilarTransaction?: boolean;
|
|
31
|
-
prepaidOnly?: boolean;
|
|
32
|
-
metadata?: unknown;
|
|
33
|
-
sourceInfoApp?: string;
|
|
34
|
-
alwaysDisplayCompletionScreen?: boolean;
|
|
35
|
-
alwaysHideCompletionScreen?: boolean;
|
|
36
|
-
storeInfo?: string;
|
|
37
|
-
productType?: string;
|
|
38
|
-
taxExempt?: boolean;
|
|
39
|
-
additionalUserInfo?: {
|
|
40
|
-
userAddress?: {
|
|
41
|
-
visible: boolean;
|
|
42
|
-
mandatory: boolean;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
22
|
export interface CopyToClipBoardParams extends NativeParams<void> {
|
|
47
23
|
value: string;
|
|
48
24
|
}
|
|
49
|
-
export interface GetPermissionStatusParams extends NativeParams<MiniAppResult> {
|
|
50
|
-
name?: string;
|
|
51
|
-
}
|
|
52
|
-
export interface InitClientParams extends NativeParams<MiniAppResult> {
|
|
53
|
-
clientId?: string;
|
|
54
|
-
env?: string;
|
|
55
|
-
mode?: string;
|
|
56
|
-
debugMode?: boolean;
|
|
57
|
-
useAllFunctions?: boolean;
|
|
58
|
-
}
|
|
59
|
-
export interface InitParams extends NativeParams<MiniAppResult> {
|
|
60
|
-
clientId?: string;
|
|
61
|
-
env?: string;
|
|
62
|
-
mode?: string;
|
|
63
|
-
token?: string;
|
|
64
|
-
ott?: string;
|
|
65
|
-
clientOrigin?: string;
|
|
66
|
-
refreshToken?: string;
|
|
67
|
-
codeVerifier?: string;
|
|
68
|
-
clientVersion?: string;
|
|
69
|
-
debugMode?: boolean;
|
|
70
|
-
useAllFunctions?: boolean;
|
|
71
|
-
}
|
|
72
25
|
export interface IosMapParams {
|
|
73
26
|
label: string;
|
|
74
27
|
scheme?: string;
|
|
@@ -100,18 +53,6 @@ export interface Amount {
|
|
|
100
53
|
amount: number;
|
|
101
54
|
currency?: string;
|
|
102
55
|
}
|
|
103
|
-
export interface TopupParams extends NativeParams<MiniAppResult, MiniAppErrorResultType & {
|
|
104
|
-
jws?: string;
|
|
105
|
-
}> {
|
|
106
|
-
merchantTopUpId: string;
|
|
107
|
-
requestedAt: number;
|
|
108
|
-
prepaidOnly?: boolean;
|
|
109
|
-
merchant?: string;
|
|
110
|
-
productType?: string;
|
|
111
|
-
sourceInfoApp?: string;
|
|
112
|
-
methodType?: string;
|
|
113
|
-
bankCode?: string;
|
|
114
|
-
}
|
|
115
56
|
export interface SetDataParams extends NativeParams<void> {
|
|
116
57
|
key: string;
|
|
117
58
|
value: string;
|
|
@@ -151,9 +92,6 @@ export interface SmsAuthParams extends NativeParams<void> {
|
|
|
151
92
|
export interface SetEnablePullDownRefreshParams extends NativeParams<void> {
|
|
152
93
|
enabled: boolean;
|
|
153
94
|
}
|
|
154
|
-
export interface ShowUpdateWarningParams extends NativeParams<MiniAppResult> {
|
|
155
|
-
isMandatory?: boolean;
|
|
156
|
-
}
|
|
157
95
|
interface IosOpenApp {
|
|
158
96
|
link: string;
|
|
159
97
|
}
|
|
@@ -171,49 +109,13 @@ export interface OpenAppParams extends NativeParams<MiniAppResult> {
|
|
|
171
109
|
ios?: IosOpenApp;
|
|
172
110
|
android?: AndroidOpenApp;
|
|
173
111
|
}
|
|
174
|
-
interface AddressBase {
|
|
175
|
-
street1: string;
|
|
176
|
-
country: string;
|
|
177
|
-
zip: string;
|
|
178
|
-
state: string;
|
|
179
|
-
city: string;
|
|
180
|
-
tags?: Array<string>;
|
|
181
|
-
title?: string;
|
|
182
|
-
receiver?: string;
|
|
183
|
-
street2?: string;
|
|
184
|
-
}
|
|
185
|
-
export interface Address extends AddressBase {
|
|
186
|
-
id: number;
|
|
187
|
-
kyc: boolean;
|
|
188
|
-
}
|
|
189
|
-
export interface NewAddress extends AddressBase {
|
|
190
|
-
id: number | null;
|
|
191
|
-
}
|
|
192
|
-
export interface InputAddressParams extends NativeParams<void> {
|
|
193
|
-
address?: Address;
|
|
194
|
-
}
|
|
195
112
|
export interface RegisterUserInfoParams extends NativeParams<void> {
|
|
196
113
|
formName: string;
|
|
197
114
|
fieldInForm?: string | string[];
|
|
198
115
|
}
|
|
199
|
-
export interface GetUserLocationResult {
|
|
200
|
-
result: {
|
|
201
|
-
lat: number;
|
|
202
|
-
long: number;
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
export interface GetUserLocationParams extends NativeParams<GetUserLocationResult> {
|
|
206
|
-
validTimeMinutes?: number;
|
|
207
|
-
accuracy?: string;
|
|
208
|
-
fallbackToGeolocation?: boolean;
|
|
209
|
-
}
|
|
210
116
|
export interface SetTitleParams extends NativeParams<void> {
|
|
211
117
|
title?: string;
|
|
212
118
|
}
|
|
213
|
-
export interface OpenWebviewParams extends NativeParams<void> {
|
|
214
|
-
url: string;
|
|
215
|
-
style?: string;
|
|
216
|
-
}
|
|
217
119
|
export interface ShareParams extends NativeParams<void> {
|
|
218
120
|
text: string;
|
|
219
121
|
screenshot?: boolean;
|
|
@@ -230,11 +132,6 @@ export declare enum Environment {
|
|
|
230
132
|
CANARY = "canary",
|
|
231
133
|
PRD = "prd"
|
|
232
134
|
}
|
|
233
|
-
export interface GetBalanceParams extends NativeParams<MiniAppResult> {
|
|
234
|
-
productType?: string;
|
|
235
|
-
merchant?: string;
|
|
236
|
-
sourceInfoApp?: string;
|
|
237
|
-
}
|
|
238
135
|
export interface OpenMiniAppParams extends NativeParams<void> {
|
|
239
136
|
redirectUrl?: string;
|
|
240
137
|
}
|
|
@@ -247,49 +144,6 @@ export interface GetKycInformationParams extends NativeParams<MiniAppResult> {
|
|
|
247
144
|
type?: string;
|
|
248
145
|
eKycDocuments?: Array<string>;
|
|
249
146
|
}
|
|
250
|
-
export interface CheckPaymentMethodParams extends NativeParams<MiniAppResult> {
|
|
251
|
-
type: string;
|
|
252
|
-
methodType: string;
|
|
253
|
-
bankCode: string;
|
|
254
|
-
merchant?: string;
|
|
255
|
-
productType?: string;
|
|
256
|
-
sourceInfoApp?: string;
|
|
257
|
-
}
|
|
258
|
-
export interface GetUserAddressParams extends NativeParams<Address> {
|
|
259
|
-
type?: string;
|
|
260
|
-
}
|
|
261
|
-
export interface KycAddress {
|
|
262
|
-
zipCode?: string;
|
|
263
|
-
countryCode?: string;
|
|
264
|
-
country?: string;
|
|
265
|
-
state?: string;
|
|
266
|
-
city?: string;
|
|
267
|
-
street1?: string;
|
|
268
|
-
street2?: string;
|
|
269
|
-
}
|
|
270
|
-
export interface KycData {
|
|
271
|
-
lastName?: string;
|
|
272
|
-
firstName?: string;
|
|
273
|
-
lastNameKana?: string;
|
|
274
|
-
firstNameKana?: string;
|
|
275
|
-
dateOfBirth?: string;
|
|
276
|
-
address?: KycAddress;
|
|
277
|
-
job?: string;
|
|
278
|
-
}
|
|
279
|
-
export interface RegisterKycParams extends NativeParams<unknown> {
|
|
280
|
-
type?: string;
|
|
281
|
-
eKycDocuments?: Array<string>;
|
|
282
|
-
redirectUrl?: string;
|
|
283
|
-
data?: KycData;
|
|
284
|
-
}
|
|
285
|
-
export interface InitKycPassportParams extends NativeParams<unknown> {
|
|
286
|
-
eKycDocuments?: Array<string>;
|
|
287
|
-
callbackUrl: string;
|
|
288
|
-
isSkipKYCRequiredHalfsheet?: boolean;
|
|
289
|
-
}
|
|
290
|
-
export interface GetKycPassportInfoParams extends NativeParams<unknown> {
|
|
291
|
-
url: string;
|
|
292
|
-
}
|
|
293
147
|
export interface StartMultiFactorAuthParams extends NativeParams<MiniAppResult> {
|
|
294
148
|
type: string;
|
|
295
149
|
callbackUrl: string;
|
|
@@ -312,7 +166,6 @@ export interface RenderSmartButtonParams extends NativeParams<MiniAppResult> {
|
|
|
312
166
|
getDefault?: boolean;
|
|
313
167
|
renderId?: string;
|
|
314
168
|
redirectUrl?: string;
|
|
315
|
-
clientOrigin?: string;
|
|
316
169
|
}
|
|
317
170
|
export declare type Locale = 'ja' | 'en';
|
|
318
171
|
export declare type Translation = Record<string, string>;
|
|
@@ -352,6 +205,7 @@ export interface SmartPayParams {
|
|
|
352
205
|
amount: SmartPayAmount;
|
|
353
206
|
requestedAt: number;
|
|
354
207
|
merchantPaymentId: string;
|
|
208
|
+
merchantTimeoutAt?: number;
|
|
355
209
|
orderItems?: Array<SmartPayOrderItem>;
|
|
356
210
|
orderDescription?: string;
|
|
357
211
|
orderReceiptNumber?: string;
|
|
@@ -378,13 +232,7 @@ export interface UserInfo {
|
|
|
378
232
|
avatarUrl: string;
|
|
379
233
|
nickName: string;
|
|
380
234
|
}
|
|
381
|
-
export declare type PopStateInputParams = ShowErrorSheetParams | GetUserAddressParams | InputAddressParams | MakePaymentParams | OpenAppParams | MapParams | ShowAlertParams | ShowUpdateWarningParams | TopupParams
|
|
382
|
-
export declare type Permission = {
|
|
383
|
-
blocker: boolean;
|
|
384
|
-
name: string;
|
|
385
|
-
type: string;
|
|
386
|
-
isBlocker: boolean;
|
|
387
|
-
};
|
|
235
|
+
export declare type PopStateInputParams = ShowErrorSheetParams | GetUserAddressParams | InputAddressParams | MakePaymentParams | OpenAppParams | MapParams | ShowAlertParams | ShowUpdateWarningParams | TopupParams | NativeParams<GetBankInfoResult> | NativeParams<RegisterEmailResult>;
|
|
388
236
|
export declare type Window = {
|
|
389
237
|
navigationBarBackgroundColor: string;
|
|
390
238
|
navigationBarTextStyle: string;
|
|
@@ -447,18 +295,10 @@ export declare enum PpLocalStorageKey {
|
|
|
447
295
|
merchant = "ppjssdk.merchant",
|
|
448
296
|
consumedOTT = "ppjssdk.consumedOTT"
|
|
449
297
|
}
|
|
450
|
-
export declare enum KycPassportMethod {
|
|
451
|
-
biometric = "BIOMETRIC",
|
|
452
|
-
otp = "OTP"
|
|
453
|
-
}
|
|
454
298
|
export declare enum RenderType {
|
|
455
299
|
COVER = "cover",
|
|
456
300
|
CONTAIN = "contain"
|
|
457
301
|
}
|
|
458
|
-
export declare type AddressUpdateEvent = {
|
|
459
|
-
selectedAddress: Address;
|
|
460
|
-
addresses: Address[];
|
|
461
|
-
};
|
|
462
302
|
export declare const PaymentFeatureTypes: {
|
|
463
303
|
readonly PRE_TRANSACTION_AUTO_CHARGE: "PRE_TRANSACTION_AUTO_CHARGE";
|
|
464
304
|
readonly FALLBACK_PAYMENT_METHOD: "FALLBACK_PAYMENT_METHOD";
|
|
@@ -477,13 +317,6 @@ export interface RegisterPaymentFeaturesParams extends NativeParams<void> {
|
|
|
477
317
|
merchant?: string;
|
|
478
318
|
productType?: string;
|
|
479
319
|
}
|
|
480
|
-
export declare type GrantedPermissionRespone = {
|
|
481
|
-
unsigned?: {
|
|
482
|
-
data?: {
|
|
483
|
-
scopes?: Array<string>;
|
|
484
|
-
};
|
|
485
|
-
};
|
|
486
|
-
};
|
|
487
320
|
export declare type BalanceType = {
|
|
488
321
|
unsigned?: {
|
|
489
322
|
resultInfo?: {
|
|
@@ -493,11 +326,6 @@ export declare type BalanceType = {
|
|
|
493
326
|
totalBalance?: {
|
|
494
327
|
amount?: number;
|
|
495
328
|
};
|
|
496
|
-
details?: {
|
|
497
|
-
money?: number;
|
|
498
|
-
moneyLite?: number;
|
|
499
|
-
point?: number;
|
|
500
|
-
};
|
|
501
329
|
};
|
|
502
330
|
};
|
|
503
331
|
};
|
|
@@ -509,25 +337,7 @@ export declare type SessionResponse = {
|
|
|
509
337
|
};
|
|
510
338
|
};
|
|
511
339
|
};
|
|
512
|
-
export declare enum ChallengeMethod {
|
|
513
|
-
S256 = "S256"
|
|
514
|
-
}
|
|
515
|
-
export interface PKCEChallengeType {
|
|
516
|
-
challenge: string;
|
|
517
|
-
challengeMethod: ChallengeMethod;
|
|
518
|
-
}
|
|
519
|
-
interface AuthStatusFailResult extends MiniAppErrorResultType {
|
|
520
|
-
code: PKCEChallengeType | null;
|
|
521
|
-
}
|
|
522
340
|
export declare type ResultErrorType = MiniAppErrorResultType | AuthStatusFailResult;
|
|
523
|
-
export interface GetAuthStatusClientParams extends NativeParams<MiniAppResult, AuthStatusFailResult> {
|
|
524
|
-
isInternal?: boolean;
|
|
525
|
-
}
|
|
526
|
-
export interface GetAuthStatusParams extends NativeParams<MiniAppResult, AuthStatusFailResult> {
|
|
527
|
-
isInternal?: boolean;
|
|
528
|
-
url?: string;
|
|
529
|
-
clientOrigin?: string;
|
|
530
|
-
}
|
|
531
341
|
export declare type ErrorSheetButton = {
|
|
532
342
|
title: string;
|
|
533
343
|
buttonType: 'BLUE' | 'WHITE' | ButtonType;
|
|
@@ -559,11 +369,6 @@ export declare type ShortcutExistsType = (typeof ShortcutExistsTypes)[keyof type
|
|
|
559
369
|
export interface ShortcutExistsParams extends NativeParams<MiniAppResult> {
|
|
560
370
|
type: ShortcutExistsType;
|
|
561
371
|
}
|
|
562
|
-
export interface GetUserPaymentFeatureSettingsParams extends NativeParams<MiniAppResult> {
|
|
563
|
-
paymentFeatureType?: 'PRE_TRANSACTION_AUTO_CHARGE' | 'FALLBACK_PAYMENT_METHOD';
|
|
564
|
-
merchant?: string;
|
|
565
|
-
productType?: string;
|
|
566
|
-
}
|
|
567
372
|
export declare const PPFunctionResult: {
|
|
568
373
|
readonly success: "success";
|
|
569
374
|
readonly fail: "fail";
|
|
@@ -608,9 +413,6 @@ export declare type CashbackResponse = {
|
|
|
608
413
|
};
|
|
609
414
|
};
|
|
610
415
|
};
|
|
611
|
-
export interface VerifyMultiFactorAuthResultParams extends NativeParams<MiniAppResult> {
|
|
612
|
-
sessionId: string | null;
|
|
613
|
-
}
|
|
614
416
|
export interface ShowStorageAccessPermissionAlertParams extends NativeParams<void> {
|
|
615
417
|
clientUrl: string;
|
|
616
418
|
}
|
|
@@ -697,12 +499,6 @@ export declare type ClientJsBridge = {
|
|
|
697
499
|
export declare type ConsoleDebugInfoParams = {
|
|
698
500
|
params: unknown[];
|
|
699
501
|
};
|
|
700
|
-
export declare const KycPassportUrlParam: {
|
|
701
|
-
authType: string;
|
|
702
|
-
ekycDocuments: string;
|
|
703
|
-
sessionId: string;
|
|
704
|
-
functionName: string;
|
|
705
|
-
};
|
|
706
502
|
export interface PayPayCallStackParamsType {
|
|
707
503
|
complete?: () => void;
|
|
708
504
|
[index: string]: unknown;
|
|
@@ -714,17 +510,4 @@ declare global {
|
|
|
714
510
|
_ppsl?: boolean;
|
|
715
511
|
}
|
|
716
512
|
}
|
|
717
|
-
export interface GetTransactionInfoParams extends NativeParams<MiniAppResult> {
|
|
718
|
-
orderId: string;
|
|
719
|
-
orderType?: string;
|
|
720
|
-
}
|
|
721
|
-
export interface GetTransactionsParams extends NativeParams<MiniAppResult> {
|
|
722
|
-
types?: string | string[];
|
|
723
|
-
statuses?: string | string[];
|
|
724
|
-
mids?: string | string[];
|
|
725
|
-
startDate?: string;
|
|
726
|
-
endDate?: string;
|
|
727
|
-
cursor?: string;
|
|
728
|
-
size?: number;
|
|
729
|
-
}
|
|
730
513
|
export {};
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { PPFunctionNameType } from '../types';
|
|
2
|
-
|
|
2
|
+
import { PPEnvType } from '../types/init';
|
|
3
|
+
interface EventParams {
|
|
4
|
+
env: PPEnvType;
|
|
3
5
|
event_category: string;
|
|
4
6
|
event_label?: string;
|
|
5
7
|
screen_name: string;
|
|
6
8
|
event_action?: string;
|
|
7
9
|
error_value?: string;
|
|
8
10
|
event_label2?: unknown;
|
|
9
|
-
}
|
|
11
|
+
}
|
|
12
|
+
interface Options {
|
|
13
|
+
env?: PPEnvType;
|
|
14
|
+
sendImmediately?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function logSDKEvent(eventName: string, eventParams: Omit<EventParams, 'env'>, { env, sendImmediately }?: Options): void;
|
|
10
17
|
export declare function handleLogSDKEvent(name: PPFunctionNameType, eventActionSuffix: string, errorValue?: string, params?: unknown): void;
|
|
18
|
+
export {};
|
package/dist/utils/api.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { MiniAppErrorType } from '../model/miniAppError';
|
|
2
2
|
import { UIComponentsError } from '../model/uiComponents';
|
|
3
|
-
import {
|
|
3
|
+
import { CashbackResponse, SmartPayParams } from '../types';
|
|
4
|
+
import { Address, NewAddress } from '../types/getUserAddress';
|
|
5
|
+
import { MakePaymentParams } from '../types/makePayment';
|
|
6
|
+
import { GetKycPassportInfoResult } from '../types/getKycPassportInfo';
|
|
7
|
+
import { InitKycPassportParams } from '../types/initKycPassport';
|
|
4
8
|
export declare type TopupQuery = {
|
|
5
9
|
merchant?: string;
|
|
6
10
|
agreeSimilarTransaction?: boolean;
|
|
@@ -241,22 +245,13 @@ export declare type VerifyKycPassportResponse = {
|
|
|
241
245
|
resultInfo?: {
|
|
242
246
|
code?: string;
|
|
243
247
|
};
|
|
244
|
-
jws
|
|
248
|
+
jws: string;
|
|
245
249
|
};
|
|
246
250
|
unsigned: {
|
|
247
251
|
resultInfo?: {
|
|
248
252
|
code?: string;
|
|
249
253
|
};
|
|
250
|
-
data
|
|
251
|
-
status?: string;
|
|
252
|
-
kycAt?: string;
|
|
253
|
-
type?: string;
|
|
254
|
-
eKycDocuments?: string;
|
|
255
|
-
kycInfo?: unknown;
|
|
256
|
-
kycPassportMethod?: string;
|
|
257
|
-
nonce: string;
|
|
258
|
-
possessionAuthResult: 'SUCCESS' | 'FAILED';
|
|
259
|
-
};
|
|
254
|
+
data: GetKycPassportInfoResult;
|
|
260
255
|
};
|
|
261
256
|
};
|
|
262
257
|
export declare function getInitKycPassport(params: InitKycPassportParams): Promise<import("./fetch").PPFetchResult<KycTypeResponse, Record<string, unknown>>>;
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { MiniAppErrorType } from '../model/miniAppError';
|
|
|
2
2
|
import { BankInfo, CreditCardInfo, SbidBankInfo, PayLaterCCInfo } from '../model/makePayment';
|
|
3
3
|
import { UIComponentsErrorButton } from '../model/uiComponents';
|
|
4
4
|
import { ErrorSheetButton } from '../types';
|
|
5
|
+
import { FontSize } from '../types/getPlatformInformation';
|
|
5
6
|
export declare function isDef<T>(val: T): val is NonNullable<T>;
|
|
6
7
|
export declare function isFunction(val: unknown): val is () => void;
|
|
7
8
|
export declare function isNumeric(val: string | number): val is string;
|
|
@@ -44,7 +45,6 @@ export declare function getEventLabel(merchant?: string | null): string;
|
|
|
44
45
|
export declare function getEventCategory(): string;
|
|
45
46
|
export declare function semVerCompare(a: string, b: string): boolean;
|
|
46
47
|
export declare function checkVersion(minVersion: string): boolean;
|
|
47
|
-
declare type FontSize = 'REGULAR' | 'LARGE' | 'EXTRA_LARGE';
|
|
48
48
|
export declare function getPlatformFontSize(): FontSize;
|
|
49
49
|
export declare function delay(time?: number): Promise<boolean>;
|
|
50
50
|
export declare const createErrorCode: (errorCode: MiniAppErrorType, jws?: string | null | undefined) => {
|
package/dist/utils/storage.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PpLocalStorageKey } from '../types';
|
|
2
|
+
import { PPEnvType } from '../types/init';
|
|
2
3
|
export declare function getKeyWithClientId(baseKey: PpLocalStorageKey): string;
|
|
3
4
|
export declare function getAccessToken(): string | null;
|
|
4
5
|
export declare function saveLocalStorage(key: string, value: string): void;
|
|
@@ -12,8 +13,8 @@ export declare function getRefreshToken(): string;
|
|
|
12
13
|
export declare function saveRefreshToken(token: string): void;
|
|
13
14
|
export declare function getConsumedOtt(): string | null;
|
|
14
15
|
export declare function saveConsumedOtt(ott: string): void;
|
|
15
|
-
export declare function saveEnv(env
|
|
16
|
-
export declare function getEnv():
|
|
16
|
+
export declare function saveEnv(env?: PPEnvType): void;
|
|
17
|
+
export declare function getEnv(): PPEnvType | null;
|
|
17
18
|
export declare function isProdEnv(): boolean;
|
|
18
19
|
export declare function getClientUUID(): string;
|
|
19
20
|
export declare function getDeviceUUIDFromNative(): string;
|
|
@@ -18,6 +18,10 @@ export declare const CouponView: import("vue").DefineComponent<{
|
|
|
18
18
|
type: PropType<Translation>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
clientOrigin: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
21
25
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
26
|
coupon: {
|
|
23
27
|
type: PropType<FormattedCoupon>;
|
|
@@ -35,4 +39,8 @@ export declare const CouponView: import("vue").DefineComponent<{
|
|
|
35
39
|
type: PropType<Translation>;
|
|
36
40
|
required: true;
|
|
37
41
|
};
|
|
42
|
+
clientOrigin: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
38
46
|
}>>, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaymentMethod,
|
|
1
|
+
import { PaymentMethod, PaymentMethodNameType } from '../../model/makePayment';
|
|
2
2
|
import { ConsultPaymentFeatureType, PaymentFeatureType } from '../../types';
|
|
3
3
|
export declare const AutoTopupModeType: {
|
|
4
4
|
readonly POST_AUTO_TOPUP: "PostAutoTopup";
|
|
@@ -27,7 +27,7 @@ export declare type UpdatePreTransactionAutoTopupConfigurationParams = {
|
|
|
27
27
|
isEnabled: boolean;
|
|
28
28
|
minimumTopupAmount: number;
|
|
29
29
|
paymentMethodId: string;
|
|
30
|
-
methodType:
|
|
30
|
+
methodType: PaymentMethodNameType;
|
|
31
31
|
ccType?: string;
|
|
32
32
|
isAuthenticated?: boolean;
|
|
33
33
|
};
|
|
@@ -54,13 +54,13 @@ declare type PostTransactionAutoTopupConfiguration = {
|
|
|
54
54
|
topupAmount?: number;
|
|
55
55
|
currency?: Currency;
|
|
56
56
|
paymentMethodId: string;
|
|
57
|
-
methodType:
|
|
57
|
+
methodType: PaymentMethodNameType;
|
|
58
58
|
};
|
|
59
59
|
declare type PreTransactionAutoTopupConfiguration = {
|
|
60
60
|
isEnabled: boolean;
|
|
61
61
|
minimumTopupAmount?: number;
|
|
62
62
|
paymentMethodId?: string;
|
|
63
|
-
methodType:
|
|
63
|
+
methodType: PaymentMethodNameType;
|
|
64
64
|
};
|
|
65
65
|
declare type DescriptionInfo = {
|
|
66
66
|
text: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paypay/mini-app-js-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:client && yarn build:core && yarn build:init",
|
|
@@ -40,11 +40,12 @@
|
|
|
40
40
|
"@babel/plugin-transform-typescript": "^7.15.4",
|
|
41
41
|
"@babel/preset-env": "^7.15.4",
|
|
42
42
|
"@braintree/browser-detection": "^1.16.0",
|
|
43
|
-
"@braintree/sanitize-url": "^6.0.2",
|
|
44
43
|
"@pinia/testing": "^0.0.12",
|
|
45
44
|
"@rollup/plugin-html": "^1.0.2",
|
|
46
45
|
"@rollup/plugin-replace": "^3.0.0",
|
|
47
46
|
"@rollup/plugin-terser": "^0.4.3",
|
|
47
|
+
"@sentry/browser": "^7.80.1",
|
|
48
|
+
"@sentry/integrations": "^7.80.1",
|
|
48
49
|
"@testing-library/jest-dom": "^5.16.2",
|
|
49
50
|
"@testing-library/vue": "^6.4.2",
|
|
50
51
|
"@types/ip": "^1.1.0",
|
|
@@ -85,6 +86,7 @@
|
|
|
85
86
|
"prettier": "^2.8.7",
|
|
86
87
|
"rollup": "3.28.0",
|
|
87
88
|
"rollup-plugin-ts": "^3.4.4",
|
|
89
|
+
"rollup-plugin-visualizer": "^5.9.2",
|
|
88
90
|
"stylelint": "^14.9.1",
|
|
89
91
|
"terser": "^5.18.1",
|
|
90
92
|
"ts-jest": "^26.5.6",
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export * from './init';
|
|
2
|
-
export * from './copyToClipboard';
|
|
3
|
-
export * from './getUAID';
|
|
4
|
-
export * from './getBalance';
|
|
5
|
-
export * from './getUserProfile';
|
|
6
|
-
export * from './getKycInformation';
|
|
7
|
-
export * from './getPermissionStatus';
|
|
8
|
-
export * from './getTopBarHeight';
|
|
9
|
-
export * from './getPlatformInformation';
|
|
10
|
-
export * from './getDeviceInformation';
|
|
11
|
-
export * from './makePayment';
|
|
12
|
-
export * from './openWebview';
|
|
13
|
-
export * from './showErrorSheet';
|
|
14
|
-
export * from './showAlert';
|
|
15
|
-
export * from './topup';
|
|
16
|
-
export * from './showUpdateWarning';
|
|
17
|
-
export * from './scanCode';
|
|
18
|
-
export * from './closeApp';
|
|
19
|
-
export * from './setTitle';
|
|
20
|
-
export * from './getUserLocation';
|
|
21
|
-
export * from './getUserAddress';
|
|
22
|
-
export * from './inputAddress';
|
|
23
|
-
export * from './openMap';
|
|
24
|
-
export * from './openApp';
|
|
25
|
-
export * from './openMiniApp';
|
|
26
|
-
export * from './checkPaymentMethod';
|
|
27
|
-
export * from './requestInternal';
|
|
28
|
-
export * from './debug';
|
|
29
|
-
export * from './checkAccessToken';
|
|
30
|
-
export * from './registerEmail';
|
|
31
|
-
export * from './registerKyc';
|
|
32
|
-
export * from './startMultiFactorAuth';
|
|
33
|
-
export * from './logout';
|
|
34
|
-
export * from './verifyMultiFactorAuthResult';
|
|
35
|
-
export * from './getAuthStatus';
|
|
36
|
-
export * from './render';
|
|
37
|
-
export * from './smsAuth';
|
|
38
|
-
export * from './setSessionData';
|
|
39
|
-
export * from './getSessionData';
|
|
40
|
-
export * from './setStorageData';
|
|
41
|
-
export * from './getStorageData';
|
|
42
|
-
export * from './removeStorageData';
|
|
43
|
-
export * from './request';
|
|
44
|
-
export * from './share';
|
|
45
|
-
export * from './registerUserInfo';
|
|
46
|
-
export * from './getBankInfo';
|
|
47
|
-
export * from './registerPaymentFeatures';
|