@paypay/mini-app-js-sdk 1.33.0 → 1.36.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 (107) hide show
  1. package/dist/composition-api/useRegisterEmail.d.ts +1 -1
  2. package/dist/mini-app-api.d.ts +3 -1
  3. package/dist/mini-app-js-sdk.browser.js +1 -1
  4. package/dist/mini-app-js-sdk.es.js +4753 -1989
  5. package/dist/mini-app-js-sdk.min.css +1 -1
  6. package/dist/model/OPAErrorCodes.d.ts +4 -0
  7. package/dist/model/bridge/getBankInfo.d.ts +3 -0
  8. package/dist/model/bridge/index.d.ts +2 -0
  9. package/dist/model/bridge/registerEmail.d.ts +1 -1
  10. package/dist/model/bridge/registerUserInfo.d.ts +2 -0
  11. package/dist/model/makePayment.d.ts +1 -1
  12. package/dist/model/miniAppError.d.ts +3 -1
  13. package/dist/model/permission.d.ts +1 -0
  14. package/dist/package/action-sheet/index.d.ts +2 -1
  15. package/dist/package/button/LoadingIndicator.vue.d.ts +4 -0
  16. package/dist/package/index.d.ts +1 -0
  17. package/dist/package/payment-method/PayLaterCC.vue.d.ts +54 -0
  18. package/dist/package/payment-method/SbidBank.vue.d.ts +54 -0
  19. package/dist/package/payment-method/Wallet.vue.d.ts +54 -0
  20. package/dist/package/payment-type/PayLaterCC.vue.d.ts +54 -0
  21. package/dist/package/payment-type/Sbid.vue.d.ts +54 -0
  22. package/dist/package/payment-type/Wallet.vue.d.ts +54 -0
  23. package/dist/package/skeleton-loader/SkeletonLoader.vue.d.ts +16 -0
  24. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +54 -0
  25. package/dist/types.d.ts +5 -0
  26. package/dist/utils/api.d.ts +26 -7
  27. package/dist/utils/getImages.d.ts +6 -0
  28. package/dist/utils/getLanguage.d.ts +48 -0
  29. package/dist/views/email-registration/App.vue.d.ts +23 -282
  30. package/dist/views/email-registration/hooks/callback.d.ts +4 -2
  31. package/dist/views/email-registration/hooks/const.d.ts +1 -0
  32. package/dist/views/email-registration/hooks/ui.d.ts +7 -13
  33. package/dist/views/email-registration/parts/AuthMailNotFoundSheet.vue.d.ts +39 -0
  34. package/dist/views/email-registration/parts/RegisterEmail.vue.d.ts +70 -0
  35. package/dist/views/email-registration/parts/SentEmailAuthDoneSheet.vue.d.ts +23 -0
  36. package/dist/views/email-registration/parts/SentEmailSheet.vue.d.ts +51 -0
  37. package/dist/views/error-sheet/Index.vue.d.ts +79 -8
  38. package/dist/views/get-bank-info/GetBankInfoWrapper.vue.d.ts +40 -0
  39. package/dist/views/get-bank-info/components/GetBankInfoPopup.vue.d.ts +327 -0
  40. package/dist/views/get-bank-info/components/PayoutMethodList.vue.d.ts +74 -0
  41. package/dist/views/get-bank-info/components/PayoutMethodView.vue.d.ts +21 -0
  42. package/dist/views/get-bank-info/types.d.ts +29 -0
  43. package/dist/views/get-user-address/App.vue.d.ts +1 -0
  44. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +48 -0
  45. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +54 -0
  46. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +48 -0
  47. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +48 -0
  48. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +51 -3
  49. package/dist/views/get-user-address/Sheet/App.vue.d.ts +2 -2
  50. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +48 -0
  51. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +48 -0
  52. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +48 -0
  53. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +48 -0
  54. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +48 -0
  55. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +48 -0
  56. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +48 -0
  57. package/dist/views/get-user-address/store/error-handle.d.ts +2 -3
  58. package/dist/views/input-address/App.vue.d.ts +2 -2
  59. package/dist/views/input-address/hook/app.d.ts +4 -4
  60. package/dist/views/input-address/hook/error-handle.d.ts +1 -10
  61. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +48 -0
  62. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +48 -0
  63. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +54 -0
  64. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +54 -0
  65. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +54 -0
  66. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +48 -0
  67. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +54 -0
  68. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +54 -0
  69. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +48 -0
  70. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +48 -0
  71. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +54 -0
  72. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +48 -0
  73. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +54 -0
  74. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +54 -0
  75. package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +6 -0
  76. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +54 -0
  77. package/dist/views/open-app/App.vue.d.ts +54 -0
  78. package/dist/views/open-map/App.vue.d.ts +48 -0
  79. package/dist/views/register-user-info/RegisterUserInfoCancelConfirmationSheet.vue.d.ts +773 -0
  80. package/dist/views/register-user-info/RegisterUserInfoCategoryView.vue.d.ts +830 -0
  81. package/dist/views/register-user-info/RegisterUserInfoDataPointGroup.vue.d.ts +18 -0
  82. package/dist/views/register-user-info/RegisterUserInfoErrorSheet.vue.d.ts +7 -0
  83. package/dist/views/register-user-info/RegisterUserInfoFooterView.vue.d.ts +773 -0
  84. package/dist/views/register-user-info/RegisterUserInfoFormView.vue.d.ts +11 -0
  85. package/dist/views/register-user-info/RegisterUserInfoKycInfoSheet.vue.d.ts +778 -0
  86. package/dist/views/register-user-info/RegisterUserInfoMailInfoSheet.vue.d.ts +778 -0
  87. package/dist/views/register-user-info/RegisterUserInfoProgressView.vue.d.ts +6 -0
  88. package/dist/views/register-user-info/RegisterUserInfoRootView.vue.d.ts +501 -0
  89. package/dist/views/register-user-info/RegisterUserInfoUneditableDataView.vue.d.ts +15 -0
  90. package/dist/views/register-user-info/api.d.ts +23 -0
  91. package/dist/views/register-user-info/input/RegisterUserInfoEmailInput.vue.d.ts +349 -0
  92. package/dist/views/register-user-info/input/RegisterUserInfoSelectionButtonInput.vue.d.ts +17 -0
  93. package/dist/views/register-user-info/input/RegisterUserInfoSimpleInput.vue.d.ts +76 -0
  94. package/dist/views/register-user-info/store.d.ts +490 -0
  95. package/dist/views/register-user-info/types.d.ts +32 -0
  96. package/dist/views/register-user-info/utils.d.ts +4 -0
  97. package/dist/views/register-user-info/validators.d.ts +10 -0
  98. package/dist/views/show-update-warning/App.vue.d.ts +60 -2
  99. package/dist/views/take-photo/App.vue.d.ts +48 -0
  100. package/dist/views/topup/App.vue.d.ts +54 -0
  101. package/dist/views/topup/CashbackInfo.vue.d.ts +48 -0
  102. package/dist/views/topup/TopupCompletion.vue.d.ts +54 -0
  103. package/package.json +2 -1
  104. package/dist/views/email-registration/components/EmailButton.vue.d.ts +0 -45
  105. package/dist/views/email-registration/components/icons.d.ts +0 -2
  106. package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +0 -52
  107. package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +0 -24
