@incodetech/core 0.0.0-dev-20260409-09dfd52 → 0.0.0-dev-20260409-73c2599
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/{OpenViduRecordingProvider-D_cVAwYQ.esm.js → OpenViduRecordingProvider-JatjSE3h.esm.js} +1 -1
- package/dist/{WasmUtilProvider-mWSXzp7b.esm.js → WasmUtilProvider-DRh0wrlm.esm.js} +1 -1
- package/dist/{addressSearch-C26OZIx0.esm.js → addressSearch-CDdN30un.esm.js} +4 -4
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +4 -4
- package/dist/{antifraudStateMachine-B74mO8vr.esm.js → antifraudStateMachine-C1AgS0nL.esm.js} +3 -3
- package/dist/authentication.d.ts +11 -11
- package/dist/authentication.esm.js +22 -22
- package/dist/{authenticationManager-DOTo1EYF.d.ts → authenticationManager-DYFYx68i.d.ts} +2 -2
- package/dist/{authenticationManager-BBQHippG.esm.js → authenticationManager-UaO9UTN7.esm.js} +6 -6
- package/dist/{authenticationStateMachine-DCJ0ArAt.esm.js → authenticationStateMachine-DWI65EwK.esm.js} +6 -6
- package/dist/{backCameraStream-D9g2wyil.esm.js → backCameraStream-BihRmMzc.esm.js} +3 -3
- package/dist/camera.d.ts +1 -1
- package/dist/camera.esm.js +3 -3
- package/dist/consent.d.ts +52 -52
- package/dist/consent.esm.js +4 -4
- package/dist/{consentStateMachine-DIdJXJW0.esm.js → consentStateMachine-CpRu2hF0.esm.js} +3 -3
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +4 -4
- package/dist/curp-validation.d.ts +5 -5
- package/dist/curp-validation.esm.js +4 -4
- package/dist/{curpValidationStateMachine-Dp5WB6__.esm.js → curpValidationStateMachine-Czzgv2W1.esm.js} +3 -3
- package/dist/{deepsightLoader-CaULV07H.esm.js → deepsightLoader-jIgoauFK.esm.js} +10 -10
- package/dist/{deepsightService-rPGLH8Xp.esm.js → deepsightService-D4mM8yJ2.esm.js} +5 -5
- package/dist/{deepsightService-S-tU77m-.d.ts → deepsightService-DAeakjDd.d.ts} +2 -2
- package/dist/device.esm.js +3 -3
- package/dist/document-capture.d.ts +70 -70
- package/dist/document-capture.esm.js +8 -8
- package/dist/document-upload.d.ts +4 -4
- package/dist/document-upload.esm.js +7 -7
- package/dist/{documentCaptureStateMachine-ByYOCKz5.esm.js → documentCaptureStateMachine-XbpsHzh5.esm.js} +5 -5
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +10 -10
- package/dist/{ekybStateMachine-DRku_YmR.esm.js → ekybStateMachine-BDuCae6s.esm.js} +5 -5
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +6 -6
- package/dist/{ekycStateMachine-CSWaaWVl.esm.js → ekycStateMachine-DCeUngwi.esm.js} +12 -5
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +6 -6
- package/dist/{emailManager-DByjyeY8.esm.js → emailManager-CAeo59lD.esm.js} +3 -3
- package/dist/{emailManager-D6CHM2QO.d.ts → emailManager-CZYfcu0n.d.ts} +2 -2
- package/dist/{emailStateMachine-BoIkeCw5.esm.js → emailStateMachine-Bqwe_sQS.esm.js} +4 -4
- package/dist/{events-W91zLpx4.esm.js → events-CZ2ka3pu.esm.js} +4 -1
- package/dist/events.d.ts +1 -0
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +15 -15
- package/dist/extensibility.esm.js +33 -33
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +4 -4
- package/dist/{faceCaptureManagerFactory-Bspg2Tyf.esm.js → faceCaptureManagerFactory-D8zlMTvd.esm.js} +2 -2
- package/dist/{faceCaptureManagerFactory-P2yy30KU.d.ts → faceCaptureManagerFactory-DS-6yCya.d.ts} +8 -8
- package/dist/{faceCaptureSetup-CQevz86q.esm.js → faceCaptureSetup-1M6uUEjK.esm.js} +4 -4
- package/dist/{faceMatchStateMachine-CLterVEC.esm.js → faceMatchStateMachine-D3DuP_ya.esm.js} +3 -3
- package/dist/flow.d.ts +8 -8
- package/dist/flow.esm.js +9 -9
- package/dist/{flowCompletionService-DZSDUXus.esm.js → flowCompletionService-W6bj7Xd3.esm.js} +2 -2
- package/dist/{flowServices-YATk0fgY.esm.js → flowServices-C4tjBD8q.esm.js} +3 -3
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +5 -5
- package/dist/{geolocationStateMachine-CRRUCl9K.esm.js → geolocationStateMachine-Bj2LkGwy.esm.js} +4 -4
- package/dist/{getDeviceClass-DBF-ExLR.esm.js → getDeviceClass-BoiWvKAc.esm.js} +1 -1
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +5 -5
- package/dist/{governmentValidationStateMachine-C_iPX9VE.esm.js → governmentValidationStateMachine-W1CzRjVw.esm.js} +4 -4
- package/dist/http.esm.js +1 -1
- package/dist/id.d.ts +10 -10
- package/dist/id.esm.js +22 -22
- package/dist/{idCaptureManager-CJfatzuY.esm.js → idCaptureManager-BcS8fgW4.esm.js} +4 -4
- package/dist/{idCaptureManager-CbZvdr9y.d.ts → idCaptureManager-oR6YPYHj.d.ts} +7 -7
- package/dist/{idCaptureStateMachine-gf-Q9piu.esm.js → idCaptureStateMachine-MAzfM_2O.esm.js} +16 -16
- package/dist/identity-reuse.d.ts +530 -0
- package/dist/identity-reuse.esm.js +273 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +8 -8
- package/dist/{lib-BzVJ-zxG.esm.js → lib-CxDxnzRd.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +55 -55
- package/dist/mandatory-consent.esm.js +4 -4
- package/dist/{mandatoryConsentStateMachine-BZNBJ1fK.esm.js → mandatoryConsentStateMachine-BMKi26Re.esm.js} +3 -3
- package/dist/{openviduLazy-CLg_-u0m.esm.js → openviduLazy-B8tinh9W.esm.js} +2 -2
- package/dist/openviduLazy-CItjpMfL.esm.js +3 -0
- package/dist/{permissionServices-Cisv73eQ.esm.js → permissionServices-Cj120WaT.esm.js} +2 -2
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +6 -6
- package/dist/{phoneManager-DhC4obPF.esm.js → phoneManager-Bvj6Jr4o.esm.js} +3 -3
- package/dist/{phoneManager-Zwr-qCnC.d.ts → phoneManager-CCMCkyYr.d.ts} +2 -2
- package/dist/{phoneStateMachine-Cc_w4tC0.esm.js → phoneStateMachine-B1t1Z-Dd.esm.js} +4 -4
- package/dist/{recordingService-CCfxUY7-.esm.js → recordingService-8I_-hhNI.esm.js} +13 -13
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +5 -5
- package/dist/{redirectToMobileStateMachine-vOe27Ufw.esm.js → redirectToMobileStateMachine-BVP1KcoO.esm.js} +4 -4
- package/dist/{runChildModule-DVC4JEjp.esm.js → runChildModule-B5DEiOS7.esm.js} +1 -1
- package/dist/selfie.d.ts +11 -11
- package/dist/selfie.esm.js +22 -22
- package/dist/{selfieManager-CorEST5h.esm.js → selfieManager-B6x3O5Ns.esm.js} +6 -6
- package/dist/{selfieManager-DNwfxieF.d.ts → selfieManager-gizt3Zha.d.ts} +2 -2
- package/dist/{selfieStateMachine-3b19ON1z.esm.js → selfieStateMachine-DHPSBFj0.esm.js} +3 -3
- package/dist/{session-B_rKSRql.esm.js → session-DoI-X9FK.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +6 -6
- package/dist/{setup-DLvhsDol.esm.js → setup-Bh2S53NT.esm.js} +5 -5
- package/dist/{setup-BYqwVLiv.d.ts → setup-Bz3Ffaoc.d.ts} +1 -1
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +4 -4
- package/dist/{signatureStateMachine-CU92zCXU.esm.js → signatureStateMachine-Cv7yPuEf.esm.js} +3 -3
- package/dist/{stats-gFD2351t.esm.js → stats-wkQyDFV3.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-CjsEZRcz.d.ts → types-BdEM5Jj7.d.ts} +1 -1
- package/dist/{types-CYJ0Ish6.d.ts → types-CdlQrTiZ.d.ts} +1 -1
- package/dist/{types-DU8HmI5U.d.ts → types-m43DfiSx.d.ts} +1 -1
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +8 -8
- package/dist/workflow.d.ts +116 -116
- package/dist/workflow.esm.js +41 -41
- package/package.json +7 -3
- package/dist/openviduLazy-rFXBtZVZ.esm.js +0 -3
- /package/dist/{Actor-DbWH1K6E.d.ts → Actor-BkPcZGke.d.ts} +0 -0
- /package/dist/{BaseWasmProvider-DoYDYH1z.esm.js → BaseWasmProvider-C73c2nV9.esm.js} +0 -0
- /package/dist/{BrowserEnvironmentProvider-BtKLxTx4.esm.js → BrowserEnvironmentProvider-lxn4oxXn.esm.js} +0 -0
- /package/dist/{BrowserStorageProvider-CXaS5Ooj.esm.js → BrowserStorageProvider-ByxoNfxC.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-v7bpbrAk.esm.js → BrowserTimerProvider-CSdm7__S.esm.js} +0 -0
- /package/dist/{ITimerCapability-BZO_FsCo.esm.js → ITimerCapability-DAIaq369.esm.js} +0 -0
- /package/dist/{Manager-DcPMRgTm.d.ts → Manager-Bcnemkyi.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-D90R4qwV.esm.js → MotionSensorProvider-BLnFo6My.esm.js} +0 -0
- /package/dist/{StateMachine-BBuIgsHT.d.ts → StateMachine-DIeoDJ7r.d.ts} +0 -0
- /package/dist/{api-aa9Mx20l.esm.js → api-CqKwkjJ3.esm.js} +0 -0
- /package/dist/{browserSimulation-DFqGKQAD.esm.js → browserSimulation-7W5-A3RV.esm.js} +0 -0
- /package/dist/{camera-DpPQS_-5.esm.js → camera-B-5traWf.esm.js} +0 -0
- /package/dist/{camera-DATT31my.d.ts → camera-CgnuDuxy.d.ts} +0 -0
- /package/dist/{chunk-YGHKo4MY.esm.js → chunk-Qw4qVmMx.esm.js} +0 -0
- /package/dist/{displayErrors-xrg0ejaS.d.ts → displayErrors-C9-VaqmS.d.ts} +0 -0
- /package/dist/{flowCompletionService-gxt5reFV.d.ts → flowCompletionService-CPLdZxe-.d.ts} +0 -0
- /package/dist/{getBrowser-DCcD7H-M.esm.js → getBrowser-DJkbzQ5t.esm.js} +0 -0
- /package/dist/{platform-DctkySJU.esm.js → platform-BfoqeM61.esm.js} +0 -0
- /package/dist/{types-CIjb0FKu.d.ts → types-CxU9jTRl.d.ts} +0 -0
- /package/dist/{warmup-Ckb1hN85.d.ts → warmup-Cs0uqxUW.d.ts} +0 -0
- /package/dist/{xstate.esm-B7FPE6br.esm.js → xstate.esm-D7D6CGwY.esm.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { t as CameraStream } from "./camera-
|
|
4
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-Bcnemkyi.js";
|
|
2
|
+
import "./Actor-BkPcZGke.js";
|
|
3
|
+
import { t as CameraStream } from "./camera-CgnuDuxy.js";
|
|
4
|
+
import * as xstate63 from "xstate";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/document-capture/types.d.ts
|
|
7
7
|
type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
|
|
@@ -84,7 +84,7 @@ type DocumentCaptureInput = {
|
|
|
84
84
|
};
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
87
|
-
declare const documentCaptureMachine:
|
|
87
|
+
declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureContext, {
|
|
88
88
|
type: "CAPTURE";
|
|
89
89
|
} | {
|
|
90
90
|
type: "FILE_SELECTED";
|
|
@@ -113,105 +113,105 @@ declare const documentCaptureMachine: xstate281.StateMachine<DocumentCaptureCont
|
|
|
113
113
|
} | {
|
|
114
114
|
type: "CLOSE";
|
|
115
115
|
}, {
|
|
116
|
-
[x: string]:
|
|
116
|
+
[x: string]: xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<DocumentUploadResponse, {
|
|
117
117
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
118
118
|
processingType: string;
|
|
119
119
|
onProgress: (progress: number) => void;
|
|
120
|
-
},
|
|
120
|
+
}, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
121
121
|
processingType: string;
|
|
122
|
-
},
|
|
123
|
-
},
|
|
122
|
+
}, xstate63.EventObject>> | undefined;
|
|
123
|
+
}, xstate63.Values<{
|
|
124
124
|
initCamera: {
|
|
125
125
|
src: "initCamera";
|
|
126
|
-
logic:
|
|
126
|
+
logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
|
|
127
127
|
id: string | undefined;
|
|
128
128
|
};
|
|
129
129
|
uploadDocument: {
|
|
130
130
|
src: "uploadDocument";
|
|
131
|
-
logic:
|
|
131
|
+
logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
|
|
132
132
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
133
133
|
processingType: string;
|
|
134
134
|
onProgress: (progress: number) => void;
|
|
135
|
-
},
|
|
135
|
+
}, xstate63.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
};
|
|
138
138
|
finalizeDocumentRequest: {
|
|
139
139
|
src: "finalizeDocumentRequest";
|
|
140
|
-
logic:
|
|
140
|
+
logic: xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
141
141
|
processingType: string;
|
|
142
|
-
},
|
|
142
|
+
}, xstate63.EventObject>;
|
|
143
143
|
id: string | undefined;
|
|
144
144
|
};
|
|
145
|
-
}>,
|
|
145
|
+
}>, xstate63.Values<{
|
|
146
146
|
setStream: {
|
|
147
147
|
type: "setStream";
|
|
148
|
-
params:
|
|
148
|
+
params: xstate63.NonReducibleUnknown;
|
|
149
149
|
};
|
|
150
150
|
setProgress: {
|
|
151
151
|
type: "setProgress";
|
|
152
|
-
params:
|
|
152
|
+
params: xstate63.NonReducibleUnknown;
|
|
153
153
|
};
|
|
154
154
|
clearError: {
|
|
155
155
|
type: "clearError";
|
|
156
|
-
params:
|
|
156
|
+
params: xstate63.NonReducibleUnknown;
|
|
157
157
|
};
|
|
158
158
|
stopStream: {
|
|
159
159
|
type: "stopStream";
|
|
160
|
-
params:
|
|
160
|
+
params: xstate63.NonReducibleUnknown;
|
|
161
161
|
};
|
|
162
162
|
setCapturedDocument: {
|
|
163
163
|
type: "setCapturedDocument";
|
|
164
|
-
params:
|
|
164
|
+
params: xstate63.NonReducibleUnknown;
|
|
165
165
|
};
|
|
166
166
|
setFileTooLargeError: {
|
|
167
167
|
type: "setFileTooLargeError";
|
|
168
|
-
params:
|
|
168
|
+
params: xstate63.NonReducibleUnknown;
|
|
169
169
|
};
|
|
170
170
|
setUploadError: {
|
|
171
171
|
type: "setUploadError";
|
|
172
|
-
params:
|
|
172
|
+
params: xstate63.NonReducibleUnknown;
|
|
173
173
|
};
|
|
174
174
|
setFinalizeError: {
|
|
175
175
|
type: "setFinalizeError";
|
|
176
|
-
params:
|
|
176
|
+
params: xstate63.NonReducibleUnknown;
|
|
177
177
|
};
|
|
178
178
|
decrementAttemptsRemaining: {
|
|
179
179
|
type: "decrementAttemptsRemaining";
|
|
180
|
-
params:
|
|
180
|
+
params: xstate63.NonReducibleUnknown;
|
|
181
181
|
};
|
|
182
182
|
setCaptureMethodFile: {
|
|
183
183
|
type: "setCaptureMethodFile";
|
|
184
|
-
params:
|
|
184
|
+
params: xstate63.NonReducibleUnknown;
|
|
185
185
|
};
|
|
186
186
|
setCaptureMethodCamera: {
|
|
187
187
|
type: "setCaptureMethodCamera";
|
|
188
|
-
params:
|
|
188
|
+
params: xstate63.NonReducibleUnknown;
|
|
189
189
|
};
|
|
190
190
|
setCaptureMethodGallery: {
|
|
191
191
|
type: "setCaptureMethodGallery";
|
|
192
|
-
params:
|
|
192
|
+
params: xstate63.NonReducibleUnknown;
|
|
193
193
|
};
|
|
194
194
|
clearCapturedDocument: {
|
|
195
195
|
type: "clearCapturedDocument";
|
|
196
|
-
params:
|
|
196
|
+
params: xstate63.NonReducibleUnknown;
|
|
197
197
|
};
|
|
198
198
|
clearCapturedDocumentGalleryRetake: {
|
|
199
199
|
type: "clearCapturedDocumentGalleryRetake";
|
|
200
|
-
params:
|
|
200
|
+
params: xstate63.NonReducibleUnknown;
|
|
201
201
|
};
|
|
202
202
|
setNextPageType: {
|
|
203
203
|
type: "setNextPageType";
|
|
204
|
-
params:
|
|
204
|
+
params: xstate63.NonReducibleUnknown;
|
|
205
205
|
};
|
|
206
206
|
clearForNextPage: {
|
|
207
207
|
type: "clearForNextPage";
|
|
208
|
-
params:
|
|
208
|
+
params: xstate63.NonReducibleUnknown;
|
|
209
209
|
};
|
|
210
210
|
resetProgress: {
|
|
211
211
|
type: "resetProgress";
|
|
212
|
-
params:
|
|
212
|
+
params: xstate63.NonReducibleUnknown;
|
|
213
213
|
};
|
|
214
|
-
}>,
|
|
214
|
+
}>, xstate63.Values<{
|
|
215
215
|
allowSkip: {
|
|
216
216
|
type: "allowSkip";
|
|
217
217
|
params: unknown;
|
|
@@ -272,7 +272,7 @@ declare const documentCaptureMachine: xstate281.StateMachine<DocumentCaptureCont
|
|
|
272
272
|
type: "fileSizeOkForNonGallery";
|
|
273
273
|
params: unknown;
|
|
274
274
|
};
|
|
275
|
-
}>, never, "initCamera" | "capturing" | "closed" | "uploading" | "finished" | "tutorial" | "preview" | "failure" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput,
|
|
275
|
+
}>, never, "initCamera" | "capturing" | "closed" | "uploading" | "finished" | "tutorial" | "preview" | "failure" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate63.NonReducibleUnknown, xstate63.EventObject, xstate63.MetaObject, {
|
|
276
276
|
readonly id: "documentCapture";
|
|
277
277
|
readonly initial: "tutorial";
|
|
278
278
|
readonly context: ({
|
|
@@ -281,93 +281,93 @@ declare const documentCaptureMachine: xstate281.StateMachine<DocumentCaptureCont
|
|
|
281
281
|
spawn: {
|
|
282
282
|
<TSrc extends "initCamera" | "uploadDocument" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
|
|
283
283
|
src: "initCamera";
|
|
284
|
-
logic:
|
|
284
|
+
logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
|
|
285
285
|
id: string | undefined;
|
|
286
286
|
} extends infer T ? T extends {
|
|
287
287
|
src: "initCamera";
|
|
288
|
-
logic:
|
|
288
|
+
logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
|
|
289
289
|
id: string | undefined;
|
|
290
290
|
} ? T extends {
|
|
291
291
|
src: TSrc;
|
|
292
|
-
} ?
|
|
292
|
+
} ? xstate63.ConditionalRequired<[options?: ({
|
|
293
293
|
id?: T["id"] | undefined;
|
|
294
294
|
systemId?: string;
|
|
295
|
-
input?:
|
|
295
|
+
input?: xstate63.InputFrom<T["logic"]> | undefined;
|
|
296
296
|
syncSnapshot?: boolean;
|
|
297
|
-
} & { [K in
|
|
297
|
+
} & { [K in xstate63.RequiredActorOptions<T>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
298
298
|
src: "uploadDocument";
|
|
299
|
-
logic:
|
|
299
|
+
logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
|
|
300
300
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
301
301
|
processingType: string;
|
|
302
302
|
onProgress: (progress: number) => void;
|
|
303
|
-
},
|
|
303
|
+
}, xstate63.EventObject>;
|
|
304
304
|
id: string | undefined;
|
|
305
305
|
} extends infer T_1 ? T_1 extends {
|
|
306
306
|
src: "uploadDocument";
|
|
307
|
-
logic:
|
|
307
|
+
logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
|
|
308
308
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
309
309
|
processingType: string;
|
|
310
310
|
onProgress: (progress: number) => void;
|
|
311
|
-
},
|
|
311
|
+
}, xstate63.EventObject>;
|
|
312
312
|
id: string | undefined;
|
|
313
313
|
} ? T_1 extends {
|
|
314
314
|
src: TSrc;
|
|
315
|
-
} ?
|
|
315
|
+
} ? xstate63.ConditionalRequired<[options?: ({
|
|
316
316
|
id?: T_1["id"] | undefined;
|
|
317
317
|
systemId?: string;
|
|
318
|
-
input?:
|
|
318
|
+
input?: xstate63.InputFrom<T_1["logic"]> | undefined;
|
|
319
319
|
syncSnapshot?: boolean;
|
|
320
|
-
} & { [K_1 in
|
|
320
|
+
} & { [K_1 in xstate63.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
321
321
|
src: "finalizeDocumentRequest";
|
|
322
|
-
logic:
|
|
322
|
+
logic: xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
323
323
|
processingType: string;
|
|
324
|
-
},
|
|
324
|
+
}, xstate63.EventObject>;
|
|
325
325
|
id: string | undefined;
|
|
326
326
|
} extends infer T_2 ? T_2 extends {
|
|
327
327
|
src: "finalizeDocumentRequest";
|
|
328
|
-
logic:
|
|
328
|
+
logic: xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
329
329
|
processingType: string;
|
|
330
|
-
},
|
|
330
|
+
}, xstate63.EventObject>;
|
|
331
331
|
id: string | undefined;
|
|
332
332
|
} ? T_2 extends {
|
|
333
333
|
src: TSrc;
|
|
334
|
-
} ?
|
|
334
|
+
} ? xstate63.ConditionalRequired<[options?: ({
|
|
335
335
|
id?: T_2["id"] | undefined;
|
|
336
336
|
systemId?: string;
|
|
337
|
-
input?:
|
|
337
|
+
input?: xstate63.InputFrom<T_2["logic"]> | undefined;
|
|
338
338
|
syncSnapshot?: boolean;
|
|
339
|
-
} & { [K_2 in
|
|
339
|
+
} & { [K_2 in xstate63.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_2>>> : never : never : never)): xstate63.ActorRefFromLogic<xstate63.GetConcreteByKey<xstate63.Values<{
|
|
340
340
|
initCamera: {
|
|
341
341
|
src: "initCamera";
|
|
342
|
-
logic:
|
|
342
|
+
logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
|
|
343
343
|
id: string | undefined;
|
|
344
344
|
};
|
|
345
345
|
uploadDocument: {
|
|
346
346
|
src: "uploadDocument";
|
|
347
|
-
logic:
|
|
347
|
+
logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
|
|
348
348
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
349
349
|
processingType: string;
|
|
350
350
|
onProgress: (progress: number) => void;
|
|
351
|
-
},
|
|
351
|
+
}, xstate63.EventObject>;
|
|
352
352
|
id: string | undefined;
|
|
353
353
|
};
|
|
354
354
|
finalizeDocumentRequest: {
|
|
355
355
|
src: "finalizeDocumentRequest";
|
|
356
|
-
logic:
|
|
356
|
+
logic: xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
357
357
|
processingType: string;
|
|
358
|
-
},
|
|
358
|
+
}, xstate63.EventObject>;
|
|
359
359
|
id: string | undefined;
|
|
360
360
|
};
|
|
361
361
|
}>, "src", TSrc>["logic"]>;
|
|
362
|
-
<TLogic extends
|
|
362
|
+
<TLogic extends xstate63.AnyActorLogic>(src: TLogic, ...[options]: xstate63.ConditionalRequired<[options?: ({
|
|
363
363
|
id?: never;
|
|
364
364
|
systemId?: string;
|
|
365
|
-
input?:
|
|
365
|
+
input?: xstate63.InputFrom<TLogic> | undefined;
|
|
366
366
|
syncSnapshot?: boolean;
|
|
367
|
-
} & { [K in
|
|
367
|
+
} & { [K in xstate63.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredLogicInput<TLogic>>>): xstate63.ActorRefFromLogic<TLogic>;
|
|
368
368
|
};
|
|
369
369
|
input: DocumentCaptureInput;
|
|
370
|
-
self:
|
|
370
|
+
self: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
|
|
371
371
|
type: "CAPTURE";
|
|
372
372
|
} | {
|
|
373
373
|
type: "FILE_SELECTED";
|
|
@@ -395,7 +395,7 @@ declare const documentCaptureMachine: xstate281.StateMachine<DocumentCaptureCont
|
|
|
395
395
|
type: "SKIP";
|
|
396
396
|
} | {
|
|
397
397
|
type: "CLOSE";
|
|
398
|
-
}, Record<string,
|
|
398
|
+
}, Record<string, xstate63.AnyActorRef | undefined>, xstate63.StateValue, string, unknown, any, any>, {
|
|
399
399
|
type: "CAPTURE";
|
|
400
400
|
} | {
|
|
401
401
|
type: "FILE_SELECTED";
|
|
@@ -423,7 +423,7 @@ declare const documentCaptureMachine: xstate281.StateMachine<DocumentCaptureCont
|
|
|
423
423
|
type: "SKIP";
|
|
424
424
|
} | {
|
|
425
425
|
type: "CLOSE";
|
|
426
|
-
},
|
|
426
|
+
}, xstate63.AnyEventObject>;
|
|
427
427
|
}) => {
|
|
428
428
|
config: {
|
|
429
429
|
processingType: DocumentType;
|
|
@@ -574,7 +574,7 @@ declare const documentCaptureMachine: xstate281.StateMachine<DocumentCaptureCont
|
|
|
574
574
|
} | {
|
|
575
575
|
type: "CLOSE";
|
|
576
576
|
};
|
|
577
|
-
self:
|
|
577
|
+
self: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
|
|
578
578
|
type: "CAPTURE";
|
|
579
579
|
} | {
|
|
580
580
|
type: "FILE_SELECTED";
|
|
@@ -602,7 +602,7 @@ declare const documentCaptureMachine: xstate281.StateMachine<DocumentCaptureCont
|
|
|
602
602
|
type: "SKIP";
|
|
603
603
|
} | {
|
|
604
604
|
type: "CLOSE";
|
|
605
|
-
}, Record<string,
|
|
605
|
+
}, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
|
|
606
606
|
type: "CAPTURE";
|
|
607
607
|
} | {
|
|
608
608
|
type: "FILE_SELECTED";
|
|
@@ -630,7 +630,7 @@ declare const documentCaptureMachine: xstate281.StateMachine<DocumentCaptureCont
|
|
|
630
630
|
type: "SKIP";
|
|
631
631
|
} | {
|
|
632
632
|
type: "CLOSE";
|
|
633
|
-
},
|
|
633
|
+
}, xstate63.AnyEventObject>;
|
|
634
634
|
}) => {
|
|
635
635
|
capturedDocument: CapturedDocument;
|
|
636
636
|
processingType: DocumentType;
|
|
@@ -725,7 +725,7 @@ declare const documentCaptureMachine: xstate281.StateMachine<DocumentCaptureCont
|
|
|
725
725
|
} | {
|
|
726
726
|
type: "CLOSE";
|
|
727
727
|
};
|
|
728
|
-
self:
|
|
728
|
+
self: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
|
|
729
729
|
type: "CAPTURE";
|
|
730
730
|
} | {
|
|
731
731
|
type: "FILE_SELECTED";
|
|
@@ -753,7 +753,7 @@ declare const documentCaptureMachine: xstate281.StateMachine<DocumentCaptureCont
|
|
|
753
753
|
type: "SKIP";
|
|
754
754
|
} | {
|
|
755
755
|
type: "CLOSE";
|
|
756
|
-
}, Record<string,
|
|
756
|
+
}, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
|
|
757
757
|
type: "CAPTURE";
|
|
758
758
|
} | {
|
|
759
759
|
type: "FILE_SELECTED";
|
|
@@ -781,7 +781,7 @@ declare const documentCaptureMachine: xstate281.StateMachine<DocumentCaptureCont
|
|
|
781
781
|
type: "SKIP";
|
|
782
782
|
} | {
|
|
783
783
|
type: "CLOSE";
|
|
784
|
-
},
|
|
784
|
+
}, xstate63.AnyEventObject>;
|
|
785
785
|
}) => {
|
|
786
786
|
processingType: DocumentType;
|
|
787
787
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { a as createActor, o as createManager } from "./xstate.esm-
|
|
4
|
-
import "./camera-
|
|
5
|
-
import "./platform-
|
|
6
|
-
import "./ITimerCapability-
|
|
7
|
-
import "./backCameraStream-
|
|
8
|
-
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
1
|
+
import "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import { a as createActor, o as createManager } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
|
+
import "./camera-B-5traWf.esm.js";
|
|
5
|
+
import "./platform-BfoqeM61.esm.js";
|
|
6
|
+
import "./ITimerCapability-DAIaq369.esm.js";
|
|
7
|
+
import "./backCameraStream-BihRmMzc.esm.js";
|
|
8
|
+
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-XbpsHzh5.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/document-capture/documentCaptureActor.ts
|
|
11
11
|
function createDocumentCaptureActor(options) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import "./camera-
|
|
4
|
-
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-
|
|
1
|
+
import { t as Manager } from "./Manager-Bcnemkyi.js";
|
|
2
|
+
import "./Actor-BkPcZGke.js";
|
|
3
|
+
import "./camera-CgnuDuxy.js";
|
|
4
|
+
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-CdlQrTiZ.js";
|
|
5
5
|
import * as xstate0 from "xstate";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-
|
|
4
|
-
import { i as stopCameraStream } from "./camera-
|
|
5
|
-
import "./platform-
|
|
6
|
-
import "./ITimerCapability-
|
|
7
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
1
|
+
import { t as api } from "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
|
+
import { i as stopCameraStream } from "./camera-B-5traWf.esm.js";
|
|
5
|
+
import "./platform-BfoqeM61.esm.js";
|
|
6
|
+
import "./ITimerCapability-DAIaq369.esm.js";
|
|
7
|
+
import { t as getBackCameraStream } from "./backCameraStream-BihRmMzc.esm.js";
|
|
8
8
|
|
|
9
9
|
//#region src/modules/document-upload/documentUploadServices.ts
|
|
10
10
|
async function uploadDocument({ imageBase64, documentType, onProgress, signal }) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
3
|
-
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { i as stopCameraStream } from "./camera-
|
|
5
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
1
|
+
import { t as api } from "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
|
+
import { i as stopCameraStream } from "./camera-B-5traWf.esm.js";
|
|
5
|
+
import { t as getBackCameraStream } from "./backCameraStream-BihRmMzc.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/document-capture/types.ts
|
|
8
8
|
const PROCESSING_TYPE_MAP = {
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-
|
|
1
|
+
import { t as Manager } from "./Manager-Bcnemkyi.js";
|
|
2
|
+
import "./Actor-BkPcZGke.js";
|
|
3
|
+
import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-C9-VaqmS.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ekyb/types.d.ts
|
|
6
6
|
type UboEntry = {
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import "./session-
|
|
4
|
-
import "./BrowserEnvironmentProvider-
|
|
5
|
-
import "./browserSimulation-
|
|
6
|
-
import { a as createActor, o as createManager } from "./xstate.esm-
|
|
7
|
-
import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as computeDisplayErrors, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-
|
|
8
|
-
import "./addressSearch-
|
|
9
|
-
import "./flowServices-
|
|
10
|
-
import "./BrowserTimerProvider-
|
|
1
|
+
import "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import "./session-DoI-X9FK.esm.js";
|
|
4
|
+
import "./BrowserEnvironmentProvider-lxn4oxXn.esm.js";
|
|
5
|
+
import "./browserSimulation-7W5-A3RV.esm.js";
|
|
6
|
+
import { a as createActor, o as createManager } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
7
|
+
import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as computeDisplayErrors, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-BDuCae6s.esm.js";
|
|
8
|
+
import "./addressSearch-CDdN30un.esm.js";
|
|
9
|
+
import "./flowServices-C4tjBD8q.esm.js";
|
|
10
|
+
import "./BrowserTimerProvider-CSdm7__S.esm.js";
|
|
11
11
|
|
|
12
12
|
//#region src/modules/ekyb/ekybActor.ts
|
|
13
13
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
3
|
-
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-
|
|
5
|
-
import { t as getFlow } from "./flowServices-
|
|
1
|
+
import { t as api } from "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
|
+
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-CDdN30un.esm.js";
|
|
5
|
+
import { t as getFlow } from "./flowServices-C4tjBD8q.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
8
8
|
const UBO_INPUT_LIMIT = 8;
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-
|
|
1
|
+
import { t as Manager } from "./Manager-Bcnemkyi.js";
|
|
2
|
+
import "./Actor-BkPcZGke.js";
|
|
3
|
+
import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-C9-VaqmS.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ekyc/types.d.ts
|
|
6
6
|
type EkycFieldSource = 'user_input' | 'document_scan' | 'poa_document' | 'phone_module_input' | 'email_module_input' | false;
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { a as createActor, o as createManager } from "./xstate.esm-
|
|
4
|
-
import "./addressSearch-
|
|
5
|
-
import "./BrowserTimerProvider-
|
|
6
|
-
import { n as computeDisplayErrors, t as ekycMachine } from "./ekycStateMachine-
|
|
1
|
+
import "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import { a as createActor, o as createManager } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
|
+
import "./addressSearch-CDdN30un.esm.js";
|
|
5
|
+
import "./BrowserTimerProvider-CSdm7__S.esm.js";
|
|
6
|
+
import { n as computeDisplayErrors, t as ekycMachine } from "./ekycStateMachine-DCeUngwi.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/ekyc/ekycActor.ts
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
3
|
-
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-
|
|
1
|
+
import { t as api } from "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
|
+
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-CDdN30un.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/ekyc/ekycConsts.ts
|
|
7
7
|
const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER"];
|
|
@@ -45,6 +45,7 @@ const DOB_OPTIONAL_SOURCES = ["US_TELCO_1", "UK_VOTER_REGISTER"];
|
|
|
45
45
|
const ADDRESS_OPTIONAL_SOURCES = ["US_TELCO_1", "UK_VOTER_REGISTER"];
|
|
46
46
|
const LAST4SSN_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
47
47
|
const DRIVERS_LICENSE_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
48
|
+
const EMAIL_SOURCES = ["US_TELCO_1", "US_CREDIT_BUREAU_1"];
|
|
48
49
|
const EMAIL_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
49
50
|
const PHONE_OPTIONAL_SOURCES = ["CA_RES_CREDIT", "UK_VOTER_REGISTER"];
|
|
50
51
|
const NAME_SOURCES = [
|
|
@@ -67,6 +68,7 @@ const NAME_SOURCES = [
|
|
|
67
68
|
];
|
|
68
69
|
const HOUSE_NO_SOURCES = [
|
|
69
70
|
"SERPRO",
|
|
71
|
+
"BR_GOVT_1",
|
|
70
72
|
"GR_1",
|
|
71
73
|
"ES_1"
|
|
72
74
|
];
|
|
@@ -76,6 +78,7 @@ const STREET_SOURCES = [
|
|
|
76
78
|
"US_CREDIT_BUREAU_1",
|
|
77
79
|
"CA_RES_CREDIT",
|
|
78
80
|
"SERPRO",
|
|
81
|
+
"BR_GOVT_1",
|
|
79
82
|
"AR_1",
|
|
80
83
|
"ES_1",
|
|
81
84
|
"UK_VOTER_REGISTER"
|
|
@@ -86,6 +89,7 @@ const CITY_SOURCES = [
|
|
|
86
89
|
"US_CREDIT_BUREAU_1",
|
|
87
90
|
"CA_RES_CREDIT",
|
|
88
91
|
"SERPRO",
|
|
92
|
+
"BR_GOVT_1",
|
|
89
93
|
"AR_1",
|
|
90
94
|
"ES_1",
|
|
91
95
|
"UK_VOTER_REGISTER"
|
|
@@ -97,6 +101,7 @@ const ADDRESS_STATE_SOURCES = [
|
|
|
97
101
|
"US_DRIVERS_LICENSE_1",
|
|
98
102
|
"CA_RES_CREDIT",
|
|
99
103
|
"SERPRO",
|
|
104
|
+
"BR_GOVT_1",
|
|
100
105
|
"AR_1",
|
|
101
106
|
"ES_1"
|
|
102
107
|
];
|
|
@@ -106,6 +111,7 @@ const POSTAL_CODE_SOURCES = [
|
|
|
106
111
|
"US_CREDIT_BUREAU_1",
|
|
107
112
|
"CA_RES_CREDIT",
|
|
108
113
|
"SERPRO",
|
|
114
|
+
"BR_GOVT_1",
|
|
109
115
|
"AR_1",
|
|
110
116
|
"ES_1",
|
|
111
117
|
"UK_VOTER_REGISTER"
|
|
@@ -10077,7 +10083,8 @@ function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false)
|
|
|
10077
10083
|
});
|
|
10078
10084
|
}
|
|
10079
10085
|
if (fields["date of birth"]) add("dateOfBirth", "date", "verification.labels.dateOfBirth", fields["date of birth"]);
|
|
10080
|
-
|
|
10086
|
+
const emailSource = fields.email || (EMAIL_SOURCES.includes(configSource) ? "user_input" : false);
|
|
10087
|
+
if (emailSource) add("email", "text", "verification.labels.email", emailSource, { placeholder: "verification.placeholder.email" });
|
|
10081
10088
|
if (fields.phone) {
|
|
10082
10089
|
const phoneCountrySelectorDisabled = enablePhoneRisk && configSource !== "PHONE_RISK_1" || COUNTRY_SELECTOR_DISABLED_SOURCES.includes(configSource);
|
|
10083
10090
|
add("phone", "phone", "verification.labels.phone", fields.phone, { disableCountrySelector: phoneCountrySelectorDisabled });
|
package/dist/email.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { a as emailMachine, n as EmailState, o as EmailConfig, r as createEmailManager, t as EmailManager } from "./emailManager-
|
|
1
|
+
import "./Manager-Bcnemkyi.js";
|
|
2
|
+
import "./Actor-BkPcZGke.js";
|
|
3
|
+
import { a as emailMachine, n as EmailState, o as EmailConfig, r as createEmailManager, t as EmailManager } from "./emailManager-CZYfcu0n.js";
|
|
4
4
|
export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
|
package/dist/email.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import "./xstate.esm-
|
|
4
|
-
import "./BrowserTimerProvider-
|
|
5
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
6
|
-
import { t as createEmailManager } from "./emailManager-
|
|
1
|
+
import "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
|
+
import "./BrowserTimerProvider-CSdm7__S.esm.js";
|
|
5
|
+
import { t as emailMachine } from "./emailStateMachine-Bqwe_sQS.esm.js";
|
|
6
|
+
import { t as createEmailManager } from "./emailManager-CAeo59lD.esm.js";
|
|
7
7
|
|
|
8
8
|
export { createEmailManager, emailMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { a as createActor, o as createManager } from "./xstate.esm-
|
|
3
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CZ2ka3pu.esm.js";
|
|
2
|
+
import { a as createActor, o as createManager } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
3
|
+
import { t as emailMachine } from "./emailStateMachine-Bqwe_sQS.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/email/emailActor.ts
|
|
6
6
|
function createEmailActor(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
1
|
+
import { t as Manager } from "./Manager-Bcnemkyi.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-BkPcZGke.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/email/types.d.ts
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
3
|
-
import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-
|
|
4
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
1
|
+
import { t as api } from "./api-CqKwkjJ3.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-CZ2ka3pu.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CSdm7__S.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/email/emailServices.ts
|
|
7
7
|
async function fetchEmail(signal) {
|