@paypay/mini-app-js-sdk 1.15.0 → 1.19.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 (192) hide show
  1. package/dist/composition-api/dom/index.d.ts +4 -4
  2. package/dist/composition-api/dom/useEventListener.d.ts +8 -8
  3. package/dist/composition-api/dom/useHorizontalScrollDirective.d.ts +4 -4
  4. package/dist/composition-api/dom/useOnMountedOrActivated.d.ts +1 -1
  5. package/dist/composition-api/dom/useVerticalScrollDirective.d.ts +4 -4
  6. package/dist/composition-api/useErrorSheet.d.ts +3 -3
  7. package/dist/composition-api/useGetUserAddress.d.ts +2 -2
  8. package/dist/composition-api/useHeightProperties.d.ts +19 -19
  9. package/dist/composition-api/useInpuAddress.d.ts +2 -2
  10. package/dist/composition-api/useMakePayment.d.ts +3 -3
  11. package/dist/composition-api/useOpenApp.d.ts +3 -3
  12. package/dist/composition-api/useOpenMap.d.ts +3 -3
  13. package/dist/composition-api/useRegisterEmail.d.ts +2 -2
  14. package/dist/composition-api/useRenderSmartButton.d.ts +3 -0
  15. package/dist/composition-api/useShowAlert.d.ts +3 -3
  16. package/dist/composition-api/useShowUpdateWarning.d.ts +3 -3
  17. package/dist/composition-api/useTakePhoto.d.ts +3 -3
  18. package/dist/composition-api/useTopup.d.ts +3 -3
  19. package/dist/index.d.ts +3 -3
  20. package/dist/jsbridge-core/index.d.ts +4 -4
  21. package/dist/jsbridge-core/jsbridge.d.ts +62 -62
  22. package/dist/jsbridge-core/lib/browser.d.ts +3 -3
  23. package/dist/jsbridge-core/lib/logger.d.ts +9 -9
  24. package/dist/jsbridge-core/lib/reconstructParams.d.ts +2 -2
  25. package/dist/jsbridge-core/module.d.ts +15 -14
  26. package/dist/jsbridge-core/namespace.d.ts +2 -2
  27. package/dist/jsbridge-core/paypay-jsbridge.d.ts +17 -16
  28. package/dist/mini-app-api.d.ts +51 -48
  29. package/dist/mini-app-js-sdk.browser.js +1 -1
  30. package/dist/mini-app-js-sdk.d.ts +9 -9
  31. package/dist/mini-app-js-sdk.es.js +31001 -1
  32. package/dist/mini-app-js-sdk.min.css +1 -1
  33. package/dist/model/bridge/checkAccessToken.d.ts +3 -3
  34. package/dist/model/bridge/checkPaymentMethod.d.ts +2 -2
  35. package/dist/model/bridge/closeApp.d.ts +2 -2
  36. package/dist/model/bridge/copyToClipboard.d.ts +2 -2
  37. package/dist/model/bridge/debug.d.ts +3 -3
  38. package/dist/model/bridge/getAppDetail.d.ts +17 -17
  39. package/dist/model/bridge/getAuthStatus.d.ts +3 -0
  40. package/dist/model/bridge/getBalance.d.ts +2 -2
  41. package/dist/model/bridge/getConfigure.d.ts +39 -39
  42. package/dist/model/bridge/getDeviceInformation.d.ts +3 -3
  43. package/dist/model/bridge/getKycInformation.d.ts +2 -2
  44. package/dist/model/bridge/getPermissionStatus.d.ts +2 -2
  45. package/dist/model/bridge/getPlatformInformation.d.ts +3 -3
  46. package/dist/model/bridge/getSessionData.d.ts +2 -2
  47. package/dist/model/bridge/getStorageData.d.ts +2 -2
  48. package/dist/model/bridge/getTopBarHeight.d.ts +3 -3
  49. package/dist/model/bridge/getUAID.d.ts +3 -3
  50. package/dist/model/bridge/getUserAddress.d.ts +2 -2
  51. package/dist/model/bridge/getUserLocation.d.ts +2 -2
  52. package/dist/model/bridge/getUserProfile.d.ts +3 -3
  53. package/dist/model/bridge/index.d.ts +43 -41
  54. package/dist/model/bridge/init.d.ts +2 -2
  55. package/dist/model/bridge/inputAddress.d.ts +2 -2
  56. package/dist/model/bridge/logout.d.ts +3 -3
  57. package/dist/model/bridge/makePayment.d.ts +2 -2
  58. package/dist/model/bridge/openApp.d.ts +2 -2
  59. package/dist/model/bridge/openMap.d.ts +2 -2
  60. package/dist/model/bridge/openWebview.d.ts +3 -3
  61. package/dist/model/bridge/registerEmail.d.ts +2 -2
  62. package/dist/model/bridge/registerKyc.d.ts +2 -2
  63. package/dist/model/bridge/removeStorageData.d.ts +2 -2
  64. package/dist/model/bridge/render.d.ts +2 -0
  65. package/dist/model/bridge/renderLoginButton.d.ts +2 -0
  66. package/dist/model/bridge/renderPayButton.d.ts +2 -0
  67. package/dist/model/bridge/request.d.ts +2 -2
  68. package/dist/model/bridge/requestInternal.d.ts +2 -2
  69. package/dist/model/bridge/scanCode.d.ts +3 -3
  70. package/dist/model/bridge/setSessionData.d.ts +2 -2
  71. package/dist/model/bridge/setStorageData.d.ts +2 -2
  72. package/dist/model/bridge/setTitle.d.ts +2 -2
  73. package/dist/model/bridge/share.d.ts +2 -2
  74. package/dist/model/bridge/showAlert.d.ts +2 -2
  75. package/dist/model/bridge/showErrorSheet.d.ts +2 -2
  76. package/dist/model/bridge/showUpdateWarning.d.ts +2 -2
  77. package/dist/model/bridge/startMultiFactorAuth.d.ts +2 -2
  78. package/dist/model/bridge/takePhoto.d.ts +2 -2
  79. package/dist/model/bridge/topup.d.ts +2 -2
  80. package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +3 -3
  81. package/dist/model/makePayment.d.ts +324 -323
  82. package/dist/model/miniAppError.d.ts +57 -55
  83. package/dist/model/miniAppStatus.d.ts +9 -8
  84. package/dist/model/permission.d.ts +21 -18
  85. package/dist/model/uiComponents.d.ts +23 -23
  86. package/dist/package/action-sheet/index.d.ts +90 -78
  87. package/dist/package/banner-header/index.vue.d.ts +56 -48
  88. package/dist/package/button/index.d.ts +69 -57
  89. package/dist/package/charge-amount-list/index.vue.d.ts +54 -47
  90. package/dist/package/charge-amount-more-list/index.vue.d.ts +19 -17
  91. package/dist/package/date-button/index.vue.d.ts +21 -19
  92. package/dist/package/divider/index.d.ts +21 -19
  93. package/dist/package/header/index.d.ts +65 -54
  94. package/dist/package/index.d.ts +16 -16
  95. package/dist/package/input/index.d.ts +169 -141
  96. package/dist/package/input/utils.d.ts +10 -10
  97. package/dist/package/lottie/index.d.ts +61 -53
  98. package/dist/package/overlay/index.d.ts +44 -39
  99. package/dist/package/payment-method/Bank.vue.d.ts +35 -32
  100. package/dist/package/payment-method/CreditCard.vue.d.ts +42 -39
  101. package/dist/package/payment-method/SbidBank.vue.d.ts +21 -19
  102. package/dist/package/payment-method/Wallet.vue.d.ts +31 -29
  103. package/dist/package/payment-method/index.d.ts +15 -13
  104. package/dist/package/payment-method-list/index.vue.d.ts +27 -24
  105. package/dist/package/payment-type/Bank.vue.d.ts +31 -28
  106. package/dist/package/payment-type/{CrediCard.vue.d.ts → CreditCard.vue.d.ts} +32 -30
  107. package/dist/package/payment-type/Sbid.vue.d.ts +17 -15
  108. package/dist/package/payment-type/Wallet.vue.d.ts +17 -15
  109. package/dist/package/payment-type/index.d.ts +15 -13
  110. package/dist/package/select-list/Components.d.ts +65 -57
  111. package/dist/package/select-list/index.d.ts +73 -62
  112. package/dist/package/switch/index.d.ts +22 -17
  113. package/dist/types.d.ts +344 -299
  114. package/dist/utils/api.d.ts +147 -142
  115. package/dist/utils/common.d.ts +2 -2
  116. package/dist/utils/create/bem.d.ts +6 -6
  117. package/dist/utils/create/index.d.ts +5 -5
  118. package/dist/utils/fetch.d.ts +16 -16
  119. package/dist/utils/getImages.d.ts +5 -5
  120. package/dist/utils/getLanguage.d.ts +3 -3
  121. package/dist/utils/helper.d.ts +47 -40
  122. package/dist/utils/ip.d.ts +2 -2
  123. package/dist/utils/miniAppRequest.d.ts +9 -9
  124. package/dist/utils/popstateHandler.d.ts +4 -4
  125. package/dist/utils/secondary-list.d.ts +1 -1
  126. package/dist/utils/storage.d.ts +26 -22
  127. package/dist/views/email-registration/App.vue.d.ts +79 -71
  128. package/dist/views/email-registration/components/EmailButton.vue.d.ts +45 -37
  129. package/dist/views/email-registration/components/icons.d.ts +2 -2
  130. package/dist/views/email-registration/hooks/callback.d.ts +7 -7
  131. package/dist/views/email-registration/hooks/ui.d.ts +29 -29
  132. package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +52 -46
  133. package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +24 -19
  134. package/dist/views/error-sheet/Index.vue.d.ts +52 -43
  135. package/dist/views/get-user-address/App.vue.d.ts +44 -32
  136. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +73 -63
  137. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +23 -18
  138. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +33 -29
  139. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +35 -30
  140. package/dist/views/get-user-address/Sheet/AddSheet/constants.d.ts +4 -4
  141. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +83 -64
  142. package/dist/views/get-user-address/Sheet/App.vue.d.ts +62 -44
  143. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +32 -25
  144. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +25 -10
  145. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +41 -24
  146. package/dist/views/get-user-address/hooks/ui-hooks.d.ts +14 -11
  147. package/dist/views/get-user-address/store/error-handle.d.ts +12 -12
  148. package/dist/views/get-user-address/store/root.d.ts +14 -12
  149. package/dist/views/input-address/App.vue.d.ts +36 -32
  150. package/dist/views/input-address/hook/app.d.ts +13 -13
  151. package/dist/views/input-address/hook/error-handle.d.ts +10 -10
  152. package/dist/views/input-address/hook/root.d.ts +10 -10
  153. package/dist/views/make-payment/App.vue.d.ts +52 -32
  154. package/dist/views/make-payment/Main.vue.d.ts +630 -590
  155. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +25 -0
  156. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +20 -16
  157. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +19 -17
  158. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +16 -14
  159. package/dist/views/make-payment/Sheets/CashBackDetails/FloatingButton.vue.d.ts +24 -21
  160. package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +26 -26
  161. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +53 -50
  162. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +32 -29
  163. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +80 -71
  164. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +49 -44
  165. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +522 -515
  166. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +38 -34
  167. package/dist/views/make-payment/Sheets/Consult.vue.d.ts +23 -21
  168. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +27 -22
  169. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +108 -71
  170. package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +36 -33
  171. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +69 -62
  172. package/dist/views/make-payment/hooks/app-hooks.d.ts +568 -565
  173. package/dist/views/make-payment/hooks/ui-hooks.d.ts +72 -51
  174. package/dist/views/make-payment/store/age-confirm.d.ts +9 -9
  175. package/dist/views/make-payment/store/handle-error.d.ts +36 -36
  176. package/dist/views/make-payment/store/root.d.ts +22 -22
  177. package/dist/views/make-payment/store/util-for-handle-error.d.ts +16 -16
  178. package/dist/views/make-payment/utils/paymentMethod.d.ts +3 -3
  179. package/dist/views/open-app/App.vue.d.ts +28 -23
  180. package/dist/views/open-map/App.vue.d.ts +28 -23
  181. package/dist/views/show-alert/App.vue.d.ts +36 -29
  182. package/dist/views/show-update-warning/App.vue.d.ts +28 -23
  183. package/dist/views/smart-button/App.vue.d.ts +87 -0
  184. package/dist/views/take-photo/App.vue.d.ts +25 -20
  185. package/dist/views/take-photo/helper.d.ts +2 -2
  186. package/dist/views/topup/App.vue.d.ts +102 -95
  187. package/dist/views/topup/BannerInfo.vue.d.ts +23 -19
  188. package/dist/views/topup/CashbackInfo.vue.d.ts +44 -37
  189. package/dist/views/topup/TopupCompletion.vue.d.ts +26 -22
  190. package/package.json +26 -33
  191. package/dist/utils/mock-data/mockData.d.ts +0 -64
  192. package/dist/utils/ns.d.ts +0 -5
