@incodetech/core 0.0.0-dev-20260505-4b09daf → 0.0.0-dev-20260505-5596027

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.
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CcbnIt3T.js";
2
2
  import "./Actor-CazhiaK7.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-DlIJDOn_.js";
3
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-Dkx5rqm4.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
package/dist/consent.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CcbnIt3T.js";
2
2
  import "./Actor-CazhiaK7.js";
3
- import * as xstate392 from "xstate";
3
+ import * as xstate1195 from "xstate";
4
4
 
5
5
  //#region src/modules/consent/types.d.ts
6
6
  type ConsentConfig = {
@@ -36,7 +36,7 @@ type ConsentContext = {
36
36
  type ConsentInput = {
37
37
  config: ConsentConfig;
38
38
  };
39
- declare const consentMachine: xstate392.StateMachine<ConsentContext, {
39
+ declare const consentMachine: xstate1195.StateMachine<ConsentContext, {
40
40
  type: "LOAD";
41
41
  } | {
42
42
  type: "TOGGLE_CHECKBOX";
@@ -48,53 +48,53 @@ declare const consentMachine: xstate392.StateMachine<ConsentContext, {
48
48
  } | {
49
49
  type: "RESET";
50
50
  }, {
51
- [x: string]: xstate392.ActorRefFromLogic<xstate392.PromiseActorLogic<FetchCombinedConsentResponse, {
51
+ [x: string]: xstate1195.ActorRefFromLogic<xstate1195.PromiseActorLogic<FetchCombinedConsentResponse, {
52
52
  consentId: string;
53
- }, xstate392.EventObject>> | xstate392.ActorRefFromLogic<xstate392.PromiseActorLogic<void, {
53
+ }, xstate1195.EventObject>> | xstate1195.ActorRefFromLogic<xstate1195.PromiseActorLogic<void, {
54
54
  languageConsentId: string;
55
55
  checkboxes: ConsentCheckbox[];
56
- }, xstate392.EventObject>> | undefined;
57
- }, xstate392.Values<{
56
+ }, xstate1195.EventObject>> | undefined;
57
+ }, xstate1195.Values<{
58
58
  fetchConsent: {
59
59
  src: "fetchConsent";
60
- logic: xstate392.PromiseActorLogic<FetchCombinedConsentResponse, {
60
+ logic: xstate1195.PromiseActorLogic<FetchCombinedConsentResponse, {
61
61
  consentId: string;
62
- }, xstate392.EventObject>;
62
+ }, xstate1195.EventObject>;
63
63
  id: string | undefined;
64
64
  };
65
65
  submitConsent: {
66
66
  src: "submitConsent";
67
- logic: xstate392.PromiseActorLogic<void, {
67
+ logic: xstate1195.PromiseActorLogic<void, {
68
68
  languageConsentId: string;
69
69
  checkboxes: ConsentCheckbox[];
70
- }, xstate392.EventObject>;
70
+ }, xstate1195.EventObject>;
71
71
  id: string | undefined;
72
72
  };
73
- }>, xstate392.Values<{
73
+ }>, xstate1195.Values<{
74
74
  setError: {
75
75
  type: "setError";
76
- params: xstate392.NonReducibleUnknown;
76
+ params: xstate1195.NonReducibleUnknown;
77
77
  };
78
78
  clearError: {
79
79
  type: "clearError";
80
- params: xstate392.NonReducibleUnknown;
80
+ params: xstate1195.NonReducibleUnknown;
81
81
  };
82
82
  resetContext: {
83
83
  type: "resetContext";
84
- params: xstate392.NonReducibleUnknown;
84
+ params: xstate1195.NonReducibleUnknown;
85
85
  };
86
86
  setConsentData: {
87
87
  type: "setConsentData";
88
- params: xstate392.NonReducibleUnknown;
88
+ params: xstate1195.NonReducibleUnknown;
89
89
  };
90
90
  toggleCheckbox: {
91
91
  type: "toggleCheckbox";
92
- params: xstate392.NonReducibleUnknown;
92
+ params: xstate1195.NonReducibleUnknown;
93
93
  };
94
94
  }>, {
95
95
  type: "canSubmit";
96
96
  params: unknown;
97
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate392.NonReducibleUnknown, xstate392.EventObject, xstate392.MetaObject, {
97
+ }, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate1195.NonReducibleUnknown, xstate1195.EventObject, xstate1195.MetaObject, {
98
98
  readonly id: "consent";
99
99
  readonly initial: "idle";
100
100
  readonly context: ({
@@ -103,70 +103,70 @@ declare const consentMachine: xstate392.StateMachine<ConsentContext, {
103
103
  spawn: {
104
104
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
105
105
  src: "fetchConsent";
106
- logic: xstate392.PromiseActorLogic<FetchCombinedConsentResponse, {
106
+ logic: xstate1195.PromiseActorLogic<FetchCombinedConsentResponse, {
107
107
  consentId: string;
108
- }, xstate392.EventObject>;
108
+ }, xstate1195.EventObject>;
109
109
  id: string | undefined;
110
110
  } extends infer T ? T extends {
111
111
  src: "fetchConsent";
112
- logic: xstate392.PromiseActorLogic<FetchCombinedConsentResponse, {
112
+ logic: xstate1195.PromiseActorLogic<FetchCombinedConsentResponse, {
113
113
  consentId: string;
114
- }, xstate392.EventObject>;
114
+ }, xstate1195.EventObject>;
115
115
  id: string | undefined;
116
116
  } ? T extends {
117
117
  src: TSrc;
118
- } ? xstate392.ConditionalRequired<[options?: ({
118
+ } ? xstate1195.ConditionalRequired<[options?: ({
119
119
  id?: T["id"] | undefined;
120
120
  systemId?: string;
121
- input?: xstate392.InputFrom<T["logic"]> | undefined;
121
+ input?: xstate1195.InputFrom<T["logic"]> | undefined;
122
122
  syncSnapshot?: boolean;
123
- } & { [K in xstate392.RequiredActorOptions<T>]: unknown }) | undefined], xstate392.IsNotNever<xstate392.RequiredActorOptions<T>>> : never : never : never) | ({
123
+ } & { [K in xstate1195.RequiredActorOptions<T>]: unknown }) | undefined], xstate1195.IsNotNever<xstate1195.RequiredActorOptions<T>>> : never : never : never) | ({
124
124
  src: "submitConsent";
125
- logic: xstate392.PromiseActorLogic<void, {
125
+ logic: xstate1195.PromiseActorLogic<void, {
126
126
  languageConsentId: string;
127
127
  checkboxes: ConsentCheckbox[];
128
- }, xstate392.EventObject>;
128
+ }, xstate1195.EventObject>;
129
129
  id: string | undefined;
130
130
  } extends infer T_1 ? T_1 extends {
131
131
  src: "submitConsent";
132
- logic: xstate392.PromiseActorLogic<void, {
132
+ logic: xstate1195.PromiseActorLogic<void, {
133
133
  languageConsentId: string;
134
134
  checkboxes: ConsentCheckbox[];
135
- }, xstate392.EventObject>;
135
+ }, xstate1195.EventObject>;
136
136
  id: string | undefined;
137
137
  } ? T_1 extends {
138
138
  src: TSrc;
139
- } ? xstate392.ConditionalRequired<[options?: ({
139
+ } ? xstate1195.ConditionalRequired<[options?: ({
140
140
  id?: T_1["id"] | undefined;
141
141
  systemId?: string;
142
- input?: xstate392.InputFrom<T_1["logic"]> | undefined;
142
+ input?: xstate1195.InputFrom<T_1["logic"]> | undefined;
143
143
  syncSnapshot?: boolean;
144
- } & { [K_1 in xstate392.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate392.IsNotNever<xstate392.RequiredActorOptions<T_1>>> : never : never : never)): xstate392.ActorRefFromLogic<xstate392.GetConcreteByKey<xstate392.Values<{
144
+ } & { [K_1 in xstate1195.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1195.IsNotNever<xstate1195.RequiredActorOptions<T_1>>> : never : never : never)): xstate1195.ActorRefFromLogic<xstate1195.GetConcreteByKey<xstate1195.Values<{
145
145
  fetchConsent: {
146
146
  src: "fetchConsent";
147
- logic: xstate392.PromiseActorLogic<FetchCombinedConsentResponse, {
147
+ logic: xstate1195.PromiseActorLogic<FetchCombinedConsentResponse, {
148
148
  consentId: string;
149
- }, xstate392.EventObject>;
149
+ }, xstate1195.EventObject>;
150
150
  id: string | undefined;
151
151
  };
152
152
  submitConsent: {
153
153
  src: "submitConsent";
154
- logic: xstate392.PromiseActorLogic<void, {
154
+ logic: xstate1195.PromiseActorLogic<void, {
155
155
  languageConsentId: string;
156
156
  checkboxes: ConsentCheckbox[];
157
- }, xstate392.EventObject>;
157
+ }, xstate1195.EventObject>;
158
158
  id: string | undefined;
159
159
  };
160
160
  }>, "src", TSrc>["logic"]>;
161
- <TLogic extends xstate392.AnyActorLogic>(src: TLogic, ...[options]: xstate392.ConditionalRequired<[options?: ({
161
+ <TLogic extends xstate1195.AnyActorLogic>(src: TLogic, ...[options]: xstate1195.ConditionalRequired<[options?: ({
162
162
  id?: never;
163
163
  systemId?: string;
164
- input?: xstate392.InputFrom<TLogic> | undefined;
164
+ input?: xstate1195.InputFrom<TLogic> | undefined;
165
165
  syncSnapshot?: boolean;
166
- } & { [K in xstate392.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate392.IsNotNever<xstate392.RequiredLogicInput<TLogic>>>): xstate392.ActorRefFromLogic<TLogic>;
166
+ } & { [K in xstate1195.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1195.IsNotNever<xstate1195.RequiredLogicInput<TLogic>>>): xstate1195.ActorRefFromLogic<TLogic>;
167
167
  };
168
168
  input: ConsentInput;
169
- self: xstate392.ActorRef<xstate392.MachineSnapshot<ConsentContext, {
169
+ self: xstate1195.ActorRef<xstate1195.MachineSnapshot<ConsentContext, {
170
170
  type: "LOAD";
171
171
  } | {
172
172
  type: "TOGGLE_CHECKBOX";
@@ -177,7 +177,7 @@ declare const consentMachine: xstate392.StateMachine<ConsentContext, {
177
177
  type: "RETRY";
178
178
  } | {
179
179
  type: "RESET";
180
- }, Record<string, xstate392.AnyActorRef | undefined>, xstate392.StateValue, string, unknown, any, any>, {
180
+ }, Record<string, xstate1195.AnyActorRef | undefined>, xstate1195.StateValue, string, unknown, any, any>, {
181
181
  type: "LOAD";
182
182
  } | {
183
183
  type: "TOGGLE_CHECKBOX";
@@ -188,7 +188,7 @@ declare const consentMachine: xstate392.StateMachine<ConsentContext, {
188
188
  type: "RETRY";
189
189
  } | {
190
190
  type: "RESET";
191
- }, xstate392.AnyEventObject>;
191
+ }, xstate1195.AnyEventObject>;
192
192
  }) => {
193
193
  config: ConsentConfig;
194
194
  title: string;
@@ -226,7 +226,7 @@ declare const consentMachine: xstate392.StateMachine<ConsentContext, {
226
226
  } | {
227
227
  type: "RESET";
228
228
  };
229
- self: xstate392.ActorRef<xstate392.MachineSnapshot<ConsentContext, {
229
+ self: xstate1195.ActorRef<xstate1195.MachineSnapshot<ConsentContext, {
230
230
  type: "LOAD";
231
231
  } | {
232
232
  type: "TOGGLE_CHECKBOX";
@@ -237,7 +237,7 @@ declare const consentMachine: xstate392.StateMachine<ConsentContext, {
237
237
  type: "RETRY";
238
238
  } | {
239
239
  type: "RESET";
240
- }, Record<string, xstate392.AnyActorRef>, xstate392.StateValue, string, unknown, any, any>, {
240
+ }, Record<string, xstate1195.AnyActorRef>, xstate1195.StateValue, string, unknown, any, any>, {
241
241
  type: "LOAD";
242
242
  } | {
243
243
  type: "TOGGLE_CHECKBOX";
@@ -248,7 +248,7 @@ declare const consentMachine: xstate392.StateMachine<ConsentContext, {
248
248
  type: "RETRY";
249
249
  } | {
250
250
  type: "RESET";
251
- }, xstate392.AnyEventObject>;
251
+ }, xstate1195.AnyEventObject>;
252
252
  }) => {
253
253
  consentId: string;
254
254
  };
@@ -297,7 +297,7 @@ declare const consentMachine: xstate392.StateMachine<ConsentContext, {
297
297
  } | {
298
298
  type: "RESET";
299
299
  };
300
- self: xstate392.ActorRef<xstate392.MachineSnapshot<ConsentContext, {
300
+ self: xstate1195.ActorRef<xstate1195.MachineSnapshot<ConsentContext, {
301
301
  type: "LOAD";
302
302
  } | {
303
303
  type: "TOGGLE_CHECKBOX";
@@ -308,7 +308,7 @@ declare const consentMachine: xstate392.StateMachine<ConsentContext, {
308
308
  type: "RETRY";
309
309
  } | {
310
310
  type: "RESET";
311
- }, Record<string, xstate392.AnyActorRef>, xstate392.StateValue, string, unknown, any, any>, {
311
+ }, Record<string, xstate1195.AnyActorRef>, xstate1195.StateValue, string, unknown, any, any>, {
312
312
  type: "LOAD";
313
313
  } | {
314
314
  type: "TOGGLE_CHECKBOX";
@@ -319,7 +319,7 @@ declare const consentMachine: xstate392.StateMachine<ConsentContext, {
319
319
  type: "RETRY";
320
320
  } | {
321
321
  type: "RESET";
322
- }, xstate392.AnyEventObject>;
322
+ }, xstate1195.AnyEventObject>;
323
323
  }) => {
324
324
  languageConsentId: string;
325
325
  checkboxes: ConsentCheckbox[];
package/dist/cpf-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-CcbnIt3T.js";
2
- import * as xstate460 from "xstate";
2
+ import * as xstate1106 from "xstate";
3
3
 
4
4
  //#region src/modules/cpf-ocr/cpfOcrManager.d.ts
5
5
  type CpfOcrIdleState = {
@@ -47,7 +47,7 @@ type CpfOcrContext = {
47
47
  error: string | undefined;
48
48
  };
49
49
  type CpfOcrInput = Record<string, never>;
50
- declare const cpfOcrMachine: xstate460.StateMachine<CpfOcrContext, {
50
+ declare const cpfOcrMachine: xstate1106.StateMachine<CpfOcrContext, {
51
51
  type: "LOAD";
52
52
  } | {
53
53
  type: "SET_CPF";
@@ -57,43 +57,43 @@ declare const cpfOcrMachine: xstate460.StateMachine<CpfOcrContext, {
57
57
  } | {
58
58
  type: "RETRY";
59
59
  }, {
60
- [x: string]: xstate460.ActorRefFromLogic<xstate460.PromiseActorLogic<CpfOcrDataResponse, void, xstate460.EventObject>> | xstate460.ActorRefFromLogic<xstate460.PromiseActorLogic<CpfOcrUpdateResponse, {
60
+ [x: string]: xstate1106.ActorRefFromLogic<xstate1106.PromiseActorLogic<CpfOcrDataResponse, void, xstate1106.EventObject>> | xstate1106.ActorRefFromLogic<xstate1106.PromiseActorLogic<CpfOcrUpdateResponse, {
61
61
  cpf: string;
62
- }, xstate460.EventObject>> | undefined;
63
- }, xstate460.Values<{
62
+ }, xstate1106.EventObject>> | undefined;
63
+ }, xstate1106.Values<{
64
64
  fetchCpfOcrData: {
65
65
  src: "fetchCpfOcrData";
66
- logic: xstate460.PromiseActorLogic<CpfOcrDataResponse, void, xstate460.EventObject>;
66
+ logic: xstate1106.PromiseActorLogic<CpfOcrDataResponse, void, xstate1106.EventObject>;
67
67
  id: string | undefined;
68
68
  };
69
69
  submitCpfOcr: {
70
70
  src: "submitCpfOcr";
71
- logic: xstate460.PromiseActorLogic<CpfOcrUpdateResponse, {
71
+ logic: xstate1106.PromiseActorLogic<CpfOcrUpdateResponse, {
72
72
  cpf: string;
73
- }, xstate460.EventObject>;
73
+ }, xstate1106.EventObject>;
74
74
  id: string | undefined;
75
75
  };
76
- }>, xstate460.Values<{
76
+ }>, xstate1106.Values<{
77
77
  setError: {
78
78
  type: "setError";
79
- params: xstate460.NonReducibleUnknown;
79
+ params: xstate1106.NonReducibleUnknown;
80
80
  };
81
81
  clearError: {
82
82
  type: "clearError";
83
- params: xstate460.NonReducibleUnknown;
83
+ params: xstate1106.NonReducibleUnknown;
84
84
  };
85
85
  setPrefill: {
86
86
  type: "setPrefill";
87
- params: xstate460.NonReducibleUnknown;
87
+ params: xstate1106.NonReducibleUnknown;
88
88
  };
89
89
  setCpf: {
90
90
  type: "setCpf";
91
- params: xstate460.NonReducibleUnknown;
91
+ params: xstate1106.NonReducibleUnknown;
92
92
  };
93
93
  }>, {
94
94
  type: "isValid";
95
95
  params: unknown;
96
- }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate460.NonReducibleUnknown, xstate460.EventObject, xstate460.MetaObject, {
96
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting", string, CpfOcrInput, xstate1106.NonReducibleUnknown, xstate1106.EventObject, xstate1106.MetaObject, {
97
97
  readonly id: "cpfOcr";
98
98
  readonly initial: "idle";
99
99
  readonly context: {
@@ -148,7 +148,7 @@ declare const cpfOcrMachine: xstate460.StateMachine<CpfOcrContext, {
148
148
  } | {
149
149
  type: "RETRY";
150
150
  };
151
- self: xstate460.ActorRef<xstate460.MachineSnapshot<CpfOcrContext, {
151
+ self: xstate1106.ActorRef<xstate1106.MachineSnapshot<CpfOcrContext, {
152
152
  type: "LOAD";
153
153
  } | {
154
154
  type: "SET_CPF";
@@ -157,7 +157,7 @@ declare const cpfOcrMachine: xstate460.StateMachine<CpfOcrContext, {
157
157
  type: "SUBMIT";
158
158
  } | {
159
159
  type: "RETRY";
160
- }, Record<string, xstate460.AnyActorRef>, xstate460.StateValue, string, unknown, any, any>, {
160
+ }, Record<string, xstate1106.AnyActorRef>, xstate1106.StateValue, string, unknown, any, any>, {
161
161
  type: "LOAD";
162
162
  } | {
163
163
  type: "SET_CPF";
@@ -166,7 +166,7 @@ declare const cpfOcrMachine: xstate460.StateMachine<CpfOcrContext, {
166
166
  type: "SUBMIT";
167
167
  } | {
168
168
  type: "RETRY";
169
- }, xstate460.AnyEventObject>;
169
+ }, xstate1106.AnyEventObject>;
170
170
  }) => {
171
171
  cpf: string;
172
172
  };