@incodetech/core 0.0.0-dev-20260409-930ff95 → 0.0.0-dev-20260409-9829838
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/consent.d.ts +53 -53
- package/dist/document-capture.d.ts +67 -67
- package/dist/document-upload.d.ts +40 -40
- package/dist/identity-reuse.d.ts +40 -40
- package/dist/mandatory-consent.d.ts +53 -53
- package/dist/workflow.d.ts +85 -85
- package/package.json +3 -3
package/dist/consent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-Bcnemkyi.js";
|
|
2
2
|
import "./Actor-BkPcZGke.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate0 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/consent/types.d.ts
|
|
6
6
|
type ConsentConfig = {
|
|
@@ -36,7 +36,7 @@ type ConsentContext = {
|
|
|
36
36
|
type ConsentInput = {
|
|
37
37
|
config: ConsentConfig;
|
|
38
38
|
};
|
|
39
|
-
declare const consentMachine:
|
|
39
|
+
declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
40
40
|
type: "LOAD";
|
|
41
41
|
} | {
|
|
42
42
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -48,53 +48,53 @@ declare const consentMachine: xstate451.StateMachine<ConsentContext, {
|
|
|
48
48
|
} | {
|
|
49
49
|
type: "RESET";
|
|
50
50
|
}, {
|
|
51
|
-
[x: string]:
|
|
51
|
+
[x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
52
52
|
consentId: string;
|
|
53
|
-
},
|
|
53
|
+
}, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
|
|
54
54
|
languageConsentId: string;
|
|
55
55
|
checkboxes: ConsentCheckbox[];
|
|
56
|
-
},
|
|
57
|
-
},
|
|
56
|
+
}, xstate0.EventObject>> | undefined;
|
|
57
|
+
}, xstate0.Values<{
|
|
58
58
|
fetchConsent: {
|
|
59
59
|
src: "fetchConsent";
|
|
60
|
-
logic:
|
|
60
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
61
61
|
consentId: string;
|
|
62
|
-
},
|
|
62
|
+
}, xstate0.EventObject>;
|
|
63
63
|
id: string | undefined;
|
|
64
64
|
};
|
|
65
65
|
submitConsent: {
|
|
66
66
|
src: "submitConsent";
|
|
67
|
-
logic:
|
|
67
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
68
68
|
languageConsentId: string;
|
|
69
69
|
checkboxes: ConsentCheckbox[];
|
|
70
|
-
},
|
|
70
|
+
}, xstate0.EventObject>;
|
|
71
71
|
id: string | undefined;
|
|
72
72
|
};
|
|
73
|
-
}>,
|
|
73
|
+
}>, xstate0.Values<{
|
|
74
|
+
setConsentData: {
|
|
75
|
+
type: "setConsentData";
|
|
76
|
+
params: xstate0.NonReducibleUnknown;
|
|
77
|
+
};
|
|
78
|
+
toggleCheckbox: {
|
|
79
|
+
type: "toggleCheckbox";
|
|
80
|
+
params: xstate0.NonReducibleUnknown;
|
|
81
|
+
};
|
|
74
82
|
setError: {
|
|
75
83
|
type: "setError";
|
|
76
|
-
params:
|
|
84
|
+
params: xstate0.NonReducibleUnknown;
|
|
77
85
|
};
|
|
78
86
|
clearError: {
|
|
79
87
|
type: "clearError";
|
|
80
|
-
params:
|
|
88
|
+
params: xstate0.NonReducibleUnknown;
|
|
81
89
|
};
|
|
82
90
|
resetContext: {
|
|
83
91
|
type: "resetContext";
|
|
84
|
-
params:
|
|
85
|
-
};
|
|
86
|
-
setConsentData: {
|
|
87
|
-
type: "setConsentData";
|
|
88
|
-
params: xstate451.NonReducibleUnknown;
|
|
89
|
-
};
|
|
90
|
-
toggleCheckbox: {
|
|
91
|
-
type: "toggleCheckbox";
|
|
92
|
-
params: xstate451.NonReducibleUnknown;
|
|
92
|
+
params: xstate0.NonReducibleUnknown;
|
|
93
93
|
};
|
|
94
94
|
}>, {
|
|
95
95
|
type: "canSubmit";
|
|
96
96
|
params: unknown;
|
|
97
|
-
}, never, "error" | "idle" | "loading" | "
|
|
97
|
+
}, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished", string, ConsentInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
98
98
|
readonly id: "consent";
|
|
99
99
|
readonly initial: "idle";
|
|
100
100
|
readonly context: ({
|
|
@@ -103,70 +103,70 @@ declare const consentMachine: xstate451.StateMachine<ConsentContext, {
|
|
|
103
103
|
spawn: {
|
|
104
104
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
105
105
|
src: "fetchConsent";
|
|
106
|
-
logic:
|
|
106
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
107
107
|
consentId: string;
|
|
108
|
-
},
|
|
108
|
+
}, xstate0.EventObject>;
|
|
109
109
|
id: string | undefined;
|
|
110
110
|
} extends infer T ? T extends {
|
|
111
111
|
src: "fetchConsent";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
113
113
|
consentId: string;
|
|
114
|
-
},
|
|
114
|
+
}, xstate0.EventObject>;
|
|
115
115
|
id: string | undefined;
|
|
116
116
|
} ? T extends {
|
|
117
117
|
src: TSrc;
|
|
118
|
-
} ?
|
|
118
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
119
119
|
id?: T["id"] | undefined;
|
|
120
120
|
systemId?: string;
|
|
121
|
-
input?:
|
|
121
|
+
input?: xstate0.InputFrom<T["logic"]> | undefined;
|
|
122
122
|
syncSnapshot?: boolean;
|
|
123
|
-
} & { [K in
|
|
123
|
+
} & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
124
124
|
src: "submitConsent";
|
|
125
|
-
logic:
|
|
125
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
126
126
|
languageConsentId: string;
|
|
127
127
|
checkboxes: ConsentCheckbox[];
|
|
128
|
-
},
|
|
128
|
+
}, xstate0.EventObject>;
|
|
129
129
|
id: string | undefined;
|
|
130
130
|
} extends infer T_1 ? T_1 extends {
|
|
131
131
|
src: "submitConsent";
|
|
132
|
-
logic:
|
|
132
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
133
133
|
languageConsentId: string;
|
|
134
134
|
checkboxes: ConsentCheckbox[];
|
|
135
|
-
},
|
|
135
|
+
}, xstate0.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
} ? T_1 extends {
|
|
138
138
|
src: TSrc;
|
|
139
|
-
} ?
|
|
139
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
140
140
|
id?: T_1["id"] | undefined;
|
|
141
141
|
systemId?: string;
|
|
142
|
-
input?:
|
|
142
|
+
input?: xstate0.InputFrom<T_1["logic"]> | undefined;
|
|
143
143
|
syncSnapshot?: boolean;
|
|
144
|
-
} & { [K_1 in
|
|
144
|
+
} & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
|
|
145
145
|
fetchConsent: {
|
|
146
146
|
src: "fetchConsent";
|
|
147
|
-
logic:
|
|
147
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
148
148
|
consentId: string;
|
|
149
|
-
},
|
|
149
|
+
}, xstate0.EventObject>;
|
|
150
150
|
id: string | undefined;
|
|
151
151
|
};
|
|
152
152
|
submitConsent: {
|
|
153
153
|
src: "submitConsent";
|
|
154
|
-
logic:
|
|
154
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
155
155
|
languageConsentId: string;
|
|
156
156
|
checkboxes: ConsentCheckbox[];
|
|
157
|
-
},
|
|
157
|
+
}, xstate0.EventObject>;
|
|
158
158
|
id: string | undefined;
|
|
159
159
|
};
|
|
160
160
|
}>, "src", TSrc>["logic"]>;
|
|
161
|
-
<TLogic extends
|
|
161
|
+
<TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
|
|
162
162
|
id?: never;
|
|
163
163
|
systemId?: string;
|
|
164
|
-
input?:
|
|
164
|
+
input?: xstate0.InputFrom<TLogic> | undefined;
|
|
165
165
|
syncSnapshot?: boolean;
|
|
166
|
-
} & { [K in
|
|
166
|
+
} & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
|
|
167
167
|
};
|
|
168
168
|
input: ConsentInput;
|
|
169
|
-
self:
|
|
169
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
|
|
170
170
|
type: "LOAD";
|
|
171
171
|
} | {
|
|
172
172
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -177,7 +177,7 @@ declare const consentMachine: xstate451.StateMachine<ConsentContext, {
|
|
|
177
177
|
type: "RETRY";
|
|
178
178
|
} | {
|
|
179
179
|
type: "RESET";
|
|
180
|
-
}, Record<string,
|
|
180
|
+
}, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -188,7 +188,7 @@ declare const consentMachine: xstate451.StateMachine<ConsentContext, {
|
|
|
188
188
|
type: "RETRY";
|
|
189
189
|
} | {
|
|
190
190
|
type: "RESET";
|
|
191
|
-
},
|
|
191
|
+
}, xstate0.AnyEventObject>;
|
|
192
192
|
}) => {
|
|
193
193
|
config: ConsentConfig;
|
|
194
194
|
title: string;
|
|
@@ -226,7 +226,7 @@ declare const consentMachine: xstate451.StateMachine<ConsentContext, {
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "RESET";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
|
|
230
230
|
type: "LOAD";
|
|
231
231
|
} | {
|
|
232
232
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -237,7 +237,7 @@ declare const consentMachine: xstate451.StateMachine<ConsentContext, {
|
|
|
237
237
|
type: "RETRY";
|
|
238
238
|
} | {
|
|
239
239
|
type: "RESET";
|
|
240
|
-
}, Record<string,
|
|
240
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
241
241
|
type: "LOAD";
|
|
242
242
|
} | {
|
|
243
243
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -248,7 +248,7 @@ declare const consentMachine: xstate451.StateMachine<ConsentContext, {
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "RESET";
|
|
251
|
-
},
|
|
251
|
+
}, xstate0.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
consentId: string;
|
|
254
254
|
};
|
|
@@ -297,7 +297,7 @@ declare const consentMachine: xstate451.StateMachine<ConsentContext, {
|
|
|
297
297
|
} | {
|
|
298
298
|
type: "RESET";
|
|
299
299
|
};
|
|
300
|
-
self:
|
|
300
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
|
|
301
301
|
type: "LOAD";
|
|
302
302
|
} | {
|
|
303
303
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -308,7 +308,7 @@ declare const consentMachine: xstate451.StateMachine<ConsentContext, {
|
|
|
308
308
|
type: "RETRY";
|
|
309
309
|
} | {
|
|
310
310
|
type: "RESET";
|
|
311
|
-
}, Record<string,
|
|
311
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
312
312
|
type: "LOAD";
|
|
313
313
|
} | {
|
|
314
314
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -319,7 +319,7 @@ declare const consentMachine: xstate451.StateMachine<ConsentContext, {
|
|
|
319
319
|
type: "RETRY";
|
|
320
320
|
} | {
|
|
321
321
|
type: "RESET";
|
|
322
|
-
},
|
|
322
|
+
}, xstate0.AnyEventObject>;
|
|
323
323
|
}) => {
|
|
324
324
|
languageConsentId: string;
|
|
325
325
|
checkboxes: ConsentCheckbox[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-Bcnemkyi.js";
|
|
2
2
|
import "./Actor-BkPcZGke.js";
|
|
3
3
|
import { t as CameraStream } from "./camera-CgnuDuxy.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as xstate349 from "xstate";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/document-capture/types.d.ts
|
|
7
7
|
type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
|
|
@@ -84,7 +84,7 @@ type DocumentCaptureInput = {
|
|
|
84
84
|
};
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
87
|
-
declare const documentCaptureMachine:
|
|
87
|
+
declare const documentCaptureMachine: xstate349.StateMachine<DocumentCaptureContext, {
|
|
88
88
|
type: "CAPTURE";
|
|
89
89
|
} | {
|
|
90
90
|
type: "FILE_SELECTED";
|
|
@@ -113,105 +113,105 @@ declare const documentCaptureMachine: xstate354.StateMachine<DocumentCaptureCont
|
|
|
113
113
|
} | {
|
|
114
114
|
type: "CLOSE";
|
|
115
115
|
}, {
|
|
116
|
-
[x: string]:
|
|
116
|
+
[x: string]: xstate349.ActorRefFromLogic<xstate349.PromiseActorLogic<MediaStream, void, xstate349.EventObject>> | xstate349.ActorRefFromLogic<xstate349.PromiseActorLogic<DocumentUploadResponse, {
|
|
117
117
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
118
118
|
processingType: string;
|
|
119
119
|
onProgress: (progress: number) => void;
|
|
120
|
-
},
|
|
120
|
+
}, xstate349.EventObject>> | xstate349.ActorRefFromLogic<xstate349.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
121
121
|
processingType: string;
|
|
122
|
-
},
|
|
123
|
-
},
|
|
122
|
+
}, xstate349.EventObject>> | undefined;
|
|
123
|
+
}, xstate349.Values<{
|
|
124
124
|
initCamera: {
|
|
125
125
|
src: "initCamera";
|
|
126
|
-
logic:
|
|
126
|
+
logic: xstate349.PromiseActorLogic<MediaStream, void, xstate349.EventObject>;
|
|
127
127
|
id: string | undefined;
|
|
128
128
|
};
|
|
129
129
|
uploadDocument: {
|
|
130
130
|
src: "uploadDocument";
|
|
131
|
-
logic:
|
|
131
|
+
logic: xstate349.PromiseActorLogic<DocumentUploadResponse, {
|
|
132
132
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
133
133
|
processingType: string;
|
|
134
134
|
onProgress: (progress: number) => void;
|
|
135
|
-
},
|
|
135
|
+
}, xstate349.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
};
|
|
138
138
|
finalizeDocumentRequest: {
|
|
139
139
|
src: "finalizeDocumentRequest";
|
|
140
|
-
logic:
|
|
140
|
+
logic: xstate349.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
141
141
|
processingType: string;
|
|
142
|
-
},
|
|
142
|
+
}, xstate349.EventObject>;
|
|
143
143
|
id: string | undefined;
|
|
144
144
|
};
|
|
145
|
-
}>,
|
|
145
|
+
}>, xstate349.Values<{
|
|
146
146
|
clearError: {
|
|
147
147
|
type: "clearError";
|
|
148
|
-
params:
|
|
148
|
+
params: xstate349.NonReducibleUnknown;
|
|
149
149
|
};
|
|
150
150
|
setStream: {
|
|
151
151
|
type: "setStream";
|
|
152
|
-
params:
|
|
152
|
+
params: xstate349.NonReducibleUnknown;
|
|
153
153
|
};
|
|
154
154
|
setProgress: {
|
|
155
155
|
type: "setProgress";
|
|
156
|
-
params:
|
|
156
|
+
params: xstate349.NonReducibleUnknown;
|
|
157
157
|
};
|
|
158
158
|
stopStream: {
|
|
159
159
|
type: "stopStream";
|
|
160
|
-
params:
|
|
160
|
+
params: xstate349.NonReducibleUnknown;
|
|
161
161
|
};
|
|
162
162
|
setCapturedDocument: {
|
|
163
163
|
type: "setCapturedDocument";
|
|
164
|
-
params:
|
|
164
|
+
params: xstate349.NonReducibleUnknown;
|
|
165
165
|
};
|
|
166
166
|
setFileTooLargeError: {
|
|
167
167
|
type: "setFileTooLargeError";
|
|
168
|
-
params:
|
|
168
|
+
params: xstate349.NonReducibleUnknown;
|
|
169
169
|
};
|
|
170
170
|
setUploadError: {
|
|
171
171
|
type: "setUploadError";
|
|
172
|
-
params:
|
|
172
|
+
params: xstate349.NonReducibleUnknown;
|
|
173
173
|
};
|
|
174
174
|
setFinalizeError: {
|
|
175
175
|
type: "setFinalizeError";
|
|
176
|
-
params:
|
|
176
|
+
params: xstate349.NonReducibleUnknown;
|
|
177
177
|
};
|
|
178
178
|
decrementAttemptsRemaining: {
|
|
179
179
|
type: "decrementAttemptsRemaining";
|
|
180
|
-
params:
|
|
180
|
+
params: xstate349.NonReducibleUnknown;
|
|
181
181
|
};
|
|
182
182
|
setCaptureMethodFile: {
|
|
183
183
|
type: "setCaptureMethodFile";
|
|
184
|
-
params:
|
|
184
|
+
params: xstate349.NonReducibleUnknown;
|
|
185
185
|
};
|
|
186
186
|
setCaptureMethodCamera: {
|
|
187
187
|
type: "setCaptureMethodCamera";
|
|
188
|
-
params:
|
|
188
|
+
params: xstate349.NonReducibleUnknown;
|
|
189
189
|
};
|
|
190
190
|
setCaptureMethodGallery: {
|
|
191
191
|
type: "setCaptureMethodGallery";
|
|
192
|
-
params:
|
|
192
|
+
params: xstate349.NonReducibleUnknown;
|
|
193
193
|
};
|
|
194
194
|
clearCapturedDocument: {
|
|
195
195
|
type: "clearCapturedDocument";
|
|
196
|
-
params:
|
|
196
|
+
params: xstate349.NonReducibleUnknown;
|
|
197
197
|
};
|
|
198
198
|
clearCapturedDocumentGalleryRetake: {
|
|
199
199
|
type: "clearCapturedDocumentGalleryRetake";
|
|
200
|
-
params:
|
|
200
|
+
params: xstate349.NonReducibleUnknown;
|
|
201
201
|
};
|
|
202
202
|
setNextPageType: {
|
|
203
203
|
type: "setNextPageType";
|
|
204
|
-
params:
|
|
204
|
+
params: xstate349.NonReducibleUnknown;
|
|
205
205
|
};
|
|
206
206
|
clearForNextPage: {
|
|
207
207
|
type: "clearForNextPage";
|
|
208
|
-
params:
|
|
208
|
+
params: xstate349.NonReducibleUnknown;
|
|
209
209
|
};
|
|
210
210
|
resetProgress: {
|
|
211
211
|
type: "resetProgress";
|
|
212
|
-
params:
|
|
212
|
+
params: xstate349.NonReducibleUnknown;
|
|
213
213
|
};
|
|
214
|
-
}>,
|
|
214
|
+
}>, xstate349.Values<{
|
|
215
215
|
allowSkip: {
|
|
216
216
|
type: "allowSkip";
|
|
217
217
|
params: unknown;
|
|
@@ -272,7 +272,7 @@ declare const documentCaptureMachine: xstate354.StateMachine<DocumentCaptureCont
|
|
|
272
272
|
type: "fileSizeOkForNonGallery";
|
|
273
273
|
params: unknown;
|
|
274
274
|
};
|
|
275
|
-
}>, never, "finished" | "closed" | "initCamera" | "capturing" | "uploading" | "tutorial" | "preview" | "failure" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput,
|
|
275
|
+
}>, never, "finished" | "closed" | "initCamera" | "capturing" | "uploading" | "tutorial" | "preview" | "failure" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate349.NonReducibleUnknown, xstate349.EventObject, xstate349.MetaObject, {
|
|
276
276
|
readonly id: "documentCapture";
|
|
277
277
|
readonly initial: "tutorial";
|
|
278
278
|
readonly context: ({
|
|
@@ -281,93 +281,93 @@ declare const documentCaptureMachine: xstate354.StateMachine<DocumentCaptureCont
|
|
|
281
281
|
spawn: {
|
|
282
282
|
<TSrc extends "initCamera" | "uploadDocument" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
|
|
283
283
|
src: "initCamera";
|
|
284
|
-
logic:
|
|
284
|
+
logic: xstate349.PromiseActorLogic<MediaStream, void, xstate349.EventObject>;
|
|
285
285
|
id: string | undefined;
|
|
286
286
|
} extends infer T ? T extends {
|
|
287
287
|
src: "initCamera";
|
|
288
|
-
logic:
|
|
288
|
+
logic: xstate349.PromiseActorLogic<MediaStream, void, xstate349.EventObject>;
|
|
289
289
|
id: string | undefined;
|
|
290
290
|
} ? T extends {
|
|
291
291
|
src: TSrc;
|
|
292
|
-
} ?
|
|
292
|
+
} ? xstate349.ConditionalRequired<[options?: ({
|
|
293
293
|
id?: T["id"] | undefined;
|
|
294
294
|
systemId?: string;
|
|
295
|
-
input?:
|
|
295
|
+
input?: xstate349.InputFrom<T["logic"]> | undefined;
|
|
296
296
|
syncSnapshot?: boolean;
|
|
297
|
-
} & { [K in
|
|
297
|
+
} & { [K in xstate349.RequiredActorOptions<T>]: unknown }) | undefined], xstate349.IsNotNever<xstate349.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
298
298
|
src: "uploadDocument";
|
|
299
|
-
logic:
|
|
299
|
+
logic: xstate349.PromiseActorLogic<DocumentUploadResponse, {
|
|
300
300
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
301
301
|
processingType: string;
|
|
302
302
|
onProgress: (progress: number) => void;
|
|
303
|
-
},
|
|
303
|
+
}, xstate349.EventObject>;
|
|
304
304
|
id: string | undefined;
|
|
305
305
|
} extends infer T_1 ? T_1 extends {
|
|
306
306
|
src: "uploadDocument";
|
|
307
|
-
logic:
|
|
307
|
+
logic: xstate349.PromiseActorLogic<DocumentUploadResponse, {
|
|
308
308
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
309
309
|
processingType: string;
|
|
310
310
|
onProgress: (progress: number) => void;
|
|
311
|
-
},
|
|
311
|
+
}, xstate349.EventObject>;
|
|
312
312
|
id: string | undefined;
|
|
313
313
|
} ? T_1 extends {
|
|
314
314
|
src: TSrc;
|
|
315
|
-
} ?
|
|
315
|
+
} ? xstate349.ConditionalRequired<[options?: ({
|
|
316
316
|
id?: T_1["id"] | undefined;
|
|
317
317
|
systemId?: string;
|
|
318
|
-
input?:
|
|
318
|
+
input?: xstate349.InputFrom<T_1["logic"]> | undefined;
|
|
319
319
|
syncSnapshot?: boolean;
|
|
320
|
-
} & { [K_1 in
|
|
320
|
+
} & { [K_1 in xstate349.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate349.IsNotNever<xstate349.RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
321
321
|
src: "finalizeDocumentRequest";
|
|
322
|
-
logic:
|
|
322
|
+
logic: xstate349.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
323
323
|
processingType: string;
|
|
324
|
-
},
|
|
324
|
+
}, xstate349.EventObject>;
|
|
325
325
|
id: string | undefined;
|
|
326
326
|
} extends infer T_2 ? T_2 extends {
|
|
327
327
|
src: "finalizeDocumentRequest";
|
|
328
|
-
logic:
|
|
328
|
+
logic: xstate349.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
329
329
|
processingType: string;
|
|
330
|
-
},
|
|
330
|
+
}, xstate349.EventObject>;
|
|
331
331
|
id: string | undefined;
|
|
332
332
|
} ? T_2 extends {
|
|
333
333
|
src: TSrc;
|
|
334
|
-
} ?
|
|
334
|
+
} ? xstate349.ConditionalRequired<[options?: ({
|
|
335
335
|
id?: T_2["id"] | undefined;
|
|
336
336
|
systemId?: string;
|
|
337
|
-
input?:
|
|
337
|
+
input?: xstate349.InputFrom<T_2["logic"]> | undefined;
|
|
338
338
|
syncSnapshot?: boolean;
|
|
339
|
-
} & { [K_2 in
|
|
339
|
+
} & { [K_2 in xstate349.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate349.IsNotNever<xstate349.RequiredActorOptions<T_2>>> : never : never : never)): xstate349.ActorRefFromLogic<xstate349.GetConcreteByKey<xstate349.Values<{
|
|
340
340
|
initCamera: {
|
|
341
341
|
src: "initCamera";
|
|
342
|
-
logic:
|
|
342
|
+
logic: xstate349.PromiseActorLogic<MediaStream, void, xstate349.EventObject>;
|
|
343
343
|
id: string | undefined;
|
|
344
344
|
};
|
|
345
345
|
uploadDocument: {
|
|
346
346
|
src: "uploadDocument";
|
|
347
|
-
logic:
|
|
347
|
+
logic: xstate349.PromiseActorLogic<DocumentUploadResponse, {
|
|
348
348
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
349
349
|
processingType: string;
|
|
350
350
|
onProgress: (progress: number) => void;
|
|
351
|
-
},
|
|
351
|
+
}, xstate349.EventObject>;
|
|
352
352
|
id: string | undefined;
|
|
353
353
|
};
|
|
354
354
|
finalizeDocumentRequest: {
|
|
355
355
|
src: "finalizeDocumentRequest";
|
|
356
|
-
logic:
|
|
356
|
+
logic: xstate349.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
357
357
|
processingType: string;
|
|
358
|
-
},
|
|
358
|
+
}, xstate349.EventObject>;
|
|
359
359
|
id: string | undefined;
|
|
360
360
|
};
|
|
361
361
|
}>, "src", TSrc>["logic"]>;
|
|
362
|
-
<TLogic extends
|
|
362
|
+
<TLogic extends xstate349.AnyActorLogic>(src: TLogic, ...[options]: xstate349.ConditionalRequired<[options?: ({
|
|
363
363
|
id?: never;
|
|
364
364
|
systemId?: string;
|
|
365
|
-
input?:
|
|
365
|
+
input?: xstate349.InputFrom<TLogic> | undefined;
|
|
366
366
|
syncSnapshot?: boolean;
|
|
367
|
-
} & { [K in
|
|
367
|
+
} & { [K in xstate349.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate349.IsNotNever<xstate349.RequiredLogicInput<TLogic>>>): xstate349.ActorRefFromLogic<TLogic>;
|
|
368
368
|
};
|
|
369
369
|
input: DocumentCaptureInput;
|
|
370
|
-
self:
|
|
370
|
+
self: xstate349.ActorRef<xstate349.MachineSnapshot<DocumentCaptureContext, {
|
|
371
371
|
type: "CAPTURE";
|
|
372
372
|
} | {
|
|
373
373
|
type: "FILE_SELECTED";
|
|
@@ -395,7 +395,7 @@ declare const documentCaptureMachine: xstate354.StateMachine<DocumentCaptureCont
|
|
|
395
395
|
type: "SKIP";
|
|
396
396
|
} | {
|
|
397
397
|
type: "CLOSE";
|
|
398
|
-
}, Record<string,
|
|
398
|
+
}, Record<string, xstate349.AnyActorRef | undefined>, xstate349.StateValue, string, unknown, any, any>, {
|
|
399
399
|
type: "CAPTURE";
|
|
400
400
|
} | {
|
|
401
401
|
type: "FILE_SELECTED";
|
|
@@ -423,7 +423,7 @@ declare const documentCaptureMachine: xstate354.StateMachine<DocumentCaptureCont
|
|
|
423
423
|
type: "SKIP";
|
|
424
424
|
} | {
|
|
425
425
|
type: "CLOSE";
|
|
426
|
-
},
|
|
426
|
+
}, xstate349.AnyEventObject>;
|
|
427
427
|
}) => {
|
|
428
428
|
config: {
|
|
429
429
|
processingType: DocumentType;
|
|
@@ -574,7 +574,7 @@ declare const documentCaptureMachine: xstate354.StateMachine<DocumentCaptureCont
|
|
|
574
574
|
} | {
|
|
575
575
|
type: "CLOSE";
|
|
576
576
|
};
|
|
577
|
-
self:
|
|
577
|
+
self: xstate349.ActorRef<xstate349.MachineSnapshot<DocumentCaptureContext, {
|
|
578
578
|
type: "CAPTURE";
|
|
579
579
|
} | {
|
|
580
580
|
type: "FILE_SELECTED";
|
|
@@ -602,7 +602,7 @@ declare const documentCaptureMachine: xstate354.StateMachine<DocumentCaptureCont
|
|
|
602
602
|
type: "SKIP";
|
|
603
603
|
} | {
|
|
604
604
|
type: "CLOSE";
|
|
605
|
-
}, Record<string,
|
|
605
|
+
}, Record<string, xstate349.AnyActorRef>, xstate349.StateValue, string, unknown, any, any>, {
|
|
606
606
|
type: "CAPTURE";
|
|
607
607
|
} | {
|
|
608
608
|
type: "FILE_SELECTED";
|
|
@@ -630,7 +630,7 @@ declare const documentCaptureMachine: xstate354.StateMachine<DocumentCaptureCont
|
|
|
630
630
|
type: "SKIP";
|
|
631
631
|
} | {
|
|
632
632
|
type: "CLOSE";
|
|
633
|
-
},
|
|
633
|
+
}, xstate349.AnyEventObject>;
|
|
634
634
|
}) => {
|
|
635
635
|
capturedDocument: CapturedDocument;
|
|
636
636
|
processingType: DocumentType;
|
|
@@ -725,7 +725,7 @@ declare const documentCaptureMachine: xstate354.StateMachine<DocumentCaptureCont
|
|
|
725
725
|
} | {
|
|
726
726
|
type: "CLOSE";
|
|
727
727
|
};
|
|
728
|
-
self:
|
|
728
|
+
self: xstate349.ActorRef<xstate349.MachineSnapshot<DocumentCaptureContext, {
|
|
729
729
|
type: "CAPTURE";
|
|
730
730
|
} | {
|
|
731
731
|
type: "FILE_SELECTED";
|
|
@@ -753,7 +753,7 @@ declare const documentCaptureMachine: xstate354.StateMachine<DocumentCaptureCont
|
|
|
753
753
|
type: "SKIP";
|
|
754
754
|
} | {
|
|
755
755
|
type: "CLOSE";
|
|
756
|
-
}, Record<string,
|
|
756
|
+
}, Record<string, xstate349.AnyActorRef>, xstate349.StateValue, string, unknown, any, any>, {
|
|
757
757
|
type: "CAPTURE";
|
|
758
758
|
} | {
|
|
759
759
|
type: "FILE_SELECTED";
|
|
@@ -781,7 +781,7 @@ declare const documentCaptureMachine: xstate354.StateMachine<DocumentCaptureCont
|
|
|
781
781
|
type: "SKIP";
|
|
782
782
|
} | {
|
|
783
783
|
type: "CLOSE";
|
|
784
|
-
},
|
|
784
|
+
}, xstate349.AnyEventObject>;
|
|
785
785
|
}) => {
|
|
786
786
|
processingType: DocumentType;
|
|
787
787
|
};
|