@@ -0,0 +1,6 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ showsProgressView: import("vue").ComputedRef<boolean>;
3
+ dotStyles: import("vue").ComputedRef<string[]>;
4
+ barStyles: import("vue").ComputedRef<string[]>;
5
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
6
+ export default _default;
@@ -0,0 +1,501 @@
1
+ import { PropType } from 'vue';
2
+ import { RegisterUserInfoParams } from '../../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ params: {
5
+ type: PropType<RegisterUserInfoParams>;
6
+ required: true;
7
+ };
8
+ }, {
9
+ store: import("pinia").Store<"registerUserInfo", {
10
+ mode: "default" | "edit";
11
+ formData: import("./types").UserProfileFormData | null;
12
+ currentCategoryIndex: number;
13
+ inputValues: {
14
+ [dataPointName: string]: string;
15
+ };
16
+ savedValues: {
17
+ [dataPointName: string]: string;
18
+ };
19
+ validationResults: {
20
+ [dataPointName: string]: import("./validators").UserProfileFormValidationResult;
21
+ };
22
+ email: string | null;
23
+ emailStatus: import("../../utils/api").VERIFY_STATUS | null;
24
+ ui: {
25
+ isSavingData: boolean;
26
+ isCancelConfirmSheetVisible: boolean;
27
+ isKycInfoSheetVisible: boolean;
28
+ isMailInfoSheetVisible: boolean;
29
+ errorSheet?: {
30
+ title: string;
31
+ text: string;
32
+ isVisible: boolean;
33
+ } | undefined;
34
+ };
35
+ result: ({
36
+ type: "success";
37
+ } | {
38
+ type: "fail";
39
+ errorCode: import("../../model/miniAppError").MiniAppErrorType;
40
+ }) | null;
41
+ }, {
42
+ uiIsVisible(state: {
43
+ mode: "default" | "edit";
44
+ formData: {
45
+ isKycRequired: boolean;
46
+ categories: {
47
+ categoryName: string;
48
+ categoryTitle: string;
49
+ categorySubTitle: string;
50
+ isAllDataPointFilled: boolean;
51
+ dataPointGroup: {
52
+ groupType: string;
53
+ groupName: string;
54
+ dataPoints: {
55
+ name: string;
56
+ type: "NAME" | "EMAIL" | "MOBILE_NUMBER" | "NUMBER" | "TEXT" | "DATE" | "SINGLE_SELECTION_LIST" | "SINGLE_SELECTION_BUTTON" | "MULTIPLE_SELECTION_BUTTON";
57
+ isEditable: boolean;
58
+ isOptional: boolean;
59
+ isKycData: boolean;
60
+ placeholder: string;
61
+ validationType: "NUMBER" | "TEXT" | "KATA_KANA" | "ROMAN" | "MOBILE";
62
+ value?: string | undefined;
63
+ selectionItems?: string[] | undefined;
64
+ }[];
65
+ }[];
66
+ }[];
67
+ } | null;
68
+ currentCategoryIndex: number;
69
+ inputValues: {
70
+ [x: string]: string;
71
+ };
72
+ savedValues: {
73
+ [x: string]: string;
74
+ };
75
+ validationResults: {
76
+ [x: string]: {
77
+ ok: true;
78
+ convertTo?: string | undefined;
79
+ } | {
80
+ ok: false;
81
+ reason: string;
82
+ };
83
+ };
84
+ email: string | null;
85
+ emailStatus: import("../../utils/api").VERIFY_STATUS | null;
86
+ ui: {
87
+ isSavingData: boolean;
88
+ isCancelConfirmSheetVisible: boolean;
89
+ isKycInfoSheetVisible: boolean;
90
+ isMailInfoSheetVisible: boolean;
91
+ errorSheet?: {
92
+ title: string;
93
+ text: string;
94
+ isVisible: boolean;
95
+ } | undefined;
96
+ };
97
+ result: {
98
+ type: "success";
99
+ } | {
100
+ type: "fail";
101
+ errorCode: import("../../model/miniAppError").MiniAppErrorType;
102
+ } | null;
103
+ } & {}): boolean;
104
+ categoryAtIndex(state: {
105
+ mode: "default" | "edit";
106
+ formData: {
107
+ isKycRequired: boolean;
108
+ categories: {
109
+ categoryName: string;
110
+ categoryTitle: string;
111
+ categorySubTitle: string;
112
+ isAllDataPointFilled: boolean;
113
+ dataPointGroup: {
114
+ groupType: string;
115
+ groupName: string;
116
+ dataPoints: {
117
+ name: string;
118
+ type: "NAME" | "EMAIL" | "MOBILE_NUMBER" | "NUMBER" | "TEXT" | "DATE" | "SINGLE_SELECTION_LIST" | "SINGLE_SELECTION_BUTTON" | "MULTIPLE_SELECTION_BUTTON";
119
+ isEditable: boolean;
120
+ isOptional: boolean;
121
+ isKycData: boolean;
122
+ placeholder: string;
123
+ validationType: "NUMBER" | "TEXT" | "KATA_KANA" | "ROMAN" | "MOBILE";
124
+ value?: string | undefined;
125
+ selectionItems?: string[] | undefined;
126
+ }[];
127
+ }[];
128
+ }[];
129
+ } | null;
130
+ currentCategoryIndex: number;
131
+ inputValues: {
132
+ [x: string]: string;
133
+ };
134
+ savedValues: {
135
+ [x: string]: string;
136
+ };
137
+ validationResults: {
138
+ [x: string]: {
139
+ ok: true;
140
+ convertTo?: string | undefined;
141
+ } | {
142
+ ok: false;
143
+ reason: string;
144
+ };
145
+ };
146
+ email: string | null;
147
+ emailStatus: import("../../utils/api").VERIFY_STATUS | null;
148
+ ui: {
149
+ isSavingData: boolean;
150
+ isCancelConfirmSheetVisible: boolean;
151
+ isKycInfoSheetVisible: boolean;
152
+ isMailInfoSheetVisible: boolean;
153
+ errorSheet?: {
154
+ title: string;
155
+ text: string;
156
+ isVisible: boolean;
157
+ } | undefined;
158
+ };
159
+ result: {
160
+ type: "success";
161
+ } | {
162
+ type: "fail";
163
+ errorCode: import("../../model/miniAppError").MiniAppErrorType;
164
+ } | null;
165
+ } & {}): (index: number) => import("./types").UserProfileFormCategory;
166
+ numberOfCategories(state: {
167
+ mode: "default" | "edit";
168
+ formData: {
169
+ isKycRequired: boolean;
170
+ categories: {
171
+ categoryName: string;
172
+ categoryTitle: string;
173
+ categorySubTitle: string;
174
+ isAllDataPointFilled: boolean;
175
+ dataPointGroup: {
176
+ groupType: string;
177
+ groupName: string;
178
+ dataPoints: {
179
+ name: string;
180
+ type: "NAME" | "EMAIL" | "MOBILE_NUMBER" | "NUMBER" | "TEXT" | "DATE" | "SINGLE_SELECTION_LIST" | "SINGLE_SELECTION_BUTTON" | "MULTIPLE_SELECTION_BUTTON";
181
+ isEditable: boolean;
182
+ isOptional: boolean;
183
+ isKycData: boolean;
184
+ placeholder: string;
185
+ validationType: "NUMBER" | "TEXT" | "KATA_KANA" | "ROMAN" | "MOBILE";
186
+ value?: string | undefined;
187
+ selectionItems?: string[] | undefined;
188
+ }[];
189
+ }[];
190
+ }[];
191
+ } | null;
192
+ currentCategoryIndex: number;
193
+ inputValues: {
194
+ [x: string]: string;
195
+ };
196
+ savedValues: {
197
+ [x: string]: string;
198
+ };
199
+ validationResults: {
200
+ [x: string]: {
201
+ ok: true;
202
+ convertTo?: string | undefined;
203
+ } | {
204
+ ok: false;
205
+ reason: string;
206
+ };
207
+ };
208
+ email: string | null;
209
+ emailStatus: import("../../utils/api").VERIFY_STATUS | null;
210
+ ui: {
211
+ isSavingData: boolean;
212
+ isCancelConfirmSheetVisible: boolean;
213
+ isKycInfoSheetVisible: boolean;
214
+ isMailInfoSheetVisible: boolean;
215
+ errorSheet?: {
216
+ title: string;
217
+ text: string;
218
+ isVisible: boolean;
219
+ } | undefined;
220
+ };
221
+ result: {
222
+ type: "success";
223
+ } | {
224
+ type: "fail";
225
+ errorCode: import("../../model/miniAppError").MiniAppErrorType;
226
+ } | null;
227
+ } & {}): number;
228
+ currentValue(state: {
229
+ mode: "default" | "edit";
230
+ formData: {
231
+ isKycRequired: boolean;
232
+ categories: {
233
+ categoryName: string;
234
+ categoryTitle: string;
235
+ categorySubTitle: string;
236
+ isAllDataPointFilled: boolean;
237
+ dataPointGroup: {
238
+ groupType: string;
239
+ groupName: string;
240
+ dataPoints: {
241
+ name: string;
242
+ type: "NAME" | "EMAIL" | "MOBILE_NUMBER" | "NUMBER" | "TEXT" | "DATE" | "SINGLE_SELECTION_LIST" | "SINGLE_SELECTION_BUTTON" | "MULTIPLE_SELECTION_BUTTON";
243
+ isEditable: boolean;
244
+ isOptional: boolean;
245
+ isKycData: boolean;
246
+ placeholder: string;
247
+ validationType: "NUMBER" | "TEXT" | "KATA_KANA" | "ROMAN" | "MOBILE";
248
+ value?: string | undefined;
249
+ selectionItems?: string[] | undefined;
250
+ }[];
251
+ }[];
252
+ }[];
253
+ } | null;
254
+ currentCategoryIndex: number;
255
+ inputValues: {
256
+ [x: string]: string;
257
+ };
258
+ savedValues: {
259
+ [x: string]: string;
260
+ };
261
+ validationResults: {
262
+ [x: string]: {
263
+ ok: true;
264
+ convertTo?: string | undefined;
265
+ } | {
266
+ ok: false;
267
+ reason: string;
268
+ };
269
+ };
270
+ email: string | null;
271
+ emailStatus: import("../../utils/api").VERIFY_STATUS | null;
272
+ ui: {
273
+ isSavingData: boolean;
274
+ isCancelConfirmSheetVisible: boolean;
275
+ isKycInfoSheetVisible: boolean;
276
+ isMailInfoSheetVisible: boolean;
277
+ errorSheet?: {
278
+ title: string;
279
+ text: string;
280
+ isVisible: boolean;
281
+ } | undefined;
282
+ };
283
+ result: {
284
+ type: "success";
285
+ } | {
286
+ type: "fail";
287
+ errorCode: import("../../model/miniAppError").MiniAppErrorType;
288
+ } | null;
289
+ } & {}): (dataPoint: import("./types").UserProfileFormDataPoint) => string;
290
+ hasValidationError(state: {
291
+ mode: "default" | "edit";
292
+ formData: {
293
+ isKycRequired: boolean;
294
+ categories: {
295
+ categoryName: string;
296
+ categoryTitle: string;
297
+ categorySubTitle: string;
298
+ isAllDataPointFilled: boolean;
299
+ dataPointGroup: {
300
+ groupType: string;
301
+ groupName: string;
302
+ dataPoints: {
303
+ name: string;
304
+ type: "NAME" | "EMAIL" | "MOBILE_NUMBER" | "NUMBER" | "TEXT" | "DATE" | "SINGLE_SELECTION_LIST" | "SINGLE_SELECTION_BUTTON" | "MULTIPLE_SELECTION_BUTTON";
305
+ isEditable: boolean;
306
+ isOptional: boolean;
307
+ isKycData: boolean;
308
+ placeholder: string;
309
+ validationType: "NUMBER" | "TEXT" | "KATA_KANA" | "ROMAN" | "MOBILE";
310
+ value?: string | undefined;
311
+ selectionItems?: string[] | undefined;
312
+ }[];
313
+ }[];
314
+ }[];
315
+ } | null;
316
+ currentCategoryIndex: number;
317
+ inputValues: {
318
+ [x: string]: string;
319
+ };
320
+ savedValues: {
321
+ [x: string]: string;
322
+ };
323
+ validationResults: {
324
+ [x: string]: {
325
+ ok: true;
326
+ convertTo?: string | undefined;
327
+ } | {
328
+ ok: false;
329
+ reason: string;
330
+ };
331
+ };
332
+ email: string | null;
333
+ emailStatus: import("../../utils/api").VERIFY_STATUS | null;
334
+ ui: {
335
+ isSavingData: boolean;
336
+ isCancelConfirmSheetVisible: boolean;
337
+ isKycInfoSheetVisible: boolean;
338
+ isMailInfoSheetVisible: boolean;
339
+ errorSheet?: {
340
+ title: string;
341
+ text: string;
342
+ isVisible: boolean;
343
+ } | undefined;
344
+ };
345
+ result: {
346
+ type: "success";
347
+ } | {
348
+ type: "fail";
349
+ errorCode: import("../../model/miniAppError").MiniAppErrorType;
350
+ } | null;
351
+ } & {}): (dataPoint: import("./types").UserProfileFormDataPoint) => boolean;
352
+ validationErrorForGroup(state: {
353
+ mode: "default" | "edit";
354
+ formData: {
355
+ isKycRequired: boolean;
356
+ categories: {
357
+ categoryName: string;
358
+ categoryTitle: string;
359
+ categorySubTitle: string;
360
+ isAllDataPointFilled: boolean;
361
+ dataPointGroup: {
362
+ groupType: string;
363
+ groupName: string;
364
+ dataPoints: {
365
+ name: string;
366
+ type: "NAME" | "EMAIL" | "MOBILE_NUMBER" | "NUMBER" | "TEXT" | "DATE" | "SINGLE_SELECTION_LIST" | "SINGLE_SELECTION_BUTTON" | "MULTIPLE_SELECTION_BUTTON";
367
+ isEditable: boolean;
368
+ isOptional: boolean;
369
+ isKycData: boolean;
370
+ placeholder: string;
371
+ validationType: "NUMBER" | "TEXT" | "KATA_KANA" | "ROMAN" | "MOBILE";
372
+ value?: string | undefined;
373
+ selectionItems?: string[] | undefined;
374
+ }[];
375
+ }[];
376
+ }[];
377
+ } | null;
378
+ currentCategoryIndex: number;
379
+ inputValues: {
380
+ [x: string]: string;
381
+ };
382
+ savedValues: {
383
+ [x: string]: string;
384
+ };
385
+ validationResults: {
386
+ [x: string]: {
387
+ ok: true;
388
+ convertTo?: string | undefined;
389
+ } | {
390
+ ok: false;
391
+ reason: string;
392
+ };
393
+ };
394
+ email: string | null;
395
+ emailStatus: import("../../utils/api").VERIFY_STATUS | null;
396
+ ui: {
397
+ isSavingData: boolean;
398
+ isCancelConfirmSheetVisible: boolean;
399
+ isKycInfoSheetVisible: boolean;
400
+ isMailInfoSheetVisible: boolean;
401
+ errorSheet?: {
402
+ title: string;
403
+ text: string;
404
+ isVisible: boolean;
405
+ } | undefined;
406
+ };
407
+ result: {
408
+ type: "success";
409
+ } | {
410
+ type: "fail";
411
+ errorCode: import("../../model/miniAppError").MiniAppErrorType;
412
+ } | null;
413
+ } & {}): (group: import("./types").UserProfileFormDataPointGroup) => string | null;
414
+ shouldDisableSaveButton(state: {
415
+ mode: "default" | "edit";
416
+ formData: {
417
+ isKycRequired: boolean;
418
+ categories: {
419
+ categoryName: string;
420
+ categoryTitle: string;
421
+ categorySubTitle: string;
422
+ isAllDataPointFilled: boolean;
423
+ dataPointGroup: {
424
+ groupType: string;
425
+ groupName: string;
426
+ dataPoints: {
427
+ name: string;
428
+ type: "NAME" | "EMAIL" | "MOBILE_NUMBER" | "NUMBER" | "TEXT" | "DATE" | "SINGLE_SELECTION_LIST" | "SINGLE_SELECTION_BUTTON" | "MULTIPLE_SELECTION_BUTTON";
429
+ isEditable: boolean;
430
+ isOptional: boolean;
431
+ isKycData: boolean;
432
+ placeholder: string;
433
+ validationType: "NUMBER" | "TEXT" | "KATA_KANA" | "ROMAN" | "MOBILE";
434
+ value?: string | undefined;
435
+ selectionItems?: string[] | undefined;
436
+ }[];
437
+ }[];
438
+ }[];
439
+ } | null;
440
+ currentCategoryIndex: number;
441
+ inputValues: {
442
+ [x: string]: string;
443
+ };
444
+ savedValues: {
445
+ [x: string]: string;
446
+ };
447
+ validationResults: {
448
+ [x: string]: {
449
+ ok: true;
450
+ convertTo?: string | undefined;
451
+ } | {
452
+ ok: false;
453
+ reason: string;
454
+ };
455
+ };
456
+ email: string | null;
457
+ emailStatus: import("../../utils/api").VERIFY_STATUS | null;
458
+ ui: {
459
+ isSavingData: boolean;
460
+ isCancelConfirmSheetVisible: boolean;
461
+ isKycInfoSheetVisible: boolean;
462
+ isMailInfoSheetVisible: boolean;
463
+ errorSheet?: {
464
+ title: string;
465
+ text: string;
466
+ isVisible: boolean;
467
+ } | undefined;
468
+ };
469
+ result: {
470
+ type: "success";
471
+ } | {
472
+ type: "fail";
473
+ errorCode: import("../../model/miniAppError").MiniAppErrorType;
474
+ } | null;
475
+ } & {}): boolean;
476
+ }, {
477
+ initialize(params: RegisterUserInfoParams): void;
478
+ saveCategory(): void;
479
+ getEmailStatus(): void;
480
+ onInputValueChange(dataPoint: import("./types").UserProfileFormDataPoint, value: string): void;
481
+ onBackButton(): void;
482
+ onCancelFormButton(): void;
483
+ closeCancelConfirmationSheet(): void;
484
+ confirmCancel(): void;
485
+ showKycInfoSheet(): void;
486
+ closeKycInfoSheet(): void;
487
+ showMailInfoSheet(): void;
488
+ closeMailInfoSheet(): void;
489
+ closeErrorSheet(): void;
490
+ }>;
491
+ complete: () => void;
492
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
493
+ complete: () => true;
494
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
495
+ params?: unknown;
496
+ } & {
497
+ params: RegisterUserInfoParams;
498
+ } & {}> & {
499
+ onComplete?: (() => any) | undefined;
500
+ }, {}>;
501
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { PropType } from 'vue';
2
+ import { UserProfileFormDataPoint, UserProfileFormDataPointGroup } from './types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ dataPointGroups: {
5
+ type: PropType<UserProfileFormDataPointGroup[]>;
6
+ required: true;
7
+ };
8
+ }, unknown, unknown, {}, {
9
+ value(dataPoint: UserProfileFormDataPoint): string;
10
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
11
+ dataPointGroups?: unknown;
12
+ } & {
13
+ dataPointGroups: UserProfileFormDataPointGroup[];
14
+ } & {}>, {}>;
15
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { PPFetchResult } from '../../utils/fetch';
2
+ import { UserProfileFormData } from './types';
3
+ declare type GetProfileFormParams = {
4
+ formName: string;
5
+ };
6
+ declare type GetProfileFormResponse = {
7
+ unsigned: {
8
+ data: UserProfileFormData;
9
+ };
10
+ };
11
+ export declare function getProfileForm(params: GetProfileFormParams): Promise<PPFetchResult<GetProfileFormResponse>>;
12
+ declare type PutProfileFormParams = {
13
+ data: {
14
+ [dataPointName: string]: string;
15
+ };
16
+ };
17
+ declare type PutProfileFormResponse = {
18
+ resultInfo: {
19
+ code: string;
20
+ };
21
+ };
22
+ export declare function putProfileForm(params: PutProfileFormParams): Promise<PPFetchResult<PutProfileFormResponse>>;
23
+ export {};