@incodetech/core 0.0.0-dev-20260324-90ddcfd → 0.0.0-dev-20260324-5c4350d

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 xstate72 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: xstate72.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]: xstate72.ActorRefFromLogic<xstate72.PromiseActorLogic<FetchCombinedConsentResponse, {
51
51
  consentId: string;
52
- }, xstate285.EventObject>> | xstate285.ActorRefFromLogic<xstate285.PromiseActorLogic<void, {
52
+ }, xstate72.EventObject>> | xstate72.ActorRefFromLogic<xstate72.PromiseActorLogic<void, {
53
53
  languageConsentId: string;
54
54
  checkboxes: ConsentCheckbox[];
55
- }, xstate285.EventObject>> | undefined;
56
- }, xstate285.Values<{
55
+ }, xstate72.EventObject>> | undefined;
56
+ }, xstate72.Values<{
57
57
  fetchConsent: {
58
58
  src: "fetchConsent";
59
- logic: xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
59
+ logic: xstate72.PromiseActorLogic<FetchCombinedConsentResponse, {
60
60
  consentId: string;
61
- }, xstate285.EventObject>;
61
+ }, xstate72.EventObject>;
62
62
  id: string | undefined;
63
63
  };
64
64
  submitConsent: {
65
65
  src: "submitConsent";
66
- logic: xstate285.PromiseActorLogic<void, {
66
+ logic: xstate72.PromiseActorLogic<void, {
67
67
  languageConsentId: string;
68
68
  checkboxes: ConsentCheckbox[];
69
- }, xstate285.EventObject>;
69
+ }, xstate72.EventObject>;
70
70
  id: string | undefined;
71
71
  };
72
- }>, xstate285.Values<{
72
+ }>, xstate72.Values<{
73
73
  clearError: {
74
74
  type: "clearError";
75
- params: xstate285.NonReducibleUnknown;
76
- };
77
- resetContext: {
78
- type: "resetContext";
79
- params: xstate285.NonReducibleUnknown;
80
- };
81
- setError: {
82
- type: "setError";
83
- params: xstate285.NonReducibleUnknown;
75
+ params: xstate72.NonReducibleUnknown;
84
76
  };
85
77
  setConsentData: {
86
78
  type: "setConsentData";
87
- params: xstate285.NonReducibleUnknown;
79
+ params: xstate72.NonReducibleUnknown;
88
80
  };
89
81
  toggleCheckbox: {
90
82
  type: "toggleCheckbox";
91
- params: xstate285.NonReducibleUnknown;
83
+ params: xstate72.NonReducibleUnknown;
84
+ };
85
+ setError: {
86
+ type: "setError";
87
+ params: xstate72.NonReducibleUnknown;
88
+ };
89
+ resetContext: {
90
+ type: "resetContext";
91
+ params: xstate72.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" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput, xstate72.NonReducibleUnknown, xstate72.EventObject, xstate72.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: xstate72.PromiseActorLogic<FetchCombinedConsentResponse, {
106
106
  consentId: string;
107
- }, xstate285.EventObject>;
107
+ }, xstate72.EventObject>;
108
108
  id: string | undefined;
109
109
  } extends infer T ? T extends {
110
110
  src: "fetchConsent";
111
- logic: xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
111
+ logic: xstate72.PromiseActorLogic<FetchCombinedConsentResponse, {
112
112
  consentId: string;
113
- }, xstate285.EventObject>;
113
+ }, xstate72.EventObject>;
114
114
  id: string | undefined;
