@incodetech/core 0.0.0-dev-20260409-9829838 → 0.0.0-dev-20260413-de45fd6
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/{addressSearch-CDdN30un.esm.js → addressSearch-DdrQw-hp.esm.js} +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudStateMachine-C1AgS0nL.esm.js → antifraudStateMachine-DZKc03yw.esm.js} +1 -1
- package/dist/authentication.d.ts +4 -4
- package/dist/authentication.esm.js +6 -6
- package/dist/{authenticationManager-UaO9UTN7.esm.js → authenticationManager-BAYd8gOR.esm.js} +3 -3
- package/dist/{authenticationManager-DYFYx68i.d.ts → authenticationManager-FnMwzV2u.d.ts} +1 -1
- package/dist/{authenticationStateMachine-DWI65EwK.esm.js → authenticationStateMachine-D12jAEkO.esm.js} +3 -3
- package/dist/consent.d.ts +56 -56
- package/dist/consent.esm.js +2 -2
- package/dist/{consentStateMachine-CpRu2hF0.esm.js → consentStateMachine-BPQ4O1Ye.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationStateMachine-Czzgv2W1.esm.js → curpValidationStateMachine-DxuEodU2.esm.js} +1 -1
- package/dist/document-capture.d.ts +77 -77
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +50 -50
- package/dist/document-upload.esm.js +1 -1
- package/dist/{documentCaptureStateMachine-XbpsHzh5.esm.js → documentCaptureStateMachine-DLhPQTCu.esm.js} +1 -1
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +5 -5
- package/dist/{ekybStateMachine-BDuCae6s.esm.js → ekybStateMachine-M7Upw7fD.esm.js} +3 -3
- package/dist/ekyc.d.ts +1 -1
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycStateMachine-DCeUngwi.esm.js → ekycStateMachine-DHyAEUnE.esm.js} +2 -2
- package/dist/email.d.ts +2 -2
- package/dist/email.esm.js +3 -3
- package/dist/{emailManager-CAeo59lD.esm.js → emailManager-C8Zbw5xl.esm.js} +2 -2
- package/dist/{emailManager-CZYfcu0n.d.ts → emailManager-NVkr3gYf.d.ts} +1 -1
- package/dist/{emailStateMachine-Bqwe_sQS.esm.js → emailStateMachine-DSaFON9T.esm.js} +1 -1
- package/dist/{events-CZ2ka3pu.esm.js → events-BjiB9Q1C.esm.js} +1 -0
- package/dist/events.d.ts +1 -0
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +8 -8
- package/dist/extensibility.esm.js +15 -15
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-D8zlMTvd.esm.js → faceCaptureManagerFactory-B1-bhK3L.esm.js} +68 -2
- package/dist/{faceCaptureManagerFactory-DS-6yCya.d.ts → faceCaptureManagerFactory-D5WpBtSM.d.ts} +2 -2
- package/dist/{faceCaptureSetup-1M6uUEjK.esm.js → faceCaptureSetup-CnpsYL-c.esm.js} +1 -1
- package/dist/{faceMatchStateMachine-D3DuP_ya.esm.js → faceMatchStateMachine-DfGqIm8j.esm.js} +1 -1
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +4 -4
- package/dist/{flowCompletionService-W6bj7Xd3.esm.js → flowCompletionService-8Udg-BwW.esm.js} +1 -1
- package/dist/{flowServices-C4tjBD8q.esm.js → flowServices-D4yGOYZG.esm.js} +2 -2
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationStateMachine-Bj2LkGwy.esm.js → geolocationStateMachine-NFrAD2gH.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationStateMachine-W1CzRjVw.esm.js → governmentValidationStateMachine-CAxpYlz3.esm.js} +1 -1
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +5 -5
- package/dist/{idCaptureManager-oR6YPYHj.d.ts → idCaptureManager-DfaZzJV3.d.ts} +2 -2
- package/dist/{idCaptureManager-BcS8fgW4.esm.js → idCaptureManager-DruPQ5pA.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-MAzfM_2O.esm.js → idCaptureStateMachine-CEHQVPXX.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +45 -45
- package/dist/identity-reuse.esm.js +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/mandatory-consent.d.ts +53 -53
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentStateMachine-BMKi26Re.esm.js → mandatoryConsentStateMachine-zHii57mc.esm.js} +1 -1
- package/dist/phone.d.ts +2 -2
- package/dist/phone.esm.js +3 -3
- package/dist/{phoneManager-Bvj6Jr4o.esm.js → phoneManager-Cpd4VD3O.esm.js} +2 -2
- package/dist/{phoneManager-CCMCkyYr.d.ts → phoneManager-KeGunMJF.d.ts} +1 -1
- package/dist/{phoneStateMachine-B1t1Z-Dd.esm.js → phoneStateMachine-Bhzv058R.esm.js} +1 -1
- package/dist/{recordingService-8I_-hhNI.esm.js → recordingService-Drvj5nOf.esm.js} +1 -1
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileStateMachine-BVP1KcoO.esm.js → redirectToMobileStateMachine-ChdhlqsE.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieManager-gizt3Zha.d.ts → selfieManager-LrnnqNh8.d.ts} +1 -1
- package/dist/{selfieManager-B6x3O5Ns.esm.js → selfieManager-VXvYzqpE.esm.js} +3 -3
- package/dist/{selfieStateMachine-DHPSBFj0.esm.js → selfieStateMachine-UFiVoA2o.esm.js} +2 -2
- package/dist/{session-DoI-X9FK.esm.js → session-DFNlZPO2.esm.js} +1 -1
- package/dist/session.esm.js +3 -3
- package/dist/{setup-Bh2S53NT.esm.js → setup-D4wIfKMo.esm.js} +2 -2
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureStateMachine-Cv7yPuEf.esm.js → signatureStateMachine-BwEaOwbU.esm.js} +1 -1
- package/dist/{types-BdEM5Jj7.d.ts → types-CvrR1E0A.d.ts} +1 -1
- package/dist/wasm.esm.js +3 -3
- package/dist/workflow.d.ts +84 -84
- package/dist/workflow.esm.js +24 -24
- package/package.json +1 -1
- /package/dist/{Actor-BkPcZGke.d.ts → Actor-KC-0sV1E.d.ts} +0 -0
- /package/dist/{StateMachine-DIeoDJ7r.d.ts → StateMachine-BQSmCXnT.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-Bcnemkyi.js";
|
|
2
|
-
import "./Actor-
|
|
2
|
+
import "./Actor-KC-0sV1E.js";
|
|
3
3
|
import { t as CameraStream } from "./camera-CgnuDuxy.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as xstate0 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: xstate0.StateMachine<DocumentCaptureContext, {
|
|
88
88
|
type: "CAPTURE";
|
|
89
89
|
} | {
|
|
90
90
|
type: "FILE_SELECTED";
|
|
@@ -113,105 +113,105 @@ declare const documentCaptureMachine: xstate349.StateMachine<DocumentCaptureCont
|
|
|
113
113
|
} | {
|
|
114
114
|
type: "CLOSE";
|
|
115
115
|
}, {
|
|
116
|
-
[x: string]:
|
|
116
|
+
[x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
117
117
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
118
118
|
processingType: string;
|
|
119
119
|
onProgress: (progress: number) => void;
|
|
120
|
-
},
|
|
120
|
+
}, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
121
121
|
processingType: string;
|
|
122
|
-
},
|
|
123
|
-
},
|
|
122
|
+
}, xstate0.EventObject>> | undefined;
|
|
123
|
+
}, xstate0.Values<{
|
|
124
124
|
initCamera: {
|
|
125
125
|
src: "initCamera";
|
|
126
|
-
logic:
|
|
126
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
127
127
|
id: string | undefined;
|
|
128
128
|
};
|
|
129
129
|
uploadDocument: {
|
|
130
130
|
src: "uploadDocument";
|
|
131
|
-
logic:
|
|
131
|
+
logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
132
132
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
133
133
|
processingType: string;
|
|
134
134
|
onProgress: (progress: number) => void;
|
|
135
|
-
},
|
|
135
|
+
}, xstate0.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
};
|
|
138
138
|
finalizeDocumentRequest: {
|
|
139
139
|
src: "finalizeDocumentRequest";
|
|
140
|
-
logic:
|
|
140
|
+
logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
141
141
|
processingType: string;
|
|
142
|
-
},
|
|
142
|
+
}, xstate0.EventObject>;
|
|
143
143
|
id: string | undefined;
|
|
144
144
|
};
|
|
145
|
-
}>,
|
|
146
|
-
clearError: {
|
|
147
|
-
type: "clearError";
|
|
148
|
-
params: xstate349.NonReducibleUnknown;
|
|
149
|
-
};
|
|
145
|
+
}>, xstate0.Values<{
|
|
150
146
|
setStream: {
|
|
151
147
|
type: "setStream";
|
|
152
|
-
params:
|
|
153
|
-
};
|
|
154
|
-
setProgress: {
|
|
155
|
-
type: "setProgress";
|
|
156
|
-
params: xstate349.NonReducibleUnknown;
|
|
157
|
-
};
|
|
158
|
-
stopStream: {
|
|
159
|
-
type: "stopStream";
|
|
160
|
-
params: xstate349.NonReducibleUnknown;
|
|
148
|
+
params: xstate0.NonReducibleUnknown;
|
|
161
149
|
};
|
|
162
150
|
setCapturedDocument: {
|
|
163
151
|
type: "setCapturedDocument";
|
|
164
|
-
params:
|
|
152
|
+
params: xstate0.NonReducibleUnknown;
|
|
165
153
|
};
|
|
166
154
|
setFileTooLargeError: {
|
|
167
155
|
type: "setFileTooLargeError";
|
|
168
|
-
params:
|
|
156
|
+
params: xstate0.NonReducibleUnknown;
|
|
157
|
+
};
|
|
158
|
+
setProgress: {
|
|
159
|
+
type: "setProgress";
|
|
160
|
+
params: xstate0.NonReducibleUnknown;
|
|
169
161
|
};
|
|
170
162
|
setUploadError: {
|
|
171
163
|
type: "setUploadError";
|
|
172
|
-
params:
|
|
164
|
+
params: xstate0.NonReducibleUnknown;
|
|
173
165
|
};
|
|
174
166
|
setFinalizeError: {
|
|
175
167
|
type: "setFinalizeError";
|
|
176
|
-
params:
|
|
168
|
+
params: xstate0.NonReducibleUnknown;
|
|
177
169
|
};
|
|
178
170
|
decrementAttemptsRemaining: {
|
|
179
171
|
type: "decrementAttemptsRemaining";
|
|
180
|
-
params:
|
|
172
|
+
params: xstate0.NonReducibleUnknown;
|
|
181
173
|
};
|
|
182
174
|
setCaptureMethodFile: {
|
|
183
175
|
type: "setCaptureMethodFile";
|
|
184
|
-
params:
|
|
176
|
+
params: xstate0.NonReducibleUnknown;
|
|
185
177
|
};
|
|
186
178
|
setCaptureMethodCamera: {
|
|
187
179
|
type: "setCaptureMethodCamera";
|
|
188
|
-
params:
|
|
180
|
+
params: xstate0.NonReducibleUnknown;
|
|
189
181
|
};
|
|
190
182
|
setCaptureMethodGallery: {
|
|
191
183
|
type: "setCaptureMethodGallery";
|
|
192
|
-
params:
|
|
184
|
+
params: xstate0.NonReducibleUnknown;
|
|
193
185
|
};
|
|
194
186
|
clearCapturedDocument: {
|
|
195
187
|
type: "clearCapturedDocument";
|
|
196
|
-
params:
|
|
188
|
+
params: xstate0.NonReducibleUnknown;
|
|
197
189
|
};
|
|
198
190
|
clearCapturedDocumentGalleryRetake: {
|
|
199
191
|
type: "clearCapturedDocumentGalleryRetake";
|
|
200
|
-
params:
|
|
192
|
+
params: xstate0.NonReducibleUnknown;
|
|
201
193
|
};
|
|
202
194
|
setNextPageType: {
|
|
203
195
|
type: "setNextPageType";
|
|
204
|
-
params:
|
|
196
|
+
params: xstate0.NonReducibleUnknown;
|
|
205
197
|
};
|
|
206
198
|
clearForNextPage: {
|
|
207
199
|
type: "clearForNextPage";
|
|
208
|
-
params:
|
|
200
|
+
params: xstate0.NonReducibleUnknown;
|
|
201
|
+
};
|
|
202
|
+
clearError: {
|
|
203
|
+
type: "clearError";
|
|
204
|
+
params: xstate0.NonReducibleUnknown;
|
|
209
205
|
};
|
|
210
206
|
resetProgress: {
|
|
211
207
|
type: "resetProgress";
|
|
212
|
-
params:
|
|
208
|
+
params: xstate0.NonReducibleUnknown;
|
|
209
|
+
};
|
|
210
|
+
stopStream: {
|
|
211
|
+
type: "stopStream";
|
|
212
|
+
params: xstate0.NonReducibleUnknown;
|
|
213
213
|
};
|
|
214
|
-
}>,
|
|
214
|
+
}>, xstate0.Values<{
|
|
215
215
|
allowSkip: {
|
|
216
216
|
type: "allowSkip";
|
|
217
217
|
params: unknown;
|
|
@@ -272,7 +272,7 @@ declare const documentCaptureMachine: xstate349.StateMachine<DocumentCaptureCont
|
|
|
272
272
|
type: "fileSizeOkForNonGallery";
|
|
273
273
|
params: unknown;
|
|
274
274
|
};
|
|
275
|
-
}>, never, "
|
|
275
|
+
}>, never, "initCamera" | "tutorial" | "capturing" | "preview" | "finished" | "closed" | "failure" | "uploading" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
276
276
|
readonly id: "documentCapture";
|
|
277
277
|
readonly initial: "tutorial";
|
|
278
278
|
readonly context: ({
|
|
@@ -281,93 +281,93 @@ declare const documentCaptureMachine: xstate349.StateMachine<DocumentCaptureCont
|
|
|
281
281
|
spawn: {
|
|
282
282
|
<TSrc extends "initCamera" | "uploadDocument" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
|
|
283
283
|
src: "initCamera";
|
|
284
|
-
logic:
|
|
284
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
285
285
|
id: string | undefined;
|
|
286
286
|
} extends infer T ? T extends {
|
|
287
287
|
src: "initCamera";
|
|
288
|
-
logic:
|
|
288
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
289
289
|
id: string | undefined;
|
|
290
290
|
} ? T extends {
|
|
291
291
|
src: TSrc;
|
|
292
|
-
} ?
|
|
292
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
293
293
|
id?: T["id"] | undefined;
|
|
294
294
|
systemId?: string;
|
|
295
|
-
input?:
|
|
295
|
+
input?: xstate0.InputFrom<T["logic"]> | undefined;
|
|
296
296
|
syncSnapshot?: boolean;
|
|
297
|
-
} & { [K in
|
|
297
|
+
} & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
298
298
|
src: "uploadDocument";
|
|
299
|
-
logic:
|
|
299
|
+
logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
300
300
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
301
301
|
processingType: string;
|
|
302
302
|
onProgress: (progress: number) => void;
|
|
303
|
-
},
|
|
303
|
+
}, xstate0.EventObject>;
|
|
304
304
|
id: string | undefined;
|
|
305
305
|
} extends infer T_1 ? T_1 extends {
|
|
306
306
|
src: "uploadDocument";
|
|
307
|
-
logic:
|
|
307
|
+
logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
308
308
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
309
309
|
processingType: string;
|
|
310
310
|
onProgress: (progress: number) => void;
|
|
311
|
-
},
|
|
311
|
+
}, xstate0.EventObject>;
|
|
312
312
|
id: string | undefined;
|
|
313
313
|
} ? T_1 extends {
|
|
314
314
|
src: TSrc;
|
|
315
|
-
} ?
|
|
315
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
316
316
|
id?: T_1["id"] | undefined;
|
|
317
317
|
systemId?: string;
|
|
318
|
-
input?:
|
|
318
|
+
input?: xstate0.InputFrom<T_1["logic"]> | undefined;
|
|
319
319
|
syncSnapshot?: boolean;
|
|
320
|
-
} & { [K_1 in
|
|
320
|
+
} & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
321
321
|
src: "finalizeDocumentRequest";
|
|
322
|
-
logic:
|
|
322
|
+
logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
323
323
|
processingType: string;
|
|
324
|
-
},
|
|
324
|
+
}, xstate0.EventObject>;
|
|
325
325
|
id: string | undefined;
|
|
326
326
|
} extends infer T_2 ? T_2 extends {
|
|
327
327
|
src: "finalizeDocumentRequest";
|
|
328
|
-
logic:
|
|
328
|
+
logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
329
329
|
processingType: string;
|
|
330
|
-
},
|
|
330
|
+
}, xstate0.EventObject>;
|
|
331
331
|
id: string | undefined;
|
|
332
332
|
} ? T_2 extends {
|
|
333
333
|
src: TSrc;
|
|
334
|
-
} ?
|
|
334
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
335
335
|
id?: T_2["id"] | undefined;
|
|
336
336
|
systemId?: string;
|
|
337
|
-
input?:
|
|
337
|
+
input?: xstate0.InputFrom<T_2["logic"]> | undefined;
|
|
338
338
|
syncSnapshot?: boolean;
|
|
339
|
-
} & { [K_2 in
|
|
339
|
+
} & { [K_2 in xstate0.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_2>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
|
|
340
340
|
initCamera: {
|
|
341
341
|
src: "initCamera";
|
|
342
|
-
logic:
|
|
342
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
343
343
|
id: string | undefined;
|
|
344
344
|
};
|
|
345
345
|
uploadDocument: {
|
|
346
346
|
src: "uploadDocument";
|
|
347
|
-
logic:
|
|
347
|
+
logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
348
348
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
349
349
|
processingType: string;
|
|
350
350
|
onProgress: (progress: number) => void;
|
|
351
|
-
},
|
|
351
|
+
}, xstate0.EventObject>;
|
|
352
352
|
id: string | undefined;
|
|
353
353
|
};
|
|
354
354
|
finalizeDocumentRequest: {
|
|
355
355
|
src: "finalizeDocumentRequest";
|
|
356
|
-
logic:
|
|
356
|
+
logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
357
357
|
processingType: string;
|
|
358
|
-
},
|
|
358
|
+
}, xstate0.EventObject>;
|
|
359
359
|
id: string | undefined;
|
|
360
360
|
};
|
|
361
361
|
}>, "src", TSrc>["logic"]>;
|
|
362
|
-
<TLogic extends
|
|
362
|
+
<TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
|
|
363
363
|
id?: never;
|
|
364
364
|
systemId?: string;
|
|
365
|
-
input?:
|
|
365
|
+
input?: xstate0.InputFrom<TLogic> | undefined;
|
|
366
366
|
syncSnapshot?: boolean;
|
|
367
|
-
} & { [K in
|
|
367
|
+
} & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
|
|
368
368
|
};
|
|
369
369
|
input: DocumentCaptureInput;
|
|
370
|
-
self:
|
|
370
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
|
|
371
371
|
type: "CAPTURE";
|
|
372
372
|
} | {
|
|
373
373
|
type: "FILE_SELECTED";
|
|
@@ -395,7 +395,7 @@ declare const documentCaptureMachine: xstate349.StateMachine<DocumentCaptureCont
|
|
|
395
395
|
type: "SKIP";
|
|
396
396
|
} | {
|
|
397
397
|
type: "CLOSE";
|
|
398
|
-
}, Record<string,
|
|
398
|
+
}, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
|
|
399
399
|
type: "CAPTURE";
|
|
400
400
|
} | {
|
|
401
401
|
type: "FILE_SELECTED";
|
|
@@ -423,7 +423,7 @@ declare const documentCaptureMachine: xstate349.StateMachine<DocumentCaptureCont
|
|
|
423
423
|
type: "SKIP";
|
|
424
424
|
} | {
|
|
425
425
|
type: "CLOSE";
|
|
426
|
-
},
|
|
426
|
+
}, xstate0.AnyEventObject>;
|
|
427
427
|
}) => {
|
|
428
428
|
config: {
|
|
429
429
|
processingType: DocumentType;
|
|
@@ -574,7 +574,7 @@ declare const documentCaptureMachine: xstate349.StateMachine<DocumentCaptureCont
|
|
|
574
574
|
} | {
|
|
575
575
|
type: "CLOSE";
|
|
576
576
|
};
|
|
577
|
-
self:
|
|
577
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
|
|
578
578
|
type: "CAPTURE";
|
|
579
579
|
} | {
|
|
580
580
|
type: "FILE_SELECTED";
|
|
@@ -602,7 +602,7 @@ declare const documentCaptureMachine: xstate349.StateMachine<DocumentCaptureCont
|
|
|
602
602
|
type: "SKIP";
|
|
603
603
|
} | {
|
|
604
604
|
type: "CLOSE";
|
|
605
|
-
}, Record<string,
|
|
605
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
606
606
|
type: "CAPTURE";
|
|
607
607
|
} | {
|
|
608
608
|
type: "FILE_SELECTED";
|
|
@@ -630,7 +630,7 @@ declare const documentCaptureMachine: xstate349.StateMachine<DocumentCaptureCont
|
|
|
630
630
|
type: "SKIP";
|
|
631
631
|
} | {
|
|
632
632
|
type: "CLOSE";
|
|
633
|
-
},
|
|
633
|
+
}, xstate0.AnyEventObject>;
|
|
634
634
|
}) => {
|
|
635
635
|
capturedDocument: CapturedDocument;
|
|
636
636
|
processingType: DocumentType;
|
|
@@ -725,7 +725,7 @@ declare const documentCaptureMachine: xstate349.StateMachine<DocumentCaptureCont
|
|
|
725
725
|
} | {
|
|
726
726
|
type: "CLOSE";
|
|
727
727
|
};
|
|
728
|
-
self:
|
|
728
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
|
|
729
729
|
type: "CAPTURE";
|
|
730
730
|
} | {
|
|
731
731
|
type: "FILE_SELECTED";
|
|
@@ -753,7 +753,7 @@ declare const documentCaptureMachine: xstate349.StateMachine<DocumentCaptureCont
|
|
|
753
753
|
type: "SKIP";
|
|
754
754
|
} | {
|
|
755
755
|
type: "CLOSE";
|
|
756
|
-
}, Record<string,
|
|
756
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
757
757
|
type: "CAPTURE";
|
|
758
758
|
} | {
|
|
759
759
|
type: "FILE_SELECTED";
|
|
@@ -781,7 +781,7 @@ declare const documentCaptureMachine: xstate349.StateMachine<DocumentCaptureCont
|
|
|
781
781
|
type: "SKIP";
|
|
782
782
|
} | {
|
|
783
783
|
type: "CLOSE";
|
|
784
|
-
},
|
|
784
|
+
}, xstate0.AnyEventObject>;
|
|
785
785
|
}) => {
|
|
786
786
|
processingType: DocumentType;
|
|
787
787
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./api-CqKwkjJ3.esm.js";
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-BjiB9Q1C.esm.js";
|
|
3
3
|
import { a as createActor, o as createManager } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
4
|
import "./camera-B-5traWf.esm.js";
|
|
5
5
|
import "./platform-BfoqeM61.esm.js";
|
|
6
6
|
import "./ITimerCapability-DAIaq369.esm.js";
|
|
7
7
|
import "./backCameraStream-BihRmMzc.esm.js";
|
|
8
|
-
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
8
|
+
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-DLhPQTCu.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/document-capture/documentCaptureActor.ts
|
|
11
11
|
function createDocumentCaptureActor(options) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-Bcnemkyi.js";
|
|
2
|
-
import "./Actor-
|
|
2
|
+
import "./Actor-KC-0sV1E.js";
|
|
3
3
|
import "./camera-CgnuDuxy.js";
|
|
4
4
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-CdlQrTiZ.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as xstate305 from "xstate";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
8
|
-
declare const documentUploadMachine:
|
|
8
|
+
declare const documentUploadMachine: xstate305.StateMachine<DocumentUploadContext, {
|
|
9
9
|
type: "START";
|
|
10
10
|
} | {
|
|
11
11
|
type: "CAPTURE";
|
|
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate285.StateMachine<DocumentUploadContex
|
|
|
18
18
|
} | {
|
|
19
19
|
type: "CLOSE";
|
|
20
20
|
}, {
|
|
21
|
-
[x: string]:
|
|
21
|
+
[x: string]: xstate305.ActorRefFromLogic<xstate305.PromiseActorLogic<MediaStream, void, xstate305.EventObject>> | xstate305.ActorRefFromLogic<xstate305.PromiseActorLogic<void, {
|
|
22
22
|
imageBase64: string;
|
|
23
23
|
documentType: string;
|
|
24
24
|
onProgress: (progress: number) => void;
|
|
25
|
-
},
|
|
26
|
-
},
|
|
25
|
+
}, xstate305.EventObject>> | undefined;
|
|
26
|
+
}, xstate305.Values<{
|
|
27
27
|
initCamera: {
|
|
28
28
|
src: "initCamera";
|
|
29
|
-
logic:
|
|
29
|
+
logic: xstate305.PromiseActorLogic<MediaStream, void, xstate305.EventObject>;
|
|
30
30
|
id: string | undefined;
|
|
31
31
|
};
|
|
32
32
|
uploadDocument: {
|
|
33
33
|
src: "uploadDocument";
|
|
34
|
-
logic:
|
|
34
|
+
logic: xstate305.PromiseActorLogic<void, {
|
|
35
35
|
imageBase64: string;
|
|
36
36
|
documentType: string;
|
|
37
37
|
onProgress: (progress: number) => void;
|
|
38
|
-
},
|
|
38
|
+
}, xstate305.EventObject>;
|
|
39
39
|
id: string | undefined;
|
|
40
40
|
};
|
|
41
|
-
}>,
|
|
42
|
-
setError: {
|
|
43
|
-
type: "setError";
|
|
44
|
-
params: xstate285.NonReducibleUnknown;
|
|
45
|
-
};
|
|
46
|
-
clearError: {
|
|
47
|
-
type: "clearError";
|
|
48
|
-
params: xstate285.NonReducibleUnknown;
|
|
49
|
-
};
|
|
41
|
+
}>, xstate305.Values<{
|
|
50
42
|
setStream: {
|
|
51
43
|
type: "setStream";
|
|
52
|
-
params:
|
|
53
|
-
};
|
|
54
|
-
setImageAndClearError: {
|
|
55
|
-
type: "setImageAndClearError";
|
|
56
|
-
params: xstate285.NonReducibleUnknown;
|
|
44
|
+
params: xstate305.NonReducibleUnknown;
|
|
57
45
|
};
|
|
58
46
|
setProgress: {
|
|
59
47
|
type: "setProgress";
|
|
60
|
-
params:
|
|
48
|
+
params: xstate305.NonReducibleUnknown;
|
|
49
|
+
};
|
|
50
|
+
clearError: {
|
|
51
|
+
type: "clearError";
|
|
52
|
+
params: xstate305.NonReducibleUnknown;
|
|
61
53
|
};
|
|
62
54
|
stopStream: {
|
|
63
55
|
type: "stopStream";
|
|
64
|
-
params:
|
|
56
|
+
params: xstate305.NonReducibleUnknown;
|
|
57
|
+
};
|
|
58
|
+
setError: {
|
|
59
|
+
type: "setError";
|
|
60
|
+
params: xstate305.NonReducibleUnknown;
|
|
61
|
+
};
|
|
62
|
+
setImageAndClearError: {
|
|
63
|
+
type: "setImageAndClearError";
|
|
64
|
+
params: xstate305.NonReducibleUnknown;
|
|
65
65
|
};
|
|
66
|
-
}>, never, never, "
|
|
66
|
+
}>, never, never, "initCamera" | "error" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate305.NonReducibleUnknown, xstate305.EventObject, xstate305.MetaObject, {
|
|
67
67
|
readonly id: "documentUpload";
|
|
68
68
|
readonly initial: "idle";
|
|
69
69
|
readonly context: ({
|
|
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate285.StateMachine<DocumentUploadContex
|
|
|
72
72
|
spawn: {
|
|
73
73
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
74
74
|
src: "initCamera";
|
|
75
|
-
logic:
|
|
75
|
+
logic: xstate305.PromiseActorLogic<MediaStream, void, xstate305.EventObject>;
|
|
76
76
|
id: string | undefined;
|
|
77
77
|
} extends infer T ? T extends {
|
|
78
78
|
src: "initCamera";
|
|
79
|
-
logic:
|
|
79
|
+
logic: xstate305.PromiseActorLogic<MediaStream, void, xstate305.EventObject>;
|
|
80
80
|
id: string | undefined;
|
|
81
81
|
} ? T extends {
|
|
82
82
|
src: TSrc;
|
|
83
|
-
} ?
|
|
83
|
+
} ? xstate305.ConditionalRequired<[options?: ({
|
|
84
84
|
id?: T["id"] | undefined;
|
|
85
85
|
systemId?: string;
|
|
86
|
-
input?:
|
|
86
|
+
input?: xstate305.InputFrom<T["logic"]> | undefined;
|
|
87
87
|
syncSnapshot?: boolean;
|
|
88
|
-
} & { [K in
|
|
88
|
+
} & { [K in xstate305.RequiredActorOptions<T>]: unknown }) | undefined], xstate305.IsNotNever<xstate305.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
89
89
|
src: "uploadDocument";
|
|
90
|
-
logic:
|
|
90
|
+
logic: xstate305.PromiseActorLogic<void, {
|
|
91
91
|
imageBase64: string;
|
|
92
92
|
documentType: string;
|
|
93
93
|
onProgress: (progress: number) => void;
|
|
94
|
-
},
|
|
94
|
+
}, xstate305.EventObject>;
|
|
95
95
|
id: string | undefined;
|
|
96
96
|
} extends infer T_1 ? T_1 extends {
|
|
97
97
|
src: "uploadDocument";
|
|
98
|
-
logic:
|
|
98
|
+
logic: xstate305.PromiseActorLogic<void, {
|
|
99
99
|
imageBase64: string;
|
|
100
100
|
documentType: string;
|
|
101
101
|
onProgress: (progress: number) => void;
|
|
102
|
-
},
|
|
102
|
+
}, xstate305.EventObject>;
|
|
103
103
|
id: string | undefined;
|
|
104
104
|
} ? T_1 extends {
|
|
105
105
|
src: TSrc;
|
|
106
|
-
} ?
|
|
106
|
+
} ? xstate305.ConditionalRequired<[options?: ({
|
|
107
107
|
id?: T_1["id"] | undefined;
|
|
108
108
|
systemId?: string;
|
|
109
|
-
input?:
|
|
109
|
+
input?: xstate305.InputFrom<T_1["logic"]> | undefined;
|
|
110
110
|
syncSnapshot?: boolean;
|
|
111
|
-
} & { [K_1 in
|
|
111
|
+
} & { [K_1 in xstate305.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate305.IsNotNever<xstate305.RequiredActorOptions<T_1>>> : never : never : never)): xstate305.ActorRefFromLogic<xstate305.GetConcreteByKey<xstate305.Values<{
|
|
112
112
|
initCamera: {
|
|
113
113
|
src: "initCamera";
|
|
114
|
-
logic:
|
|
114
|
+
logic: xstate305.PromiseActorLogic<MediaStream, void, xstate305.EventObject>;
|
|
115
115
|
id: string | undefined;
|
|
116
116
|
};
|
|
117
117
|
uploadDocument: {
|
|
118
118
|
src: "uploadDocument";
|
|
119
|
-
logic:
|
|
119
|
+
logic: xstate305.PromiseActorLogic<void, {
|
|
120
120
|
imageBase64: string;
|
|
121
121
|
documentType: string;
|
|
122
122
|
onProgress: (progress: number) => void;
|
|
123
|
-
},
|
|
123
|
+
}, xstate305.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
};
|
|
126
126
|
}>, "src", TSrc>["logic"]>;
|
|
127
|
-
<TLogic extends
|
|
127
|
+
<TLogic extends xstate305.AnyActorLogic>(src: TLogic, ...[options]: xstate305.ConditionalRequired<[options?: ({
|
|
128
128
|
id?: never;
|
|
129
129
|
systemId?: string;
|
|
130
|
-
input?:
|
|
130
|
+
input?: xstate305.InputFrom<TLogic> | undefined;
|
|
131
131
|
syncSnapshot?: boolean;
|
|
132
|
-
} & { [K in
|
|
132
|
+
} & { [K in xstate305.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate305.IsNotNever<xstate305.RequiredLogicInput<TLogic>>>): xstate305.ActorRefFromLogic<TLogic>;
|
|
133
133
|
};
|
|
134
134
|
input: DocumentUploadInput;
|
|
135
|
-
self:
|
|
135
|
+
self: xstate305.ActorRef<xstate305.MachineSnapshot<DocumentUploadContext, {
|
|
136
136
|
type: "START";
|
|
137
137
|
} | {
|
|
138
138
|
type: "CAPTURE";
|
|
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate285.StateMachine<DocumentUploadContex
|
|
|
144
144
|
type: "RETRY";
|
|
145
145
|
} | {
|
|
146
146
|
type: "CLOSE";
|
|
147
|
-
}, Record<string,
|
|
147
|
+
}, Record<string, xstate305.AnyActorRef | undefined>, xstate305.StateValue, string, unknown, any, any>, {
|
|
148
148
|
type: "START";
|
|
149
149
|
} | {
|
|
150
150
|
type: "CAPTURE";
|
|
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate285.StateMachine<DocumentUploadContex
|
|
|
156
156
|
type: "RETRY";
|
|
157
157
|
} | {
|
|
158
158
|
type: "CLOSE";
|
|
159
|
-
},
|
|
159
|
+
}, xstate305.AnyEventObject>;
|
|
160
160
|
}) => {
|
|
161
161
|
config: DocumentUploadConfig;
|
|
162
162
|
stream: undefined;
|
|
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate285.StateMachine<DocumentUploadContex
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "CLOSE";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate305.ActorRef<xstate305.MachineSnapshot<DocumentUploadContext, {
|
|
230
230
|
type: "START";
|
|
231
231
|
} | {
|
|
232
232
|
type: "CAPTURE";
|
|
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate285.StateMachine<DocumentUploadContex
|
|
|
238
238
|
type: "RETRY";
|
|
239
239
|
} | {
|
|
240
240
|
type: "CLOSE";
|
|
241
|
-
}, Record<string,
|
|
241
|
+
}, Record<string, xstate305.AnyActorRef>, xstate305.StateValue, string, unknown, any, any>, {
|
|
242
242
|
type: "START";
|
|
243
243
|
} | {
|
|
244
244
|
type: "CAPTURE";
|
|
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate285.StateMachine<DocumentUploadContex
|
|
|
250
250
|
type: "RETRY";
|
|
251
251
|
} | {
|
|
252
252
|
type: "CLOSE";
|
|
253
|
-
},
|
|
253
|
+
}, xstate305.AnyEventObject>;
|
|
254
254
|
}) => {
|
|
255
255
|
imageBase64: string;
|
|
256
256
|
documentType: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-CqKwkjJ3.esm.js";
|
|
2
|
-
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-BjiB9Q1C.esm.js";
|
|
3
3
|
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
4
|
import { i as stopCameraStream } from "./camera-B-5traWf.esm.js";
|
|
5
5
|
import "./platform-BfoqeM61.esm.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-CqKwkjJ3.esm.js";
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
2
|
+
import { _ as endpoints } from "./events-BjiB9Q1C.esm.js";
|
|
3
3
|
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-D7D6CGwY.esm.js";
|
|
4
4
|
import { i as stopCameraStream } from "./camera-B-5traWf.esm.js";
|
|
5
5
|
import { t as getBackCameraStream } from "./backCameraStream-BihRmMzc.esm.js";
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-Bcnemkyi.js";
|
|
2
|
-
import "./Actor-
|
|
2
|
+
import "./Actor-KC-0sV1E.js";
|
|
3
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
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./api-CqKwkjJ3.esm.js";
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import "./session-
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-BjiB9Q1C.esm.js";
|
|
3
|
+
import "./session-DFNlZPO2.esm.js";
|
|
4
4
|
import "./BrowserEnvironmentProvider-lxn4oxXn.esm.js";
|
|
5
5
|
import "./browserSimulation-7W5-A3RV.esm.js";
|
|
6
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-
|
|
8
|
-
import "./addressSearch-
|
|
9
|
-
import "./flowServices-
|
|
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-M7Upw7fD.esm.js";
|
|
8
|
+
import "./addressSearch-DdrQw-hp.esm.js";
|
|
9
|
+
import "./flowServices-D4yGOYZG.esm.js";
|
|
10
10
|
import "./BrowserTimerProvider-CSdm7__S.esm.js";
|
|
11
11
|
|
|
12
12
|
//#region src/modules/ekyb/ekybActor.ts
|