@incodetech/core 0.0.0-dev-20260709-e9d0614f → 0.0.0-dev-20260709-b47a5418
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/authentication.esm.js +6 -6
- package/dist/{authenticationManager-Bfeq_w07.esm.js → authenticationManager-CrCpRzKm.esm.js} +2 -2
- package/dist/{authenticationStateMachine-BkWA4Vcm.esm.js → authenticationStateMachine-BqQ4jILd.esm.js} +2 -2
- package/dist/certificate-issuance.d.ts +28 -28
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-IkH3cHQp.d.ts → consentManager-Cz54Z6i8.d.ts} +47 -47
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-It-dKOPr.d.ts → cpfOcrManager-egf2L0Et.d.ts} +17 -17
- package/dist/{deepsightLoader--uzeMW0e.esm.js → deepsightLoader-Dwgrblwe.esm.js} +1 -1
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +46 -46
- package/dist/{documentCaptureManager-Dwup6SOP.esm.js → documentCaptureManager-DaJ3Er53.esm.js} +1 -1
- package/dist/{documentCaptureManager-Do3W64nY.d.ts → documentCaptureManager-KfeQEXwP.d.ts} +234 -236
- package/dist/{documentCaptureStateMachine-BuI5VuAW.esm.js → documentCaptureStateMachine-Pw-GbvMS.esm.js} +13 -15
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-DHRXWhGA.esm.js → ekybStateMachine-d-Eu69wp.esm.js} +1 -1
- package/dist/extensibility.d.ts +8 -8
- package/dist/extensibility.esm.js +13 -13
- package/dist/face-match.d.ts +1 -1
- package/dist/{faceCaptureManagerFactory-Clc6JTUL.esm.js → faceCaptureManagerFactory-CnCoDn0v.esm.js} +1 -1
- package/dist/{faceCaptureSetup--0RKZXes.esm.js → faceCaptureSetup-BNnUPINS.esm.js} +2 -2
- package/dist/{faceMatchManager-BLNrKbeI.d.ts → faceMatchManager-ClcTacy6.d.ts} +2 -2
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-DDK4bMXx.esm.js → flowServices-DQV82Ari.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-verification.d.ts +1 -1
- package/dist/id.esm.js +5 -5
- package/dist/{idCaptureManager-Dz6au7T1.esm.js → idCaptureManager-Cm9TVxFh.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-COqpgiFu.esm.js → idCaptureStateMachine-C0wNFuN5.esm.js} +4 -4
- package/dist/{idOcrManager-Ddj8Zpn6.d.ts → idOcrManager-Cuz3gzuq.d.ts} +52 -52
- package/dist/{idVerificationManager-DLeCBgHE.d.ts → idVerificationManager-Ch4xDk3q.d.ts} +25 -25
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-CQ0uu66M.d.ts → identityReuseManager-CF1J6w_E.d.ts} +31 -31
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BvjgzOv_.d.ts → mandatoryConsentManager-DgWOLdYs.d.ts} +50 -50
- package/dist/{onDeviceFaceResults-Dt_GP4Ez.esm.js → onDeviceFaceResults-EQ_EwGuY.esm.js} +1 -1
- package/dist/personhood.esm.js +2 -2
- package/dist/{recordingService-AMay1uYQ.esm.js → recordingService-BOyBDz2Y.esm.js} +1 -1
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieManager-8oeew8KZ.esm.js → selfieManager-Bg7v7DyA.esm.js} +2 -2
- package/dist/{selfieStateMachine-xJehn2CW.esm.js → selfieStateMachine-B_sGFJ1u.esm.js} +2 -2
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-D_TErCvg.esm.js → sessionInitializer-DUpvNbc5.esm.js} +1 -1
- package/dist/{setup-DrcSOE02.esm.js → setup-Bw3EE38x.esm.js} +1 -1
- package/dist/trust-graph.d.ts +2 -2
- package/dist/video-selfie.d.ts +2 -2
- package/dist/video-selfie.esm.js +3 -3
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +105 -105
- package/dist/workflow.esm.js +10 -10
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import { t as Manager } from "./Manager-Nf1FHI2l.js";
|
|
|
2
2
|
import { t as ActorRefFrom } from "./Actor-CVuNUOJR.js";
|
|
3
3
|
import { t as CameraStream } from "./camera-BKIKKx_i.js";
|
|
4
4
|
import { n as PermissionStatus, t as PermissionResult } from "./types-4Zm5rOiY.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as xstate659 from "xstate";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/document-capture/types.d.ts
|
|
8
8
|
type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
|
|
@@ -107,7 +107,7 @@ type DocumentCaptureInput = {
|
|
|
107
107
|
};
|
|
108
108
|
//#endregion
|
|
109
109
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
110
|
-
declare const documentCaptureMachine:
|
|
110
|
+
declare const documentCaptureMachine: xstate659.StateMachine<DocumentCaptureContext, {
|
|
111
111
|
type: "CAPTURE";
|
|
112
112
|
} | {
|
|
113
113
|
type: "FILE_SELECTED";
|
|
@@ -154,145 +154,145 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
154
154
|
} | {
|
|
155
155
|
type: "CLOSE";
|
|
156
156
|
}, {
|
|
157
|
-
[x: string]:
|
|
157
|
+
[x: string]: xstate659.ActorRefFromLogic<xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>> | xstate659.ActorRefFromLogic<xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
158
158
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
159
159
|
processingType: string;
|
|
160
160
|
onProgress: (progress: number) => void;
|
|
161
|
-
},
|
|
161
|
+
}, xstate659.EventObject>> | xstate659.ActorRefFromLogic<xstate659.PromiseActorLogic<PermissionResult, {
|
|
162
162
|
permissionResult?: PermissionResult;
|
|
163
163
|
requestMotionPermission: boolean;
|
|
164
|
-
},
|
|
164
|
+
}, xstate659.EventObject>> | xstate659.ActorRefFromLogic<xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>> | xstate659.ActorRefFromLogic<xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
165
165
|
processingType: string;
|
|
166
|
-
},
|
|
167
|
-
},
|
|
166
|
+
}, xstate659.EventObject>> | undefined;
|
|
167
|
+
}, xstate659.Values<{
|
|
168
168
|
uploadDocument: {
|
|
169
169
|
src: "uploadDocument";
|
|
170
|
-
logic:
|
|
170
|
+
logic: xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
171
171
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
172
172
|
processingType: string;
|
|
173
173
|
onProgress: (progress: number) => void;
|
|
174
|
-
},
|
|
174
|
+
}, xstate659.EventObject>;
|
|
175
175
|
id: string | undefined;
|
|
176
176
|
};
|
|
177
177
|
requestPermission: {
|
|
178
178
|
src: "requestPermission";
|
|
179
|
-
logic:
|
|
179
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, {
|
|
180
180
|
permissionResult?: PermissionResult;
|
|
181
181
|
requestMotionPermission: boolean;
|
|
182
|
-
},
|
|
183
|
-
id: string | undefined;
|
|
184
|
-
};
|
|
185
|
-
checkPermission: {
|
|
186
|
-
src: "checkPermission";
|
|
187
|
-
logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
|
|
182
|
+
}, xstate659.EventObject>;
|
|
188
183
|
id: string | undefined;
|
|
189
184
|
};
|
|
190
185
|
initCamera: {
|
|
191
186
|
src: "initCamera";
|
|
192
|
-
logic:
|
|
187
|
+
logic: xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>;
|
|
188
|
+
id: string | undefined;
|
|
189
|
+
};
|
|
190
|
+
checkPermission: {
|
|
191
|
+
src: "checkPermission";
|
|
192
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>;
|
|
193
193
|
id: string | undefined;
|
|
194
194
|
};
|
|
195
195
|
finalizeDocumentRequest: {
|
|
196
196
|
src: "finalizeDocumentRequest";
|
|
197
|
-
logic:
|
|
197
|
+
logic: xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
198
198
|
processingType: string;
|
|
199
|
-
},
|
|
199
|
+
}, xstate659.EventObject>;
|
|
200
200
|
id: string | undefined;
|
|
201
201
|
};
|
|
202
|
-
}>,
|
|
202
|
+
}>, xstate659.Values<{
|
|
203
|
+
clearError: {
|
|
204
|
+
type: "clearError";
|
|
205
|
+
params: xstate659.NonReducibleUnknown;
|
|
206
|
+
};
|
|
203
207
|
setStream: {
|
|
204
208
|
type: "setStream";
|
|
205
|
-
params:
|
|
209
|
+
params: xstate659.NonReducibleUnknown;
|
|
210
|
+
};
|
|
211
|
+
setProgress: {
|
|
212
|
+
type: "setProgress";
|
|
213
|
+
params: xstate659.NonReducibleUnknown;
|
|
214
|
+
};
|
|
215
|
+
stopStream: {
|
|
216
|
+
type: "stopStream";
|
|
217
|
+
params: xstate659.NonReducibleUnknown;
|
|
206
218
|
};
|
|
207
219
|
setCapturedDocument: {
|
|
208
220
|
type: "setCapturedDocument";
|
|
209
|
-
params:
|
|
221
|
+
params: xstate659.NonReducibleUnknown;
|
|
210
222
|
};
|
|
211
223
|
setFileTooLargeError: {
|
|
212
224
|
type: "setFileTooLargeError";
|
|
213
|
-
params:
|
|
214
|
-
};
|
|
215
|
-
setProgress: {
|
|
216
|
-
type: "setProgress";
|
|
217
|
-
params: xstate615.NonReducibleUnknown;
|
|
225
|
+
params: xstate659.NonReducibleUnknown;
|
|
218
226
|
};
|
|
219
227
|
setUploadError: {
|
|
220
228
|
type: "setUploadError";
|
|
221
|
-
params:
|
|
229
|
+
params: xstate659.NonReducibleUnknown;
|
|
222
230
|
};
|
|
223
231
|
setFinalizeError: {
|
|
224
232
|
type: "setFinalizeError";
|
|
225
|
-
params:
|
|
233
|
+
params: xstate659.NonReducibleUnknown;
|
|
226
234
|
};
|
|
227
235
|
decrementAttemptsRemaining: {
|
|
228
236
|
type: "decrementAttemptsRemaining";
|
|
229
|
-
params:
|
|
237
|
+
params: xstate659.NonReducibleUnknown;
|
|
230
238
|
};
|
|
231
239
|
setCaptureMethodFile: {
|
|
232
240
|
type: "setCaptureMethodFile";
|
|
233
|
-
params:
|
|
241
|
+
params: xstate659.NonReducibleUnknown;
|
|
234
242
|
};
|
|
235
243
|
setCaptureMethodCamera: {
|
|
236
244
|
type: "setCaptureMethodCamera";
|
|
237
|
-
params:
|
|
245
|
+
params: xstate659.NonReducibleUnknown;
|
|
238
246
|
};
|
|
239
247
|
setCaptureMethodGallery: {
|
|
240
248
|
type: "setCaptureMethodGallery";
|
|
241
|
-
params:
|
|
249
|
+
params: xstate659.NonReducibleUnknown;
|
|
242
250
|
};
|
|
243
251
|
clearCaptureMethod: {
|
|
244
252
|
type: "clearCaptureMethod";
|
|
245
|
-
params:
|
|
253
|
+
params: xstate659.NonReducibleUnknown;
|
|
246
254
|
};
|
|
247
255
|
openMethodSelection: {
|
|
248
256
|
type: "openMethodSelection";
|
|
249
|
-
params:
|
|
257
|
+
params: xstate659.NonReducibleUnknown;
|
|
250
258
|
};
|
|
251
259
|
closeMethodSelection: {
|
|
252
260
|
type: "closeMethodSelection";
|
|
253
|
-
params:
|
|
261
|
+
params: xstate659.NonReducibleUnknown;
|
|
254
262
|
};
|
|
255
263
|
openHelp: {
|
|
256
264
|
type: "openHelp";
|
|
257
|
-
params:
|
|
265
|
+
params: xstate659.NonReducibleUnknown;
|
|
258
266
|
};
|
|
259
267
|
closeHelp: {
|
|
260
268
|
type: "closeHelp";
|
|
261
|
-
params:
|
|
269
|
+
params: xstate659.NonReducibleUnknown;
|
|
262
270
|
};
|
|
263
271
|
clearCapturedDocument: {
|
|
264
272
|
type: "clearCapturedDocument";
|
|
265
|
-
params:
|
|
273
|
+
params: xstate659.NonReducibleUnknown;
|
|
266
274
|
};
|
|
267
275
|
resetPageNumber: {
|
|
268
276
|
type: "resetPageNumber";
|
|
269
|
-
params:
|
|
277
|
+
params: xstate659.NonReducibleUnknown;
|
|
270
278
|
};
|
|
271
279
|
clearCapturedDocumentGalleryRetake: {
|
|
272
280
|
type: "clearCapturedDocumentGalleryRetake";
|
|
273
|
-
params:
|
|
281
|
+
params: xstate659.NonReducibleUnknown;
|
|
274
282
|
};
|
|
275
283
|
setNextPageType: {
|
|
276
284
|
type: "setNextPageType";
|
|
277
|
-
params:
|
|
285
|
+
params: xstate659.NonReducibleUnknown;
|
|
278
286
|
};
|
|
279
287
|
clearForNextPage: {
|
|
280
288
|
type: "clearForNextPage";
|
|
281
|
-
params:
|
|
282
|
-
};
|
|
283
|
-
clearError: {
|
|
284
|
-
type: "clearError";
|
|
285
|
-
params: xstate615.NonReducibleUnknown;
|
|
289
|
+
params: xstate659.NonReducibleUnknown;
|
|
286
290
|
};
|
|
287
291
|
resetProgress: {
|
|
288
292
|
type: "resetProgress";
|
|
289
|
-
params:
|
|
290
|
-
};
|
|
291
|
-
stopStream: {
|
|
292
|
-
type: "stopStream";
|
|
293
|
-
params: xstate615.NonReducibleUnknown;
|
|
293
|
+
params: xstate659.NonReducibleUnknown;
|
|
294
294
|
};
|
|
295
|
-
}>,
|
|
295
|
+
}>, xstate659.Values<{
|
|
296
296
|
allowSkip: {
|
|
297
297
|
type: "allowSkip";
|
|
298
298
|
params: unknown;
|
|
@@ -353,153 +353,153 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
353
353
|
type: "fileSizeOkForNonGallery";
|
|
354
354
|
params: unknown;
|
|
355
355
|
};
|
|
356
|
-
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "
|
|
356
|
+
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "tutorial" | "preview" | "failure" | "nextPage" | "finalizing" | {
|
|
357
357
|
permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
|
|
358
|
-
}, string, DocumentCaptureInput,
|
|
358
|
+
}, string, DocumentCaptureInput, xstate659.NonReducibleUnknown, xstate659.EventObject, xstate659.MetaObject, {
|
|
359
359
|
readonly id: "documentCapture";
|
|
360
360
|
readonly initial: "tutorial";
|
|
361
361
|
readonly context: ({
|
|
362
362
|
input
|
|
363
363
|
}: {
|
|
364
364
|
spawn: {
|
|
365
|
-
<TSrc extends "uploadDocument" | "requestPermission" | "
|
|
365
|
+
<TSrc extends "uploadDocument" | "requestPermission" | "initCamera" | "checkPermission" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
|
|
366
366
|
src: "uploadDocument";
|
|
367
|
-
logic:
|
|
367
|
+
logic: xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
368
368
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
369
369
|
processingType: string;
|
|
370
370
|
onProgress: (progress: number) => void;
|
|
371
|
-
},
|
|
371
|
+
}, xstate659.EventObject>;
|
|
372
372
|
id: string | undefined;
|
|
373
373
|
} extends infer T ? T extends {
|
|
374
374
|
src: "uploadDocument";
|
|
375
|
-
logic:
|
|
375
|
+
logic: xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
376
376
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
377
377
|
processingType: string;
|
|
378
378
|
onProgress: (progress: number) => void;
|
|
379
|
-
},
|
|
379
|
+
}, xstate659.EventObject>;
|
|
380
380
|
id: string | undefined;
|
|
381
381
|
} ? T extends {
|
|
382
382
|
src: TSrc;
|
|
383
|
-
} ?
|
|
383
|
+
} ? xstate659.ConditionalRequired<[options?: ({
|
|
384
384
|
id?: T["id"] | undefined;
|
|
385
385
|
systemId?: string;
|
|
386
|
-
input?:
|
|
386
|
+
input?: xstate659.InputFrom<T["logic"]> | undefined;
|
|
387
387
|
syncSnapshot?: boolean;
|
|
388
|
-
} & { [K in
|
|
388
|
+
} & { [K in xstate659.RequiredActorOptions<T>]: unknown }) | undefined], xstate659.IsNotNever<xstate659.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
389
389
|
src: "requestPermission";
|
|
390
|
-
logic:
|
|
390
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, {
|
|
391
391
|
permissionResult?: PermissionResult;
|
|
392
392
|
requestMotionPermission: boolean;
|
|
393
|
-
},
|
|
393
|
+
}, xstate659.EventObject>;
|
|
394
394
|
id: string | undefined;
|
|
395
395
|
} extends infer T_1 ? T_1 extends {
|
|
396
396
|
src: "requestPermission";
|
|
397
|
-
logic:
|
|
397
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, {
|
|
398
398
|
permissionResult?: PermissionResult;
|
|
399
399
|
requestMotionPermission: boolean;
|
|
400
|
-
},
|
|
400
|
+
}, xstate659.EventObject>;
|
|
401
401
|
id: string | undefined;
|
|
402
402
|
} ? T_1 extends {
|
|
403
403
|
src: TSrc;
|
|
404
|
-
} ?
|
|
404
|
+
} ? xstate659.ConditionalRequired<[options?: ({
|
|
405
405
|
id?: T_1["id"] | undefined;
|
|
406
406
|
systemId?: string;
|
|
407
|
-
input?:
|
|
407
|
+
input?: xstate659.InputFrom<T_1["logic"]> | undefined;
|
|
408
408
|
syncSnapshot?: boolean;
|
|
409
|
-
} & { [K_1 in
|
|
410
|
-
src: "
|
|
411
|
-
logic:
|
|
409
|
+
} & { [K_1 in xstate659.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate659.IsNotNever<xstate659.RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
410
|
+
src: "initCamera";
|
|
411
|
+
logic: xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>;
|
|
412
412
|
id: string | undefined;
|
|
413
413
|
} extends infer T_2 ? T_2 extends {
|
|
414
|
-
src: "
|
|
415
|
-
logic:
|
|
414
|
+
src: "initCamera";
|
|
415
|
+
logic: xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>;
|
|
416
416
|
id: string | undefined;
|
|
417
417
|
} ? T_2 extends {
|
|
418
418
|
src: TSrc;
|
|
419
|
-
} ?
|
|
419
|
+
} ? xstate659.ConditionalRequired<[options?: ({
|
|
420
420
|
id?: T_2["id"] | undefined;
|
|
421
421
|
systemId?: string;
|
|
422
|
-
input?:
|
|
422
|
+
input?: xstate659.InputFrom<T_2["logic"]> | undefined;
|
|
423
423
|
syncSnapshot?: boolean;
|
|
424
|
-
} & { [K_2 in
|
|
425
|
-
src: "
|
|
426
|
-
logic:
|
|
424
|
+
} & { [K_2 in xstate659.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate659.IsNotNever<xstate659.RequiredActorOptions<T_2>>> : never : never : never) | ({
|
|
425
|
+
src: "checkPermission";
|
|
426
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>;
|
|
427
427
|
id: string | undefined;
|
|
428
428
|
} extends infer T_3 ? T_3 extends {
|
|
429
|
-
src: "
|
|
430
|
-
logic:
|
|
429
|
+
src: "checkPermission";
|
|
430
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>;
|
|
431
431
|
id: string | undefined;
|
|
432
432
|
} ? T_3 extends {
|
|
433
433
|
src: TSrc;
|
|
434
|
-
} ?
|
|
434
|
+
} ? xstate659.ConditionalRequired<[options?: ({
|
|
435
435
|
id?: T_3["id"] | undefined;
|
|
436
436
|
systemId?: string;
|
|
437
|
-
input?:
|
|
437
|
+
input?: xstate659.InputFrom<T_3["logic"]> | undefined;
|
|
438
438
|
syncSnapshot?: boolean;
|
|
439
|
-
} & { [K_3 in
|
|
439
|
+
} & { [K_3 in xstate659.RequiredActorOptions<T_3>]: unknown }) | undefined], xstate659.IsNotNever<xstate659.RequiredActorOptions<T_3>>> : never : never : never) | ({
|
|
440
440
|
src: "finalizeDocumentRequest";
|
|
441
|
-
logic:
|
|
441
|
+
logic: xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
442
442
|
processingType: string;
|
|
443
|
-
},
|
|
443
|
+
}, xstate659.EventObject>;
|
|
444
444
|
id: string | undefined;
|
|
445
445
|
} extends infer T_4 ? T_4 extends {
|
|
446
446
|
src: "finalizeDocumentRequest";
|
|
447
|
-
logic:
|
|
447
|
+
logic: xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
448
448
|
processingType: string;
|
|
449
|
-
},
|
|
449
|
+
}, xstate659.EventObject>;
|
|
450
450
|
id: string | undefined;
|
|
451
451
|
} ? T_4 extends {
|
|
452
452
|
src: TSrc;
|
|
453
|
-
} ?
|
|
453
|
+
} ? xstate659.ConditionalRequired<[options?: ({
|
|
454
454
|
id?: T_4["id"] | undefined;
|
|
455
455
|
systemId?: string;
|
|
456
|
-
input?:
|
|
456
|
+
input?: xstate659.InputFrom<T_4["logic"]> | undefined;
|
|
457
457
|
syncSnapshot?: boolean;
|
|
458
|
-
} & { [K_4 in
|
|
458
|
+
} & { [K_4 in xstate659.RequiredActorOptions<T_4>]: unknown }) | undefined], xstate659.IsNotNever<xstate659.RequiredActorOptions<T_4>>> : never : never : never)): xstate659.ActorRefFromLogic<xstate659.GetConcreteByKey<xstate659.Values<{
|
|
459
459
|
uploadDocument: {
|
|
460
460
|
src: "uploadDocument";
|
|
461
|
-
logic:
|
|
461
|
+
logic: xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
462
462
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
463
463
|
processingType: string;
|
|
464
464
|
onProgress: (progress: number) => void;
|
|
465
|
-
},
|
|
465
|
+
}, xstate659.EventObject>;
|
|
466
466
|
id: string | undefined;
|
|
467
467
|
};
|
|
468
468
|
requestPermission: {
|
|
469
469
|
src: "requestPermission";
|
|
470
|
-
logic:
|
|
470
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, {
|
|
471
471
|
permissionResult?: PermissionResult;
|
|
472
472
|
requestMotionPermission: boolean;
|
|
473
|
-
},
|
|
474
|
-
id: string | undefined;
|
|
475
|
-
};
|
|
476
|
-
checkPermission: {
|
|
477
|
-
src: "checkPermission";
|
|
478
|
-
logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
|
|
473
|
+
}, xstate659.EventObject>;
|
|
479
474
|
id: string | undefined;
|
|
480
475
|
};
|
|
481
476
|
initCamera: {
|
|
482
477
|
src: "initCamera";
|
|
483
|
-
logic:
|
|
478
|
+
logic: xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>;
|
|
479
|
+
id: string | undefined;
|
|
480
|
+
};
|
|
481
|
+
checkPermission: {
|
|
482
|
+
src: "checkPermission";
|
|
483
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>;
|
|
484
484
|
id: string | undefined;
|
|
485
485
|
};
|
|
486
486
|
finalizeDocumentRequest: {
|
|
487
487
|
src: "finalizeDocumentRequest";
|
|
488
|
-
logic:
|
|
488
|
+
logic: xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
489
489
|
processingType: string;
|
|
490
|
-
},
|
|
490
|
+
}, xstate659.EventObject>;
|
|
491
491
|
id: string | undefined;
|
|
492
492
|
};
|
|
493
493
|
}>, "src", TSrc>["logic"]>;
|
|
494
|
-
<TLogic extends
|
|
494
|
+
<TLogic extends xstate659.AnyActorLogic>(src: TLogic, ...[options]: xstate659.ConditionalRequired<[options?: ({
|
|
495
495
|
id?: never;
|
|
496
496
|
systemId?: string;
|
|
497
|
-
input?:
|
|
497
|
+
input?: xstate659.InputFrom<TLogic> | undefined;
|
|
498
498
|
syncSnapshot?: boolean;
|
|
499
|
-
} & { [K in
|
|
499
|
+
} & { [K in xstate659.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate659.IsNotNever<xstate659.RequiredLogicInput<TLogic>>>): xstate659.ActorRefFromLogic<TLogic>;
|
|
500
500
|
};
|
|
501
501
|
input: DocumentCaptureInput;
|
|
502
|
-
self:
|
|
502
|
+
self: xstate659.ActorRef<xstate659.MachineSnapshot<DocumentCaptureContext, {
|
|
503
503
|
type: "CAPTURE";
|
|
504
504
|
} | {
|
|
505
505
|
type: "FILE_SELECTED";
|
|
@@ -545,7 +545,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
545
545
|
type: "BACK";
|
|
546
546
|
} | {
|
|
547
547
|
type: "CLOSE";
|
|
548
|
-
}, Record<string,
|
|
548
|
+
}, Record<string, xstate659.AnyActorRef | undefined>, xstate659.StateValue, string, unknown, any, any>, {
|
|
549
549
|
type: "CAPTURE";
|
|
550
550
|
} | {
|
|
551
551
|
type: "FILE_SELECTED";
|
|
@@ -591,7 +591,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
591
591
|
type: "BACK";
|
|
592
592
|
} | {
|
|
593
593
|
type: "CLOSE";
|
|
594
|
-
},
|
|
594
|
+
}, xstate659.AnyEventObject>;
|
|
595
595
|
}) => {
|
|
596
596
|
config: {
|
|
597
597
|
processingType: DocumentType;
|
|
@@ -669,7 +669,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
669
669
|
readonly onDone: readonly [{
|
|
670
670
|
readonly target: "#documentCapture.initCamera";
|
|
671
671
|
readonly guard: "isCameraPermissionGranted";
|
|
672
|
-
readonly actions:
|
|
672
|
+
readonly actions: xstate659.ActionFunction<DocumentCaptureContext, xstate659.DoneActorEvent<PermissionResult, string>, {
|
|
673
673
|
type: "CAPTURE";
|
|
674
674
|
} | {
|
|
675
675
|
type: "FILE_SELECTED";
|
|
@@ -715,46 +715,46 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
715
715
|
type: "BACK";
|
|
716
716
|
} | {
|
|
717
717
|
type: "CLOSE";
|
|
718
|
-
}, undefined,
|
|
718
|
+
}, undefined, xstate659.Values<{
|
|
719
719
|
uploadDocument: {
|
|
720
720
|
src: "uploadDocument";
|
|
721
|
-
logic:
|
|
721
|
+
logic: xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
722
722
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
723
723
|
processingType: string;
|
|
724
724
|
onProgress: (progress: number) => void;
|
|
725
|
-
},
|
|
725
|
+
}, xstate659.EventObject>;
|
|
726
726
|
id: string | undefined;
|
|
727
727
|
};
|
|
728
728
|
requestPermission: {
|
|
729
729
|
src: "requestPermission";
|
|
730
|
-
logic:
|
|
730
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, {
|
|
731
731
|
permissionResult?: PermissionResult;
|
|
732
732
|
requestMotionPermission: boolean;
|
|
733
|
-
},
|
|
734
|
-
id: string | undefined;
|
|
735
|
-
};
|
|
736
|
-
checkPermission: {
|
|
737
|
-
src: "checkPermission";
|
|
738
|
-
logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
|
|
733
|
+
}, xstate659.EventObject>;
|
|
739
734
|
id: string | undefined;
|
|
740
735
|
};
|
|
741
736
|
initCamera: {
|
|
742
737
|
src: "initCamera";
|
|
743
|
-
logic:
|
|
738
|
+
logic: xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>;
|
|
739
|
+
id: string | undefined;
|
|
740
|
+
};
|
|
741
|
+
checkPermission: {
|
|
742
|
+
src: "checkPermission";
|
|
743
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>;
|
|
744
744
|
id: string | undefined;
|
|
745
745
|
};
|
|
746
746
|
finalizeDocumentRequest: {
|
|
747
747
|
src: "finalizeDocumentRequest";
|
|
748
|
-
logic:
|
|
748
|
+
logic: xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
749
749
|
processingType: string;
|
|
750
|
-
},
|
|
750
|
+
}, xstate659.EventObject>;
|
|
751
751
|
id: string | undefined;
|
|
752
752
|
};
|
|
753
753
|
}>, never, never, never, never>;
|
|
754
754
|
}, {
|
|
755
755
|
readonly target: "denied";
|
|
756
756
|
readonly guard: "isCameraPermissionDenied";
|
|
757
|
-
readonly actions:
|
|
757
|
+
readonly actions: xstate659.ActionFunction<DocumentCaptureContext, xstate659.DoneActorEvent<PermissionResult, string>, {
|
|
758
758
|
type: "CAPTURE";
|
|
759
759
|
} | {
|
|
760
760
|
type: "FILE_SELECTED";
|
|
@@ -800,45 +800,45 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
800
800
|
type: "BACK";
|
|
801
801
|
} | {
|
|
802
802
|
type: "CLOSE";
|
|
803
|
-
}, undefined,
|
|
803
|
+
}, undefined, xstate659.Values<{
|
|
804
804
|
uploadDocument: {
|
|
805
805
|
src: "uploadDocument";
|
|
806
|
-
logic:
|
|
806
|
+
logic: xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
807
807
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
808
808
|
processingType: string;
|
|
809
809
|
onProgress: (progress: number) => void;
|
|
810
|
-
},
|
|
810
|
+
}, xstate659.EventObject>;
|
|
811
811
|
id: string | undefined;
|
|
812
812
|
};
|
|
813
813
|
requestPermission: {
|
|
814
814
|
src: "requestPermission";
|
|
815
|
-
logic:
|
|
815
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, {
|
|
816
816
|
permissionResult?: PermissionResult;
|
|
817
817
|
requestMotionPermission: boolean;
|
|
818
|
-
},
|
|
819
|
-
id: string | undefined;
|
|
820
|
-
};
|
|
821
|
-
checkPermission: {
|
|
822
|
-
src: "checkPermission";
|
|
823
|
-
logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
|
|
818
|
+
}, xstate659.EventObject>;
|
|
824
819
|
id: string | undefined;
|
|
825
820
|
};
|
|
826
821
|
initCamera: {
|
|
827
822
|
src: "initCamera";
|
|
828
|
-
logic:
|
|
823
|
+
logic: xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>;
|
|
824
|
+
id: string | undefined;
|
|
825
|
+
};
|
|
826
|
+
checkPermission: {
|
|
827
|
+
src: "checkPermission";
|
|
828
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>;
|
|
829
829
|
id: string | undefined;
|
|
830
830
|
};
|
|
831
831
|
finalizeDocumentRequest: {
|
|
832
832
|
src: "finalizeDocumentRequest";
|
|
833
|
-
logic:
|
|
833
|
+
logic: xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
834
834
|
processingType: string;
|
|
835
|
-
},
|
|
835
|
+
}, xstate659.EventObject>;
|
|
836
836
|
id: string | undefined;
|
|
837
837
|
};
|
|
838
838
|
}>, never, never, never, never>;
|
|
839
839
|
}, {
|
|
840
840
|
readonly target: "waitingForUser";
|
|
841
|
-
readonly actions:
|
|
841
|
+
readonly actions: xstate659.ActionFunction<DocumentCaptureContext, xstate659.DoneActorEvent<PermissionResult, string>, {
|
|
842
842
|
type: "CAPTURE";
|
|
843
843
|
} | {
|
|
844
844
|
type: "FILE_SELECTED";
|
|
@@ -884,46 +884,46 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
884
884
|
type: "BACK";
|
|
885
885
|
} | {
|
|
886
886
|
type: "CLOSE";
|
|
887
|
-
}, undefined,
|
|
887
|
+
}, undefined, xstate659.Values<{
|
|
888
888
|
uploadDocument: {
|
|
889
889
|
src: "uploadDocument";
|
|
890
|
-
logic:
|
|
890
|
+
logic: xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
891
891
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
892
892
|
processingType: string;
|
|
893
893
|
onProgress: (progress: number) => void;
|
|
894
|
-
},
|
|
894
|
+
}, xstate659.EventObject>;
|
|
895
895
|
id: string | undefined;
|
|
896
896
|
};
|
|
897
897
|
requestPermission: {
|
|
898
898
|
src: "requestPermission";
|
|
899
|
-
logic:
|
|
899
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, {
|
|
900
900
|
permissionResult?: PermissionResult;
|
|
901
901
|
requestMotionPermission: boolean;
|
|
902
|
-
},
|
|
903
|
-
id: string | undefined;
|
|
904
|
-
};
|
|
905
|
-
checkPermission: {
|
|
906
|
-
src: "checkPermission";
|
|
907
|
-
logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
|
|
902
|
+
}, xstate659.EventObject>;
|
|
908
903
|
id: string | undefined;
|
|
909
904
|
};
|
|
910
905
|
initCamera: {
|
|
911
906
|
src: "initCamera";
|
|
912
|
-
logic:
|
|
907
|
+
logic: xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>;
|
|
908
|
+
id: string | undefined;
|
|
909
|
+
};
|
|
910
|
+
checkPermission: {
|
|
911
|
+
src: "checkPermission";
|
|
912
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>;
|
|
913
913
|
id: string | undefined;
|
|
914
914
|
};
|
|
915
915
|
finalizeDocumentRequest: {
|
|
916
916
|
src: "finalizeDocumentRequest";
|
|
917
|
-
logic:
|
|
917
|
+
logic: xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
918
918
|
processingType: string;
|
|
919
|
-
},
|
|
919
|
+
}, xstate659.EventObject>;
|
|
920
920
|
id: string | undefined;
|
|
921
921
|
};
|
|
922
922
|
}>, never, never, never, never>;
|
|
923
923
|
}];
|
|
924
924
|
readonly onError: {
|
|
925
925
|
readonly target: "waitingForUser";
|
|
926
|
-
readonly actions:
|
|
926
|
+
readonly actions: xstate659.ActionFunction<DocumentCaptureContext, xstate659.ErrorActorEvent<unknown, string>, {
|
|
927
927
|
type: "CAPTURE";
|
|
928
928
|
} | {
|
|
929
929
|
type: "FILE_SELECTED";
|
|
@@ -969,39 +969,39 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
969
969
|
type: "BACK";
|
|
970
970
|
} | {
|
|
971
971
|
type: "CLOSE";
|
|
972
|
-
}, undefined,
|
|
972
|
+
}, undefined, xstate659.Values<{
|
|
973
973
|
uploadDocument: {
|
|
974
974
|
src: "uploadDocument";
|
|
975
|
-
logic:
|
|
975
|
+
logic: xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
976
976
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
977
977
|
processingType: string;
|
|
978
978
|
onProgress: (progress: number) => void;
|
|
979
|
-
},
|
|
979
|
+
}, xstate659.EventObject>;
|
|
980
980
|
id: string | undefined;
|
|
981
981
|
};
|
|
982
982
|
requestPermission: {
|
|
983
983
|
src: "requestPermission";
|
|
984
|
-
logic:
|
|
984
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, {
|
|
985
985
|
permissionResult?: PermissionResult;
|
|
986
986
|
requestMotionPermission: boolean;
|
|
987
|
-
},
|
|
988
|
-
id: string | undefined;
|
|
989
|
-
};
|
|
990
|
-
checkPermission: {
|
|
991
|
-
src: "checkPermission";
|
|
992
|
-
logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
|
|
987
|
+
}, xstate659.EventObject>;
|
|
993
988
|
id: string | undefined;
|
|
994
989
|
};
|
|
995
990
|
initCamera: {
|
|
996
991
|
src: "initCamera";
|
|
997
|
-
logic:
|
|
992
|
+
logic: xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>;
|
|
993
|
+
id: string | undefined;
|
|
994
|
+
};
|
|
995
|
+
checkPermission: {
|
|
996
|
+
src: "checkPermission";
|
|
997
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>;
|
|
998
998
|
id: string | undefined;
|
|
999
999
|
};
|
|
1000
1000
|
finalizeDocumentRequest: {
|
|
1001
1001
|
src: "finalizeDocumentRequest";
|
|
1002
|
-
logic:
|
|
1002
|
+
logic: xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1003
1003
|
processingType: string;
|
|
1004
|
-
},
|
|
1004
|
+
}, xstate659.EventObject>;
|
|
1005
1005
|
id: string | undefined;
|
|
1006
1006
|
};
|
|
1007
1007
|
}>, never, never, never, never>;
|
|
@@ -1079,7 +1079,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1079
1079
|
} | {
|
|
1080
1080
|
type: "CLOSE";
|
|
1081
1081
|
};
|
|
1082
|
-
self:
|
|
1082
|
+
self: xstate659.ActorRef<xstate659.MachineSnapshot<DocumentCaptureContext, {
|
|
1083
1083
|
type: "CAPTURE";
|
|
1084
1084
|
} | {
|
|
1085
1085
|
type: "FILE_SELECTED";
|
|
@@ -1125,7 +1125,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1125
1125
|
type: "BACK";
|
|
1126
1126
|
} | {
|
|
1127
1127
|
type: "CLOSE";
|
|
1128
|
-
}, Record<string,
|
|
1128
|
+
}, Record<string, xstate659.AnyActorRef>, xstate659.StateValue, string, unknown, any, any>, {
|
|
1129
1129
|
type: "CAPTURE";
|
|
1130
1130
|
} | {
|
|
1131
1131
|
type: "FILE_SELECTED";
|
|
@@ -1171,7 +1171,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1171
1171
|
type: "BACK";
|
|
1172
1172
|
} | {
|
|
1173
1173
|
type: "CLOSE";
|
|
1174
|
-
},
|
|
1174
|
+
}, xstate659.AnyEventObject>;
|
|
1175
1175
|
}) => {
|
|
1176
1176
|
permissionResult: PermissionResult | undefined;
|
|
1177
1177
|
requestMotionPermission: false;
|
|
@@ -1179,7 +1179,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1179
1179
|
readonly onDone: readonly [{
|
|
1180
1180
|
readonly target: "#documentCapture.initCamera";
|
|
1181
1181
|
readonly guard: "isCameraPermissionGranted";
|
|
1182
|
-
readonly actions:
|
|
1182
|
+
readonly actions: xstate659.ActionFunction<DocumentCaptureContext, xstate659.DoneActorEvent<PermissionResult, string>, {
|
|
1183
1183
|
type: "CAPTURE";
|
|
1184
1184
|
} | {
|
|
1185
1185
|
type: "FILE_SELECTED";
|
|
@@ -1225,46 +1225,46 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1225
1225
|
type: "BACK";
|
|
1226
1226
|
} | {
|
|
1227
1227
|
type: "CLOSE";
|
|
1228
|
-
}, undefined,
|
|
1228
|
+
}, undefined, xstate659.Values<{
|
|
1229
1229
|
uploadDocument: {
|
|
1230
1230
|
src: "uploadDocument";
|
|
1231
|
-
logic:
|
|
1231
|
+
logic: xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
1232
1232
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
1233
1233
|
processingType: string;
|
|
1234
1234
|
onProgress: (progress: number) => void;
|
|
1235
|
-
},
|
|
1235
|
+
}, xstate659.EventObject>;
|
|
1236
1236
|
id: string | undefined;
|
|
1237
1237
|
};
|
|
1238
1238
|
requestPermission: {
|
|
1239
1239
|
src: "requestPermission";
|
|
1240
|
-
logic:
|
|
1240
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, {
|
|
1241
1241
|
permissionResult?: PermissionResult;
|
|
1242
1242
|
requestMotionPermission: boolean;
|
|
1243
|
-
},
|
|
1244
|
-
id: string | undefined;
|
|
1245
|
-
};
|
|
1246
|
-
checkPermission: {
|
|
1247
|
-
src: "checkPermission";
|
|
1248
|
-
logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
|
|
1243
|
+
}, xstate659.EventObject>;
|
|
1249
1244
|
id: string | undefined;
|
|
1250
1245
|
};
|
|
1251
1246
|
initCamera: {
|
|
1252
1247
|
src: "initCamera";
|
|
1253
|
-
logic:
|
|
1248
|
+
logic: xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>;
|
|
1249
|
+
id: string | undefined;
|
|
1250
|
+
};
|
|
1251
|
+
checkPermission: {
|
|
1252
|
+
src: "checkPermission";
|
|
1253
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>;
|
|
1254
1254
|
id: string | undefined;
|
|
1255
1255
|
};
|
|
1256
1256
|
finalizeDocumentRequest: {
|
|
1257
1257
|
src: "finalizeDocumentRequest";
|
|
1258
|
-
logic:
|
|
1258
|
+
logic: xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1259
1259
|
processingType: string;
|
|
1260
|
-
},
|
|
1260
|
+
}, xstate659.EventObject>;
|
|
1261
1261
|
id: string | undefined;
|
|
1262
1262
|
};
|
|
1263
1263
|
}>, never, never, never, never>;
|
|
1264
1264
|
}, {
|
|
1265
1265
|
readonly target: "denied";
|
|
1266
1266
|
readonly guard: "isCameraPermissionDenied";
|
|
1267
|
-
readonly actions:
|
|
1267
|
+
readonly actions: xstate659.ActionFunction<DocumentCaptureContext, xstate659.DoneActorEvent<PermissionResult, string>, {
|
|
1268
1268
|
type: "CAPTURE";
|
|
1269
1269
|
} | {
|
|
1270
1270
|
type: "FILE_SELECTED";
|
|
@@ -1310,45 +1310,45 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1310
1310
|
type: "BACK";
|
|
1311
1311
|
} | {
|
|
1312
1312
|
type: "CLOSE";
|
|
1313
|
-
}, undefined,
|
|
1313
|
+
}, undefined, xstate659.Values<{
|
|
1314
1314
|
uploadDocument: {
|
|
1315
1315
|
src: "uploadDocument";
|
|
1316
|
-
logic:
|
|
1316
|
+
logic: xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
1317
1317
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
1318
1318
|
processingType: string;
|
|
1319
1319
|
onProgress: (progress: number) => void;
|
|
1320
|
-
},
|
|
1320
|
+
}, xstate659.EventObject>;
|
|
1321
1321
|
id: string | undefined;
|
|
1322
1322
|
};
|
|
1323
1323
|
requestPermission: {
|
|
1324
1324
|
src: "requestPermission";
|
|
1325
|
-
logic:
|
|
1325
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, {
|
|
1326
1326
|
permissionResult?: PermissionResult;
|
|
1327
1327
|
requestMotionPermission: boolean;
|
|
1328
|
-
},
|
|
1329
|
-
id: string | undefined;
|
|
1330
|
-
};
|
|
1331
|
-
checkPermission: {
|
|
1332
|
-
src: "checkPermission";
|
|
1333
|
-
logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
|
|
1328
|
+
}, xstate659.EventObject>;
|
|
1334
1329
|
id: string | undefined;
|
|
1335
1330
|
};
|
|
1336
1331
|
initCamera: {
|
|
1337
1332
|
src: "initCamera";
|
|
1338
|
-
logic:
|
|
1333
|
+
logic: xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>;
|
|
1334
|
+
id: string | undefined;
|
|
1335
|
+
};
|
|
1336
|
+
checkPermission: {
|
|
1337
|
+
src: "checkPermission";
|
|
1338
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>;
|
|
1339
1339
|
id: string | undefined;
|
|
1340
1340
|
};
|
|
1341
1341
|
finalizeDocumentRequest: {
|
|
1342
1342
|
src: "finalizeDocumentRequest";
|
|
1343
|
-
logic:
|
|
1343
|
+
logic: xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1344
1344
|
processingType: string;
|
|
1345
|
-
},
|
|
1345
|
+
}, xstate659.EventObject>;
|
|
1346
1346
|
id: string | undefined;
|
|
1347
1347
|
};
|
|
1348
1348
|
}>, never, never, never, never>;
|
|
1349
1349
|
}, {
|
|
1350
1350
|
readonly target: "waitingForUser";
|
|
1351
|
-
readonly actions:
|
|
1351
|
+
readonly actions: xstate659.ActionFunction<DocumentCaptureContext, xstate659.DoneActorEvent<PermissionResult, string>, {
|
|
1352
1352
|
type: "CAPTURE";
|
|
1353
1353
|
} | {
|
|
1354
1354
|
type: "FILE_SELECTED";
|
|
@@ -1394,39 +1394,39 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1394
1394
|
type: "BACK";
|
|
1395
1395
|
} | {
|
|
1396
1396
|
type: "CLOSE";
|
|
1397
|
-
}, undefined,
|
|
1397
|
+
}, undefined, xstate659.Values<{
|
|
1398
1398
|
uploadDocument: {
|
|
1399
1399
|
src: "uploadDocument";
|
|
1400
|
-
logic:
|
|
1400
|
+
logic: xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
1401
1401
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
1402
1402
|
processingType: string;
|
|
1403
1403
|
onProgress: (progress: number) => void;
|
|
1404
|
-
},
|
|
1404
|
+
}, xstate659.EventObject>;
|
|
1405
1405
|
id: string | undefined;
|
|
1406
1406
|
};
|
|
1407
1407
|
requestPermission: {
|
|
1408
1408
|
src: "requestPermission";
|
|
1409
|
-
logic:
|
|
1409
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, {
|
|
1410
1410
|
permissionResult?: PermissionResult;
|
|
1411
1411
|
requestMotionPermission: boolean;
|
|
1412
|
-
},
|
|
1413
|
-
id: string | undefined;
|
|
1414
|
-
};
|
|
1415
|
-
checkPermission: {
|
|
1416
|
-
src: "checkPermission";
|
|
1417
|
-
logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
|
|
1412
|
+
}, xstate659.EventObject>;
|
|
1418
1413
|
id: string | undefined;
|
|
1419
1414
|
};
|
|
1420
1415
|
initCamera: {
|
|
1421
1416
|
src: "initCamera";
|
|
1422
|
-
logic:
|
|
1417
|
+
logic: xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>;
|
|
1418
|
+
id: string | undefined;
|
|
1419
|
+
};
|
|
1420
|
+
checkPermission: {
|
|
1421
|
+
src: "checkPermission";
|
|
1422
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>;
|
|
1423
1423
|
id: string | undefined;
|
|
1424
1424
|
};
|
|
1425
1425
|
finalizeDocumentRequest: {
|
|
1426
1426
|
src: "finalizeDocumentRequest";
|
|
1427
|
-
logic:
|
|
1427
|
+
logic: xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1428
1428
|
processingType: string;
|
|
1429
|
-
},
|
|
1429
|
+
}, xstate659.EventObject>;
|
|
1430
1430
|
id: string | undefined;
|
|
1431
1431
|
};
|
|
1432
1432
|
}>, never, never, never, never>;
|
|
@@ -1437,7 +1437,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1437
1437
|
};
|
|
1438
1438
|
};
|
|
1439
1439
|
readonly denied: {
|
|
1440
|
-
readonly entry:
|
|
1440
|
+
readonly entry: xstate659.ActionFunction<DocumentCaptureContext, {
|
|
1441
1441
|
type: "CAPTURE";
|
|
1442
1442
|
} | {
|
|
1443
1443
|
type: "FILE_SELECTED";
|
|
@@ -1529,39 +1529,39 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1529
1529
|
type: "BACK";
|
|
1530
1530
|
} | {
|
|
1531
1531
|
type: "CLOSE";
|
|
1532
|
-
}, undefined,
|
|
1532
|
+
}, undefined, xstate659.Values<{
|
|
1533
1533
|
uploadDocument: {
|
|
1534
1534
|
src: "uploadDocument";
|
|
1535
|
-
logic:
|
|
1535
|
+
logic: xstate659.PromiseActorLogic<DocumentUploadResponse, {
|
|
1536
1536
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
1537
1537
|
processingType: string;
|
|
1538
1538
|
onProgress: (progress: number) => void;
|
|
1539
|
-
},
|
|
1539
|
+
}, xstate659.EventObject>;
|
|
1540
1540
|
id: string | undefined;
|
|
1541
1541
|
};
|
|
1542
1542
|
requestPermission: {
|
|
1543
1543
|
src: "requestPermission";
|
|
1544
|
-
logic:
|
|
1544
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, {
|
|
1545
1545
|
permissionResult?: PermissionResult;
|
|
1546
1546
|
requestMotionPermission: boolean;
|
|
1547
|
-
},
|
|
1548
|
-
id: string | undefined;
|
|
1549
|
-
};
|
|
1550
|
-
checkPermission: {
|
|
1551
|
-
src: "checkPermission";
|
|
1552
|
-
logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
|
|
1547
|
+
}, xstate659.EventObject>;
|
|
1553
1548
|
id: string | undefined;
|
|
1554
1549
|
};
|
|
1555
1550
|
initCamera: {
|
|
1556
1551
|
src: "initCamera";
|
|
1557
|
-
logic:
|
|
1552
|
+
logic: xstate659.PromiseActorLogic<MediaStream, void, xstate659.EventObject>;
|
|
1553
|
+
id: string | undefined;
|
|
1554
|
+
};
|
|
1555
|
+
checkPermission: {
|
|
1556
|
+
src: "checkPermission";
|
|
1557
|
+
logic: xstate659.PromiseActorLogic<PermissionResult, void, xstate659.EventObject>;
|
|
1558
1558
|
id: string | undefined;
|
|
1559
1559
|
};
|
|
1560
1560
|
finalizeDocumentRequest: {
|
|
1561
1561
|
src: "finalizeDocumentRequest";
|
|
1562
|
-
logic:
|
|
1562
|
+
logic: xstate659.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1563
1563
|
processingType: string;
|
|
1564
|
-
},
|
|
1564
|
+
}, xstate659.EventObject>;
|
|
1565
1565
|
id: string | undefined;
|
|
1566
1566
|
};
|
|
1567
1567
|
}>, never, never, never, never>;
|
|
@@ -1699,7 +1699,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1699
1699
|
} | {
|
|
1700
1700
|
type: "CLOSE";
|
|
1701
1701
|
};
|
|
1702
|
-
self:
|
|
1702
|
+
self: xstate659.ActorRef<xstate659.MachineSnapshot<DocumentCaptureContext, {
|
|
1703
1703
|
type: "CAPTURE";
|
|
1704
1704
|
} | {
|
|
1705
1705
|
type: "FILE_SELECTED";
|
|
@@ -1745,7 +1745,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1745
1745
|
type: "BACK";
|
|
1746
1746
|
} | {
|
|
1747
1747
|
type: "CLOSE";
|
|
1748
|
-
}, Record<string,
|
|
1748
|
+
}, Record<string, xstate659.AnyActorRef>, xstate659.StateValue, string, unknown, any, any>, {
|
|
1749
1749
|
type: "CAPTURE";
|
|
1750
1750
|
} | {
|
|
1751
1751
|
type: "FILE_SELECTED";
|
|
@@ -1791,7 +1791,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1791
1791
|
type: "BACK";
|
|
1792
1792
|
} | {
|
|
1793
1793
|
type: "CLOSE";
|
|
1794
|
-
},
|
|
1794
|
+
}, xstate659.AnyEventObject>;
|
|
1795
1795
|
}) => {
|
|
1796
1796
|
capturedDocument: CapturedDocument;
|
|
1797
1797
|
processingType: DocumentType;
|
|
@@ -1904,7 +1904,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1904
1904
|
} | {
|
|
1905
1905
|
type: "CLOSE";
|
|
1906
1906
|
};
|
|
1907
|
-
self:
|
|
1907
|
+
self: xstate659.ActorRef<xstate659.MachineSnapshot<DocumentCaptureContext, {
|
|
1908
1908
|
type: "CAPTURE";
|
|
1909
1909
|
} | {
|
|
1910
1910
|
type: "FILE_SELECTED";
|
|
@@ -1950,7 +1950,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1950
1950
|
type: "BACK";
|
|
1951
1951
|
} | {
|
|
1952
1952
|
type: "CLOSE";
|
|
1953
|
-
}, Record<string,
|
|
1953
|
+
}, Record<string, xstate659.AnyActorRef>, xstate659.StateValue, string, unknown, any, any>, {
|
|
1954
1954
|
type: "CAPTURE";
|
|
1955
1955
|
} | {
|
|
1956
1956
|
type: "FILE_SELECTED";
|
|
@@ -1996,7 +1996,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
1996
1996
|
type: "BACK";
|
|
1997
1997
|
} | {
|
|
1998
1998
|
type: "CLOSE";
|
|
1999
|
-
},
|
|
1999
|
+
}, xstate659.AnyEventObject>;
|
|
2000
2000
|
}) => {
|
|
2001
2001
|
processingType: DocumentType;
|
|
2002
2002
|
};
|
|
@@ -2016,15 +2016,13 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
|
|
|
2016
2016
|
readonly guard: "canRetry";
|
|
2017
2017
|
readonly actions: readonly ["clearError", "clearCapturedDocument", "resetPageNumber"];
|
|
2018
2018
|
};
|
|
2019
|
-
readonly
|
|
2020
|
-
readonly target: "closed";
|
|
2021
|
-
};
|
|
2022
|
-
};
|
|
2023
|
-
readonly after: {
|
|
2024
|
-
readonly 3000: {
|
|
2019
|
+
readonly CONTINUE: {
|
|
2025
2020
|
readonly target: "finished";
|
|
2026
2021
|
readonly guard: "attemptsExhausted";
|
|
2027
2022
|
};
|
|
2023
|
+
readonly CLOSE: {
|
|
2024
|
+
readonly target: "closed";
|
|
2025
|
+
};
|
|
2028
2026
|
};
|
|
2029
2027
|
};
|
|
2030
2028
|
readonly finished: {
|