115
115
  } ? T extends {
116
116
  src: TSrc;
117
- } ? xstate285.ConditionalRequired<[options?: ({
117
+ } ? xstate72.ConditionalRequired<[options?: ({
118
118
  id?: T["id"] | undefined;
119
119
  systemId?: string;
120
- input?: xstate285.InputFrom<T["logic"]> | undefined;
120
+ input?: xstate72.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 xstate72.RequiredActorOptions<T>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredActorOptions<T>>> : never : never : never) | ({
123
123
  src: "submitConsent";
124
- logic: xstate285.PromiseActorLogic<void, {
124
+ logic: xstate72.PromiseActorLogic<void, {
125
125
  languageConsentId: string;
126
126
  checkboxes: ConsentCheckbox[];
127
- }, xstate285.EventObject>;
127
+ }, xstate72.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: xstate72.PromiseActorLogic<void, {
132
132
  languageConsentId: string;
133
133
  checkboxes: ConsentCheckbox[];
134
- }, xstate285.EventObject>;
134
+ }, xstate72.EventObject>;
135
135
  id: string | undefined;
136
136
  } ? T_1 extends {
137
137
  src: TSrc;
138
- } ? xstate285.ConditionalRequired<[options?: ({
138
+ } ? xstate72.ConditionalRequired<[options?: ({
139
139
  id?: T_1["id"] | undefined;
140
140
  systemId?: string;
141
- input?: xstate285.InputFrom<T_1["logic"]> | undefined;
141
+ input?: xstate72.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 xstate72.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredActorOptions<T_1>>> : never : never : never)): xstate72.ActorRefFromLogic<xstate72.GetConcreteByKey<xstate72.Values<{
144
144
  fetchConsent: {
145
145
  src: "fetchConsent";
146
- logic: xstate285.PromiseActorLogic<FetchCombinedConsentResponse, {
146
+ logic: xstate72.PromiseActorLogic<FetchCombinedConsentResponse, {
147
147
  consentId: string;
148
- }, xstate285.EventObject>;
148
+ }, xstate72.EventObject>;
149
149
  id: string | undefined;
150
150
  };
151
151
  submitConsent: {
152
152
  src: "submitConsent";
153
- logic: xstate285.PromiseActorLogic<void, {
153
+ logic: xstate72.PromiseActorLogic<void, {
154
154
  languageConsentId: string;
155
155
  checkboxes: ConsentCheckbox[];
156
- }, xstate285.EventObject>;
156
+ }, xstate72.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 xstate72.AnyActorLogic>(src: TLogic, ...[options]: xstate72.ConditionalRequired<[options?: ({
161
161
  id?: never;
162
162
  systemId?: string;
163
- input?: xstate285.InputFrom<TLogic> | undefined;
163
+ input?: xstate72.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 xstate72.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredLogicInput<TLogic>>>): xstate72.ActorRefFromLogic<TLogic>;
166
166
  };
167
167
  input: ConsentInput;
168
- self: xstate285.ActorRef<xstate285.MachineSnapshot<ConsentContext, {
168
+ self: xstate72.ActorRef<xstate72.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, xstate72.AnyActorRef | undefined>, xstate72.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
+ }, xstate72.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: xstate72.ActorRef<xstate72.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, xstate72.AnyActorRef>, xstate72.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
+ }, xstate72.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: xstate72.ActorRef<xstate72.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, xstate72.AnyActorRef>, xstate72.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
+ }, xstate72.AnyEventObject>;
322
322
  }) => {
323
323
  languageConsentId: string;
324
324
  checkboxes: ConsentCheckbox[];
@@ -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 xstate208 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: xstate208.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]: xstate208.ActorRefFromLogic<xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>> | xstate208.ActorRefFromLogic<xstate208.PromiseActorLogic<void, {
21
21
  imageBase64: string;
22
22
  documentType: string;
23
23
  onProgress: (progress: number) => void;
24
- }, xstate353.EventObject>> | undefined;
25
- }, xstate353.Values<{
24
+ }, xstate208.EventObject>> | undefined;
25
+ }, xstate208.Values<{
26
26
  initCamera: {
27
27
  src: "initCamera";
28
- logic: xstate353.PromiseActorLogic<MediaStream, void, xstate353.EventObject>;
28
+ logic: xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>;
29
29
  id: string | undefined;
30
30
  };
31
31
  uploadDocument: {
32
32
  src: "uploadDocument";
33
- logic: xstate353.PromiseActorLogic<void, {
33
+ logic: xstate208.PromiseActorLogic<void, {
34
34
  imageBase64: string;
35
35
  documentType: string;
36
36
  onProgress: (progress: number) => void;
37
- }, xstate353.EventObject>;
37
+ }, xstate208.EventObject>;
38
38
  id: string | undefined;
39
39
  };
40
- }>, xstate353.Values<{
40
+ }>, xstate208.Values<{
41
41
  setStream: {
42
42
  type: "setStream";
43
- params: xstate353.NonReducibleUnknown;
43
+ params: xstate208.NonReducibleUnknown;
44
44
  };
45
45
  setProgress: {
46
46
  type: "setProgress";
47
- params: xstate353.NonReducibleUnknown;
47
+ params: xstate208.NonReducibleUnknown;
48
48
  };
49
49
  clearError: {
50
50
  type: "clearError";
51
- params: xstate353.NonReducibleUnknown;
51
+ params: xstate208.NonReducibleUnknown;
52
52
  };
53
53
  stopStream: {
54
54
  type: "stopStream";
55
- params: xstate353.NonReducibleUnknown;
55
+ params: xstate208.NonReducibleUnknown;
56
56
  };
57
57
  setError: {
58
58
  type: "setError";
59
- params: xstate353.NonReducibleUnknown;
59
+ params: xstate208.NonReducibleUnknown;
60
60
  };
61
61
  setImageAndClearError: {
62
62
  type: "setImageAndClearError";
63
- params: xstate353.NonReducibleUnknown;
63
+ params: xstate208.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" | "initCamera" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate208.NonReducibleUnknown, xstate208.EventObject, xstate208.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: xstate208.PromiseActorLogic<MediaStream, void, xstate208.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: xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>;
79
79
  id: string | undefined;
80
80
  } ? T extends {
81
81
  src: TSrc;
82
- } ? xstate353.ConditionalRequired<[options?: ({
82
+ } ? xstate208.ConditionalRequired<[options?: ({
83
83
  id?: T["id"] | undefined;
84
84
  systemId?: string;
85
- input?: xstate353.InputFrom<T["logic"]> | undefined;
85
+ input?: xstate208.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 xstate208.RequiredActorOptions<T>]: unknown }) | undefined], xstate208.IsNotNever<xstate208.RequiredActorOptions<T>>> : never : never : never) | ({
88
88
  src: "uploadDocument";
89
- logic: xstate353.PromiseActorLogic<void, {
89
+ logic: xstate208.PromiseActorLogic<void, {
90
90
  imageBase64: string;
91
91
  documentType: string;
92
92
  onProgress: (progress: number) => void;
93
- }, xstate353.EventObject>;
93
+ }, xstate208.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: xstate208.PromiseActorLogic<void, {
98
98
  imageBase64: string;
99
99
  documentType: string;
100
100
  onProgress: (progress: number) => void;
101
- }, xstate353.EventObject>;
101
+ }, xstate208.EventObject>;
102
102
  id: string | undefined;
103
103
  } ? T_1 extends {
104
104
  src: TSrc;
105
- } ? xstate353.ConditionalRequired<[options?: ({
105
+ } ? xstate208.ConditionalRequired<[options?: ({
106
106
  id?: T_1["id"] | undefined;
107
107
  systemId?: string;
108
- input?: xstate353.InputFrom<T_1["logic"]> | undefined;
108
+ input?: xstate208.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 xstate208.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate208.IsNotNever<xstate208.RequiredActorOptions<T_1>>> : never : never : never)): xstate208.ActorRefFromLogic<xstate208.GetConcreteByKey<xstate208.Values<{
111
111
  initCamera: {
112
112
  src: "initCamera";
113
- logic: xstate353.PromiseActorLogic<MediaStream, void, xstate353.EventObject>;
113
+ logic: xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>;
114
114
  id: string | undefined;
115
115
  };
116
116
  uploadDocument: {
117
117
  src: "uploadDocument";
118
- logic: xstate353.PromiseActorLogic<void, {
118
+ logic: xstate208.PromiseActorLogic<void, {
119
119
  imageBase64: string;
120
120
  documentType: string;
121
121
  onProgress: (progress: number) => void;
122
- }, xstate353.EventObject>;
122
+ }, xstate208.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 xstate208.AnyActorLogic>(src: TLogic, ...[options]: xstate208.ConditionalRequired<[options?: ({
127
127
  id?: never;
128
128
  systemId?: string;
129
- input?: xstate353.InputFrom<TLogic> | undefined;
129
+ input?: xstate208.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 xstate208.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate208.IsNotNever<xstate208.RequiredLogicInput<TLogic>>>): xstate208.ActorRefFromLogic<TLogic>;
132
132
  };
133
133
  input: DocumentUploadInput;
134
- self: xstate353.ActorRef<xstate353.MachineSnapshot<DocumentUploadContext, {
134
+ self: xstate208.ActorRef<xstate208.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, xstate208.AnyActorRef | undefined>, xstate208.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
+ }, xstate208.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: xstate208.ActorRef<xstate208.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, xstate208.AnyActorRef>, xstate208.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
+ }, xstate208.AnyEventObject>;
253
253
  }) => {
254
254
  imageBase64: string;
255
255
  documentType: string;
@@ -2,7 +2,7 @@ import { t as Manager } from "./Manager-BWqHEUjI.js";
2
2
  import "./camera-BCRgkMoe.js";
3
3
  import "./types-BYFeUhw0.js";
4
4
  import { i as RegulationTypes } from "./types-0A1THNYO.js";
5
- import * as xstate417 from "xstate";
5
+ import * as xstate140 from "xstate";
6
6
 
7
7
  //#region src/modules/mandatory-consent/types.d.ts
8
8
  type MandatoryConsentConfig = {
@@ -29,7 +29,7 @@ type MandatoryConsentContext = {
29
29
  type MandatoryConsentInput = {
30
30
  config: MandatoryConsentConfig;
31
31
  };
32
- declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentContext, {
32
+ declare const mandatoryConsentMachine: xstate140.StateMachine<MandatoryConsentContext, {
33
33
  type: "LOAD";
34
34
  } | {
35
35
  type: "TOGGLE";
@@ -42,53 +42,53 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
42
42
  } | {
43
43
  type: "RESET";
44
44
  }, {
45
- [x: string]: xstate417.ActorRefFromLogic<xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
45
+ [x: string]: xstate140.ActorRefFromLogic<xstate140.PromiseActorLogic<FetchMandatoryConsentResponse, {
46
46
  config: MandatoryConsentConfig;
47
- }, xstate417.EventObject>> | xstate417.ActorRefFromLogic<xstate417.PromiseActorLogic<void, {
47
+ }, xstate140.EventObject>> | xstate140.ActorRefFromLogic<xstate140.PromiseActorLogic<void, {
48
48
  consentId: string;
49
49
  isSigned: boolean;
50
- }, xstate417.EventObject>> | undefined;
51
- }, xstate417.Values<{
50
+ }, xstate140.EventObject>> | undefined;
51
+ }, xstate140.Values<{
52
52
  fetchConsent: {
53
53
  src: "fetchConsent";
54
- logic: xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
54
+ logic: xstate140.PromiseActorLogic<FetchMandatoryConsentResponse, {
55
55
  config: MandatoryConsentConfig;
56
- }, xstate417.EventObject>;
56
+ }, xstate140.EventObject>;
57
57
  id: string | undefined;
58
58
  };
59
59
  submitConsent: {
60
60
  src: "submitConsent";
61
- logic: xstate417.PromiseActorLogic<void, {
61
+ logic: xstate140.PromiseActorLogic<void, {
62
62
  consentId: string;
63
63
  isSigned: boolean;
64
- }, xstate417.EventObject>;
64
+ }, xstate140.EventObject>;
65
65
  id: string | undefined;
66
66
  };
67
- }>, xstate417.Values<{
67
+ }>, xstate140.Values<{
68
68
  clearError: {
69
69
  type: "clearError";
70
- params: xstate417.NonReducibleUnknown;
71
- };
72
- resetContext: {
73
- type: "resetContext";
74
- params: xstate417.NonReducibleUnknown;
70
+ params: xstate140.NonReducibleUnknown;
75
71
  };
76
72
  setError: {
77
73
  type: "setError";
78
- params: xstate417.NonReducibleUnknown;
74
+ params: xstate140.NonReducibleUnknown;
75
+ };
76
+ resetContext: {
77
+ type: "resetContext";
78
+ params: xstate140.NonReducibleUnknown;
79
79
  };
80
80
  setConsent: {
81
81
  type: "setConsent";
82
- params: xstate417.NonReducibleUnknown;
82
+ params: xstate140.NonReducibleUnknown;
83
83
  };
84
84
  toggleSigned: {
85
85
  type: "toggleSigned";
86
- params: xstate417.NonReducibleUnknown;
86
+ params: xstate140.NonReducibleUnknown;
87
87
  };
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" | "finished" | "closed" | "idle" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate140.NonReducibleUnknown, xstate140.EventObject, xstate140.MetaObject, {
92
92
  readonly id: "mandatoryConsent";
93
93
  readonly initial: "idle";
94
94
  readonly context: ({
@@ -97,70 +97,70 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
97
97
  spawn: {
98
98
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
99
99
  src: "fetchConsent";
100
- logic: xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
100
+ logic: xstate140.PromiseActorLogic<FetchMandatoryConsentResponse, {
101
101
  config: MandatoryConsentConfig;
102
- }, xstate417.EventObject>;
102
+ }, xstate140.EventObject>;
103
103
  id: string | undefined;
104
104
  } extends infer T ? T extends {
105
105
  src: "fetchConsent";
106
- logic: xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
106
+ logic: xstate140.PromiseActorLogic<FetchMandatoryConsentResponse, {
107
107
  config: MandatoryConsentConfig;
108
- }, xstate417.EventObject>;
108
+ }, xstate140.EventObject>;
109
109
  id: string | undefined;
110
110
  } ? T extends {
111
111
  src: TSrc;
112
- } ? xstate417.ConditionalRequired<[options?: ({
112
+ } ? xstate140.ConditionalRequired<[options?: ({
113
113
  id?: T["id"] | undefined;
114
114
  systemId?: string;
115
- input?: xstate417.InputFrom<T["logic"]> | undefined;
115
+ input?: xstate140.InputFrom<T["logic"]> | undefined;
116
116
  syncSnapshot?: boolean;
117
- } & { [K in xstate417.RequiredActorOptions<T>]: unknown }) | undefined], xstate417.IsNotNever<xstate417.RequiredActorOptions<T>>> : never : never : never) | ({
117
+ } & { [K in xstate140.RequiredActorOptions<T>]: unknown }) | undefined], xstate140.IsNotNever<xstate140.RequiredActorOptions<T>>> : never : never : never) | ({
118
118
  src: "submitConsent";
119
- logic: xstate417.PromiseActorLogic<void, {
119
+ logic: xstate140.PromiseActorLogic<void, {
120
120
  consentId: string;
121
121
  isSigned: boolean;
122
- }, xstate417.EventObject>;
122
+ }, xstate140.EventObject>;
123
123
  id: string | undefined;
124
124
  } extends infer T_1 ? T_1 extends {
125
125
  src: "submitConsent";
126
- logic: xstate417.PromiseActorLogic<void, {
126
+ logic: xstate140.PromiseActorLogic<void, {
127
127
  consentId: string;
128
128
  isSigned: boolean;
129
- }, xstate417.EventObject>;
129
+ }, xstate140.EventObject>;
130
130
  id: string | undefined;
131
131
  } ? T_1 extends {
132
132
  src: TSrc;
133
- } ? xstate417.ConditionalRequired<[options?: ({
133
+ } ? xstate140.ConditionalRequired<[options?: ({
134
134
  id?: T_1["id"] | undefined;
135
135
  systemId?: string;
136
- input?: xstate417.InputFrom<T_1["logic"]> | undefined;
136
+ input?: xstate140.InputFrom<T_1["logic"]> | undefined;
137
137
  syncSnapshot?: boolean;
138
- } & { [K_1 in xstate417.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate417.IsNotNever<xstate417.RequiredActorOptions<T_1>>> : never : never : never)): xstate417.ActorRefFromLogic<xstate417.GetConcreteByKey<xstate417.Values<{
138
+ } & { [K_1 in xstate140.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate140.IsNotNever<xstate140.RequiredActorOptions<T_1>>> : never : never : never)): xstate140.ActorRefFromLogic<xstate140.GetConcreteByKey<xstate140.Values<{
139
139
  fetchConsent: {
140
140
  src: "fetchConsent";
141
- logic: xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
141
+ logic: xstate140.PromiseActorLogic<FetchMandatoryConsentResponse, {
142
142
  config: MandatoryConsentConfig;
143
- }, xstate417.EventObject>;
143
+ }, xstate140.EventObject>;
144
144
  id: string | undefined;
145
145
  };
146
146
  submitConsent: {
147
147
  src: "submitConsent";
148
- logic: xstate417.PromiseActorLogic<void, {
148
+ logic: xstate140.PromiseActorLogic<void, {
149
149
  consentId: string;
150
150
  isSigned: boolean;
151
- }, xstate417.EventObject>;
151
+ }, xstate140.EventObject>;
152
152
  id: string | undefined;
153
153
  };
154
154
  }>, "src", TSrc>["logic"]>;
155
- <TLogic extends xstate417.AnyActorLogic>(src: TLogic, ...[options]: xstate417.ConditionalRequired<[options?: ({
155
+ <TLogic extends xstate140.AnyActorLogic>(src: TLogic, ...[options]: xstate140.ConditionalRequired<[options?: ({
156
156
  id?: never;
157
157
  systemId?: string;
158
- input?: xstate417.InputFrom<TLogic> | undefined;
158
+ input?: xstate140.InputFrom<TLogic> | undefined;
159
159
  syncSnapshot?: boolean;
160
- } & { [K in xstate417.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate417.IsNotNever<xstate417.RequiredLogicInput<TLogic>>>): xstate417.ActorRefFromLogic<TLogic>;
160
+ } & { [K in xstate140.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate140.IsNotNever<xstate140.RequiredLogicInput<TLogic>>>): xstate140.ActorRefFromLogic<TLogic>;
161
161
  };
162
162
  input: MandatoryConsentInput;
163
- self: xstate417.ActorRef<xstate417.MachineSnapshot<MandatoryConsentContext, {
163
+ self: xstate140.ActorRef<xstate140.MachineSnapshot<MandatoryConsentContext, {
164
164
  type: "LOAD";
165
165
  } | {
166
166
  type: "TOGGLE";
@@ -172,7 +172,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
172
172
  type: "RETRY";
173
173
  } | {
174
174
  type: "RESET";
175
- }, Record<string, xstate417.AnyActorRef | undefined>, xstate417.StateValue, string, unknown, any, any>, {
175
+ }, Record<string, xstate140.AnyActorRef | undefined>, xstate140.StateValue, string, unknown, any, any>, {
176
176
  type: "LOAD";
177
177
  } | {
178
178
  type: "TOGGLE";
@@ -184,7 +184,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
184
184
  type: "RETRY";
185
185
  } | {
186
186
  type: "RESET";
187
- }, xstate417.AnyEventObject>;
187
+ }, xstate140.AnyEventObject>;
188
188
  }) => {
189
189
  config: MandatoryConsentConfig;
190
190
  consent: undefined;
@@ -221,7 +221,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
221
221
  } | {
222
222
  type: "RESET";
223
223
  };
224
- self: xstate417.ActorRef<xstate417.MachineSnapshot<MandatoryConsentContext, {
224
+ self: xstate140.ActorRef<xstate140.MachineSnapshot<MandatoryConsentContext, {
225
225
  type: "LOAD";
226
226
  } | {
227
227
  type: "TOGGLE";
@@ -233,7 +233,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
233
233
  type: "RETRY";
234
234
  } | {
235
235
  type: "RESET";
236
- }, Record<string, xstate417.AnyActorRef>, xstate417.StateValue, string, unknown, any, any>, {
236
+ }, Record<string, xstate140.AnyActorRef>, xstate140.StateValue, string, unknown, any, any>, {
237
237
  type: "LOAD";
238
238
  } | {
239
239
  type: "TOGGLE";
@@ -245,7 +245,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
245
245
  type: "RETRY";
246
246
  } | {
247
247
  type: "RESET";
248
- }, xstate417.AnyEventObject>;
248
+ }, xstate140.AnyEventObject>;
249
249
  }) => {
250
250
  config: MandatoryConsentConfig;
251
251
  };
@@ -298,7 +298,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
298
298
  } | {
299
299
  type: "RESET";
300
300
  };
301
- self: xstate417.ActorRef<xstate417.MachineSnapshot<MandatoryConsentContext, {
301
+ self: xstate140.ActorRef<xstate140.MachineSnapshot<MandatoryConsentContext, {
302
302
  type: "LOAD";
303
303
  } | {
304
304
  type: "TOGGLE";
@@ -310,7 +310,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
310
310
  type: "RETRY";
311
311
  } | {
312
312
  type: "RESET";
313
- }, Record<string, xstate417.AnyActorRef>, xstate417.StateValue, string, unknown, any, any>, {
313
+ }, Record<string, xstate140.AnyActorRef>, xstate140.StateValue, string, unknown, any, any>, {
314
314
  type: "LOAD";
315
315
  } | {
316
316
  type: "TOGGLE";
@@ -322,7 +322,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
322
322
  type: "RETRY";
323
323
  } | {
324
324
  type: "RESET";
325
- }, xstate417.AnyEventObject>;
325
+ }, xstate140.AnyEventObject>;
326
326
  }) => {
327
327
  consentId: string;
328
328
  isSigned: boolean;
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-5c4350d",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",