@incodetech/core 0.0.0-dev-20260401-018c3ea → 0.0.0-dev-20260402-2346beb

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 { f as Manager } from "./index-BTaLQSj9.js";
2
- import * as xstate136 from "xstate";
2
+ import * as xstate204 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: xstate136.StateMachine<ConsentContext, {
38
+ declare const consentMachine: xstate204.StateMachine<ConsentContext, {
39
39
  type: "LOAD";
40
40
  } | {
41
41
  type: "TOGGLE_CHECKBOX";
@@ -47,53 +47,53 @@ declare const consentMachine: xstate136.StateMachine<ConsentContext, {
47
47
  } | {
48
48
  type: "RESET";
49
49
  }, {
50
- [x: string]: xstate136.ActorRefFromLogic<xstate136.PromiseActorLogic<FetchCombinedConsentResponse, {
50
+ [x: string]: xstate204.ActorRefFromLogic<xstate204.PromiseActorLogic<FetchCombinedConsentResponse, {
51
51
  consentId: string;
52
- }, xstate136.EventObject>> | xstate136.ActorRefFromLogic<xstate136.PromiseActorLogic<void, {
52
+ }, xstate204.EventObject>> | xstate204.ActorRefFromLogic<xstate204.PromiseActorLogic<void, {
53
53
  languageConsentId: string;
54
54
  checkboxes: ConsentCheckbox[];
55
- }, xstate136.EventObject>> | undefined;
56
- }, xstate136.Values<{
55
+ }, xstate204.EventObject>> | undefined;
56
+ }, xstate204.Values<{
57
57
  fetchConsent: {
58
58
  src: "fetchConsent";
59
- logic: xstate136.PromiseActorLogic<FetchCombinedConsentResponse, {
59
+ logic: xstate204.PromiseActorLogic<FetchCombinedConsentResponse, {
60
60
  consentId: string;
61
- }, xstate136.EventObject>;
61
+ }, xstate204.EventObject>;
62
62
  id: string | undefined;
63
63
  };
64
64
  submitConsent: {
65
65
  src: "submitConsent";
66
- logic: xstate136.PromiseActorLogic<void, {
66
+ logic: xstate204.PromiseActorLogic<void, {
67
67
  languageConsentId: string;
68
68
  checkboxes: ConsentCheckbox[];
69
- }, xstate136.EventObject>;
69
+ }, xstate204.EventObject>;
70
70
  id: string | undefined;
71
71
  };
72
- }>, xstate136.Values<{
72
+ }>, xstate204.Values<{
73
73
  clearError: {
74
74
  type: "clearError";
75
- params: xstate136.NonReducibleUnknown;
75
+ params: xstate204.NonReducibleUnknown;
76
76
  };
77
77
  setError: {
78
78
  type: "setError";
79
- params: xstate136.NonReducibleUnknown;
79
+ params: xstate204.NonReducibleUnknown;
80
+ };
81
+ resetContext: {
82
+ type: "resetContext";
83
+ params: xstate204.NonReducibleUnknown;
80
84
  };
81
85
  setConsentData: {
82
86
  type: "setConsentData";
83
- params: xstate136.NonReducibleUnknown;
87
+ params: xstate204.NonReducibleUnknown;
84
88
  };
85
89
  toggleCheckbox: {
86
90
  type: "toggleCheckbox";
87
- params: xstate136.NonReducibleUnknown;
88
- };
89
- resetContext: {
90
- type: "resetContext";
91
- params: xstate136.NonReducibleUnknown;
91
+ params: xstate204.NonReducibleUnknown;
92
92
  };
93
93
  }>, {
94
94
  type: "canSubmit";
95
95
  params: unknown;
96
- }, never, "error" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput, xstate136.NonReducibleUnknown, xstate136.EventObject, xstate136.MetaObject, {
96
+ }, never, "error" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput, xstate204.NonReducibleUnknown, xstate204.EventObject, xstate204.MetaObject, {
97
97
  readonly id: "consent";
98
98
  readonly initial: "idle";
99
99
  readonly context: ({
@@ -102,70 +102,70 @@ declare const consentMachine: xstate136.StateMachine<ConsentContext, {
102
102
  spawn: {
103
103
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
104
104
  src: "fetchConsent";
105
- logic: xstate136.PromiseActorLogic<FetchCombinedConsentResponse, {
105
+ logic: xstate204.PromiseActorLogic<FetchCombinedConsentResponse, {
106
106
  consentId: string;
107
- }, xstate136.EventObject>;
107
+ }, xstate204.EventObject>;
108
108
  id: string | undefined;
109
109
  } extends infer T ? T extends {
110
110
  src: "fetchConsent";
111
- logic: xstate136.PromiseActorLogic<FetchCombinedConsentResponse, {
111
+ logic: xstate204.PromiseActorLogic<FetchCombinedConsentResponse, {
112
112
  consentId: string;
113
- }, xstate136.EventObject>;
113
+ }, xstate204.EventObject>;
114
114
  id: string | undefined;
115
115
  } ? T extends {
116
116
  src: TSrc;
117
- } ? xstate136.ConditionalRequired<[options?: ({
117
+ } ? xstate204.ConditionalRequired<[options?: ({
118
118
  id?: T["id"] | undefined;
119
119
  systemId?: string;
120
- input?: xstate136.InputFrom<T["logic"]> | undefined;
120
+ input?: xstate204.InputFrom<T["logic"]> | undefined;
121
121
  syncSnapshot?: boolean;
122
- } & { [K in xstate136.RequiredActorOptions<T>]: unknown }) | undefined], xstate136.IsNotNever<xstate136.RequiredActorOptions<T>>> : never : never : never) | ({
122
+ } & { [K in xstate204.RequiredActorOptions<T>]: unknown }) | undefined], xstate204.IsNotNever<xstate204.RequiredActorOptions<T>>> : never : never : never) | ({
123
123
  src: "submitConsent";
124
- logic: xstate136.PromiseActorLogic<void, {
124
+ logic: xstate204.PromiseActorLogic<void, {
125
125
  languageConsentId: string;
126
126
  checkboxes: ConsentCheckbox[];
127
- }, xstate136.EventObject>;
127
+ }, xstate204.EventObject>;
128
128
  id: string | undefined;
129
129
  } extends infer T_1 ? T_1 extends {
130
130
  src: "submitConsent";
131
- logic: xstate136.PromiseActorLogic<void, {
131
+ logic: xstate204.PromiseActorLogic<void, {
132
132
  languageConsentId: string;
133
133
  checkboxes: ConsentCheckbox[];
134
- }, xstate136.EventObject>;
134
+ }, xstate204.EventObject>;
135
135
  id: string | undefined;
136
136
  } ? T_1 extends {
137
137
  src: TSrc;
138
- } ? xstate136.ConditionalRequired<[options?: ({
138
+ } ? xstate204.ConditionalRequired<[options?: ({
139
139
  id?: T_1["id"] | undefined;
140
140
  systemId?: string;
141
- input?: xstate136.InputFrom<T_1["logic"]> | undefined;
141
+ input?: xstate204.InputFrom<T_1["logic"]> | undefined;
142
142
  syncSnapshot?: boolean;
143
- } & { [K_1 in xstate136.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate136.IsNotNever<xstate136.RequiredActorOptions<T_1>>> : never : never : never)): xstate136.ActorRefFromLogic<xstate136.GetConcreteByKey<xstate136.Values<{
143
+ } & { [K_1 in xstate204.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate204.IsNotNever<xstate204.RequiredActorOptions<T_1>>> : never : never : never)): xstate204.ActorRefFromLogic<xstate204.GetConcreteByKey<xstate204.Values<{
144
144
  fetchConsent: {
145
145
  src: "fetchConsent";
146
- logic: xstate136.PromiseActorLogic<FetchCombinedConsentResponse, {
146
+ logic: xstate204.PromiseActorLogic<FetchCombinedConsentResponse, {
147
147
  consentId: string;
148
- }, xstate136.EventObject>;
148
+ }, xstate204.EventObject>;
149
149
  id: string | undefined;
150
150
  };
151
151
  submitConsent: {
152
152
  src: "submitConsent";
153
- logic: xstate136.PromiseActorLogic<void, {
153
+ logic: xstate204.PromiseActorLogic<void, {
154
154
  languageConsentId: string;
155
155
  checkboxes: ConsentCheckbox[];
156
- }, xstate136.EventObject>;
156
+ }, xstate204.EventObject>;
157
157
  id: string | undefined;
158
158
  };
159
159
  }>, "src", TSrc>["logic"]>;
160
- <TLogic extends xstate136.AnyActorLogic>(src: TLogic, ...[options]: xstate136.ConditionalRequired<[options?: ({
160
+ <TLogic extends xstate204.AnyActorLogic>(src: TLogic, ...[options]: xstate204.ConditionalRequired<[options?: ({
161
161
  id?: never;
162
162
  systemId?: string;
163
- input?: xstate136.InputFrom<TLogic> | undefined;
163
+ input?: xstate204.InputFrom<TLogic> | undefined;
164
164
  syncSnapshot?: boolean;
165
- } & { [K in xstate136.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate136.IsNotNever<xstate136.RequiredLogicInput<TLogic>>>): xstate136.ActorRefFromLogic<TLogic>;
165
+ } & { [K in xstate204.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate204.IsNotNever<xstate204.RequiredLogicInput<TLogic>>>): xstate204.ActorRefFromLogic<TLogic>;
166
166
  };
167
167
  input: ConsentInput;
168
- self: xstate136.ActorRef<xstate136.MachineSnapshot<ConsentContext, {
168
+ self: xstate204.ActorRef<xstate204.MachineSnapshot<ConsentContext, {
169
169
  type: "LOAD";
170
170
  } | {
171
171
  type: "TOGGLE_CHECKBOX";
@@ -176,7 +176,7 @@ declare const consentMachine: xstate136.StateMachine<ConsentContext, {
176
176
  type: "RETRY";
177
177
  } | {
178
178
  type: "RESET";
179
- }, Record<string, xstate136.AnyActorRef | undefined>, xstate136.StateValue, string, unknown, any, any>, {
179
+ }, Record<string, xstate204.AnyActorRef | undefined>, xstate204.StateValue, string, unknown, any, any>, {
180
180
  type: "LOAD";
181
181
  } | {
182
182
  type: "TOGGLE_CHECKBOX";
@@ -187,7 +187,7 @@ declare const consentMachine: xstate136.StateMachine<ConsentContext, {
187
187
  type: "RETRY";
188
188
  } | {
189
189
  type: "RESET";
190
- }, xstate136.AnyEventObject>;
190
+ }, xstate204.AnyEventObject>;
191
191
  }) => {
192
192
  config: ConsentConfig;
193
193
  title: string;
@@ -225,7 +225,7 @@ declare const consentMachine: xstate136.StateMachine<ConsentContext, {
225
225
  } | {
226
226
  type: "RESET";
227
227
  };
228
- self: xstate136.ActorRef<xstate136.MachineSnapshot<ConsentContext, {
228
+ self: xstate204.ActorRef<xstate204.MachineSnapshot<ConsentContext, {
229
229
  type: "LOAD";
230
230
  } | {
231
231
  type: "TOGGLE_CHECKBOX";
@@ -236,7 +236,7 @@ declare const consentMachine: xstate136.StateMachine<ConsentContext, {
236
236
  type: "RETRY";
237
237
  } | {
238
238
  type: "RESET";
239
- }, Record<string, xstate136.AnyActorRef>, xstate136.StateValue, string, unknown, any, any>, {
239
+ }, Record<string, xstate204.AnyActorRef>, xstate204.StateValue, string, unknown, any, any>, {
240
240
  type: "LOAD";
241
241
  } | {
242
242
  type: "TOGGLE_CHECKBOX";
@@ -247,7 +247,7 @@ declare const consentMachine: xstate136.StateMachine<ConsentContext, {
247
247
  type: "RETRY";
248
248
  } | {
249
249
  type: "RESET";
250
- }, xstate136.AnyEventObject>;
250
+ }, xstate204.AnyEventObject>;
251
251
  }) => {
252
252
  consentId: string;
253
253
  };
@@ -296,7 +296,7 @@ declare const consentMachine: xstate136.StateMachine<ConsentContext, {
296
296
  } | {
297
297
  type: "RESET";
298
298
  };
299
- self: xstate136.ActorRef<xstate136.MachineSnapshot<ConsentContext, {
299
+ self: xstate204.ActorRef<xstate204.MachineSnapshot<ConsentContext, {
300
300
  type: "LOAD";
301
301
  } | {
302
302
  type: "TOGGLE_CHECKBOX";
@@ -307,7 +307,7 @@ declare const consentMachine: xstate136.StateMachine<ConsentContext, {
307
307
  type: "RETRY";
308
308
  } | {
309
309
  type: "RESET";
310
- }, Record<string, xstate136.AnyActorRef>, xstate136.StateValue, string, unknown, any, any>, {
310
+ }, Record<string, xstate204.AnyActorRef>, xstate204.StateValue, string, unknown, any, any>, {
311
311
  type: "LOAD";
312
312
  } | {
313
313
  type: "TOGGLE_CHECKBOX";
@@ -318,7 +318,7 @@ declare const consentMachine: xstate136.StateMachine<ConsentContext, {
318
318
  type: "RETRY";
319
319
  } | {
320
320
  type: "RESET";
321
- }, xstate136.AnyEventObject>;
321
+ }, xstate204.AnyEventObject>;
322
322
  }) => {
323
323
  languageConsentId: string;
324
324
  checkboxes: ConsentCheckbox[];
@@ -61,7 +61,7 @@ declare const documentUploadMachine: xstate72.StateMachine<DocumentUploadContext
61
61
  type: "setError";
62
62
  params: xstate72.NonReducibleUnknown;
63
63
  };
64
- }>, never, never, "initCamera" | "error" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate72.NonReducibleUnknown, xstate72.EventObject, xstate72.MetaObject, {
64
+ }>, never, never, "error" | "initCamera" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate72.NonReducibleUnknown, xstate72.EventObject, xstate72.MetaObject, {
65
65
  readonly id: "documentUpload";
66
66
  readonly initial: "idle";
67
67
  readonly context: ({
package/dist/ekyb.esm.js CHANGED
@@ -240,7 +240,7 @@ function validateEkybField(name, value, required, country) {
240
240
  if (required && !val) return "ekyb.error.requiredField";
241
241
  if (name === "taxId") {
242
242
  if (COUNTRIES_WITH_CNPJ_VALIDATION.includes(country)) {
243
- if (val && !validateCNPJ(val)) return "ekyb.error.invalidCnpj";
243
+ if (val && !validateCNPJ(val)) return "ekyb.error.invalidTaxId";
244
244
  }
245
245
  if (COUNTRIES_WITH_SPECIAL_TAX_ID_RULES.includes(country) && !val) return;
246
246
  }
package/dist/ekyc.esm.js CHANGED
@@ -10070,7 +10070,7 @@ function validateField(name, value, required, country, configSource) {
10070
10070
  if (required && !val) return "verification.errors.required";
10071
10071
  if (!val) return void 0;
10072
10072
  if (name === "taxId" && country === "BR") return validateCPF(val) ? void 0 : "verification.errors.invalidTaxId";
10073
- if (name === "ssn" && (country === "US" || country === "CA")) return /^\d{3}-\d{2}-\d{4}$/.test(val) ? void 0 : "verification.errors.invalidSsn";
10073
+ if (name === "ssn" && (country === "US" || country === "CA")) return /^\d{3}-\d{2}-\d{4}$/.test(val) ? void 0 : "verification.errors.ssnFormat";
10074
10074
  if (name === "street" && isPoBox(val)) return "verification.errors.poBox";
10075
10075
  if (name === "postalCode") return validatePostalCode(val, country) ? void 0 : getPostalCodeErrorKey(country);
10076
10076
  if (name === "phone") {
@@ -1,7 +1,7 @@
1
1
  import { f as Manager } from "./index-BTaLQSj9.js";
2
2
  import "./types-oveF7RrS.js";
3
3
  import { i as RegulationTypes } from "./types-mQLzH6uw.js";
4
- import * as xstate417 from "xstate";
4
+ import * as xstate136 from "xstate";
5
5
 
6
6
  //#region src/modules/mandatory-consent/types.d.ts
7
7
  type MandatoryConsentConfig = {
@@ -28,7 +28,7 @@ type MandatoryConsentContext = {
28
28
  type MandatoryConsentInput = {
29
29
  config: MandatoryConsentConfig;
30
30
  };
31
- declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentContext, {
31
+ declare const mandatoryConsentMachine: xstate136.StateMachine<MandatoryConsentContext, {
32
32
  type: "LOAD";
33
33
  } | {
34
34
  type: "TOGGLE";
@@ -41,53 +41,53 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
41
41
  } | {
42
42
  type: "RESET";
43
43
  }, {
44
- [x: string]: xstate417.ActorRefFromLogic<xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
44
+ [x: string]: xstate136.ActorRefFromLogic<xstate136.PromiseActorLogic<FetchMandatoryConsentResponse, {
45
45
  config: MandatoryConsentConfig;
46
- }, xstate417.EventObject>> | xstate417.ActorRefFromLogic<xstate417.PromiseActorLogic<void, {
46
+ }, xstate136.EventObject>> | xstate136.ActorRefFromLogic<xstate136.PromiseActorLogic<void, {
47
47
  consentId: string;
48
48
  isSigned: boolean;
49
- }, xstate417.EventObject>> | undefined;
50
- }, xstate417.Values<{
49
+ }, xstate136.EventObject>> | undefined;
50
+ }, xstate136.Values<{
51
51
  fetchConsent: {
52
52
  src: "fetchConsent";
53
- logic: xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
53
+ logic: xstate136.PromiseActorLogic<FetchMandatoryConsentResponse, {
54
54
  config: MandatoryConsentConfig;
55
- }, xstate417.EventObject>;
55
+ }, xstate136.EventObject>;
56
56
  id: string | undefined;
57
57
  };
58
58
  submitConsent: {
59
59
  src: "submitConsent";
60
- logic: xstate417.PromiseActorLogic<void, {
60
+ logic: xstate136.PromiseActorLogic<void, {
61
61
  consentId: string;
62
62
  isSigned: boolean;
63
- }, xstate417.EventObject>;
63
+ }, xstate136.EventObject>;
64
64
  id: string | undefined;
65
65
  };
66
- }>, xstate417.Values<{
66
+ }>, xstate136.Values<{
67
67
  clearError: {
68
68
  type: "clearError";
69
- params: xstate417.NonReducibleUnknown;
69
+ params: xstate136.NonReducibleUnknown;
70
70
  };
71
71
  setError: {
72
72
  type: "setError";
73
- params: xstate417.NonReducibleUnknown;
74
- };
75
- resetContext: {
76
- type: "resetContext";
77
- params: xstate417.NonReducibleUnknown;
73
+ params: xstate136.NonReducibleUnknown;
78
74
  };
79
75
  setConsent: {
80
76
  type: "setConsent";
81
- params: xstate417.NonReducibleUnknown;
77
+ params: xstate136.NonReducibleUnknown;
82
78
  };
83
79
  toggleSigned: {
84
80
  type: "toggleSigned";
85
- params: xstate417.NonReducibleUnknown;
81
+ params: xstate136.NonReducibleUnknown;
82
+ };
83
+ resetContext: {
84
+ type: "resetContext";
85
+ params: xstate136.NonReducibleUnknown;
86
86
  };
87
87
  }>, {
88
88
  type: "canSubmit";
89
89
  params: unknown;
90
- }, never, "error" | "finished" | "closed" | "idle" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate417.NonReducibleUnknown, xstate417.EventObject, xstate417.MetaObject, {
90
+ }, never, "error" | "finished" | "closed" | "idle" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate136.NonReducibleUnknown, xstate136.EventObject, xstate136.MetaObject, {
91
91
  readonly id: "mandatoryConsent";
92
92
  readonly initial: "idle";
93
93
  readonly context: ({
@@ -96,70 +96,70 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
96
96
  spawn: {
97
97
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
98
98
  src: "fetchConsent";
99
- logic: xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
99
+ logic: xstate136.PromiseActorLogic<FetchMandatoryConsentResponse, {
100
100
  config: MandatoryConsentConfig;
101
- }, xstate417.EventObject>;
101
+ }, xstate136.EventObject>;
102
102
  id: string | undefined;
103
103
  } extends infer T ? T extends {
104
104
  src: "fetchConsent";
105
- logic: xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
105
+ logic: xstate136.PromiseActorLogic<FetchMandatoryConsentResponse, {
106
106
  config: MandatoryConsentConfig;
107
- }, xstate417.EventObject>;
107
+ }, xstate136.EventObject>;
108
108
  id: string | undefined;
109
109
  } ? T extends {
110
110
  src: TSrc;
111
- } ? xstate417.ConditionalRequired<[options?: ({
111
+ } ? xstate136.ConditionalRequired<[options?: ({
112
112
  id?: T["id"] | undefined;
113
113
  systemId?: string;
114
- input?: xstate417.InputFrom<T["logic"]> | undefined;
114
+ input?: xstate136.InputFrom<T["logic"]> | undefined;
115
115
  syncSnapshot?: boolean;
116
- } & { [K in xstate417.RequiredActorOptions<T>]: unknown }) | undefined], xstate417.IsNotNever<xstate417.RequiredActorOptions<T>>> : never : never : never) | ({
116
+ } & { [K in xstate136.RequiredActorOptions<T>]: unknown }) | undefined], xstate136.IsNotNever<xstate136.RequiredActorOptions<T>>> : never : never : never) | ({
117
117
  src: "submitConsent";
118
- logic: xstate417.PromiseActorLogic<void, {
118
+ logic: xstate136.PromiseActorLogic<void, {
119
119
  consentId: string;
120
120
  isSigned: boolean;
121
- }, xstate417.EventObject>;
121
+ }, xstate136.EventObject>;
122
122
  id: string | undefined;
123
123
  } extends infer T_1 ? T_1 extends {
124
124
  src: "submitConsent";
125
- logic: xstate417.PromiseActorLogic<void, {
125
+ logic: xstate136.PromiseActorLogic<void, {
126
126
  consentId: string;
127
127
  isSigned: boolean;
128
- }, xstate417.EventObject>;
128
+ }, xstate136.EventObject>;
129
129
  id: string | undefined;
130
130
  } ? T_1 extends {
131
131
  src: TSrc;
132
- } ? xstate417.ConditionalRequired<[options?: ({
132
+ } ? xstate136.ConditionalRequired<[options?: ({
133
133
  id?: T_1["id"] | undefined;
134
134
  systemId?: string;
135
- input?: xstate417.InputFrom<T_1["logic"]> | undefined;
135
+ input?: xstate136.InputFrom<T_1["logic"]> | undefined;
136
136
  syncSnapshot?: boolean;
137
- } & { [K_1 in xstate417.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate417.IsNotNever<xstate417.RequiredActorOptions<T_1>>> : never : never : never)): xstate417.ActorRefFromLogic<xstate417.GetConcreteByKey<xstate417.Values<{
137
+ } & { [K_1 in xstate136.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate136.IsNotNever<xstate136.RequiredActorOptions<T_1>>> : never : never : never)): xstate136.ActorRefFromLogic<xstate136.GetConcreteByKey<xstate136.Values<{
138
138
  fetchConsent: {
139
139
  src: "fetchConsent";
140
- logic: xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
140
+ logic: xstate136.PromiseActorLogic<FetchMandatoryConsentResponse, {
141
141
  config: MandatoryConsentConfig;
142
- }, xstate417.EventObject>;
142
+ }, xstate136.EventObject>;
143
143
  id: string | undefined;
144
144
  };
145
145
  submitConsent: {
146
146
  src: "submitConsent";
147
- logic: xstate417.PromiseActorLogic<void, {
147
+ logic: xstate136.PromiseActorLogic<void, {
148
148
  consentId: string;
149
149
  isSigned: boolean;
150
- }, xstate417.EventObject>;
150
+ }, xstate136.EventObject>;
151
151
  id: string | undefined;
152
152
  };
153
153
  }>, "src", TSrc>["logic"]>;
154
- <TLogic extends xstate417.AnyActorLogic>(src: TLogic, ...[options]: xstate417.ConditionalRequired<[options?: ({
154
+ <TLogic extends xstate136.AnyActorLogic>(src: TLogic, ...[options]: xstate136.ConditionalRequired<[options?: ({
155
155
  id?: never;
156
156
  systemId?: string;
157
- input?: xstate417.InputFrom<TLogic> | undefined;
157
+ input?: xstate136.InputFrom<TLogic> | undefined;
158
158
  syncSnapshot?: boolean;
159
- } & { [K in xstate417.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate417.IsNotNever<xstate417.RequiredLogicInput<TLogic>>>): xstate417.ActorRefFromLogic<TLogic>;
159
+ } & { [K in xstate136.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate136.IsNotNever<xstate136.RequiredLogicInput<TLogic>>>): xstate136.ActorRefFromLogic<TLogic>;
160
160
  };
161
161
  input: MandatoryConsentInput;
162
- self: xstate417.ActorRef<xstate417.MachineSnapshot<MandatoryConsentContext, {
162
+ self: xstate136.ActorRef<xstate136.MachineSnapshot<MandatoryConsentContext, {
163
163
  type: "LOAD";
164
164
  } | {
165
165
  type: "TOGGLE";
@@ -171,7 +171,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
171
171
  type: "RETRY";
172
172
  } | {
173
173
  type: "RESET";
174
- }, Record<string, xstate417.AnyActorRef | undefined>, xstate417.StateValue, string, unknown, any, any>, {
174
+ }, Record<string, xstate136.AnyActorRef | undefined>, xstate136.StateValue, string, unknown, any, any>, {
175
175
  type: "LOAD";
176
176
  } | {
177
177
  type: "TOGGLE";
@@ -183,7 +183,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
183
183
  type: "RETRY";
184
184
  } | {
185
185
  type: "RESET";
186
- }, xstate417.AnyEventObject>;
186
+ }, xstate136.AnyEventObject>;
187
187
  }) => {
188
188
  config: MandatoryConsentConfig;
189
189
  consent: undefined;
@@ -220,7 +220,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
220
220
  } | {
221
221
  type: "RESET";
222
222
  };
223
- self: xstate417.ActorRef<xstate417.MachineSnapshot<MandatoryConsentContext, {
223
+ self: xstate136.ActorRef<xstate136.MachineSnapshot<MandatoryConsentContext, {
224
224
  type: "LOAD";
225
225
  } | {
226
226
  type: "TOGGLE";
@@ -232,7 +232,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
232
232
  type: "RETRY";
233
233
  } | {
234
234
  type: "RESET";
235
- }, Record<string, xstate417.AnyActorRef>, xstate417.StateValue, string, unknown, any, any>, {
235
+ }, Record<string, xstate136.AnyActorRef>, xstate136.StateValue, string, unknown, any, any>, {
236
236
  type: "LOAD";
237
237
  } | {
238
238
  type: "TOGGLE";
@@ -244,7 +244,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
244
244
  type: "RETRY";
245
245
  } | {
246
246
  type: "RESET";
247
- }, xstate417.AnyEventObject>;
247
+ }, xstate136.AnyEventObject>;
248
248
  }) => {
249
249
  config: MandatoryConsentConfig;
250
250
  };
@@ -297,7 +297,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
297
297
  } | {
298
298
  type: "RESET";
299
299
  };
300
- self: xstate417.ActorRef<xstate417.MachineSnapshot<MandatoryConsentContext, {
300
+ self: xstate136.ActorRef<xstate136.MachineSnapshot<MandatoryConsentContext, {
301
301
  type: "LOAD";
302
302
  } | {
303
303
  type: "TOGGLE";
@@ -309,7 +309,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
309
309
  type: "RETRY";
310
310
  } | {
311
311
  type: "RESET";
312
- }, Record<string, xstate417.AnyActorRef>, xstate417.StateValue, string, unknown, any, any>, {
312
+ }, Record<string, xstate136.AnyActorRef>, xstate136.StateValue, string, unknown, any, any>, {
313
313
  type: "LOAD";
314
314
  } | {
315
315
  type: "TOGGLE";
@@ -321,7 +321,7 @@ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentCo
321
321
  type: "RETRY";
322
322
  } | {
323
323
  type: "RESET";
324
- }, xstate417.AnyEventObject>;
324
+ }, xstate136.AnyEventObject>;
325
325
  }) => {
326
326
  consentId: string;
327
327
  isSigned: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260401-018c3ea",
3
+ "version": "0.0.0-dev-20260402-2346beb",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -102,8 +102,8 @@
102
102
  "tsdown": "^0.16.6",
103
103
  "typescript": "^5.9.3",
104
104
  "vitest": "^4.0.13",
105
- "@incodetech/infra": "1.0.0",
106
- "@incodetech/config": "1.0.0"
105
+ "@incodetech/config": "1.0.0",
106
+ "@incodetech/infra": "1.0.0"
107
107
  },
108
108
  "scripts": {
109
109
  "build": "tsdown -c tsdown.config.ts",