@paypay/mini-app-js-sdk 2.15.0 → 2.16.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.
Files changed (89) hide show
  1. package/dist/client/index.d.ts +11 -6
  2. package/dist/composition-api/useGetUserAddress.d.ts +1 -1
  3. package/dist/composition-api/useInpuAddress.d.ts +1 -1
  4. package/dist/composition-api/useKycPassport.d.ts +1 -1
  5. package/dist/composition-api/useMakePayment.d.ts +1 -1
  6. package/dist/composition-api/useRegisterEmail.d.ts +2 -1
  7. package/dist/composition-api/useShowUpdateWarning.d.ts +1 -1
  8. package/dist/composition-api/useShowUpdateWarningKycPassport.d.ts +2 -2
  9. package/dist/composition-api/useTopup.d.ts +1 -1
  10. package/dist/core/coreUtils.d.ts +3 -2
  11. package/dist/core/sentry.d.ts +1 -0
  12. package/dist/environment-variables.d.ts +5 -0
  13. package/dist/mini-app-api.d.ts +26 -4
  14. package/dist/mini-app-js-sdk.browser.js +1 -1
  15. package/dist/mini-app-js-sdk.es.js +5 -16
  16. package/dist/model/OPAErrorCodes.d.ts +4 -0
  17. package/dist/model/bridge/checkAccessToken.d.ts +4 -2
  18. package/dist/model/bridge/checkPaymentMethod.d.ts +1 -1
  19. package/dist/model/bridge/getAuthStatus.d.ts +1 -1
  20. package/dist/model/bridge/getBalance.d.ts +1 -1
  21. package/dist/model/bridge/getBankInfo.d.ts +2 -2
  22. package/dist/model/bridge/getDeviceInformation.d.ts +2 -2
  23. package/dist/model/bridge/getKycInformation.d.ts +1 -1
  24. package/dist/model/bridge/getKycPassportInfo.d.ts +1 -1
  25. package/dist/model/bridge/getLoginUrl.d.ts +2 -1
  26. package/dist/model/bridge/getPermissionStatus.d.ts +1 -1
  27. package/dist/model/bridge/getPlatformInformation.d.ts +2 -2
  28. package/dist/model/bridge/getTopBarHeight.d.ts +2 -2
  29. package/dist/model/bridge/getTransactionInfo.d.ts +1 -1
  30. package/dist/model/bridge/getTransactions.d.ts +1 -1
  31. package/dist/model/bridge/getUAID.d.ts +2 -2
  32. package/dist/model/bridge/getUserAddress.d.ts +1 -1
  33. package/dist/model/bridge/getUserLocation.d.ts +1 -1
  34. package/dist/model/bridge/getUserPaymentFeatureSettings.d.ts +1 -1
  35. package/dist/model/bridge/getUserProfile.d.ts +2 -2
  36. package/dist/model/bridge/init.d.ts +1 -1
  37. package/dist/model/bridge/initKycPassport.d.ts +1 -1
  38. package/dist/model/bridge/inputAddress.d.ts +1 -1
  39. package/dist/model/bridge/logout.d.ts +2 -2
  40. package/dist/model/bridge/makePayment.d.ts +1 -1
  41. package/dist/model/bridge/openWebview.d.ts +1 -1
  42. package/dist/model/bridge/registerEmail.d.ts +2 -1
  43. package/dist/model/bridge/registerKyc.d.ts +1 -1
  44. package/dist/model/bridge/showUpdateWarning.d.ts +1 -1
  45. package/dist/model/bridge/startMultiFactorAuth.d.ts +1 -1
  46. package/dist/model/bridge/topup.d.ts +1 -1
  47. package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +1 -1
  48. package/dist/model/makePayment.d.ts +18 -17
  49. package/dist/model/miniAppError.d.ts +2 -1
  50. package/dist/model/permission.d.ts +2 -23
  51. package/dist/package/button/index.d.ts +2 -2
  52. package/dist/resources/en.d.ts +2 -0
  53. package/dist/resources/ja.d.ts +2 -0
  54. package/dist/types/checkPaymentMethod.d.ts +20 -0
  55. package/dist/types/getAuthStatus.d.ts +22 -0
  56. package/dist/types/getBalance.d.ts +31 -0
  57. package/dist/types/getBankInfo.d.ts +32 -0
  58. package/dist/types/getDeviceInformation.d.ts +3 -0
  59. package/dist/types/getKycInformation.d.ts +50 -0
  60. package/dist/types/getKycPassportInfo.d.ts +21 -0
  61. package/dist/types/getPermissionStatus.d.ts +68 -0
  62. package/dist/types/getPlatformInformation.d.ts +7 -0
  63. package/dist/types/getTopBarHeight.d.ts +3 -0
  64. package/dist/types/getTransactionInfo.d.ts +32 -0
  65. package/dist/types/getTransactions.d.ts +16 -0
  66. package/dist/types/getUAID.d.ts +3 -0
  67. package/dist/types/getUserAddress.d.ts +39 -0
  68. package/dist/types/getUserLocation.d.ts +13 -0
  69. package/dist/types/getUserPaymentFeatureSettings.d.ts +16 -0
  70. package/dist/types/getUserProfile.d.ts +25 -0
  71. package/dist/types/init.d.ts +41 -0
  72. package/dist/types/initKycPassport.d.ts +12 -0
  73. package/dist/types/logout.d.ts +3 -0
  74. package/dist/types/makePayment.d.ts +46 -0
  75. package/dist/types/openWebview.d.ts +11 -0
  76. package/dist/types/registerEmail.d.ts +5 -0
  77. package/dist/types/registerKycParams.d.ts +8 -0
  78. package/dist/types/showUpdateWarning.d.ts +12 -0
  79. package/dist/types/startMultiFactorAuth.d.ts +10 -0
  80. package/dist/types/topup.d.ts +18 -0
  81. package/dist/types/verifyMultiFactorAuthResult.d.ts +15 -0
  82. package/dist/types.d.ts +10 -229
  83. package/dist/utils/analytics.d.ts +2 -1
  84. package/dist/utils/api.d.ts +7 -12
  85. package/dist/utils/getLanguage.d.ts +2 -0
  86. package/dist/utils/helper.d.ts +1 -1
  87. package/dist/utils/storage.d.ts +3 -2
  88. package/dist/views/registerPaymentFeatures/types.d.ts +4 -4
  89. package/package.json +2 -1
