@incodetech/core 0.0.0-dev-20260407-ebd92aa → 0.0.0-dev-20260407-4ad99b2

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 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 xstate160 from "xstate";
3
+ import * as xstate525 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: xstate160.StateMachine<ConsentContext, {
39
+ declare const consentMachine: xstate525.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]: xstate160.ActorRefFromLogic<xstate160.PromiseActorLogic<FetchCombinedConsentResponse, {
51
+ [x: string]: xstate525.ActorRefFromLogic<xstate525.PromiseActorLogic<FetchCombinedConsentResponse, {
52
52
  consentId: string;
53
- }, xstate160.EventObject>> | xstate160.ActorRefFromLogic<xstate160.PromiseActorLogic<void, {
53
+ }, xstate525.EventObject>> | xstate525.ActorRefFromLogic<xstate525.PromiseActorLogic<void, {
54
54
  languageConsentId: string;
55
55
  checkboxes: ConsentCheckbox[];
56
- }, xstate160.EventObject>> | undefined;
57
- }, xstate160.Values<{
56
+ }, xstate525.EventObject>> | undefined;
57
+ }, xstate525.Values<{
58
58
  fetchConsent: {
59
59
  src: "fetchConsent";
60
- logic: xstate160.PromiseActorLogic<FetchCombinedConsentResponse, {
60
+ logic: xstate525.PromiseActorLogic<FetchCombinedConsentResponse, {
61
61
  consentId: string;
62
- }, xstate160.EventObject>;
62
+ }, xstate525.EventObject>;
63
63
  id: string | undefined;
64
64
  };
65
65
  submitConsent: {
66
66
  src: "submitConsent";
67
- logic: xstate160.PromiseActorLogic<void, {
67
+ logic: xstate525.PromiseActorLogic<void, {
68
68
  languageConsentId: string;
69
69
  checkboxes: ConsentCheckbox[];
70
- }, xstate160.EventObject>;
70
+ }, xstate525.EventObject>;
71
71
  id: string | undefined;
72
72
  };
73
- }>, xstate160.Values<{
73
+ }>, xstate525.Values<{
74
74
  setError: {
75
75
  type: "setError";
76
- params: xstate160.NonReducibleUnknown;
76
+ params: xstate525.NonReducibleUnknown;
77
77
  };
78
78
  clearError: {
79
79
  type: "clearError";
80
- params: xstate160.NonReducibleUnknown;
80
+ params: xstate525.NonReducibleUnknown;
81
+ };
82
+ resetContext: {
83
+ type: "resetContext";
84
+ params: xstate525.NonReducibleUnknown;
81
85
  };
82
86
  setConsentData: {
83
87
  type: "setConsentData";
84
- params: xstate160.NonReducibleUnknown;
88
+ params: xstate525.NonReducibleUnknown;
85
89
  };
86
90
  toggleCheckbox: {
87
91
  type: "toggleCheckbox";
88
- params: xstate160.NonReducibleUnknown;
89
- };
90
- resetContext: {
91
- type: "resetContext";
92
- params: xstate160.NonReducibleUnknown;
92
+ params: xstate525.NonReducibleUnknown;
93
93
  };
94
94
  }>, {
95
95
  type: "canSubmit";
96
96
  params: unknown;
97
- }, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate160.NonReducibleUnknown, xstate160.EventObject, xstate160.MetaObject, {
97
+ }, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished", string, ConsentInput, xstate525.NonReducibleUnknown, xstate525.EventObject, xstate525.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: xstate160.PromiseActorLogic<FetchCombinedConsentResponse, {
106
+ logic: xstate525.PromiseActorLogic<FetchCombinedConsentResponse, {
107
107
  consentId: string;
108
- }, xstate160.EventObject>;
108
+ }, xstate525.EventObject>;
109
109
  id: string | undefined;