@@ -1,142 +1,147 @@
1
- import { MiniAppErrorType } from '../model/miniAppError';
2
- import { UIComponentsError } from '../model/uiComponents';
3
- import { Amount } from '../types';
4
- import { Address } from '../types';
5
- export declare type TopupQuery = {
6
- merchant?: string;
7
- agreeSimilarTransaction?: boolean;
8
- };
9
- export declare type PaymentAmount = {
10
- amount: number;
11
- currency?: string;
12
- };
13
- export declare type TopupBody = {
14
- paymentMethodType: string;
15
- paymentMethodId: string;
16
- merchantTopUpId: string;
17
- amount: PaymentAmount;
18
- requestedAt: number;
19
- prepaidOnly?: boolean;
20
- };
21
- export declare type TopupResponse = {
22
- status: number;
23
- signed: any;
24
- uiComponents?: {
25
- displayErrorResponse: UIComponentsError;
26
- };
27
- unsigned: {
28
- resultInfo: {
29
- code: MiniAppErrorType;
30
- };
31
- data: {
32
- status: string;
33
- amount: Amount;
34
- };
35
- };
36
- };
37
- export declare type walletInfoResponse = {
38
- data: {
39
- payload: {
40
- walletSummary: {
41
- allTotalBalanceInfo: {
42
- balance: Number;
43
- currency: String;
44
- };
45
- totalBalanceInfo: {
46
- balance: Number;
47
- currency: String;
48
- };
49
- transferableBalanceInfo: {
50
- balance: Number;
51
- currency: String;
52
- };
53
- payoutableBalanceInfo: {
54
- balance: Number;
55
- currency: String;
56
- };
57
- };
58
- cashBackUseStatus: String;
59
- };
60
- };
61
- };
62
- export declare function topup(queryParams: TopupQuery, body: TopupBody): Promise<TopupResponse | import("./fetch").ErrorResponse>;
63
- export declare type BalanceParams = {
64
- clientId?: string;
65
- currency?: string;
66
- merchant?: string;
67
- productType?: string;
68
- sourceInfoApp?: string;
69
- };
70
- export declare function getBalance(params?: BalanceParams): Promise<unknown>;
71
- export declare function getCashBackInfo(): Promise<walletInfoResponse | import("./fetch").ErrorResponse>;
72
- export declare type getCashBackResponse = {
73
- signed: any;
74
- unsigned: any;
75
- };
76
- interface CashBackParams {
77
- paymentId: string;
78
- }
79
- export declare function getCashbackDetail(params: CashBackParams): Promise<unknown>;
80
- export declare type ShallowAddress = {
81
- prefecture: string;
82
- cityAndOaza: string;
83
- };
84
- export declare type GetAddressByZipResponse = {
85
- unsigned: {
86
- data: {
87
- payload: {
88
- addressList: ShallowAddress[];
89
- };
90
- };
91
- };
92
- };
93
- export declare type AddressParams = {
94
- zipcode: string;
95
- };
96
- export declare function getAddressByZip(params: AddressParams): Promise<import("./fetch").ErrorResponse | GetAddressByZipResponse>;
97
- export declare type GetAddressListResponse = {
98
- unsigned: {
99
- data: {
100
- addresses: Address[];
101
- };
102
- };
103
- };
104
- export declare function getAddressList(): Promise<import("./fetch").ErrorResponse | GetAddressListResponse>;
105
- export declare function postAddress(body: Address): Promise<import("./fetch").ErrorResponse | GetAddressListResponse>;
106
- export declare function editAddress(body: Address, id: number): Promise<import("./fetch").ErrorResponse | GetAddressListResponse>;
107
- export declare function deleteAddress(id: number): Promise<import("./fetch").ErrorResponse | GetAddressListResponse>;
108
- export declare type VERIFY_STATUS = 'NOT_VERIFIED' | 'VERIFIED';
109
- export declare type ProfileInfo = {
110
- firstName?: string;
111
- lastName?: string;
112
- firstNameKana?: string;
113
- lastNameKana?: string;
114
- email?: string;
115
- photoKey?: string;
116
- hasPhoto: boolean;
117
- photoUrl?: string;
118
- mobile?: string;
119
- dateOfBirth?: string;
120
- displayName?: string;
121
- scopesExcluded: Array<string>;
122
- emailStatus?: VERIFY_STATUS;
123
- mobileStatus?: VERIFY_STATUS;
124
- kycFlag?: boolean;
125
- signUpCompletedAt?: string;
126
- };
127
- export declare type ProfileResponse = {
128
- unsigned: {
129
- data: ProfileInfo;
130
- };
131
- statusCode: number;
132
- };
133
- export declare function getUserProfileData(): Promise<import("./fetch").ErrorResponse | ProfileResponse>;
134
- export declare type RegisterEmailResponse = {
135
- signed: {};
136
- statusCode: number;
137
- unsigned: {};
138
- };
139
- export declare function registerEmail(email: string): Promise<import("./fetch").ErrorResponse | RegisterEmailResponse>;
140
- export declare function resendEmail(): Promise<import("./fetch").ErrorResponse | RegisterEmailResponse>;
141
- export declare function isValidUrl(urlChallenge: string): boolean;
142
- export {};
1
+ import { MiniAppErrorType } from '../model/miniAppError';
2
+ import { UIComponentsError } from '../model/uiComponents';
3
+ import { Amount } from '../types';
4
+ import { Address } from '../types';
5
+ export declare type TopupQuery = {
6
+ merchant?: string;
7
+ agreeSimilarTransaction?: boolean;
8
+ };
9
+ export declare type PaymentAmount = {
10
+ amount: number;
11
+ currency?: string;
12
+ };
13
+ export declare type TopupBody = {
14
+ paymentMethodType: string;
15
+ paymentMethodId: string;
16
+ merchantTopUpId: string;
17
+ amount: PaymentAmount;
18
+ requestedAt: number;
19
+ prepaidOnly?: boolean;
20
+ };
21
+ export declare type TopupResponse = {
22
+ status: number;
23
+ signed: any;
24
+ uiComponents?: {
25
+ displayErrorResponse: UIComponentsError;
26
+ };
27
+ unsigned: {
28
+ resultInfo: {
29
+ code: MiniAppErrorType;
30
+ };
31
+ data: {
32
+ status: string;
33
+ amount: Amount;
34
+ };
35
+ };
36
+ };
37
+ export declare type walletInfoResponse = {
38
+ data: {
39
+ payload: {
40
+ walletSummary: {
41
+ allTotalBalanceInfo: {
42
+ balance: Number;
43
+ currency: String;
44
+ };
45
+ totalBalanceInfo: {
46
+ balance: Number;
47
+ currency: String;
48
+ };
49
+ transferableBalanceInfo: {
50
+ balance: Number;
51
+ currency: String;
52
+ };
53
+ payoutableBalanceInfo: {
54
+ balance: Number;
55
+ currency: String;
56
+ };
57
+ };
58
+ cashBackUseStatus: String;
59
+ };
60
+ };
61
+ };
62
+ export declare function topup(queryParams: TopupQuery, body: TopupBody): Promise<import("./fetch").ErrorResponse | TopupResponse>;
63
+ export declare type BalanceParams = {
64
+ clientId?: string;
65
+ currency?: string;
66
+ merchant?: string;
67
+ productType?: string;
68
+ sourceInfoApp?: string;
69
+ };
70
+ export declare function getBalance(params?: BalanceParams): Promise<unknown>;
71
+ export declare function getCashBackInfo(): Promise<import("./fetch").ErrorResponse | walletInfoResponse>;
72
+ export declare type getCashBackResponse = {
73
+ signed: any;
74
+ unsigned: any;
75
+ };
76
+ interface CashBackParams {
77
+ paymentId: string;
78
+ }
79
+ export declare function getCashbackDetail(params: CashBackParams): Promise<unknown>;
80
+ export declare type ShallowAddress = {
81
+ prefecture: string;
82
+ cityAndOaza: string;
83
+ };
84
+ export declare type GetAddressByZipResponse = {
85
+ unsigned: {
86
+ data: {
87
+ payload: {
88
+ addressList: ShallowAddress[];
89
+ };
90
+ };
91
+ };
92
+ };
93
+ export declare type AddressParams = {
94
+ zipcode: string;
95
+ };
96
+ export declare function getAddressByZip(params: AddressParams): Promise<import("./fetch").ErrorResponse | GetAddressByZipResponse>;
97
+ export declare type GetAddressListResponse = {
98
+ status: number;
99
+ signed: any;
100
+ unsigned: {
101
+ resultInfo: {
102
+ code: MiniAppErrorType;
103
+ };
104
+ data: {
105
+ addresses: Address[];
106
+ };
107
+ };
108
+ };
109
+ export declare function getAddressList(): Promise<GetAddressListResponse | import("./fetch").ErrorResponse>;
110
+ export declare function postAddress(body: Address): Promise<GetAddressListResponse | import("./fetch").ErrorResponse>;
111
+ export declare function editAddress(body: Address, id: number): Promise<GetAddressListResponse | import("./fetch").ErrorResponse>;
112
+ export declare function deleteAddress(id: number): Promise<GetAddressListResponse | import("./fetch").ErrorResponse>;
113
+ export declare type VERIFY_STATUS = 'NOT_VERIFIED' | 'VERIFIED';
114
+ export declare type ProfileInfo = {
115
+ firstName?: string;
116
+ lastName?: string;
117
+ firstNameKana?: string;
118
+ lastNameKana?: string;
119
+ email?: string;
120
+ photoKey?: string;
121
+ hasPhoto: boolean;
122
+ photoUrl?: string;
123
+ mobile?: string;
124
+ dateOfBirth?: string;
125
+ displayName?: string;
126
+ scopesExcluded: Array<string>;
127
+ emailStatus?: VERIFY_STATUS;
128
+ mobileStatus?: VERIFY_STATUS;
129
+ kycFlag?: boolean;
130
+ signUpCompletedAt?: string;
131
+ };
132
+ export declare type ProfileResponse = {
133
+ unsigned: {
134
+ data: ProfileInfo;
135
+ };
136
+ statusCode: number;
137
+ };
138
+ export declare function getUserProfileData(): Promise<import("./fetch").ErrorResponse | ProfileResponse>;
139
+ export declare type RegisterEmailResponse = {
140
+ signed: {};
141
+ statusCode: number;
142
+ unsigned: {};
143
+ };
144
+ export declare function registerEmail(email: string): Promise<import("./fetch").ErrorResponse | RegisterEmailResponse>;
145
+ export declare function resendEmail(): Promise<import("./fetch").ErrorResponse | RegisterEmailResponse>;
146
+ export declare function isValidUrl(urlChallenge: string): boolean;
147
+ export {};
@@ -1,2 +1,2 @@
1
- import { PaymentMethod } from '../model/makePayment';
2
- export declare function filterUnsupportedPaymentMethod(paymentMethods: PaymentMethod[]): PaymentMethod[];
1
+ import { PaymentMethod } from '../model/makePayment';
2
+ export declare function filterUnsupportedPaymentMethod(paymentMethods: PaymentMethod[]): PaymentMethod[];
@@ -1,6 +1,6 @@
1
- export declare type Mod = string | {
2
- [key: string]: any;
3
- };
4
- export declare type Mods = Mod | Mod[];
5
- export declare function createBEM(name: string): (el?: Mods, mods?: Mods) => Mods;
6
- export declare type BEM = ReturnType<typeof createBEM>;
1
+ export declare type Mod = string | {
2
+ [key: string]: any;
3
+ };
4
+ export declare type Mods = Mod | Mod[];
5
+ export declare function createBEM(name: string): (el?: Mods, mods?: Mods) => Mods;
6
+ export declare type BEM = ReturnType<typeof createBEM>;
@@ -1,5 +1,5 @@
1
- export declare function createNamespace(name: string): readonly [(el?: import("./bem").Mods, mods?: import("./bem").Mods) => import("./bem").Mods];
2
- export declare type ObjectLiteralStyle = {
3
- [className: string]: boolean;
4
- };
5
- export declare function useObjectLiteralStyle(params: ObjectLiteralStyle): string;
1
+ export declare function createNamespace(name: string): readonly [(el?: import("./bem").Mods, mods?: import("./bem").Mods) => import("./bem").Mods];
2
+ export declare type ObjectLiteralStyle = {
3
+ [className: string]: boolean;
4
+ };
5
+ export declare function useObjectLiteralStyle(params: ObjectLiteralStyle): string;
@@ -1,16 +1,16 @@
1
- declare const createHeaderMiniAppApi: (urlEndpoint: string, customHeaders: Record<string, string>) => Headers | undefined;
2
- export declare type ErrorResponse = {
3
- error: {
4
- message: string;
5
- };
6
- };
7
- declare function ppFetch<T>(options: {
8
- method: string;
9
- url: string;
10
- params?: any;
11
- data?: any;
12
- headers?: Record<string, string>;
13
- suppressRefresh?: boolean;
14
- timeout?: number;
15
- }): Promise<T | ErrorResponse>;
16
- export { createHeaderMiniAppApi, ppFetch };
1
+ declare const createHeaderMiniAppApi: (urlEndpoint: string, customHeaders: Record<string, string>) => Headers | undefined;
2
+ export declare type ErrorResponse = {
3
+ error: {
4
+ message: string;
5
+ };
6
+ };
7
+ declare function ppFetch<T>(options: {
8
+ method: string;
9
+ url: string;
10
+ params?: any;
11
+ data?: any;
12
+ headers?: Record<string, string>;
13
+ suppressRefresh?: boolean;
14
+ timeout?: number;
15
+ }): Promise<T | ErrorResponse>;
16
+ export { createHeaderMiniAppApi, ppFetch };
@@ -1,5 +1,5 @@
1
- export declare function images(): any;
2
- export declare const IMAGE_KEY = "images";
3
- export interface IMG_TYPE {
4
- [key: string]: string;
5
- }
1
+ export declare function images(): any;
2
+ export declare const IMAGE_KEY = "images";
3
+ export interface IMG_TYPE {
4
+ [key: string]: string;
5
+ }
@@ -1,3 +1,3 @@
1
- export declare function language(): any;
2
- export declare function getPayPayLanguage(): string;
3
- export declare const LANGUAGE_KEY = "lg";
1
+ export declare function language(): any;
2
+ export declare function getPayPayLanguage(): string;
3
+ export declare const LANGUAGE_KEY = "lg";
@@ -1,40 +1,47 @@
1
- import { MiniAppErrorType } from '../model/miniAppError';
2
- export declare function isDef<T>(val: T): val is NonNullable<T>;
3
- export declare function isFunction(val: unknown): val is Function;
4
- export declare function isNumeric(val: string | number): val is string;
5
- export declare function formatNumber(value: string, options?: {
6
- allowDot?: boolean;
7
- allowMinus?: boolean;
8
- }): string;
9
- export declare const numberWithCommas: (x?: number) => string;
10
- export declare function formatCurrency(val: number, n: number, x?: number): string;
11
- export declare function trigger(target: Element, type: string): void;
12
- export declare function isObject(val: unknown): val is Record<any, any>;
13
- export declare function isPromise<T = any>(val: unknown): val is Promise<T>;
14
- export declare function checkDuplicateTopup(amount: number): boolean;
15
- export declare const debounce: (fn: Function) => (...params: unknown[]) => void;
16
- interface PersistenceLastPayment {
17
- price: number;
18
- }
19
- export declare function savePayment(lastPayment: PersistenceLastPayment): boolean;
20
- interface PersistenceLastTopup {
21
- amount: number;
22
- }
23
- export declare function saveTopup(lastTopup: PersistenceLastTopup): boolean;
24
- export declare function getLastPayment(): any;
25
- export declare function existDuplicatePayment(price: number): boolean;
26
- export declare enum MiniAppRuntime {
27
- android = "ANDROID",
28
- ios = "IOS",
29
- web = "WEB"
30
- }
31
- export declare function getRuntime(): MiniAppRuntime;
32
- export declare function isPayPayMiniApp(): boolean;
33
- export declare function getAppVersion(): string;
34
- export declare function semVerCompare(a: string, b: string): boolean;
35
- export declare function delay(time?: number): Promise<boolean>;
36
- export declare const createErrorCode: (errorCode: MiniAppErrorType, jws?: string) => {
37
- errorCode: MiniAppErrorType;
38
- jws: string;
39
- };
40
- export {};
1
+ import { MiniAppErrorType } from '../model/miniAppError';
2
+ export declare function isDef<T>(val: T): val is NonNullable<T>;
3
+ export declare function isFunction(val: unknown): val is Function;
4
+ export declare function isNumeric(val: string | number): val is string;
5
+ export declare function formatNumber(value: string, options?: {
6
+ allowDot?: boolean;
7
+ allowMinus?: boolean;
8
+ }): string;
9
+ export declare const numberWithCommas: (x?: number) => string;
10
+ export declare function formatCurrency(val: number, n: number, x?: number): string;
11
+ export declare function trigger(target: Element, type: string): void;
12
+ export declare function isObject(val: unknown): val is Record<any, any>;
13
+ export declare function isPromise<T = any>(val: unknown): val is Promise<T>;
14
+ export declare function checkDuplicateTopup(amount: number): boolean;
15
+ export declare const debounce: (fn: Function) => (...params: unknown[]) => void;
16
+ interface PersistenceLastPayment {
17
+ price: number;
18
+ }
19
+ export declare function savePayment(lastPayment: PersistenceLastPayment): boolean;
20
+ interface PersistenceLastAddress {
21
+ addressId: number;
22
+ }
23
+ export declare function saveAddress(lastAddress: PersistenceLastAddress): boolean;
24
+ interface PersistenceLastTopup {
25
+ amount: number;
26
+ }
27
+ export declare function saveTopup(lastTopup: PersistenceLastTopup): boolean;
28
+ export declare function getLastPayment(): any;
29
+ export declare function getLastAddress(): any;
30
+ export declare function existDuplicatePayment(price: number): boolean;
31
+ export declare enum MiniAppRuntime {
32
+ android = "ANDROID",
33
+ ios = "IOS",
34
+ web = "WEB"
35
+ }
36
+ export declare function getRuntime(): MiniAppRuntime;
37
+ export declare function isPayPayMiniApp(): boolean;
38
+ export declare function getAppVersion(): string;
39
+ export declare function semVerCompare(a: string, b: string): boolean;
40
+ export declare function delay(time?: number): Promise<boolean>;
41
+ export declare const createErrorCode: (errorCode: MiniAppErrorType, jws?: string) => {
42
+ errorCode: MiniAppErrorType;
43
+ jws: string;
44
+ };
45
+ export declare const getSelectedAddressId: (addressList: any) => any;
46
+ export declare function updateLocalisedString(data: string, target: string, value: string): string;
47
+ export {};
@@ -1,2 +1,2 @@
1
- export declare function isLocalIP(str: string): boolean;
2
- export declare function isIP(str: string): boolean;
1
+ export declare function isLocalIP(str: string): boolean;
2
+ export declare function isIP(str: string): boolean;
@@ -1,9 +1,9 @@
1
- export declare const errorCodes: Map<any, any>;
2
- declare type MiniAppRequestParams = {
3
- url: string;
4
- headers: Headers;
5
- method: string;
6
- params: object;
7
- };
8
- export declare const getRequest: (params: MiniAppRequestParams) => Promise<Response>;
9
- export {};
1
+ export declare const errorCodes: Map<any, any>;
2
+ declare type MiniAppRequestParams = {
3
+ url: string;
4
+ headers: Headers;
5
+ method: string;
6
+ params: object;
7
+ };
8
+ export declare const getRequest: (params: MiniAppRequestParams) => Promise<Response>;
9
+ export {};
@@ -1,4 +1,4 @@
1
- export declare const popStateHandler: (callback: Function, inputParams?: Record<string, any>) => {
2
- mounted(): void;
3
- unmounted(): void;
4
- };
1
+ export declare const popStateHandler: (callback: Function, inputParams?: Record<string, any>) => {
2
+ mounted(): void;
3
+ unmounted(): void;
4
+ };
@@ -1 +1 @@
1
- export declare const secondaryList: string[];
1
+ export declare const secondaryList: string[];
@@ -1,22 +1,26 @@
1
- export declare function parseDomain(str: string): string;
2
- export declare function getDomain(appDetail?: string): string;
3
- export declare function getAccessToken(): string;
4
- export declare function removeCookie(key: string): void;
5
- export declare function saveAccessToken(token: string): void;
6
- export declare function getRefreshToken(): string;
7
- export declare function saveRefreshToken(token: string): void;
8
- export declare function saveEnv(env: string): void;
9
- export declare function getEnv(): string;
10
- export declare function getClientUUID(): string;
11
- export declare function getDeviceUUID(): string;
12
- export declare function saveLastPayment(payment: string): void;
13
- export declare function getLastPayment(): string;
14
- export declare function saveLastTopup(topup: string): void;
15
- export declare function getLastTopup(): string;
16
- export declare function saveAppDetail(appDetail: string): void;
17
- export declare function getAppDetail(): string;
18
- export declare function removeAppDetail(): void;
19
- export declare function saveAppConfig(appConfig: string): void;
20
- export declare function getAppConfig(): string;
21
- export declare function getClientId(): string;
22
- export declare function saveClientId(id: string): void;
1
+ export declare function parseDomain(str: string): string;
2
+ export declare function getDomain(appDetail?: string): string;
3
+ export declare function getAccessToken(): string;
4
+ export declare function removeCookie(key: string): void;
5
+ export declare function saveAccessToken(token: string): void;
6
+ export declare function getRefreshToken(): string;
7
+ export declare function saveRefreshToken(token: string): void;
8
+ export declare function saveEnv(env: string): void;
9
+ export declare function getEnv(): string;
10
+ export declare function getClientUUID(): string;
11
+ export declare function getDeviceUUID(): string;
12
+ export declare function saveLastPayment(payment: string): void;
13
+ export declare function saveLastAddress(addressId: string): void;
14
+ export declare function getLastAddress(): string;
15
+ export declare function getLastPayment(): string;
16
+ export declare function saveLastTopup(topup: string): void;
17
+ export declare function getLastTopup(): string;
18
+ export declare function saveAppDetail(appDetail: string): void;
19
+ export declare function getAppDetail(): string;
20
+ export declare function removeAppDetail(): void;
21
+ export declare function saveAppConfig(appConfig: string): void;
22
+ export declare function getAppConfig(): string;
23
+ export declare function getClientId(): string;
24
+ export declare function saveClientId(id: string): void;
25
+ export declare function getUserInfo(): string;
26
+ export declare function saveUserInfo(userData: string): void;