@@ -1,11 +1,14 @@
1
1
  import { NativeParams } from '../jsbridge-core/jsbridge';
2
2
  import { MiniAppModule } from '../mini-app-api';
3
- import { CopyToClipBoardParams, GetAuthStatusClientParams, GetDataParams, InitClientParams, MiniAppResult, RemoveDataParams, RenderCouponsParams, RenderSmartButtonParams, ScanCodeClientParams, SetDataParams, SetTitleParams, ShareParams } from '../types';
3
+ import { CopyToClipBoardParams, GetDataParams, RemoveDataParams, RenderCouponsParams, RenderSmartButtonParams, ScanCodeClientParams, SetDataParams, SetTitleParams, ShareParams } from '../types';
4
4
  import { MiniAppStatusType } from '../model/miniAppStatus';
5
+ import { VerifyMultiFactorAuthStatus } from '../types/verifyMultiFactorAuthResult';
6
+ import { InitClientParams } from '../types/init';
7
+ import { GetAuthStatusClientParams } from '../types/getAuthStatus';
8
+ import { GetKycPassportInfoResult } from '../types/getKycPassportInfo';
5
9
  declare function init(params: InitClientParams): void;
6
- declare function getAuthStatus(params: GetAuthStatusClientParams): void;
7
- declare function verifyMultiFactorAuthResult(params: NativeParams<MiniAppResult>): void;
8
- declare function getKycPassportInfo(params: NativeParams<MiniAppResult>): void;
10
+ declare function verifyMultiFactorAuthResult(params: NativeParams<VerifyMultiFactorAuthStatus>): void;
11
+ declare function getKycPassportInfo(params: NativeParams<GetKycPassportInfoResult>): void;
9
12
  declare function share(params: ShareParams): void;
