@incodetech/core 0.0.0-dev-20260324-90ddcfd → 0.0.0-dev-20260324-1873051

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,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-BWqHEUjI.js";
2
- import * as xstate285 from "xstate";
2
+ import * as xstate0 from "xstate";
3
3
 
4
4
  //#region src/modules/consent/types.d.ts
5
5
  type ConsentConfig = {
@@ -35,7 +35,7 @@ type ConsentContext = {
35
35
  type ConsentInput = {
36
36
  config: ConsentConfig;
37
37
  };
38
- declare const consentMachine: xstate285.StateMachine<ConsentContext, {
38
+ declare const consentMachine: xstate0.StateMachine<ConsentContext, {
39
39
  type: "LOAD";
40
40
  } | {
41
41
  type: "TOGGLE_CHECKBOX";
@@ -47,53 +47,53 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
47
47
  } | {
48
48
  type: "RESET";
49
49
  }, {
50
- [x: string]: xstate285.ActorRefFromLogic<xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
50
+ [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
51
51
  consentId: string;
52
- }, xstate285.EventObject>> | xstate285.ActorRefFromLogic<xstate285.PromiseActorLogic<void, {
52
+ }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
53
53
  languageConsentId: string;
54
54
  checkboxes: ConsentCheckbox[];
55
- }, xstate285.EventObject>> | undefined;
56
- }, xstate285.Values<{
55
+ }, xstate0.EventObject>> | undefined;
56
+ }, xstate0.Values<{
57
57
  fetchConsent: {
58
58
  src: "fetchConsent";
59
- logic: xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
59
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
60
60
  consentId: string;
61
- }, xstate285.EventObject>;
61
+ }, xstate0.EventObject>;
62
62
  id: string | undefined;
63
63
  };
64
64
  submitConsent: {
65
65
  src: "submitConsent";
66
- logic: xstate285.PromiseActorLogic<void, {
66
+ logic: xstate0.PromiseActorLogic<void, {
67
67
  languageConsentId: string;
68
68
  checkboxes: ConsentCheckbox[];
69
- }, xstate285.EventObject>;
69
+ }, xstate0.EventObject>;
70
70
  id: string | undefined;
71
71
  };
