@incodetech/core 0.0.0-dev-20260702-75032d4d → 0.0.0-dev-20260703-464afb8a
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 +28 -28
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-D8ocqmks.d.ts → consentManager-B9ciAXTR.d.ts} +52 -52
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-DLLe64mr.d.ts → cpfOcrManager-OeiEEYoU.d.ts} +20 -20
- package/dist/document-capture.d.ts +222 -222
- package/dist/document-upload.d.ts +46 -46
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-DURK25z4.esm.js → ekybStateMachine-CyzntJzO.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- 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-Gxwh37Ai.esm.js → flowServices-C_4Yc2kf.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-D6huHpRw.esm.js → idCaptureManager-VyxI4Mt1.esm.js} +1 -1
- package/dist/{idCaptureStateMachine--0-8e21I.esm.js → idCaptureStateMachine-BWTVPXMt.esm.js} +2 -4
- package/dist/{idOcrManager-DePAiG4n.d.ts → idOcrManager-CQCoiHhT.d.ts} +52 -52
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-CQSXBPUb.d.ts → identityReuseManager-DuD39brc.d.ts} +35 -35
- package/dist/{index-4AmcrRyW.d.ts → index-BDZhI2V_.d.ts} +168 -168
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-CfdEUGC_.d.ts → mandatoryConsentManager-B4U6GKph.d.ts} +52 -52
- package/dist/qe-signature.d.ts +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-Dk-kFR33.esm.js → sessionInitializer-hbAgc1U0.esm.js} +1 -1
- package/dist/{setup-DU66XiuI.esm.js → setup-Cnj8G6HJ.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 +159 -159
- package/dist/workflow.esm.js +4 -4
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { t as Manager } from "./Manager-goNPc_h_.js";
|
|
|
3
3
|
import "./Actor-BwgmOPkb.js";
|
|
4
4
|
import { t as CameraStream } from "./camera-CKU96nwJ.js";
|
|
5
5
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BcF-fii5.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as xstate176 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: xstate176.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]: xstate176.ActorRefFromLogic<xstate176.PromiseActorLogic<DocumentUploadResponse, {
|
|
126
126
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
127
127
|
processingType: string;
|
|
128
128
|
onProgress: (progress: number) => void;
|
|
129
|
-
},
|
|
129
|
+
}, xstate176.EventObject>> | xstate176.ActorRefFromLogic<xstate176.PromiseActorLogic<PermissionResult, {
|
|
130
130
|
permissionResult?: PermissionResult;
|
|
131
131
|
requestMotionPermission: boolean;
|
|
132
|
-
},
|
|
132
|
+
}, xstate176.EventObject>> | xstate176.ActorRefFromLogic<xstate176.PromiseActorLogic<PermissionResult, void, xstate176.EventObject>> | xstate176.ActorRefFromLogic<xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>> | xstate176.ActorRefFromLogic<xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
133
133
|
processingType: string;
|
|
134
|
-
},
|
|
135
|
-
},
|
|
134
|
+
}, xstate176.EventObject>> | undefined;
|
|
135
|
+
}, xstate176.Values<{
|
|
136
136
|
uploadDocument: {
|
|
137
137
|
src: "uploadDocument";
|
|
138
|
-
logic:
|
|
138
|
+
logic: xstate176.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
|
+
}, xstate176.EventObject>;
|
|
148
143
|
id: string | undefined;
|
|
149
144
|
};
|
|
150
145
|
requestPermission: {
|
|
151
146
|
src: "requestPermission";
|
|
152
|
-
logic:
|
|
147
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, {
|
|
153
148
|
permissionResult?: PermissionResult;
|
|
154
149
|
requestMotionPermission: boolean;
|
|
155
|
-
},
|
|
150
|
+
}, xstate176.EventObject>;
|
|
151
|
+
id: string | undefined;
|
|
152
|
+
};
|
|
153
|
+
checkPermission: {
|
|
154
|
+
src: "checkPermission";
|
|
155
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, void, xstate176.EventObject>;
|
|
156
156
|
id: string | undefined;
|
|
157
157
|
};
|
|
158
158
|
initCamera: {
|
|
159
159
|
src: "initCamera";
|
|
160
|
-
logic:
|
|
160
|
+
logic: xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>;
|
|
161
161
|
id: string | undefined;
|
|
162
162
|
};
|
|
163
163
|
finalizeDocumentRequest: {
|
|
164
164
|
src: "finalizeDocumentRequest";
|
|
165
|
-
logic:
|
|
165
|
+
logic: xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
166
166
|
processingType: string;
|
|
167
|
-
},
|
|
167
|
+
}, xstate176.EventObject>;
|
|
168
168
|
id: string | undefined;
|
|
169
169
|
};
|
|
170
|
-
}>,
|
|
170
|
+
}>, xstate176.Values<{
|
|
171
|
+
clearError: {
|
|
172
|
+
type: "clearError";
|
|
173
|
+
params: xstate176.NonReducibleUnknown;
|
|
174
|
+
};
|
|
171
175
|
setStream: {
|
|
172
176
|
type: "setStream";
|
|
173
|
-
params:
|
|
177
|
+
params: xstate176.NonReducibleUnknown;
|
|
174
178
|
};
|
|
175
179
|
setCapturedDocument: {
|
|
176
180
|
type: "setCapturedDocument";
|
|
177
|
-
params:
|
|
181
|
+
params: xstate176.NonReducibleUnknown;
|
|
178
182
|
};
|
|
179
183
|
setFileTooLargeError: {
|
|
180
184
|
type: "setFileTooLargeError";
|
|
181
|
-
params:
|
|
185
|
+
params: xstate176.NonReducibleUnknown;
|
|
182
186
|
};
|
|
183
187
|
setProgress: {
|
|
184
188
|
type: "setProgress";
|
|
185
|
-
params:
|
|
189
|
+
params: xstate176.NonReducibleUnknown;
|
|
186
190
|
};
|
|
187
191
|
setUploadError: {
|
|
188
192
|
type: "setUploadError";
|
|
189
|
-
params:
|
|
193
|
+
params: xstate176.NonReducibleUnknown;
|
|
190
194
|
};
|
|
191
195
|
setFinalizeError: {
|
|
192
196
|
type: "setFinalizeError";
|
|
193
|
-
params:
|
|
197
|
+
params: xstate176.NonReducibleUnknown;
|
|
194
198
|
};
|
|
195
199
|
decrementAttemptsRemaining: {
|
|
196
200
|
type: "decrementAttemptsRemaining";
|
|
197
|
-
params:
|
|
201
|
+
params: xstate176.NonReducibleUnknown;
|
|
198
202
|
};
|
|
199
203
|
setCaptureMethodFile: {
|
|
200
204
|
type: "setCaptureMethodFile";
|
|
201
|
-
params:
|
|
205
|
+
params: xstate176.NonReducibleUnknown;
|
|
202
206
|
};
|
|
203
207
|
setCaptureMethodCamera: {
|
|
204
208
|
type: "setCaptureMethodCamera";
|
|
205
|
-
params:
|
|
209
|
+
params: xstate176.NonReducibleUnknown;
|
|
206
210
|
};
|
|
207
211
|
setCaptureMethodGallery: {
|
|
208
212
|
type: "setCaptureMethodGallery";
|
|
209
|
-
params:
|
|
213
|
+
params: xstate176.NonReducibleUnknown;
|
|
210
214
|
};
|
|
211
215
|
clearCapturedDocument: {
|
|
212
216
|
type: "clearCapturedDocument";
|
|
213
|
-
params:
|
|
217
|
+
params: xstate176.NonReducibleUnknown;
|
|
214
218
|
};
|
|
215
219
|
resetPageNumber: {
|
|
216
220
|
type: "resetPageNumber";
|
|
217
|
-
params:
|
|
221
|
+
params: xstate176.NonReducibleUnknown;
|
|
218
222
|
};
|
|
219
223
|
clearCapturedDocumentGalleryRetake: {
|
|
220
224
|
type: "clearCapturedDocumentGalleryRetake";
|
|
221
|
-
params:
|
|
225
|
+
params: xstate176.NonReducibleUnknown;
|
|
222
226
|
};
|
|
223
227
|
setNextPageType: {
|
|
224
228
|
type: "setNextPageType";
|
|
225
|
-
params:
|
|
229
|
+
params: xstate176.NonReducibleUnknown;
|
|
226
230
|
};
|
|
227
231
|
clearForNextPage: {
|
|
228
232
|
type: "clearForNextPage";
|
|
229
|
-
params:
|
|
230
|
-
};
|
|
231
|
-
clearError: {
|
|
232
|
-
type: "clearError";
|
|
233
|
-
params: xstate0.NonReducibleUnknown;
|
|
233
|
+
params: xstate176.NonReducibleUnknown;
|
|
234
234
|
};
|
|
235
235
|
resetProgress: {
|
|
236
236
|
type: "resetProgress";
|
|
237
|
-
params:
|
|
237
|
+
params: xstate176.NonReducibleUnknown;
|
|
238
238
|
};
|
|
239
239
|
stopStream: {
|
|
240
240
|
type: "stopStream";
|
|
241
|
-
params:
|
|
241
|
+
params: xstate176.NonReducibleUnknown;
|
|
242
242
|
};
|
|
243
|
-
}>,
|
|
243
|
+
}>, xstate176.Values<{
|
|
244
244
|
allowSkip: {
|
|
245
245
|
type: "allowSkip";
|
|
246
246
|
params: unknown;
|
|
@@ -303,151 +303,151 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
|
|
|
303
303
|
};
|
|
304
304
|
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "tutorial" | "capturing" | "preview" | "failure" | "nextPage" | "finalizing" | {
|
|
305
305
|
permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
|
|
306
|
-
}, string, DocumentCaptureInput,
|
|
306
|
+
}, string, DocumentCaptureInput, xstate176.NonReducibleUnknown, xstate176.EventObject, xstate176.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" | "checkPermission" | "initCamera" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
|
|
314
314
|
src: "uploadDocument";
|
|
315
|
-
logic:
|
|
315
|
+
logic: xstate176.PromiseActorLogic<DocumentUploadResponse, {
|
|
316
316
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
317
317
|
processingType: string;
|
|
318
318
|
onProgress: (progress: number) => void;
|
|
319
|
-
},
|
|
319
|
+
}, xstate176.EventObject>;
|
|
320
320
|
id: string | undefined;
|
|
321
321
|
} extends infer T ? T extends {
|
|
322
322
|
src: "uploadDocument";
|
|
323
|
-
logic:
|
|
323
|
+
logic: xstate176.PromiseActorLogic<DocumentUploadResponse, {
|
|
324
324
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
325
325
|
processingType: string;
|
|
326
326
|
onProgress: (progress: number) => void;
|
|
327
|
-
},
|
|
327
|
+
}, xstate176.EventObject>;
|
|
328
328
|
id: string | undefined;
|
|
329
329
|
} ? T extends {
|
|
330
330
|
src: TSrc;
|
|
331
|
-
} ?
|
|
331
|
+
} ? xstate176.ConditionalRequired<[options?: ({
|
|
332
332
|
id?: T["id"] | undefined;
|
|
333
333
|
systemId?: string;
|
|
334
|
-
input?:
|
|
334
|
+
input?: xstate176.InputFrom<T["logic"]> | undefined;
|
|
335
335
|
syncSnapshot?: boolean;
|
|
336
|
-
} & { [K in
|
|
337
|
-
src: "
|
|
338
|
-
logic:
|
|
336
|
+
} & { [K in xstate176.RequiredActorOptions<T>]: unknown }) | undefined], xstate176.IsNotNever<xstate176.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
337
|
+
src: "requestPermission";
|
|
338
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, {
|
|
339
|
+
permissionResult?: PermissionResult;
|
|
340
|
+
requestMotionPermission: boolean;
|
|
341
|
+
}, xstate176.EventObject>;
|
|
339
342
|
id: string | undefined;
|
|
340
343
|
} extends infer T_1 ? T_1 extends {
|
|
341
|
-
src: "
|
|
342
|
-
logic:
|
|
344
|
+
src: "requestPermission";
|
|
345
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, {
|
|
346
|
+
permissionResult?: PermissionResult;
|
|
347
|
+
requestMotionPermission: boolean;
|
|
348
|
+
}, xstate176.EventObject>;
|
|
343
349
|
id: string | undefined;
|
|
344
350
|
} ? T_1 extends {
|
|
345
351
|
src: TSrc;
|
|
346
|
-
} ?
|
|
352
|
+
} ? xstate176.ConditionalRequired<[options?: ({
|
|
347
353
|
id?: T_1["id"] | undefined;
|
|
348
354
|
systemId?: string;
|
|
349
|
-
input?:
|
|
355
|
+
input?: xstate176.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 xstate176.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate176.IsNotNever<xstate176.RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
358
|
+
src: "checkPermission";
|
|
359
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, void, xstate176.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: "checkPermission";
|
|
363
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, void, xstate176.EventObject>;
|
|
364
364
|
id: string | undefined;
|
|
365
365
|
} ? T_2 extends {
|
|
366
366
|
src: TSrc;
|
|
367
|
-
} ?
|
|
367
|
+
} ? xstate176.ConditionalRequired<[options?: ({
|
|
368
368
|
id?: T_2["id"] | undefined;
|
|
369
369
|
systemId?: string;
|
|
370
|
-
input?:
|
|
370
|
+
input?: xstate176.InputFrom<T_2["logic"]> | undefined;
|
|
371
371
|
syncSnapshot?: boolean;
|
|
372
|
-
} & { [K_2 in
|
|
372
|
+
} & { [K_2 in xstate176.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate176.IsNotNever<xstate176.RequiredActorOptions<T_2>>> : never : never : never) | ({
|
|
373
373
|
src: "initCamera";
|
|
374
|
-
logic:
|
|
374
|
+
logic: xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>;
|
|
375
375
|
id: string | undefined;
|
|
376
376
|
} extends infer T_3 ? T_3 extends {
|
|
377
377
|
src: "initCamera";
|
|
378
|
-
logic:
|
|
378
|
+
logic: xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>;
|
|
379
379
|
id: string | undefined;
|
|
380
380
|
} ? T_3 extends {
|
|
381
381
|
src: TSrc;
|
|
382
|
-
} ?
|
|
382
|
+
} ? xstate176.ConditionalRequired<[options?: ({
|
|
383
383
|
id?: T_3["id"] | undefined;
|
|
384
384
|
systemId?: string;
|
|
385
|
-
input?:
|
|
385
|
+
input?: xstate176.InputFrom<T_3["logic"]> | undefined;
|
|
386
386
|
syncSnapshot?: boolean;
|
|
387
|
-
} & { [K_3 in
|
|
387
|
+
} & { [K_3 in xstate176.RequiredActorOptions<T_3>]: unknown }) | undefined], xstate176.IsNotNever<xstate176.RequiredActorOptions<T_3>>> : never : never : never) | ({
|
|
388
388
|
src: "finalizeDocumentRequest";
|
|
389
|
-
logic:
|
|
389
|
+
logic: xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
390
390
|
processingType: string;
|
|
391
|
-
},
|
|
391
|
+
}, xstate176.EventObject>;
|
|
392
392
|
id: string | undefined;
|
|
393
393
|
} extends infer T_4 ? T_4 extends {
|
|
394
394
|
src: "finalizeDocumentRequest";
|
|
395
|
-
logic:
|
|
395
|
+
logic: xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
396
396
|
processingType: string;
|
|
397
|
-
},
|
|
397
|
+
}, xstate176.EventObject>;
|
|
398
398
|
id: string | undefined;
|
|
399
399
|
} ? T_4 extends {
|
|
400
400
|
src: TSrc;
|
|
401
|
-
} ?
|
|
401
|
+
} ? xstate176.ConditionalRequired<[options?: ({
|
|
402
402
|
id?: T_4["id"] | undefined;
|
|
403
403
|
systemId?: string;
|
|
404
|
-
input?:
|
|
404
|
+
input?: xstate176.InputFrom<T_4["logic"]> | undefined;
|
|
405
405
|
syncSnapshot?: boolean;
|
|
406
|
-
} & { [K_4 in
|
|
406
|
+
} & { [K_4 in xstate176.RequiredActorOptions<T_4>]: unknown }) | undefined], xstate176.IsNotNever<xstate176.RequiredActorOptions<T_4>>> : never : never : never)): xstate176.ActorRefFromLogic<xstate176.GetConcreteByKey<xstate176.Values<{
|
|
407
407
|
uploadDocument: {
|
|
408
408
|
src: "uploadDocument";
|
|
409
|
-
logic:
|
|
409
|
+
logic: xstate176.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
|
+
}, xstate176.EventObject>;
|
|
419
414
|
id: string | undefined;
|
|
420
415
|
};
|
|
421
416
|
requestPermission: {
|
|
422
417
|
src: "requestPermission";
|
|
423
|
-
logic:
|
|
418
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, {
|
|
424
419
|
permissionResult?: PermissionResult;
|
|
425
420
|
requestMotionPermission: boolean;
|
|
426
|
-
},
|
|
421
|
+
}, xstate176.EventObject>;
|
|
422
|
+
id: string | undefined;
|
|
423
|
+
};
|
|
424
|
+
checkPermission: {
|
|
425
|
+
src: "checkPermission";
|
|
426
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, void, xstate176.EventObject>;
|
|
427
427
|
id: string | undefined;
|
|
428
428
|
};
|
|
429
429
|
initCamera: {
|
|
430
430
|
src: "initCamera";
|
|
431
|
-
logic:
|
|
431
|
+
logic: xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>;
|
|
432
432
|
id: string | undefined;
|
|
433
433
|
};
|
|
434
434
|
finalizeDocumentRequest: {
|
|
435
435
|
src: "finalizeDocumentRequest";
|
|
436
|
-
logic:
|
|
436
|
+
logic: xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
437
437
|
processingType: string;
|
|
438
|
-
},
|
|
438
|
+
}, xstate176.EventObject>;
|
|
439
439
|
id: string | undefined;
|
|
440
440
|
};
|
|
441
441
|
}>, "src", TSrc>["logic"]>;
|
|
442
|
-
<TLogic extends
|
|
442
|
+
<TLogic extends xstate176.AnyActorLogic>(src: TLogic, ...[options]: xstate176.ConditionalRequired<[options?: ({
|
|
443
443
|
id?: never;
|
|
444
444
|
systemId?: string;
|
|
445
|
-
input?:
|
|
445
|
+
input?: xstate176.InputFrom<TLogic> | undefined;
|
|
446
446
|
syncSnapshot?: boolean;
|
|
447
|
-
} & { [K in
|
|
447
|
+
} & { [K in xstate176.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate176.IsNotNever<xstate176.RequiredLogicInput<TLogic>>>): xstate176.ActorRefFromLogic<TLogic>;
|
|
448
448
|
};
|
|
449
449
|
input: DocumentCaptureInput;
|
|
450
|
-
self:
|
|
450
|
+
self: xstate176.ActorRef<xstate176.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, xstate176.AnyActorRef | undefined>, xstate176.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
|
+
}, xstate176.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: xstate176.ActionFunction<DocumentCaptureContext, xstate176.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, xstate176.Values<{
|
|
613
613
|
uploadDocument: {
|
|
614
614
|
src: "uploadDocument";
|
|
615
|
-
logic:
|
|
615
|
+
logic: xstate176.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
|
+
}, xstate176.EventObject>;
|
|
625
620
|
id: string | undefined;
|
|
626
621
|
};
|
|
627
622
|
requestPermission: {
|
|
628
623
|
src: "requestPermission";
|
|
629
|
-
logic:
|
|
624
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, {
|
|
630
625
|
permissionResult?: PermissionResult;
|
|
631
626
|
requestMotionPermission: boolean;
|
|
632
|
-
},
|
|
627
|
+
}, xstate176.EventObject>;
|
|
628
|
+
id: string | undefined;
|
|
629
|
+
};
|
|
630
|
+
checkPermission: {
|
|
631
|
+
src: "checkPermission";
|
|
632
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, void, xstate176.EventObject>;
|
|
633
633
|
id: string | undefined;
|
|
634
634
|
};
|
|
635
635
|
initCamera: {
|
|
636
636
|
src: "initCamera";
|
|
637
|
-
logic:
|
|
637
|
+
logic: xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>;
|
|
638
638
|
id: string | undefined;
|
|
639
639
|
};
|
|
640
640
|
finalizeDocumentRequest: {
|
|
641
641
|
src: "finalizeDocumentRequest";
|
|
642
|
-
logic:
|
|
642
|
+
logic: xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
643
643
|
processingType: string;
|
|
644
|
-
},
|
|
644
|
+
}, xstate176.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: xstate176.ActionFunction<DocumentCaptureContext, xstate176.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, xstate176.Values<{
|
|
686
686
|
uploadDocument: {
|
|
687
687
|
src: "uploadDocument";
|
|
688
|
-
logic:
|
|
688
|
+
logic: xstate176.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
|
+
}, xstate176.EventObject>;
|
|
698
693
|
id: string | undefined;
|
|
699
694
|
};
|
|
700
695
|
requestPermission: {
|
|
701
696
|
src: "requestPermission";
|
|
702
|
-
logic:
|
|
697
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, {
|
|
703
698
|
permissionResult?: PermissionResult;
|
|
704
699
|
requestMotionPermission: boolean;
|
|
705
|
-
},
|
|
700
|
+
}, xstate176.EventObject>;
|
|
701
|
+
id: string | undefined;
|
|
702
|
+
};
|
|
703
|
+
checkPermission: {
|
|
704
|
+
src: "checkPermission";
|
|
705
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, void, xstate176.EventObject>;
|
|
706
706
|
id: string | undefined;
|
|
707
707
|
};
|
|
708
708
|
initCamera: {
|
|
709
709
|
src: "initCamera";
|
|
710
|
-
logic:
|
|
710
|
+
logic: xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>;
|
|
711
711
|
id: string | undefined;
|
|
712
712
|
};
|
|
713
713
|
finalizeDocumentRequest: {
|
|
714
714
|
src: "finalizeDocumentRequest";
|
|
715
|
-
logic:
|
|
715
|
+
logic: xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
716
716
|
processingType: string;
|
|
717
|
-
},
|
|
717
|
+
}, xstate176.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: xstate176.ActionFunction<DocumentCaptureContext, xstate176.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, xstate176.Values<{
|
|
758
758
|
uploadDocument: {
|
|
759
759
|
src: "uploadDocument";
|
|
760
|
-
logic:
|
|
760
|
+
logic: xstate176.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
|
+
}, xstate176.EventObject>;
|
|
770
765
|
id: string | undefined;
|
|
771
766
|
};
|
|
772
767
|
requestPermission: {
|
|
773
768
|
src: "requestPermission";
|
|
774
|
-
logic:
|
|
769
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, {
|
|
775
770
|
permissionResult?: PermissionResult;
|
|
776
771
|
requestMotionPermission: boolean;
|
|
777
|
-
},
|
|
772
|
+
}, xstate176.EventObject>;
|
|
773
|
+
id: string | undefined;
|
|
774
|
+
};
|
|
775
|
+
checkPermission: {
|
|
776
|
+
src: "checkPermission";
|
|
777
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, void, xstate176.EventObject>;
|
|
778
778
|
id: string | undefined;
|
|
779
779
|
};
|
|
780
780
|
initCamera: {
|
|
781
781
|
src: "initCamera";
|
|
782
|
-
logic:
|
|
782
|
+
logic: xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>;
|
|
783
783
|
id: string | undefined;
|
|
784
784
|
};
|
|
785
785
|
finalizeDocumentRequest: {
|
|
786
786
|
src: "finalizeDocumentRequest";
|
|
787
|
-
logic:
|
|
787
|
+
logic: xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
788
788
|
processingType: string;
|
|
789
|
-
},
|
|
789
|
+
}, xstate176.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: xstate176.ActionFunction<DocumentCaptureContext, xstate176.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, xstate176.Values<{
|
|
831
831
|
uploadDocument: {
|
|
832
832
|
src: "uploadDocument";
|
|
833
|
-
logic:
|
|
833
|
+
logic: xstate176.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
|
+
}, xstate176.EventObject>;
|
|
843
838
|
id: string | undefined;
|
|
844
839
|
};
|
|
845
840
|
requestPermission: {
|
|
846
841
|
src: "requestPermission";
|
|
847
|
-
logic:
|
|
842
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, {
|
|
848
843
|
permissionResult?: PermissionResult;
|
|
849
844
|
requestMotionPermission: boolean;
|
|
850
|
-
},
|
|
845
|
+
}, xstate176.EventObject>;
|
|
846
|
+
id: string | undefined;
|
|
847
|
+
};
|
|
848
|
+
checkPermission: {
|
|
849
|
+
src: "checkPermission";
|
|
850
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, void, xstate176.EventObject>;
|
|
851
851
|
id: string | undefined;
|
|
852
852
|
};
|
|
853
853
|
initCamera: {
|
|
854
854
|
src: "initCamera";
|
|
855
|
-
logic:
|
|
855
|
+
logic: xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>;
|
|
856
856
|
id: string | undefined;
|
|
857
857
|
};
|
|
858
858
|
finalizeDocumentRequest: {
|
|
859
859
|
src: "finalizeDocumentRequest";
|
|
860
|
-
logic:
|
|
860
|
+
logic: xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
861
861
|
processingType: string;
|
|
862
|
-
},
|
|
862
|
+
}, xstate176.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: xstate176.ActorRef<xstate176.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, xstate176.AnyActorRef>, xstate176.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
|
+
}, xstate176.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: xstate176.ActionFunction<DocumentCaptureContext, xstate176.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, xstate176.Values<{
|
|
1039
1039
|
uploadDocument: {
|
|
1040
1040
|
src: "uploadDocument";
|
|
1041
|
-
logic:
|
|
1041
|
+
logic: xstate176.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
|
+
}, xstate176.EventObject>;
|
|
1051
1046
|
id: string | undefined;
|
|
1052
1047
|
};
|
|
1053
1048
|
requestPermission: {
|
|
1054
1049
|
src: "requestPermission";
|
|
1055
|
-
logic:
|
|
1050
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, {
|
|
1056
1051
|
permissionResult?: PermissionResult;
|
|
1057
1052
|
requestMotionPermission: boolean;
|
|
1058
|
-
},
|
|
1053
|
+
}, xstate176.EventObject>;
|
|
1054
|
+
id: string | undefined;
|
|
1055
|
+
};
|
|
1056
|
+
checkPermission: {
|
|
1057
|
+
src: "checkPermission";
|
|
1058
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, void, xstate176.EventObject>;
|
|
1059
1059
|
id: string | undefined;
|
|
1060
1060
|
};
|
|
1061
1061
|
initCamera: {
|
|
1062
1062
|
src: "initCamera";
|
|
1063
|
-
logic:
|
|
1063
|
+
logic: xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>;
|
|
1064
1064
|
id: string | undefined;
|
|
1065
1065
|
};
|
|
1066
1066
|
finalizeDocumentRequest: {
|
|
1067
1067
|
src: "finalizeDocumentRequest";
|
|
1068
|
-
logic:
|
|
1068
|
+
logic: xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1069
1069
|
processingType: string;
|
|
1070
|
-
},
|
|
1070
|
+
}, xstate176.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: xstate176.ActionFunction<DocumentCaptureContext, xstate176.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, xstate176.Values<{
|
|
1112
1112
|
uploadDocument: {
|
|
1113
1113
|
src: "uploadDocument";
|
|
1114
|
-
logic:
|
|
1114
|
+
logic: xstate176.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
|
+
}, xstate176.EventObject>;
|
|
1124
1119
|
id: string | undefined;
|
|
1125
1120
|
};
|
|
1126
1121
|
requestPermission: {
|
|
1127
1122
|
src: "requestPermission";
|
|
1128
|
-
logic:
|
|
1123
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, {
|
|
1129
1124
|
permissionResult?: PermissionResult;
|
|
1130
1125
|
requestMotionPermission: boolean;
|
|
1131
|
-
},
|
|
1126
|
+
}, xstate176.EventObject>;
|
|
1127
|
+
id: string | undefined;
|
|
1128
|
+
};
|
|
1129
|
+
checkPermission: {
|
|
1130
|
+
src: "checkPermission";
|
|
1131
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, void, xstate176.EventObject>;
|
|
1132
1132
|
id: string | undefined;
|
|
1133
1133
|
};
|
|
1134
1134
|
initCamera: {
|
|
1135
1135
|
src: "initCamera";
|
|
1136
|
-
logic:
|
|
1136
|
+
logic: xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>;
|
|
1137
1137
|
id: string | undefined;
|
|
1138
1138
|
};
|
|
1139
1139
|
finalizeDocumentRequest: {
|
|
1140
1140
|
src: "finalizeDocumentRequest";
|
|
1141
|
-
logic:
|
|
1141
|
+
logic: xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1142
1142
|
processingType: string;
|
|
1143
|
-
},
|
|
1143
|
+
}, xstate176.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: xstate176.ActionFunction<DocumentCaptureContext, xstate176.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, xstate176.Values<{
|
|
1184
1184
|
uploadDocument: {
|
|
1185
1185
|
src: "uploadDocument";
|
|
1186
|
-
logic:
|
|
1186
|
+
logic: xstate176.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
|
+
}, xstate176.EventObject>;
|
|
1196
1191
|
id: string | undefined;
|
|
1197
1192
|
};
|
|
1198
1193
|
requestPermission: {
|
|
1199
1194
|
src: "requestPermission";
|
|
1200
|
-
logic:
|
|
1195
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, {
|
|
1201
1196
|
permissionResult?: PermissionResult;
|
|
1202
1197
|
requestMotionPermission: boolean;
|
|
1203
|
-
},
|
|
1198
|
+
}, xstate176.EventObject>;
|
|
1199
|
+
id: string | undefined;
|
|
1200
|
+
};
|
|
1201
|
+
checkPermission: {
|
|
1202
|
+
src: "checkPermission";
|
|
1203
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, void, xstate176.EventObject>;
|
|
1204
1204
|
id: string | undefined;
|
|
1205
1205
|
};
|
|
1206
1206
|
initCamera: {
|
|
1207
1207
|
src: "initCamera";
|
|
1208
|
-
logic:
|
|
1208
|
+
logic: xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>;
|
|
1209
1209
|
id: string | undefined;
|
|
1210
1210
|
};
|
|
1211
1211
|
finalizeDocumentRequest: {
|
|
1212
1212
|
src: "finalizeDocumentRequest";
|
|
1213
|
-
logic:
|
|
1213
|
+
logic: xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1214
1214
|
processingType: string;
|
|
1215
|
-
},
|
|
1215
|
+
}, xstate176.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: xstate176.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, xstate176.Values<{
|
|
1295
1295
|
uploadDocument: {
|
|
1296
1296
|
src: "uploadDocument";
|
|
1297
|
-
logic:
|
|
1297
|
+
logic: xstate176.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
|
+
}, xstate176.EventObject>;
|
|
1307
1302
|
id: string | undefined;
|
|
1308
1303
|
};
|
|
1309
1304
|
requestPermission: {
|
|
1310
1305
|
src: "requestPermission";
|
|
1311
|
-
logic:
|
|
1306
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, {
|
|
1312
1307
|
permissionResult?: PermissionResult;
|
|
1313
1308
|
requestMotionPermission: boolean;
|
|
1314
|
-
},
|
|
1309
|
+
}, xstate176.EventObject>;
|
|
1310
|
+
id: string | undefined;
|
|
1311
|
+
};
|
|
1312
|
+
checkPermission: {
|
|
1313
|
+
src: "checkPermission";
|
|
1314
|
+
logic: xstate176.PromiseActorLogic<PermissionResult, void, xstate176.EventObject>;
|
|
1315
1315
|
id: string | undefined;
|
|
1316
1316
|
};
|
|
1317
1317
|
initCamera: {
|
|
1318
1318
|
src: "initCamera";
|
|
1319
|
-
logic:
|
|
1319
|
+
logic: xstate176.PromiseActorLogic<MediaStream, void, xstate176.EventObject>;
|
|
1320
1320
|
id: string | undefined;
|
|
1321
1321
|
};
|
|
1322
1322
|
finalizeDocumentRequest: {
|
|
1323
1323
|
src: "finalizeDocumentRequest";
|
|
1324
|
-
logic:
|
|
1324
|
+
logic: xstate176.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
1325
1325
|
processingType: string;
|
|
1326
|
-
},
|
|
1326
|
+
}, xstate176.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: xstate176.ActorRef<xstate176.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, xstate176.AnyActorRef>, xstate176.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
|
+
}, xstate176.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: xstate176.ActorRef<xstate176.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, xstate176.AnyActorRef>, xstate176.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
|
+
}, xstate176.AnyEventObject>;
|
|
1684
1684
|
}) => {
|
|
1685
1685
|
processingType: DocumentType;
|
|
1686
1686
|
};
|