10
13
  declare function setTitle(params: SetTitleParams): void;
11
14
  declare function render(params: RenderSmartButtonParams): void;
@@ -35,12 +38,14 @@ declare const clientFunctions: {
35
38
  setStorageData: typeof setStorageData;
36
39
  removeStorageData: typeof removeStorageData;
37
40
  getKycPassportInfo: typeof getKycPassportInfo;
38
- getAuthStatus: typeof getAuthStatus;
39
41
  logout: (params: NativeParams<{
40
42
  statusCode: MiniAppStatusType;
41
43
  }, import('../types').MiniAppErrorResultType>) => void;
42
44
  getPaymentSettings: (params: NativeParams<import("../core/coreFunctions/getPaymentSettings").PaymentSettingsType, import('../types').MiniAppErrorResultType>) => void;
43
45
  };
44
- declare type ClientSDKType = Omit<MiniAppModule, keyof typeof clientFunctions> & typeof clientFunctions;
46
+ declare type clientFunctionType = typeof clientFunctions & {
47
+ getAuthStatus: (params: GetAuthStatusClientParams) => void;
48
+ };
49
+ declare type ClientSDKType = Omit<MiniAppModule, keyof typeof clientFunctions> & clientFunctionType;
45
50
  declare const client: ClientSDKType;
46
51
  export default client;
@@ -1,2 +1,2 @@
1
- import { GetUserAddressParams } from '../types';
1
+ import { GetUserAddressParams } from '../types/getUserAddress';
2
2
  export declare const initGetUserAddress: (params: GetUserAddressParams) => Promise<void>;
@@ -1,2 +1,2 @@
1
- import { InputAddressParams } from '../types';
1
+ import { InputAddressParams } from '../types/getUserAddress';
2
2
  export declare const initInputAddress: (params: InputAddressParams) => void;
@@ -1,4 +1,4 @@
1
- import { InitKycPassportParams } from '../types';
1
+ import { InitKycPassportParams } from '../types/initKycPassport';
2
2
  import { MiniAppErrorType } from '../model/miniAppError';
3
3
  declare const initKycPassportError: (params: InitKycPassportParams, errorCode: MiniAppErrorType) => void;
4
4
  export { initKycPassportError };
@@ -1,3 +1,3 @@
1
- import { MakePaymentParams } from '../types';
1
+ import { MakePaymentParams } from '../types/makePayment';
2
2
  declare const initMakePayment: (initMakePayment: MakePaymentParams) => Promise<void>;
3
3
  export { initMakePayment };
@@ -1,2 +1,3 @@
1
1
  import { NativeParams } from '../jsbridge-core/jsbridge';
2
- export declare function initRegisterEmail(initRegisterEmail: NativeParams<unknown>, allowsUpdate: boolean): Promise<void>;
2
+ import { RegisterEmailResult } from '../types/registerEmail';
3
+ export declare function initRegisterEmail(initRegisterEmail: NativeParams<RegisterEmailResult>, allowsUpdate: boolean): Promise<void>;
@@ -1,3 +1,3 @@
1
- import { ShowUpdateWarningParams } from '../types';
1
+ import { ShowUpdateWarningParams } from '../types/showUpdateWarning';
2
2
  declare const initShowUpdateWarning: (params: ShowUpdateWarningParams) => void;
3
3
  export { initShowUpdateWarning };
@@ -1,4 +1,4 @@
1
- import { MiniAppResult } from '../types';
2
1
  import { NativeParams } from '../jsbridge-core/jsbridge';
3
- declare const initUpdateWarning: (params: NativeParams<MiniAppResult>) => void;
2
+ import { GetKycPassportInfoResult } from '../types/getKycPassportInfo';
3
+ declare const initUpdateWarning: (params: NativeParams<GetKycPassportInfoResult>) => void;
4
4
  export { initUpdateWarning };
