@incodetech/core 0.0.0-dev-20260320-c9bdba0 → 0.0.0-dev-20260320-b29aeee
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/document-capture.d.ts +35 -35
- package/dist/document-upload.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-DsNvecSe.js";
|
|
2
2
|
import { t as CameraStream } from "./camera-Bzi6CMAW.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate276 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/document-capture/types.d.ts
|
|
6
6
|
type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
|
|
@@ -72,7 +72,7 @@ type DocumentCaptureInput = {
|
|
|
72
72
|
};
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
75
|
-
declare const documentCaptureMachine:
|
|
75
|
+
declare const documentCaptureMachine: xstate276.StateMachine<DocumentCaptureContext, {
|
|
76
76
|
type: "CAPTURE";
|
|
77
77
|
} | {
|
|
78
78
|
type: "FILE_SELECTED";
|
|
@@ -95,27 +95,27 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
95
95
|
} | {
|
|
96
96
|
type: "CLOSE";
|
|
97
97
|
}, {
|
|
98
|
-
[x: string]:
|
|
98
|
+
[x: string]: xstate276.ActorRefFromLogic<xstate276.PromiseActorLogic<MediaStream, void, xstate276.EventObject>> | xstate276.ActorRefFromLogic<xstate276.PromiseActorLogic<DocumentUploadResponse, {
|
|
99
99
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
100
100
|
processingType: string;
|
|
101
101
|
onProgress: (progress: number) => void;
|
|
102
|
-
},
|
|
103
|
-
},
|
|
102
|
+
}, xstate276.EventObject>> | undefined;
|
|
103
|
+
}, xstate276.Values<{
|
|
104
104
|
initCamera: {
|
|
105
105
|
src: "initCamera";
|
|
106
|
-
logic:
|
|
106
|
+
logic: xstate276.PromiseActorLogic<MediaStream, void, xstate276.EventObject>;
|
|
107
107
|
id: string | undefined;
|
|
108
108
|
};
|
|
109
109
|
uploadDocument: {
|
|
110
110
|
src: "uploadDocument";
|
|
111
|
-
logic:
|
|
111
|
+
logic: xstate276.PromiseActorLogic<DocumentUploadResponse, {
|
|
112
112
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
113
113
|
processingType: string;
|
|
114
114
|
onProgress: (progress: number) => void;
|
|
115
|
-
},
|
|
115
|
+
}, xstate276.EventObject>;
|
|
116
116
|
id: string | undefined;
|
|
117
117
|
};
|
|
118
|
-
}>,
|
|
118
|
+
}>, xstate276.Values<{
|
|
119
119
|
setStream: {
|
|
120
120
|
type: "setStream";
|
|
121
121
|
params: unknown;
|
|
@@ -196,7 +196,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
196
196
|
type: "trackFailure";
|
|
197
197
|
params: unknown;
|
|
198
198
|
};
|
|
199
|
-
}>,
|
|
199
|
+
}>, xstate276.Values<{
|
|
200
200
|
allowSkip: {
|
|
201
201
|
type: "allowSkip";
|
|
202
202
|
params: unknown;
|
|
@@ -233,7 +233,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
233
233
|
type: "isPendingNextPage";
|
|
234
234
|
params: unknown;
|
|
235
235
|
};
|
|
236
|
-
}>, never, "initCamera" | "capturing" | "closed" | "uploading" | "finished" | "tutorial" | "preview" | "failure" | "success", string, DocumentCaptureInput,
|
|
236
|
+
}>, never, "initCamera" | "capturing" | "closed" | "uploading" | "finished" | "tutorial" | "preview" | "failure" | "success", string, DocumentCaptureInput, xstate276.NonReducibleUnknown, xstate276.EventObject, xstate276.MetaObject, {
|
|
237
237
|
readonly id: "documentCapture";
|
|
238
238
|
readonly initial: "tutorial";
|
|
239
239
|
readonly context: ({
|
|
@@ -242,67 +242,67 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
242
242
|
spawn: {
|
|
243
243
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
244
244
|
src: "initCamera";
|
|
245
|
-
logic:
|
|
245
|
+
logic: xstate276.PromiseActorLogic<MediaStream, void, xstate276.EventObject>;
|
|
246
246
|
id: string | undefined;
|
|
247
247
|
} extends infer T ? T extends {
|
|
248
248
|
src: "initCamera";
|
|
249
|
-
logic:
|
|
249
|
+
logic: xstate276.PromiseActorLogic<MediaStream, void, xstate276.EventObject>;
|
|
250
250
|
id: string | undefined;
|
|
251
251
|
} ? T extends {
|
|
252
252
|
src: TSrc;
|
|
253
|
-
} ?
|
|
253
|
+
} ? xstate276.ConditionalRequired<[options?: ({
|
|
254
254
|
id?: T["id"] | undefined;
|
|
255
255
|
systemId?: string;
|
|
256
|
-
input?:
|
|
256
|
+
input?: xstate276.InputFrom<T["logic"]> | undefined;
|
|
257
257
|
syncSnapshot?: boolean;
|
|
258
|
-
} & { [K in
|
|
258
|
+
} & { [K in xstate276.RequiredActorOptions<T>]: unknown }) | undefined], xstate276.IsNotNever<xstate276.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
259
259
|
src: "uploadDocument";
|
|
260
|
-
logic:
|
|
260
|
+
logic: xstate276.PromiseActorLogic<DocumentUploadResponse, {
|
|
261
261
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
262
262
|
processingType: string;
|
|
263
263
|
onProgress: (progress: number) => void;
|
|
264
|
-
},
|
|
264
|
+
}, xstate276.EventObject>;
|
|
265
265
|
id: string | undefined;
|
|
266
266
|
} extends infer T_1 ? T_1 extends {
|
|
267
267
|
src: "uploadDocument";
|
|
268
|
-
logic:
|
|
268
|
+
logic: xstate276.PromiseActorLogic<DocumentUploadResponse, {
|
|
269
269
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
270
270
|
processingType: string;
|
|
271
271
|
onProgress: (progress: number) => void;
|
|
272
|
-
},
|
|
272
|
+
}, xstate276.EventObject>;
|
|
273
273
|
id: string | undefined;
|
|
274
274
|
} ? T_1 extends {
|
|
275
275
|
src: TSrc;
|
|
276
|
-
} ?
|
|
276
|
+
} ? xstate276.ConditionalRequired<[options?: ({
|
|
277
277
|
id?: T_1["id"] | undefined;
|
|
278
278
|
systemId?: string;
|
|
279
|
-
input?:
|
|
279
|
+
input?: xstate276.InputFrom<T_1["logic"]> | undefined;
|
|
280
280
|
syncSnapshot?: boolean;
|
|
281
|
-
} & { [K_1 in
|
|
281
|
+
} & { [K_1 in xstate276.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate276.IsNotNever<xstate276.RequiredActorOptions<T_1>>> : never : never : never)): xstate276.ActorRefFromLogic<xstate276.GetConcreteByKey<xstate276.Values<{
|
|
282
282
|
initCamera: {
|
|
283
283
|
src: "initCamera";
|
|
284
|
-
logic:
|
|
284
|
+
logic: xstate276.PromiseActorLogic<MediaStream, void, xstate276.EventObject>;
|
|
285
285
|
id: string | undefined;
|
|
286
286
|
};
|
|
287
287
|
uploadDocument: {
|
|
288
288
|
src: "uploadDocument";
|
|
289
|
-
logic:
|
|
289
|
+
logic: xstate276.PromiseActorLogic<DocumentUploadResponse, {
|
|
290
290
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
291
291
|
processingType: string;
|
|
292
292
|
onProgress: (progress: number) => void;
|
|
293
|
-
},
|
|
293
|
+
}, xstate276.EventObject>;
|
|
294
294
|
id: string | undefined;
|
|
295
295
|
};
|
|
296
296
|
}>, "src", TSrc>["logic"]>;
|
|
297
|
-
<TLogic extends
|
|
297
|
+
<TLogic extends xstate276.AnyActorLogic>(src: TLogic, ...[options]: xstate276.ConditionalRequired<[options?: ({
|
|
298
298
|
id?: never;
|
|
299
299
|
systemId?: string;
|
|
300
|
-
input?:
|
|
300
|
+
input?: xstate276.InputFrom<TLogic> | undefined;
|
|
301
301
|
syncSnapshot?: boolean;
|
|
302
|
-
} & { [K in
|
|
302
|
+
} & { [K in xstate276.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate276.IsNotNever<xstate276.RequiredLogicInput<TLogic>>>): xstate276.ActorRefFromLogic<TLogic>;
|
|
303
303
|
};
|
|
304
304
|
input: DocumentCaptureInput;
|
|
305
|
-
self:
|
|
305
|
+
self: xstate276.ActorRef<xstate276.MachineSnapshot<DocumentCaptureContext, {
|
|
306
306
|
type: "CAPTURE";
|
|
307
307
|
} | {
|
|
308
308
|
type: "FILE_SELECTED";
|
|
@@ -324,7 +324,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
324
324
|
type: "SKIP";
|
|
325
325
|
} | {
|
|
326
326
|
type: "CLOSE";
|
|
327
|
-
}, Record<string,
|
|
327
|
+
}, Record<string, xstate276.AnyActorRef | undefined>, xstate276.StateValue, string, unknown, any, any>, {
|
|
328
328
|
type: "CAPTURE";
|
|
329
329
|
} | {
|
|
330
330
|
type: "FILE_SELECTED";
|
|
@@ -346,7 +346,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
346
346
|
type: "SKIP";
|
|
347
347
|
} | {
|
|
348
348
|
type: "CLOSE";
|
|
349
|
-
},
|
|
349
|
+
}, xstate276.AnyEventObject>;
|
|
350
350
|
}) => {
|
|
351
351
|
config: {
|
|
352
352
|
processingType: DocumentType;
|
|
@@ -487,7 +487,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
487
487
|
} | {
|
|
488
488
|
type: "CLOSE";
|
|
489
489
|
};
|
|
490
|
-
self:
|
|
490
|
+
self: xstate276.ActorRef<xstate276.MachineSnapshot<DocumentCaptureContext, {
|
|
491
491
|
type: "CAPTURE";
|
|
492
492
|
} | {
|
|
493
493
|
type: "FILE_SELECTED";
|
|
@@ -509,7 +509,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
509
509
|
type: "SKIP";
|
|
510
510
|
} | {
|
|
511
511
|
type: "CLOSE";
|
|
512
|
-
}, Record<string,
|
|
512
|
+
}, Record<string, xstate276.AnyActorRef>, xstate276.StateValue, string, unknown, any, any>, {
|
|
513
513
|
type: "CAPTURE";
|
|
514
514
|
} | {
|
|
515
515
|
type: "FILE_SELECTED";
|
|
@@ -531,7 +531,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
531
531
|
type: "SKIP";
|
|
532
532
|
} | {
|
|
533
533
|
type: "CLOSE";
|
|
534
|
-
},
|
|
534
|
+
}, xstate276.AnyEventObject>;
|
|
535
535
|
}) => {
|
|
536
536
|
capturedDocument: CapturedDocument;
|
|
537
537
|
processingType: DocumentType;
|
|
@@ -62,7 +62,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
62
62
|
type: "stopStream";
|
|
63
63
|
params: xstate0.NonReducibleUnknown;
|
|
64
64
|
};
|
|
65
|
-
}>, never, never, "
|
|
65
|
+
}>, never, never, "error" | "initCamera" | "idle" | "capturing" | "closed" | "uploading" | "finished", string, DocumentUploadInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
66
66
|
readonly id: "documentUpload";
|
|
67
67
|
readonly initial: "idle";
|
|
68
68
|
readonly context: ({
|