@paypay/mini-app-js-sdk 2.49.0 → 2.51.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/supportedFunctionsList.d.ts +1 -1
- package/dist/mini-app-api.d.ts +1 -4
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +2075 -69
- package/dist/model/bridge/getConfigure.d.ts +2 -17
- package/dist/model/miniAppError.d.ts +2 -1
- package/dist/package/lottie/lottie.d.ts +13 -3
- package/dist/resources/locales/smartPayment/en.d.ts +3 -0
- package/dist/resources/locales/smartPayment/ja.d.ts +3 -0
- package/dist/types.d.ts +1 -7
- package/dist/utils/api.d.ts +16 -24
- package/dist/utils/storage.d.ts +4 -2
- package/package.json +2 -2
- package/dist/model/bridge/checkAccessToken.d.ts +0 -5
- package/dist/model/bridge/debug.d.ts +0 -3
- package/dist/model/bridge/openMiniApp.d.ts +0 -2
|
@@ -2,24 +2,16 @@ declare type AppSetting = unknown;
|
|
|
2
2
|
declare type AppSwitch = unknown;
|
|
3
3
|
declare type TextSetting = unknown;
|
|
4
4
|
declare type Variables = {
|
|
5
|
-
topupHalfSheetRecommendedAmount: Array<{
|
|
6
|
-
description: string;
|
|
7
|
-
value: number[];
|
|
8
|
-
}>;
|
|
9
5
|
topupButtonsAmount: Array<{
|
|
10
|
-
description: string;
|
|
11
6
|
value: number[];
|
|
12
7
|
}>;
|
|
13
8
|
topupHalfSheetAmount: Array<{
|
|
14
|
-
description: string;
|
|
15
9
|
value: number[];
|
|
16
10
|
}>;
|
|
17
11
|
autoChargeTopupHalfSheetAmount: Array<{
|
|
18
|
-
description: string;
|
|
19
12
|
value: number[];
|
|
20
13
|
}>;
|
|
21
14
|
autoChargeRecommendedTopupAmount: Array<{
|
|
22
|
-
description: string;
|
|
23
15
|
value: number;
|
|
24
16
|
}>;
|
|
25
17
|
topupMinAmount: Array<{
|
|
@@ -32,31 +24,24 @@ export declare type ConfigurationResponse = {
|
|
|
32
24
|
textSetting: TextSetting;
|
|
33
25
|
variables: Variables;
|
|
34
26
|
};
|
|
35
|
-
export declare function initAppConfiguration(): Promise<boolean>;
|
|
36
27
|
export declare type AppConfig = {
|
|
37
28
|
topupButtonsAmount: Array<{
|
|
38
|
-
description: string;
|
|
39
29
|
value: number[];
|
|
40
30
|
}>;
|
|
41
31
|
topupHalfSheetAmount: Array<{
|
|
42
|
-
description: string;
|
|
43
32
|
value: number[];
|
|
44
33
|
}>;
|
|
45
|
-
topupHalfSheetRecommendedAmount: Array<{
|
|
46
|
-
description: string;
|
|
47
|
-
value: number;
|
|
48
|
-
}>;
|
|
49
34
|
autoChargeTopupHalfSheetAmount: Array<{
|
|
50
|
-
description: string;
|
|
51
35
|
value: number[];
|
|
52
36
|
}>;
|
|
53
37
|
autoChargeRecommendedTopupAmount: Array<{
|
|
54
|
-
description: string;
|
|
55
38
|
value: number;
|
|
56
39
|
}>;
|
|
57
40
|
topupMinAmount: Array<{
|
|
58
41
|
value: number;
|
|
59
42
|
}>;
|
|
60
43
|
};
|
|
44
|
+
export declare function initAppConfiguration(): Promise<boolean>;
|
|
61
45
|
export declare function getAppConfig(): Promise<AppConfig | null>;
|
|
46
|
+
export declare function clearAppConfig(): void;
|
|
62
47
|
export {};
|
|
@@ -68,5 +68,6 @@ export declare enum MiniAppErrorType {
|
|
|
68
68
|
merchantTimeout = "MERCHANT_TIMEOUT",
|
|
69
69
|
rateLimitExceeded = "RATE_LIMIT_EXCEEDED",
|
|
70
70
|
sdkUpgradeRequired = "SDK_UPGRADE_REQUIRED",
|
|
71
|
-
authorizationNeeded = "AUTHORIZATION_NEEDED"
|
|
71
|
+
authorizationNeeded = "AUTHORIZATION_NEEDED",
|
|
72
|
+
invalidVirtualAccount = "INVALID_VIRTUAL_ACCOUNT"
|
|
72
73
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { AnimationItem } from 'lottie-web/build/player/lottie_svg';
|
|
3
2
|
import { RenderType } from '../../types';
|
|
4
3
|
declare type TRenderType = (typeof RenderType)[keyof typeof RenderType];
|
|
5
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -11,6 +10,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11
10
|
type: BooleanConstructor;
|
|
12
11
|
default: boolean;
|
|
13
12
|
};
|
|
13
|
+
play: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
14
17
|
path: {
|
|
15
18
|
type: StringConstructor;
|
|
16
19
|
default: string;
|
|
@@ -33,7 +36,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
36
|
required: false;
|
|
34
37
|
};
|
|
35
38
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
-
|
|
39
|
+
animationEnd: () => true;
|
|
40
|
+
dataLoadFail: () => true;
|
|
37
41
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
42
|
loop: {
|
|
39
43
|
type: BooleanConstructor;
|
|
@@ -43,6 +47,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
43
47
|
type: BooleanConstructor;
|
|
44
48
|
default: boolean;
|
|
45
49
|
};
|
|
50
|
+
play: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
46
54
|
path: {
|
|
47
55
|
type: StringConstructor;
|
|
48
56
|
default: string;
|
|
@@ -65,10 +73,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
73
|
required: false;
|
|
66
74
|
};
|
|
67
75
|
}>> & Readonly<{
|
|
68
|
-
|
|
76
|
+
onAnimationEnd?: (() => any) | undefined;
|
|
77
|
+
onDataLoadFail?: (() => any) | undefined;
|
|
69
78
|
}>, {
|
|
70
79
|
path: string;
|
|
71
80
|
type: TRenderType;
|
|
81
|
+
play: boolean;
|
|
72
82
|
loop: boolean;
|
|
73
83
|
autoplay: boolean;
|
|
74
84
|
styles: Record<string, any>;
|
package/dist/types.d.ts
CHANGED
|
@@ -123,9 +123,6 @@ export declare enum Environment {
|
|
|
123
123
|
CANARY = "canary",
|
|
124
124
|
PRD = "prd"
|
|
125
125
|
}
|
|
126
|
-
export interface OpenMiniAppParams extends NativeParams<void> {
|
|
127
|
-
redirectUrl?: string;
|
|
128
|
-
}
|
|
129
126
|
export interface CloseAppParams extends NativeParams<unknown> {
|
|
130
127
|
options?: {
|
|
131
128
|
deeplink?: string;
|
|
@@ -143,7 +140,7 @@ export declare type SmartButtonType = 'login' | 'pay';
|
|
|
143
140
|
export declare type SmartButtonSize = 'lg' | 'sm';
|
|
144
141
|
export declare type SmartButtonTheme = 'light' | 'dark' | 'red';
|
|
145
142
|
export declare type SmartButtonLg = 'en' | 'ja';
|
|
146
|
-
export declare type PaymentLabelType = 'payment' | 'donation' | 'remittance';
|
|
143
|
+
export declare type PaymentLabelType = 'payment' | 'donation' | 'remittance' | 'deposit';
|
|
147
144
|
export interface RenderSmartButtonParams extends NativeParams<MiniAppResult> {
|
|
148
145
|
type: SmartButtonType;
|
|
149
146
|
containerId: string;
|
|
@@ -445,13 +442,10 @@ export declare const PPFunctionName: {
|
|
|
445
442
|
readonly requestInternal: "requestInternal";
|
|
446
443
|
readonly scanCode: "scanCode";
|
|
447
444
|
readonly getAuthStatus: "getAuthStatus";
|
|
448
|
-
readonly openMiniApp: "openMiniApp";
|
|
449
445
|
readonly inputAddress: "inputAddress";
|
|
450
|
-
readonly checkAccessToken: "checkAccessToken";
|
|
451
446
|
readonly getCashbackInformation: "getCashbackInformation";
|
|
452
447
|
readonly request: "request";
|
|
453
448
|
readonly getDeviceInformation: "getDeviceInformation";
|
|
454
|
-
readonly debug: "debug";
|
|
455
449
|
readonly createOrder: "createOrder";
|
|
456
450
|
readonly handleMessageFromNative: "handleMessageFromNative";
|
|
457
451
|
readonly initKycPassport: "initKycPassport";
|
package/dist/utils/api.d.ts
CHANGED
|
@@ -56,26 +56,15 @@ export interface TopupResponse {
|
|
|
56
56
|
data: TopupResponseData;
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
export declare type
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
currency: string;
|
|
68
|
-
};
|
|
69
|
-
transferableBalanceInfo: {
|
|
70
|
-
balance: number;
|
|
71
|
-
currency: string;
|
|
72
|
-
};
|
|
73
|
-
payoutableBalanceInfo: {
|
|
74
|
-
balance: number;
|
|
75
|
-
currency: string;
|
|
76
|
-
};
|
|
59
|
+
export declare type BalanceInfo = {
|
|
60
|
+
totalBalance: {
|
|
61
|
+
amount: number;
|
|
62
|
+
currency: string;
|
|
63
|
+
};
|
|
64
|
+
totalUsableBalance: {
|
|
65
|
+
amount: number;
|
|
66
|
+
currency: string;
|
|
77
67
|
};
|
|
78
|
-
cashBackUseStatus: string;
|
|
79
68
|
};
|
|
80
69
|
export declare function topup(queryParams: TopupQuery, body: TopupBody, paymentParams?: MakePaymentParams): Promise<{
|
|
81
70
|
ppFetchResult: "notAuthorized";
|
|
@@ -143,12 +132,15 @@ export declare type BalanceParams = {
|
|
|
143
132
|
productType?: string;
|
|
144
133
|
};
|
|
145
134
|
export declare function getBalance(params?: BalanceParams): Promise<import("./fetch").PPFetchResult<unknown, Record<string, unknown>>>;
|
|
146
|
-
declare type
|
|
147
|
-
data:
|
|
148
|
-
|
|
149
|
-
|
|
135
|
+
declare type BalanceInfoForTopupSheetResponse = {
|
|
136
|
+
data: BalanceInfo;
|
|
137
|
+
};
|
|
138
|
+
declare type BalanceInfoForTopupSheetRequestParams = {
|
|
139
|
+
merchant?: string;
|
|
140
|
+
productType?: string;
|
|
141
|
+
clientId: string;
|
|
150
142
|
};
|
|
151
|
-
export declare function
|
|
143
|
+
export declare function getBalanceInfoForTopupSheet(params: BalanceInfoForTopupSheetRequestParams): Promise<import("./fetch").PPFetchResult<BalanceInfoForTopupSheetResponse, Record<string, unknown>>>;
|
|
152
144
|
export declare type ShallowAddress = {
|
|
153
145
|
prefecture: string;
|
|
154
146
|
cityAndOaza: string;
|
package/dist/utils/storage.d.ts
CHANGED
|
@@ -12,7 +12,9 @@ export declare function saveConsumedOtt(ott: string): void;
|
|
|
12
12
|
export declare function saveEnv(env?: PPEnvType): void;
|
|
13
13
|
export declare function getEnv(): PPEnvType | null;
|
|
14
14
|
export declare function isProdEnv(): boolean;
|
|
15
|
+
export declare function saveClientUUID(uuid: string): void;
|
|
15
16
|
export declare function getClientUUID(): string;
|
|
17
|
+
export declare function saveDeviceUUID(uuid: string): void;
|
|
16
18
|
export declare function getDeviceUUIDFromNative(): string;
|
|
17
19
|
export declare function getDeviceUUID(): string;
|
|
18
20
|
export declare function saveLastPayment(payment: string): void;
|
|
@@ -37,10 +39,10 @@ export declare type SerializedAppDetail = {
|
|
|
37
39
|
export declare function saveAppDetail(appDetail: SerializedAppDetail): void;
|
|
38
40
|
export declare function getAppDetail(clientId?: string): SerializedAppDetail | null;
|
|
39
41
|
export declare function removeAppDetail(): void;
|
|
40
|
-
export declare function saveAppConfig(appConfig: string): void;
|
|
41
|
-
export declare function getAppConfig(): string | null;
|
|
42
42
|
export declare function getUserInfo(): string | null;
|
|
43
43
|
export declare function saveUserInfo(userData: string): void;
|
|
44
|
+
export declare function saveCodeVerifier(codeVerifier: string): void;
|
|
45
|
+
export declare function getCodeVerifier(): string | null;
|
|
44
46
|
export declare function removeCodeVerifier(): void;
|
|
45
47
|
export declare function saveAuthorizedClientOrigin(clientId: string, origin: string): void;
|
|
46
48
|
export declare function getAuthorizedClientOrigin(clientId: string): string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paypay/mini-app-js-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.51.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:client && yarn build:core",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"js-cookie": "^3.0.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@braintree/browser-detection": "^2.0.1",
|
|
45
44
|
"@pinia/testing": "0.1.7",
|
|
46
45
|
"@playwright/test": "^1.49.1",
|
|
47
46
|
"@rollup/plugin-html": "^1.1.0",
|
|
@@ -63,6 +62,7 @@
|
|
|
63
62
|
"@vitest/coverage-v8": "^2.1.8",
|
|
64
63
|
"@vue/compiler-sfc": "^3.5.13",
|
|
65
64
|
"@vue/test-utils": "^2.0.0-rc.21",
|
|
65
|
+
"bowser": "^2.11.0",
|
|
66
66
|
"detectincognitojs": "^1.3.7",
|
|
67
67
|
"dotenv": "^16.4.7",
|
|
68
68
|
"eslint": "^8.57.1",
|