@incodetech/core 0.0.0-dev-20260616-e026f0c8 → 0.0.0-dev-20260616-c6e584de
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/certificate-issuance.d.ts +71 -29
- package/dist/certificate-issuance.esm.js +8 -1
- package/dist/{certificateIssuanceStateMachine-DB2r-cpB.esm.js → certificateIssuanceStateMachine-bhWVYKYV.esm.js} +6 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-DWB0fOnC.d.ts → consentManager-TqixoCT2.d.ts} +47 -47
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-DZudorH5.d.ts → cpfOcrManager-Ca7e3SIW.d.ts} +23 -23
- package/dist/document-capture.d.ts +231 -231
- package/dist/document-upload.d.ts +46 -46
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-iBJaSAJs.esm.js → ekybStateMachine-D0O6NRuW.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +3 -3
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-BRfa1_9p.esm.js → flowServices-CdA2om9f.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-Cm-IXB70.esm.js → idCaptureManager-D1FxmI-p.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-CU3F89Pn.esm.js → idCaptureStateMachine-CsJhBgPK.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-mEnl2R8N.d.ts → identityReuseManager-COPPkJiQ.d.ts} +31 -31
- package/dist/{index-B1r8U5de.d.ts → index-IETo5e_d.d.ts} +168 -168
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-HAXD0YGt.d.ts → mandatoryConsentManager-KslkgCaz.d.ts} +47 -47
- package/dist/qe-signature.d.ts +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-Qlg7EwTl.esm.js → sessionInitializer-BMXiEnWZ.esm.js} +1 -1
- package/dist/{setup-wZGxwi9m.esm.js → setup-BNhajGng.esm.js} +1 -1
- package/dist/trust-graph.d.ts +2 -2
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +88 -88
- package/dist/workflow.esm.js +5 -5
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import { t as Manager } from "./Manager-CHiHBvMT.js";
|
|
|
2
2
|
import "./Actor-CeqUTqL9.js";
|
|
3
3
|
import { t as CameraStream } from "./camera-D0c7ez3w.js";
|
|
4
4
|
import { n as PermissionStatus, t as PermissionResult } from "./types-F0IXbaCB.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as xstate152 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';
|
|
@@ -86,7 +86,7 @@ type DocumentCaptureInput = {
|
|
|
86
86
|
};
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
89
|
-
declare const documentCaptureMachine:
|
|
89
|
+
declare const documentCaptureMachine: xstate152.StateMachine<DocumentCaptureContext, {
|
|
90
90
|
type: "CAPTURE";
|
|
91
91
|
} | {
|
|
92
92
|
type: "FILE_SELECTED";
|
|
@@ -121,125 +121,125 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
121
121
|
} | {
|
|
122
122
|
type: "CLOSE";
|
|
123
123
|
}, {
|
|
124
|
-
[x: string]:
|
|
124
|
+
[x: string]: xstate152.ActorRefFromLogic<xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
125
125
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
126
126
|
processingType: string;
|
|
127
127
|
onProgress: (progress: number) => void;
|
|
128
|
-
},
|
|
128
|
+
}, xstate152.EventObject>> | xstate152.ActorRefFromLogic<xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>> | xstate152.ActorRefFromLogic<xstate152.PromiseActorLogic<PermissionResult, {
|
|
129
129
|
permissionResult?: PermissionResult;
|
|
130
130
|
requestMotionPermission: boolean;
|
|
131
|
-
},
|
|
131
|
+
}, xstate152.EventObject>> | xstate152.ActorRefFromLogic<xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>> | xstate152.ActorRefFromLogic<xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
132
132
|
processingType: string;
|
|
133
|
-
},
|
|
134
|
-
},
|
|
133
|
+
}, xstate152.EventObject>> | undefined;
|
|
134
|
+
}, xstate152.Values<{
|
|
135
135
|
uploadDocument: {
|
|
136
136
|
src: "uploadDocument";
|
|
137
|
-
logic:
|
|
137
|
+
logic: xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
138
138
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
139
139
|
processingType: string;
|
|
140
140
|
onProgress: (progress: number) => void;
|
|
141
|
-
},
|
|
141
|
+
}, xstate152.EventObject>;
|
|
142
|
+
id: string | undefined;
|
|
143
|
+
};
|
|
144
|
+
checkPermission: {
|
|
145
|
+
src: "checkPermission";
|
|
146
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>;
|
|
142
147
|
id: string | undefined;
|
|
143
148
|
};
|
|
144
149
|
requestPermission: {
|
|
145
150
|
src: "requestPermission";
|
|
146
|
-
logic:
|
|
151
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, {
|
|
147
152
|
permissionResult?: PermissionResult;
|
|
148
153
|
requestMotionPermission: boolean;
|
|
149
|
-
},
|
|
154
|
+
}, xstate152.EventObject>;
|
|
150
155
|
id: string | undefined;
|
|
151
156
|
};
|
|
152
157
|
initCamera: {
|
|
153
158
|
src: "initCamera";
|
|
154
|
-
logic:
|
|
155
|
-
id: string | undefined;
|
|
156
|
-
};
|
|
157
|
-
checkPermission: {
|
|
158
|
-
src: "checkPermission";
|
|
159
|
-
logic: xstate156.PromiseActorLogic<PermissionResult, void, xstate156.EventObject>;
|
|
159
|
+
logic: xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>;
|
|
160
160
|
id: string | undefined;
|
|
161
161
|
};
|
|
162
162
|
finalizeDocumentRequest: {
|
|
163
163
|
src: "finalizeDocumentRequest";
|
|
164
|
-
logic:
|
|
164
|
+
logic: xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
165
165
|
processingType: string;
|
|
166
|
-
},
|
|
166
|
+
}, xstate152.EventObject>;
|
|
167
167
|
id: string | undefined;
|
|
168
168
|
};
|
|
169
|
-
}>,
|
|
170
|
-
clearError: {
|
|
171
|
-
type: "clearError";
|
|
172
|
-
params: xstate156.NonReducibleUnknown;
|
|
173
|
-
};
|
|
169
|
+
}>, xstate152.Values<{
|
|
174
170
|
setStream: {
|
|
175
171
|
type: "setStream";
|
|
176
|
-
params:
|
|
177
|
-
};
|
|
178
|
-
setProgress: {
|
|
179
|
-
type: "setProgress";
|
|
180
|
-
params: xstate156.NonReducibleUnknown;
|
|
181
|
-
};
|
|
182
|
-
stopStream: {
|
|
183
|
-
type: "stopStream";
|
|
184
|
-
params: xstate156.NonReducibleUnknown;
|
|
172
|
+
params: xstate152.NonReducibleUnknown;
|
|
185
173
|
};
|
|
186
174
|
setCapturedDocument: {
|
|
187
175
|
type: "setCapturedDocument";
|
|
188
|
-
params:
|
|
176
|
+
params: xstate152.NonReducibleUnknown;
|
|
189
177
|
};
|
|
190
178
|
setFileTooLargeError: {
|
|
191
179
|
type: "setFileTooLargeError";
|
|
192
|
-
params:
|
|
180
|
+
params: xstate152.NonReducibleUnknown;
|
|
181
|
+
};
|
|
182
|
+
setProgress: {
|
|
183
|
+
type: "setProgress";
|
|
184
|
+
params: xstate152.NonReducibleUnknown;
|
|
193
185
|
};
|
|
194
186
|
setUploadError: {
|
|
195
187
|
type: "setUploadError";
|
|
196
|
-
params:
|
|
188
|
+
params: xstate152.NonReducibleUnknown;
|
|
197
189
|
};
|
|
198
190
|
setFinalizeError: {
|
|
199
191
|
type: "setFinalizeError";
|
|
200
|
-
params:
|
|
192
|
+
params: xstate152.NonReducibleUnknown;
|
|
201
193
|
};
|
|
202
194
|
decrementAttemptsRemaining: {
|
|
203
195
|
type: "decrementAttemptsRemaining";
|
|
204
|
-
params:
|
|
196
|
+
params: xstate152.NonReducibleUnknown;
|
|
205
197
|
};
|
|
206
198
|
setCaptureMethodFile: {
|
|
207
199
|
type: "setCaptureMethodFile";
|
|
208
|
-
params:
|
|
200
|
+
params: xstate152.NonReducibleUnknown;
|
|
209
201
|
};
|
|
210
202
|
setCaptureMethodCamera: {
|
|
211
203
|
type: "setCaptureMethodCamera";
|
|
212
|
-
params:
|
|
204
|
+
params: xstate152.NonReducibleUnknown;
|
|
213
205
|
};
|
|
214
206
|
setCaptureMethodGallery: {
|
|
215
207
|
type: "setCaptureMethodGallery";
|
|
216
|
-
params:
|
|
208
|
+
params: xstate152.NonReducibleUnknown;
|
|
217
209
|
};
|
|
218
210
|
clearCapturedDocument: {
|
|
219
211
|
type: "clearCapturedDocument";
|
|
220
|
-
params:
|
|
212
|
+
params: xstate152.NonReducibleUnknown;
|
|
221
213
|
};
|
|
222
214
|
resetPageNumber: {
|
|
223
215
|
type: "resetPageNumber";
|
|
224
|
-
params:
|
|
216
|
+
params: xstate152.NonReducibleUnknown;
|
|
225
217
|
};
|
|
226
218
|
clearCapturedDocumentGalleryRetake: {
|
|
227
219
|
type: "clearCapturedDocumentGalleryRetake";
|
|
228
|
-
params:
|
|
220
|
+
params: xstate152.NonReducibleUnknown;
|
|
229
221
|
};
|
|
230
222
|
setNextPageType: {
|
|
231
223
|
type: "setNextPageType";
|
|
232
|
-
params:
|
|
224
|
+
params: xstate152.NonReducibleUnknown;
|
|
233
225
|
};
|
|
234
226
|
clearForNextPage: {
|
|
235
227
|
type: "clearForNextPage";
|
|
236
|
-
params:
|
|
228
|
+
params: xstate152.NonReducibleUnknown;
|
|
229
|
+
};
|
|
230
|
+
clearError: {
|
|
231
|
+
type: "clearError";
|
|
232
|
+
params: xstate152.NonReducibleUnknown;
|
|
237
233
|
};
|
|
238
234
|
resetProgress: {
|
|
239
235
|
type: "resetProgress";
|
|
240
|
-
params:
|
|
236
|
+
params: xstate152.NonReducibleUnknown;
|
|
241
237
|
};
|
|
242
|
-
|
|
238
|
+
stopStream: {
|
|
239
|
+
type: "stopStream";
|
|
240
|
+
params: xstate152.NonReducibleUnknown;
|
|
241
|
+
};
|
|
242
|
+
}>, xstate152.Values<{
|
|
243
243
|
allowSkip: {
|
|
244
244
|
type: "allowSkip";
|
|
245
245
|
params: unknown;
|
|
@@ -300,153 +300,153 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
300
300
|
type: "fileSizeOkForNonGallery";
|
|
301
301
|
params: unknown;
|
|
302
302
|
};
|
|
303
|
-
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "
|
|
303
|
+
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "tutorial" | "capturing" | "preview" | "failure" | "nextPage" | "finalizing" | {
|
|
304
304
|
permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
|
|
305
|
-
}, string, DocumentCaptureInput,
|
|
305
|
+
}, string, DocumentCaptureInput, xstate152.NonReducibleUnknown, xstate152.EventObject, xstate152.MetaObject, {
|
|
306
306
|
readonly id: "documentCapture";
|
|
307
307
|
readonly initial: "tutorial";
|
|
308
308
|
readonly context: ({
|
|
309
309
|
input
|
|
310
310
|
}: {
|
|
311
311
|
spawn: {
|
|
312
|
-
<TSrc extends "uploadDocument" | "
|
|
312
|
+
<TSrc extends "uploadDocument" | "checkPermission" | "requestPermission" | "initCamera" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
|
|
313
313
|
src: "uploadDocument";
|
|
314
|
-
logic:
|
|
314
|
+
logic: xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
315
315
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
316
316
|
processingType: string;
|
|
317
317
|
onProgress: (progress: number) => void;
|
|
318
|
-
},
|
|
318
|
+
}, xstate152.EventObject>;
|
|
319
319
|
id: string | undefined;
|
|
320
320
|
} extends infer T ? T extends {
|
|
321
321
|
src: "uploadDocument";
|
|
322
|
-
logic:
|
|
322
|
+
logic: xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
323
323
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
324
324
|
processingType: string;
|
|
325
325
|
onProgress: (progress: number) => void;
|
|
326
|
-
},
|
|
326
|
+
}, xstate152.EventObject>;
|
|
327
327
|
id: string | undefined;
|
|
328
328
|
} ? T extends {
|
|
329
329
|
src: TSrc;
|
|
330
|
-
} ?
|
|
330
|
+
} ? xstate152.ConditionalRequired<[options?: ({
|
|
331
331
|
id?: T["id"] | undefined;
|
|
332
332
|
systemId?: string;
|
|
333
|
-
input?:
|
|
333
|
+
input?: xstate152.InputFrom<T["logic"]> | undefined;
|
|
334
334
|
syncSnapshot?: boolean;
|
|
335
|
-
} & { [K in
|
|
336
|
-
src: "
|
|
337
|
-
logic:
|
|
338
|
-
permissionResult?: PermissionResult;
|
|
339
|
-
requestMotionPermission: boolean;
|
|
340
|
-
}, xstate156.EventObject>;
|
|
335
|
+
} & { [K in xstate152.RequiredActorOptions<T>]: unknown }) | undefined], xstate152.IsNotNever<xstate152.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
336
|
+
src: "checkPermission";
|
|
337
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>;
|
|
341
338
|
id: string | undefined;
|
|
342
339
|
} extends infer T_1 ? T_1 extends {
|
|
343
|
-
src: "
|
|
344
|
-
logic:
|
|
345
|
-
permissionResult?: PermissionResult;
|
|
346
|
-
requestMotionPermission: boolean;
|
|
347
|
-
}, xstate156.EventObject>;
|
|
340
|
+
src: "checkPermission";
|
|
341
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>;
|
|
348
342
|
id: string | undefined;
|
|
349
343
|
} ? T_1 extends {
|
|
350
344
|
src: TSrc;
|
|
351
|
-
} ?
|
|
345
|
+
} ? xstate152.ConditionalRequired<[options?: ({
|
|
352
346
|
id?: T_1["id"] | undefined;
|
|
353
347
|
systemId?: string;
|
|
354
|
-
input?:
|
|
348
|
+
input?: xstate152.InputFrom<T_1["logic"]> | undefined;
|
|
355
349
|
syncSnapshot?: boolean;
|
|
356
|
-
} & { [K_1 in
|
|
357
|
-
src: "
|
|
358
|
-
logic:
|
|
350
|
+
} & { [K_1 in xstate152.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate152.IsNotNever<xstate152.RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
351
|
+
src: "requestPermission";
|
|
352
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, {
|
|
353
|
+
permissionResult?: PermissionResult;
|
|
354
|
+
requestMotionPermission: boolean;
|
|
355
|
+
}, xstate152.EventObject>;
|
|
359
356
|
id: string | undefined;
|
|
360
357
|
} extends infer T_2 ? T_2 extends {
|
|
361
|
-
src: "
|
|
362
|
-
logic:
|
|
358
|
+
src: "requestPermission";
|
|
359
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, {
|
|
360
|
+
permissionResult?: PermissionResult;
|
|
361
|
+
requestMotionPermission: boolean;
|
|
362
|
+
}, xstate152.EventObject>;
|
|
363
363
|
id: string | undefined;
|
|
364
364
|
} ? T_2 extends {
|
|
365
365
|
src: TSrc;
|
|
366
|
-
} ?
|
|
366
|
+
} ? xstate152.ConditionalRequired<[options?: ({
|
|
367
367
|
id?: T_2["id"] | undefined;
|
|
368
368
|
systemId?: string;
|
|
369
|
-
input?:
|
|
369
|
+
input?: xstate152.InputFrom<T_2["logic"]> | undefined;
|
|
370
370
|
syncSnapshot?: boolean;
|
|
371
|
-
} & { [K_2 in
|
|
372
|
-
src: "
|
|
373
|
-
logic:
|
|
371
|
+
} & { [K_2 in xstate152.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate152.IsNotNever<xstate152.RequiredActorOptions<T_2>>> : never : never : never) | ({
|
|
372
|
+
src: "initCamera";
|
|
373
|
+
logic: xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>;
|
|
374
374
|
id: string | undefined;
|
|
375
375
|
} extends infer T_3 ? T_3 extends {
|
|
376
|
-
src: "
|
|
377
|
-
logic:
|
|
376
|
+
src: "initCamera";
|
|
377
|
+
logic: xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>;
|
|
378
378
|
id: string | undefined;
|
|
379
379
|
} ? T_3 extends {
|
|
380
380
|
src: TSrc;
|
|
381
|
-
} ?
|
|
381
|
+
} ? xstate152.ConditionalRequired<[options?: ({
|
|
382
382
|
id?: T_3["id"] | undefined;
|
|
383
383
|
systemId?: string;
|
|
384
|
-
input?:
|
|
384
|
+
input?: xstate152.InputFrom<T_3["logic"]> | undefined;
|
|
385
385
|
syncSnapshot?: boolean;
|
|
386
|
-
} & { [K_3 in
|
|
386
|
+
} & { [K_3 in xstate152.RequiredActorOptions<T_3>]: unknown }) | undefined], xstate152.IsNotNever<xstate152.RequiredActorOptions<T_3>>> : never : never : never) | ({
|
|
387
387
|
src: "finalizeDocumentRequest";
|
|
388
|
-
logic:
|
|
388
|
+
logic: xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
389
389
|
processingType: string;
|
|
390
|
-
},
|
|
390
|
+
}, xstate152.EventObject>;
|
|
391
391
|
id: string | undefined;
|
|
392
392
|
} extends infer T_4 ? T_4 extends {
|
|
393
393
|
src: "finalizeDocumentRequest";
|
|
394
|
-
logic:
|
|
394
|
+
logic: xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
395
395
|
processingType: string;
|
|
396
|
-
},
|
|
396
|
+
}, xstate152.EventObject>;
|
|
397
397
|
id: string | undefined;
|
|
398
398
|
} ? T_4 extends {
|
|
399
399
|
src: TSrc;
|
|
400
|
-
} ?
|
|
400
|
+
} ? xstate152.ConditionalRequired<[options?: ({
|
|
401
401
|
id?: T_4["id"] | undefined;
|
|
402
402
|
systemId?: string;
|
|
403
|
-
input?:
|
|
403
|
+
input?: xstate152.InputFrom<T_4["logic"]> | undefined;
|
|
404
404
|
syncSnapshot?: boolean;
|
|
405
|
-
} & { [K_4 in
|
|
405
|
+
} & { [K_4 in xstate152.RequiredActorOptions<T_4>]: unknown }) | undefined], xstate152.IsNotNever<xstate152.RequiredActorOptions<T_4>>> : never : never : never)): xstate152.ActorRefFromLogic<xstate152.GetConcreteByKey<xstate152.Values<{
|
|
406
406
|
uploadDocument: {
|
|
407
407
|
src: "uploadDocument";
|
|
408
|
-
logic:
|
|
408
|
+
logic: xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
409
409
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
410
410
|
processingType: string;
|
|
411
411
|
onProgress: (progress: number) => void;
|
|
412
|
-
},
|
|
412
|
+
}, xstate152.EventObject>;
|
|
413
|
+
id: string | undefined;
|
|
414
|
+
};
|
|
415
|
+
checkPermission: {
|
|
416
|
+
src: "checkPermission";
|
|
417
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>;
|
|
413
418
|
id: string | undefined;
|
|
414
419
|
};
|
|
415
420
|
requestPermission: {
|
|
416
421
|
src: "requestPermission";
|
|
417
|
-
logic:
|
|
422
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, {
|
|
418
423
|
permissionResult?: PermissionResult;
|
|
419
424
|
requestMotionPermission: boolean;
|
|
420
|
-
},
|
|
425
|
+
}, xstate152.EventObject>;
|
|
421
426
|
id: string | undefined;
|
|
422
427
|
};
|
|
423
428
|
initCamera: {
|
|
424
429
|
src: "initCamera";
|
|
425
|
-
logic:
|
|
426
|
-
id: string | undefined;
|
|
427
|
-
};
|
|
428
|
-
checkPermission: {
|
|
429
|
-
src: "checkPermission";
|
|
430
|
-
logic: xstate156.PromiseActorLogic<PermissionResult, void, xstate156.EventObject>;
|
|
430
|
+
logic: xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>;
|
|
431
431
|
id: string | undefined;
|
|
432
432
|
};
|
|
433
433
|
finalizeDocumentRequest: {
|
|
434
434
|
src: "finalizeDocumentRequest";
|
|
435
|
-
logic:
|
|
435
|
+
logic: xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
436
436
|
processingType: string;
|
|
437
|
-
},
|
|
437
|
+
}, xstate152.EventObject>;
|
|
438
438
|
id: string | undefined;
|
|
439
439
|
};
|
|
440
440
|
}>, "src", TSrc>["logic"]>;
|
|
441
|
-
<TLogic extends
|
|
441
|
+
<TLogic extends xstate152.AnyActorLogic>(src: TLogic, ...[options]: xstate152.ConditionalRequired<[options?: ({
|
|
442
442
|
id?: never;
|
|
443
443
|
systemId?: string;
|
|
444
|
-
input?:
|
|
444
|
+
input?: xstate152.InputFrom<TLogic> | undefined;
|
|
445
445
|
syncSnapshot?: boolean;
|
|
446
|
-
} & { [K in
|
|
446
|
+
} & { [K in xstate152.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate152.IsNotNever<xstate152.RequiredLogicInput<TLogic>>>): xstate152.ActorRefFromLogic<TLogic>;
|
|
447
447
|
};
|
|
448
448
|
input: DocumentCaptureInput;
|
|
449
|
-
self:
|
|
449
|
+
self: xstate152.ActorRef<xstate152.MachineSnapshot<DocumentCaptureContext, {
|
|
450
450
|
type: "CAPTURE";
|
|
451
451
|
} | {
|
|
452
452
|
type: "FILE_SELECTED";
|
|
@@ -480,7 +480,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
480
480
|
type: "BACK";
|
|
481
481
|
} | {
|
|
482
482
|
type: "CLOSE";
|
|
483
|
-
}, Record<string,
|
|
483
|
+
}, Record<string, xstate152.AnyActorRef | undefined>, xstate152.StateValue, string, unknown, any, any>, {
|
|
484
484
|
type: "CAPTURE";
|
|
485
485
|
} | {
|
|
486
486
|
type: "FILE_SELECTED";
|
|
@@ -514,7 +514,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
514
514
|
type: "BACK";
|
|
515
515
|
} | {
|
|
516
516
|
type: "CLOSE";
|
|
517
|
-
},
|
|
517
|
+
}, xstate152.AnyEventObject>;
|
|
518
518
|
}) => {
|
|
519
519
|
config: {
|
|
520
520
|
processingType: DocumentType;
|
|
@@ -574,7 +574,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
574
574
|
readonly onDone: readonly [{
|
|
575
575
|
readonly target: "#documentCapture.initCamera";
|
|
576
576
|
readonly guard: "isCameraPermissionGranted";
|
|
577
|
-
readonly actions:
|
|
577
|
+
readonly actions: xstate152.ActionFunction<DocumentCaptureContext, xstate152.DoneActorEvent<PermissionResult, string>, {
|
|
578
578
|
type: "CAPTURE";
|
|
579
579
|
} | {
|
|
580
580
|
type: "FILE_SELECTED";
|
|
@@ -608,46 +608,46 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
608
608
|
type: "BACK";
|
|
609
609
|
} | {
|
|
610
610
|
type: "CLOSE";
|
|
611
|
-
}, undefined,
|
|
611
|
+
}, undefined, xstate152.Values<{
|
|
612
612
|
uploadDocument: {
|
|
613
613
|
src: "uploadDocument";
|
|
614
|
-
logic:
|
|
614
|
+
logic: xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
615
615
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
616
616
|
processingType: string;
|
|
617
617
|
onProgress: (progress: number) => void;
|
|
618
|
-
},
|
|
618
|
+
}, xstate152.EventObject>;
|
|
619
|
+
id: string | undefined;
|
|
620
|
+
};
|
|
621
|
+
checkPermission: {
|
|
622
|
+
src: "checkPermission";
|
|
623
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>;
|
|
619
624
|
id: string | undefined;
|
|
620
625
|
};
|
|
621
626
|
requestPermission: {
|
|
622
627
|
src: "requestPermission";
|
|
623
|
-
logic:
|
|
628
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, {
|
|
624
629
|
permissionResult?: PermissionResult;
|
|
625
630
|
requestMotionPermission: boolean;
|
|
626
|
-
},
|
|
631
|
+
}, xstate152.EventObject>;
|
|
627
632
|
id: string | undefined;
|
|
628
633
|
};
|
|
629
634
|
initCamera: {
|
|
630
635
|
src: "initCamera";
|
|
631
|
-
logic:
|
|
632
|
-
id: string | undefined;
|
|
633
|
-
};
|
|
634
|
-
checkPermission: {
|
|
635
|
-
src: "checkPermission";
|
|
636
|
-
logic: xstate156.PromiseActorLogic<PermissionResult, void, xstate156.EventObject>;
|
|
636
|
+
logic: xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>;
|
|
637
637
|
id: string | undefined;
|
|
638
638
|
};
|
|
639
639
|
finalizeDocumentRequest: {
|
|
640
640
|
src: "finalizeDocumentRequest";
|
|
641
|
-
logic:
|
|
641
|
+
logic: xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
642
642
|
processingType: string;
|
|
643
|
-
},
|
|
643
|
+
}, xstate152.EventObject>;
|
|
644
644
|
id: string | undefined;
|
|
645
645
|
};
|
|
646
646
|
}>, never, never, never, never>;
|
|
647
647
|
}, {
|
|
648
648
|
readonly target: "denied";
|
|
649
649
|
readonly guard: "isCameraPermissionDenied";
|
|
650
|
-
readonly actions:
|
|
650
|
+
readonly actions: xstate152.ActionFunction<DocumentCaptureContext, xstate152.DoneActorEvent<PermissionResult, string>, {
|
|
651
651
|
type: "CAPTURE";
|
|
652
652
|
} | {
|
|
653
653
|
type: "FILE_SELECTED";
|
|
@@ -681,45 +681,45 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
681
681
|
type: "BACK";
|
|
682
682
|
} | {
|
|
683
683
|
type: "CLOSE";
|
|
684
|
-
}, undefined,
|
|
684
|
+
}, undefined, xstate152.Values<{
|
|
685
685
|
uploadDocument: {
|
|
686
686
|
src: "uploadDocument";
|
|
687
|
-
logic:
|
|
687
|
+
logic: xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
688
688
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
689
689
|
processingType: string;
|
|
690
690
|
onProgress: (progress: number) => void;
|
|
691
|
-
},
|
|
691
|
+
}, xstate152.EventObject>;
|
|
692
|
+
id: string | undefined;
|
|
693
|
+
};
|
|
694
|
+
checkPermission: {
|
|
695
|
+
src: "checkPermission";
|
|
696
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>;
|
|
692
697
|
id: string | undefined;
|
|
693
698
|
};
|
|
694
699
|
requestPermission: {
|
|
695
700
|
src: "requestPermission";
|
|
696
|
-
logic:
|
|
701
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, {
|
|
697
702
|
permissionResult?: PermissionResult;
|
|
698
703
|
requestMotionPermission: boolean;
|
|
699
|
-
},
|
|
704
|
+
}, xstate152.EventObject>;
|
|
700
705
|
id: string | undefined;
|
|
701
706
|
};
|
|
702
707
|
initCamera: {
|
|
703
708
|
src: "initCamera";
|
|
704
|
-
logic:
|
|
705
|
-
id: string | undefined;
|
|
706
|
-
};
|
|
707
|
-
checkPermission: {
|
|
708
|
-
src: "checkPermission";
|
|
709
|
-
logic: xstate156.PromiseActorLogic<PermissionResult, void, xstate156.EventObject>;
|
|
709
|
+
logic: xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>;
|
|
710
710
|
id: string | undefined;
|
|
711
711
|
};
|
|
712
712
|
finalizeDocumentRequest: {
|
|
713
713
|
src: "finalizeDocumentRequest";
|
|
714
|
-
logic:
|
|
714
|
+
logic: xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
715
715
|
processingType: string;
|
|
716
|
-
},
|
|
716
|
+
}, xstate152.EventObject>;
|
|
717
717
|
id: string | undefined;
|
|
718
718
|
};
|
|
719
719
|
}>, never, never, never, never>;
|
|
720
720
|
}, {
|
|
721
721
|
readonly target: "waitingForUser";
|
|
722
|
-
readonly actions:
|
|
722
|
+
readonly actions: xstate152.ActionFunction<DocumentCaptureContext, xstate152.DoneActorEvent<PermissionResult, string>, {
|
|
723
723
|
type: "CAPTURE";
|
|
724
724
|
} | {
|
|
725
725
|
type: "FILE_SELECTED";
|
|
@@ -753,46 +753,46 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
753
753
|
type: "BACK";
|
|
754
754
|
} | {
|
|
755
755
|
type: "CLOSE";
|
|
756
|
-
}, undefined,
|
|
756
|
+
}, undefined, xstate152.Values<{
|
|
757
757
|
uploadDocument: {
|
|
758
758
|
src: "uploadDocument";
|
|
759
|
-
logic:
|
|
759
|
+
logic: xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
760
760
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
761
761
|
processingType: string;
|
|
762
762
|
onProgress: (progress: number) => void;
|
|
763
|
-
},
|
|
763
|
+
}, xstate152.EventObject>;
|
|
764
|
+
id: string | undefined;
|
|
765
|
+
};
|
|
766
|
+
checkPermission: {
|
|
767
|
+
src: "checkPermission";
|
|
768
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>;
|
|
764
769
|
id: string | undefined;
|
|
765
770
|
};
|
|
766
771
|
requestPermission: {
|
|
767
772
|
src: "requestPermission";
|
|
768
|
-
logic:
|
|
773
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, {
|
|
769
774
|
permissionResult?: PermissionResult;
|
|
770
775
|
requestMotionPermission: boolean;
|
|
771
|
-
},
|
|
776
|
+
}, xstate152.EventObject>;
|
|
772
777
|
id: string | undefined;
|
|
773
778
|
};
|
|
774
779
|
initCamera: {
|
|
775
780
|
src: "initCamera";
|
|
776
|
-
logic:
|
|
777
|
-
id: string | undefined;
|
|
778
|
-
};
|
|
779
|
-
checkPermission: {
|
|
780
|
-
src: "checkPermission";
|
|
781
|
-
logic: xstate156.PromiseActorLogic<PermissionResult, void, xstate156.EventObject>;
|
|
781
|
+
logic: xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>;
|
|
782
782
|
id: string | undefined;
|
|
783
783
|
};
|
|
784
784
|
finalizeDocumentRequest: {
|
|
785
785
|
src: "finalizeDocumentRequest";
|
|
786
|
-
logic:
|
|
786
|
+
logic: xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
787
787
|
processingType: string;
|
|
788
|
-
},
|
|
788
|
+
}, xstate152.EventObject>;
|
|
789
789
|
id: string | undefined;
|
|
790
790
|
};
|
|
791
791
|
}>, never, never, never, never>;
|
|
792
792
|
}];
|
|
793
793
|
readonly onError: {
|
|
794
794
|
readonly target: "waitingForUser";
|
|
795
|
-
readonly actions:
|
|
795
|
+
readonly actions: xstate152.ActionFunction<DocumentCaptureContext, xstate152.ErrorActorEvent<unknown, string>, {
|
|
796
796
|
type: "CAPTURE";
|
|
797
797
|
} | {
|
|
798
798
|
type: "FILE_SELECTED";
|
|
@@ -826,39 +826,39 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
826
826
|
type: "BACK";
|
|
827
827
|
} | {
|
|
828
828
|
type: "CLOSE";
|
|
829
|
-
}, undefined,
|
|
829
|
+
}, undefined, xstate152.Values<{
|
|
830
830
|
uploadDocument: {
|
|
831
831
|
src: "uploadDocument";
|
|
832
|
-
logic:
|
|
832
|
+
logic: xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
833
833
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
834
834
|
processingType: string;
|
|
835
835
|
onProgress: (progress: number) => void;
|
|
836
|
-
},
|
|
836
|
+
}, xstate152.EventObject>;
|
|
837
|
+
id: string | undefined;
|
|
838
|
+
};
|
|
839
|
+
checkPermission: {
|
|
840
|
+
src: "checkPermission";
|
|
841
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>;
|
|
837
842
|
id: string | undefined;
|
|
838
843
|
};
|
|
839
844
|
requestPermission: {
|
|
840
845
|
src: "requestPermission";
|
|
841
|
-
logic:
|
|
846
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, {
|
|
842
847
|
permissionResult?: PermissionResult;
|
|
843
848
|
requestMotionPermission: boolean;
|
|
844
|
-
},
|
|
849
|
+
}, xstate152.EventObject>;
|
|
845
850
|
id: string | undefined;
|
|
846
851
|
};
|
|
847
852
|
initCamera: {
|
|
848
853
|
src: "initCamera";
|
|
849
|
-
logic:
|
|
850
|
-
id: string | undefined;
|
|
851
|
-
};
|
|
852
|
-
checkPermission: {
|
|
853
|
-
src: "checkPermission";
|
|
854
|
-
logic: xstate156.PromiseActorLogic<PermissionResult, void, xstate156.EventObject>;
|
|
854
|
+
logic: xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>;
|
|
855
855
|
id: string | undefined;
|
|
856
856
|
};
|
|
857
857
|
finalizeDocumentRequest: {
|
|
858
858
|
src: "finalizeDocumentRequest";
|
|
859
|
-
logic:
|
|
859
|
+
logic: xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
860
860
|
processingType: string;
|
|
861
|
-
},
|
|
861
|
+
}, xstate152.EventObject>;
|
|
862
862
|
id: string | undefined;
|
|
863
863
|
};
|
|
864
864
|
}>, never, never, never, never>;
|
|
@@ -924,7 +924,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
924
924
|
} | {
|
|
925
925
|
type: "CLOSE";
|
|
926
926
|
};
|
|
927
|
-
self:
|
|
927
|
+
self: xstate152.ActorRef<xstate152.MachineSnapshot<DocumentCaptureContext, {
|
|
928
928
|
type: "CAPTURE";
|
|
929
929
|
} | {
|
|
930
930
|
type: "FILE_SELECTED";
|
|
@@ -958,7 +958,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
958
958
|
type: "BACK";
|
|
959
959
|
} | {
|
|
960
960
|
type: "CLOSE";
|
|
961
|
-
}, Record<string,
|
|
961
|
+
}, Record<string, xstate152.AnyActorRef>, xstate152.StateValue, string, unknown, any, any>, {
|
|
962
962
|
type: "CAPTURE";
|
|
963
963
|
} | {
|
|
964
964
|
type: "FILE_SELECTED";
|
|
@@ -992,7 +992,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
992
992
|
type: "BACK";
|
|
993
993
|
} | {
|
|
994
994
|
type: "CLOSE";
|
|
995
|
-
},
|
|
995
|
+
}, xstate152.AnyEventObject>;
|
|
996
996
|
}) => {
|
|
997
997
|
permissionResult: PermissionResult | undefined;
|
|
998
998
|
requestMotionPermission: false;
|
|
@@ -1000,7 +1000,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
1000
1000
|
readonly onDone: readonly [{
|
|
1001
1001
|
readonly target: "#documentCapture.initCamera";
|
|
1002
1002
|
readonly guard: "isCameraPermissionGranted";
|
|
1003
|
-
readonly actions:
|
|
1003
|
+
readonly actions: xstate152.ActionFunction<DocumentCaptureContext, xstate152.DoneActorEvent<PermissionResult, string>, {
|
|
1004
1004
|
type: "CAPTURE";
|
|
1005
1005
|
} | {
|
|
1006
1006
|
type: "FILE_SELECTED";
|
|
@@ -1034,46 +1034,46 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
1034
1034
|
type: "BACK";
|
|
1035
1035
|
} | {
|
|
1036
1036
|
type: "CLOSE";
|
|
1037
|
-
}, undefined,
|
|
1037
|
+
}, undefined, xstate152.Values<{
|
|
1038
1038
|
uploadDocument: {
|
|
1039
1039
|
src: "uploadDocument";
|
|
1040
|
-
logic:
|
|
1040
|
+
logic: xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
1041
1041
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
1042
1042
|
processingType: string;
|
|
1043
1043
|
onProgress: (progress: number) => void;
|
|
1044
|
-
},
|
|
1044
|
+
}, xstate152.EventObject>;
|
|
1045
|
+
id: string | undefined;
|
|
1046
|
+
};
|
|
1047
|
+
checkPermission: {
|
|
1048
|
+
src: "checkPermission";
|
|
1049
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>;
|
|
1045
1050
|
id: string | undefined;
|
|
1046
1051
|
};
|
|
1047
1052
|
requestPermission: {
|
|
1048
1053
|
src: "requestPermission";
|
|
1049
|
-
logic:
|
|
1054
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, {
|
|
1050
1055
|
permissionResult?: PermissionResult;
|
|
1051
1056
|
requestMotionPermission: boolean;
|
|
1052
|
-
},
|
|
1057
|
+
}, xstate152.EventObject>;
|
|
1053
1058
|
id: string | undefined;
|
|
1054
1059
|
};
|
|
1055
1060
|
initCamera: {
|
|
1056
1061
|
src: "initCamera";
|
|
1057
|
-
logic:
|
|
1058
|
-
id: string | undefined;
|
|
1059
|
-
};
|
|
1060
|
-
checkPermission: {
|
|
1061
|
-
src: "checkPermission";
|
|
1062
|
-
logic: xstate156.PromiseActorLogic<PermissionResult, void, xstate156.EventObject>;
|
|
1062
|
+
logic: xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>;
|
|
1063
1063
|
id: string | undefined;
|
|
1064
1064
|
};
|
|
1065
1065
|
finalizeDocumentRequest: {
|
|
1066
1066
|
src: "finalizeDocumentRequest";
|
|
1067
|
-
logic:
|
|
1067
|
+
logic: xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1068
1068
|
processingType: string;
|
|
1069
|
-
},
|
|
1069
|
+
}, xstate152.EventObject>;
|
|
1070
1070
|
id: string | undefined;
|
|
1071
1071
|
};
|
|
1072
1072
|
}>, never, never, never, never>;
|
|
1073
1073
|
}, {
|
|
1074
1074
|
readonly target: "denied";
|
|
1075
1075
|
readonly guard: "isCameraPermissionDenied";
|
|
1076
|
-
readonly actions:
|
|
1076
|
+
readonly actions: xstate152.ActionFunction<DocumentCaptureContext, xstate152.DoneActorEvent<PermissionResult, string>, {
|
|
1077
1077
|
type: "CAPTURE";
|
|
1078
1078
|
} | {
|
|
1079
1079
|
type: "FILE_SELECTED";
|
|
@@ -1107,45 +1107,45 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
1107
1107
|
type: "BACK";
|
|
1108
1108
|
} | {
|
|
1109
1109
|
type: "CLOSE";
|
|
1110
|
-
}, undefined,
|
|
1110
|
+
}, undefined, xstate152.Values<{
|
|
1111
1111
|
uploadDocument: {
|
|
1112
1112
|
src: "uploadDocument";
|
|
1113
|
-
logic:
|
|
1113
|
+
logic: xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
1114
1114
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
1115
1115
|
processingType: string;
|
|
1116
1116
|
onProgress: (progress: number) => void;
|
|
1117
|
-
},
|
|
1117
|
+
}, xstate152.EventObject>;
|
|
1118
|
+
id: string | undefined;
|
|
1119
|
+
};
|
|
1120
|
+
checkPermission: {
|
|
1121
|
+
src: "checkPermission";
|
|
1122
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>;
|
|
1118
1123
|
id: string | undefined;
|
|
1119
1124
|
};
|
|
1120
1125
|
requestPermission: {
|
|
1121
1126
|
src: "requestPermission";
|
|
1122
|
-
logic:
|
|
1127
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, {
|
|
1123
1128
|
permissionResult?: PermissionResult;
|
|
1124
1129
|
requestMotionPermission: boolean;
|
|
1125
|
-
},
|
|
1130
|
+
}, xstate152.EventObject>;
|
|
1126
1131
|
id: string | undefined;
|
|
1127
1132
|
};
|
|
1128
1133
|
initCamera: {
|
|
1129
1134
|
src: "initCamera";
|
|
1130
|
-
logic:
|
|
1131
|
-
id: string | undefined;
|
|
1132
|
-
};
|
|
1133
|
-
checkPermission: {
|
|
1134
|
-
src: "checkPermission";
|
|
1135
|
-
logic: xstate156.PromiseActorLogic<PermissionResult, void, xstate156.EventObject>;
|
|
1135
|
+
logic: xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>;
|
|
1136
1136
|
id: string | undefined;
|
|
1137
1137
|
};
|
|
1138
1138
|
finalizeDocumentRequest: {
|
|
1139
1139
|
src: "finalizeDocumentRequest";
|
|
1140
|
-
logic:
|
|
1140
|
+
logic: xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1141
1141
|
processingType: string;
|
|
1142
|
-
},
|
|
1142
|
+
}, xstate152.EventObject>;
|
|
1143
1143
|
id: string | undefined;
|
|
1144
1144
|
};
|
|
1145
1145
|
}>, never, never, never, never>;
|
|
1146
1146
|
}, {
|
|
1147
1147
|
readonly target: "waitingForUser";
|
|
1148
|
-
readonly actions:
|
|
1148
|
+
readonly actions: xstate152.ActionFunction<DocumentCaptureContext, xstate152.DoneActorEvent<PermissionResult, string>, {
|
|
1149
1149
|
type: "CAPTURE";
|
|
1150
1150
|
} | {
|
|
1151
1151
|
type: "FILE_SELECTED";
|
|
@@ -1179,39 +1179,39 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
1179
1179
|
type: "BACK";
|
|
1180
1180
|
} | {
|
|
1181
1181
|
type: "CLOSE";
|
|
1182
|
-
}, undefined,
|
|
1182
|
+
}, undefined, xstate152.Values<{
|
|
1183
1183
|
uploadDocument: {
|
|
1184
1184
|
src: "uploadDocument";
|
|
1185
|
-
logic:
|
|
1185
|
+
logic: xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
1186
1186
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
1187
1187
|
processingType: string;
|
|
1188
1188
|
onProgress: (progress: number) => void;
|
|
1189
|
-
},
|
|
1189
|
+
}, xstate152.EventObject>;
|
|
1190
|
+
id: string | undefined;
|
|
1191
|
+
};
|
|
1192
|
+
checkPermission: {
|
|
1193
|
+
src: "checkPermission";
|
|
1194
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>;
|
|
1190
1195
|
id: string | undefined;
|
|
1191
1196
|
};
|
|
1192
1197
|
requestPermission: {
|
|
1193
1198
|
src: "requestPermission";
|
|
1194
|
-
logic:
|
|
1199
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, {
|
|
1195
1200
|
permissionResult?: PermissionResult;
|
|
1196
1201
|
requestMotionPermission: boolean;
|
|
1197
|
-
},
|
|
1202
|
+
}, xstate152.EventObject>;
|
|
1198
1203
|
id: string | undefined;
|
|
1199
1204
|
};
|
|
1200
1205
|
initCamera: {
|
|
1201
1206
|
src: "initCamera";
|
|
1202
|
-
logic:
|
|
1203
|
-
id: string | undefined;
|
|
1204
|
-
};
|
|
1205
|
-
checkPermission: {
|
|
1206
|
-
src: "checkPermission";
|
|
1207
|
-
logic: xstate156.PromiseActorLogic<PermissionResult, void, xstate156.EventObject>;
|
|
1207
|
+
logic: xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>;
|
|
1208
1208
|
id: string | undefined;
|
|
1209
1209
|
};
|
|
1210
1210
|
finalizeDocumentRequest: {
|
|
1211
1211
|
src: "finalizeDocumentRequest";
|
|
1212
|
-
logic:
|
|
1212
|
+
logic: xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1213
1213
|
processingType: string;
|
|
1214
|
-
},
|
|
1214
|
+
}, xstate152.EventObject>;
|
|
1215
1215
|
id: string | undefined;
|
|
1216
1216
|
};
|
|
1217
1217
|
}>, never, never, never, never>;
|
|
@@ -1222,7 +1222,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
1222
1222
|
};
|
|
1223
1223
|
};
|
|
1224
1224
|
readonly denied: {
|
|
1225
|
-
readonly entry:
|
|
1225
|
+
readonly entry: xstate152.ActionFunction<DocumentCaptureContext, {
|
|
1226
1226
|
type: "CAPTURE";
|
|
1227
1227
|
} | {
|
|
1228
1228
|
type: "FILE_SELECTED";
|
|
@@ -1290,39 +1290,39 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
1290
1290
|
type: "BACK";
|
|
1291
1291
|
} | {
|
|
1292
1292
|
type: "CLOSE";
|
|
1293
|
-
}, undefined,
|
|
1293
|
+
}, undefined, xstate152.Values<{
|
|
1294
1294
|
uploadDocument: {
|
|
1295
1295
|
src: "uploadDocument";
|
|
1296
|
-
logic:
|
|
1296
|
+
logic: xstate152.PromiseActorLogic<DocumentUploadResponse, {
|
|
1297
1297
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
1298
1298
|
processingType: string;
|
|
1299
1299
|
onProgress: (progress: number) => void;
|
|
1300
|
-
},
|
|
1300
|
+
}, xstate152.EventObject>;
|
|
1301
|
+
id: string | undefined;
|
|
1302
|
+
};
|
|
1303
|
+
checkPermission: {
|
|
1304
|
+
src: "checkPermission";
|
|
1305
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, void, xstate152.EventObject>;
|
|
1301
1306
|
id: string | undefined;
|
|
1302
1307
|
};
|
|
1303
1308
|
requestPermission: {
|
|
1304
1309
|
src: "requestPermission";
|
|
1305
|
-
logic:
|
|
1310
|
+
logic: xstate152.PromiseActorLogic<PermissionResult, {
|
|
1306
1311
|
permissionResult?: PermissionResult;
|
|
1307
1312
|
requestMotionPermission: boolean;
|
|
1308
|
-
},
|
|
1313
|
+
}, xstate152.EventObject>;
|
|
1309
1314
|
id: string | undefined;
|
|
1310
1315
|
};
|
|
1311
1316
|
initCamera: {
|
|
1312
1317
|
src: "initCamera";
|
|
1313
|
-
logic:
|
|
1314
|
-
id: string | undefined;
|
|
1315
|
-
};
|
|
1316
|
-
checkPermission: {
|
|
1317
|
-
src: "checkPermission";
|
|
1318
|
-
logic: xstate156.PromiseActorLogic<PermissionResult, void, xstate156.EventObject>;
|
|
1318
|
+
logic: xstate152.PromiseActorLogic<MediaStream, void, xstate152.EventObject>;
|
|
1319
1319
|
id: string | undefined;
|
|
1320
1320
|
};
|
|
1321
1321
|
finalizeDocumentRequest: {
|
|
1322
1322
|
src: "finalizeDocumentRequest";
|
|
1323
|
-
logic:
|
|
1323
|
+
logic: xstate152.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1324
1324
|
processingType: string;
|
|
1325
|
-
},
|
|
1325
|
+
}, xstate152.EventObject>;
|
|
1326
1326
|
id: string | undefined;
|
|
1327
1327
|
};
|
|
1328
1328
|
}>, never, never, never, never>;
|
|
@@ -1442,7 +1442,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
1442
1442
|
} | {
|
|
1443
1443
|
type: "CLOSE";
|
|
1444
1444
|
};
|
|
1445
|
-
self:
|
|
1445
|
+
self: xstate152.ActorRef<xstate152.MachineSnapshot<DocumentCaptureContext, {
|
|
1446
1446
|
type: "CAPTURE";
|
|
1447
1447
|
} | {
|
|
1448
1448
|
type: "FILE_SELECTED";
|
|
@@ -1476,7 +1476,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
1476
1476
|
type: "BACK";
|
|
1477
1477
|
} | {
|
|
1478
1478
|
type: "CLOSE";
|
|
1479
|
-
}, Record<string,
|
|
1479
|
+
}, Record<string, xstate152.AnyActorRef>, xstate152.StateValue, string, unknown, any, any>, {
|
|
1480
1480
|
type: "CAPTURE";
|
|
1481
1481
|
} | {
|
|
1482
1482
|
type: "FILE_SELECTED";
|
|
@@ -1510,7 +1510,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
1510
1510
|
type: "BACK";
|
|
1511
1511
|
} | {
|
|
1512
1512
|
type: "CLOSE";
|
|
1513
|
-
},
|
|
1513
|
+
}, xstate152.AnyEventObject>;
|
|
1514
1514
|
}) => {
|
|
1515
1515
|
capturedDocument: CapturedDocument;
|
|
1516
1516
|
processingType: DocumentType;
|
|
@@ -1611,7 +1611,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
1611
1611
|
} | {
|
|
1612
1612
|
type: "CLOSE";
|
|
1613
1613
|
};
|
|
1614
|
-
self:
|
|
1614
|
+
self: xstate152.ActorRef<xstate152.MachineSnapshot<DocumentCaptureContext, {
|
|
1615
1615
|
type: "CAPTURE";
|
|
1616
1616
|
} | {
|
|
1617
1617
|
type: "FILE_SELECTED";
|
|
@@ -1645,7 +1645,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
1645
1645
|
type: "BACK";
|
|
1646
1646
|
} | {
|
|
1647
1647
|
type: "CLOSE";
|
|
1648
|
-
}, Record<string,
|
|
1648
|
+
}, Record<string, xstate152.AnyActorRef>, xstate152.StateValue, string, unknown, any, any>, {
|
|
1649
1649
|
type: "CAPTURE";
|
|
1650
1650
|
} | {
|
|
1651
1651
|
type: "FILE_SELECTED";
|
|
@@ -1679,7 +1679,7 @@ declare const documentCaptureMachine: xstate156.StateMachine<DocumentCaptureCont
|
|
|
1679
1679
|
type: "BACK";
|
|
1680
1680
|
} | {
|
|
1681
1681
|
type: "CLOSE";
|
|
1682
|
-
},
|
|
1682
|
+
}, xstate152.AnyEventObject>;
|
|
1683
1683
|
}) => {
|
|
1684
1684
|
processingType: DocumentType;
|
|
1685
1685
|
};
|