@incodetech/core 0.0.0-dev-20260507-78f2d13 → 0.0.0-dev-20260507-85da360
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/ae-signature.d.ts +1 -1
- package/dist/consent.d.ts +52 -52
- package/dist/cpf-ocr.d.ts +20 -20
- package/dist/document-capture.d.ts +77 -77
- package/dist/document-upload.d.ts +46 -46
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-of_oFZ3p.esm.js → ekybStateMachine-CIVtmica.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.esm.js +3 -3
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-BNMNk6sc.esm.js → flowServices-BZnDn46f.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +55 -55
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-C3qcCILu.esm.js → idCaptureManager-Dnvp0tN7.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-CgZiukTi.esm.js → idCaptureStateMachine-DERHrSfV.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +44 -44
- package/dist/{index-P6znUbAD.d.ts → index-C62kGS4J.d.ts} +119 -119
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +52 -52
- package/dist/qe-signature.d.ts +1 -1
- package/dist/{session-CEQEqTvJ.esm.js → session-CsUswFcx.esm.js} +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{setup-BVz1gFkj.esm.js → setup-DGSuf74f.esm.js} +1 -1
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +82 -82
- package/dist/workflow.esm.js +4 -4
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-D9pehGyp.js";
|
|
2
2
|
import "./Actor-YjWTo26u.js";
|
|
3
3
|
import { t as CameraStream } from "./camera-B6UAKpM1.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as xstate136 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: xstate136.StateMachine<DocumentCaptureContext, {
|
|
88
88
|
type: "CAPTURE";
|
|
89
89
|
} | {
|
|
90
90
|
type: "FILE_SELECTED";
|
|
@@ -113,109 +113,109 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
|
|
|
113
113
|
} | {
|
|
114
114
|
type: "CLOSE";
|
|
115
115
|
}, {
|
|
116
|
-
[x: string]:
|
|
116
|
+
[x: string]: xstate136.ActorRefFromLogic<xstate136.PromiseActorLogic<MediaStream, void, xstate136.EventObject>> | xstate136.ActorRefFromLogic<xstate136.PromiseActorLogic<DocumentUploadResponse, {
|
|
117
117
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
118
118
|
processingType: string;
|
|
119
119
|
onProgress: (progress: number) => void;
|
|
120
|
-
},
|
|
120
|
+
}, xstate136.EventObject>> | xstate136.ActorRefFromLogic<xstate136.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
121
121
|
processingType: string;
|
|
122
|
-
},
|
|
123
|
-
},
|
|
122
|
+
}, xstate136.EventObject>> | undefined;
|
|
123
|
+
}, xstate136.Values<{
|
|
124
124
|
uploadDocument: {
|
|
125
125
|
src: "uploadDocument";
|
|
126
|
-
logic:
|
|
126
|
+
logic: xstate136.PromiseActorLogic<DocumentUploadResponse, {
|
|
127
127
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
128
128
|
processingType: string;
|
|
129
129
|
onProgress: (progress: number) => void;
|
|
130
|
-
},
|
|
130
|
+
}, xstate136.EventObject>;
|
|
131
131
|
id: string | undefined;
|
|
132
132
|
};
|
|
133
133
|
initCamera: {
|
|
134
134
|
src: "initCamera";
|
|
135
|
-
logic:
|
|
135
|
+
logic: xstate136.PromiseActorLogic<MediaStream, void, xstate136.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
};
|
|
138
138
|
finalizeDocumentRequest: {
|
|
139
139
|
src: "finalizeDocumentRequest";
|
|
140
|
-
logic:
|
|
140
|
+
logic: xstate136.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
141
141
|
processingType: string;
|
|
142
|
-
},
|
|
142
|
+
}, xstate136.EventObject>;
|
|
143
143
|
id: string | undefined;
|
|
144
144
|
};
|
|
145
|
-
}>,
|
|
145
|
+
}>, xstate136.Values<{
|
|
146
146
|
setStream: {
|
|
147
147
|
type: "setStream";
|
|
148
|
-
params:
|
|
148
|
+
params: xstate136.NonReducibleUnknown;
|
|
149
|
+
};
|
|
150
|
+
setProgress: {
|
|
151
|
+
type: "setProgress";
|
|
152
|
+
params: xstate136.NonReducibleUnknown;
|
|
153
|
+
};
|
|
154
|
+
clearError: {
|
|
155
|
+
type: "clearError";
|
|
156
|
+
params: xstate136.NonReducibleUnknown;
|
|
157
|
+
};
|
|
158
|
+
stopStream: {
|
|
159
|
+
type: "stopStream";
|
|
160
|
+
params: xstate136.NonReducibleUnknown;
|
|
149
161
|
};
|
|
150
162
|
setCapturedDocument: {
|
|
151
163
|
type: "setCapturedDocument";
|
|
152
|
-
params:
|
|
164
|
+
params: xstate136.NonReducibleUnknown;
|
|
153
165
|
};
|
|
154
166
|
setFileTooLargeError: {
|
|
155
167
|
type: "setFileTooLargeError";
|
|
156
|
-
params:
|
|
157
|
-
};
|
|
158
|
-
setProgress: {
|
|
159
|
-
type: "setProgress";
|
|
160
|
-
params: xstate0.NonReducibleUnknown;
|
|
168
|
+
params: xstate136.NonReducibleUnknown;
|
|
161
169
|
};
|
|
162
170
|
setUploadError: {
|
|
163
171
|
type: "setUploadError";
|
|
164
|
-
params:
|
|
172
|
+
params: xstate136.NonReducibleUnknown;
|
|
165
173
|
};
|
|
166
174
|
setFinalizeError: {
|
|
167
175
|
type: "setFinalizeError";
|
|
168
|
-
params:
|
|
176
|
+
params: xstate136.NonReducibleUnknown;
|
|
169
177
|
};
|
|
170
178
|
decrementAttemptsRemaining: {
|
|
171
179
|
type: "decrementAttemptsRemaining";
|
|
172
|
-
params:
|
|
180
|
+
params: xstate136.NonReducibleUnknown;
|
|
173
181
|
};
|
|
174
182
|
setCaptureMethodFile: {
|
|
175
183
|
type: "setCaptureMethodFile";
|
|
176
|
-
params:
|
|
184
|
+
params: xstate136.NonReducibleUnknown;
|
|
177
185
|
};
|
|
178
186
|
setCaptureMethodCamera: {
|
|
179
187
|
type: "setCaptureMethodCamera";
|
|
180
|
-
params:
|
|
188
|
+
params: xstate136.NonReducibleUnknown;
|
|
181
189
|
};
|
|
182
190
|
setCaptureMethodGallery: {
|
|
183
191
|
type: "setCaptureMethodGallery";
|
|
184
|
-
params:
|
|
192
|
+
params: xstate136.NonReducibleUnknown;
|
|
185
193
|
};
|
|
186
194
|
clearCapturedDocument: {
|
|
187
195
|
type: "clearCapturedDocument";
|
|
188
|
-
params:
|
|
196
|
+
params: xstate136.NonReducibleUnknown;
|
|
189
197
|
};
|
|
190
198
|
resetPageNumber: {
|
|
191
199
|
type: "resetPageNumber";
|
|
192
|
-
params:
|
|
200
|
+
params: xstate136.NonReducibleUnknown;
|
|
193
201
|
};
|
|
194
202
|
clearCapturedDocumentGalleryRetake: {
|
|
195
203
|
type: "clearCapturedDocumentGalleryRetake";
|
|
196
|
-
params:
|
|
204
|
+
params: xstate136.NonReducibleUnknown;
|
|
197
205
|
};
|
|
198
206
|
setNextPageType: {
|
|
199
207
|
type: "setNextPageType";
|
|
200
|
-
params:
|
|
208
|
+
params: xstate136.NonReducibleUnknown;
|
|
201
209
|
};
|
|
202
210
|
clearForNextPage: {
|
|
203
211
|
type: "clearForNextPage";
|
|
204
|
-
params:
|
|
205
|
-
};
|
|
206
|
-
clearError: {
|
|
207
|
-
type: "clearError";
|
|
208
|
-
params: xstate0.NonReducibleUnknown;
|
|
212
|
+
params: xstate136.NonReducibleUnknown;
|
|
209
213
|
};
|
|
210
214
|
resetProgress: {
|
|
211
215
|
type: "resetProgress";
|
|
212
|
-
params:
|
|
213
|
-
};
|
|
214
|
-
stopStream: {
|
|
215
|
-
type: "stopStream";
|
|
216
|
-
params: xstate0.NonReducibleUnknown;
|
|
216
|
+
params: xstate136.NonReducibleUnknown;
|
|
217
217
|
};
|
|
218
|
-
}>,
|
|
218
|
+
}>, xstate136.Values<{
|
|
219
219
|
allowSkip: {
|
|
220
220
|
type: "allowSkip";
|
|
221
221
|
params: unknown;
|
|
@@ -268,7 +268,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
|
|
|
268
268
|
type: "fileSizeOkForNonGallery";
|
|
269
269
|
params: unknown;
|
|
270
270
|
};
|
|
271
|
-
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "
|
|
271
|
+
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "tutorial" | "preview" | "failure" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate136.NonReducibleUnknown, xstate136.EventObject, xstate136.MetaObject, {
|
|
272
272
|
readonly id: "documentCapture";
|
|
273
273
|
readonly initial: "tutorial";
|
|
274
274
|
readonly context: ({
|
|
@@ -277,93 +277,93 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
|
|
|
277
277
|
spawn: {
|
|
278
278
|
<TSrc extends "uploadDocument" | "initCamera" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
|
|
279
279
|
src: "uploadDocument";
|
|
280
|
-
logic:
|
|
280
|
+
logic: xstate136.PromiseActorLogic<DocumentUploadResponse, {
|
|
281
281
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
282
282
|
processingType: string;
|
|
283
283
|
onProgress: (progress: number) => void;
|
|
284
|
-
},
|
|
284
|
+
}, xstate136.EventObject>;
|
|
285
285
|
id: string | undefined;
|
|
286
286
|
} extends infer T ? T extends {
|
|
287
287
|
src: "uploadDocument";
|
|
288
|
-
logic:
|
|
288
|
+
logic: xstate136.PromiseActorLogic<DocumentUploadResponse, {
|
|
289
289
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
290
290
|
processingType: string;
|
|
291
291
|
onProgress: (progress: number) => void;
|
|
292
|
-
},
|
|
292
|
+
}, xstate136.EventObject>;
|
|
293
293
|
id: string | undefined;
|
|
294
294
|
} ? T extends {
|
|
295
295
|
src: TSrc;
|
|
296
|
-
} ?
|
|
296
|
+
} ? xstate136.ConditionalRequired<[options?: ({
|
|
297
297
|
id?: T["id"] | undefined;
|
|
298
298
|
systemId?: string;
|
|
299
|
-
input?:
|
|
299
|
+
input?: xstate136.InputFrom<T["logic"]> | undefined;
|
|
300
300
|
syncSnapshot?: boolean;
|
|
301
|
-
} & { [K in
|
|
301
|
+
} & { [K in xstate136.RequiredActorOptions<T>]: unknown }) | undefined], xstate136.IsNotNever<xstate136.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
302
302
|
src: "initCamera";
|
|
303
|
-
logic:
|
|
303
|
+
logic: xstate136.PromiseActorLogic<MediaStream, void, xstate136.EventObject>;
|
|
304
304
|
id: string | undefined;
|
|
305
305
|
} extends infer T_1 ? T_1 extends {
|
|
306
306
|
src: "initCamera";
|
|
307
|
-
logic:
|
|
307
|
+
logic: xstate136.PromiseActorLogic<MediaStream, void, xstate136.EventObject>;
|
|
308
308
|
id: string | undefined;
|
|
309
309
|
} ? T_1 extends {
|
|
310
310
|
src: TSrc;
|
|
311
|
-
} ?
|
|
311
|
+
} ? xstate136.ConditionalRequired<[options?: ({
|
|
312
312
|
id?: T_1["id"] | undefined;
|
|
313
313
|
systemId?: string;
|
|
314
|
-
input?:
|
|
314
|
+
input?: xstate136.InputFrom<T_1["logic"]> | undefined;
|
|
315
315
|
syncSnapshot?: boolean;
|
|
316
|
-
} & { [K_1 in
|
|
316
|
+
} & { [K_1 in xstate136.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate136.IsNotNever<xstate136.RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
317
317
|
src: "finalizeDocumentRequest";
|
|
318
|
-
logic:
|
|
318
|
+
logic: xstate136.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
319
319
|
processingType: string;
|
|
320
|
-
},
|
|
320
|
+
}, xstate136.EventObject>;
|
|
321
321
|
id: string | undefined;
|
|
322
322
|
} extends infer T_2 ? T_2 extends {
|
|
323
323
|
src: "finalizeDocumentRequest";
|
|
324
|
-
logic:
|
|
324
|
+
logic: xstate136.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
325
325
|
processingType: string;
|
|
326
|
-
},
|
|
326
|
+
}, xstate136.EventObject>;
|
|
327
327
|
id: string | undefined;
|
|
328
328
|
} ? T_2 extends {
|
|
329
329
|
src: TSrc;
|
|
330
|
-
} ?
|
|
330
|
+
} ? xstate136.ConditionalRequired<[options?: ({
|
|
331
331
|
id?: T_2["id"] | undefined;
|
|
332
332
|
systemId?: string;
|
|
333
|
-
input?:
|
|
333
|
+
input?: xstate136.InputFrom<T_2["logic"]> | undefined;
|
|
334
334
|
syncSnapshot?: boolean;
|
|
335
|
-
} & { [K_2 in
|
|
335
|
+
} & { [K_2 in xstate136.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate136.IsNotNever<xstate136.RequiredActorOptions<T_2>>> : never : never : never)): xstate136.ActorRefFromLogic<xstate136.GetConcreteByKey<xstate136.Values<{
|
|
336
336
|
uploadDocument: {
|
|
337
337
|
src: "uploadDocument";
|
|
338
|
-
logic:
|
|
338
|
+
logic: xstate136.PromiseActorLogic<DocumentUploadResponse, {
|
|
339
339
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
340
340
|
processingType: string;
|
|
341
341
|
onProgress: (progress: number) => void;
|
|
342
|
-
},
|
|
342
|
+
}, xstate136.EventObject>;
|
|
343
343
|
id: string | undefined;
|
|
344
344
|
};
|
|
345
345
|
initCamera: {
|
|
346
346
|
src: "initCamera";
|
|
347
|
-
logic:
|
|
347
|
+
logic: xstate136.PromiseActorLogic<MediaStream, void, xstate136.EventObject>;
|
|
348
348
|
id: string | undefined;
|
|
349
349
|
};
|
|
350
350
|
finalizeDocumentRequest: {
|
|
351
351
|
src: "finalizeDocumentRequest";
|
|
352
|
-
logic:
|
|
352
|
+
logic: xstate136.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
353
353
|
processingType: string;
|
|
354
|
-
},
|
|
354
|
+
}, xstate136.EventObject>;
|
|
355
355
|
id: string | undefined;
|
|
356
356
|
};
|
|
357
357
|
}>, "src", TSrc>["logic"]>;
|
|
358
|
-
<TLogic extends
|
|
358
|
+
<TLogic extends xstate136.AnyActorLogic>(src: TLogic, ...[options]: xstate136.ConditionalRequired<[options?: ({
|
|
359
359
|
id?: never;
|
|
360
360
|
systemId?: string;
|
|
361
|
-
input?:
|
|
361
|
+
input?: xstate136.InputFrom<TLogic> | undefined;
|
|
362
362
|
syncSnapshot?: boolean;
|
|
363
|
-
} & { [K in
|
|
363
|
+
} & { [K in xstate136.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate136.IsNotNever<xstate136.RequiredLogicInput<TLogic>>>): xstate136.ActorRefFromLogic<TLogic>;
|
|
364
364
|
};
|
|
365
365
|
input: DocumentCaptureInput;
|
|
366
|
-
self:
|
|
366
|
+
self: xstate136.ActorRef<xstate136.MachineSnapshot<DocumentCaptureContext, {
|
|
367
367
|
type: "CAPTURE";
|
|
368
368
|
} | {
|
|
369
369
|
type: "FILE_SELECTED";
|
|
@@ -391,7 +391,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
|
|
|
391
391
|
type: "SKIP";
|
|
392
392
|
} | {
|
|
393
393
|
type: "CLOSE";
|
|
394
|
-
}, Record<string,
|
|
394
|
+
}, Record<string, xstate136.AnyActorRef | undefined>, xstate136.StateValue, string, unknown, any, any>, {
|
|
395
395
|
type: "CAPTURE";
|
|
396
396
|
} | {
|
|
397
397
|
type: "FILE_SELECTED";
|
|
@@ -419,7 +419,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
|
|
|
419
419
|
type: "SKIP";
|
|
420
420
|
} | {
|
|
421
421
|
type: "CLOSE";
|
|
422
|
-
},
|
|
422
|
+
}, xstate136.AnyEventObject>;
|
|
423
423
|
}) => {
|
|
424
424
|
config: {
|
|
425
425
|
processingType: DocumentType;
|
|
@@ -570,7 +570,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
|
|
|
570
570
|
} | {
|
|
571
571
|
type: "CLOSE";
|
|
572
572
|
};
|
|
573
|
-
self:
|
|
573
|
+
self: xstate136.ActorRef<xstate136.MachineSnapshot<DocumentCaptureContext, {
|
|
574
574
|
type: "CAPTURE";
|
|
575
575
|
} | {
|
|
576
576
|
type: "FILE_SELECTED";
|
|
@@ -598,7 +598,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
|
|
|
598
598
|
type: "SKIP";
|
|
599
599
|
} | {
|
|
600
600
|
type: "CLOSE";
|
|
601
|
-
}, Record<string,
|
|
601
|
+
}, Record<string, xstate136.AnyActorRef>, xstate136.StateValue, string, unknown, any, any>, {
|
|
602
602
|
type: "CAPTURE";
|
|
603
603
|
} | {
|
|
604
604
|
type: "FILE_SELECTED";
|
|
@@ -626,7 +626,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
|
|
|
626
626
|
type: "SKIP";
|
|
627
627
|
} | {
|
|
628
628
|
type: "CLOSE";
|
|
629
|
-
},
|
|
629
|
+
}, xstate136.AnyEventObject>;
|
|
630
630
|
}) => {
|
|
631
631
|
capturedDocument: CapturedDocument;
|
|
632
632
|
processingType: DocumentType;
|
|
@@ -721,7 +721,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
|
|
|
721
721
|
} | {
|
|
722
722
|
type: "CLOSE";
|
|
723
723
|
};
|
|
724
|
-
self:
|
|
724
|
+
self: xstate136.ActorRef<xstate136.MachineSnapshot<DocumentCaptureContext, {
|
|
725
725
|
type: "CAPTURE";
|
|
726
726
|
} | {
|
|
727
727
|
type: "FILE_SELECTED";
|
|
@@ -749,7 +749,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
|
|
|
749
749
|
type: "SKIP";
|
|
750
750
|
} | {
|
|
751
751
|
type: "CLOSE";
|
|
752
|
-
}, Record<string,
|
|
752
|
+
}, Record<string, xstate136.AnyActorRef>, xstate136.StateValue, string, unknown, any, any>, {
|
|
753
753
|
type: "CAPTURE";
|
|
754
754
|
} | {
|
|
755
755
|
type: "FILE_SELECTED";
|
|
@@ -777,7 +777,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
|
|
|
777
777
|
type: "SKIP";
|
|
778
778
|
} | {
|
|
779
779
|
type: "CLOSE";
|
|
780
|
-
},
|
|
780
|
+
}, xstate136.AnyEventObject>;
|
|
781
781
|
}) => {
|
|
782
782
|
processingType: DocumentType;
|
|
783
783
|
};
|
|
@@ -2,10 +2,10 @@ import { t as Manager } from "./Manager-D9pehGyp.js";
|
|
|
2
2
|
import "./Actor-YjWTo26u.js";
|
|
3
3
|
import "./camera-B6UAKpM1.js";
|
|
4
4
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-DJSt3Ovt.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as xstate72 from "xstate";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
8
|
-
declare const documentUploadMachine:
|
|
8
|
+
declare const documentUploadMachine: xstate72.StateMachine<DocumentUploadContext, {
|
|
9
9
|
type: "START";
|
|
10
10
|
} | {
|
|
11
11
|
type: "CAPTURE";
|
|
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate736.StateMachine<DocumentUploadContex
|
|
|
18
18
|
} | {
|
|
19
19
|
type: "CLOSE";
|
|
20
20
|
}, {
|
|
21
|
-
[x: string]:
|
|
21
|
+
[x: string]: xstate72.ActorRefFromLogic<xstate72.PromiseActorLogic<void, {
|
|
22
22
|
imageBase64: string;
|
|
23
23
|
documentType: string;
|
|
24
24
|
onProgress: (progress: number) => void;
|
|
25
|
-
},
|
|
26
|
-
},
|
|
25
|
+
}, xstate72.EventObject>> | xstate72.ActorRefFromLogic<xstate72.PromiseActorLogic<MediaStream, void, xstate72.EventObject>> | undefined;
|
|
26
|
+
}, xstate72.Values<{
|
|
27
27
|
uploadDocument: {
|
|
28
28
|
src: "uploadDocument";
|
|
29
|
-
logic:
|
|
29
|
+
logic: xstate72.PromiseActorLogic<void, {
|
|
30
30
|
imageBase64: string;
|
|
31
31
|
documentType: string;
|
|
32
32
|
onProgress: (progress: number) => void;
|
|
33
|
-
},
|
|
33
|
+
}, xstate72.EventObject>;
|
|
34
34
|
id: string | undefined;
|
|
35
35
|
};
|
|
36
36
|
initCamera: {
|
|
37
37
|
src: "initCamera";
|
|
38
|
-
logic:
|
|
38
|
+
logic: xstate72.PromiseActorLogic<MediaStream, void, xstate72.EventObject>;
|
|
39
39
|
id: string | undefined;
|
|
40
40
|
};
|
|
41
|
-
}>,
|
|
41
|
+
}>, xstate72.Values<{
|
|
42
|
+
setError: {
|
|
43
|
+
type: "setError";
|
|
44
|
+
params: xstate72.NonReducibleUnknown;
|
|
45
|
+
};
|
|
42
46
|
setStream: {
|
|
43
47
|
type: "setStream";
|
|
44
|
-
params:
|
|
48
|
+
params: xstate72.NonReducibleUnknown;
|
|
49
|
+
};
|
|
50
|
+
setImageAndClearError: {
|
|
51
|
+
type: "setImageAndClearError";
|
|
52
|
+
params: xstate72.NonReducibleUnknown;
|
|
45
53
|
};
|
|
46
54
|
setProgress: {
|
|
47
55
|
type: "setProgress";
|
|
48
|
-
params:
|
|
56
|
+
params: xstate72.NonReducibleUnknown;
|
|
49
57
|
};
|
|
50
58
|
clearError: {
|
|
51
59
|
type: "clearError";
|
|
52
|
-
params:
|
|
60
|
+
params: xstate72.NonReducibleUnknown;
|
|
53
61
|
};
|
|
54
62
|
stopStream: {
|
|
55
63
|
type: "stopStream";
|
|
56
|
-
params:
|
|
57
|
-
};
|
|
58
|
-
setError: {
|
|
59
|
-
type: "setError";
|
|
60
|
-
params: xstate736.NonReducibleUnknown;
|
|
61
|
-
};
|
|
62
|
-
setImageAndClearError: {
|
|
63
|
-
type: "setImageAndClearError";
|
|
64
|
-
params: xstate736.NonReducibleUnknown;
|
|
64
|
+
params: xstate72.NonReducibleUnknown;
|
|
65
65
|
};
|
|
66
|
-
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput,
|
|
66
|
+
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate72.NonReducibleUnknown, xstate72.EventObject, xstate72.MetaObject, {
|
|
67
67
|
readonly id: "documentUpload";
|
|
68
68
|
readonly initial: "idle";
|
|
69
69
|
readonly context: ({
|
|
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate736.StateMachine<DocumentUploadContex
|
|
|
72
72
|
spawn: {
|
|
73
73
|
<TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
|
|
74
74
|
src: "uploadDocument";
|
|
75
|
-
logic:
|
|
75
|
+
logic: xstate72.PromiseActorLogic<void, {
|
|
76
76
|
imageBase64: string;
|
|
77
77
|
documentType: string;
|
|
78
78
|
onProgress: (progress: number) => void;
|
|
79
|
-
},
|
|
79
|
+
}, xstate72.EventObject>;
|
|
80
80
|
id: string | undefined;
|
|
81
81
|
} extends infer T ? T extends {
|
|
82
82
|
src: "uploadDocument";
|
|
83
|
-
logic:
|
|
83
|
+
logic: xstate72.PromiseActorLogic<void, {
|
|
84
84
|
imageBase64: string;
|
|
85
85
|
documentType: string;
|
|
86
86
|
onProgress: (progress: number) => void;
|
|
87
|
-
},
|
|
87
|
+
}, xstate72.EventObject>;
|
|
88
88
|
id: string | undefined;
|
|
89
89
|
} ? T extends {
|
|
90
90
|
src: TSrc;
|
|
91
|
-
} ?
|
|
91
|
+
} ? xstate72.ConditionalRequired<[options?: ({
|
|
92
92
|
id?: T["id"] | undefined;
|
|
93
93
|
systemId?: string;
|
|
94
|
-
input?:
|
|
94
|
+
input?: xstate72.InputFrom<T["logic"]> | undefined;
|
|
95
95
|
syncSnapshot?: boolean;
|
|
96
|
-
} & { [K in
|
|
96
|
+
} & { [K in xstate72.RequiredActorOptions<T>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
97
97
|
src: "initCamera";
|
|
98
|
-
logic:
|
|
98
|
+
logic: xstate72.PromiseActorLogic<MediaStream, void, xstate72.EventObject>;
|
|
99
99
|
id: string | undefined;
|
|
100
100
|
} extends infer T_1 ? T_1 extends {
|
|
101
101
|
src: "initCamera";
|
|
102
|
-
logic:
|
|
102
|
+
logic: xstate72.PromiseActorLogic<MediaStream, void, xstate72.EventObject>;
|
|
103
103
|
id: string | undefined;
|
|
104
104
|
} ? T_1 extends {
|
|
105
105
|
src: TSrc;
|
|
106
|
-
} ?
|
|
106
|
+
} ? xstate72.ConditionalRequired<[options?: ({
|
|
107
107
|
id?: T_1["id"] | undefined;
|
|
108
108
|
systemId?: string;
|
|
109
|
-
input?:
|
|
109
|
+
input?: xstate72.InputFrom<T_1["logic"]> | undefined;
|
|
110
110
|
syncSnapshot?: boolean;
|
|
111
|
-
} & { [K_1 in
|
|
111
|
+
} & { [K_1 in xstate72.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredActorOptions<T_1>>> : never : never : never)): xstate72.ActorRefFromLogic<xstate72.GetConcreteByKey<xstate72.Values<{
|
|
112
112
|
uploadDocument: {
|
|
113
113
|
src: "uploadDocument";
|
|
114
|
-
logic:
|
|
114
|
+
logic: xstate72.PromiseActorLogic<void, {
|
|
115
115
|
imageBase64: string;
|
|
116
116
|
documentType: string;
|
|
117
117
|
onProgress: (progress: number) => void;
|
|
118
|
-
},
|
|
118
|
+
}, xstate72.EventObject>;
|
|
119
119
|
id: string | undefined;
|
|
120
120
|
};
|
|
121
121
|
initCamera: {
|
|
122
122
|
src: "initCamera";
|
|
123
|
-
logic:
|
|
123
|
+
logic: xstate72.PromiseActorLogic<MediaStream, void, xstate72.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
};
|
|
126
126
|
}>, "src", TSrc>["logic"]>;
|
|
127
|
-
<TLogic extends
|
|
127
|
+
<TLogic extends xstate72.AnyActorLogic>(src: TLogic, ...[options]: xstate72.ConditionalRequired<[options?: ({
|
|
128
128
|
id?: never;
|
|
129
129
|
systemId?: string;
|
|
130
|
-
input?:
|
|
130
|
+
input?: xstate72.InputFrom<TLogic> | undefined;
|
|
131
131
|
syncSnapshot?: boolean;
|
|
132
|
-
} & { [K in
|
|
132
|
+
} & { [K in xstate72.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredLogicInput<TLogic>>>): xstate72.ActorRefFromLogic<TLogic>;
|
|
133
133
|
};
|
|
134
134
|
input: DocumentUploadInput;
|
|
135
|
-
self:
|
|
135
|
+
self: xstate72.ActorRef<xstate72.MachineSnapshot<DocumentUploadContext, {
|
|
136
136
|
type: "START";
|
|
137
137
|
} | {
|
|
138
138
|
type: "CAPTURE";
|
|
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate736.StateMachine<DocumentUploadContex
|
|
|
144
144
|
type: "RETRY";
|
|
145
145
|
} | {
|
|
146
146
|
type: "CLOSE";
|
|
147
|
-
}, Record<string,
|
|
147
|
+
}, Record<string, xstate72.AnyActorRef | undefined>, xstate72.StateValue, string, unknown, any, any>, {
|
|
148
148
|
type: "START";
|
|
149
149
|
} | {
|
|
150
150
|
type: "CAPTURE";
|
|
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate736.StateMachine<DocumentUploadContex
|
|
|
156
156
|
type: "RETRY";
|
|
157
157
|
} | {
|
|
158
158
|
type: "CLOSE";
|
|
159
|
-
},
|
|
159
|
+
}, xstate72.AnyEventObject>;
|
|
160
160
|
}) => {
|
|
161
161
|
config: DocumentUploadConfig;
|
|
162
162
|
stream: undefined;
|
|
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate736.StateMachine<DocumentUploadContex
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "CLOSE";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate72.ActorRef<xstate72.MachineSnapshot<DocumentUploadContext, {
|
|
230
230
|
type: "START";
|
|
231
231
|
} | {
|
|
232
232
|
type: "CAPTURE";
|
|
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate736.StateMachine<DocumentUploadContex
|
|
|
238
238
|
type: "RETRY";
|
|
239
239
|
} | {
|
|
240
240
|
type: "CLOSE";
|
|
241
|
-
}, Record<string,
|
|
241
|
+
}, Record<string, xstate72.AnyActorRef>, xstate72.StateValue, string, unknown, any, any>, {
|
|
242
242
|
type: "START";
|
|
243
243
|
} | {
|
|
244
244
|
type: "CAPTURE";
|
|
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate736.StateMachine<DocumentUploadContex
|
|
|
250
250
|
type: "RETRY";
|
|
251
251
|
} | {
|
|
252
252
|
type: "CLOSE";
|
|
253
|
-
},
|
|
253
|
+
}, xstate72.AnyEventObject>;
|
|
254
254
|
}) => {
|
|
255
255
|
imageBase64: string;
|
|
256
256
|
documentType: string;
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -2,13 +2,13 @@ import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
|
|
|
2
2
|
import "./api-eqRXuVG-.esm.js";
|
|
3
3
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
|
|
4
4
|
import "./endpoints-B3V1U9Dg.esm.js";
|
|
5
|
-
import "./session-
|
|
5
|
+
import "./session-CsUswFcx.esm.js";
|
|
6
6
|
import "./IpifyProvider-ByL6JYxg.esm.js";
|
|
7
7
|
import "./browserSimulation-CAH-V_iE.esm.js";
|
|
8
8
|
import { a as createActor, o as createManager } from "./xstate.esm-C19_S3_9.esm.js";
|
|
9
|
-
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-
|
|
9
|
+
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-CIVtmica.esm.js";
|
|
10
10
|
import "./addressSearch-DGVL5bWp.esm.js";
|
|
11
|
-
import "./flowServices-
|
|
11
|
+
import "./flowServices-BZnDn46f.esm.js";
|
|
12
12
|
|
|
13
13
|
//#region src/modules/ekyb/ekybActor.ts
|
|
14
14
|
/**
|
|
@@ -2,7 +2,7 @@ import { t as api } from "./api-eqRXuVG-.esm.js";
|
|
|
2
2
|
import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
|
|
3
3
|
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-C19_S3_9.esm.js";
|
|
4
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-DGVL5bWp.esm.js";
|
|
5
|
-
import { t as getFlow } from "./flowServices-
|
|
5
|
+
import { t as getFlow } from "./flowServices-BZnDn46f.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
8
8
|
const UBO_INPUT_LIMIT = 8;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./Manager-D9pehGyp.js";
|
|
2
2
|
import "./Actor-YjWTo26u.js";
|
|
3
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-
|
|
3
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-C62kGS4J.js";
|
|
4
4
|
export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
|
@@ -4,7 +4,7 @@ import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
|
|
|
4
4
|
import "./api-eqRXuVG-.esm.js";
|
|
5
5
|
import "./events-Bt1azl2B.esm.js";
|
|
6
6
|
import "./endpoints-B3V1U9Dg.esm.js";
|
|
7
|
-
import { a as FingerprintProvider, o as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-
|
|
7
|
+
import { a as FingerprintProvider, o as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-CsUswFcx.esm.js";
|
|
8
8
|
import { t as IpifyProvider } from "./IpifyProvider-ByL6JYxg.esm.js";
|
|
9
9
|
import "./browserSimulation-CAH-V_iE.esm.js";
|
|
10
10
|
import { a as createActor, i as fromPromise } from "./xstate.esm-C19_S3_9.esm.js";
|
|
@@ -28,8 +28,8 @@ import "./emailStateMachine-CfL8um8y.esm.js";
|
|
|
28
28
|
import { n as createEmailManagerFromActor } from "./emailManager-Dcdv3r8N.esm.js";
|
|
29
29
|
import "./selfieStateMachine-DPHgsHPA.esm.js";
|
|
30
30
|
import { n as createSelfieManagerFromActor } from "./selfieManager-Bh9G13aS.esm.js";
|
|
31
|
-
import "./idCaptureStateMachine-
|
|
32
|
-
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
31
|
+
import "./idCaptureStateMachine-DERHrSfV.esm.js";
|
|
32
|
+
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-Dnvp0tN7.esm.js";
|
|
33
33
|
import "./phoneStateMachine-B0KqPCut.esm.js";
|
|
34
34
|
import { n as createPhoneManagerFromActor } from "./phoneManager-CBupL3Zp.esm.js";
|
|
35
35
|
|