@incodetech/core 0.0.0-dev-20260403-eccc51c → 0.0.0-dev-20260407-4580f1c
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/{addressSearch-DC5By0cC.esm.js → addressSearch-B8Fo4v9V.esm.js} +11 -4
- package/dist/consent.d.ts +50 -50
- package/dist/document-capture.d.ts +70 -70
- package/dist/document-upload.d.ts +46 -46
- package/dist/ekyb.esm.js +5 -4
- package/dist/ekyc.esm.js +100 -18
- package/dist/extensibility.esm.js +2 -9
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-CO2sIR3D.esm.js → flowServices-D5ugKT5n.esm.js} +1 -1
- package/dist/id.esm.js +2 -2
- package/dist/{idCaptureManager-DaLU1ug7.esm.js → idCaptureManager-DUZxcSP_.esm.js} +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +53 -53
- package/dist/{session-OglUYC9l.esm.js → session-DqNrvO4r.esm.js} +8 -1
- package/package.json +2 -2
|
@@ -343,11 +343,13 @@ const DYNAMIC_REQUIRED_KEY = "verification.errors.fieldRequiredDynamic";
|
|
|
343
343
|
* Fills form values from an address autocomplete suggestion.
|
|
344
344
|
* Shared between eKYC and eKYB address forms.
|
|
345
345
|
*/
|
|
346
|
-
function fillFromSuggestion(values, touched, suggestion) {
|
|
346
|
+
function fillFromSuggestion(values, touched, suggestion, activeFields) {
|
|
347
347
|
const newValues = { ...values };
|
|
348
348
|
const newTouched = { ...touched };
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
const hasHouseNoField = !activeFields || activeFields.has("houseNo");
|
|
350
|
+
const streetValue = buildStreetValue(suggestion.street, suggestion.houseNumber, hasHouseNoField);
|
|
351
|
+
if (streetValue) {
|
|
352
|
+
newValues.street = streetValue;
|
|
351
353
|
newTouched.street = true;
|
|
352
354
|
}
|
|
353
355
|
if (suggestion.city) {
|
|
@@ -362,7 +364,7 @@ function fillFromSuggestion(values, touched, suggestion) {
|
|
|
362
364
|
newValues.postalCode = suggestion.postalCode;
|
|
363
365
|
newTouched.postalCode = true;
|
|
364
366
|
}
|
|
365
|
-
if (suggestion.houseNumber) {
|
|
367
|
+
if (suggestion.houseNumber && hasHouseNoField) {
|
|
366
368
|
newValues.houseNo = suggestion.houseNumber;
|
|
367
369
|
newTouched.houseNo = true;
|
|
368
370
|
}
|
|
@@ -371,6 +373,11 @@ function fillFromSuggestion(values, touched, suggestion) {
|
|
|
371
373
|
touched: newTouched
|
|
372
374
|
};
|
|
373
375
|
}
|
|
376
|
+
function buildStreetValue(street, houseNumber, hasHouseNoField) {
|
|
377
|
+
if (hasHouseNoField) return street ?? "";
|
|
378
|
+
if (houseNumber && street) return `${houseNumber} ${street}`;
|
|
379
|
+
return houseNumber ?? street ?? "";
|
|
380
|
+
}
|
|
374
381
|
|
|
375
382
|
//#endregion
|
|
376
383
|
//#region src/shared/addressSearch.ts
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./Actor-By8WNHi-.js";
|
|
2
2
|
import { t as Manager } from "./Manager-CCT_-HuZ.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate228 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: xstate228.StateMachine<ConsentContext, {
|
|
40
40
|
type: "LOAD";
|
|
41
41
|
} | {
|
|
42
42
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -48,53 +48,53 @@ declare const consentMachine: xstate164.StateMachine<ConsentContext, {
|
|
|
48
48
|
} | {
|
|
49
49
|
type: "RESET";
|
|
50
50
|
}, {
|
|
51
|
-
[x: string]:
|
|
51
|
+
[x: string]: xstate228.ActorRefFromLogic<xstate228.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
52
52
|
consentId: string;
|
|
53
|
-
},
|
|
53
|
+
}, xstate228.EventObject>> | xstate228.ActorRefFromLogic<xstate228.PromiseActorLogic<void, {
|
|
54
54
|
languageConsentId: string;
|
|
55
55
|
checkboxes: ConsentCheckbox[];
|
|
56
|
-
},
|
|
57
|
-
},
|
|
56
|
+
}, xstate228.EventObject>> | undefined;
|
|
57
|
+
}, xstate228.Values<{
|
|
58
58
|
fetchConsent: {
|
|
59
59
|
src: "fetchConsent";
|
|
60
|
-
logic:
|
|
60
|
+
logic: xstate228.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
61
61
|
consentId: string;
|
|
62
|
-
},
|
|
62
|
+
}, xstate228.EventObject>;
|
|
63
63
|
id: string | undefined;
|
|
64
64
|
};
|
|
65
65
|
submitConsent: {
|
|
66
66
|
src: "submitConsent";
|
|
67
|
-
logic:
|
|
67
|
+
logic: xstate228.PromiseActorLogic<void, {
|
|
68
68
|
languageConsentId: string;
|
|
69
69
|
checkboxes: ConsentCheckbox[];
|
|
70
|
-
},
|
|
70
|
+
}, xstate228.EventObject>;
|
|
71
71
|
id: string | undefined;
|
|
72
72
|
};
|
|
73
|
-
}>,
|
|
74
|
-
setError: {
|
|
75
|
-
type: "setError";
|
|
76
|
-
params: xstate164.NonReducibleUnknown;
|
|
77
|
-
};
|
|
73
|
+
}>, xstate228.Values<{
|
|
78
74
|
clearError: {
|
|
79
75
|
type: "clearError";
|
|
80
|
-
params:
|
|
76
|
+
params: xstate228.NonReducibleUnknown;
|
|
77
|
+
};
|
|
78
|
+
setError: {
|
|
79
|
+
type: "setError";
|
|
80
|
+
params: xstate228.NonReducibleUnknown;
|
|
81
81
|
};
|
|
82
82
|
resetContext: {
|
|
83
83
|
type: "resetContext";
|
|
84
|
-
params:
|
|
84
|
+
params: xstate228.NonReducibleUnknown;
|
|
85
85
|
};
|
|
86
86
|
setConsentData: {
|
|
87
87
|
type: "setConsentData";
|
|
88
|
-
params:
|
|
88
|
+
params: xstate228.NonReducibleUnknown;
|
|
89
89
|
};
|
|
90
90
|
toggleCheckbox: {
|
|
91
91
|
type: "toggleCheckbox";
|
|
92
|
-
params:
|
|
92
|
+
params: xstate228.NonReducibleUnknown;
|
|
93
93
|
};
|
|
94
94
|
}>, {
|
|
95
95
|
type: "canSubmit";
|
|
96
96
|
params: unknown;
|
|
97
|
-
}, never, "error" | "
|
|
97
|
+
}, never, "error" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput, xstate228.NonReducibleUnknown, xstate228.EventObject, xstate228.MetaObject, {
|
|
98
98
|
readonly id: "consent";
|
|
99
99
|
readonly initial: "idle";
|
|
100
100
|
readonly context: ({
|
|
@@ -103,70 +103,70 @@ declare const consentMachine: xstate164.StateMachine<ConsentContext, {
|
|
|
103
103
|
spawn: {
|
|
104
104
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
105
105
|
src: "fetchConsent";
|
|
106
|
-
logic:
|
|
106
|
+
logic: xstate228.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
107
107
|
consentId: string;
|
|
108
|
-
},
|
|
108
|
+
}, xstate228.EventObject>;
|
|
109
109
|
id: string | undefined;
|
|
110
110
|
} extends infer T ? T extends {
|
|
111
111
|
src: "fetchConsent";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate228.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
113
113
|
consentId: string;
|
|
114
|
-
},
|
|
114
|
+
}, xstate228.EventObject>;
|
|
115
115
|
id: string | undefined;
|
|
116
116
|
} ? T extends {
|
|
117
117
|
src: TSrc;
|
|
118
|
-
} ?
|
|
118
|
+
} ? xstate228.ConditionalRequired<[options?: ({
|
|
119
119
|
id?: T["id"] | undefined;
|
|
120
120
|
systemId?: string;
|
|
121
|
-
input?:
|
|
121
|
+
input?: xstate228.InputFrom<T["logic"]> | undefined;
|
|
122
122
|
syncSnapshot?: boolean;
|
|
123
|
-
} & { [K in
|
|
123
|
+
} & { [K in xstate228.RequiredActorOptions<T>]: unknown }) | undefined], xstate228.IsNotNever<xstate228.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
124
124
|
src: "submitConsent";
|
|
125
|
-
logic:
|
|
125
|
+
logic: xstate228.PromiseActorLogic<void, {
|
|
126
126
|
languageConsentId: string;
|
|
127
127
|
checkboxes: ConsentCheckbox[];
|
|
128
|
-
},
|
|
128
|
+
}, xstate228.EventObject>;
|
|
129
129
|
id: string | undefined;
|
|
130
130
|
} extends infer T_1 ? T_1 extends {
|
|
131
131
|
src: "submitConsent";
|
|
132
|
-
logic:
|
|
132
|
+
logic: xstate228.PromiseActorLogic<void, {
|
|
133
133
|
languageConsentId: string;
|
|
134
134
|
checkboxes: ConsentCheckbox[];
|
|
135
|
-
},
|
|
135
|
+
}, xstate228.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
} ? T_1 extends {
|
|
138
138
|
src: TSrc;
|
|
139
|
-
} ?
|
|
139
|
+
} ? xstate228.ConditionalRequired<[options?: ({
|
|
140
140
|
id?: T_1["id"] | undefined;
|
|
141
141
|
systemId?: string;
|
|
142
|
-
input?:
|
|
142
|
+
input?: xstate228.InputFrom<T_1["logic"]> | undefined;
|
|
143
143
|
syncSnapshot?: boolean;
|
|
144
|
-
} & { [K_1 in
|
|
144
|
+
} & { [K_1 in xstate228.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate228.IsNotNever<xstate228.RequiredActorOptions<T_1>>> : never : never : never)): xstate228.ActorRefFromLogic<xstate228.GetConcreteByKey<xstate228.Values<{
|
|
145
145
|
fetchConsent: {
|
|
146
146
|
src: "fetchConsent";
|
|
147
|
-
logic:
|
|
147
|
+
logic: xstate228.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
148
148
|
consentId: string;
|
|
149
|
-
},
|
|
149
|
+
}, xstate228.EventObject>;
|
|
150
150
|
id: string | undefined;
|
|
151
151
|
};
|
|
152
152
|
submitConsent: {
|
|
153
153
|
src: "submitConsent";
|
|
154
|
-
logic:
|
|
154
|
+
logic: xstate228.PromiseActorLogic<void, {
|
|
155
155
|
languageConsentId: string;
|
|
156
156
|
checkboxes: ConsentCheckbox[];
|
|
157
|
-
},
|
|
157
|
+
}, xstate228.EventObject>;
|
|
158
158
|
id: string | undefined;
|
|
159
159
|
};
|
|
160
160
|
}>, "src", TSrc>["logic"]>;
|
|
161
|
-
<TLogic extends
|
|
161
|
+
<TLogic extends xstate228.AnyActorLogic>(src: TLogic, ...[options]: xstate228.ConditionalRequired<[options?: ({
|
|
162
162
|
id?: never;
|
|
163
163
|
systemId?: string;
|
|
164
|
-
input?:
|
|
164
|
+
input?: xstate228.InputFrom<TLogic> | undefined;
|
|
165
165
|
syncSnapshot?: boolean;
|
|
166
|
-
} & { [K in
|
|
166
|
+
} & { [K in xstate228.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate228.IsNotNever<xstate228.RequiredLogicInput<TLogic>>>): xstate228.ActorRefFromLogic<TLogic>;
|
|
167
167
|
};
|
|
168
168
|
input: ConsentInput;
|
|
169
|
-
self:
|
|
169
|
+
self: xstate228.ActorRef<xstate228.MachineSnapshot<ConsentContext, {
|
|
170
170
|
type: "LOAD";
|
|
171
171
|
} | {
|
|
172
172
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -177,7 +177,7 @@ declare const consentMachine: xstate164.StateMachine<ConsentContext, {
|
|
|
177
177
|
type: "RETRY";
|
|
178
178
|
} | {
|
|
179
179
|
type: "RESET";
|
|
180
|
-
}, Record<string,
|
|
180
|
+
}, Record<string, xstate228.AnyActorRef | undefined>, xstate228.StateValue, string, unknown, any, any>, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -188,7 +188,7 @@ declare const consentMachine: xstate164.StateMachine<ConsentContext, {
|
|
|
188
188
|
type: "RETRY";
|
|
189
189
|
} | {
|
|
190
190
|
type: "RESET";
|
|
191
|
-
},
|
|
191
|
+
}, xstate228.AnyEventObject>;
|
|
192
192
|
}) => {
|
|
193
193
|
config: ConsentConfig;
|
|
194
194
|
title: string;
|
|
@@ -226,7 +226,7 @@ declare const consentMachine: xstate164.StateMachine<ConsentContext, {
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "RESET";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate228.ActorRef<xstate228.MachineSnapshot<ConsentContext, {
|
|
230
230
|
type: "LOAD";
|
|
231
231
|
} | {
|
|
232
232
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -237,7 +237,7 @@ declare const consentMachine: xstate164.StateMachine<ConsentContext, {
|
|
|
237
237
|
type: "RETRY";
|
|
238
238
|
} | {
|
|
239
239
|
type: "RESET";
|
|
240
|
-
}, Record<string,
|
|
240
|
+
}, Record<string, xstate228.AnyActorRef>, xstate228.StateValue, string, unknown, any, any>, {
|
|
241
241
|
type: "LOAD";
|
|
242
242
|
} | {
|
|
243
243
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -248,7 +248,7 @@ declare const consentMachine: xstate164.StateMachine<ConsentContext, {
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "RESET";
|
|
251
|
-
},
|
|
251
|
+
}, xstate228.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
consentId: string;
|
|
254
254
|
};
|
|
@@ -297,7 +297,7 @@ declare const consentMachine: xstate164.StateMachine<ConsentContext, {
|
|
|
297
297
|
} | {
|
|
298
298
|
type: "RESET";
|
|
299
299
|
};
|
|
300
|
-
self:
|
|
300
|
+
self: xstate228.ActorRef<xstate228.MachineSnapshot<ConsentContext, {
|
|
301
301
|
type: "LOAD";
|
|
302
302
|
} | {
|
|
303
303
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -308,7 +308,7 @@ declare const consentMachine: xstate164.StateMachine<ConsentContext, {
|
|
|
308
308
|
type: "RETRY";
|
|
309
309
|
} | {
|
|
310
310
|
type: "RESET";
|
|
311
|
-
}, Record<string,
|
|
311
|
+
}, Record<string, xstate228.AnyActorRef>, xstate228.StateValue, string, unknown, any, any>, {
|
|
312
312
|
type: "LOAD";
|
|
313
313
|
} | {
|
|
314
314
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -319,7 +319,7 @@ declare const consentMachine: xstate164.StateMachine<ConsentContext, {
|
|
|
319
319
|
type: "RETRY";
|
|
320
320
|
} | {
|
|
321
321
|
type: "RESET";
|
|
322
|
-
},
|
|
322
|
+
}, xstate228.AnyEventObject>;
|
|
323
323
|
}) => {
|
|
324
324
|
languageConsentId: string;
|
|
325
325
|
checkboxes: ConsentCheckbox[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./Actor-By8WNHi-.js";
|
|
2
2
|
import { t as CameraStream } from "./camera-6XJdOeBF.js";
|
|
3
3
|
import { t as Manager } from "./Manager-CCT_-HuZ.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as xstate0 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';
|
|
@@ -82,7 +82,7 @@ type DocumentCaptureInput = {
|
|
|
82
82
|
};
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
85
|
-
declare const documentCaptureMachine:
|
|
85
|
+
declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContext, {
|
|
86
86
|
type: "CAPTURE";
|
|
87
87
|
} | {
|
|
88
88
|
type: "FILE_SELECTED";
|
|
@@ -111,105 +111,105 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
111
111
|
} | {
|
|
112
112
|
type: "CLOSE";
|
|
113
113
|
}, {
|
|
114
|
-
[x: string]:
|
|
114
|
+
[x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
115
115
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
116
116
|
processingType: string;
|
|
117
117
|
onProgress: (progress: number) => void;
|
|
118
|
-
},
|
|
118
|
+
}, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
119
119
|
processingType: string;
|
|
120
|
-
},
|
|
121
|
-
},
|
|
120
|
+
}, xstate0.EventObject>> | undefined;
|
|
121
|
+
}, xstate0.Values<{
|
|
122
122
|
initCamera: {
|
|
123
123
|
src: "initCamera";
|
|
124
|
-
logic:
|
|
124
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
125
125
|
id: string | undefined;
|
|
126
126
|
};
|
|
127
127
|
uploadDocument: {
|
|
128
128
|
src: "uploadDocument";
|
|
129
|
-
logic:
|
|
129
|
+
logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
130
130
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
131
131
|
processingType: string;
|
|
132
132
|
onProgress: (progress: number) => void;
|
|
133
|
-
},
|
|
133
|
+
}, xstate0.EventObject>;
|
|
134
134
|
id: string | undefined;
|
|
135
135
|
};
|
|
136
136
|
finalizeDocumentRequest: {
|
|
137
137
|
src: "finalizeDocumentRequest";
|
|
138
|
-
logic:
|
|
138
|
+
logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
139
139
|
processingType: string;
|
|
140
|
-
},
|
|
140
|
+
}, xstate0.EventObject>;
|
|
141
141
|
id: string | undefined;
|
|
142
142
|
};
|
|
143
|
-
}>,
|
|
144
|
-
clearError: {
|
|
145
|
-
type: "clearError";
|
|
146
|
-
params: xstate67.NonReducibleUnknown;
|
|
147
|
-
};
|
|
143
|
+
}>, xstate0.Values<{
|
|
148
144
|
setStream: {
|
|
149
145
|
type: "setStream";
|
|
150
|
-
params:
|
|
146
|
+
params: xstate0.NonReducibleUnknown;
|
|
151
147
|
};
|
|
152
148
|
setCapturedDocument: {
|
|
153
149
|
type: "setCapturedDocument";
|
|
154
|
-
params:
|
|
150
|
+
params: xstate0.NonReducibleUnknown;
|
|
155
151
|
};
|
|
156
152
|
setFileTooLargeError: {
|
|
157
153
|
type: "setFileTooLargeError";
|
|
158
|
-
params:
|
|
154
|
+
params: xstate0.NonReducibleUnknown;
|
|
159
155
|
};
|
|
160
156
|
setProgress: {
|
|
161
157
|
type: "setProgress";
|
|
162
|
-
params:
|
|
158
|
+
params: xstate0.NonReducibleUnknown;
|
|
163
159
|
};
|
|
164
160
|
setUploadError: {
|
|
165
161
|
type: "setUploadError";
|
|
166
|
-
params:
|
|
162
|
+
params: xstate0.NonReducibleUnknown;
|
|
167
163
|
};
|
|
168
164
|
setFinalizeError: {
|
|
169
165
|
type: "setFinalizeError";
|
|
170
|
-
params:
|
|
166
|
+
params: xstate0.NonReducibleUnknown;
|
|
171
167
|
};
|
|
172
168
|
decrementAttemptsRemaining: {
|
|
173
169
|
type: "decrementAttemptsRemaining";
|
|
174
|
-
params:
|
|
170
|
+
params: xstate0.NonReducibleUnknown;
|
|
175
171
|
};
|
|
176
172
|
setCaptureMethodFile: {
|
|
177
173
|
type: "setCaptureMethodFile";
|
|
178
|
-
params:
|
|
174
|
+
params: xstate0.NonReducibleUnknown;
|
|
179
175
|
};
|
|
180
176
|
setCaptureMethodCamera: {
|
|
181
177
|
type: "setCaptureMethodCamera";
|
|
182
|
-
params:
|
|
178
|
+
params: xstate0.NonReducibleUnknown;
|
|
183
179
|
};
|
|
184
180
|
setCaptureMethodGallery: {
|
|
185
181
|
type: "setCaptureMethodGallery";
|
|
186
|
-
params:
|
|
182
|
+
params: xstate0.NonReducibleUnknown;
|
|
187
183
|
};
|
|
188
184
|
clearCapturedDocument: {
|
|
189
185
|
type: "clearCapturedDocument";
|
|
190
|
-
params:
|
|
186
|
+
params: xstate0.NonReducibleUnknown;
|
|
191
187
|
};
|
|
192
188
|
clearCapturedDocumentGalleryRetake: {
|
|
193
189
|
type: "clearCapturedDocumentGalleryRetake";
|
|
194
|
-
params:
|
|
190
|
+
params: xstate0.NonReducibleUnknown;
|
|
195
191
|
};
|
|
196
192
|
setNextPageType: {
|
|
197
193
|
type: "setNextPageType";
|
|
198
|
-
params:
|
|
194
|
+
params: xstate0.NonReducibleUnknown;
|
|
199
195
|
};
|
|
200
196
|
clearForNextPage: {
|
|
201
197
|
type: "clearForNextPage";
|
|
202
|
-
params:
|
|
198
|
+
params: xstate0.NonReducibleUnknown;
|
|
199
|
+
};
|
|
200
|
+
clearError: {
|
|
201
|
+
type: "clearError";
|
|
202
|
+
params: xstate0.NonReducibleUnknown;
|
|
203
203
|
};
|
|
204
204
|
resetProgress: {
|
|
205
205
|
type: "resetProgress";
|
|
206
|
-
params:
|
|
206
|
+
params: xstate0.NonReducibleUnknown;
|
|
207
207
|
};
|
|
208
208
|
stopStream: {
|
|
209
209
|
type: "stopStream";
|
|
210
|
-
params:
|
|
210
|
+
params: xstate0.NonReducibleUnknown;
|
|
211
211
|
};
|
|
212
|
-
}>,
|
|
212
|
+
}>, xstate0.Values<{
|
|
213
213
|
allowSkip: {
|
|
214
214
|
type: "allowSkip";
|
|
215
215
|
params: unknown;
|
|
@@ -266,7 +266,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
266
266
|
type: "fileSizeOkForNonGallery";
|
|
267
267
|
params: unknown;
|
|
268
268
|
};
|
|
269
|
-
}>, never, "
|
|
269
|
+
}>, never, "initCamera" | "tutorial" | "capturing" | "preview" | "finished" | "closed" | "failure" | "uploading" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
270
270
|
readonly id: "documentCapture";
|
|
271
271
|
readonly initial: "tutorial";
|
|
272
272
|
readonly context: ({
|
|
@@ -275,93 +275,93 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
275
275
|
spawn: {
|
|
276
276
|
<TSrc extends "initCamera" | "uploadDocument" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
|
|
277
277
|
src: "initCamera";
|
|
278
|
-
logic:
|
|
278
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
279
279
|
id: string | undefined;
|
|
280
280
|
} extends infer T ? T extends {
|
|
281
281
|
src: "initCamera";
|
|
282
|
-
logic:
|
|
282
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
283
283
|
id: string | undefined;
|
|
284
284
|
} ? T extends {
|
|
285
285
|
src: TSrc;
|
|
286
|
-
} ?
|
|
286
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
287
287
|
id?: T["id"] | undefined;
|
|
288
288
|
systemId?: string;
|
|
289
|
-
input?:
|
|
289
|
+
input?: xstate0.InputFrom<T["logic"]> | undefined;
|
|
290
290
|
syncSnapshot?: boolean;
|
|
291
|
-
} & { [K in
|
|
291
|
+
} & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
292
292
|
src: "uploadDocument";
|
|
293
|
-
logic:
|
|
293
|
+
logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
294
294
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
295
295
|
processingType: string;
|
|
296
296
|
onProgress: (progress: number) => void;
|
|
297
|
-
},
|
|
297
|
+
}, xstate0.EventObject>;
|
|
298
298
|
id: string | undefined;
|
|
299
299
|
} extends infer T_1 ? T_1 extends {
|
|
300
300
|
src: "uploadDocument";
|
|
301
|
-
logic:
|
|
301
|
+
logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
302
302
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
303
303
|
processingType: string;
|
|
304
304
|
onProgress: (progress: number) => void;
|
|
305
|
-
},
|
|
305
|
+
}, xstate0.EventObject>;
|
|
306
306
|
id: string | undefined;
|
|
307
307
|
} ? T_1 extends {
|
|
308
308
|
src: TSrc;
|
|
309
|
-
} ?
|
|
309
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
310
310
|
id?: T_1["id"] | undefined;
|
|
311
311
|
systemId?: string;
|
|
312
|
-
input?:
|
|
312
|
+
input?: xstate0.InputFrom<T_1["logic"]> | undefined;
|
|
313
313
|
syncSnapshot?: boolean;
|
|
314
|
-
} & { [K_1 in
|
|
314
|
+
} & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
315
315
|
src: "finalizeDocumentRequest";
|
|
316
|
-
logic:
|
|
316
|
+
logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
317
317
|
processingType: string;
|
|
318
|
-
},
|
|
318
|
+
}, xstate0.EventObject>;
|
|
319
319
|
id: string | undefined;
|
|
320
320
|
} extends infer T_2 ? T_2 extends {
|
|
321
321
|
src: "finalizeDocumentRequest";
|
|
322
|
-
logic:
|
|
322
|
+
logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
323
323
|
processingType: string;
|
|
324
|
-
},
|
|
324
|
+
}, xstate0.EventObject>;
|
|
325
325
|
id: string | undefined;
|
|
326
326
|
} ? T_2 extends {
|
|
327
327
|
src: TSrc;
|
|
328
|
-
} ?
|
|
328
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
329
329
|
id?: T_2["id"] | undefined;
|
|
330
330
|
systemId?: string;
|
|
331
|
-
input?:
|
|
331
|
+
input?: xstate0.InputFrom<T_2["logic"]> | undefined;
|
|
332
332
|
syncSnapshot?: boolean;
|
|
333
|
-
} & { [K_2 in
|
|
333
|
+
} & { [K_2 in xstate0.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_2>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
|
|
334
334
|
initCamera: {
|
|
335
335
|
src: "initCamera";
|
|
336
|
-
logic:
|
|
336
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
337
337
|
id: string | undefined;
|
|
338
338
|
};
|
|
339
339
|
uploadDocument: {
|
|
340
340
|
src: "uploadDocument";
|
|
341
|
-
logic:
|
|
341
|
+
logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
342
342
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
343
343
|
processingType: string;
|
|
344
344
|
onProgress: (progress: number) => void;
|
|
345
|
-
},
|
|
345
|
+
}, xstate0.EventObject>;
|
|
346
346
|
id: string | undefined;
|
|
347
347
|
};
|
|
348
348
|
finalizeDocumentRequest: {
|
|
349
349
|
src: "finalizeDocumentRequest";
|
|
350
|
-
logic:
|
|
350
|
+
logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
351
351
|
processingType: string;
|
|
352
|
-
},
|
|
352
|
+
}, xstate0.EventObject>;
|
|
353
353
|
id: string | undefined;
|
|
354
354
|
};
|
|
355
355
|
}>, "src", TSrc>["logic"]>;
|
|
356
|
-
<TLogic extends
|
|
356
|
+
<TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
|
|
357
357
|
id?: never;
|
|
358
358
|
systemId?: string;
|
|
359
|
-
input?:
|
|
359
|
+
input?: xstate0.InputFrom<TLogic> | undefined;
|
|
360
360
|
syncSnapshot?: boolean;
|
|
361
|
-
} & { [K in
|
|
361
|
+
} & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
|
|
362
362
|
};
|
|
363
363
|
input: DocumentCaptureInput;
|
|
364
|
-
self:
|
|
364
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
|
|
365
365
|
type: "CAPTURE";
|
|
366
366
|
} | {
|
|
367
367
|
type: "FILE_SELECTED";
|
|
@@ -389,7 +389,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
389
389
|
type: "SKIP";
|
|
390
390
|
} | {
|
|
391
391
|
type: "CLOSE";
|
|
392
|
-
}, Record<string,
|
|
392
|
+
}, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
|
|
393
393
|
type: "CAPTURE";
|
|
394
394
|
} | {
|
|
395
395
|
type: "FILE_SELECTED";
|
|
@@ -417,7 +417,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
417
417
|
type: "SKIP";
|
|
418
418
|
} | {
|
|
419
419
|
type: "CLOSE";
|
|
420
|
-
},
|
|
420
|
+
}, xstate0.AnyEventObject>;
|
|
421
421
|
}) => {
|
|
422
422
|
config: {
|
|
423
423
|
processingType: DocumentType;
|
|
@@ -568,7 +568,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
568
568
|
} | {
|
|
569
569
|
type: "CLOSE";
|
|
570
570
|
};
|
|
571
|
-
self:
|
|
571
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
|
|
572
572
|
type: "CAPTURE";
|
|
573
573
|
} | {
|
|
574
574
|
type: "FILE_SELECTED";
|
|
@@ -596,7 +596,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
596
596
|
type: "SKIP";
|
|
597
597
|
} | {
|
|
598
598
|
type: "CLOSE";
|
|
599
|
-
}, Record<string,
|
|
599
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
600
600
|
type: "CAPTURE";
|
|
601
601
|
} | {
|
|
602
602
|
type: "FILE_SELECTED";
|
|
@@ -624,7 +624,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
624
624
|
type: "SKIP";
|
|
625
625
|
} | {
|
|
626
626
|
type: "CLOSE";
|
|
627
|
-
},
|
|
627
|
+
}, xstate0.AnyEventObject>;
|
|
628
628
|
}) => {
|
|
629
629
|
capturedDocument: CapturedDocument;
|
|
630
630
|
processingType: DocumentType;
|
|
@@ -719,7 +719,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
719
719
|
} | {
|
|
720
720
|
type: "CLOSE";
|
|
721
721
|
};
|
|
722
|
-
self:
|
|
722
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
|
|
723
723
|
type: "CAPTURE";
|
|
724
724
|
} | {
|
|
725
725
|
type: "FILE_SELECTED";
|
|
@@ -747,7 +747,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
747
747
|
type: "SKIP";
|
|
748
748
|
} | {
|
|
749
749
|
type: "CLOSE";
|
|
750
|
-
}, Record<string,
|
|
750
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
751
751
|
type: "CAPTURE";
|
|
752
752
|
} | {
|
|
753
753
|
type: "FILE_SELECTED";
|
|
@@ -775,7 +775,7 @@ declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureConte
|
|
|
775
775
|
type: "SKIP";
|
|
776
776
|
} | {
|
|
777
777
|
type: "CLOSE";
|
|
778
|
-
},
|
|
778
|
+
}, xstate0.AnyEventObject>;
|
|
779
779
|
}) => {
|
|
780
780
|
processingType: DocumentType;
|
|
781
781
|
};
|