72
- }>, xstate285.Values<{
73
- clearError: {
74
- type: "clearError";
75
- params: xstate285.NonReducibleUnknown;
72
+ }>, xstate0.Values<{
73
+ setConsentData: {
74
+ type: "setConsentData";
75
+ params: xstate0.NonReducibleUnknown;
76
76
  };
77
- resetContext: {
78
- type: "resetContext";
79
- params: xstate285.NonReducibleUnknown;
77
+ toggleCheckbox: {
78
+ type: "toggleCheckbox";
79
+ params: xstate0.NonReducibleUnknown;
80
80
  };
81
81
  setError: {
82
82
  type: "setError";
83
- params: xstate285.NonReducibleUnknown;
83
+ params: xstate0.NonReducibleUnknown;
84
84
  };
85
- setConsentData: {
86
- type: "setConsentData";
87
- params: xstate285.NonReducibleUnknown;
85
+ clearError: {
86
+ type: "clearError";
87
+ params: xstate0.NonReducibleUnknown;
88
88
  };
89
- toggleCheckbox: {
90
- type: "toggleCheckbox";
91
- params: xstate285.NonReducibleUnknown;
89
+ resetContext: {
90
+ type: "resetContext";
91
+ params: xstate0.NonReducibleUnknown;
92
92
  };
93
93
  }>, {
94
94
  type: "canSubmit";
95
95
  params: unknown;
96
- }, never, "error" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput, xstate285.NonReducibleUnknown, xstate285.EventObject, xstate285.MetaObject, {
96
+ }, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished", string, ConsentInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
97
97
  readonly id: "consent";
98
98
  readonly initial: "idle";
99
99
  readonly context: ({
@@ -102,70 +102,70 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
102
102
  spawn: {
103
103
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
104
104
  src: "fetchConsent";
105
- logic: xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
105
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
106
106
  consentId: string;
107
- }, xstate285.EventObject>;
107
+ }, xstate0.EventObject>;
108
108
  id: string | undefined;
109
109
  } extends infer T ? T extends {
110
110
  src: "fetchConsent";
111
- logic: xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
111
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
112
112
  consentId: string;
113
- }, xstate285.EventObject>;
113
+ }, xstate0.EventObject>;
114
114
  id: string | undefined;
115
115
  } ? T extends {
116
116
  src: TSrc;
117
- } ? xstate285.ConditionalRequired<[options?: ({
117
+ } ? xstate0.ConditionalRequired<[options?: ({
118
118
  id?: T["id"] | undefined;
119
119
  systemId?: string;
120
- input?: xstate285.InputFrom<T["logic"]> | undefined;
120
+ input?: xstate0.InputFrom<T["logic"]> | undefined;
121
121
  syncSnapshot?: boolean;
122
- } & { [K in xstate285.RequiredActorOptions<T>]: unknown }) | undefined], xstate285.IsNotNever<xstate285.RequiredActorOptions<T>>> : never : never : never) | ({
122
+ } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
123
123
  src: "submitConsent";
124
- logic: xstate285.PromiseActorLogic<void, {
124
+ logic: xstate0.PromiseActorLogic<void, {
125
125
  languageConsentId: string;
126
126
  checkboxes: ConsentCheckbox[];
127
- }, xstate285.EventObject>;
127
+ }, xstate0.EventObject>;
128
128
  id: string | undefined;
129
129
  } extends infer T_1 ? T_1 extends {
130
130
  src: "submitConsent";
131
- logic: xstate285.PromiseActorLogic<void, {
131
+ logic: xstate0.PromiseActorLogic<void, {
132
132
  languageConsentId: string;
133
133
  checkboxes: ConsentCheckbox[];
134
- }, xstate285.EventObject>;
134
+ }, xstate0.EventObject>;
135
135
  id: string | undefined;
136
136
  } ? T_1 extends {
137
137
  src: TSrc;
138
- } ? xstate285.ConditionalRequired<[options?: ({
138
+ } ? xstate0.ConditionalRequired<[options?: ({
139
139
  id?: T_1["id"] | undefined;
140
140
  systemId?: string;
141
- input?: xstate285.InputFrom<T_1["logic"]> | undefined;
141
+ input?: xstate0.InputFrom<T_1["logic"]> | undefined;
142
142
  syncSnapshot?: boolean;
143
- } & { [K_1 in xstate285.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate285.IsNotNever<xstate285.RequiredActorOptions<T_1>>> : never : never : never)): xstate285.ActorRefFromLogic<xstate285.GetConcreteByKey<xstate285.Values<{
143
+ } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
144
144
  fetchConsent: {
145
145
  src: "fetchConsent";
146
- logic: xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
146
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
147
147
  consentId: string;
148
- }, xstate285.EventObject>;
148
+ }, xstate0.EventObject>;
149
149
  id: string | undefined;
150
150
  };
151
151
  submitConsent: {
152
152
  src: "submitConsent";
153
- logic: xstate285.PromiseActorLogic<void, {
153
+ logic: xstate0.PromiseActorLogic<void, {
154
154
  languageConsentId: string;
155
155
  checkboxes: ConsentCheckbox[];
156
- }, xstate285.EventObject>;
156
+ }, xstate0.EventObject>;
157
157
  id: string | undefined;
158
158
  };
159
159
  }>, "src", TSrc>["logic"]>;
160
- <TLogic extends xstate285.AnyActorLogic>(src: TLogic, ...[options]: xstate285.ConditionalRequired<[options?: ({
160
+ <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
161
161
  id?: never;
162
162
  systemId?: string;
163
- input?: xstate285.InputFrom<TLogic> | undefined;
163
+ input?: xstate0.InputFrom<TLogic> | undefined;
164
164
  syncSnapshot?: boolean;
165
- } & { [K in xstate285.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate285.IsNotNever<xstate285.RequiredLogicInput<TLogic>>>): xstate285.ActorRefFromLogic<TLogic>;
165
+ } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
166
166
  };
167
167
  input: ConsentInput;
168
- self: xstate285.ActorRef<xstate285.MachineSnapshot<ConsentContext, {
168
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
169
169
  type: "LOAD";
170
170
  } | {
171
171
  type: "TOGGLE_CHECKBOX";
@@ -176,7 +176,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
176
176
  type: "RETRY";
177
177
  } | {
178
178
  type: "RESET";
179
- }, Record<string, xstate285.AnyActorRef | undefined>, xstate285.StateValue, string, unknown, any, any>, {
179
+ }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
180
180
  type: "LOAD";
181
181
  } | {
182
182
  type: "TOGGLE_CHECKBOX";
@@ -187,7 +187,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
187
187
  type: "RETRY";
188
188
  } | {
189
189
  type: "RESET";
190
- }, xstate285.AnyEventObject>;
190
+ }, xstate0.AnyEventObject>;
191
191
  }) => {
192
192
  config: ConsentConfig;
193
193
  title: string;
@@ -225,7 +225,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
225
225
  } | {
226
226
  type: "RESET";
227
227
  };
228
- self: xstate285.ActorRef<xstate285.MachineSnapshot<ConsentContext, {
228
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
229
229
  type: "LOAD";
230
230
  } | {
231
231
  type: "TOGGLE_CHECKBOX";
@@ -236,7 +236,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
236
236
  type: "RETRY";
237
237
  } | {
238
238
  type: "RESET";
239
- }, Record<string, xstate285.AnyActorRef>, xstate285.StateValue, string, unknown, any, any>, {
239
+ }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
240
240
  type: "LOAD";
241
241
  } | {
242
242
  type: "TOGGLE_CHECKBOX";
@@ -247,7 +247,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
247
247
  type: "RETRY";
248
248
  } | {
249
249
  type: "RESET";
250
- }, xstate285.AnyEventObject>;
250
+ }, xstate0.AnyEventObject>;
251
251
  }) => {
252
252
  consentId: string;
253
253
  };
