@incodetech/core 0.0.0-dev-20260408-a355630 → 0.0.0-dev-20260409-a38d5e8

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-BN2g_I8W.js";
2
2
  import "./Actor-Ba71-_30.js";
3
- import * as xstate131 from "xstate";
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: xstate131.StateMachine<ConsentContext, {
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: xstate131.StateMachine<ConsentContext, {
48
48
  } | {
49
49
  type: "RESET";
50
50
  }, {
51
- [x: string]: xstate131.ActorRefFromLogic<xstate131.PromiseActorLogic<FetchCombinedConsentResponse, {
51
+ [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
52
52
  consentId: string;
53
- }, xstate131.EventObject>> | xstate131.ActorRefFromLogic<xstate131.PromiseActorLogic<void, {
53
+ }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
54
54
  languageConsentId: string;
55
55
  checkboxes: ConsentCheckbox[];
56
- }, xstate131.EventObject>> | undefined;
57
- }, xstate131.Values<{
56
+ }, xstate0.EventObject>> | undefined;
57
+ }, xstate0.Values<{
58
58
  fetchConsent: {
59
59
  src: "fetchConsent";
60
- logic: xstate131.PromiseActorLogic<FetchCombinedConsentResponse, {
60
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
61
61
  consentId: string;
62
- }, xstate131.EventObject>;
62
+ }, xstate0.EventObject>;
63
63
  id: string | undefined;
64
64
  };
65
65
  submitConsent: {
66
66
  src: "submitConsent";
67
- logic: xstate131.PromiseActorLogic<void, {
67
+ logic: xstate0.PromiseActorLogic<void, {
68
68
  languageConsentId: string;
69
69
  checkboxes: ConsentCheckbox[];
70
- }, xstate131.EventObject>;
70
+ }, xstate0.EventObject>;
71
71
  id: string | undefined;
72
72
  };
73
- }>, xstate131.Values<{
73
+ }>, xstate0.Values<{
74
+ setConsentData: {
75
+ type: "setConsentData";
76
+ params: xstate0.NonReducibleUnknown;
77
+ };
78
+ toggleCheckbox: {
79
+ type: "toggleCheckbox";
80
+ params: xstate0.NonReducibleUnknown;
81
+ };
74
82
  setError: {
75
83
  type: "setError";
76
- params: xstate131.NonReducibleUnknown;
84
+ params: xstate0.NonReducibleUnknown;
77
85
  };
78
86
  clearError: {
79
87
  type: "clearError";
80
- params: xstate131.NonReducibleUnknown;
88
+ params: xstate0.NonReducibleUnknown;
81
89
  };
82
90
  resetContext: {
83
91
  type: "resetContext";
84
- params: xstate131.NonReducibleUnknown;
85
- };
86
- setConsentData: {
87
- type: "setConsentData";
88
- params: xstate131.NonReducibleUnknown;
89
- };
90
- toggleCheckbox: {
91
- type: "toggleCheckbox";
92
- params: xstate131.NonReducibleUnknown;
92
+ params: xstate0.NonReducibleUnknown;
93
93
  };
94
94
  }>, {
95
95
  type: "canSubmit";
96
96
  params: unknown;
97
- }, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished", string, ConsentInput, xstate131.NonReducibleUnknown, xstate131.EventObject, xstate131.MetaObject, {
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: xstate131.StateMachine<ConsentContext, {
103
103
  spawn: {
104
104
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
105
105
  src: "fetchConsent";
106
- logic: xstate131.PromiseActorLogic<FetchCombinedConsentResponse, {
106
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
107
107
  consentId: string;
108
- }, xstate131.EventObject>;
108
+ }, xstate0.EventObject>;
109
109
  id: string | undefined;
110
110
  } extends infer T ? T extends {
111
111
  src: "fetchConsent";
112
- logic: xstate131.PromiseActorLogic<FetchCombinedConsentResponse, {
112
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
113
113
  consentId: string;
114
- }, xstate131.EventObject>;
114
+ }, xstate0.EventObject>;
115
115
  id: string | undefined;
