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