@incodetech/core 0.0.0-dev-20260429-6a61532 → 0.0.0-dev-20260429-52782c8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ae-signature.d.ts +1 -1
- package/dist/consent.d.ts +52 -52
- package/dist/document-capture.d.ts +77 -77
- package/dist/document-upload.d.ts +49 -49
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +55 -55
- package/dist/identity-reuse.d.ts +45 -45
- package/dist/{index-NZMRpYPx.d.ts → index-C2EOZF54.d.ts} +119 -119
- package/dist/mandatory-consent.d.ts +52 -52
- package/dist/qe-signature.d.ts +1 -1
- package/dist/workflow.d.ts +82 -82
- package/package.json +3 -3
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-uUcXOI3u.js";
|
|
2
2
|
import "./Actor-BW-sqJw1.js";
|
|
3
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-
|
|
3
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-C2EOZF54.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ae-signature/index.d.ts
|
|
6
6
|
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-uUcXOI3u.js";
|
|
2
2
|
import "./Actor-BW-sqJw1.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate260 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: xstate260.StateMachine<ConsentContext, {
|
|
40
40
|
type: "LOAD";
|
|
41
41
|
} | {
|
|
42
42
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -48,53 +48,53 @@ declare const consentMachine: xstate868.StateMachine<ConsentContext, {
|
|
|
48
48
|
} | {
|
|
49
49
|
type: "RESET";
|
|
50
50
|
}, {
|
|
51
|
-
[x: string]:
|
|
51
|
+
[x: string]: xstate260.ActorRefFromLogic<xstate260.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
52
52
|
consentId: string;
|
|
53
|
-
},
|
|
53
|
+
}, xstate260.EventObject>> | xstate260.ActorRefFromLogic<xstate260.PromiseActorLogic<void, {
|
|
54
54
|
languageConsentId: string;
|
|
55
55
|
checkboxes: ConsentCheckbox[];
|
|
56
|
-
},
|
|
57
|
-
},
|
|
56
|
+
}, xstate260.EventObject>> | undefined;
|
|
57
|
+
}, xstate260.Values<{
|
|
58
58
|
fetchConsent: {
|
|
59
59
|
src: "fetchConsent";
|
|
60
|
-
logic:
|
|
60
|
+
logic: xstate260.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
61
61
|
consentId: string;
|
|
62
|
-
},
|
|
62
|
+
}, xstate260.EventObject>;
|
|
63
63
|
id: string | undefined;
|
|
64
64
|
};
|
|
65
65
|
submitConsent: {
|
|
66
66
|
src: "submitConsent";
|
|
67
|
-
logic:
|
|
67
|
+
logic: xstate260.PromiseActorLogic<void, {
|
|
68
68
|
languageConsentId: string;
|
|
69
69
|
checkboxes: ConsentCheckbox[];
|
|
70
|
-
},
|
|
70
|
+
}, xstate260.EventObject>;
|
|
71
71
|
id: string | undefined;
|
|
72
72
|
};
|
|
73
|
-
}>,
|
|
74
|
-
setError: {
|
|
75
|
-
type: "setError";
|
|
76
|
-
params: xstate868.NonReducibleUnknown;
|
|
77
|
-
};
|
|
73
|
+
}>, xstate260.Values<{
|
|
78
74
|
clearError: {
|
|
79
75
|
type: "clearError";
|
|
80
|
-
params:
|
|
76
|
+
params: xstate260.NonReducibleUnknown;
|
|
81
77
|
};
|
|
82
|
-
|
|
83
|
-
type: "
|
|
84
|
-
params:
|
|
78
|
+
setError: {
|
|
79
|
+
type: "setError";
|
|
80
|
+
params: xstate260.NonReducibleUnknown;
|
|
85
81
|
};
|
|
86
82
|
setConsentData: {
|
|
87
83
|
type: "setConsentData";
|
|
88
|
-
params:
|
|
84
|
+
params: xstate260.NonReducibleUnknown;
|
|
89
85
|
};
|
|
90
86
|
toggleCheckbox: {
|
|
91
87
|
type: "toggleCheckbox";
|
|
92
|
-
params:
|
|
88
|
+
params: xstate260.NonReducibleUnknown;
|
|
89
|
+
};
|
|
90
|
+
resetContext: {
|
|
91
|
+
type: "resetContext";
|
|
92
|
+
params: xstate260.NonReducibleUnknown;
|
|
93
93
|
};
|
|
94
94
|
}>, {
|
|
95
95
|
type: "canSubmit";
|
|
96
96
|
params: unknown;
|
|
97
|
-
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput,
|
|
97
|
+
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate260.NonReducibleUnknown, xstate260.EventObject, xstate260.MetaObject, {
|
|
98
98
|
readonly id: "consent";
|
|
99
99
|
readonly initial: "idle";
|
|
100
100
|
readonly context: ({
|
|
@@ -103,70 +103,70 @@ declare const consentMachine: xstate868.StateMachine<ConsentContext, {
|
|
|
103
103
|
spawn: {
|
|
104
104
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
105
105
|
src: "fetchConsent";
|
|
106
|
-
logic:
|
|
106
|
+
logic: xstate260.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
107
107
|
consentId: string;
|
|
108
|
-
},
|
|
108
|
+
}, xstate260.EventObject>;
|
|
109
109
|
id: string | undefined;
|
|
110
110
|
} extends infer T ? T extends {
|
|
111
111
|
src: "fetchConsent";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate260.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
113
113
|
consentId: string;
|
|
114
|
-
},
|
|
114
|
+
}, xstate260.EventObject>;
|
|
115
115
|
id: string | undefined;
|
|
116
116
|
} ? T extends {
|
|
117
117
|
src: TSrc;
|
|
118
|
-
} ?
|
|
118
|
+
} ? xstate260.ConditionalRequired<[options?: ({
|
|
119
119
|
id?: T["id"] | undefined;
|
|
120
120
|
systemId?: string;
|
|
121
|
-
input?:
|
|
121
|
+
input?: xstate260.InputFrom<T["logic"]> | undefined;
|
|
122
122
|
syncSnapshot?: boolean;
|
|
123
|
-
} & { [K in
|
|
123
|
+
} & { [K in xstate260.RequiredActorOptions<T>]: unknown }) | undefined], xstate260.IsNotNever<xstate260.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
124
124
|
src: "submitConsent";
|
|
125
|
-
logic:
|
|
125
|
+
logic: xstate260.PromiseActorLogic<void, {
|
|
126
126
|
languageConsentId: string;
|
|
127
127
|
checkboxes: ConsentCheckbox[];
|
|
128
|
-
},
|
|
128
|
+
}, xstate260.EventObject>;
|
|
129
129
|
id: string | undefined;
|
|
130
130
|
} extends infer T_1 ? T_1 extends {
|
|
131
131
|
src: "submitConsent";
|
|
132
|
-
logic:
|
|
132
|
+
logic: xstate260.PromiseActorLogic<void, {
|
|
133
133
|
languageConsentId: string;
|
|
134
134
|
checkboxes: ConsentCheckbox[];
|
|
135
|
-
},
|
|
135
|
+
}, xstate260.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
} ? T_1 extends {
|
|
138
138
|
src: TSrc;
|
|
139
|
-
} ?
|
|
139
|
+
} ? xstate260.ConditionalRequired<[options?: ({
|
|
140
140
|
id?: T_1["id"] | undefined;
|
|
141
141
|
systemId?: string;
|
|
142
|
-
input?:
|
|
142
|
+
input?: xstate260.InputFrom<T_1["logic"]> | undefined;
|
|
143
143
|
syncSnapshot?: boolean;
|
|
144
|
-
} & { [K_1 in
|
|
144
|
+
} & { [K_1 in xstate260.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate260.IsNotNever<xstate260.RequiredActorOptions<T_1>>> : never : never : never)): xstate260.ActorRefFromLogic<xstate260.GetConcreteByKey<xstate260.Values<{
|
|
145
145
|
fetchConsent: {
|
|
146
146
|
src: "fetchConsent";
|
|
147
|
-
logic:
|
|
147
|
+
logic: xstate260.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
148
148
|
consentId: string;
|
|
149
|
-
},
|
|
149
|
+
}, xstate260.EventObject>;
|
|
150
150
|
id: string | undefined;
|
|
151
151
|
};
|
|
152
152
|
submitConsent: {
|
|
153
153
|
src: "submitConsent";
|
|
154
|
-
logic:
|
|
154
|
+
logic: xstate260.PromiseActorLogic<void, {
|
|
155
155
|
languageConsentId: string;
|
|
156
156
|
checkboxes: ConsentCheckbox[];
|
|
157
|
-
},
|
|
157
|
+
}, xstate260.EventObject>;
|
|
158
158
|
id: string | undefined;
|
|
159
159
|
};
|
|
160
160
|
}>, "src", TSrc>["logic"]>;
|
|
161
|
-
<TLogic extends
|
|
161
|
+
<TLogic extends xstate260.AnyActorLogic>(src: TLogic, ...[options]: xstate260.ConditionalRequired<[options?: ({
|
|
162
162
|
id?: never;
|
|
163
163
|
systemId?: string;
|
|
164
|
-
input?:
|
|
164
|
+
input?: xstate260.InputFrom<TLogic> | undefined;
|
|
165
165
|
syncSnapshot?: boolean;
|
|
166
|
-
} & { [K in
|
|
166
|
+
} & { [K in xstate260.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate260.IsNotNever<xstate260.RequiredLogicInput<TLogic>>>): xstate260.ActorRefFromLogic<TLogic>;
|
|
167
167
|
};
|
|
168
168
|
input: ConsentInput;
|
|
169
|
-
self:
|
|
169
|
+
self: xstate260.ActorRef<xstate260.MachineSnapshot<ConsentContext, {
|
|
170
170
|
type: "LOAD";
|
|
171
171
|
} | {
|
|
172
172
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -177,7 +177,7 @@ declare const consentMachine: xstate868.StateMachine<ConsentContext, {
|
|
|
177
177
|
type: "RETRY";
|
|
178
178
|
} | {
|
|
179
179
|
type: "RESET";
|
|
180
|
-
}, Record<string,
|
|
180
|
+
}, Record<string, xstate260.AnyActorRef | undefined>, xstate260.StateValue, string, unknown, any, any>, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -188,7 +188,7 @@ declare const consentMachine: xstate868.StateMachine<ConsentContext, {
|
|
|
188
188
|
type: "RETRY";
|
|
189
189
|
} | {
|
|
190
190
|
type: "RESET";
|
|
191
|
-
},
|
|
191
|
+
}, xstate260.AnyEventObject>;
|
|
192
192
|
}) => {
|
|
193
193
|
config: ConsentConfig;
|
|
194
194
|
title: string;
|
|
@@ -226,7 +226,7 @@ declare const consentMachine: xstate868.StateMachine<ConsentContext, {
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "RESET";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate260.ActorRef<xstate260.MachineSnapshot<ConsentContext, {
|
|
230
230
|
type: "LOAD";
|
|
231
231
|
} | {
|
|
232
232
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -237,7 +237,7 @@ declare const consentMachine: xstate868.StateMachine<ConsentContext, {
|
|
|
237
237
|
type: "RETRY";
|
|
238
238
|
} | {
|
|
239
239
|
type: "RESET";
|
|
240
|
-
}, Record<string,
|
|
240
|
+
}, Record<string, xstate260.AnyActorRef>, xstate260.StateValue, string, unknown, any, any>, {
|
|
241
241
|
type: "LOAD";
|
|
242
242
|
} | {
|
|
243
243
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -248,7 +248,7 @@ declare const consentMachine: xstate868.StateMachine<ConsentContext, {
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "RESET";
|
|
251
|
-
},
|
|
251
|
+
}, xstate260.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
consentId: string;
|
|
254
254
|
};
|
|
@@ -297,7 +297,7 @@ declare const consentMachine: xstate868.StateMachine<ConsentContext, {
|
|
|
297
297
|
} | {
|
|
298
298
|
type: "RESET";
|
|
299
299
|
};
|
|
300
|
-
self:
|
|
300
|
+
self: xstate260.ActorRef<xstate260.MachineSnapshot<ConsentContext, {
|
|
301
301
|
type: "LOAD";
|
|
302
302
|
} | {
|
|
303
303
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -308,7 +308,7 @@ declare const consentMachine: xstate868.StateMachine<ConsentContext, {
|
|
|
308
308
|
type: "RETRY";
|
|
309
309
|
} | {
|
|
310
310
|
type: "RESET";
|
|
311
|
-
}, Record<string,
|
|
311
|
+
}, Record<string, xstate260.AnyActorRef>, xstate260.StateValue, string, unknown, any, any>, {
|
|
312
312
|
type: "LOAD";
|
|
313
313
|
} | {
|
|
314
314
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -319,7 +319,7 @@ declare const consentMachine: xstate868.StateMachine<ConsentContext, {
|
|
|
319
319
|
type: "RETRY";
|
|
320
320
|
} | {
|
|
321
321
|
type: "RESET";
|
|
322
|
-
},
|
|
322
|
+
}, xstate260.AnyEventObject>;
|
|
323
323
|
}) => {
|
|
324
324
|
languageConsentId: string;
|
|
325
325
|
checkboxes: ConsentCheckbox[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-uUcXOI3u.js";
|
|
2
2
|
import "./Actor-BW-sqJw1.js";
|
|
3
3
|
import { t as CameraStream } from "./camera-8mZXnNHU.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';
|
|
@@ -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: xstate0.StateMachine<DocumentCaptureContext, {
|
|
88
88
|
type: "CAPTURE";
|
|
89
89
|
} | {
|
|
90
90
|
type: "FILE_SELECTED";
|
|
@@ -113,109 +113,109 @@ declare const documentCaptureMachine: xstate753.StateMachine<DocumentCaptureCont
|
|
|
113
113
|
} | {
|
|
114
114
|
type: "CLOSE";
|
|
115
115
|
}, {
|
|
116
|
-
[x: string]:
|
|
116
|
+
[x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
117
117
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
118
118
|
processingType: string;
|
|
119
119
|
onProgress: (progress: number) => void;
|
|
120
|
-
},
|
|
120
|
+
}, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
121
121
|
processingType: string;
|
|
122
|
-
},
|
|
123
|
-
},
|
|
122
|
+
}, xstate0.EventObject>> | undefined;
|
|
123
|
+
}, xstate0.Values<{
|
|
124
124
|
uploadDocument: {
|
|
125
125
|
src: "uploadDocument";
|
|
126
|
-
logic:
|
|
126
|
+
logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
127
127
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
128
128
|
processingType: string;
|
|
129
129
|
onProgress: (progress: number) => void;
|
|
130
|
-
},
|
|
130
|
+
}, xstate0.EventObject>;
|
|
131
131
|
id: string | undefined;
|
|
132
132
|
};
|
|
133
133
|
initCamera: {
|
|
134
134
|
src: "initCamera";
|
|
135
|
-
logic:
|
|
135
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
};
|
|
138
138
|
finalizeDocumentRequest: {
|
|
139
139
|
src: "finalizeDocumentRequest";
|
|
140
|
-
logic:
|
|
140
|
+
logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
141
141
|
processingType: string;
|
|
142
|
-
},
|
|
142
|
+
}, xstate0.EventObject>;
|
|
143
143
|
id: string | undefined;
|
|
144
144
|
};
|
|
145
|
-
}>,
|
|
146
|
-
clearError: {
|
|
147
|
-
type: "clearError";
|
|
148
|
-
params: xstate753.NonReducibleUnknown;
|
|
149
|
-
};
|
|
145
|
+
}>, xstate0.Values<{
|
|
150
146
|
setStream: {
|
|
151
147
|
type: "setStream";
|
|
152
|
-
params:
|
|
153
|
-
};
|
|
154
|
-
setProgress: {
|
|
155
|
-
type: "setProgress";
|
|
156
|
-
params: xstate753.NonReducibleUnknown;
|
|
157
|
-
};
|
|
158
|
-
stopStream: {
|
|
159
|
-
type: "stopStream";
|
|
160
|
-
params: xstate753.NonReducibleUnknown;
|
|
148
|
+
params: xstate0.NonReducibleUnknown;
|
|
161
149
|
};
|
|
162
150
|
setCapturedDocument: {
|
|
163
151
|
type: "setCapturedDocument";
|
|
164
|
-
params:
|
|
152
|
+
params: xstate0.NonReducibleUnknown;
|
|
165
153
|
};
|
|
166
154
|
setFileTooLargeError: {
|
|
167
155
|
type: "setFileTooLargeError";
|
|
168
|
-
params:
|
|
156
|
+
params: xstate0.NonReducibleUnknown;
|
|
157
|
+
};
|
|
158
|
+
setProgress: {
|
|
159
|
+
type: "setProgress";
|
|
160
|
+
params: xstate0.NonReducibleUnknown;
|
|
169
161
|
};
|
|
170
162
|
setUploadError: {
|
|
171
163
|
type: "setUploadError";
|
|
172
|
-
params:
|
|
164
|
+
params: xstate0.NonReducibleUnknown;
|
|
173
165
|
};
|
|
174
166
|
setFinalizeError: {
|
|
175
167
|
type: "setFinalizeError";
|
|
176
|
-
params:
|
|
168
|
+
params: xstate0.NonReducibleUnknown;
|
|
177
169
|
};
|
|
178
170
|
decrementAttemptsRemaining: {
|
|
179
171
|
type: "decrementAttemptsRemaining";
|
|
180
|
-
params:
|
|
172
|
+
params: xstate0.NonReducibleUnknown;
|
|
181
173
|
};
|
|
182
174
|
setCaptureMethodFile: {
|
|
183
175
|
type: "setCaptureMethodFile";
|
|
184
|
-
params:
|
|
176
|
+
params: xstate0.NonReducibleUnknown;
|
|
185
177
|
};
|
|
186
178
|
setCaptureMethodCamera: {
|
|
187
179
|
type: "setCaptureMethodCamera";
|
|
188
|
-
params:
|
|
180
|
+
params: xstate0.NonReducibleUnknown;
|
|
189
181
|
};
|
|
190
182
|
setCaptureMethodGallery: {
|
|
191
183
|
type: "setCaptureMethodGallery";
|
|
192
|
-
params:
|
|
184
|
+
params: xstate0.NonReducibleUnknown;
|
|
193
185
|
};
|
|
194
186
|
clearCapturedDocument: {
|
|
195
187
|
type: "clearCapturedDocument";
|
|
196
|
-
params:
|
|
188
|
+
params: xstate0.NonReducibleUnknown;
|
|
197
189
|
};
|
|
198
190
|
resetPageNumber: {
|
|
199
191
|
type: "resetPageNumber";
|
|
200
|
-
params:
|
|
192
|
+
params: xstate0.NonReducibleUnknown;
|
|
201
193
|
};
|
|
202
194
|
clearCapturedDocumentGalleryRetake: {
|
|
203
195
|
type: "clearCapturedDocumentGalleryRetake";
|
|
204
|
-
params:
|
|
196
|
+
params: xstate0.NonReducibleUnknown;
|
|
205
197
|
};
|
|
206
198
|
setNextPageType: {
|
|
207
199
|
type: "setNextPageType";
|
|
208
|
-
params:
|
|
200
|
+
params: xstate0.NonReducibleUnknown;
|
|
209
201
|
};
|
|
210
202
|
clearForNextPage: {
|
|
211
203
|
type: "clearForNextPage";
|
|
212
|
-
params:
|
|
204
|
+
params: xstate0.NonReducibleUnknown;
|
|
205
|
+
};
|
|
206
|
+
clearError: {
|
|
207
|
+
type: "clearError";
|
|
208
|
+
params: xstate0.NonReducibleUnknown;
|
|
213
209
|
};
|
|
214
210
|
resetProgress: {
|
|
215
211
|
type: "resetProgress";
|
|
216
|
-
params:
|
|
212
|
+
params: xstate0.NonReducibleUnknown;
|
|
213
|
+
};
|
|
214
|
+
stopStream: {
|
|
215
|
+
type: "stopStream";
|
|
216
|
+
params: xstate0.NonReducibleUnknown;
|
|
217
217
|
};
|
|
218
|
-
}>,
|
|
218
|
+
}>, xstate0.Values<{
|
|
219
219
|
allowSkip: {
|
|
220
220
|
type: "allowSkip";
|
|
221
221
|
params: unknown;
|
|
@@ -268,7 +268,7 @@ declare const documentCaptureMachine: xstate753.StateMachine<DocumentCaptureCont
|
|
|
268
268
|
type: "fileSizeOkForNonGallery";
|
|
269
269
|
params: unknown;
|
|
270
270
|
};
|
|
271
|
-
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "
|
|
271
|
+
}>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "tutorial" | "capturing" | "preview" | "failure" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
272
272
|
readonly id: "documentCapture";
|
|
273
273
|
readonly initial: "tutorial";
|
|
274
274
|
readonly context: ({
|
|
@@ -277,93 +277,93 @@ declare const documentCaptureMachine: xstate753.StateMachine<DocumentCaptureCont
|
|
|
277
277
|
spawn: {
|
|
278
278
|
<TSrc extends "uploadDocument" | "initCamera" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
|
|
279
279
|
src: "uploadDocument";
|
|
280
|
-
logic:
|
|
280
|
+
logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
281
281
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
282
282
|
processingType: string;
|
|
283
283
|
onProgress: (progress: number) => void;
|
|
284
|
-
},
|
|
284
|
+
}, xstate0.EventObject>;
|
|
285
285
|
id: string | undefined;
|
|
286
286
|
} extends infer T ? T extends {
|
|
287
287
|
src: "uploadDocument";
|
|
288
|
-
logic:
|
|
288
|
+
logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
289
289
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
290
290
|
processingType: string;
|
|
291
291
|
onProgress: (progress: number) => void;
|
|
292
|
-
},
|
|
292
|
+
}, xstate0.EventObject>;
|
|
293
293
|
id: string | undefined;
|
|
294
294
|
} ? T extends {
|
|
295
295
|
src: TSrc;
|
|
296
|
-
} ?
|
|
296
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
297
297
|
id?: T["id"] | undefined;
|
|
298
298
|
systemId?: string;
|
|
299
|
-
input?:
|
|
299
|
+
input?: xstate0.InputFrom<T["logic"]> | undefined;
|
|
300
300
|
syncSnapshot?: boolean;
|
|
301
|
-
} & { [K in
|
|
301
|
+
} & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
302
302
|
src: "initCamera";
|
|
303
|
-
logic:
|
|
303
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
304
304
|
id: string | undefined;
|
|
305
305
|
} extends infer T_1 ? T_1 extends {
|
|
306
306
|
src: "initCamera";
|
|
307
|
-
logic:
|
|
307
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
308
308
|
id: string | undefined;
|
|
309
309
|
} ? T_1 extends {
|
|
310
310
|
src: TSrc;
|
|
311
|
-
} ?
|
|
311
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
312
312
|
id?: T_1["id"] | undefined;
|
|
313
313
|
systemId?: string;
|
|
314
|
-
input?:
|
|
314
|
+
input?: xstate0.InputFrom<T_1["logic"]> | undefined;
|
|
315
315
|
syncSnapshot?: boolean;
|
|
316
|
-
} & { [K_1 in
|
|
316
|
+
} & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
317
317
|
src: "finalizeDocumentRequest";
|
|
318
|
-
logic:
|
|
318
|
+
logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
319
319
|
processingType: string;
|
|
320
|
-
},
|
|
320
|
+
}, xstate0.EventObject>;
|
|
321
321
|
id: string | undefined;
|
|
322
322
|
} extends infer T_2 ? T_2 extends {
|
|
323
323
|
src: "finalizeDocumentRequest";
|
|
324
|
-
logic:
|
|
324
|
+
logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
325
325
|
processingType: string;
|
|
326
|
-
},
|
|
326
|
+
}, xstate0.EventObject>;
|
|
327
327
|
id: string | undefined;
|
|
328
328
|
} ? T_2 extends {
|
|
329
329
|
src: TSrc;
|
|
330
|
-
} ?
|
|
330
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
331
331
|
id?: T_2["id"] | undefined;
|
|
332
332
|
systemId?: string;
|
|
333
|
-
input?:
|
|
333
|
+
input?: xstate0.InputFrom<T_2["logic"]> | undefined;
|
|
334
334
|
syncSnapshot?: boolean;
|
|
335
|
-
} & { [K_2 in
|
|
335
|
+
} & { [K_2 in xstate0.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_2>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
|
|
336
336
|
uploadDocument: {
|
|
337
337
|
src: "uploadDocument";
|
|
338
|
-
logic:
|
|
338
|
+
logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
|
|
339
339
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
340
340
|
processingType: string;
|
|
341
341
|
onProgress: (progress: number) => void;
|
|
342
|
-
},
|
|
342
|
+
}, xstate0.EventObject>;
|
|
343
343
|
id: string | undefined;
|
|
344
344
|
};
|
|
345
345
|
initCamera: {
|
|
346
346
|
src: "initCamera";
|
|
347
|
-
logic:
|
|
347
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
348
348
|
id: string | undefined;
|
|
349
349
|
};
|
|
350
350
|
finalizeDocumentRequest: {
|
|
351
351
|
src: "finalizeDocumentRequest";
|
|
352
|
-
logic:
|
|
352
|
+
logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
353
353
|
processingType: string;
|
|
354
|
-
},
|
|
354
|
+
}, xstate0.EventObject>;
|
|
355
355
|
id: string | undefined;
|
|
356
356
|
};
|
|
357
357
|
}>, "src", TSrc>["logic"]>;
|
|
358
|
-
<TLogic extends
|
|
358
|
+
<TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
|
|
359
359
|
id?: never;
|
|
360
360
|
systemId?: string;
|
|
361
|
-
input?:
|
|
361
|
+
input?: xstate0.InputFrom<TLogic> | undefined;
|
|
362
362
|
syncSnapshot?: boolean;
|
|
363
|
-
} & { [K in
|
|
363
|
+
} & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
|
|
364
364
|
};
|
|
365
365
|
input: DocumentCaptureInput;
|
|
366
|
-
self:
|
|
366
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
|
|
367
367
|
type: "CAPTURE";
|
|
368
368
|
} | {
|
|
369
369
|
type: "FILE_SELECTED";
|
|
@@ -391,7 +391,7 @@ declare const documentCaptureMachine: xstate753.StateMachine<DocumentCaptureCont
|
|
|
391
391
|
type: "SKIP";
|
|
392
392
|
} | {
|
|
393
393
|
type: "CLOSE";
|
|
394
|
-
}, Record<string,
|
|
394
|
+
}, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
|
|
395
395
|
type: "CAPTURE";
|
|
396
396
|
} | {
|
|
397
397
|
type: "FILE_SELECTED";
|
|
@@ -419,7 +419,7 @@ declare const documentCaptureMachine: xstate753.StateMachine<DocumentCaptureCont
|
|
|
419
419
|
type: "SKIP";
|
|
420
420
|
} | {
|
|
421
421
|
type: "CLOSE";
|
|
422
|
-
},
|
|
422
|
+
}, xstate0.AnyEventObject>;
|
|
423
423
|
}) => {
|
|
424
424
|
config: {
|
|
425
425
|
processingType: DocumentType;
|
|
@@ -570,7 +570,7 @@ declare const documentCaptureMachine: xstate753.StateMachine<DocumentCaptureCont
|
|
|
570
570
|
} | {
|
|
571
571
|
type: "CLOSE";
|
|
572
572
|
};
|
|
573
|
-
self:
|
|
573
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
|
|
574
574
|
type: "CAPTURE";
|
|
575
575
|
} | {
|
|
576
576
|
type: "FILE_SELECTED";
|
|
@@ -598,7 +598,7 @@ declare const documentCaptureMachine: xstate753.StateMachine<DocumentCaptureCont
|
|
|
598
598
|
type: "SKIP";
|
|
599
599
|
} | {
|
|
600
600
|
type: "CLOSE";
|
|
601
|
-
}, Record<string,
|
|
601
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
602
602
|
type: "CAPTURE";
|
|
603
603
|
} | {
|
|
604
604
|
type: "FILE_SELECTED";
|
|
@@ -626,7 +626,7 @@ declare const documentCaptureMachine: xstate753.StateMachine<DocumentCaptureCont
|
|
|
626
626
|
type: "SKIP";
|
|
627
627
|
} | {
|
|
628
628
|
type: "CLOSE";
|
|
629
|
-
},
|
|
629
|
+
}, xstate0.AnyEventObject>;
|
|
630
630
|
}) => {
|
|
631
631
|
capturedDocument: CapturedDocument;
|
|
632
632
|
processingType: DocumentType;
|
|
@@ -721,7 +721,7 @@ declare const documentCaptureMachine: xstate753.StateMachine<DocumentCaptureCont
|
|
|
721
721
|
} | {
|
|
722
722
|
type: "CLOSE";
|
|
723
723
|
};
|
|
724
|
-
self:
|
|
724
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
|
|
725
725
|
type: "CAPTURE";
|
|
726
726
|
} | {
|
|
727
727
|
type: "FILE_SELECTED";
|
|
@@ -749,7 +749,7 @@ declare const documentCaptureMachine: xstate753.StateMachine<DocumentCaptureCont
|
|
|
749
749
|
type: "SKIP";
|
|
750
750
|
} | {
|
|
751
751
|
type: "CLOSE";
|
|
752
|
-
}, Record<string,
|
|
752
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
753
753
|
type: "CAPTURE";
|
|
754
754
|
} | {
|
|
755
755
|
type: "FILE_SELECTED";
|
|
@@ -777,7 +777,7 @@ declare const documentCaptureMachine: xstate753.StateMachine<DocumentCaptureCont
|
|
|
777
777
|
type: "SKIP";
|
|
778
778
|
} | {
|
|
779
779
|
type: "CLOSE";
|
|
780
|
-
},
|
|
780
|
+
}, xstate0.AnyEventObject>;
|
|
781
781
|
}) => {
|
|
782
782
|
processingType: DocumentType;
|
|
783
783
|
};
|