@@ -296,7 +296,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
296
296
  } | {
297
297
  type: "RESET";
298
298
  };
299
- self: xstate285.ActorRef<xstate285.MachineSnapshot<ConsentContext, {
299
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
300
300
  type: "LOAD";
301
301
  } | {
302
302
  type: "TOGGLE_CHECKBOX";
@@ -307,7 +307,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
307
307
  type: "RETRY";
308
308
  } | {
309
309
  type: "RESET";
310
- }, Record<string, xstate285.AnyActorRef>, xstate285.StateValue, string, unknown, any, any>, {
310
+ }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
311
311
  type: "LOAD";
312
312
  } | {
313
313
  type: "TOGGLE_CHECKBOX";
@@ -318,7 +318,7 @@ declare const consentMachine: xstate285.StateMachine<ConsentContext, {
318
318
  type: "RETRY";
319
319
  } | {
320
320
  type: "RESET";
321
- }, xstate285.AnyEventObject>;
321
+ }, xstate0.AnyEventObject>;
322
322
  }) => {
323
323
  languageConsentId: string;
324
324
  checkboxes: ConsentCheckbox[];
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-BWqHEUjI.js";
2
2
  import { t as CameraStream } from "./camera-BCRgkMoe.js";
3
- import * as xstate0 from "xstate";
3
+ import * as xstate131 from "xstate";
4
4
 
5
5
  //#region src/modules/document-capture/types.d.ts
6
6
  type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
@@ -72,7 +72,7 @@ type DocumentCaptureInput = {
72
72
  };
73
73
  //#endregion
74
74
  //#region src/modules/document-capture/documentCaptureStateMachine.d.ts
75
- declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContext, {
75
+ declare const documentCaptureMachine: xstate131.StateMachine<DocumentCaptureContext, {
76
76
  type: "CAPTURE";
77
77
  } | {
78
78
  type: "FILE_SELECTED";
@@ -95,84 +95,84 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
95
95
  } | {
96
96
  type: "CLOSE";
97
97
  }, {
98
- [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<DocumentUploadResponse, {
98
+ [x: string]: xstate131.ActorRefFromLogic<xstate131.PromiseActorLogic<MediaStream, void, xstate131.EventObject>> | xstate131.ActorRefFromLogic<xstate131.PromiseActorLogic<DocumentUploadResponse, {
99
99
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
100
100
  processingType: string;
101
101
  onProgress: (progress: number) => void;
102
- }, xstate0.EventObject>> | undefined;
103
- }, xstate0.Values<{
102
+ }, xstate131.EventObject>> | undefined;
103
+ }, xstate131.Values<{
104
104
  initCamera: {
105
105
  src: "initCamera";
106
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
106
+ logic: xstate131.PromiseActorLogic<MediaStream, void, xstate131.EventObject>;
107
107
  id: string | undefined;
108
108
  };
109
109
  uploadDocument: {
110
110
  src: "uploadDocument";
111
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
111
+ logic: xstate131.PromiseActorLogic<DocumentUploadResponse, {
112
112
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
113
113
  processingType: string;
114
114
  onProgress: (progress: number) => void;
115
- }, xstate0.EventObject>;
115
+ }, xstate131.EventObject>;
116
116
  id: string | undefined;
117
117
  };
118
- }>, xstate0.Values<{
118
+ }>, xstate131.Values<{
119
+ clearError: {
120
+ type: "clearError";
121
+ params: xstate131.NonReducibleUnknown;
122
+ };
119
123
  setStream: {
120
124
  type: "setStream";
121
- params: xstate0.NonReducibleUnknown;
125
+ params: xstate131.NonReducibleUnknown;
126
+ };
127
+ setProgress: {
128
+ type: "setProgress";
129
+ params: xstate131.NonReducibleUnknown;
130
+ };
131
+ stopStream: {
132
+ type: "stopStream";
133
+ params: xstate131.NonReducibleUnknown;
122
134
  };
123
135
  setCapturedDocument: {
124
136
  type: "setCapturedDocument";
125
- params: xstate0.NonReducibleUnknown;
137
+ params: xstate131.NonReducibleUnknown;
126
138
  };
127
139
  setFileTooLargeError: {
128
140
  type: "setFileTooLargeError";
129
- params: xstate0.NonReducibleUnknown;
130
- };
131
- setProgress: {
132
- type: "setProgress";
133
- params: xstate0.NonReducibleUnknown;
141
+ params: xstate131.NonReducibleUnknown;
134
142
  };
135
143
  setUploadError: {
136
144
  type: "setUploadError";
137
- params: xstate0.NonReducibleUnknown;
145
+ params: xstate131.NonReducibleUnknown;
138
146
  };
139
147
  decrementAttemptsRemaining: {
140
148
  type: "decrementAttemptsRemaining";
141
- params: xstate0.NonReducibleUnknown;
149
+ params: xstate131.NonReducibleUnknown;
142
150
  };
143
151
  setCaptureMethodFile: {
144
152
  type: "setCaptureMethodFile";
145
- params: xstate0.NonReducibleUnknown;
153
+ params: xstate131.NonReducibleUnknown;
146
154
  };
147
155
  setCaptureMethodCamera: {
148
156
  type: "setCaptureMethodCamera";
149
- params: xstate0.NonReducibleUnknown;
157
+ params: xstate131.NonReducibleUnknown;
150
158
  };
151
159
  clearCapturedDocument: {
152
160
  type: "clearCapturedDocument";
153
- params: xstate0.NonReducibleUnknown;
161
+ params: xstate131.NonReducibleUnknown;
154
162
  };
155
163
  setPendingNextPage: {
156
164
  type: "setPendingNextPage";
157
- params: xstate0.NonReducibleUnknown;
165
+ params: xstate131.NonReducibleUnknown;
158
166
  };
159
167
  clearForNextPage: {
160
168
  type: "clearForNextPage";
161
- params: xstate0.NonReducibleUnknown;
162
- };
163
- clearError: {
164
- type: "clearError";
165
- params: xstate0.NonReducibleUnknown;
169
+ params: xstate131.NonReducibleUnknown;
166
170
  };
167
171
  resetProgress: {
168
172
  type: "resetProgress";
169
- params: xstate0.NonReducibleUnknown;
170
- };
171
- stopStream: {
172
- type: "stopStream";
173
- params: xstate0.NonReducibleUnknown;
173
+ params: xstate131.NonReducibleUnknown;
174
174
  };
175
- }>, xstate0.Values<{
175
+ }>, xstate131.Values<{
176
176
  allowSkip: {
177
177
  type: "allowSkip";
178
178
  params: unknown;
@@ -209,7 +209,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
209
209
  type: "isPendingNextPage";
210
210
  params: unknown;
211
211
  };
212
- }>, never, "initCamera" | "tutorial" | "capturing" | "preview" | "finished" | "closed" | "failure" | "uploading" | "success", string, DocumentCaptureInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
212
+ }>, never, "finished" | "initCamera" | "capturing" | "closed" | "uploading" | "tutorial" | "preview" | "failure" | "success", string, DocumentCaptureInput, xstate131.NonReducibleUnknown, xstate131.EventObject, xstate131.MetaObject, {
213
213
  readonly id: "documentCapture";
214
214
  readonly initial: "tutorial";
215
215
  readonly context: ({
@@ -218,67 +218,67 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
218
218
  spawn: {
219
219
  <TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
220
220
  src: "initCamera";
221
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
221
+ logic: xstate131.PromiseActorLogic<MediaStream, void, xstate131.EventObject>;
222
222
  id: string | undefined;
223
223
  } extends infer T ? T extends {
224
224
  src: "initCamera";
225
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
225
+ logic: xstate131.PromiseActorLogic<MediaStream, void, xstate131.EventObject>;
226
226
  id: string | undefined;
227
227
  } ? T extends {
228
228
  src: TSrc;
229
- } ? xstate0.ConditionalRequired<[options?: ({
229
+ } ? xstate131.ConditionalRequired<[options?: ({
230
230
  id?: T["id"] | undefined;
231
231
  systemId?: string;
232
- input?: xstate0.InputFrom<T["logic"]> | undefined;
232
+ input?: xstate131.InputFrom<T["logic"]> | undefined;
233
233
  syncSnapshot?: boolean;
234
- } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
234
+ } & { [K in xstate131.RequiredActorOptions<T>]: unknown }) | undefined], xstate131.IsNotNever<xstate131.RequiredActorOptions<T>>> : never : never : never) | ({
235
235
  src: "uploadDocument";
236
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
236
+ logic: xstate131.PromiseActorLogic<DocumentUploadResponse, {
237
237
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
238
238
  processingType: string;
239
239
  onProgress: (progress: number) => void;
240
- }, xstate0.EventObject>;
240
+ }, xstate131.EventObject>;
241
241
  id: string | undefined;
242
242
  } extends infer T_1 ? T_1 extends {
243
243
  src: "uploadDocument";
244
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
244
+ logic: xstate131.PromiseActorLogic<DocumentUploadResponse, {
245
245
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
246
246
  processingType: string;
247
247
  onProgress: (progress: number) => void;
248
- }, xstate0.EventObject>;
248
+ }, xstate131.EventObject>;
249
249
  id: string | undefined;
250
250
  } ? T_1 extends {
251
251
  src: TSrc;
252
- } ? xstate0.ConditionalRequired<[options?: ({
252
+ } ? xstate131.ConditionalRequired<[options?: ({
253
253
  id?: T_1["id"] | undefined;
254
254
  systemId?: string;
255
- input?: xstate0.InputFrom<T_1["logic"]> | undefined;
255
+ input?: xstate131.InputFrom<T_1["logic"]> | undefined;
256
256
  syncSnapshot?: boolean;
257
- } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
257
+ } & { [K_1 in xstate131.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate131.IsNotNever<xstate131.RequiredActorOptions<T_1>>> : never : never : never)): xstate131.ActorRefFromLogic<xstate131.GetConcreteByKey<xstate131.Values<{
258
258
  initCamera: {
259
259
  src: "initCamera";
260
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
260
+ logic: xstate131.PromiseActorLogic<MediaStream, void, xstate131.EventObject>;
261
261
  id: string | undefined;
262
262
  };
263
263
  uploadDocument: {
264
264
  src: "uploadDocument";
265
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
265
+ logic: xstate131.PromiseActorLogic<DocumentUploadResponse, {
266
266
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
267
267
  processingType: string;
268
268
  onProgress: (progress: number) => void;
269
- }, xstate0.EventObject>;
269
+ }, xstate131.EventObject>;
270
270
  id: string | undefined;
271
271
  };
272
272
  }>, "src", TSrc>["logic"]>;
273
- <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
273
+ <TLogic extends xstate131.AnyActorLogic>(src: TLogic, ...[options]: xstate131.ConditionalRequired<[options?: ({
274
274
  id?: never;
275
275
  systemId?: string;
276
- input?: xstate0.InputFrom<TLogic> | undefined;
276
+ input?: xstate131.InputFrom<TLogic> | undefined;
277
277
  syncSnapshot?: boolean;
278
- } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
278
+ } & { [K in xstate131.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate131.IsNotNever<xstate131.RequiredLogicInput<TLogic>>>): xstate131.ActorRefFromLogic<TLogic>;
279
279
  };
280
280
  input: DocumentCaptureInput;
281
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
281
+ self: xstate131.ActorRef<xstate131.MachineSnapshot<DocumentCaptureContext, {
282
282
  type: "CAPTURE";
283
283
  } | {
284
284
  type: "FILE_SELECTED";
@@ -300,7 +300,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
300
300
  type: "SKIP";
301
301
  } | {
302
302
  type: "CLOSE";
303
- }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
303
+ }, Record<string, xstate131.AnyActorRef | undefined>, xstate131.StateValue, string, unknown, any, any>, {
304
304
  type: "CAPTURE";
305
305
  } | {
306
306
  type: "FILE_SELECTED";
@@ -322,7 +322,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
322
322
  type: "SKIP";
323
323
  } | {
324
324
  type: "CLOSE";
325
- }, xstate0.AnyEventObject>;
325
+ }, xstate131.AnyEventObject>;
326
326
  }) => {
327
327
  config: {
328
328
  processingType: DocumentType;
@@ -459,7 +459,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
459
459
  } | {
460
460
  type: "CLOSE";
461
461
  };
462
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
462
+ self: xstate131.ActorRef<xstate131.MachineSnapshot<DocumentCaptureContext, {
463
463
  type: "CAPTURE";
464
464
  } | {
465
465
  type: "FILE_SELECTED";
@@ -481,7 +481,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
481
481
  type: "SKIP";
482
482
  } | {
483
483
  type: "CLOSE";
484
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
484
+ }, Record<string, xstate131.AnyActorRef>, xstate131.StateValue, string, unknown, any, any>, {
485
485
  type: "CAPTURE";
486
486
  } | {
487
487
  type: "FILE_SELECTED";
@@ -503,7 +503,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
503
503
  type: "SKIP";
504
504
  } | {
505
505
  type: "CLOSE";
506
- }, xstate0.AnyEventObject>;
506
+ }, xstate131.AnyEventObject>;
507
507
  }) => {
508
508
  capturedDocument: CapturedDocument;
509
509
  processingType: DocumentType;
@@ -1,10 +1,10 @@
1
1
  import { t as Manager } from "./Manager-BWqHEUjI.js";
2
2
  import "./camera-BCRgkMoe.js";
3
3
  import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-BYFeUhw0.js";
4
- import * as xstate353 from "xstate";
4
+ import * as xstate67 from "xstate";
5
5
 
6
6
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
7
- declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContext, {
7
+ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext, {
8
8
  type: "START";
9
9
  } | {
10
10
  type: "CAPTURE";
@@ -17,52 +17,52 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
17
17
  } | {
18
18
  type: "CLOSE";
19
19
  }, {
20
- [x: string]: xstate353.ActorRefFromLogic<xstate353.PromiseActorLogic<MediaStream, void, xstate353.EventObject>> | xstate353.ActorRefFromLogic<xstate353.PromiseActorLogic<void, {
20
+ [x: string]: xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>> | xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<void, {
21
21
  imageBase64: string;
22
22
  documentType: string;
23
23
  onProgress: (progress: number) => void;
24
- }, xstate353.EventObject>> | undefined;
25
- }, xstate353.Values<{
24
+ }, xstate67.EventObject>> | undefined;
25
+ }, xstate67.Values<{
26
26
  initCamera: {
27
27
  src: "initCamera";
28
- logic: xstate353.PromiseActorLogic<MediaStream, void, xstate353.EventObject>;
28
+ logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
29
29
  id: string | undefined;
30
30
  };
31
31
  uploadDocument: {
32
32
  src: "uploadDocument";
33
- logic: xstate353.PromiseActorLogic<void, {
33
+ logic: xstate67.PromiseActorLogic<void, {
34
34
  imageBase64: string;
35
35
  documentType: string;
36
36
  onProgress: (progress: number) => void;
37
- }, xstate353.EventObject>;
37
+ }, xstate67.EventObject>;
38
38
  id: string | undefined;
39
39
  };
40
- }>, xstate353.Values<{
40
+ }>, xstate67.Values<{
41
+ setError: {
42
+ type: "setError";
43
+ params: xstate67.NonReducibleUnknown;
44
+ };
45
+ clearError: {
46
+ type: "clearError";
47
+ params: xstate67.NonReducibleUnknown;
48
+ };
41
49
  setStream: {
42
50
  type: "setStream";
43
- params: xstate353.NonReducibleUnknown;
51
+ params: xstate67.NonReducibleUnknown;
52
+ };
53
+ setImageAndClearError: {
54
+ type: "setImageAndClearError";
55
+ params: xstate67.NonReducibleUnknown;
44
56
  };
45
57
  setProgress: {
46
58
  type: "setProgress";
47
- params: xstate353.NonReducibleUnknown;
48
- };
49
- clearError: {
50
- type: "clearError";
51
- params: xstate353.NonReducibleUnknown;
59
+ params: xstate67.NonReducibleUnknown;
52
60
  };
53
61
  stopStream: {
54
62
  type: "stopStream";
55
- params: xstate353.NonReducibleUnknown;
56
- };
57
- setError: {
58
- type: "setError";
59
- params: xstate353.NonReducibleUnknown;
60
- };
61
- setImageAndClearError: {
62
- type: "setImageAndClearError";
63
- params: xstate353.NonReducibleUnknown;
63
+ params: xstate67.NonReducibleUnknown;
64
64
  };
65
- }>, never, never, "error" | "initCamera" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate353.NonReducibleUnknown, xstate353.EventObject, xstate353.MetaObject, {
65
+ }>, never, never, "error" | "idle" | "finished" | "initCamera" | "capturing" | "closed" | "uploading", string, DocumentUploadInput, xstate67.NonReducibleUnknown, xstate67.EventObject, xstate67.MetaObject, {
66
66
  readonly id: "documentUpload";
67
67
  readonly initial: "idle";
68
68
  readonly context: ({
@@ -71,67 +71,67 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
71
71
  spawn: {
72
72
  <TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
73
73
  src: "initCamera";
74
- logic: xstate353.PromiseActorLogic<MediaStream, void, xstate353.EventObject>;
74
+ logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
75
75
  id: string | undefined;
76
76
  } extends infer T ? T extends {
77
77
  src: "initCamera";
78
- logic: xstate353.PromiseActorLogic<MediaStream, void, xstate353.EventObject>;
78
+ logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
79
79
  id: string | undefined;
80
80
  } ? T extends {
81
81
  src: TSrc;
82
- } ? xstate353.ConditionalRequired<[options?: ({
82
+ } ? xstate67.ConditionalRequired<[options?: ({
83
83
  id?: T["id"] | undefined;
84
84
  systemId?: string;
85
- input?: xstate353.InputFrom<T["logic"]> | undefined;
85
+ input?: xstate67.InputFrom<T["logic"]> | undefined;
86
86
  syncSnapshot?: boolean;
87
- } & { [K in xstate353.RequiredActorOptions<T>]: unknown }) | undefined], xstate353.IsNotNever<xstate353.RequiredActorOptions<T>>> : never : never : never) | ({
87
+ } & { [K in xstate67.RequiredActorOptions<T>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T>>> : never : never : never) | ({
88
88
  src: "uploadDocument";
89
- logic: xstate353.PromiseActorLogic<void, {
89
+ logic: xstate67.PromiseActorLogic<void, {
90
90
  imageBase64: string;
91
91
  documentType: string;
92
92
  onProgress: (progress: number) => void;
93
- }, xstate353.EventObject>;
93
+ }, xstate67.EventObject>;
94
94
  id: string | undefined;
95
95
  } extends infer T_1 ? T_1 extends {
96
96
  src: "uploadDocument";
97
- logic: xstate353.PromiseActorLogic<void, {
97
+ logic: xstate67.PromiseActorLogic<void, {
98
98
  imageBase64: string;
99
99
  documentType: string;
100
100
  onProgress: (progress: number) => void;
101
- }, xstate353.EventObject>;
101
+ }, xstate67.EventObject>;
102
102
  id: string | undefined;
103
103
  } ? T_1 extends {
104
104
  src: TSrc;
105
- } ? xstate353.ConditionalRequired<[options?: ({
105
+ } ? xstate67.ConditionalRequired<[options?: ({
106
106
  id?: T_1["id"] | undefined;
107
107
  systemId?: string;
108
- input?: xstate353.InputFrom<T_1["logic"]> | undefined;
108
+ input?: xstate67.InputFrom<T_1["logic"]> | undefined;
109
109
  syncSnapshot?: boolean;
110
- } & { [K_1 in xstate353.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate353.IsNotNever<xstate353.RequiredActorOptions<T_1>>> : never : never : never)): xstate353.ActorRefFromLogic<xstate353.GetConcreteByKey<xstate353.Values<{
110
+ } & { [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
111
  initCamera: {
112
112
  src: "initCamera";
113
- logic: xstate353.PromiseActorLogic<MediaStream, void, xstate353.EventObject>;
113
+ logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
114
114
  id: string | undefined;
115
115
  };
116
116
  uploadDocument: {
117
117
  src: "uploadDocument";
118
- logic: xstate353.PromiseActorLogic<void, {
118
+ logic: xstate67.PromiseActorLogic<void, {
119
119
  imageBase64: string;
120
120
  documentType: string;
121
121
  onProgress: (progress: number) => void;
122
- }, xstate353.EventObject>;
122
+ }, xstate67.EventObject>;
123
123
  id: string | undefined;
124
124
  };
125
125
  }>, "src", TSrc>["logic"]>;
126
- <TLogic extends xstate353.AnyActorLogic>(src: TLogic, ...[options]: xstate353.ConditionalRequired<[options?: ({
126
+ <TLogic extends xstate67.AnyActorLogic>(src: TLogic, ...[options]: xstate67.ConditionalRequired<[options?: ({
127
127
  id?: never;
128
128
  systemId?: string;
129
- input?: xstate353.InputFrom<TLogic> | undefined;
129
+ input?: xstate67.InputFrom<TLogic> | undefined;
130
130
  syncSnapshot?: boolean;
131
- } & { [K in xstate353.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate353.IsNotNever<xstate353.RequiredLogicInput<TLogic>>>): xstate353.ActorRefFromLogic<TLogic>;
131
+ } & { [K in xstate67.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredLogicInput<TLogic>>>): xstate67.ActorRefFromLogic<TLogic>;
132
132
  };
133
133
  input: DocumentUploadInput;
134
- self: xstate353.ActorRef<xstate353.MachineSnapshot<DocumentUploadContext, {
134
+ self: xstate67.ActorRef<xstate67.MachineSnapshot<DocumentUploadContext, {
135
135
  type: "START";
136
136
  } | {
137
137
  type: "CAPTURE";
@@ -143,7 +143,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
143
143
  type: "RETRY";
144
144
  } | {
145
145
  type: "CLOSE";
146
- }, Record<string, xstate353.AnyActorRef | undefined>, xstate353.StateValue, string, unknown, any, any>, {
146
+ }, Record<string, xstate67.AnyActorRef | undefined>, xstate67.StateValue, string, unknown, any, any>, {
147
147
  type: "START";
148
148
  } | {
149
149
  type: "CAPTURE";
@@ -155,7 +155,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
155
155
  type: "RETRY";
156
156
  } | {
157
157
  type: "CLOSE";
158
- }, xstate353.AnyEventObject>;
158
+ }, xstate67.AnyEventObject>;
159
159
  }) => {
160
160
  config: DocumentUploadConfig;
161
161
  stream: undefined;
@@ -225,7 +225,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
225
225
  } | {
226
226
  type: "CLOSE";
227
227
  };
228
- self: xstate353.ActorRef<xstate353.MachineSnapshot<DocumentUploadContext, {
228
+ self: xstate67.ActorRef<xstate67.MachineSnapshot<DocumentUploadContext, {
229
229
  type: "START";
230
230
  } | {
231
231
  type: "CAPTURE";
@@ -237,7 +237,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
237
237
  type: "RETRY";
238
238
  } | {
239
239
  type: "CLOSE";
240
- }, Record<string, xstate353.AnyActorRef>, xstate353.StateValue, string, unknown, any, any>, {
240
+ }, Record<string, xstate67.AnyActorRef>, xstate67.StateValue, string, unknown, any, any>, {
241
241
  type: "START";
242
242
  } | {
243
243
  type: "CAPTURE";
@@ -249,7 +249,7 @@ declare const documentUploadMachine: xstate353.StateMachine<DocumentUploadContex
249
249
  type: "RETRY";
250
250
  } | {
251
251
  type: "CLOSE";
252
- }, xstate353.AnyEventObject>;
252
+ }, xstate67.AnyEventObject>;
253
253
  }) => {
254
254
  imageBase64: string;
255
255
  documentType: string;
@@ -65,6 +65,10 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
65
65
  id: string | undefined;
66
66
  };
67
67
  }>, xstate417.Values<{
68
+ setError: {
69
+ type: "setError";
70
+ params: xstate417.NonReducibleUnknown;
71
+ };
68
72
  clearError: {
69
73
  type: "clearError";
70
74
  params: xstate417.NonReducibleUnknown;
@@ -73,10 +77,6 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
73
77
  type: "resetContext";
74
78
  params: xstate417.NonReducibleUnknown;
75
79
  };
76
- setError: {
77
- type: "setError";
78
- params: xstate417.NonReducibleUnknown;
79
- };
80
80
  setConsent: {
81
81
  type: "setConsent";
82
82
  params: xstate417.NonReducibleUnknown;
@@ -88,7 +88,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
88
88
  }>, {
89
89
  type: "canSubmit";
90
90
  params: unknown;
91
- }, never, "error" | "finished" | "closed" | "idle" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate417.NonReducibleUnknown, xstate417.EventObject, xstate417.MetaObject, {
91
+ }, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished" | "closed", string, MandatoryConsentInput, xstate417.NonReducibleUnknown, xstate417.EventObject, xstate417.MetaObject, {
92
92
  readonly id: "mandatoryConsent";
93
93
  readonly initial: "idle";
94
94
  readonly context: ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260324-90ddcfd",
3
+ "version": "0.0.0-dev-20260324-1873051",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",