@@ -1,3 +1,3 @@
1
- import { TopupParams } from '../types';
1
+ import { TopupParams } from '../types/topup';
2
2
  declare const initTopup: (topupParams: TopupParams) => void;
3
3
  export { initTopup };
@@ -1,5 +1,6 @@
1
1
  import { NativeParams } from '../jsbridge-core/jsbridge';
2
- import { Address, ConsoleDebugInfoParams, MiniAppResult, ChallengeMethod } from '../types';
2
+ import { ConsoleDebugInfoParams } from '../types';
3
+ import { ChallengeMethod } from '../types/getAuthStatus';
3
4
  export declare function initCoreUtil(targetOrigin: string): void;
4
5
  export declare function linkOpen(url: string, target?: string, isFocus?: boolean): void;
5
6
  export declare function getDomain(subdomainCookieSharing: boolean, hostname: string): string;
@@ -9,7 +10,7 @@ export declare function getPkceCodeChallenge(): Promise<{
9
10
  challenge: string;
10
11
  challengeMethod: ChallengeMethod;
11
12
  }>;
12
- export declare function sendMakeIframeVisible(params: NativeParams<void> | NativeParams<MiniAppResult> | NativeParams<Address>): void;
13
+ export declare function sendMakeIframeVisible<T extends NativeParams<any>>(params: T): void;
13
14
  export declare function checkMakeIframeVisible(): void;
14
15
  export declare function sendDebugInfoToClient(data: ConsoleDebugInfoParams, env?: string | null, debugMode?: boolean): void;
15
16
  export declare function isInternalMiniapp(): boolean | undefined;
@@ -0,0 +1 @@
1
+ export declare function initSentry(): void;
@@ -1,5 +1,10 @@
1
1
  export declare const JS_SDK_VERSION: string;
2
+ export declare const REVISION: string;
2
3
  export declare const CORE_IFRAME_ORIGIN: string;
3
4
  export declare const CORE_IFRAME_URL: string;
4
5
  export declare const COUPON_IFRAME_URL: string;
5
6
  export declare const REMOTE_STRINGS_URL: string;
7
+ export declare const SENTRY_DSN: string | undefined;
8
+ export declare const SENTRY_SAMPLE_RATE: number;
9
+ export declare const GA_API_SECRET: string | undefined;
10
+ export declare const GA_MEASUREMENT_ID: string | undefined;
@@ -1,6 +1,28 @@
1
1
  import { JsBridge, NativeParams } from './jsbridge-core/jsbridge';
2
2
  import { JsBridgeModule } from './jsbridge-core/module';
