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