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