3
- import { AddShortcutParams, CheckPaymentMethodParams, CloseAppParams, CopyToClipBoardParams, GetAuthStatusParams, GetBalanceParams, GetCashbackInfoParams, GetDataParams, GetKycInformationParams, GetKycPassportInfoParams, GetPermissionStatusParams, GetTransactionsParams, GetUserAddressParams, GetUserLocationParams, GetUserPaymentFeatureSettingsParams, InitKycPassportParams, InitParams, InputAddressParams, LogAppsFlyerEventParams, MakePaymentParams, MapParams, MiniAppResult, OpenAppParams, OpenMiniAppParams, OpenWebviewParams, RegisterKycParams, RegisterPaymentFeaturesParams, RegisterUserInfoParams, RemoveDataParams, RenderSmartButtonParams, RequestInternalParams, RequestParams, ScanCodeParams, SetDataParams, SetEnablePullDownRefreshParams, SetTitleParams, ShareParams, ShortcutExistsParams, ShowAlertParams, ShowErrorSheetParams, ShowUpdateWarningParams, SmsAuthParams, StartMultiFactorAuthParams, TopupParams, VerifyMultiFactorAuthResultParams } from './types';
3
+ import { AddShortcutParams, CloseAppParams, CopyToClipBoardParams, GetCashbackInfoParams, GetDataParams, LogAppsFlyerEventParams, MapParams, MiniAppResult, OpenAppParams, OpenMiniAppParams, RegisterPaymentFeaturesParams, RegisterUserInfoParams, RemoveDataParams, RenderSmartButtonParams, RequestInternalParams, RequestParams, ScanCodeParams, SetDataParams, SetEnablePullDownRefreshParams, SetTitleParams, ShareParams, ShortcutExistsParams, ShowAlertParams, ShowErrorSheetParams, SmsAuthParams } from './types';
4
+ import { TopupParams } from './types/topup';
5
+ import { GetPlatformInformationResult } from './types/getPlatformInformation';
6
+ import { ShowUpdateWarningParams } from './types/showUpdateWarning';
7
+ import { InitParams } from './types/init';
8
+ import { GetAuthStatusParams } from './types/getAuthStatus';
9
+ import { GetBalanceParams } from './types/getBalance';
10
+ import { OpenWebviewParams } from './types/openWebview';
11
+ import { GetDeviceInformationResult } from './types/getDeviceInformation';
12
+ import { CheckPaymentMethodParams } from './types/checkPaymentMethod';
13
+ import { StartMultiFactorAuthParams } from './types/startMultiFactorAuth';
14
+ import { VerifyMultiFactorAuthResultParams } from './types/verifyMultiFactorAuthResult';
15
+ import { MakePaymentParams } from './types/makePayment';
16
+ import { GetUserLocationParams } from './types/getUserLocation';
17
+ import { LogoutResult } from './types/logout';
18
+ import { GetUserPaymentFeatureSettingsParams } from './types/getUserPaymentFeatureSettings';
19
+ import { GetUserAddressParams, InputAddressParams } from './types/getUserAddress';
20
+ import { GetKycPassportInfoParams } from './types/getKycPassportInfo';
21
+ import { InitKycPassportParams } from './types/initKycPassport';
22
+ import { RegisterKycParams } from './types/registerKycParams';
23
+ import { GetKycInformationParams } from './types/getKycInformation';
24
+ import { GetPermissionStatusParams } from './types/getPermissionStatus';
25
+ import { GetTransactionsParams } from './types/getTransactions';
4
26
  export declare class MiniAppModule extends JsBridgeModule {
5
27
  constructor(jsBridge: JsBridge);
6
28
  private detectMode;
@@ -32,8 +54,8 @@ export declare class MiniAppModule extends JsBridgeModule {
32
54
  getTopBarHeight(params: NativeParams<MiniAppResult>): void;
33
55
  setTitle(params: SetTitleParams): void;
34
56
  showUpdateWarning(params: ShowUpdateWarningParams): void;
35
- getPlatformInformation(params: NativeParams<MiniAppResult>): void;
36
- getDeviceInformation(params: NativeParams<MiniAppResult>): void;
57
+ getPlatformInformation(params: NativeParams<GetPlatformInformationResult>): void;
58
+ getDeviceInformation(params: NativeParams<GetDeviceInformationResult>): void;
37
59
  openApp(params: OpenAppParams): void;
38
60
  share(params: ShareParams): void;
39
61
  getKycInformation(params: GetKycInformationParams): void;
@@ -47,7 +69,7 @@ export declare class MiniAppModule extends JsBridgeModule {
47
69
  setEnablePullDownRefresh(params?: SetEnablePullDownRefreshParams): void;
48
70
  registerKyc(params: RegisterKycParams): void;
49
71
  startMultiFactorAuth(params: StartMultiFactorAuthParams): void;
50
- logout(params: NativeParams<MiniAppResult>): void;
72
+ logout(params: NativeParams<LogoutResult>): void;
51
73
  verifyMultiFactorAuthResult(params: VerifyMultiFactorAuthResultParams): void;
52
74
  render(params: RenderSmartButtonParams): void;
53
75
  registerUserInfo(params: RegisterUserInfoParams): void;