110
110
  } extends infer T ? T extends {
111
111
  src: "fetchConsent";
112
- logic: xstate160.PromiseActorLogic<FetchCombinedConsentResponse, {
112
+ logic: xstate525.PromiseActorLogic<FetchCombinedConsentResponse, {
113
113
  consentId: string;
114
- }, xstate160.EventObject>;
114
+ }, xstate525.EventObject>;
115
115
  id: string | undefined;
116
116
  } ? T extends {
117
117
  src: TSrc;
118
- } ? xstate160.ConditionalRequired<[options?: ({
118
+ } ? xstate525.ConditionalRequired<[options?: ({
119
119
  id?: T["id"] | undefined;
120
120
  systemId?: string;
121
- input?: xstate160.InputFrom<T["logic"]> | undefined;
121
+ input?: xstate525.InputFrom<T["logic"]> | undefined;
122
122
  syncSnapshot?: boolean;
123
- } & { [K in xstate160.RequiredActorOptions<T>]: unknown }) | undefined], xstate160.IsNotNever<xstate160.RequiredActorOptions<T>>> : never : never : never) | ({
123
+ } & { [K in xstate525.RequiredActorOptions<T>]: unknown }) | undefined], xstate525.IsNotNever<xstate525.RequiredActorOptions<T>>> : never : never : never) | ({
124
124
  src: "submitConsent";
125
- logic: xstate160.PromiseActorLogic<void, {
125
+ logic: xstate525.PromiseActorLogic<void, {
126
126
  languageConsentId: string;
127
127
  checkboxes: ConsentCheckbox[];
128
- }, xstate160.EventObject>;
128
+ }, xstate525.EventObject>;
129
129
  id: string | undefined;
130
130
  } extends infer T_1 ? T_1 extends {
131
131
  src: "submitConsent";
132
- logic: xstate160.PromiseActorLogic<void, {
132
+ logic: xstate525.PromiseActorLogic<void, {
133
133
  languageConsentId: string;
134
134
  checkboxes: ConsentCheckbox[];
135
- }, xstate160.EventObject>;
135
+ }, xstate525.EventObject>;
136
136
  id: string | undefined;
137
137
  } ? T_1 extends {
138
138
  src: TSrc;
139
- } ? xstate160.ConditionalRequired<[options?: ({
139
+ } ? xstate525.ConditionalRequired<[options?: ({
140
140
  id?: T_1["id"] | undefined;
141
141
  systemId?: string;
142
- input?: xstate160.InputFrom<T_1["logic"]> | undefined;
142
+ input?: xstate525.InputFrom<T_1["logic"]> | undefined;
143
143
  syncSnapshot?: boolean;
144
- } & { [K_1 in xstate160.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate160.IsNotNever<xstate160.RequiredActorOptions<T_1>>> : never : never : never)): xstate160.ActorRefFromLogic<xstate160.GetConcreteByKey<xstate160.Values<{
144
+ } & { [K_1 in xstate525.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate525.IsNotNever<xstate525.RequiredActorOptions<T_1>>> : never : never : never)): xstate525.ActorRefFromLogic<xstate525.GetConcreteByKey<xstate525.Values<{
145
145
  fetchConsent: {
146
146
  src: "fetchConsent";
147
- logic: xstate160.PromiseActorLogic<FetchCombinedConsentResponse, {
147
+ logic: xstate525.PromiseActorLogic<FetchCombinedConsentResponse, {
148
148
  consentId: string;
149
- }, xstate160.EventObject>;
149
+ }, xstate525.EventObject>;
150
150
  id: string | undefined;
151
151
  };
152
152
  submitConsent: {
153
153
  src: "submitConsent";
154
- logic: xstate160.PromiseActorLogic<void, {
154
+ logic: xstate525.PromiseActorLogic<void, {
155
155
  languageConsentId: string;
156
156
  checkboxes: ConsentCheckbox[];
157
- }, xstate160.EventObject>;
157
+ }, xstate525.EventObject>;
158
158
  id: string | undefined;
159
159
  };
160
160
  }>, "src", TSrc>["logic"]>;
161
- <TLogic extends xstate160.AnyActorLogic>(src: TLogic, ...[options]: xstate160.ConditionalRequired<[options?: ({
161
+ <TLogic extends xstate525.AnyActorLogic>(src: TLogic, ...[options]: xstate525.ConditionalRequired<[options?: ({
162
162
  id?: never;
163
163
  systemId?: string;
164
- input?: xstate160.InputFrom<TLogic> | undefined;
164
+ input?: xstate525.InputFrom<TLogic> | undefined;
165
165
  syncSnapshot?: boolean;
166
- } & { [K in xstate160.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate160.IsNotNever<xstate160.RequiredLogicInput<TLogic>>>): xstate160.ActorRefFromLogic<TLogic>;
166
+ } & { [K in xstate525.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate525.IsNotNever<xstate525.RequiredLogicInput<TLogic>>>): xstate525.ActorRefFromLogic<TLogic>;
167
167
  };
168
168
  input: ConsentInput;
169
- self: xstate160.ActorRef<xstate160.MachineSnapshot<ConsentContext, {
169
+ self: xstate525.ActorRef<xstate525.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, xstate160.AnyActorRef | undefined>, xstate160.StateValue, string, unknown, any, any>, {
180
+ }, Record<string, xstate525.AnyActorRef | undefined>, xstate525.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
- }, xstate160.AnyEventObject>;
191
+ }, xstate525.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: xstate160.ActorRef<xstate160.MachineSnapshot<ConsentContext, {
229
+ self: xstate525.ActorRef<xstate525.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, xstate160.AnyActorRef>, xstate160.StateValue, string, unknown, any, any>, {
240
+ }, Record<string, xstate525.AnyActorRef>, xstate525.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
- }, xstate160.AnyEventObject>;
251
+ }, xstate525.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: xstate160.ActorRef<xstate160.MachineSnapshot<ConsentContext, {
300
+ self: xstate525.ActorRef<xstate525.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, xstate160.AnyActorRef>, xstate160.StateValue, string, unknown, any, any>, {
311
+ }, Record<string, xstate525.AnyActorRef>, xstate525.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
- }, xstate160.AnyEventObject>;
322
+ }, xstate525.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 xstate63 from "xstate";
4
+ import * as xstate428 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: xstate63.StateMachine<DocumentCaptureContext, {
85
+ declare const documentCaptureMachine: xstate428.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]: xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<DocumentUploadResponse, {
114
+ [x: string]: xstate428.ActorRefFromLogic<xstate428.PromiseActorLogic<MediaStream, void, xstate428.EventObject>> | xstate428.ActorRefFromLogic<xstate428.PromiseActorLogic<DocumentUploadResponse, {
115
115
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
116
116
  processingType: string;
117
117
  onProgress: (progress: number) => void;
118
- }, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
118
+ }, xstate428.EventObject>> | xstate428.ActorRefFromLogic<xstate428.PromiseActorLogic<FinalizeDocumentResponse, {
119
119
  processingType: string;
120
- }, xstate63.EventObject>> | undefined;
121
- }, xstate63.Values<{
120
+ }, xstate428.EventObject>> | undefined;
121
+ }, xstate428.Values<{
122
122
  initCamera: {
123
123
  src: "initCamera";
124
- logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
124
+ logic: xstate428.PromiseActorLogic<MediaStream, void, xstate428.EventObject>;
125
125
  id: string | undefined;
126
126
  };
127
127
  uploadDocument: {
128
128
  src: "uploadDocument";
129
- logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
129
+ logic: xstate428.PromiseActorLogic<DocumentUploadResponse, {
130
130
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
131
131
  processingType: string;
132
132
  onProgress: (progress: number) => void;
133
- }, xstate63.EventObject>;
133
+ }, xstate428.EventObject>;
134
134
  id: string | undefined;
135
135
  };
136
136
  finalizeDocumentRequest: {
137
137
  src: "finalizeDocumentRequest";
138
- logic: xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
138
+ logic: xstate428.PromiseActorLogic<FinalizeDocumentResponse, {
139
139
  processingType: string;
140
- }, xstate63.EventObject>;
140
+ }, xstate428.EventObject>;
141
141
  id: string | undefined;
142
142
  };
143
- }>, xstate63.Values<{
143
+ }>, xstate428.Values<{
144
+ clearError: {
145
+ type: "clearError";
146
+ params: xstate428.NonReducibleUnknown;
147
+ };
144
148
  setStream: {
145
149
  type: "setStream";
146
- params: xstate63.NonReducibleUnknown;
150
+ params: xstate428.NonReducibleUnknown;
147
151
  };
148
152
  setProgress: {
149
153
  type: "setProgress";
150
- params: xstate63.NonReducibleUnknown;
151
- };
152
- clearError: {
153
- type: "clearError";
154
- params: xstate63.NonReducibleUnknown;
154
+ params: xstate428.NonReducibleUnknown;
155
155
  };
156
156
  stopStream: {
157
157
  type: "stopStream";
158
- params: xstate63.NonReducibleUnknown;
158
+ params: xstate428.NonReducibleUnknown;
159
159
  };
160
160
  setCapturedDocument: {
161
161
  type: "setCapturedDocument";
162
- params: xstate63.NonReducibleUnknown;
162
+ params: xstate428.NonReducibleUnknown;
163
163
  };
164
164
  setFileTooLargeError: {
165
165
  type: "setFileTooLargeError";
166
- params: xstate63.NonReducibleUnknown;
166
+ params: xstate428.NonReducibleUnknown;
167
167
  };
168
168
  setUploadError: {
169
169
  type: "setUploadError";
170
- params: xstate63.NonReducibleUnknown;
170
+ params: xstate428.NonReducibleUnknown;
171
171
  };
172
172
  setFinalizeError: {
173
173
  type: "setFinalizeError";
174
- params: xstate63.NonReducibleUnknown;
174
+ params: xstate428.NonReducibleUnknown;
175
175
  };
176
176
  decrementAttemptsRemaining: {
177
177
  type: "decrementAttemptsRemaining";
178
- params: xstate63.NonReducibleUnknown;
178
+ params: xstate428.NonReducibleUnknown;
179
179
  };
180
180
  setCaptureMethodFile: {
181
181
  type: "setCaptureMethodFile";
182
- params: xstate63.NonReducibleUnknown;
182
+ params: xstate428.NonReducibleUnknown;
183
183
  };
184
184
  setCaptureMethodCamera: {
185
185
  type: "setCaptureMethodCamera";
186
- params: xstate63.NonReducibleUnknown;
186
+ params: xstate428.NonReducibleUnknown;
187
187
  };
188
188
  setCaptureMethodGallery: {
189
189
  type: "setCaptureMethodGallery";
190
- params: xstate63.NonReducibleUnknown;
190
+ params: xstate428.NonReducibleUnknown;
191
191
  };
192
192
  clearCapturedDocument: {
193
193
  type: "clearCapturedDocument";
194
- params: xstate63.NonReducibleUnknown;
194
+ params: xstate428.NonReducibleUnknown;
195
195
  };
196
196
  clearCapturedDocumentGalleryRetake: {
197
197
  type: "clearCapturedDocumentGalleryRetake";
198
- params: xstate63.NonReducibleUnknown;
198
+ params: xstate428.NonReducibleUnknown;
199
199
  };
200
200
  setNextPageType: {
201
201
  type: "setNextPageType";
202
- params: xstate63.NonReducibleUnknown;
202
+ params: xstate428.NonReducibleUnknown;
203
203
  };
204
204
  clearForNextPage: {
205
205
  type: "clearForNextPage";
206
- params: xstate63.NonReducibleUnknown;
206
+ params: xstate428.NonReducibleUnknown;
207
207
  };
208
208
  resetProgress: {
209
209
  type: "resetProgress";
210
- params: xstate63.NonReducibleUnknown;
210
+ params: xstate428.NonReducibleUnknown;
211
211
  };
212
- }>, xstate63.Values<{
212
+ }>, xstate428.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, "initCamera" | "capturing" | "closed" | "uploading" | "finished" | "tutorial" | "preview" | "failure" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate63.NonReducibleUnknown, xstate63.EventObject, xstate63.MetaObject, {
269
+ }>, never, "closed" | "finished" | "initCamera" | "capturing" | "uploading" | "tutorial" | "preview" | "failure" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate428.NonReducibleUnknown, xstate428.EventObject, xstate428.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: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
278
+ logic: xstate428.PromiseActorLogic<MediaStream, void, xstate428.EventObject>;
279
279
  id: string | undefined;
280
280
  } extends infer T ? T extends {
281
281
  src: "initCamera";
282
- logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
282
+ logic: xstate428.PromiseActorLogic<MediaStream, void, xstate428.EventObject>;
283
283
  id: string | undefined;
284
284
  } ? T extends {
285
285
  src: TSrc;
286
- } ? xstate63.ConditionalRequired<[options?: ({
286
+ } ? xstate428.ConditionalRequired<[options?: ({
287
287
  id?: T["id"] | undefined;
288
288
  systemId?: string;
289
- input?: xstate63.InputFrom<T["logic"]> | undefined;
289
+ input?: xstate428.InputFrom<T["logic"]> | undefined;
290
290
  syncSnapshot?: boolean;
291
- } & { [K in xstate63.RequiredActorOptions<T>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T>>> : never : never : never) | ({
291
+ } & { [K in xstate428.RequiredActorOptions<T>]: unknown }) | undefined], xstate428.IsNotNever<xstate428.RequiredActorOptions<T>>> : never : never : never) | ({
292
292
  src: "uploadDocument";
293
- logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
293
+ logic: xstate428.PromiseActorLogic<DocumentUploadResponse, {
294
294
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
295
295
  processingType: string;
296
296
  onProgress: (progress: number) => void;
297
- }, xstate63.EventObject>;
297
+ }, xstate428.EventObject>;
298
298
  id: string | undefined;
299
299
  } extends infer T_1 ? T_1 extends {
300
300
  src: "uploadDocument";
301
- logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
301
+ logic: xstate428.PromiseActorLogic<DocumentUploadResponse, {
302
302
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
303
303
  processingType: string;
304
304
  onProgress: (progress: number) => void;
305
- }, xstate63.EventObject>;
305
+ }, xstate428.EventObject>;
306
306
  id: string | undefined;
307
307
  } ? T_1 extends {
308
308
  src: TSrc;
309
- } ? xstate63.ConditionalRequired<[options?: ({
309
+ } ? xstate428.ConditionalRequired<[options?: ({
310
310
  id?: T_1["id"] | undefined;
311
311
  systemId?: string;
312
- input?: xstate63.InputFrom<T_1["logic"]> | undefined;
312
+ input?: xstate428.InputFrom<T_1["logic"]> | undefined;
313
313
  syncSnapshot?: boolean;
314
- } & { [K_1 in xstate63.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_1>>> : never : never : never) | ({
314
+ } & { [K_1 in xstate428.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate428.IsNotNever<xstate428.RequiredActorOptions<T_1>>> : never : never : never) | ({
315
315
  src: "finalizeDocumentRequest";
316
- logic: xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
316
+ logic: xstate428.PromiseActorLogic<FinalizeDocumentResponse, {
317
317
  processingType: string;
318
- }, xstate63.EventObject>;
318
+ }, xstate428.EventObject>;
319
319
  id: string | undefined;
320
320
  } extends infer T_2 ? T_2 extends {
321
321
  src: "finalizeDocumentRequest";
322
- logic: xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
322
+ logic: xstate428.PromiseActorLogic<FinalizeDocumentResponse, {
323
323
  processingType: string;
324
- }, xstate63.EventObject>;
324
+ }, xstate428.EventObject>;
325
325
  id: string | undefined;
326
326
  } ? T_2 extends {
327
327
  src: TSrc;
328
- } ? xstate63.ConditionalRequired<[options?: ({
328
+ } ? xstate428.ConditionalRequired<[options?: ({
329
329
  id?: T_2["id"] | undefined;
330
330
  systemId?: string;
331
- input?: xstate63.InputFrom<T_2["logic"]> | undefined;
331
+ input?: xstate428.InputFrom<T_2["logic"]> | undefined;
332
332
  syncSnapshot?: boolean;
333
- } & { [K_2 in xstate63.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_2>>> : never : never : never)): xstate63.ActorRefFromLogic<xstate63.GetConcreteByKey<xstate63.Values<{
333
+ } & { [K_2 in xstate428.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate428.IsNotNever<xstate428.RequiredActorOptions<T_2>>> : never : never : never)): xstate428.ActorRefFromLogic<xstate428.GetConcreteByKey<xstate428.Values<{
334
334
  initCamera: {
335
335
  src: "initCamera";
336
- logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
336
+ logic: xstate428.PromiseActorLogic<MediaStream, void, xstate428.EventObject>;
337
337
  id: string | undefined;
338
338
  };
339
339
  uploadDocument: {
340
340
  src: "uploadDocument";
341
- logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
341
+ logic: xstate428.PromiseActorLogic<DocumentUploadResponse, {
342
342
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
343
343
  processingType: string;
344
344
  onProgress: (progress: number) => void;
345
- }, xstate63.EventObject>;
345
+ }, xstate428.EventObject>;
346
346
  id: string | undefined;
347
347
  };
348
348
  finalizeDocumentRequest: {
349
349
  src: "finalizeDocumentRequest";
350
- logic: xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
350
+ logic: xstate428.PromiseActorLogic<FinalizeDocumentResponse, {
351
351
  processingType: string;
352
- }, xstate63.EventObject>;
352
+ }, xstate428.EventObject>;
353
353
  id: string | undefined;
354
354
  };
355
355
  }>, "src", TSrc>["logic"]>;
356
- <TLogic extends xstate63.AnyActorLogic>(src: TLogic, ...[options]: xstate63.ConditionalRequired<[options?: ({
356
+ <TLogic extends xstate428.AnyActorLogic>(src: TLogic, ...[options]: xstate428.ConditionalRequired<[options?: ({
357
357
  id?: never;
358
358
  systemId?: string;
359
- input?: xstate63.InputFrom<TLogic> | undefined;
359
+ input?: xstate428.InputFrom<TLogic> | undefined;
360
360
  syncSnapshot?: boolean;
361
- } & { [K in xstate63.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredLogicInput<TLogic>>>): xstate63.ActorRefFromLogic<TLogic>;
361
+ } & { [K in xstate428.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate428.IsNotNever<xstate428.RequiredLogicInput<TLogic>>>): xstate428.ActorRefFromLogic<TLogic>;
362
362
  };
363
363
  input: DocumentCaptureInput;
364
- self: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
364
+ self: xstate428.ActorRef<xstate428.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, xstate63.AnyActorRef | undefined>, xstate63.StateValue, string, unknown, any, any>, {
392
+ }, Record<string, xstate428.AnyActorRef | undefined>, xstate428.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
- }, xstate63.AnyEventObject>;
420
+ }, xstate428.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: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
571
+ self: xstate428.ActorRef<xstate428.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, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
599
+ }, Record<string, xstate428.AnyActorRef>, xstate428.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
- }, xstate63.AnyEventObject>;
627
+ }, xstate428.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: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
722
+ self: xstate428.ActorRef<xstate428.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, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
750
+ }, Record<string, xstate428.AnyActorRef>, xstate428.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
- }, xstate63.AnyEventObject>;
778
+ }, xstate428.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 xstate0 from "xstate";
5
+ import * as xstate364 from "xstate";
6
6
 
7
7
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
8
- declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext, {
8
+ declare const documentUploadMachine: xstate364.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]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
21
+ [x: string]: xstate364.ActorRefFromLogic<xstate364.PromiseActorLogic<MediaStream, void, xstate364.EventObject>> | xstate364.ActorRefFromLogic<xstate364.PromiseActorLogic<void, {
22
22
  imageBase64: string;
23
23
  documentType: string;
24
24
  onProgress: (progress: number) => void;
25
- }, xstate0.EventObject>> | undefined;
26
- }, xstate0.Values<{
25
+ }, xstate364.EventObject>> | undefined;
26
+ }, xstate364.Values<{
27
27
  initCamera: {
28
28
  src: "initCamera";
29
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
29
+ logic: xstate364.PromiseActorLogic<MediaStream, void, xstate364.EventObject>;
30
30
  id: string | undefined;
31
31
  };
32
32
  uploadDocument: {
33
33
  src: "uploadDocument";
34
- logic: xstate0.PromiseActorLogic<void, {
34
+ logic: xstate364.PromiseActorLogic<void, {
35
35
  imageBase64: string;
36
36
  documentType: string;
37
37
  onProgress: (progress: number) => void;
38
- }, xstate0.EventObject>;
38
+ }, xstate364.EventObject>;
39
39
  id: string | undefined;
40
40
  };
41
- }>, xstate0.Values<{
41
+ }>, xstate364.Values<{
42
+ setError: {
43
+ type: "setError";
44
+ params: xstate364.NonReducibleUnknown;
45
+ };
46
+ clearError: {
47
+ type: "clearError";
48
+ params: xstate364.NonReducibleUnknown;
49
+ };
42
50
  setStream: {
43
51
  type: "setStream";
44
- params: xstate0.NonReducibleUnknown;
52
+ params: xstate364.NonReducibleUnknown;
45
53
  };
46
54
  setImageAndClearError: {
47
55
  type: "setImageAndClearError";
48
- params: xstate0.NonReducibleUnknown;
56
+ params: xstate364.NonReducibleUnknown;
49
57
  };
50
58
  setProgress: {
51
59
  type: "setProgress";
52
- params: xstate0.NonReducibleUnknown;
53
- };
54
- setError: {
55
- type: "setError";
56
- params: xstate0.NonReducibleUnknown;
57
- };
58
- clearError: {
59
- type: "clearError";
60
- params: xstate0.NonReducibleUnknown;
60
+ params: xstate364.NonReducibleUnknown;
61
61
  };
62
62
  stopStream: {
63
63
  type: "stopStream";
64
- params: xstate0.NonReducibleUnknown;
64
+ params: xstate364.NonReducibleUnknown;
65
65
  };
66
- }>, never, never, "error" | "initCamera" | "idle" | "capturing" | "closed" | "uploading" | "finished", string, DocumentUploadInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
66
+ }>, never, never, "error" | "idle" | "closed" | "finished" | "initCamera" | "capturing" | "uploading", string, DocumentUploadInput, xstate364.NonReducibleUnknown, xstate364.EventObject, xstate364.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: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
75
+ logic: xstate364.PromiseActorLogic<MediaStream, void, xstate364.EventObject>;
76
76
  id: string | undefined;
77
77
  } extends infer T ? T extends {
78
78
  src: "initCamera";
79
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
79
+ logic: xstate364.PromiseActorLogic<MediaStream, void, xstate364.EventObject>;
80
80
  id: string | undefined;
81
81
  } ? T extends {
82
82
  src: TSrc;
83
- } ? xstate0.ConditionalRequired<[options?: ({
83
+ } ? xstate364.ConditionalRequired<[options?: ({
84
84
  id?: T["id"] | undefined;
85
85
  systemId?: string;
86
- input?: xstate0.InputFrom<T["logic"]> | undefined;
86
+ input?: xstate364.InputFrom<T["logic"]> | undefined;
87
87
  syncSnapshot?: boolean;
88
- } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
88
+ } & { [K in xstate364.RequiredActorOptions<T>]: unknown }) | undefined], xstate364.IsNotNever<xstate364.RequiredActorOptions<T>>> : never : never : never) | ({
89
89
  src: "uploadDocument";
90
- logic: xstate0.PromiseActorLogic<void, {
90
+ logic: xstate364.PromiseActorLogic<void, {
91
91
  imageBase64: string;
92
92
  documentType: string;
93
93
  onProgress: (progress: number) => void;
94
- }, xstate0.EventObject>;
94
+ }, xstate364.EventObject>;
95
95
  id: string | undefined;
96
96
  } extends infer T_1 ? T_1 extends {
97
97
  src: "uploadDocument";
98
- logic: xstate0.PromiseActorLogic<void, {
98
+ logic: xstate364.PromiseActorLogic<void, {
99
99
  imageBase64: string;
100
100
  documentType: string;
101
101
  onProgress: (progress: number) => void;
102
- }, xstate0.EventObject>;
102
+ }, xstate364.EventObject>;
103
103
  id: string | undefined;
104
104
  } ? T_1 extends {
105
105
  src: TSrc;
106
- } ? xstate0.ConditionalRequired<[options?: ({
106
+ } ? xstate364.ConditionalRequired<[options?: ({
107
107
  id?: T_1["id"] | undefined;
108
108
  systemId?: string;
109
- input?: xstate0.InputFrom<T_1["logic"]> | undefined;
109
+ input?: xstate364.InputFrom<T_1["logic"]> | undefined;
110
110
  syncSnapshot?: boolean;
111
- } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
111
+ } & { [K_1 in xstate364.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate364.IsNotNever<xstate364.RequiredActorOptions<T_1>>> : never : never : never)): xstate364.ActorRefFromLogic<xstate364.GetConcreteByKey<xstate364.Values<{
112
112
  initCamera: {
113
113
  src: "initCamera";
114
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
114
+ logic: xstate364.PromiseActorLogic<MediaStream, void, xstate364.EventObject>;
115
115
  id: string | undefined;
116
116
  };
117
117
  uploadDocument: {
118
118
  src: "uploadDocument";
119
- logic: xstate0.PromiseActorLogic<void, {
119
+ logic: xstate364.PromiseActorLogic<void, {
120
120
  imageBase64: string;
121
121
  documentType: string;
122
122
  onProgress: (progress: number) => void;
123
- }, xstate0.EventObject>;
123
+ }, xstate364.EventObject>;
124
124
  id: string | undefined;
125
125
  };
126
126
  }>, "src", TSrc>["logic"]>;
127
- <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
127
+ <TLogic extends xstate364.AnyActorLogic>(src: TLogic, ...[options]: xstate364.ConditionalRequired<[options?: ({
128
128
  id?: never;
129
129
  systemId?: string;
130
- input?: xstate0.InputFrom<TLogic> | undefined;
130
+ input?: xstate364.InputFrom<TLogic> | undefined;
131
131
  syncSnapshot?: boolean;
132
- } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
132
+ } & { [K in xstate364.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate364.IsNotNever<xstate364.RequiredLogicInput<TLogic>>>): xstate364.ActorRefFromLogic<TLogic>;
133
133
  };
134
134
  input: DocumentUploadInput;
135
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
135
+ self: xstate364.ActorRef<xstate364.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, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
147
+ }, Record<string, xstate364.AnyActorRef | undefined>, xstate364.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
- }, xstate0.AnyEventObject>;
159
+ }, xstate364.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: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
229
+ self: xstate364.ActorRef<xstate364.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, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
241
+ }, Record<string, xstate364.AnyActorRef>, xstate364.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
- }, xstate0.AnyEventObject>;
253
+ }, xstate364.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 xstate525 from "xstate";
6
+ import * as xstate0 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: xstate525.StateMachine<MandatoryConsentContext, {
33
+ declare const mandatoryConsentMachine: xstate0.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]: xstate525.ActorRefFromLogic<xstate525.PromiseActorLogic<FetchMandatoryConsentResponse, {
46
+ [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
47
47
  config: MandatoryConsentConfig;
48
- }, xstate525.EventObject>> | xstate525.ActorRefFromLogic<xstate525.PromiseActorLogic<void, {
48
+ }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
49
49
  consentId: string;
50
50
  isSigned: boolean;
51
- }, xstate525.EventObject>> | undefined;
52
- }, xstate525.Values<{
51
+ }, xstate0.EventObject>> | undefined;
52
+ }, xstate0.Values<{
53
53
  fetchConsent: {
54
54
  src: "fetchConsent";
55
- logic: xstate525.PromiseActorLogic<FetchMandatoryConsentResponse, {
55
+ logic: xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
56
56
  config: MandatoryConsentConfig;
57
- }, xstate525.EventObject>;
57
+ }, xstate0.EventObject>;
58
58
  id: string | undefined;
59
59
  };
60
60
  submitConsent: {
61
61
  src: "submitConsent";
62
- logic: xstate525.PromiseActorLogic<void, {
62
+ logic: xstate0.PromiseActorLogic<void, {
63
63
  consentId: string;
64
64
  isSigned: boolean;
65
- }, xstate525.EventObject>;
65
+ }, xstate0.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
- }>, xstate525.Values<{
68
+ }>, xstate0.Values<{
69
+ setConsent: {
70
+ type: "setConsent";
71
+ params: xstate0.NonReducibleUnknown;
72
+ };
73
+ toggleSigned: {
74
+ type: "toggleSigned";
75
+ params: xstate0.NonReducibleUnknown;
76
+ };
69
77
  setError: {
70
78
  type: "setError";
71
- params: xstate525.NonReducibleUnknown;
79
+ params: xstate0.NonReducibleUnknown;
72
80
  };
73
81
  clearError: {
74
82
  type: "clearError";
75
- params: xstate525.NonReducibleUnknown;
83
+ params: xstate0.NonReducibleUnknown;
76
84
  };
77
85
  resetContext: {
78
86
  type: "resetContext";
79
- params: xstate525.NonReducibleUnknown;
80
- };
81
- setConsent: {
82
- type: "setConsent";
83
- params: xstate525.NonReducibleUnknown;
84
- };
85
- toggleSigned: {
86
- type: "toggleSigned";
87
- params: xstate525.NonReducibleUnknown;
87
+ params: xstate0.NonReducibleUnknown;
88
88
  };
89
89
  }>, {
90
90
  type: "canSubmit";
91
91
  params: unknown;
92
- }, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate525.NonReducibleUnknown, xstate525.EventObject, xstate525.MetaObject, {
92
+ }, never, "error" | "idle" | "loading" | "display" | "submitting" | "closed" | "finished", string, MandatoryConsentInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.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: xstate525.PromiseActorLogic<FetchMandatoryConsentResponse, {
101
+ logic: xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
102
102
  config: MandatoryConsentConfig;
103
- }, xstate525.EventObject>;
103
+ }, xstate0.EventObject>;
104
104
  id: string | undefined;
105
105
  } extends infer T ? T extends {
106
106
  src: "fetchConsent";
107
- logic: xstate525.PromiseActorLogic<FetchMandatoryConsentResponse, {
107
+ logic: xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
108
108
  config: MandatoryConsentConfig;
109
- }, xstate525.EventObject>;
109
+ }, xstate0.EventObject>;
110
110
  id: string | undefined;
111
111
  } ? T extends {
112
112
  src: TSrc;
113
- } ? xstate525.ConditionalRequired<[options?: ({
113
+ } ? xstate0.ConditionalRequired<[options?: ({
114
114
  id?: T["id"] | undefined;
115
115
  systemId?: string;
116
- input?: xstate525.InputFrom<T["logic"]> | undefined;
116
+ input?: xstate0.InputFrom<T["logic"]> | undefined;
117
117
  syncSnapshot?: boolean;
118
- } & { [K in xstate525.RequiredActorOptions<T>]: unknown }) | undefined], xstate525.IsNotNever<xstate525.RequiredActorOptions<T>>> : never : never : never) | ({
118
+ } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
119
119
  src: "submitConsent";
120
- logic: xstate525.PromiseActorLogic<void, {
120
+ logic: xstate0.PromiseActorLogic<void, {
121
121
  consentId: string;
122
122
  isSigned: boolean;
123
- }, xstate525.EventObject>;
123
+ }, xstate0.EventObject>;
124
124
  id: string | undefined;
125
125
  } extends infer T_1 ? T_1 extends {
126
126
  src: "submitConsent";
127
- logic: xstate525.PromiseActorLogic<void, {
127
+ logic: xstate0.PromiseActorLogic<void, {
128
128
  consentId: string;
129
129
  isSigned: boolean;
130
- }, xstate525.EventObject>;
130
+ }, xstate0.EventObject>;
131
131
  id: string | undefined;
132
132
  } ? T_1 extends {
133
133
  src: TSrc;
134
- } ? xstate525.ConditionalRequired<[options?: ({
134
+ } ? xstate0.ConditionalRequired<[options?: ({
135
135
  id?: T_1["id"] | undefined;
136
136
  systemId?: string;
137
- input?: xstate525.InputFrom<T_1["logic"]> | undefined;
137
+ input?: xstate0.InputFrom<T_1["logic"]> | undefined;
138
138
  syncSnapshot?: boolean;
139
- } & { [K_1 in xstate525.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate525.IsNotNever<xstate525.RequiredActorOptions<T_1>>> : never : never : never)): xstate525.ActorRefFromLogic<xstate525.GetConcreteByKey<xstate525.Values<{
139
+ } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
140
140
  fetchConsent: {
141
141
  src: "fetchConsent";
142
- logic: xstate525.PromiseActorLogic<FetchMandatoryConsentResponse, {
142
+ logic: xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
143
143
  config: MandatoryConsentConfig;
144
- }, xstate525.EventObject>;
144
+ }, xstate0.EventObject>;
145
145
  id: string | undefined;
146
146
  };
147
147
  submitConsent: {
148
148
  src: "submitConsent";
149
- logic: xstate525.PromiseActorLogic<void, {
149
+ logic: xstate0.PromiseActorLogic<void, {
150
150
  consentId: string;
151
151
  isSigned: boolean;
152
- }, xstate525.EventObject>;
152
+ }, xstate0.EventObject>;
153
153
  id: string | undefined;
154
154
  };
155
155
  }>, "src", TSrc>["logic"]>;
156
- <TLogic extends xstate525.AnyActorLogic>(src: TLogic, ...[options]: xstate525.ConditionalRequired<[options?: ({
156
+ <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
157
157
  id?: never;
158
158
  systemId?: string;
159
- input?: xstate525.InputFrom<TLogic> | undefined;
159
+ input?: xstate0.InputFrom<TLogic> | undefined;
160
160
  syncSnapshot?: boolean;
161
- } & { [K in xstate525.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate525.IsNotNever<xstate525.RequiredLogicInput<TLogic>>>): xstate525.ActorRefFromLogic<TLogic>;
161
+ } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
162
162
  };
163
163
  input: MandatoryConsentInput;
164
- self: xstate525.ActorRef<xstate525.MachineSnapshot<MandatoryConsentContext, {
164
+ self: xstate0.ActorRef<xstate0.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, xstate525.AnyActorRef | undefined>, xstate525.StateValue, string, unknown, any, any>, {
176
+ }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.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
- }, xstate525.AnyEventObject>;
188
+ }, xstate0.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: xstate525.ActorRef<xstate525.MachineSnapshot<MandatoryConsentContext, {
225
+ self: xstate0.ActorRef<xstate0.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, xstate525.AnyActorRef>, xstate525.StateValue, string, unknown, any, any>, {
237
+ }, Record<string, xstate0.AnyActorRef>, xstate0.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
- }, xstate525.AnyEventObject>;
249
+ }, xstate0.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: xstate525.ActorRef<xstate525.MachineSnapshot<MandatoryConsentContext, {
302
+ self: xstate0.ActorRef<xstate0.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, xstate525.AnyActorRef>, xstate525.StateValue, string, unknown, any, any>, {
314
+ }, Record<string, xstate0.AnyActorRef>, xstate0.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
- }, xstate525.AnyEventObject>;
326
+ }, xstate0.AnyEventObject>;
327
327
  }) => {
328
328
  consentId: string;
329
329
  isSigned: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260407-ebd92aa",
3
+ "version": "0.0.0-dev-20260407-4ad99b2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",