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