@smile_identity/react-native 10.0.0-beta02 → 10.0.0-beta03
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/README.md +1 -1
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/smileidentity/react/Mapper.kt +179 -0
- package/android/src/main/java/com/smileidentity/react/SmileIdModule.kt +64 -87
- package/android/src/main/java/com/smileidentity/react/utils/ReactUtils.kt +4 -39
- package/android/src/main/java/com/smileidentity/react/viewmanagers/SmileIDBiometricKYCViewManager.kt +11 -8
- package/android/src/main/java/com/smileidentity/react/viewmanagers/SmileIDConsentViewManager.kt +16 -10
- package/android/src/main/java/com/smileidentity/react/viewmanagers/SmileIDDocumentVerificationViewManager.kt +14 -12
- package/android/src/main/java/com/smileidentity/react/viewmanagers/SmileIDEnhancedDocumentVerificationViewManager.kt +13 -11
- package/android/src/main/java/com/smileidentity/react/viewmanagers/SmileIDSmartSelfieAuthenticationViewManager.kt +7 -6
- package/android/src/main/java/com/smileidentity/react/viewmanagers/SmileIDSmartSelfieEnrollmentViewManager.kt +7 -6
- package/android/src/main/java/com/smileidentity/react/views/SmileIDBiometricKYCView.kt +32 -22
- package/android/src/main/java/com/smileidentity/react/views/SmileIDConsentView.kt +21 -14
- package/android/src/main/java/com/smileidentity/react/views/SmileIDDocumentVerificationView.kt +35 -27
- package/android/src/main/java/com/smileidentity/react/views/SmileIDEnhancedDocumentVerificationView.kt +34 -26
- package/android/src/main/java/com/smileidentity/react/views/SmileIDSmartSelfieAuthenticationView.kt +30 -22
- package/android/src/main/java/com/smileidentity/react/views/SmileIDSmartSelfieEnrollmentView.kt +30 -22
- package/android/src/main/java/com/smileidentity/react/views/SmileIDView.kt +1 -0
- package/android/src/oldarch/SmileIdSpec.kt +23 -1
- package/ios/View/BaseSmileIDView.swift +5 -5
- package/ios/View/SmileIDBiometricKYCView.swift +6 -4
- package/ios/View/SmileIDConsentView.swift +5 -4
- package/ios/View/SmileIDDocumentVerificationView.swift +5 -3
- package/ios/View/SmileIDEnhancedDocumentVerificationView.swift +6 -4
- package/ios/View/SmileIDSmartSelfieAuthView.swift +6 -4
- package/ios/View/SmileIDSmartSelfieEnrollmentView.swift +6 -4
- package/ios/ViewManagers/SmileIDBaseViewManager.swift +1 -0
- package/ios/ViewManagers/SmileIDBiometricKYCViewManager.swift +11 -10
- package/ios/ViewManagers/SmileIDConsentViewManager.swift +8 -8
- package/ios/ViewManagers/SmileIDDocumentVerificationViewManager.swift +17 -16
- package/ios/ViewManagers/SmileIDEnhancedDocumentVerificationViewManager.swift +16 -15
- package/ios/ViewManagers/SmileIDSmartSelfieAuthenticationViewManager.swift +10 -9
- package/ios/ViewManagers/SmileIDSmartSelfieEnrollmentViewManager.swift +10 -9
- package/ios/ViewModels/SmileIDProductModel.swift +1 -0
- package/lib/commonjs/NativeSmileId.js.map +1 -1
- package/lib/commonjs/index.js +96 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.js +511 -0
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/NativeSmileId.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js +471 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/NativeSmileId.d.ts +13 -9
- package/lib/typescript/NativeSmileId.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -2
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +410 -88
- package/lib/typescript/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/react-native-smile-id.podspec +1 -1
- package/src/NativeSmileId.ts +58 -11
- package/src/index.tsx +33 -1
- package/src/types.ts +985 -90
- package/android/src/main/assets/smile_config.json +0 -9
package/lib/module/types.js
CHANGED
|
@@ -1,2 +1,472 @@
|
|
|
1
|
-
|
|
1
|
+
// noinspection JSUnusedGlobalSymbols
|
|
2
|
+
export let JobType = /*#__PURE__*/function (JobType) {
|
|
3
|
+
JobType[JobType["BiometricKyc"] = 1] = "BiometricKyc";
|
|
4
|
+
JobType[JobType["SmartSelfieAuthentication"] = 2] = "SmartSelfieAuthentication";
|
|
5
|
+
JobType[JobType["SmartSelfieEnrollment"] = 4] = "SmartSelfieEnrollment";
|
|
6
|
+
JobType[JobType["EnhancedKyc"] = 5] = "EnhancedKyc";
|
|
7
|
+
JobType[JobType["DocumentVerification"] = 6] = "DocumentVerification";
|
|
8
|
+
JobType[JobType["BVN"] = 7] = "BVN";
|
|
9
|
+
JobType[JobType["EnhancedDocumentVerification"] = 11] = "EnhancedDocumentVerification";
|
|
10
|
+
return JobType;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Custom values specific to partners can be placed in [extras]
|
|
15
|
+
*/
|
|
16
|
+
export class PartnerParams {
|
|
17
|
+
constructor(jobType, jobId, userId, extras) {
|
|
18
|
+
this.jobType = jobType;
|
|
19
|
+
this.jobId = jobId;
|
|
20
|
+
this.userId = userId;
|
|
21
|
+
this.extras = extras;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The Auth Smile request. Auth Smile serves multiple purposes:
|
|
27
|
+
*
|
|
28
|
+
* - It is used to fetch the signature needed for subsequent API requests.
|
|
29
|
+
* - It indicates the type of job that will be performed.
|
|
30
|
+
* - It is used to fetch consent information for the partner.
|
|
31
|
+
*
|
|
32
|
+
* @param jobType The type of job that will be performed.
|
|
33
|
+
* @param country The country code of the country where the job is being performed. This value is
|
|
34
|
+
* required in order to get back consent information for the partner.
|
|
35
|
+
* @param idType The type of ID that will be used for the job. This value is required in order to
|
|
36
|
+
* get back consent information for the partner.
|
|
37
|
+
* @param updateEnrolledImage Whether or not the enrolled image should be updated with the image
|
|
38
|
+
* submitted for this job.
|
|
39
|
+
* @param jobId The job ID to associate with the job. Most often, this will correspond to a unique
|
|
40
|
+
* Job ID within your own system. If not provided, a random job ID will be generated.
|
|
41
|
+
* @param userId The user ID to associate with the job. Most often, this will correspond to a unique
|
|
42
|
+
* User ID within your own system. If not provided, a random user ID will be generated.
|
|
43
|
+
*/
|
|
44
|
+
export class AuthenticationRequest {
|
|
45
|
+
constructor(jobType, country, idType, updateEnrolledImage, jobId, userId) {
|
|
46
|
+
this.jobType = jobType;
|
|
47
|
+
this.country = country;
|
|
48
|
+
this.idType = idType;
|
|
49
|
+
this.updateEnrolledImage = updateEnrolledImage;
|
|
50
|
+
this.jobId = jobId;
|
|
51
|
+
this.userId = userId;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* [canAccess] Whether the ID type is enabled for the partner
|
|
57
|
+
* [consentRequired] Whether consent is required for the ID type
|
|
58
|
+
*/
|
|
59
|
+
export class ConsentInfo {
|
|
60
|
+
constructor(canAccess, consentRequired) {
|
|
61
|
+
this.canAccess = canAccess;
|
|
62
|
+
this.consentRequired = consentRequired;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export class AuthenticationResponse {
|
|
66
|
+
constructor(success, signature, timestamp, partnerParams, callbackUrl, consentInfo) {
|
|
67
|
+
this.success = success;
|
|
68
|
+
this.signature = signature;
|
|
69
|
+
this.timestamp = timestamp;
|
|
70
|
+
this.partnerParams = partnerParams;
|
|
71
|
+
this.callbackUrl = callbackUrl;
|
|
72
|
+
this.consentInfo = consentInfo;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export class PrepUploadRequest {
|
|
76
|
+
constructor(partnerParams, partnerId, timestamp, signature, callbackUrl) {
|
|
77
|
+
this.partnerParams = partnerParams;
|
|
78
|
+
this.partnerId = partnerId;
|
|
79
|
+
this.timestamp = timestamp;
|
|
80
|
+
this.signature = signature;
|
|
81
|
+
this.callbackUrl = callbackUrl;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export class PrepUploadResponse {
|
|
85
|
+
constructor(code, refId, uploadUrl, smileJobId) {
|
|
86
|
+
this.code = code;
|
|
87
|
+
this.refId = refId;
|
|
88
|
+
this.uploadUrl = uploadUrl;
|
|
89
|
+
this.smileJobId = smileJobId;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export class IdInfo {
|
|
93
|
+
constructor(country, idType, idNumber, firstName, middleName, lastName, dob, bankCode, entered) {
|
|
94
|
+
this.country = country;
|
|
95
|
+
this.idType = idType;
|
|
96
|
+
this.idNumber = idNumber;
|
|
97
|
+
this.firstName = firstName;
|
|
98
|
+
this.middleName = middleName;
|
|
99
|
+
this.lastName = lastName;
|
|
100
|
+
this.dob = dob;
|
|
101
|
+
this.bankCode = bankCode;
|
|
102
|
+
this.entered = entered;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// noinspection JSUnusedGlobalSymbols
|
|
107
|
+
export let ImageType = /*#__PURE__*/function (ImageType) {
|
|
108
|
+
ImageType[ImageType["SelfieJpgFile"] = 0] = "SelfieJpgFile";
|
|
109
|
+
ImageType[ImageType["IdCardJpgFile"] = 1] = "IdCardJpgFile";
|
|
110
|
+
ImageType[ImageType["SelfieJpgBase64"] = 2] = "SelfieJpgBase64";
|
|
111
|
+
ImageType[ImageType["IdCardJpgBase64"] = 3] = "IdCardJpgBase64";
|
|
112
|
+
ImageType[ImageType["LivenessJpgFile"] = 4] = "LivenessJpgFile";
|
|
113
|
+
ImageType[ImageType["IdCardRearJpgFile"] = 5] = "IdCardRearJpgFile";
|
|
114
|
+
ImageType[ImageType["LivenessJpgBase64"] = 6] = "LivenessJpgBase64";
|
|
115
|
+
ImageType[ImageType["IdCardRearJpgBase64"] = 7] = "IdCardRearJpgBase64";
|
|
116
|
+
return ImageType;
|
|
117
|
+
}({});
|
|
118
|
+
export class UploadImageInfo {
|
|
119
|
+
constructor(imageTypeId, imageName) {
|
|
120
|
+
this.imageTypeId = imageTypeId;
|
|
121
|
+
this.imageName = imageName;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
export class UploadRequest {
|
|
125
|
+
constructor(images, idInfo) {
|
|
126
|
+
this.images = images;
|
|
127
|
+
this.idInfo = idInfo;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// noinspection JSUnusedGlobalSymbols
|
|
132
|
+
export let ActionResult = /*#__PURE__*/function (ActionResult) {
|
|
133
|
+
ActionResult[ActionResult["Passed"] = 0] = "Passed";
|
|
134
|
+
ActionResult[ActionResult["Completed"] = 1] = "Completed";
|
|
135
|
+
ActionResult[ActionResult["Approved"] = 2] = "Approved";
|
|
136
|
+
ActionResult[ActionResult["Verified"] = 3] = "Verified";
|
|
137
|
+
ActionResult[ActionResult["ProvisionallyApproved"] = 4] = "ProvisionallyApproved";
|
|
138
|
+
ActionResult[ActionResult["Returned"] = 5] = "Returned";
|
|
139
|
+
ActionResult[ActionResult["NotReturned"] = 6] = "NotReturned";
|
|
140
|
+
ActionResult[ActionResult["Failed"] = 7] = "Failed";
|
|
141
|
+
ActionResult[ActionResult["Rejected"] = 8] = "Rejected";
|
|
142
|
+
ActionResult[ActionResult["UnderReview"] = 9] = "UnderReview";
|
|
143
|
+
ActionResult[ActionResult["UnableToDetermine"] = 10] = "UnableToDetermine";
|
|
144
|
+
ActionResult[ActionResult["NotApplicable"] = 11] = "NotApplicable";
|
|
145
|
+
ActionResult[ActionResult["NotVerified"] = 12] = "NotVerified";
|
|
146
|
+
ActionResult[ActionResult["NotDone"] = 13] = "NotDone";
|
|
147
|
+
ActionResult[ActionResult["IssuerUnavailable"] = 14] = "IssuerUnavailable";
|
|
148
|
+
ActionResult[ActionResult["Unknown"] = 15] = "Unknown";
|
|
149
|
+
return ActionResult;
|
|
150
|
+
}({}); // Placeholder for unsupported values
|
|
151
|
+
export class Actions {
|
|
152
|
+
constructor() {
|
|
153
|
+
let documentCheck = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ActionResult.NotApplicable;
|
|
154
|
+
let humanReviewCompare = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ActionResult.NotApplicable;
|
|
155
|
+
let humanReviewDocumentCheck = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ActionResult.NotApplicable;
|
|
156
|
+
let humanReviewLivenessCheck = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ActionResult.NotApplicable;
|
|
157
|
+
let humanReviewSelfieCheck = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ActionResult.NotApplicable;
|
|
158
|
+
let humanReviewUpdateSelfie = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : ActionResult.NotApplicable;
|
|
159
|
+
let livenessCheck = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : ActionResult.NotApplicable;
|
|
160
|
+
let registerSelfie = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : ActionResult.NotApplicable;
|
|
161
|
+
let returnPersonalInfo = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : ActionResult.NotApplicable;
|
|
162
|
+
let selfieCheck = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : ActionResult.NotApplicable;
|
|
163
|
+
let selfieProvided = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : ActionResult.NotApplicable;
|
|
164
|
+
let selfieToIdAuthorityCompare = arguments.length > 11 && arguments[11] !== undefined ? arguments[11] : ActionResult.NotApplicable;
|
|
165
|
+
let selfieToIdCardCompare = arguments.length > 12 && arguments[12] !== undefined ? arguments[12] : ActionResult.NotApplicable;
|
|
166
|
+
let selfieToRegisteredSelfieCompare = arguments.length > 13 && arguments[13] !== undefined ? arguments[13] : ActionResult.NotApplicable;
|
|
167
|
+
let updateRegisteredSelfieOnFile = arguments.length > 14 && arguments[14] !== undefined ? arguments[14] : ActionResult.NotApplicable;
|
|
168
|
+
let verifyDocument = arguments.length > 15 && arguments[15] !== undefined ? arguments[15] : ActionResult.NotApplicable;
|
|
169
|
+
let verifyIdNumber = arguments.length > 16 && arguments[16] !== undefined ? arguments[16] : ActionResult.NotApplicable;
|
|
170
|
+
this.documentCheck = documentCheck;
|
|
171
|
+
this.humanReviewCompare = humanReviewCompare;
|
|
172
|
+
this.humanReviewDocumentCheck = humanReviewDocumentCheck;
|
|
173
|
+
this.humanReviewLivenessCheck = humanReviewLivenessCheck;
|
|
174
|
+
this.humanReviewSelfieCheck = humanReviewSelfieCheck;
|
|
175
|
+
this.humanReviewUpdateSelfie = humanReviewUpdateSelfie;
|
|
176
|
+
this.livenessCheck = livenessCheck;
|
|
177
|
+
this.registerSelfie = registerSelfie;
|
|
178
|
+
this.returnPersonalInfo = returnPersonalInfo;
|
|
179
|
+
this.selfieCheck = selfieCheck;
|
|
180
|
+
this.selfieProvided = selfieProvided;
|
|
181
|
+
this.selfieToIdAuthorityCompare = selfieToIdAuthorityCompare;
|
|
182
|
+
this.selfieToIdCardCompare = selfieToIdCardCompare;
|
|
183
|
+
this.selfieToRegisteredSelfieCompare = selfieToRegisteredSelfieCompare;
|
|
184
|
+
this.updateRegisteredSelfieOnFile = updateRegisteredSelfieOnFile;
|
|
185
|
+
this.verifyDocument = verifyDocument;
|
|
186
|
+
this.verifyIdNumber = verifyIdNumber;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
export class EnhancedKycResponse {
|
|
190
|
+
constructor(smileJobId, partnerParams, resultText, resultCode, actions, country, idType, idNumber, fullName, expirationDate, dob, base64Photo) {
|
|
191
|
+
this.smileJobId = smileJobId;
|
|
192
|
+
this.partnerParams = partnerParams;
|
|
193
|
+
this.resultText = resultText;
|
|
194
|
+
this.resultCode = resultCode;
|
|
195
|
+
this.actions = actions;
|
|
196
|
+
this.country = country;
|
|
197
|
+
this.idType = idType;
|
|
198
|
+
this.idNumber = idNumber;
|
|
199
|
+
this.fullName = fullName;
|
|
200
|
+
this.expirationDate = expirationDate;
|
|
201
|
+
this.dob = dob;
|
|
202
|
+
this.base64Photo = base64Photo;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
export class EnhancedKycRequest {
|
|
206
|
+
constructor(country, idType, idNumber, partnerParams, timestamp, signature, firstName, middleName, lastName, dob, phoneNumber, bankCode, callbackUrl) {
|
|
207
|
+
this.country = country;
|
|
208
|
+
this.idType = idType;
|
|
209
|
+
this.idNumber = idNumber;
|
|
210
|
+
this.firstName = firstName;
|
|
211
|
+
this.middleName = middleName;
|
|
212
|
+
this.lastName = lastName;
|
|
213
|
+
this.dob = dob;
|
|
214
|
+
this.phoneNumber = phoneNumber;
|
|
215
|
+
this.bankCode = bankCode;
|
|
216
|
+
this.callbackUrl = callbackUrl;
|
|
217
|
+
this.partnerParams = partnerParams;
|
|
218
|
+
this.timestamp = timestamp;
|
|
219
|
+
this.signature = signature;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
export class EnhancedKycAsyncResponse {
|
|
223
|
+
constructor(success) {
|
|
224
|
+
this.success = success;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
export class ImageLinks {
|
|
228
|
+
constructor(selfieImageUrl, error) {
|
|
229
|
+
this.selfieImageUrl = selfieImageUrl;
|
|
230
|
+
this.error = error;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
export class SuspectUser {
|
|
234
|
+
constructor(reason, userId) {
|
|
235
|
+
this.reason = reason;
|
|
236
|
+
this.userId = userId;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
export class Antifraud {
|
|
240
|
+
constructor(suspectUsers) {
|
|
241
|
+
this.suspectUsers = suspectUsers;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
export class JobStatusRequest {
|
|
245
|
+
constructor(userId, jobId, includeImageLinks, includeHistory, partnerId, timestamp, signature) {
|
|
246
|
+
this.userId = userId;
|
|
247
|
+
this.jobId = jobId;
|
|
248
|
+
this.includeImageLinks = includeImageLinks;
|
|
249
|
+
this.includeHistory = includeHistory;
|
|
250
|
+
this.partnerId = partnerId;
|
|
251
|
+
this.timestamp = timestamp;
|
|
252
|
+
this.signature = signature;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
export class SmartSelfieJobResult {
|
|
256
|
+
constructor(actions, resultCode, resultText, smileJobId, partnerParams, confidence) {
|
|
257
|
+
this.actions = actions;
|
|
258
|
+
this.resultCode = resultCode;
|
|
259
|
+
this.resultText = resultText;
|
|
260
|
+
this.smileJobId = smileJobId;
|
|
261
|
+
this.partnerParams = partnerParams;
|
|
262
|
+
this.confidence = confidence;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
export class SmartSelfieJobStatusResponse {
|
|
266
|
+
constructor(timestamp, jobComplete, jobSuccess, code, result, resultString, history, imageLinks) {
|
|
267
|
+
this.timestamp = timestamp;
|
|
268
|
+
this.jobComplete = jobComplete;
|
|
269
|
+
this.jobSuccess = jobSuccess;
|
|
270
|
+
this.code = code;
|
|
271
|
+
this.result = result;
|
|
272
|
+
this.resultString = resultString;
|
|
273
|
+
this.history = history;
|
|
274
|
+
this.imageLinks = imageLinks;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
export class DocumentVerificationJobResult {
|
|
278
|
+
constructor(actions, resultCode, resultText, smileJobId, partnerParams, country, idType, idNumber, fullName, dob, gender, expirationDate, documentImageBase64, phoneNumber, phoneNumber2, address) {
|
|
279
|
+
this.actions = actions;
|
|
280
|
+
this.resultCode = resultCode;
|
|
281
|
+
this.resultText = resultText;
|
|
282
|
+
this.smileJobId = smileJobId;
|
|
283
|
+
this.partnerParams = partnerParams;
|
|
284
|
+
this.country = country;
|
|
285
|
+
this.idType = idType;
|
|
286
|
+
this.idNumber = idNumber;
|
|
287
|
+
this.fullName = fullName;
|
|
288
|
+
this.dob = dob;
|
|
289
|
+
this.gender = gender;
|
|
290
|
+
this.expirationDate = expirationDate;
|
|
291
|
+
this.documentImageBase64 = documentImageBase64;
|
|
292
|
+
this.phoneNumber = phoneNumber;
|
|
293
|
+
this.phoneNumber2 = phoneNumber2;
|
|
294
|
+
this.address = address;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
export class DocumentVerificationJobStatusResponse {
|
|
298
|
+
constructor(timestamp, jobComplete, jobSuccess, code, result, resultString, history, imageLinks) {
|
|
299
|
+
this.timestamp = timestamp;
|
|
300
|
+
this.jobComplete = jobComplete;
|
|
301
|
+
this.jobSuccess = jobSuccess;
|
|
302
|
+
this.code = code;
|
|
303
|
+
this.result = result;
|
|
304
|
+
this.resultString = resultString;
|
|
305
|
+
this.history = history;
|
|
306
|
+
this.imageLinks = imageLinks;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
export class BiometricKycJobResult {
|
|
310
|
+
constructor(actions, resultCode, resultText, resultType, smileJobId, partnerParams, antifraud, dob, photoBase64, gender, idType, address, country, documentImageBase64, fullData, fullName, idNumber, phoneNumber, phoneNumber2, expirationDate, secondaryIdNumber, idNumberPreviouslyRegistered, previousRegistrantsUserIds) {
|
|
311
|
+
this.actions = actions;
|
|
312
|
+
this.resultCode = resultCode;
|
|
313
|
+
this.resultText = resultText;
|
|
314
|
+
this.resultType = resultType;
|
|
315
|
+
this.smileJobId = smileJobId;
|
|
316
|
+
this.partnerParams = partnerParams;
|
|
317
|
+
this.antifraud = antifraud;
|
|
318
|
+
this.dob = dob;
|
|
319
|
+
this.photoBase64 = photoBase64;
|
|
320
|
+
this.gender = gender;
|
|
321
|
+
this.idType = idType;
|
|
322
|
+
this.address = address;
|
|
323
|
+
this.country = country;
|
|
324
|
+
this.documentImageBase64 = documentImageBase64;
|
|
325
|
+
this.fullData = fullData;
|
|
326
|
+
this.fullName = fullName;
|
|
327
|
+
this.idNumber = idNumber;
|
|
328
|
+
this.phoneNumber = phoneNumber;
|
|
329
|
+
this.phoneNumber2 = phoneNumber2;
|
|
330
|
+
this.expirationDate = expirationDate;
|
|
331
|
+
this.secondaryIdNumber = secondaryIdNumber;
|
|
332
|
+
this.idNumberPreviouslyRegistered = idNumberPreviouslyRegistered;
|
|
333
|
+
this.previousRegistrantsUserIds = previousRegistrantsUserIds;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
export class BiometricKycJobStatusResponse {
|
|
337
|
+
constructor(timestamp, jobComplete, jobSuccess, code, result, resultString, history, imageLinks) {
|
|
338
|
+
this.timestamp = timestamp;
|
|
339
|
+
this.jobComplete = jobComplete;
|
|
340
|
+
this.jobSuccess = jobSuccess;
|
|
341
|
+
this.code = code;
|
|
342
|
+
this.result = result;
|
|
343
|
+
this.resultString = resultString;
|
|
344
|
+
this.history = history;
|
|
345
|
+
this.imageLinks = imageLinks;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
export class EnhancedDocumentVerificationJobResult {
|
|
349
|
+
constructor(actions, resultCode, resultText, resultType, smileJobId, partnerParams, antifraud, dob, photoBase64, gender, idType, address, country, documentImageBase64, fullData, fullName, idNumber, phoneNumber, phoneNumber2, expirationDate, secondaryIdNumber, idNumberPreviouslyRegistered, previousRegistrantsUserIds) {
|
|
350
|
+
this.actions = actions;
|
|
351
|
+
this.resultCode = resultCode;
|
|
352
|
+
this.resultText = resultText;
|
|
353
|
+
this.resultType = resultType;
|
|
354
|
+
this.smileJobId = smileJobId;
|
|
355
|
+
this.partnerParams = partnerParams;
|
|
356
|
+
this.antifraud = antifraud;
|
|
357
|
+
this.dob = dob;
|
|
358
|
+
this.photoBase64 = photoBase64;
|
|
359
|
+
this.gender = gender;
|
|
360
|
+
this.idType = idType;
|
|
361
|
+
this.address = address;
|
|
362
|
+
this.country = country;
|
|
363
|
+
this.documentImageBase64 = documentImageBase64;
|
|
364
|
+
this.fullData = fullData;
|
|
365
|
+
this.fullName = fullName;
|
|
366
|
+
this.idNumber = idNumber;
|
|
367
|
+
this.phoneNumber = phoneNumber;
|
|
368
|
+
this.phoneNumber2 = phoneNumber2;
|
|
369
|
+
this.expirationDate = expirationDate;
|
|
370
|
+
this.secondaryIdNumber = secondaryIdNumber;
|
|
371
|
+
this.idNumberPreviouslyRegistered = idNumberPreviouslyRegistered;
|
|
372
|
+
this.previousRegistrantsUserIds = previousRegistrantsUserIds;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
export class EnhancedDocumentVerificationJobStatusResponse {
|
|
376
|
+
constructor(timestamp, jobComplete, jobSuccess, code, result, resultString, history, imageLinks) {
|
|
377
|
+
this.timestamp = timestamp;
|
|
378
|
+
this.jobComplete = jobComplete;
|
|
379
|
+
this.jobSuccess = jobSuccess;
|
|
380
|
+
this.code = code;
|
|
381
|
+
this.result = result;
|
|
382
|
+
this.resultString = resultString;
|
|
383
|
+
this.history = history;
|
|
384
|
+
this.imageLinks = imageLinks;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
export class ProductsConfigRequest {
|
|
388
|
+
constructor(partnerId, timestamp, signature) {
|
|
389
|
+
this.partnerId = partnerId;
|
|
390
|
+
this.timestamp = timestamp;
|
|
391
|
+
this.signature = signature;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
export class IdSelection {
|
|
395
|
+
constructor(basicKyc, biometricKyc, enhancedKyc, documentVerification) {
|
|
396
|
+
this.basicKyc = basicKyc;
|
|
397
|
+
this.biometricKyc = biometricKyc;
|
|
398
|
+
this.enhancedKyc = enhancedKyc;
|
|
399
|
+
this.documentVerification = documentVerification;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
export class ProductsConfigResponse {
|
|
403
|
+
constructor(consentRequired, idSelection) {
|
|
404
|
+
this.consentRequired = consentRequired;
|
|
405
|
+
this.idSelection = idSelection;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
export class Country {
|
|
409
|
+
constructor(code, continent, name) {
|
|
410
|
+
this.code = code;
|
|
411
|
+
this.continent = continent;
|
|
412
|
+
this.name = name;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
export class IdType {
|
|
416
|
+
constructor(code, example, hasBack, name) {
|
|
417
|
+
this.code = code;
|
|
418
|
+
this.example = example;
|
|
419
|
+
this.hasBack = hasBack;
|
|
420
|
+
this.name = name;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
export class ValidDocument {
|
|
424
|
+
constructor(country, idTypes) {
|
|
425
|
+
this.country = country;
|
|
426
|
+
this.idTypes = idTypes;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
export class ValidDocumentsResponse {
|
|
430
|
+
constructor(validDocuments) {
|
|
431
|
+
this.validDocuments = validDocuments;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
export class BankCode {
|
|
435
|
+
constructor(name, code) {
|
|
436
|
+
this.name = name;
|
|
437
|
+
this.code = code;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
export class AvailableIdType {
|
|
441
|
+
constructor(idTypeKey, label, requiredFields, testData, idNumberRegex) {
|
|
442
|
+
this.idTypeKey = idTypeKey;
|
|
443
|
+
this.label = label;
|
|
444
|
+
this.requiredFields = requiredFields;
|
|
445
|
+
this.testData = testData;
|
|
446
|
+
this.idNumberRegex = idNumberRegex;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
export class CountryInfo {
|
|
450
|
+
constructor(countryCode, name, availableIdTypes) {
|
|
451
|
+
this.countryCode = countryCode;
|
|
452
|
+
this.name = name;
|
|
453
|
+
this.availableIdTypes = availableIdTypes;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
export class HostedWeb {
|
|
457
|
+
constructor(basicKyc, biometricKyc, enhancedKyc, documentVerification, enhancedKycSmartSelfie, enhancedDocumentVerification) {
|
|
458
|
+
this.basicKyc = basicKyc;
|
|
459
|
+
this.biometricKyc = biometricKyc;
|
|
460
|
+
this.enhancedKyc = enhancedKyc;
|
|
461
|
+
this.documentVerification = documentVerification;
|
|
462
|
+
this.enhancedKycSmartSelfie = enhancedKycSmartSelfie;
|
|
463
|
+
this.enhancedDocumentVerification = enhancedDocumentVerification;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
export class ServicesResponse {
|
|
467
|
+
constructor(bankCodes, hostedWeb) {
|
|
468
|
+
this.bankCodes = bankCodes;
|
|
469
|
+
this.hostedWeb = hostedWeb;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
2
472
|
//# sourceMappingURL=types.js.map
|
package/lib/module/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["types.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"names":["JobType","PartnerParams","constructor","jobType","jobId","userId","extras","AuthenticationRequest","country","idType","updateEnrolledImage","ConsentInfo","canAccess","consentRequired","AuthenticationResponse","success","signature","timestamp","partnerParams","callbackUrl","consentInfo","PrepUploadRequest","partnerId","PrepUploadResponse","code","refId","uploadUrl","smileJobId","IdInfo","idNumber","firstName","middleName","lastName","dob","bankCode","entered","ImageType","UploadImageInfo","imageTypeId","imageName","UploadRequest","images","idInfo","ActionResult","Actions","documentCheck","arguments","length","undefined","NotApplicable","humanReviewCompare","humanReviewDocumentCheck","humanReviewLivenessCheck","humanReviewSelfieCheck","humanReviewUpdateSelfie","livenessCheck","registerSelfie","returnPersonalInfo","selfieCheck","selfieProvided","selfieToIdAuthorityCompare","selfieToIdCardCompare","selfieToRegisteredSelfieCompare","updateRegisteredSelfieOnFile","verifyDocument","verifyIdNumber","EnhancedKycResponse","resultText","resultCode","actions","fullName","expirationDate","base64Photo","EnhancedKycRequest","phoneNumber","EnhancedKycAsyncResponse","ImageLinks","selfieImageUrl","error","SuspectUser","reason","Antifraud","suspectUsers","JobStatusRequest","includeImageLinks","includeHistory","SmartSelfieJobResult","confidence","SmartSelfieJobStatusResponse","jobComplete","jobSuccess","result","resultString","history","imageLinks","DocumentVerificationJobResult","gender","documentImageBase64","phoneNumber2","address","DocumentVerificationJobStatusResponse","BiometricKycJobResult","resultType","antifraud","photoBase64","fullData","secondaryIdNumber","idNumberPreviouslyRegistered","previousRegistrantsUserIds","BiometricKycJobStatusResponse","EnhancedDocumentVerificationJobResult","EnhancedDocumentVerificationJobStatusResponse","ProductsConfigRequest","IdSelection","basicKyc","biometricKyc","enhancedKyc","documentVerification","ProductsConfigResponse","idSelection","Country","continent","name","IdType","example","hasBack","ValidDocument","idTypes","ValidDocumentsResponse","validDocuments","BankCode","AvailableIdType","idTypeKey","label","requiredFields","testData","idNumberRegex","CountryInfo","countryCode","availableIdTypes","HostedWeb","enhancedKycSmartSelfie","enhancedDocumentVerification","ServicesResponse","bankCodes","hostedWeb"],"sourceRoot":"../../src","sources":["types.ts"],"mappings":"AAwGA;AACA,WAAYA,OAAO,0BAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAA,OAAPA,OAAO;AAAA;;AAUnB;AACA;AACA;AACA,OAAO,MAAMC,aAAa,CAAC;EAMzBC,WAAWA,CACTC,OAAgB,EAChBC,KAAa,EACbC,MAAc,EACdC,MAAyB,EACzB;IACA,IAAI,CAACH,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACC,MAAM,GAAGA,MAAM;EACtB;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,qBAAqB,CAAC;EAQjCL,WAAWA,CACTC,OAAgB,EAChBK,OAAgB,EAChBC,MAAe,EACfC,mBAA6B,EAC7BN,KAAc,EACdC,MAAe,EACf;IACA,IAAI,CAACF,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACK,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACC,mBAAmB,GAAGA,mBAAmB;IAC9C,IAAI,CAACN,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,MAAM,GAAGA,MAAM;EACtB;AACF;;AAEA;AACA;AACA;AACA;AACA,OAAO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9B,IAAI,CAAChB,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACiB,gBAAgB,GAAGA,gBAAgB;EAC1C;AACF;AAEA,OAAO,MAAMC,SAAS,CAAC;EAQrB1I,WAAWA,CACTgH,QAAkC,EAClCC,YAAsC,EACtCC,WAAqC,EACrCC,oBAA8C,EAC9CwB,sBAAgD,EAChDC,4BAAsD,EACtD;IACA,IAAI,CAAC5B,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,YAAY,GAAGA,YAAY;IAChC,IAAI,CAACC,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,oBAAoB,GAAGA,oBAAoB;IAChD,IAAI,CAACwB,sBAAsB,GAAGA,sBAAsB;IACpD,IAAI,CAACC,4BAA4B,GAAGA,4BAA4B;EAClE;AACF;AAEA,OAAO,MAAMC,gBAAgB,CAAC;EAI5B7I,WAAWA,CAAC8I,SAAqB,EAAEC,SAAoB,EAAE;IACvD,IAAI,CAACD,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACC,SAAS,GAAGA,SAAS;EAC5B;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TurboModule } from 'react-native';
|
|
2
|
-
import type { EnhancedKycRequest } from './index';
|
|
2
|
+
import type { AuthenticationRequest, AuthenticationResponse, BiometricKycJobStatusResponse, DocumentVerificationJobStatusResponse, EnhancedDocumentVerificationJobStatusResponse, EnhancedKycRequest, EnhancedKycAsyncResponse, EnhancedKycResponse, JobStatusRequest, PrepUploadRequest, PrepUploadResponse, ProductsConfigRequest, ProductsConfigResponse, ServicesResponse, SmartSelfieJobStatusResponse, UploadRequest, ValidDocumentsResponse } from './index';
|
|
3
3
|
export interface Spec extends TurboModule {
|
|
4
4
|
/**
|
|
5
5
|
* Initialise the Smile ID SDK
|
|
@@ -10,14 +10,18 @@ export interface Spec extends TurboModule {
|
|
|
10
10
|
* Disable crash reporting
|
|
11
11
|
*/
|
|
12
12
|
disableCrashReporting: () => Promise<void>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
authenticate(request: AuthenticationRequest): Promise<AuthenticationResponse>;
|
|
14
|
+
prepUpload(request: PrepUploadRequest): Promise<PrepUploadResponse>;
|
|
15
|
+
upload(url: string, request: UploadRequest): Promise<void>;
|
|
16
|
+
doEnhancedKyc(request: EnhancedKycRequest): Promise<EnhancedKycResponse>;
|
|
17
|
+
doEnhancedKycAsync(request: EnhancedKycRequest): Promise<EnhancedKycAsyncResponse>;
|
|
18
|
+
getSmartSelfieJobStatus(request: JobStatusRequest): Promise<SmartSelfieJobStatusResponse>;
|
|
19
|
+
getDocumentVerificationJobStatus(request: JobStatusRequest): Promise<DocumentVerificationJobStatusResponse>;
|
|
20
|
+
getBiometricKycJobStatus(request: JobStatusRequest): Promise<BiometricKycJobStatusResponse>;
|
|
21
|
+
getEnhancedDocumentVerificationJobStatus(request: JobStatusRequest): Promise<EnhancedDocumentVerificationJobStatusResponse>;
|
|
22
|
+
getProductsConfig(request: ProductsConfigRequest): Promise<ProductsConfigResponse>;
|
|
23
|
+
getValidDocuments(request: ProductsConfigRequest): Promise<ValidDocumentsResponse>;
|
|
24
|
+
getServices(): Promise<ServicesResponse>;
|
|
21
25
|
}
|
|
22
26
|
declare const _default: Spec;
|
|
23
27
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeSmileId.d.ts","sourceRoot":"","sources":["../../src/NativeSmileId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"NativeSmileId.d.ts","sourceRoot":"","sources":["../../src/NativeSmileId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EACV,qBAAqB,EACrB,sBA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,CAAC,sBAAsB,CAAC,CAAC;IAEnC,iBAAiB,CACf,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAEnC,WAAW,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC1C;;AAED,wBAAmE"}
|
|
@@ -3,7 +3,7 @@ import SmileIDSmartSelfieAuthenticationView from './SmileIDSmartSelfieAuthentica
|
|
|
3
3
|
import SmileIDDocumentVerificationView from './SmileIDDocumentVerificationView';
|
|
4
4
|
import SmileIDBiometricKYCView from './SmileIDBiometricKYCView';
|
|
5
5
|
import SmileIDEnhancedDocumentVerificationView from './SmileIDEnhancedDocumentVerificationView';
|
|
6
|
-
import {
|
|
6
|
+
import { DocumentVerificationRequest, SmartSelfieEnrollmentRequest, SmartSelfieAuthenticationRequest, BiometricKYCRequest, SmileIDViewProps, ConsentRequest, AuthenticationRequest, AuthenticationResponse, BiometricKycJobStatusResponse, DocumentVerificationJobStatusResponse, EnhancedDocumentVerificationJobStatusResponse, EnhancedKycRequest, EnhancedKycAsyncResponse, EnhancedKycResponse, JobStatusRequest, PrepUploadRequest, PrepUploadResponse, ProductsConfigRequest, ProductsConfigResponse, ServicesResponse, SmartSelfieJobStatusResponse, UploadRequest, ValidDocumentsResponse } from './types';
|
|
7
7
|
declare const SmileID: {
|
|
8
8
|
/**
|
|
9
9
|
* Initialise the Smile ID SDK
|
|
@@ -23,5 +23,5 @@ declare const SmileID: {
|
|
|
23
23
|
*/
|
|
24
24
|
doEnhancedKyc: (enhancedKYCRequest: EnhancedKycRequest) => any;
|
|
25
25
|
};
|
|
26
|
-
export { SmileID, SmileIDSmartSelfieEnrollmentView, SmileIDSmartSelfieAuthenticationView, SmileIDDocumentVerificationView, SmileIDBiometricKYCView, SmileIDEnhancedDocumentVerificationView, EnhancedKycRequest, DocumentVerificationRequest, SmartSelfieEnrollmentRequest, SmartSelfieAuthenticationRequest, BiometricKYCRequest, SmileIDViewProps, ConsentRequest, };
|
|
26
|
+
export { SmileID, SmileIDSmartSelfieEnrollmentView, SmileIDSmartSelfieAuthenticationView, SmileIDDocumentVerificationView, SmileIDBiometricKYCView, SmileIDEnhancedDocumentVerificationView, EnhancedKycRequest, DocumentVerificationRequest, SmartSelfieEnrollmentRequest, SmartSelfieAuthenticationRequest, BiometricKYCRequest, SmileIDViewProps, ConsentRequest, AuthenticationRequest, AuthenticationResponse, BiometricKycJobStatusResponse, DocumentVerificationJobStatusResponse, EnhancedDocumentVerificationJobStatusResponse, EnhancedKycAsyncResponse, EnhancedKycResponse, JobStatusRequest, PrepUploadRequest, PrepUploadResponse, ProductsConfigRequest, ProductsConfigResponse, ServicesResponse, SmartSelfieJobStatusResponse, UploadRequest, ValidDocumentsResponse, };
|
|
27
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,gCAAgC,MAAM,oCAAoC,CAAC;AAClF,OAAO,oCAAoC,MAAM,wCAAwC,CAAC;AAC1F,OAAO,+BAA+B,MAAM,mCAAmC,CAAC;AAChF,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,uCAAuC,MAAM,2CAA2C,CAAC;AAChG,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,gCAAgC,MAAM,oCAAoC,CAAC;AAClF,OAAO,oCAAoC,MAAM,wCAAwC,CAAC;AAC1F,OAAO,+BAA+B,MAAM,mCAAmC,CAAC;AAChF,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,uCAAuC,MAAM,2CAA2C,CAAC;AAChG,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,EAC5B,gCAAgC,EAChC,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,sBAAsB,EACtB,6BAA6B,EAC7B,qCAAqC,EACrC,6CAA6C,EAC7C,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,4BAA4B,EAC5B,aAAa,EACb,sBAAsB,EACvB,MAAM,SAAS,CAAC;AA0BjB,QAAA,MAAM,OAAO;IACX;;OAEG;8BACsB,OAAO;IAChC;;;OAGG;;IAGH;;OAEG;6CACsC,kBAAkB;IAG3D;;OAEG;wCACiC,kBAAkB;CAEvD,CAAC;AAEF,OAAO,EAEL,OAAO,EAEP,gCAAgC,EAChC,oCAAoC,EACpC,+BAA+B,EAC/B,uBAAuB,EACvB,uCAAuC,EAEvC,kBAAkB,EAClB,2BAA2B,EAC3B,4BAA4B,EAC5B,gCAAgC,EAChC,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,sBAAsB,EACtB,6BAA6B,EAC7B,qCAAqC,EACrC,6CAA6C,EAC7C,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,4BAA4B,EAC5B,aAAa,EACb,sBAAsB,GACvB,CAAC"}
|