116
116
  } ? T extends {
117
117
  src: TSrc;
118
- } ? xstate131.ConditionalRequired<[options?: ({
118
+ } ? xstate0.ConditionalRequired<[options?: ({
119
119
  id?: T["id"] | undefined;
120
120
  systemId?: string;
121
- input?: xstate131.InputFrom<T["logic"]> | undefined;
121
+ input?: xstate0.InputFrom<T["logic"]> | undefined;
122
122
  syncSnapshot?: boolean;
123
- } & { [K in xstate131.RequiredActorOptions<T>]: unknown }) | undefined], xstate131.IsNotNever<xstate131.RequiredActorOptions<T>>> : never : never : never) | ({
123
+ } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
124
124
  src: "submitConsent";
125
- logic: xstate131.PromiseActorLogic<void, {
125
+ logic: xstate0.PromiseActorLogic<void, {
126
126
  languageConsentId: string;
127
127
  checkboxes: ConsentCheckbox[];
128
- }, xstate131.EventObject>;
128
+ }, xstate0.EventObject>;
129
129
  id: string | undefined;
130
130
  } extends infer T_1 ? T_1 extends {
131
131
  src: "submitConsent";
132
- logic: xstate131.PromiseActorLogic<void, {
132
+ logic: xstate0.PromiseActorLogic<void, {
133
133
  languageConsentId: string;
134
134
  checkboxes: ConsentCheckbox[];
135
- }, xstate131.EventObject>;
135
+ }, xstate0.EventObject>;
136
136
  id: string | undefined;
137
137
  } ? T_1 extends {
138
138
  src: TSrc;
139
- } ? xstate131.ConditionalRequired<[options?: ({
139
+ } ? xstate0.ConditionalRequired<[options?: ({
140
140
  id?: T_1["id"] | undefined;
141
141
  systemId?: string;
142
- input?: xstate131.InputFrom<T_1["logic"]> | undefined;
142
+ input?: xstate0.InputFrom<T_1["logic"]> | undefined;
143
143
  syncSnapshot?: boolean;
144
- } & { [K_1 in xstate131.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate131.IsNotNever<xstate131.RequiredActorOptions<T_1>>> : never : never : never)): xstate131.ActorRefFromLogic<xstate131.GetConcreteByKey<xstate131.Values<{
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: xstate131.PromiseActorLogic<FetchCombinedConsentResponse, {
147
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
148
148
  consentId: string;
149
- }, xstate131.EventObject>;
149
+ }, xstate0.EventObject>;
150
150
  id: string | undefined;
151
151
  };
152
152
  submitConsent: {
153
153
  src: "submitConsent";
154
- logic: xstate131.PromiseActorLogic<void, {
154
+ logic: xstate0.PromiseActorLogic<void, {
155
155
  languageConsentId: string;
156
156
  checkboxes: ConsentCheckbox[];
157
- }, xstate131.EventObject>;
157
+ }, xstate0.EventObject>;
158
158
  id: string | undefined;
159
159
  };
160
160
  }>, "src", TSrc>["logic"]>;
161
- <TLogic extends xstate131.AnyActorLogic>(src: TLogic, ...[options]: xstate131.ConditionalRequired<[options?: ({
161
+ <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
162
162
  id?: never;
163
163
  systemId?: string;
164
- input?: xstate131.InputFrom<TLogic> | undefined;
164
+ input?: xstate0.InputFrom<TLogic> | undefined;
165
165
  syncSnapshot?: boolean;
166
- } & { [K in xstate131.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate131.IsNotNever<xstate131.RequiredLogicInput<TLogic>>>): xstate131.ActorRefFromLogic<TLogic>;
166
+ } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
167
167
  };
168
168
  input: ConsentInput;
169
- self: xstate131.ActorRef<xstate131.MachineSnapshot<ConsentContext, {
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: xstate131.StateMachine<ConsentContext, {
177
177
  type: "RETRY";
178
178
  } | {
179
179
  type: "RESET";
180
- }, Record<string, xstate131.AnyActorRef | undefined>, xstate131.StateValue, string, unknown, any, any>, {
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: xstate131.StateMachine<ConsentContext, {
188
188
  type: "RETRY";
189
189
  } | {
190
190
  type: "RESET";
191
- }, xstate131.AnyEventObject>;
191
+ }, xstate0.AnyEventObject>;
192
192
  }) => {
193
193
  config: ConsentConfig;
194
194
  title: string;
@@ -226,7 +226,7 @@ declare const consentMachine: xstate131.StateMachine<ConsentContext, {
226
226
  } | {
227
227
  type: "RESET";
228
228
  };
229
- self: xstate131.ActorRef<xstate131.MachineSnapshot<ConsentContext, {
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: xstate131.StateMachine<ConsentContext, {
237
237
  type: "RETRY";
238
238
  } | {
239
239
  type: "RESET";
240
- }, Record<string, xstate131.AnyActorRef>, xstate131.StateValue, string, unknown, any, any>, {
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: xstate131.StateMachine<ConsentContext, {
248
248
  type: "RETRY";
249
249
  } | {
250
250
  type: "RESET";
251
- }, xstate131.AnyEventObject>;
251
+ }, xstate0.AnyEventObject>;
252
252
  }) => {
253
253
  consentId: string;
254
254
  };
@@ -297,7 +297,7 @@ declare const consentMachine: xstate131.StateMachine<ConsentContext, {
297
297
  } | {
298
298
  type: "RESET";
299
299
  };
300
- self: xstate131.ActorRef<xstate131.MachineSnapshot<ConsentContext, {
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: xstate131.StateMachine<ConsentContext, {
308
308
  type: "RETRY";
309
309
  } | {
310
310
  type: "RESET";
311
- }, Record<string, xstate131.AnyActorRef>, xstate131.StateValue, string, unknown, any, any>, {
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: xstate131.StateMachine<ConsentContext, {
319
319
  type: "RETRY";
320
320
  } | {
321
321
  type: "RESET";
322
- }, xstate131.AnyEventObject>;
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-BN2g_I8W.js";
2
2
  import "./Actor-Ba71-_30.js";
3
3
  import { t as CameraStream } from "./camera-1eeGnAaL.js";
4
- import * as xstate496 from "xstate";
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: xstate496.StateMachine<DocumentCaptureContext, {
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: xstate496.StateMachine<DocumentCaptureCont
111
111
  } | {
112
112
  type: "CLOSE";
113
113
  }, {
114
- [x: string]: xstate496.ActorRefFromLogic<xstate496.PromiseActorLogic<MediaStream, void, xstate496.EventObject>> | xstate496.ActorRefFromLogic<xstate496.PromiseActorLogic<DocumentUploadResponse, {
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
- }, xstate496.EventObject>> | xstate496.ActorRefFromLogic<xstate496.PromiseActorLogic<FinalizeDocumentResponse, {
118
+ }, xstate135.EventObject>> | xstate135.ActorRefFromLogic<xstate135.PromiseActorLogic<FinalizeDocumentResponse, {
119
119
  processingType: string;
120
- }, xstate496.EventObject>> | undefined;
121
- }, xstate496.Values<{
120
+ }, xstate135.EventObject>> | undefined;
121
+ }, xstate135.Values<{
122
122
  initCamera: {
123
123
  src: "initCamera";
124
- logic: xstate496.PromiseActorLogic<MediaStream, void, xstate496.EventObject>;
124
+ logic: xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>;
125
125
  id: string | undefined;
126
126
  };
127
127
  uploadDocument: {
128
128
  src: "uploadDocument";
129
- logic: xstate496.PromiseActorLogic<DocumentUploadResponse, {
129
+ logic: xstate135.PromiseActorLogic<DocumentUploadResponse, {
130
130
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
131
131
  processingType: string;
132
132
  onProgress: (progress: number) => void;
133
- }, xstate496.EventObject>;
133
+ }, xstate135.EventObject>;
134
134
  id: string | undefined;
135
135
  };
136
136
  finalizeDocumentRequest: {
137
137
  src: "finalizeDocumentRequest";
138
- logic: xstate496.PromiseActorLogic<FinalizeDocumentResponse, {
138
+ logic: xstate135.PromiseActorLogic<FinalizeDocumentResponse, {
139
139
  processingType: string;
140
- }, xstate496.EventObject>;
140
+ }, xstate135.EventObject>;
141
141
  id: string | undefined;
142
142
  };
143
- }>, xstate496.Values<{
143
+ }>, xstate135.Values<{
144
144
  clearError: {
145
145
  type: "clearError";
146
- params: xstate496.NonReducibleUnknown;
146
+ params: xstate135.NonReducibleUnknown;
147
147
  };
148
148
  setStream: {
149
149
  type: "setStream";
150
- params: xstate496.NonReducibleUnknown;
151
- };
152
- setProgress: {
153
- type: "setProgress";
154
- params: xstate496.NonReducibleUnknown;
155
- };
156
- stopStream: {
157
- type: "stopStream";
158
- params: xstate496.NonReducibleUnknown;
150
+ params: xstate135.NonReducibleUnknown;
159
151
  };
160
152
  setCapturedDocument: {
161
153
  type: "setCapturedDocument";
162
- params: xstate496.NonReducibleUnknown;
154
+ params: xstate135.NonReducibleUnknown;
163
155
  };
164
156
  setFileTooLargeError: {
165
157
  type: "setFileTooLargeError";
166
- params: xstate496.NonReducibleUnknown;
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: xstate496.NonReducibleUnknown;
166
+ params: xstate135.NonReducibleUnknown;
171
167
  };
172
168
  setFinalizeError: {
173
169
  type: "setFinalizeError";
174
- params: xstate496.NonReducibleUnknown;
170
+ params: xstate135.NonReducibleUnknown;
175
171
  };
176
172
  decrementAttemptsRemaining: {
177
173
  type: "decrementAttemptsRemaining";
178
- params: xstate496.NonReducibleUnknown;
174
+ params: xstate135.NonReducibleUnknown;
179
175
  };
180
176
  setCaptureMethodFile: {
181
177
  type: "setCaptureMethodFile";
182
- params: xstate496.NonReducibleUnknown;
178
+ params: xstate135.NonReducibleUnknown;
183
179
  };
184
180
  setCaptureMethodCamera: {
185
181
  type: "setCaptureMethodCamera";
186
- params: xstate496.NonReducibleUnknown;
182
+ params: xstate135.NonReducibleUnknown;
187
183
  };
188
184
  setCaptureMethodGallery: {
189
185
  type: "setCaptureMethodGallery";
190
- params: xstate496.NonReducibleUnknown;
186
+ params: xstate135.NonReducibleUnknown;
191
187
  };
192
188
  clearCapturedDocument: {
193
189
  type: "clearCapturedDocument";
194
- params: xstate496.NonReducibleUnknown;
190
+ params: xstate135.NonReducibleUnknown;
195
191
  };
196
192
  clearCapturedDocumentGalleryRetake: {
197
193
  type: "clearCapturedDocumentGalleryRetake";
198
- params: xstate496.NonReducibleUnknown;
194
+ params: xstate135.NonReducibleUnknown;
199
195
  };
200
196
  setNextPageType: {
201
197
  type: "setNextPageType";
202
- params: xstate496.NonReducibleUnknown;
198
+ params: xstate135.NonReducibleUnknown;
203
199
  };
204
200
  clearForNextPage: {
205
201
  type: "clearForNextPage";
206
- params: xstate496.NonReducibleUnknown;
202
+ params: xstate135.NonReducibleUnknown;
207
203
  };
208
204
  resetProgress: {
209
205
  type: "resetProgress";
210
- params: xstate496.NonReducibleUnknown;
206
+ params: xstate135.NonReducibleUnknown;
207
+ };
208
+ stopStream: {
209
+ type: "stopStream";
210
+ params: xstate135.NonReducibleUnknown;
211
211
  };
212
- }>, xstate496.Values<{
212
+ }>, xstate135.Values<{
213
213
  allowSkip: {
214
214
  type: "allowSkip";
215
215
  params: unknown;
@@ -270,7 +270,7 @@ declare const documentCaptureMachine: xstate496.StateMachine<DocumentCaptureCont
270
270
  type: "fileSizeOkForNonGallery";
271
271
  params: unknown;
272
272
  };
273
- }>, never, "closed" | "finished" | "initCamera" | "capturing" | "uploading" | "tutorial" | "preview" | "failure" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate496.NonReducibleUnknown, xstate496.EventObject, xstate496.MetaObject, {
273
+ }>, never, "finished" | "closed" | "initCamera" | "tutorial" | "capturing" | "preview" | "failure" | "uploading" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate135.NonReducibleUnknown, xstate135.EventObject, xstate135.MetaObject, {
274
274
  readonly id: "documentCapture";
275
275
  readonly initial: "tutorial";
276
276
  readonly context: ({
@@ -279,93 +279,93 @@ declare const documentCaptureMachine: xstate496.StateMachine<DocumentCaptureCont
279
279
  spawn: {
280
280
  <TSrc extends "initCamera" | "uploadDocument" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
281
281
  src: "initCamera";
282
- logic: xstate496.PromiseActorLogic<MediaStream, void, xstate496.EventObject>;
282
+ logic: xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>;
283
283
  id: string | undefined;
284
284
  } extends infer T ? T extends {
285
285
  src: "initCamera";
286
- logic: xstate496.PromiseActorLogic<MediaStream, void, xstate496.EventObject>;
286
+ logic: xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>;
287
287
  id: string | undefined;
288
288
  } ? T extends {
289
289
  src: TSrc;
290
- } ? xstate496.ConditionalRequired<[options?: ({
290
+ } ? xstate135.ConditionalRequired<[options?: ({
291
291
  id?: T["id"] | undefined;
292
292
  systemId?: string;
293
- input?: xstate496.InputFrom<T["logic"]> | undefined;
293
+ input?: xstate135.InputFrom<T["logic"]> | undefined;
294
294
  syncSnapshot?: boolean;
295
- } & { [K in xstate496.RequiredActorOptions<T>]: unknown }) | undefined], xstate496.IsNotNever<xstate496.RequiredActorOptions<T>>> : never : never : never) | ({
295
+ } & { [K in xstate135.RequiredActorOptions<T>]: unknown }) | undefined], xstate135.IsNotNever<xstate135.RequiredActorOptions<T>>> : never : never : never) | ({
296
296
  src: "uploadDocument";
297
- logic: xstate496.PromiseActorLogic<DocumentUploadResponse, {
297
+ logic: xstate135.PromiseActorLogic<DocumentUploadResponse, {
298
298
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
299
299
  processingType: string;
300
300
  onProgress: (progress: number) => void;
301
- }, xstate496.EventObject>;
301
+ }, xstate135.EventObject>;
302
302
  id: string | undefined;
303
303
  } extends infer T_1 ? T_1 extends {
304
304
  src: "uploadDocument";
305
- logic: xstate496.PromiseActorLogic<DocumentUploadResponse, {
305
+ logic: xstate135.PromiseActorLogic<DocumentUploadResponse, {
306
306
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
307
307
  processingType: string;
308
308
  onProgress: (progress: number) => void;
309
- }, xstate496.EventObject>;
309
+ }, xstate135.EventObject>;
310
310
  id: string | undefined;
311
311
  } ? T_1 extends {
312
312
  src: TSrc;
313
- } ? xstate496.ConditionalRequired<[options?: ({
313
+ } ? xstate135.ConditionalRequired<[options?: ({
314
314
  id?: T_1["id"] | undefined;
315
315
  systemId?: string;
316
- input?: xstate496.InputFrom<T_1["logic"]> | undefined;
316
+ input?: xstate135.InputFrom<T_1["logic"]> | undefined;
317
317
  syncSnapshot?: boolean;
318
- } & { [K_1 in xstate496.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate496.IsNotNever<xstate496.RequiredActorOptions<T_1>>> : never : never : never) | ({
318
+ } & { [K_1 in xstate135.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate135.IsNotNever<xstate135.RequiredActorOptions<T_1>>> : never : never : never) | ({
319
319
  src: "finalizeDocumentRequest";
320
- logic: xstate496.PromiseActorLogic<FinalizeDocumentResponse, {
320
+ logic: xstate135.PromiseActorLogic<FinalizeDocumentResponse, {
321
321
  processingType: string;
322
- }, xstate496.EventObject>;
322
+ }, xstate135.EventObject>;
323
323
  id: string | undefined;
324
324
  } extends infer T_2 ? T_2 extends {
325
325
  src: "finalizeDocumentRequest";
326
- logic: xstate496.PromiseActorLogic<FinalizeDocumentResponse, {
326
+ logic: xstate135.PromiseActorLogic<FinalizeDocumentResponse, {
327
327
  processingType: string;
328
- }, xstate496.EventObject>;
328
+ }, xstate135.EventObject>;
329
329
  id: string | undefined;
330
330
  } ? T_2 extends {
331
331
  src: TSrc;
332
- } ? xstate496.ConditionalRequired<[options?: ({
332
+ } ? xstate135.ConditionalRequired<[options?: ({
333
333
  id?: T_2["id"] | undefined;
334
334
  systemId?: string;
335
- input?: xstate496.InputFrom<T_2["logic"]> | undefined;
335
+ input?: xstate135.InputFrom<T_2["logic"]> | undefined;
336
336
  syncSnapshot?: boolean;
337
- } & { [K_2 in xstate496.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate496.IsNotNever<xstate496.RequiredActorOptions<T_2>>> : never : never : never)): xstate496.ActorRefFromLogic<xstate496.GetConcreteByKey<xstate496.Values<{
337
+ } & { [K_2 in xstate135.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate135.IsNotNever<xstate135.RequiredActorOptions<T_2>>> : never : never : never)): xstate135.ActorRefFromLogic<xstate135.GetConcreteByKey<xstate135.Values<{
338
338
  initCamera: {
339
339
  src: "initCamera";
340
- logic: xstate496.PromiseActorLogic<MediaStream, void, xstate496.EventObject>;
340
+ logic: xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>;
341
341
  id: string | undefined;
342
342
  };
343
343
  uploadDocument: {
344
344
  src: "uploadDocument";
345
- logic: xstate496.PromiseActorLogic<DocumentUploadResponse, {
345
+ logic: xstate135.PromiseActorLogic<DocumentUploadResponse, {
346
346
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
347
347
  processingType: string;
348
348
  onProgress: (progress: number) => void;
349
- }, xstate496.EventObject>;
349
+ }, xstate135.EventObject>;
350
350
  id: string | undefined;
351
351
  };
352
352
  finalizeDocumentRequest: {
353
353
  src: "finalizeDocumentRequest";
354
- logic: xstate496.PromiseActorLogic<FinalizeDocumentResponse, {
354
+ logic: xstate135.PromiseActorLogic<FinalizeDocumentResponse, {
355
355
  processingType: string;
356
- }, xstate496.EventObject>;
356
+ }, xstate135.EventObject>;
357
357
  id: string | undefined;
358
358
  };
359
359
  }>, "src", TSrc>["logic"]>;
360
- <TLogic extends xstate496.AnyActorLogic>(src: TLogic, ...[options]: xstate496.ConditionalRequired<[options?: ({
360
+ <TLogic extends xstate135.AnyActorLogic>(src: TLogic, ...[options]: xstate135.ConditionalRequired<[options?: ({
361
361
  id?: never;
362
362
  systemId?: string;
363
- input?: xstate496.InputFrom<TLogic> | undefined;
363
+ input?: xstate135.InputFrom<TLogic> | undefined;
364
364
  syncSnapshot?: boolean;
365
- } & { [K in xstate496.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate496.IsNotNever<xstate496.RequiredLogicInput<TLogic>>>): xstate496.ActorRefFromLogic<TLogic>;
365
+ } & { [K in xstate135.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate135.IsNotNever<xstate135.RequiredLogicInput<TLogic>>>): xstate135.ActorRefFromLogic<TLogic>;
366
366
  };
367
367
  input: DocumentCaptureInput;
368
- self: xstate496.ActorRef<xstate496.MachineSnapshot<DocumentCaptureContext, {
368
+ self: xstate135.ActorRef<xstate135.MachineSnapshot<DocumentCaptureContext, {
369
369
  type: "CAPTURE";
370
370
  } | {
371
371
  type: "FILE_SELECTED";
@@ -393,7 +393,7 @@ declare const documentCaptureMachine: xstate496.StateMachine<DocumentCaptureCont
393
393
  type: "SKIP";
394
394
  } | {
395
395
  type: "CLOSE";
396
- }, Record<string, xstate496.AnyActorRef | undefined>, xstate496.StateValue, string, unknown, any, any>, {
396
+ }, Record<string, xstate135.AnyActorRef | undefined>, xstate135.StateValue, string, unknown, any, any>, {
397
397
  type: "CAPTURE";
398
398
  } | {
399
399
  type: "FILE_SELECTED";
@@ -421,7 +421,7 @@ declare const documentCaptureMachine: xstate496.StateMachine<DocumentCaptureCont
421
421
  type: "SKIP";
422
422
  } | {
423
423
  type: "CLOSE";
424
- }, xstate496.AnyEventObject>;
424
+ }, xstate135.AnyEventObject>;
425
425
  }) => {
426
426
  config: {
427
427
  processingType: DocumentType;
@@ -572,7 +572,7 @@ declare const documentCaptureMachine: xstate496.StateMachine<DocumentCaptureCont
572
572
  } | {
573
573
  type: "CLOSE";
574
574
  };
575
- self: xstate496.ActorRef<xstate496.MachineSnapshot<DocumentCaptureContext, {
575
+ self: xstate135.ActorRef<xstate135.MachineSnapshot<DocumentCaptureContext, {
576
576
  type: "CAPTURE";
577
577
  } | {
578
578
  type: "FILE_SELECTED";
@@ -600,7 +600,7 @@ declare const documentCaptureMachine: xstate496.StateMachine<DocumentCaptureCont
600
600
  type: "SKIP";
601
601
  } | {
602
602
  type: "CLOSE";
603
- }, Record<string, xstate496.AnyActorRef>, xstate496.StateValue, string, unknown, any, any>, {
603
+ }, Record<string, xstate135.AnyActorRef>, xstate135.StateValue, string, unknown, any, any>, {
604
604
  type: "CAPTURE";
605
605
  } | {
606
606
  type: "FILE_SELECTED";
@@ -628,7 +628,7 @@ declare const documentCaptureMachine: xstate496.StateMachine<DocumentCaptureCont
628
628
  type: "SKIP";
629
629
  } | {
630
630
  type: "CLOSE";
631
- }, xstate496.AnyEventObject>;
631
+ }, xstate135.AnyEventObject>;
632
632
  }) => {
633
633
  capturedDocument: CapturedDocument;
634
634
  processingType: DocumentType;
@@ -723,7 +723,7 @@ declare const documentCaptureMachine: xstate496.StateMachine<DocumentCaptureCont
723
723
  } | {
724
724
  type: "CLOSE";
725
725
  };
726
- self: xstate496.ActorRef<xstate496.MachineSnapshot<DocumentCaptureContext, {
726
+ self: xstate135.ActorRef<xstate135.MachineSnapshot<DocumentCaptureContext, {
727
727
  type: "CAPTURE";
728
728
  } | {
729
729
  type: "FILE_SELECTED";
@@ -751,7 +751,7 @@ declare const documentCaptureMachine: xstate496.StateMachine<DocumentCaptureCont
751
751
  type: "SKIP";
752
752
  } | {
753
753
  type: "CLOSE";
754
- }, Record<string, xstate496.AnyActorRef>, xstate496.StateValue, string, unknown, any, any>, {
754
+ }, Record<string, xstate135.AnyActorRef>, xstate135.StateValue, string, unknown, any, any>, {
755
755
  type: "CAPTURE";
756
756
  } | {
757
757
  type: "FILE_SELECTED";
@@ -779,7 +779,7 @@ declare const documentCaptureMachine: xstate496.StateMachine<DocumentCaptureCont
779
779
  type: "SKIP";
780
780
  } | {
781
781
  type: "CLOSE";
782
- }, xstate496.AnyEventObject>;
782
+ }, xstate135.AnyEventObject>;
783
783
  }) => {
784
784
  processingType: DocumentType;
785
785
  };
@@ -2,10 +2,10 @@ import { t as Manager } from "./Manager-BN2g_I8W.js";
2
2
  import "./Actor-Ba71-_30.js";
3
3
  import "./camera-1eeGnAaL.js";
4
4
  import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-2OPf1pyv.js";
5
- import * as xstate67 from "xstate";
5
+ import * as xstate529 from "xstate";
6
6
 
7
7
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
8
- declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext, {
8
+ declare const documentUploadMachine: xstate529.StateMachine<DocumentUploadContext, {
9
9
  type: "START";
10
10
  } | {
11
11
  type: "CAPTURE";
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
18
18
  } | {
19
19
  type: "CLOSE";
20
20
  }, {
21
- [x: string]: xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>> | xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<void, {
21
+ [x: string]: xstate529.ActorRefFromLogic<xstate529.PromiseActorLogic<MediaStream, void, xstate529.EventObject>> | xstate529.ActorRefFromLogic<xstate529.PromiseActorLogic<void, {
22
22
  imageBase64: string;
23
23
  documentType: string;
24
24
  onProgress: (progress: number) => void;
25
- }, xstate67.EventObject>> | undefined;
26
- }, xstate67.Values<{
25
+ }, xstate529.EventObject>> | undefined;
26
+ }, xstate529.Values<{
27
27
  initCamera: {
28
28
  src: "initCamera";
29
- logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
29
+ logic: xstate529.PromiseActorLogic<MediaStream, void, xstate529.EventObject>;
30
30
  id: string | undefined;
31
31
  };
32
32
  uploadDocument: {
33
33
  src: "uploadDocument";
34
- logic: xstate67.PromiseActorLogic<void, {
34
+ logic: xstate529.PromiseActorLogic<void, {
35
35
  imageBase64: string;
36
36
  documentType: string;
37
37
  onProgress: (progress: number) => void;
38
- }, xstate67.EventObject>;
38
+ }, xstate529.EventObject>;
39
39
  id: string | undefined;
40
40
  };
41
- }>, xstate67.Values<{
41
+ }>, xstate529.Values<{
42
42
  setError: {
43
43
  type: "setError";
44
- params: xstate67.NonReducibleUnknown;
44
+ params: xstate529.NonReducibleUnknown;
45
45
  };
46
46
  clearError: {
47
47
  type: "clearError";
48
- params: xstate67.NonReducibleUnknown;
48
+ params: xstate529.NonReducibleUnknown;
49
49
  };
50
50
  setStream: {
51
51
  type: "setStream";
52
- params: xstate67.NonReducibleUnknown;
53
- };
54
- setImageAndClearError: {
55
- type: "setImageAndClearError";
56
- params: xstate67.NonReducibleUnknown;
52
+ params: xstate529.NonReducibleUnknown;
57
53
  };
58
54
  setProgress: {
59
55
  type: "setProgress";
60
- params: xstate67.NonReducibleUnknown;
56
+ params: xstate529.NonReducibleUnknown;
61
57
  };
62
58
  stopStream: {
63
59
  type: "stopStream";
64
- params: xstate67.NonReducibleUnknown;
60
+ params: xstate529.NonReducibleUnknown;
61
+ };
62
+ setImageAndClearError: {
63
+ type: "setImageAndClearError";
64
+ params: xstate529.NonReducibleUnknown;
65
65
  };
66
- }>, never, never, "error" | "idle" | "closed" | "finished" | "initCamera" | "capturing" | "uploading", string, DocumentUploadInput, xstate67.NonReducibleUnknown, xstate67.EventObject, xstate67.MetaObject, {
66
+ }>, never, never, "error" | "idle" | "finished" | "closed" | "initCamera" | "capturing" | "uploading", string, DocumentUploadInput, xstate529.NonReducibleUnknown, xstate529.EventObject, xstate529.MetaObject, {
67
67
  readonly id: "documentUpload";
68
68
  readonly initial: "idle";
69
69
  readonly context: ({
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
72
72
  spawn: {
73
73
  <TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
74
74
  src: "initCamera";
75
- logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
75
+ logic: xstate529.PromiseActorLogic<MediaStream, void, xstate529.EventObject>;
76
76
  id: string | undefined;
77
77
  } extends infer T ? T extends {
78
78
  src: "initCamera";
79
- logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
79
+ logic: xstate529.PromiseActorLogic<MediaStream, void, xstate529.EventObject>;
80
80
  id: string | undefined;
81
81
  } ? T extends {
82
82
  src: TSrc;
83
- } ? xstate67.ConditionalRequired<[options?: ({
83
+ } ? xstate529.ConditionalRequired<[options?: ({
84
84
  id?: T["id"] | undefined;
85
85
  systemId?: string;
86
- input?: xstate67.InputFrom<T["logic"]> | undefined;
86
+ input?: xstate529.InputFrom<T["logic"]> | undefined;
87
87
  syncSnapshot?: boolean;
88
- } & { [K in xstate67.RequiredActorOptions<T>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T>>> : never : never : never) | ({
88
+ } & { [K in xstate529.RequiredActorOptions<T>]: unknown }) | undefined], xstate529.IsNotNever<xstate529.RequiredActorOptions<T>>> : never : never : never) | ({
89
89
  src: "uploadDocument";
90
- logic: xstate67.PromiseActorLogic<void, {
90
+ logic: xstate529.PromiseActorLogic<void, {
91
91
  imageBase64: string;
92
92
  documentType: string;
93
93
  onProgress: (progress: number) => void;
94
- }, xstate67.EventObject>;
94
+ }, xstate529.EventObject>;
95
95
  id: string | undefined;
96
96
  } extends infer T_1 ? T_1 extends {
97
97
  src: "uploadDocument";
98
- logic: xstate67.PromiseActorLogic<void, {
98
+ logic: xstate529.PromiseActorLogic<void, {
99
99
  imageBase64: string;
100
100
  documentType: string;
101
101
  onProgress: (progress: number) => void;
102
- }, xstate67.EventObject>;
102
+ }, xstate529.EventObject>;
103
103
  id: string | undefined;
104
104
  } ? T_1 extends {
105
105
  src: TSrc;
106
- } ? xstate67.ConditionalRequired<[options?: ({
106
+ } ? xstate529.ConditionalRequired<[options?: ({
107
107
  id?: T_1["id"] | undefined;
108
108
  systemId?: string;
109
- input?: xstate67.InputFrom<T_1["logic"]> | undefined;
109
+ input?: xstate529.InputFrom<T_1["logic"]> | undefined;
110
110
  syncSnapshot?: boolean;
111
- } & { [K_1 in xstate67.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T_1>>> : never : never : never)): xstate67.ActorRefFromLogic<xstate67.GetConcreteByKey<xstate67.Values<{
111
+ } & { [K_1 in xstate529.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate529.IsNotNever<xstate529.RequiredActorOptions<T_1>>> : never : never : never)): xstate529.ActorRefFromLogic<xstate529.GetConcreteByKey<xstate529.Values<{
112
112
  initCamera: {
113
113
  src: "initCamera";
114
- logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
114
+ logic: xstate529.PromiseActorLogic<MediaStream, void, xstate529.EventObject>;
115
115
  id: string | undefined;
116
116
  };
117
117
  uploadDocument: {
118
118
  src: "uploadDocument";
119
- logic: xstate67.PromiseActorLogic<void, {
119
+ logic: xstate529.PromiseActorLogic<void, {
120
120
  imageBase64: string;
121
121
  documentType: string;
122
122
  onProgress: (progress: number) => void;
123
- }, xstate67.EventObject>;
123
+ }, xstate529.EventObject>;
124
124
  id: string | undefined;
125
125
  };
126
126
  }>, "src", TSrc>["logic"]>;
127
- <TLogic extends xstate67.AnyActorLogic>(src: TLogic, ...[options]: xstate67.ConditionalRequired<[options?: ({
127
+ <TLogic extends xstate529.AnyActorLogic>(src: TLogic, ...[options]: xstate529.ConditionalRequired<[options?: ({
128
128
  id?: never;
129
129
  systemId?: string;
130
- input?: xstate67.InputFrom<TLogic> | undefined;
130
+ input?: xstate529.InputFrom<TLogic> | undefined;
131
131
  syncSnapshot?: boolean;
132
- } & { [K in xstate67.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredLogicInput<TLogic>>>): xstate67.ActorRefFromLogic<TLogic>;
132
+ } & { [K in xstate529.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate529.IsNotNever<xstate529.RequiredLogicInput<TLogic>>>): xstate529.ActorRefFromLogic<TLogic>;
133
133
  };
134
134
  input: DocumentUploadInput;
135
- self: xstate67.ActorRef<xstate67.MachineSnapshot<DocumentUploadContext, {
135
+ self: xstate529.ActorRef<xstate529.MachineSnapshot<DocumentUploadContext, {
136
136
  type: "START";
137
137
  } | {
138
138
  type: "CAPTURE";
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
144
144
  type: "RETRY";
145
145
  } | {
146
146
  type: "CLOSE";
147
- }, Record<string, xstate67.AnyActorRef | undefined>, xstate67.StateValue, string, unknown, any, any>, {
147
+ }, Record<string, xstate529.AnyActorRef | undefined>, xstate529.StateValue, string, unknown, any, any>, {
148
148
  type: "START";
149
149
  } | {
150
150
  type: "CAPTURE";
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
156
156
  type: "RETRY";
157
157
  } | {
158
158
  type: "CLOSE";
159
- }, xstate67.AnyEventObject>;
159
+ }, xstate529.AnyEventObject>;
160
160
  }) => {
161
161
  config: DocumentUploadConfig;
162
162
  stream: undefined;
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
226
226
  } | {
227
227
  type: "CLOSE";
228
228
  };
229
- self: xstate67.ActorRef<xstate67.MachineSnapshot<DocumentUploadContext, {
229
+ self: xstate529.ActorRef<xstate529.MachineSnapshot<DocumentUploadContext, {
230
230
  type: "START";
231
231
  } | {
232
232
  type: "CAPTURE";
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
238
238
  type: "RETRY";
239
239
  } | {
240
240
  type: "CLOSE";
241
- }, Record<string, xstate67.AnyActorRef>, xstate67.StateValue, string, unknown, any, any>, {
241
+ }, Record<string, xstate529.AnyActorRef>, xstate529.StateValue, string, unknown, any, any>, {
242
242
  type: "START";
243
243
  } | {
244
244
  type: "CAPTURE";
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
250
250
  type: "RETRY";
251
251
  } | {
252
252
  type: "CLOSE";
253
- }, xstate67.AnyEventObject>;
253
+ }, xstate529.AnyEventObject>;
254
254
  }) => {
255
255
  imageBase64: string;
256
256
  documentType: string;
@@ -3,7 +3,7 @@ import "./Actor-Ba71-_30.js";
3
3
  import "./camera-1eeGnAaL.js";
4
4
  import "./types-2OPf1pyv.js";
5
5
  import { i as RegulationTypes } from "./types-CVJVQ7fp.js";
6
- import * as xstate0 from "xstate";
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: xstate0.StateMachine<MandatoryConsentContext, {
33
+ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentContext, {
34
34
  type: "LOAD";
35
35
  } | {
36
36
  type: "TOGGLE";
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
43
43
  } | {
44
44
  type: "RESET";
45
45
  }, {
46
- [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
46
+ [x: string]: xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
47
47
  config: MandatoryConsentConfig;
48
- }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
48
+ }, xstate67.EventObject>> | xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<void, {
49
49
  consentId: string;
50
50
  isSigned: boolean;
51
- }, xstate0.EventObject>> | undefined;
52
- }, xstate0.Values<{
51
+ }, xstate67.EventObject>> | undefined;
52
+ }, xstate67.Values<{
53
53
  fetchConsent: {
54
54
  src: "fetchConsent";
55
- logic: xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
55
+ logic: xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
56
56
  config: MandatoryConsentConfig;
57
- }, xstate0.EventObject>;
57
+ }, xstate67.EventObject>;
58
58
  id: string | undefined;
59
59
  };
60
60
  submitConsent: {
61
61
  src: "submitConsent";
62
- logic: xstate0.PromiseActorLogic<void, {
62
+ logic: xstate67.PromiseActorLogic<void, {
63
63
  consentId: string;
64
64
  isSigned: boolean;
65
- }, xstate0.EventObject>;
65
+ }, xstate67.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
- }>, xstate0.Values<{
69
- setConsent: {
70
- type: "setConsent";
71
- params: xstate0.NonReducibleUnknown;
72
- };
73
- toggleSigned: {
74
- type: "toggleSigned";
75
- params: xstate0.NonReducibleUnknown;
76
- };
68
+ }>, xstate67.Values<{
77
69
  setError: {
78
70
  type: "setError";
79
- params: xstate0.NonReducibleUnknown;
71
+ params: xstate67.NonReducibleUnknown;
80
72
  };
81
73
  clearError: {
82
74
  type: "clearError";
83
- params: xstate0.NonReducibleUnknown;
75
+ params: xstate67.NonReducibleUnknown;
84
76
  };
85
77
  resetContext: {
86
78
  type: "resetContext";
87
- params: xstate0.NonReducibleUnknown;
79
+ params: xstate67.NonReducibleUnknown;
80
+ };
81
+ setConsent: {
82
+ type: "setConsent";
83
+ params: xstate67.NonReducibleUnknown;
84
+ };
85
+ toggleSigned: {
86
+ type: "toggleSigned";
87
+ params: xstate67.NonReducibleUnknown;
88
88
  };
89
89
  }>, {
90
90
  type: "canSubmit";
91
91
  params: unknown;
92
- }, never, "error" | "idle" | "loading" | "display" | "submitting" | "closed" | "finished", string, MandatoryConsentInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
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: xstate0.StateMachine<MandatoryConsentCont
98
98
  spawn: {
99
99
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
100
100
  src: "fetchConsent";
101
- logic: xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
101
+ logic: xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
102
102
  config: MandatoryConsentConfig;
103
- }, xstate0.EventObject>;
103
+ }, xstate67.EventObject>;
104
104
  id: string | undefined;
105
105
  } extends infer T ? T extends {
106
106
  src: "fetchConsent";
107
- logic: xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
107
+ logic: xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
108
108
  config: MandatoryConsentConfig;
109
- }, xstate0.EventObject>;
109
+ }, xstate67.EventObject>;
110
110
  id: string | undefined;
111
111
  } ? T extends {
112
112
  src: TSrc;
113
- } ? xstate0.ConditionalRequired<[options?: ({
113
+ } ? xstate67.ConditionalRequired<[options?: ({
114
114
  id?: T["id"] | undefined;
115
115
  systemId?: string;
116
- input?: xstate0.InputFrom<T["logic"]> | undefined;
116
+ input?: xstate67.InputFrom<T["logic"]> | undefined;
117
117
  syncSnapshot?: boolean;
118
- } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
118
+ } & { [K in xstate67.RequiredActorOptions<T>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T>>> : never : never : never) | ({
119
119
  src: "submitConsent";
120
- logic: xstate0.PromiseActorLogic<void, {
120
+ logic: xstate67.PromiseActorLogic<void, {
121
121
  consentId: string;
122
122
  isSigned: boolean;
123
- }, xstate0.EventObject>;
123
+ }, xstate67.EventObject>;
124
124
  id: string | undefined;
125
125
  } extends infer T_1 ? T_1 extends {
126
126
  src: "submitConsent";
127
- logic: xstate0.PromiseActorLogic<void, {
127
+ logic: xstate67.PromiseActorLogic<void, {
128
128
  consentId: string;
129
129
  isSigned: boolean;
130
- }, xstate0.EventObject>;
130
+ }, xstate67.EventObject>;
131
131
  id: string | undefined;
132
132
  } ? T_1 extends {
133
133
  src: TSrc;
134
- } ? xstate0.ConditionalRequired<[options?: ({
134
+ } ? xstate67.ConditionalRequired<[options?: ({
135
135
  id?: T_1["id"] | undefined;
136
136
  systemId?: string;
137
- input?: xstate0.InputFrom<T_1["logic"]> | undefined;
137
+ input?: xstate67.InputFrom<T_1["logic"]> | undefined;
138
138
  syncSnapshot?: boolean;
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<{
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: xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
142
+ logic: xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
143
143
  config: MandatoryConsentConfig;
144
- }, xstate0.EventObject>;
144
+ }, xstate67.EventObject>;
145
145
  id: string | undefined;
146
146
  };
147
147
  submitConsent: {
148
148
  src: "submitConsent";
149
- logic: xstate0.PromiseActorLogic<void, {
149
+ logic: xstate67.PromiseActorLogic<void, {
150
150
  consentId: string;
151
151
  isSigned: boolean;
152
- }, xstate0.EventObject>;
152
+ }, xstate67.EventObject>;
153
153
  id: string | undefined;
154
154
  };
155
155
  }>, "src", TSrc>["logic"]>;
156
- <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
156
+ <TLogic extends xstate67.AnyActorLogic>(src: TLogic, ...[options]: xstate67.ConditionalRequired<[options?: ({
157
157
  id?: never;
158
158
  systemId?: string;
159
- input?: xstate0.InputFrom<TLogic> | undefined;
159
+ input?: xstate67.InputFrom<TLogic> | undefined;
160
160
  syncSnapshot?: boolean;
161
- } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
161
+ } & { [K in xstate67.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredLogicInput<TLogic>>>): xstate67.ActorRefFromLogic<TLogic>;
162
162
  };
163
163
  input: MandatoryConsentInput;
164
- self: xstate0.ActorRef<xstate0.MachineSnapshot<MandatoryConsentContext, {
164
+ self: xstate67.ActorRef<xstate67.MachineSnapshot<MandatoryConsentContext, {
165
165
  type: "LOAD";
166
166
  } | {
167
167
  type: "TOGGLE";
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
173
173
  type: "RETRY";
174
174
  } | {
175
175
  type: "RESET";
176
- }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
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: xstate0.StateMachine<MandatoryConsentCont
185
185
  type: "RETRY";
186
186
  } | {
187
187
  type: "RESET";
188
- }, xstate0.AnyEventObject>;
188
+ }, xstate67.AnyEventObject>;
189
189
  }) => {
190
190
  config: MandatoryConsentConfig;
191
191
  consent: undefined;
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
222
222
  } | {
223
223
  type: "RESET";
224
224
  };
225
- self: xstate0.ActorRef<xstate0.MachineSnapshot<MandatoryConsentContext, {
225
+ self: xstate67.ActorRef<xstate67.MachineSnapshot<MandatoryConsentContext, {
226
226
  type: "LOAD";
227
227
  } | {
228
228
  type: "TOGGLE";
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
234
234
  type: "RETRY";
235
235
  } | {
236
236
  type: "RESET";
237
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
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: xstate0.StateMachine<MandatoryConsentCont
246
246
  type: "RETRY";
247
247
  } | {
248
248
  type: "RESET";
249
- }, xstate0.AnyEventObject>;
249
+ }, xstate67.AnyEventObject>;
250
250
  }) => {
251
251
  config: MandatoryConsentConfig;
252
252
  };
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
299
299
  } | {
300
300
  type: "RESET";
301
301
  };
302
- self: xstate0.ActorRef<xstate0.MachineSnapshot<MandatoryConsentContext, {
302
+ self: xstate67.ActorRef<xstate67.MachineSnapshot<MandatoryConsentContext, {
303
303
  type: "LOAD";
304
304
  } | {
305
305
  type: "TOGGLE";
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
311
311
  type: "RETRY";
312
312
  } | {
313
313
  type: "RESET";
314
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
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: xstate0.StateMachine<MandatoryConsentCont
323
323
  type: "RETRY";
324
324
  } | {
325
325
  type: "RESET";
326
- }, xstate0.AnyEventObject>;
326
+ }, xstate67.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-20260408-a355630",
3
+ "version": "0.0.0-dev-20260409-a38d5e8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -126,8 +126,8 @@
126
126
  "tsdown": "^0.16.6",
127
127
  "typescript": "^5.9.3",
128
128
  "vitest": "^4.0.13",
129
- "@incodetech/config": "1.0.0",
130
- "@incodetech/infra": "1.0.0"
129
+ "@incodetech/infra": "1.0.0",
130
+ "@incodetech/config": "1.0.0"
131
131
  },
132
132
  "scripts": {
133
133
  "build": "tsdown -c tsdown.config.ts",