@paypay/mini-app-js-sdk 2.38.0 → 2.40.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.
@@ -52,5 +52,6 @@ export declare const img_exclaimIcon: string;
52
52
  export declare const img_iconPpcdGold: string;
53
53
  export declare const img_iconPpcd: string;
54
54
  export declare const img_kyc: string;
55
+ export declare const img_ppCredit: string;
55
56
  export declare const qr_kyc: string;
56
57
  export declare const qr_topup: string;
@@ -1,10 +1,34 @@
1
1
  declare const _default: {
2
2
  ja: {
3
+ topup: {
4
+ title: string;
5
+ charge: string;
6
+ minAmount: string;
7
+ maxAmount: string;
8
+ moneyLabel: string;
9
+ noMethod: string;
10
+ loading: string;
11
+ payBtn: string;
12
+ availableBalance: string;
13
+ availableBalanceAfter: string;
14
+ allBalance: string;
15
+ yen: string;
16
+ feeNotIncluded: string;
17
+ fee: string;
18
+ topupAmount: string;
19
+ taxIncluded: string;
20
+ };
3
21
  topupCompletion: {
4
22
  title: string;
5
23
  idInfo: string;
6
24
  copied: string;
7
25
  };
26
+ duplicate: {
27
+ topHeader: string;
28
+ topText1: string;
29
+ topText2: string;
30
+ topAgreeButtonText: string;
31
+ };
8
32
  paymentMethod: {
9
33
  expired: string;
10
34
  ordinary: string;
@@ -28,11 +52,35 @@ declare const _default: {
28
52
  };
29
53
  };
30
54
  en: {
55
+ topup: {
56
+ title: string;
57
+ charge: string;
58
+ minAmount: string;
59
+ maxAmount: string;
60
+ moneyLabel: string;
61
+ noMethod: string;
62
+ loading: string;
63
+ payBtn: string;
64
+ availableBalance: string;
65
+ availableBalanceAfter: string;
66
+ allBalance: string;
67
+ yen: string;
68
+ feeNotIncluded: string;
69
+ fee: string;
70
+ topupAmount: string;
71
+ taxIncluded: string;
72
+ };
31
73
  topupCompletion: {
32
74
  title: string;
33
75
  idInfo: string;
34
76
  copied: string;
35
77
  };
78
+ duplicate: {
79
+ topHeader: string;
80
+ topText1: string;
81
+ topText2: string;
82
+ topAgreeButtonText: string;
83
+ };
36
84
  paymentMethod: {
37
85
  expired: string;
38
86
  ordinary: string;
@@ -1,9 +1,33 @@
1
1
  declare const _default: {
2
+ topup: {
3
+ title: string;
4
+ charge: string;
5
+ minAmount: string;
6
+ maxAmount: string;
7
+ moneyLabel: string;
8
+ noMethod: string;
9
+ loading: string;
10
+ payBtn: string;
11
+ availableBalance: string;
12
+ availableBalanceAfter: string;
13
+ allBalance: string;
14
+ yen: string;
15
+ feeNotIncluded: string;
16
+ fee: string;
17
+ topupAmount: string;
18
+ taxIncluded: string;
19
+ };
2
20
  topupCompletion: {
3
21
  title: string;
4
22
  idInfo: string;
5
23
  copied: string;
6
24
  };
25
+ duplicate: {
26
+ topHeader: string;
27
+ topText1: string;
28
+ topText2: string;
29
+ topAgreeButtonText: string;
30
+ };
7
31
  paymentMethod: {
8
32
  expired: string;
9
33
  ordinary: string;
package/dist/types.d.ts CHANGED
@@ -344,10 +344,6 @@ export interface ScanCodeParams extends NativeParams<MiniAppResult> {
344
344
  export interface ScanCodeClientParams extends NativeParams<MiniAppResult> {
345
345
  redirectUrlOnCancel?: string;
346
346
  }
347
- export interface LogAppsFlyerEventParams extends NativeParams<void> {
348
- eventName: string;
349
- parameters: Record<string, unknown>;
350
- }
351
347
  export declare const AddShortcutTypes: {
352
348
  readonly FAVORITE: "FAVORITE";
353
349
  readonly OS_HOME_SCREEN_ICON: "OS_HOME_SCREEN_ICON";
@@ -472,12 +468,6 @@ export declare const PPUtilFunctionName: {
472
468
  readonly clientPopState: "clientPopState";
473
469
  };
474
470
  export declare type PPUtilFunctionNameType = (typeof PPUtilFunctionName)[keyof typeof PPUtilFunctionName];
475
- export declare type SaveRefreshTokenOption = {
476
- refreshToken: string;
477
- domain: string;
478
- isSecure: boolean;
479
- clientId: string;
480
- };
481
471
  export declare type SaveCodeVerifierOption = {
482
472
  codeVerifier: string;
483
473
  domain: string;
@@ -79,6 +79,6 @@ export declare type PPFetchResult<T, E = Record<string, unknown>> = {
79
79
  statusCode: number;
80
80
  body?: null;
81
81
  };
82
- export declare function ppFetch2<T, E = Record<string, unknown>>(options: PPFetchOptions): Promise<PPFetchResult<T, E>>;
83
- export declare function fetchRefreshToken(refreshToken: string, clientId?: string, clientOrigin?: string): Promise<boolean>;
82
+ export declare function ppFetch<T, E = Record<string, unknown>>(options: PPFetchOptions): Promise<PPFetchResult<T, E>>;
83
+ export declare function fetchRefreshToken(refreshToken: string, clientOrigin?: string): Promise<boolean>;
84
84
  export { createHeaderMiniAppApi };
@@ -47,6 +47,8 @@ export declare function getAppVersion(): string | null;
47
47
  export declare function semVerCompare(a: string, b: string): boolean;
48
48
  export declare function checkVersion(minVersion: string): boolean;
49
49
  export declare function checkJSSDKVersion(minVersion: string): boolean;
50
+ export declare function clientStorageFunctionsAreAvailable(): boolean;
51
+ export declare function clientQueryParamRemoval(): boolean;
50
52
  export declare function getPlatformFontSize(): FontSize;
51
53
  export declare function delay(time?: number): Promise<boolean>;
52
54
  export declare const createErrorCode: (errorCode: MiniAppErrorType, jws?: string | null | undefined) => {
@@ -4,7 +4,6 @@ export declare const MinVersion: {
4
4
  OS_HOME_SCREEN_ICON: string;
5
5
  START_MULTIFACTOR_AUTH_ANDROID_FIX: string;
6
6
  KYC_PASSPORT: string;
7
- LOG_APP_FLYER_EVENT: string;
8
7
  PERFORMANCE_MEASUREMENT: string;
9
8
  START_MULTIFACTOR_AUTH_PIN_FALLBACK: string;
10
9
  };
@@ -1,3 +1,5 @@
1
1
  export declare const MinJSSDKVersion: {
2
2
  ORDER_TYPE_REMITTANCE: string;
3
+ CLIENT_STORAGE_FUNCTIONS: string;
4
+ CLIENT_QUERY_PARAM_REMOVAL: string;
3
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "2.38.0",
3
+ "version": "2.40.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "yarn build:client && yarn build:core",
@@ -1,2 +0,0 @@
1
- import { LogAppsFlyerEventParams } from '../../types';
2
- export declare function logAppsFlyerEvent(params: LogAppsFlyerEventParams): void;
@@ -1,6 +0,0 @@
1
- import strings from '../resources/ja-remote.json';
2
- import { Ref } from 'vue';
3
- declare type RemoteStrings = typeof strings;
4
- export declare function useRemoteStrings(): Ref<RemoteStrings>;
5
- export declare function clearRemoteStringsCache(): void;
6
- export {};