@incodetech/core 0.0.0-dev-20260407-ebd92aa → 0.0.0-dev-20260407-d5ee208
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 +75 -75
- package/dist/document-upload.d.ts +49 -49
- package/dist/mandatory-consent.d.ts +47 -47
- package/package.json +1 -1
package/dist/consent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-N01KfnVA.js";
|
|
2
2
|
import "./Actor-Cz_KnN47.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: xstate160.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
|
-
}>,
|
|
74
|
-
setError: {
|
|
75
|
-
type: "setError";
|
|
76
|
-
params: xstate160.NonReducibleUnknown;
|
|
77
|
-
};
|
|
78
|
-
clearError: {
|
|
79
|
-
type: "clearError";
|
|
80
|
-
params: xstate160.NonReducibleUnknown;
|
|
81
|
-
};
|
|
73
|
+
}>, xstate0.Values<{
|
|
82
74
|
setConsentData: {
|
|
83
75
|
type: "setConsentData";
|
|
84
|
-
params:
|
|
76
|
+
params: xstate0.NonReducibleUnknown;
|
|
85
77
|
};
|
|
86
78
|
toggleCheckbox: {
|
|
87
79
|
type: "toggleCheckbox";
|
|
88
|
-
params:
|
|
80
|
+
params: xstate0.NonReducibleUnknown;
|
|
81
|
+
};
|
|
82
|
+
setError: {
|
|
83
|
+
type: "setError";
|
|
84
|
+
params: xstate0.NonReducibleUnknown;
|
|
85
|
+
};
|
|
86
|
+
clearError: {
|
|
87
|
+
type: "clearError";
|
|
88
|
+
params: xstate0.NonReducibleUnknown;
|
|
89
89
|
};
|
|
90
90
|
resetContext: {
|
|
91
91
|
type: "resetContext";
|
|
92
|
-
params:
|
|
92
|
+
params: xstate0.NonReducibleUnknown;
|
|
93
93
|
};
|
|
94
94
|
}>, {
|
|
95
95
|
type: "canSubmit";
|
|
96
96
|
params: unknown;
|
|
97
|
-
}, never, "error" | "idle" | "
|
|
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: xstate160.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: xstate160.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: xstate160.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: xstate160.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: xstate160.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: xstate160.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: xstate160.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: xstate160.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: xstate160.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-N01KfnVA.js";
|
|
2
2
|
import "./Actor-Cz_KnN47.js";
|
|
3
3
|
import { t as CameraStream } from "./camera-BcVDCZxW.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as xstate135 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: xstate135.StateMachine<DocumentCaptureContext, {
|
|
86
86
|
type: "CAPTURE";
|
|
87
87
|
} | {
|
|
88
88
|
type: "FILE_SELECTED";
|
|
@@ -111,105 +111,105 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
111
111
|
} | {
|
|
112
112
|
type: "CLOSE";
|
|
113
113
|
}, {
|
|
114
|
-
[x: string]:
|
|
114
|
+
[x: string]: xstate135.ActorRefFromLogic<xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>> | xstate135.ActorRefFromLogic<xstate135.PromiseActorLogic<DocumentUploadResponse, {
|
|
115
115
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
116
116
|
processingType: string;
|
|
117
117
|
onProgress: (progress: number) => void;
|
|
118
|
-
},
|
|
118
|
+
}, xstate135.EventObject>> | xstate135.ActorRefFromLogic<xstate135.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
119
119
|
processingType: string;
|
|
120
|
-
},
|
|
121
|
-
},
|
|
120
|
+
}, xstate135.EventObject>> | undefined;
|
|
121
|
+
}, xstate135.Values<{
|
|
122
122
|
initCamera: {
|
|
123
123
|
src: "initCamera";
|
|
124
|
-
logic:
|
|
124
|
+
logic: xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>;
|
|
125
125
|
id: string | undefined;
|
|
126
126
|
};
|
|
127
127
|
uploadDocument: {
|
|
128
128
|
src: "uploadDocument";
|
|
129
|
-
logic:
|
|
129
|
+
logic: xstate135.PromiseActorLogic<DocumentUploadResponse, {
|
|
130
130
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
131
131
|
processingType: string;
|
|
132
132
|
onProgress: (progress: number) => void;
|
|
133
|
-
},
|
|
133
|
+
}, xstate135.EventObject>;
|
|
134
134
|
id: string | undefined;
|
|
135
135
|
};
|
|
136
136
|
finalizeDocumentRequest: {
|
|
137
137
|
src: "finalizeDocumentRequest";
|
|
138
|
-
logic:
|
|
138
|
+
logic: xstate135.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
139
139
|
processingType: string;
|
|
140
|
-
},
|
|
140
|
+
}, xstate135.EventObject>;
|
|
141
141
|
id: string | undefined;
|
|
142
142
|
};
|
|
143
|
-
}>,
|
|
144
|
-
setStream: {
|
|
145
|
-
type: "setStream";
|
|
146
|
-
params: xstate63.NonReducibleUnknown;
|
|
147
|
-
};
|
|
148
|
-
setProgress: {
|
|
149
|
-
type: "setProgress";
|
|
150
|
-
params: xstate63.NonReducibleUnknown;
|
|
151
|
-
};
|
|
143
|
+
}>, xstate135.Values<{
|
|
152
144
|
clearError: {
|
|
153
145
|
type: "clearError";
|
|
154
|
-
params:
|
|
146
|
+
params: xstate135.NonReducibleUnknown;
|
|
155
147
|
};
|
|
156
|
-
|
|
157
|
-
type: "
|
|
158
|
-
params:
|
|
148
|
+
setStream: {
|
|
149
|
+
type: "setStream";
|
|
150
|
+
params: xstate135.NonReducibleUnknown;
|
|
159
151
|
};
|
|
160
152
|
setCapturedDocument: {
|
|
161
153
|
type: "setCapturedDocument";
|
|
162
|
-
params:
|
|
154
|
+
params: xstate135.NonReducibleUnknown;
|
|
163
155
|
};
|
|
164
156
|
setFileTooLargeError: {
|
|
165
157
|
type: "setFileTooLargeError";
|
|
166
|
-
params:
|
|
158
|
+
params: xstate135.NonReducibleUnknown;
|
|
159
|
+
};
|
|
160
|
+
setProgress: {
|
|
161
|
+
type: "setProgress";
|
|
162
|
+
params: xstate135.NonReducibleUnknown;
|
|
167
163
|
};
|
|
168
164
|
setUploadError: {
|
|
169
165
|
type: "setUploadError";
|
|
170
|
-
params:
|
|
166
|
+
params: xstate135.NonReducibleUnknown;
|
|
171
167
|
};
|
|
172
168
|
setFinalizeError: {
|
|
173
169
|
type: "setFinalizeError";
|
|
174
|
-
params:
|
|
170
|
+
params: xstate135.NonReducibleUnknown;
|
|
175
171
|
};
|
|
176
172
|
decrementAttemptsRemaining: {
|
|
177
173
|
type: "decrementAttemptsRemaining";
|
|
178
|
-
params:
|
|
174
|
+
params: xstate135.NonReducibleUnknown;
|
|
179
175
|
};
|
|
180
176
|
setCaptureMethodFile: {
|
|
181
177
|
type: "setCaptureMethodFile";
|
|
182
|
-
params:
|
|
178
|
+
params: xstate135.NonReducibleUnknown;
|
|
183
179
|
};
|
|
184
180
|
setCaptureMethodCamera: {
|
|
185
181
|
type: "setCaptureMethodCamera";
|
|
186
|
-
params:
|
|
182
|
+
params: xstate135.NonReducibleUnknown;
|
|
187
183
|
};
|
|
188
184
|
setCaptureMethodGallery: {
|
|
189
185
|
type: "setCaptureMethodGallery";
|
|
190
|
-
params:
|
|
186
|
+
params: xstate135.NonReducibleUnknown;
|
|
191
187
|
};
|
|
192
188
|
clearCapturedDocument: {
|
|
193
189
|
type: "clearCapturedDocument";
|
|
194
|
-
params:
|
|
190
|
+
params: xstate135.NonReducibleUnknown;
|
|
195
191
|
};
|
|
196
192
|
clearCapturedDocumentGalleryRetake: {
|
|
197
193
|
type: "clearCapturedDocumentGalleryRetake";
|
|
198
|
-
params:
|
|
194
|
+
params: xstate135.NonReducibleUnknown;
|
|
199
195
|
};
|
|
200
196
|
setNextPageType: {
|
|
201
197
|
type: "setNextPageType";
|
|
202
|
-
params:
|
|
198
|
+
params: xstate135.NonReducibleUnknown;
|
|
203
199
|
};
|
|
204
200
|
clearForNextPage: {
|
|
205
201
|
type: "clearForNextPage";
|
|
206
|
-
params:
|
|
202
|
+
params: xstate135.NonReducibleUnknown;
|
|
207
203
|
};
|
|
208
204
|
resetProgress: {
|
|
209
205
|
type: "resetProgress";
|
|
210
|
-
params:
|
|
206
|
+
params: xstate135.NonReducibleUnknown;
|
|
207
|
+
};
|
|
208
|
+
stopStream: {
|
|
209
|
+
type: "stopStream";
|
|
210
|
+
params: xstate135.NonReducibleUnknown;
|
|
211
211
|
};
|
|
212
|
-
}>,
|
|
212
|
+
}>, xstate135.Values<{
|
|
213
213
|
allowSkip: {
|
|
214
214
|
type: "allowSkip";
|
|
215
215
|
params: unknown;
|
|
@@ -266,7 +266,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
266
266
|
type: "fileSizeOkForNonGallery";
|
|
267
267
|
params: unknown;
|
|
268
268
|
};
|
|
269
|
-
}>, never, "
|
|
269
|
+
}>, never, "finished" | "closed" | "initCamera" | "tutorial" | "capturing" | "preview" | "failure" | "uploading" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate135.NonReducibleUnknown, xstate135.EventObject, xstate135.MetaObject, {
|
|
270
270
|
readonly id: "documentCapture";
|
|
271
271
|
readonly initial: "tutorial";
|
|
272
272
|
readonly context: ({
|
|
@@ -275,93 +275,93 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
275
275
|
spawn: {
|
|
276
276
|
<TSrc extends "initCamera" | "uploadDocument" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
|
|
277
277
|
src: "initCamera";
|
|
278
|
-
logic:
|
|
278
|
+
logic: xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>;
|
|
279
279
|
id: string | undefined;
|
|
280
280
|
} extends infer T ? T extends {
|
|
281
281
|
src: "initCamera";
|
|
282
|
-
logic:
|
|
282
|
+
logic: xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>;
|
|
283
283
|
id: string | undefined;
|
|
284
284
|
} ? T extends {
|
|
285
285
|
src: TSrc;
|
|
286
|
-
} ?
|
|
286
|
+
} ? xstate135.ConditionalRequired<[options?: ({
|
|
287
287
|
id?: T["id"] | undefined;
|
|
288
288
|
systemId?: string;
|
|
289
|
-
input?:
|
|
289
|
+
input?: xstate135.InputFrom<T["logic"]> | undefined;
|
|
290
290
|
syncSnapshot?: boolean;
|
|
291
|
-
} & { [K in
|
|
291
|
+
} & { [K in xstate135.RequiredActorOptions<T>]: unknown }) | undefined], xstate135.IsNotNever<xstate135.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
292
292
|
src: "uploadDocument";
|
|
293
|
-
logic:
|
|
293
|
+
logic: xstate135.PromiseActorLogic<DocumentUploadResponse, {
|
|
294
294
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
295
295
|
processingType: string;
|
|
296
296
|
onProgress: (progress: number) => void;
|
|
297
|
-
},
|
|
297
|
+
}, xstate135.EventObject>;
|
|
298
298
|
id: string | undefined;
|
|
299
299
|
} extends infer T_1 ? T_1 extends {
|
|
300
300
|
src: "uploadDocument";
|
|
301
|
-
logic:
|
|
301
|
+
logic: xstate135.PromiseActorLogic<DocumentUploadResponse, {
|
|
302
302
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
303
303
|
processingType: string;
|
|
304
304
|
onProgress: (progress: number) => void;
|
|
305
|
-
},
|
|
305
|
+
}, xstate135.EventObject>;
|
|
306
306
|
id: string | undefined;
|
|
307
307
|
} ? T_1 extends {
|
|
308
308
|
src: TSrc;
|
|
309
|
-
} ?
|
|
309
|
+
} ? xstate135.ConditionalRequired<[options?: ({
|
|
310
310
|
id?: T_1["id"] | undefined;
|
|
311
311
|
systemId?: string;
|
|
312
|
-
input?:
|
|
312
|
+
input?: xstate135.InputFrom<T_1["logic"]> | undefined;
|
|
313
313
|
syncSnapshot?: boolean;
|
|
314
|
-
} & { [K_1 in
|
|
314
|
+
} & { [K_1 in xstate135.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate135.IsNotNever<xstate135.RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
315
315
|
src: "finalizeDocumentRequest";
|
|
316
|
-
logic:
|
|
316
|
+
logic: xstate135.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
317
317
|
processingType: string;
|
|
318
|
-
},
|
|
318
|
+
}, xstate135.EventObject>;
|
|
319
319
|
id: string | undefined;
|
|
320
320
|
} extends infer T_2 ? T_2 extends {
|
|
321
321
|
src: "finalizeDocumentRequest";
|
|
322
|
-
logic:
|
|
322
|
+
logic: xstate135.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
323
323
|
processingType: string;
|
|
324
|
-
},
|
|
324
|
+
}, xstate135.EventObject>;
|
|
325
325
|
id: string | undefined;
|
|
326
326
|
} ? T_2 extends {
|
|
327
327
|
src: TSrc;
|
|
328
|
-
} ?
|
|
328
|
+
} ? xstate135.ConditionalRequired<[options?: ({
|
|
329
329
|
id?: T_2["id"] | undefined;
|
|
330
330
|
systemId?: string;
|
|
331
|
-
input?:
|
|
331
|
+
input?: xstate135.InputFrom<T_2["logic"]> | undefined;
|
|
332
332
|
syncSnapshot?: boolean;
|
|
333
|
-
} & { [K_2 in
|
|
333
|
+
} & { [K_2 in xstate135.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate135.IsNotNever<xstate135.RequiredActorOptions<T_2>>> : never : never : never)): xstate135.ActorRefFromLogic<xstate135.GetConcreteByKey<xstate135.Values<{
|
|
334
334
|
initCamera: {
|
|
335
335
|
src: "initCamera";
|
|
336
|
-
logic:
|
|
336
|
+
logic: xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>;
|
|
337
337
|
id: string | undefined;
|
|
338
338
|
};
|
|
339
339
|
uploadDocument: {
|
|
340
340
|
src: "uploadDocument";
|
|
341
|
-
logic:
|
|
341
|
+
logic: xstate135.PromiseActorLogic<DocumentUploadResponse, {
|
|
342
342
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
343
343
|
processingType: string;
|
|
344
344
|
onProgress: (progress: number) => void;
|
|
345
|
-
},
|
|
345
|
+
}, xstate135.EventObject>;
|
|
346
346
|
id: string | undefined;
|
|
347
347
|
};
|
|
348
348
|
finalizeDocumentRequest: {
|
|
349
349
|
src: "finalizeDocumentRequest";
|
|
350
|
-
logic:
|
|
350
|
+
logic: xstate135.PromiseActorLogic<FinalizeDocumentResponse, {
|
|
351
351
|
processingType: string;
|
|
352
|
-
},
|
|
352
|
+
}, xstate135.EventObject>;
|
|
353
353
|
id: string | undefined;
|
|
354
354
|
};
|
|
355
355
|
}>, "src", TSrc>["logic"]>;
|
|
356
|
-
<TLogic extends
|
|
356
|
+
<TLogic extends xstate135.AnyActorLogic>(src: TLogic, ...[options]: xstate135.ConditionalRequired<[options?: ({
|
|
357
357
|
id?: never;
|
|
358
358
|
systemId?: string;
|
|
359
|
-
input?:
|
|
359
|
+
input?: xstate135.InputFrom<TLogic> | undefined;
|
|
360
360
|
syncSnapshot?: boolean;
|
|
361
|
-
} & { [K in
|
|
361
|
+
} & { [K in xstate135.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate135.IsNotNever<xstate135.RequiredLogicInput<TLogic>>>): xstate135.ActorRefFromLogic<TLogic>;
|
|
362
362
|
};
|
|
363
363
|
input: DocumentCaptureInput;
|
|
364
|
-
self:
|
|
364
|
+
self: xstate135.ActorRef<xstate135.MachineSnapshot<DocumentCaptureContext, {
|
|
365
365
|
type: "CAPTURE";
|
|
366
366
|
} | {
|
|
367
367
|
type: "FILE_SELECTED";
|
|
@@ -389,7 +389,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
389
389
|
type: "SKIP";
|
|
390
390
|
} | {
|
|
391
391
|
type: "CLOSE";
|
|
392
|
-
}, Record<string,
|
|
392
|
+
}, Record<string, xstate135.AnyActorRef | undefined>, xstate135.StateValue, string, unknown, any, any>, {
|
|
393
393
|
type: "CAPTURE";
|
|
394
394
|
} | {
|
|
395
395
|
type: "FILE_SELECTED";
|
|
@@ -417,7 +417,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
417
417
|
type: "SKIP";
|
|
418
418
|
} | {
|
|
419
419
|
type: "CLOSE";
|
|
420
|
-
},
|
|
420
|
+
}, xstate135.AnyEventObject>;
|
|
421
421
|
}) => {
|
|
422
422
|
config: {
|
|
423
423
|
processingType: DocumentType;
|
|
@@ -568,7 +568,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
568
568
|
} | {
|
|
569
569
|
type: "CLOSE";
|
|
570
570
|
};
|
|
571
|
-
self:
|
|
571
|
+
self: xstate135.ActorRef<xstate135.MachineSnapshot<DocumentCaptureContext, {
|
|
572
572
|
type: "CAPTURE";
|
|
573
573
|
} | {
|
|
574
574
|
type: "FILE_SELECTED";
|
|
@@ -596,7 +596,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
596
596
|
type: "SKIP";
|
|
597
597
|
} | {
|
|
598
598
|
type: "CLOSE";
|
|
599
|
-
}, Record<string,
|
|
599
|
+
}, Record<string, xstate135.AnyActorRef>, xstate135.StateValue, string, unknown, any, any>, {
|
|
600
600
|
type: "CAPTURE";
|
|
601
601
|
} | {
|
|
602
602
|
type: "FILE_SELECTED";
|
|
@@ -624,7 +624,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
624
624
|
type: "SKIP";
|
|
625
625
|
} | {
|
|
626
626
|
type: "CLOSE";
|
|
627
|
-
},
|
|
627
|
+
}, xstate135.AnyEventObject>;
|
|
628
628
|
}) => {
|
|
629
629
|
capturedDocument: CapturedDocument;
|
|
630
630
|
processingType: DocumentType;
|
|
@@ -719,7 +719,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
719
719
|
} | {
|
|
720
720
|
type: "CLOSE";
|
|
721
721
|
};
|
|
722
|
-
self:
|
|
722
|
+
self: xstate135.ActorRef<xstate135.MachineSnapshot<DocumentCaptureContext, {
|
|
723
723
|
type: "CAPTURE";
|
|
724
724
|
} | {
|
|
725
725
|
type: "FILE_SELECTED";
|
|
@@ -747,7 +747,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
747
747
|
type: "SKIP";
|
|
748
748
|
} | {
|
|
749
749
|
type: "CLOSE";
|
|
750
|
-
}, Record<string,
|
|
750
|
+
}, Record<string, xstate135.AnyActorRef>, xstate135.StateValue, string, unknown, any, any>, {
|
|
751
751
|
type: "CAPTURE";
|
|
752
752
|
} | {
|
|
753
753
|
type: "FILE_SELECTED";
|
|
@@ -775,7 +775,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
|
|
|
775
775
|
type: "SKIP";
|
|
776
776
|
} | {
|
|
777
777
|
type: "CLOSE";
|
|
778
|
-
},
|
|
778
|
+
}, xstate135.AnyEventObject>;
|
|
779
779
|
}) => {
|
|
780
780
|
processingType: DocumentType;
|
|
781
781
|
};
|
|
@@ -2,10 +2,10 @@ import { t as Manager } from "./Manager-N01KfnVA.js";
|
|
|
2
2
|
import "./Actor-Cz_KnN47.js";
|
|
3
3
|
import "./camera-BcVDCZxW.js";
|
|
4
4
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-DcqFYowa.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as xstate232 from "xstate";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
8
|
-
declare const documentUploadMachine:
|
|
8
|
+
declare const documentUploadMachine: xstate232.StateMachine<DocumentUploadContext, {
|
|
9
9
|
type: "START";
|
|
10
10
|
} | {
|
|
11
11
|
type: "CAPTURE";
|
|
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
18
18
|
} | {
|
|
19
19
|
type: "CLOSE";
|
|
20
20
|
}, {
|
|
21
|
-
[x: string]:
|
|
21
|
+
[x: string]: xstate232.ActorRefFromLogic<xstate232.PromiseActorLogic<MediaStream, void, xstate232.EventObject>> | xstate232.ActorRefFromLogic<xstate232.PromiseActorLogic<void, {
|
|
22
22
|
imageBase64: string;
|
|
23
23
|
documentType: string;
|
|
24
24
|
onProgress: (progress: number) => void;
|
|
25
|
-
},
|
|
26
|
-
},
|
|
25
|
+
}, xstate232.EventObject>> | undefined;
|
|
26
|
+
}, xstate232.Values<{
|
|
27
27
|
initCamera: {
|
|
28
28
|
src: "initCamera";
|
|
29
|
-
logic:
|
|
29
|
+
logic: xstate232.PromiseActorLogic<MediaStream, void, xstate232.EventObject>;
|
|
30
30
|
id: string | undefined;
|
|
31
31
|
};
|
|
32
32
|
uploadDocument: {
|
|
33
33
|
src: "uploadDocument";
|
|
34
|
-
logic:
|
|
34
|
+
logic: xstate232.PromiseActorLogic<void, {
|
|
35
35
|
imageBase64: string;
|
|
36
36
|
documentType: string;
|
|
37
37
|
onProgress: (progress: number) => void;
|
|
38
|
-
},
|
|
38
|
+
}, xstate232.EventObject>;
|
|
39
39
|
id: string | undefined;
|
|
40
40
|
};
|
|
41
|
-
}>,
|
|
42
|
-
setStream: {
|
|
43
|
-
type: "setStream";
|
|
44
|
-
params: xstate0.NonReducibleUnknown;
|
|
45
|
-
};
|
|
46
|
-
setImageAndClearError: {
|
|
47
|
-
type: "setImageAndClearError";
|
|
48
|
-
params: xstate0.NonReducibleUnknown;
|
|
49
|
-
};
|
|
50
|
-
setProgress: {
|
|
51
|
-
type: "setProgress";
|
|
52
|
-
params: xstate0.NonReducibleUnknown;
|
|
53
|
-
};
|
|
41
|
+
}>, xstate232.Values<{
|
|
54
42
|
setError: {
|
|
55
43
|
type: "setError";
|
|
56
|
-
params:
|
|
44
|
+
params: xstate232.NonReducibleUnknown;
|
|
57
45
|
};
|
|
58
46
|
clearError: {
|
|
59
47
|
type: "clearError";
|
|
60
|
-
params:
|
|
48
|
+
params: xstate232.NonReducibleUnknown;
|
|
49
|
+
};
|
|
50
|
+
setStream: {
|
|
51
|
+
type: "setStream";
|
|
52
|
+
params: xstate232.NonReducibleUnknown;
|
|
53
|
+
};
|
|
54
|
+
setProgress: {
|
|
55
|
+
type: "setProgress";
|
|
56
|
+
params: xstate232.NonReducibleUnknown;
|
|
61
57
|
};
|
|
62
58
|
stopStream: {
|
|
63
59
|
type: "stopStream";
|
|
64
|
-
params:
|
|
60
|
+
params: xstate232.NonReducibleUnknown;
|
|
61
|
+
};
|
|
62
|
+
setImageAndClearError: {
|
|
63
|
+
type: "setImageAndClearError";
|
|
64
|
+
params: xstate232.NonReducibleUnknown;
|
|
65
65
|
};
|
|
66
|
-
}>, never, never, "error" | "
|
|
66
|
+
}>, never, never, "error" | "idle" | "finished" | "closed" | "initCamera" | "capturing" | "uploading", string, DocumentUploadInput, xstate232.NonReducibleUnknown, xstate232.EventObject, xstate232.MetaObject, {
|
|
67
67
|
readonly id: "documentUpload";
|
|
68
68
|
readonly initial: "idle";
|
|
69
69
|
readonly context: ({
|
|
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
72
72
|
spawn: {
|
|
73
73
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
74
74
|
src: "initCamera";
|
|
75
|
-
logic:
|
|
75
|
+
logic: xstate232.PromiseActorLogic<MediaStream, void, xstate232.EventObject>;
|
|
76
76
|
id: string | undefined;
|
|
77
77
|
} extends infer T ? T extends {
|
|
78
78
|
src: "initCamera";
|
|
79
|
-
logic:
|
|
79
|
+
logic: xstate232.PromiseActorLogic<MediaStream, void, xstate232.EventObject>;
|
|
80
80
|
id: string | undefined;
|
|
81
81
|
} ? T extends {
|
|
82
82
|
src: TSrc;
|
|
83
|
-
} ?
|
|
83
|
+
} ? xstate232.ConditionalRequired<[options?: ({
|
|
84
84
|
id?: T["id"] | undefined;
|
|
85
85
|
systemId?: string;
|
|
86
|
-
input?:
|
|
86
|
+
input?: xstate232.InputFrom<T["logic"]> | undefined;
|
|
87
87
|
syncSnapshot?: boolean;
|
|
88
|
-
} & { [K in
|
|
88
|
+
} & { [K in xstate232.RequiredActorOptions<T>]: unknown }) | undefined], xstate232.IsNotNever<xstate232.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
89
89
|
src: "uploadDocument";
|
|
90
|
-
logic:
|
|
90
|
+
logic: xstate232.PromiseActorLogic<void, {
|
|
91
91
|
imageBase64: string;
|
|
92
92
|
documentType: string;
|
|
93
93
|
onProgress: (progress: number) => void;
|
|
94
|
-
},
|
|
94
|
+
}, xstate232.EventObject>;
|
|
95
95
|
id: string | undefined;
|
|
96
96
|
} extends infer T_1 ? T_1 extends {
|
|
97
97
|
src: "uploadDocument";
|
|
98
|
-
logic:
|
|
98
|
+
logic: xstate232.PromiseActorLogic<void, {
|
|
99
99
|
imageBase64: string;
|
|
100
100
|
documentType: string;
|
|
101
101
|
onProgress: (progress: number) => void;
|
|
102
|
-
},
|
|
102
|
+
}, xstate232.EventObject>;
|
|
103
103
|
id: string | undefined;
|
|
104
104
|
} ? T_1 extends {
|
|
105
105
|
src: TSrc;
|
|
106
|
-
} ?
|
|
106
|
+
} ? xstate232.ConditionalRequired<[options?: ({
|
|
107
107
|
id?: T_1["id"] | undefined;
|
|
108
108
|
systemId?: string;
|
|
109
|
-
input?:
|
|
109
|
+
input?: xstate232.InputFrom<T_1["logic"]> | undefined;
|
|
110
110
|
syncSnapshot?: boolean;
|
|
111
|
-
} & { [K_1 in
|
|
111
|
+
} & { [K_1 in xstate232.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate232.IsNotNever<xstate232.RequiredActorOptions<T_1>>> : never : never : never)): xstate232.ActorRefFromLogic<xstate232.GetConcreteByKey<xstate232.Values<{
|
|
112
112
|
initCamera: {
|
|
113
113
|
src: "initCamera";
|
|
114
|
-
logic:
|
|
114
|
+
logic: xstate232.PromiseActorLogic<MediaStream, void, xstate232.EventObject>;
|
|
115
115
|
id: string | undefined;
|
|
116
116
|
};
|
|
117
117
|
uploadDocument: {
|
|
118
118
|
src: "uploadDocument";
|
|
119
|
-
logic:
|
|
119
|
+
logic: xstate232.PromiseActorLogic<void, {
|
|
120
120
|
imageBase64: string;
|
|
121
121
|
documentType: string;
|
|
122
122
|
onProgress: (progress: number) => void;
|
|
123
|
-
},
|
|
123
|
+
}, xstate232.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
};
|
|
126
126
|
}>, "src", TSrc>["logic"]>;
|
|
127
|
-
<TLogic extends
|
|
127
|
+
<TLogic extends xstate232.AnyActorLogic>(src: TLogic, ...[options]: xstate232.ConditionalRequired<[options?: ({
|
|
128
128
|
id?: never;
|
|
129
129
|
systemId?: string;
|
|
130
|
-
input?:
|
|
130
|
+
input?: xstate232.InputFrom<TLogic> | undefined;
|
|
131
131
|
syncSnapshot?: boolean;
|
|
132
|
-
} & { [K in
|
|
132
|
+
} & { [K in xstate232.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate232.IsNotNever<xstate232.RequiredLogicInput<TLogic>>>): xstate232.ActorRefFromLogic<TLogic>;
|
|
133
133
|
};
|
|
134
134
|
input: DocumentUploadInput;
|
|
135
|
-
self:
|
|
135
|
+
self: xstate232.ActorRef<xstate232.MachineSnapshot<DocumentUploadContext, {
|
|
136
136
|
type: "START";
|
|
137
137
|
} | {
|
|
138
138
|
type: "CAPTURE";
|
|
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
144
144
|
type: "RETRY";
|
|
145
145
|
} | {
|
|
146
146
|
type: "CLOSE";
|
|
147
|
-
}, Record<string,
|
|
147
|
+
}, Record<string, xstate232.AnyActorRef | undefined>, xstate232.StateValue, string, unknown, any, any>, {
|
|
148
148
|
type: "START";
|
|
149
149
|
} | {
|
|
150
150
|
type: "CAPTURE";
|
|
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
156
156
|
type: "RETRY";
|
|
157
157
|
} | {
|
|
158
158
|
type: "CLOSE";
|
|
159
|
-
},
|
|
159
|
+
}, xstate232.AnyEventObject>;
|
|
160
160
|
}) => {
|
|
161
161
|
config: DocumentUploadConfig;
|
|
162
162
|
stream: undefined;
|
|
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "CLOSE";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate232.ActorRef<xstate232.MachineSnapshot<DocumentUploadContext, {
|
|
230
230
|
type: "START";
|
|
231
231
|
} | {
|
|
232
232
|
type: "CAPTURE";
|
|
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
238
238
|
type: "RETRY";
|
|
239
239
|
} | {
|
|
240
240
|
type: "CLOSE";
|
|
241
|
-
}, Record<string,
|
|
241
|
+
}, Record<string, xstate232.AnyActorRef>, xstate232.StateValue, string, unknown, any, any>, {
|
|
242
242
|
type: "START";
|
|
243
243
|
} | {
|
|
244
244
|
type: "CAPTURE";
|
|
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
|
|
|
250
250
|
type: "RETRY";
|
|
251
251
|
} | {
|
|
252
252
|
type: "CLOSE";
|
|
253
|
-
},
|
|
253
|
+
}, xstate232.AnyEventObject>;
|
|
254
254
|
}) => {
|
|
255
255
|
imageBase64: string;
|
|
256
256
|
documentType: string;
|
|
@@ -3,7 +3,7 @@ import "./Actor-Cz_KnN47.js";
|
|
|
3
3
|
import "./camera-BcVDCZxW.js";
|
|
4
4
|
import "./types-DcqFYowa.js";
|
|
5
5
|
import { i as RegulationTypes } from "./types-DufUK-_f.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as xstate67 from "xstate";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/mandatory-consent/types.d.ts
|
|
9
9
|
type MandatoryConsentConfig = {
|
|
@@ -30,7 +30,7 @@ type MandatoryConsentContext = {
|
|
|
30
30
|
type MandatoryConsentInput = {
|
|
31
31
|
config: MandatoryConsentConfig;
|
|
32
32
|
};
|
|
33
|
-
declare const mandatoryConsentMachine:
|
|
33
|
+
declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentContext, {
|
|
34
34
|
type: "LOAD";
|
|
35
35
|
} | {
|
|
36
36
|
type: "TOGGLE";
|
|
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate525.StateMachine<MandatoryConsentCo
|
|
|
43
43
|
} | {
|
|
44
44
|
type: "RESET";
|
|
45
45
|
}, {
|
|
46
|
-
[x: string]:
|
|
46
|
+
[x: string]: xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
47
47
|
config: MandatoryConsentConfig;
|
|
48
|
-
},
|
|
48
|
+
}, xstate67.EventObject>> | xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<void, {
|
|
49
49
|
consentId: string;
|
|
50
50
|
isSigned: boolean;
|
|
51
|
-
},
|
|
52
|
-
},
|
|
51
|
+
}, xstate67.EventObject>> | undefined;
|
|
52
|
+
}, xstate67.Values<{
|
|
53
53
|
fetchConsent: {
|
|
54
54
|
src: "fetchConsent";
|
|
55
|
-
logic:
|
|
55
|
+
logic: xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
56
56
|
config: MandatoryConsentConfig;
|
|
57
|
-
},
|
|
57
|
+
}, xstate67.EventObject>;
|
|
58
58
|
id: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
submitConsent: {
|
|
61
61
|
src: "submitConsent";
|
|
62
|
-
logic:
|
|
62
|
+
logic: xstate67.PromiseActorLogic<void, {
|
|
63
63
|
consentId: string;
|
|
64
64
|
isSigned: boolean;
|
|
65
|
-
},
|
|
65
|
+
}, xstate67.EventObject>;
|
|
66
66
|
id: string | undefined;
|
|
67
67
|
};
|
|
68
|
-
}>,
|
|
68
|
+
}>, xstate67.Values<{
|
|
69
69
|
setError: {
|
|
70
70
|
type: "setError";
|
|
71
|
-
params:
|
|
71
|
+
params: xstate67.NonReducibleUnknown;
|
|
72
72
|
};
|
|
73
73
|
clearError: {
|
|
74
74
|
type: "clearError";
|
|
75
|
-
params:
|
|
75
|
+
params: xstate67.NonReducibleUnknown;
|
|
76
76
|
};
|
|
77
77
|
resetContext: {
|
|
78
78
|
type: "resetContext";
|
|
79
|
-
params:
|
|
79
|
+
params: xstate67.NonReducibleUnknown;
|
|
80
80
|
};
|
|
81
81
|
setConsent: {
|
|
82
82
|
type: "setConsent";
|
|
83
|
-
params:
|
|
83
|
+
params: xstate67.NonReducibleUnknown;
|
|
84
84
|
};
|
|
85
85
|
toggleSigned: {
|
|
86
86
|
type: "toggleSigned";
|
|
87
|
-
params:
|
|
87
|
+
params: xstate67.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
}>, {
|
|
90
90
|
type: "canSubmit";
|
|
91
91
|
params: unknown;
|
|
92
|
-
}, never, "error" | "idle" | "
|
|
92
|
+
}, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished" | "closed", string, MandatoryConsentInput, xstate67.NonReducibleUnknown, xstate67.EventObject, xstate67.MetaObject, {
|
|
93
93
|
readonly id: "mandatoryConsent";
|
|
94
94
|
readonly initial: "idle";
|
|
95
95
|
readonly context: ({
|
|
@@ -98,70 +98,70 @@ declare const mandatoryConsentMachine: xstate525.StateMachine<MandatoryConsentCo
|
|
|
98
98
|
spawn: {
|
|
99
99
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
100
100
|
src: "fetchConsent";
|
|
101
|
-
logic:
|
|
101
|
+
logic: xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
102
102
|
config: MandatoryConsentConfig;
|
|
103
|
-
},
|
|
103
|
+
}, xstate67.EventObject>;
|
|
104
104
|
id: string | undefined;
|
|
105
105
|
} extends infer T ? T extends {
|
|
106
106
|
src: "fetchConsent";
|
|
107
|
-
logic:
|
|
107
|
+
logic: xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
108
108
|
config: MandatoryConsentConfig;
|
|
109
|
-
},
|
|
109
|
+
}, xstate67.EventObject>;
|
|
110
110
|
id: string | undefined;
|
|
111
111
|
} ? T extends {
|
|
112
112
|
src: TSrc;
|
|
113
|
-
} ?
|
|
113
|
+
} ? xstate67.ConditionalRequired<[options?: ({
|
|
114
114
|
id?: T["id"] | undefined;
|
|
115
115
|
systemId?: string;
|
|
116
|
-
input?:
|
|
116
|
+
input?: xstate67.InputFrom<T["logic"]> | undefined;
|
|
117
117
|
syncSnapshot?: boolean;
|
|
118
|
-
} & { [K in
|
|
118
|
+
} & { [K in xstate67.RequiredActorOptions<T>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
119
119
|
src: "submitConsent";
|
|
120
|
-
logic:
|
|
120
|
+
logic: xstate67.PromiseActorLogic<void, {
|
|
121
121
|
consentId: string;
|
|
122
122
|
isSigned: boolean;
|
|
123
|
-
},
|
|
123
|
+
}, xstate67.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
} extends infer T_1 ? T_1 extends {
|
|
126
126
|
src: "submitConsent";
|
|
127
|
-
logic:
|
|
127
|
+
logic: xstate67.PromiseActorLogic<void, {
|
|
128
128
|
consentId: string;
|
|
129
129
|
isSigned: boolean;
|
|
130
|
-
},
|
|
130
|
+
}, xstate67.EventObject>;
|
|
131
131
|
id: string | undefined;
|
|
132
132
|
} ? T_1 extends {
|
|
133
133
|
src: TSrc;
|
|
134
|
-
} ?
|
|
134
|
+
} ? xstate67.ConditionalRequired<[options?: ({
|
|
135
135
|
id?: T_1["id"] | undefined;
|
|
136
136
|
systemId?: string;
|
|
137
|
-
input?:
|
|
137
|
+
input?: xstate67.InputFrom<T_1["logic"]> | undefined;
|
|
138
138
|
syncSnapshot?: boolean;
|
|
139
|
-
} & { [K_1 in
|
|
139
|
+
} & { [K_1 in xstate67.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T_1>>> : never : never : never)): xstate67.ActorRefFromLogic<xstate67.GetConcreteByKey<xstate67.Values<{
|
|
140
140
|
fetchConsent: {
|
|
141
141
|
src: "fetchConsent";
|
|
142
|
-
logic:
|
|
142
|
+
logic: xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
143
143
|
config: MandatoryConsentConfig;
|
|
144
|
-
},
|
|
144
|
+
}, xstate67.EventObject>;
|
|
145
145
|
id: string | undefined;
|
|
146
146
|
};
|
|
147
147
|
submitConsent: {
|
|
148
148
|
src: "submitConsent";
|
|
149
|
-
logic:
|
|
149
|
+
logic: xstate67.PromiseActorLogic<void, {
|
|
150
150
|
consentId: string;
|
|
151
151
|
isSigned: boolean;
|
|
152
|
-
},
|
|
152
|
+
}, xstate67.EventObject>;
|
|
153
153
|
id: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
}>, "src", TSrc>["logic"]>;
|
|
156
|
-
<TLogic extends
|
|
156
|
+
<TLogic extends xstate67.AnyActorLogic>(src: TLogic, ...[options]: xstate67.ConditionalRequired<[options?: ({
|
|
157
157
|
id?: never;
|
|
158
158
|
systemId?: string;
|
|
159
|
-
input?:
|
|
159
|
+
input?: xstate67.InputFrom<TLogic> | undefined;
|
|
160
160
|
syncSnapshot?: boolean;
|
|
161
|
-
} & { [K in
|
|
161
|
+
} & { [K in xstate67.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredLogicInput<TLogic>>>): xstate67.ActorRefFromLogic<TLogic>;
|
|
162
162
|
};
|
|
163
163
|
input: MandatoryConsentInput;
|
|
164
|
-
self:
|
|
164
|
+
self: xstate67.ActorRef<xstate67.MachineSnapshot<MandatoryConsentContext, {
|
|
165
165
|
type: "LOAD";
|
|
166
166
|
} | {
|
|
167
167
|
type: "TOGGLE";
|
|
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate525.StateMachine<MandatoryConsentCo
|
|
|
173
173
|
type: "RETRY";
|
|
174
174
|
} | {
|
|
175
175
|
type: "RESET";
|
|
176
|
-
}, Record<string,
|
|
176
|
+
}, Record<string, xstate67.AnyActorRef | undefined>, xstate67.StateValue, string, unknown, any, any>, {
|
|
177
177
|
type: "LOAD";
|
|
178
178
|
} | {
|
|
179
179
|
type: "TOGGLE";
|
|
@@ -185,7 +185,7 @@ declare const mandatoryConsentMachine: xstate525.StateMachine<MandatoryConsentCo
|
|
|
185
185
|
type: "RETRY";
|
|
186
186
|
} | {
|
|
187
187
|
type: "RESET";
|
|
188
|
-
},
|
|
188
|
+
}, xstate67.AnyEventObject>;
|
|
189
189
|
}) => {
|
|
190
190
|
config: MandatoryConsentConfig;
|
|
191
191
|
consent: undefined;
|
|
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate525.StateMachine<MandatoryConsentCo
|
|
|
222
222
|
} | {
|
|
223
223
|
type: "RESET";
|
|
224
224
|
};
|
|
225
|
-
self:
|
|
225
|
+
self: xstate67.ActorRef<xstate67.MachineSnapshot<MandatoryConsentContext, {
|
|
226
226
|
type: "LOAD";
|
|
227
227
|
} | {
|
|
228
228
|
type: "TOGGLE";
|
|
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate525.StateMachine<MandatoryConsentCo
|
|
|
234
234
|
type: "RETRY";
|
|
235
235
|
} | {
|
|
236
236
|
type: "RESET";
|
|
237
|
-
}, Record<string,
|
|
237
|
+
}, Record<string, xstate67.AnyActorRef>, xstate67.StateValue, string, unknown, any, any>, {
|
|
238
238
|
type: "LOAD";
|
|
239
239
|
} | {
|
|
240
240
|
type: "TOGGLE";
|
|
@@ -246,7 +246,7 @@ declare const mandatoryConsentMachine: xstate525.StateMachine<MandatoryConsentCo
|
|
|
246
246
|
type: "RETRY";
|
|
247
247
|
} | {
|
|
248
248
|
type: "RESET";
|
|
249
|
-
},
|
|
249
|
+
}, xstate67.AnyEventObject>;
|
|
250
250
|
}) => {
|
|
251
251
|
config: MandatoryConsentConfig;
|
|
252
252
|
};
|
|
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate525.StateMachine<MandatoryConsentCo
|
|
|
299
299
|
} | {
|
|
300
300
|
type: "RESET";
|
|
301
301
|
};
|
|
302
|
-
self:
|
|
302
|
+
self: xstate67.ActorRef<xstate67.MachineSnapshot<MandatoryConsentContext, {
|
|
303
303
|
type: "LOAD";
|
|
304
304
|
} | {
|
|
305
305
|
type: "TOGGLE";
|
|
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate525.StateMachine<MandatoryConsentCo
|
|
|
311
311
|
type: "RETRY";
|
|
312
312
|
} | {
|
|
313
313
|
type: "RESET";
|
|
314
|
-
}, Record<string,
|
|
314
|
+
}, Record<string, xstate67.AnyActorRef>, xstate67.StateValue, string, unknown, any, any>, {
|
|
315
315
|
type: "LOAD";
|
|
316
316
|
} | {
|
|
317
317
|
type: "TOGGLE";
|
|
@@ -323,7 +323,7 @@ declare const mandatoryConsentMachine: xstate525.StateMachine<MandatoryConsentCo
|
|
|
323
323
|
type: "RETRY";
|
|
324
324
|
} | {
|
|
325
325
|
type: "RESET";
|
|
326
|
-
},
|
|
326
|
+
}, xstate67.AnyEventObject>;
|
|
327
327
|
}) => {
|
|
328
328
|
consentId: string;
|
|
329
329
|
isSigned: boolean;
|