@incodetech/core 0.0.0-dev-20260616-e026f0c8 → 0.0.0-dev-20260616-ac25cc2c

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.
Files changed (38) hide show
  1. package/dist/ae-signature.d.ts +1 -1
  2. package/dist/certificate-issuance.d.ts +71 -29
  3. package/dist/certificate-issuance.esm.js +8 -1
  4. package/dist/{certificateIssuanceStateMachine-DB2r-cpB.esm.js → certificateIssuanceStateMachine-bhWVYKYV.esm.js} +6 -1
  5. package/dist/consent.d.ts +1 -1
  6. package/dist/{consentManager-DWB0fOnC.d.ts → consentManager-C7RMZy5x.d.ts} +52 -52
  7. package/dist/cpf-ocr.d.ts +1 -1
  8. package/dist/{cpfOcrManager-DZudorH5.d.ts → cpfOcrManager-BAT8zE9Q.d.ts} +23 -23
  9. package/dist/document-capture.d.ts +231 -231
  10. package/dist/document-upload.d.ts +49 -49
  11. package/dist/ekyb.esm.js +3 -3
  12. package/dist/{ekybStateMachine-iBJaSAJs.esm.js → ekybStateMachine-9t9jMUFT.esm.js} +1 -1
  13. package/dist/electronic-signature.d.ts +1 -1
  14. package/dist/extensibility.d.ts +4 -4
  15. package/dist/extensibility.esm.js +3 -3
  16. package/dist/flow.esm.js +2 -2
  17. package/dist/{flowServices-BRfa1_9p.esm.js → flowServices-4fUZhkAk.esm.js} +1 -1
  18. package/dist/home.d.ts +10 -10
  19. package/dist/id-ocr.d.ts +52 -52
  20. package/dist/id-verification.d.ts +25 -25
  21. package/dist/id.esm.js +3 -3
  22. package/dist/{idCaptureManager-Cm-IXB70.esm.js → idCaptureManager-C7yhDl26.esm.js} +1 -1
  23. package/dist/{idCaptureStateMachine-CU3F89Pn.esm.js → idCaptureStateMachine-Bz5bCRoq.esm.js} +1 -1
  24. package/dist/identity-reuse.d.ts +1 -1
  25. package/dist/{identityReuseManager-mEnl2R8N.d.ts → identityReuseManager-DAPEjILf.d.ts} +34 -34
  26. package/dist/{index-B1r8U5de.d.ts → index-CO4FBpAu.d.ts} +168 -168
  27. package/dist/index.esm.js +2 -2
  28. package/dist/mandatory-consent.d.ts +1 -1
  29. package/dist/{mandatoryConsentManager-HAXD0YGt.d.ts → mandatoryConsentManager-CcQshPE2.d.ts} +53 -53
  30. package/dist/qe-signature.d.ts +1 -1
  31. package/dist/session.esm.js +1 -1
  32. package/dist/{sessionInitializer-Qlg7EwTl.esm.js → sessionInitializer-DDIttcbx.esm.js} +1 -1
  33. package/dist/{setup-wZGxwi9m.esm.js → setup-fYMp8WIL.esm.js} +1 -1
  34. package/dist/trust-graph.d.ts +2 -2
  35. package/dist/wasm.esm.js +2 -2
  36. package/dist/workflow.d.ts +85 -85
  37. package/dist/workflow.esm.js +5 -5
  38. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CHiHBvMT.js";
2
2
  import "./Actor-CeqUTqL9.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-B1r8U5de.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-CO4FBpAu.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CHiHBvMT.js";
2
2
  import "./Actor-CeqUTqL9.js";
3
- import * as xstate1004 from "xstate";
3
+ import * as xstate481 from "xstate";
4
4
 
5
5
  //#region src/modules/certificate-issuance/certificateIssuanceConstants.d.ts
6
6
  declare const MIN_PASSWORD_LENGTH = 8;
@@ -39,38 +39,42 @@ type CertificateIssuanceContext = {
39
39
  type CertificateIssuanceInput = {
40
40
  config: CertificateIssuanceConfig;
41
41
  };
42
- declare const certificateIssuanceMachine: xstate1004.StateMachine<CertificateIssuanceContext, {
42
+ declare const certificateIssuanceMachine: xstate481.StateMachine<CertificateIssuanceContext, {
43
43
  type: "LOAD";
44
44
  } | {
45
45
  type: "PASSWORD_CHANGED";
46
46
  password: string;
47
47
  } | {
48
48
  type: "SUBMIT_PASSWORD";
49
+ } | {
50
+ type: "DOWNLOADED";
51
+ } | {
52
+ type: "DOWNLOAD_FAILED";
49
53
  } | {
50
54
  type: "FINISH";
51
55
  }, {
52
- [x: string]: xstate1004.ActorRefFromLogic<xstate1004.PromiseActorLogic<IssueCertificateResponse, {
56
+ [x: string]: xstate481.ActorRefFromLogic<xstate481.PromiseActorLogic<IssueCertificateResponse, {
53
57
  password: string;
54
- }, xstate1004.EventObject>> | undefined;
58
+ }, xstate481.EventObject>> | undefined;
55
59
  }, {
56
60
  src: "issueCertificate";
57
- logic: xstate1004.PromiseActorLogic<IssueCertificateResponse, {
61
+ logic: xstate481.PromiseActorLogic<IssueCertificateResponse, {
58
62
  password: string;
59
- }, xstate1004.EventObject>;
63
+ }, xstate481.EventObject>;
60
64
  id: string | undefined;
61
- }, xstate1004.Values<{
65
+ }, xstate481.Values<{
62
66
  setPassword: {
63
67
  type: "setPassword";
64
- params: xstate1004.NonReducibleUnknown;
68
+ params: xstate481.NonReducibleUnknown;
65
69
  };
66
70
  setBlob: {
67
71
  type: "setBlob";
68
- params: xstate1004.NonReducibleUnknown;
72
+ params: xstate481.NonReducibleUnknown;
69
73
  };
70
74
  }>, {
71
75
  type: "isPasswordValid";
72
76
  params: unknown;
73
- }, never, "error" | "idle" | "processing" | "success" | "finished" | "password", string, CertificateIssuanceInput, xstate1004.NonReducibleUnknown, xstate1004.EventObject, xstate1004.MetaObject, {
77
+ }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate481.NonReducibleUnknown, xstate481.EventObject, xstate481.MetaObject, {
74
78
  readonly id: "certificateIssuance";
75
79
  readonly initial: "idle";
76
80
  readonly context: ({
@@ -79,57 +83,65 @@ declare const certificateIssuanceMachine: xstate1004.StateMachine<CertificateIss
79
83
  spawn: {
80
84
  <TSrc extends "issueCertificate">(logic: TSrc, ...[options]: {
81
85
  src: "issueCertificate";
82
- logic: xstate1004.PromiseActorLogic<IssueCertificateResponse, {
86
+ logic: xstate481.PromiseActorLogic<IssueCertificateResponse, {
83
87
  password: string;
84
- }, xstate1004.EventObject>;
88
+ }, xstate481.EventObject>;
85
89
  id: string | undefined;
86
90
  } extends infer T ? T extends {
87
91
  src: "issueCertificate";
88
- logic: xstate1004.PromiseActorLogic<IssueCertificateResponse, {
92
+ logic: xstate481.PromiseActorLogic<IssueCertificateResponse, {
89
93
  password: string;
90
- }, xstate1004.EventObject>;
94
+ }, xstate481.EventObject>;
91
95
  id: string | undefined;
92
96
  } ? T extends {
93
97
  src: TSrc;
94
- } ? xstate1004.ConditionalRequired<[options?: ({
98
+ } ? xstate481.ConditionalRequired<[options?: ({
95
99
  id?: T["id"] | undefined;
96
100
  systemId?: string;
97
- input?: xstate1004.InputFrom<T["logic"]> | undefined;
101
+ input?: xstate481.InputFrom<T["logic"]> | undefined;
98
102
  syncSnapshot?: boolean;
99
- } & { [K in xstate1004.RequiredActorOptions<T>]: unknown }) | undefined], xstate1004.IsNotNever<xstate1004.RequiredActorOptions<T>>> : never : never : never): xstate1004.ActorRefFromLogic<xstate1004.GetConcreteByKey<{
103
+ } & { [K in xstate481.RequiredActorOptions<T>]: unknown }) | undefined], xstate481.IsNotNever<xstate481.RequiredActorOptions<T>>> : never : never : never): xstate481.ActorRefFromLogic<xstate481.GetConcreteByKey<{
100
104
  src: "issueCertificate";
101
- logic: xstate1004.PromiseActorLogic<IssueCertificateResponse, {
105
+ logic: xstate481.PromiseActorLogic<IssueCertificateResponse, {
102
106
  password: string;
103
- }, xstate1004.EventObject>;
107
+ }, xstate481.EventObject>;
104
108
  id: string | undefined;
105
109
  }, "src", TSrc>["logic"]>;
106
- <TLogic extends xstate1004.AnyActorLogic>(src: TLogic, ...[options]: xstate1004.ConditionalRequired<[options?: ({
110
+ <TLogic extends xstate481.AnyActorLogic>(src: TLogic, ...[options]: xstate481.ConditionalRequired<[options?: ({
107
111
  id?: never;
108
112
  systemId?: string;
109
- input?: xstate1004.InputFrom<TLogic> | undefined;
113
+ input?: xstate481.InputFrom<TLogic> | undefined;
110
114
  syncSnapshot?: boolean;
111
- } & { [K in xstate1004.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1004.IsNotNever<xstate1004.RequiredLogicInput<TLogic>>>): xstate1004.ActorRefFromLogic<TLogic>;
115
+ } & { [K in xstate481.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate481.IsNotNever<xstate481.RequiredLogicInput<TLogic>>>): xstate481.ActorRefFromLogic<TLogic>;
112
116
  };
113
117
  input: CertificateIssuanceInput;
114
- self: xstate1004.ActorRef<xstate1004.MachineSnapshot<CertificateIssuanceContext, {
118
+ self: xstate481.ActorRef<xstate481.MachineSnapshot<CertificateIssuanceContext, {
115
119
  type: "LOAD";
116
120
  } | {
117
121
  type: "PASSWORD_CHANGED";
118
122
  password: string;
119
123
  } | {
120
124
  type: "SUBMIT_PASSWORD";
125
+ } | {
126
+ type: "DOWNLOADED";
127
+ } | {
128
+ type: "DOWNLOAD_FAILED";
121
129
  } | {
122
130
  type: "FINISH";
123
- }, Record<string, xstate1004.AnyActorRef | undefined>, xstate1004.StateValue, string, unknown, any, any>, {
131
+ }, Record<string, xstate481.AnyActorRef | undefined>, xstate481.StateValue, string, unknown, any, any>, {
124
132
  type: "LOAD";
125
133
  } | {
126
134
  type: "PASSWORD_CHANGED";
127
135
  password: string;
128
136
  } | {
129
137
  type: "SUBMIT_PASSWORD";
138
+ } | {
139
+ type: "DOWNLOADED";
140
+ } | {
141
+ type: "DOWNLOAD_FAILED";
130
142
  } | {
131
143
  type: "FINISH";
132
- }, xstate1004.AnyEventObject>;
144
+ }, xstate481.AnyEventObject>;
133
145
  }) => {
134
146
  config: CertificateIssuanceConfig;
135
147
  password: string;
@@ -170,28 +182,40 @@ declare const certificateIssuanceMachine: xstate1004.StateMachine<CertificateIss
170
182
  password: string;
171
183
  } | {
172
184
  type: "SUBMIT_PASSWORD";
185
+ } | {
186
+ type: "DOWNLOADED";
187
+ } | {
188
+ type: "DOWNLOAD_FAILED";
173
189
  } | {
174
190
  type: "FINISH";
175
191
  };
176
- self: xstate1004.ActorRef<xstate1004.MachineSnapshot<CertificateIssuanceContext, {
192
+ self: xstate481.ActorRef<xstate481.MachineSnapshot<CertificateIssuanceContext, {
177
193
  type: "LOAD";
178
194
  } | {
179
195
  type: "PASSWORD_CHANGED";
180
196
  password: string;
181
197
  } | {
182
198
  type: "SUBMIT_PASSWORD";
199
+ } | {
200
+ type: "DOWNLOADED";
201
+ } | {
202
+ type: "DOWNLOAD_FAILED";
183
203
  } | {
184
204
  type: "FINISH";
185
- }, Record<string, xstate1004.AnyActorRef>, xstate1004.StateValue, string, unknown, any, any>, {
205
+ }, Record<string, xstate481.AnyActorRef>, xstate481.StateValue, string, unknown, any, any>, {
186
206
  type: "LOAD";
187
207
  } | {
188
208
  type: "PASSWORD_CHANGED";
189
209
  password: string;
190
210
  } | {
191
211
  type: "SUBMIT_PASSWORD";
212
+ } | {
213
+ type: "DOWNLOADED";
214
+ } | {
215
+ type: "DOWNLOAD_FAILED";
192
216
  } | {
193
217
  type: "FINISH";
194
- }, xstate1004.AnyEventObject>;
218
+ }, xstate481.AnyEventObject>;
195
219
  }) => {
196
220
  password: string;
197
221
  };
@@ -205,6 +229,19 @@ declare const certificateIssuanceMachine: xstate1004.StateMachine<CertificateIss
205
229
  };
206
230
  };
207
231
  readonly success: {
232
+ readonly on: {
233
+ readonly DOWNLOADED: {
234
+ readonly target: "downloaded";
235
+ };
236
+ readonly DOWNLOAD_FAILED: {
237
+ readonly target: "error";
238
+ };
239
+ readonly FINISH: {
240
+ readonly target: "finished";
241
+ };
242
+ };
243
+ };
244
+ readonly downloaded: {
208
245
  readonly on: {
209
246
  readonly FINISH: {
210
247
  readonly target: "finished";
@@ -249,14 +286,19 @@ type CertificateIssuanceSuccessState = {
249
286
  status: 'success';
250
287
  blob: Blob;
251
288
  };
289
+ type CertificateIssuanceDownloadedState = {
290
+ status: 'downloaded';
291
+ };
252
292
  type CertificateIssuanceFinishedState = {
253
293
  status: 'finished';
254
294
  };
255
- type CertificateIssuanceState = CertificateIssuanceIdleState | CertificateIssuancePasswordState | CertificateIssuanceProcessingState | CertificateIssuanceSuccessState | CertificateIssuanceErrorState | CertificateIssuanceFinishedState;
295
+ type CertificateIssuanceState = CertificateIssuanceIdleState | CertificateIssuancePasswordState | CertificateIssuanceProcessingState | CertificateIssuanceSuccessState | CertificateIssuanceDownloadedState | CertificateIssuanceErrorState | CertificateIssuanceFinishedState;
256
296
  declare function createCertificateIssuanceManager(options: CreateCertificateIssuanceActorOptions): Manager<CertificateIssuanceState> & {
257
297
  load(): void;
258
298
  setPassword(password: string): void;
259
299
  submitPassword(): void;
300
+ markDownloaded(): void;
301
+ reportDownloadError(): void;
260
302
  finish(): void;
261
303
  };
262
304
  type CertificateIssuanceManager = ReturnType<typeof createCertificateIssuanceManager>;
@@ -4,7 +4,7 @@ import "./endpoints-B2t80MAM.esm.js";
4
4
  import { c as createManager, s as createActor } from "./xstate.esm-CbU9dpcC.esm.js";
5
5
  import "./urlUtils-8RNHyW3x.esm.js";
6
6
  import "./externalFetch-crimxkN9.esm.js";
7
- import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-DB2r-cpB.esm.js";
7
+ import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-bhWVYKYV.esm.js";
8
8
 
9
9
  //#region src/modules/certificate-issuance/certificateIssuanceActor.ts
10
10
  /**
@@ -31,6 +31,7 @@ function mapState(snapshot) {
31
31
  status: "success",
32
32
  blob: context.certificateBlob
33
33
  };
34
+ if (typedSnapshot.matches("downloaded")) return { status: "downloaded" };
34
35
  if (typedSnapshot.matches("finished")) return { status: "finished" };
35
36
  return { status: "idle" };
36
37
  }
@@ -48,6 +49,12 @@ function createApi({ actor }) {
48
49
  submitPassword() {
49
50
  actor.send({ type: "SUBMIT_PASSWORD" });
50
51
  },
52
+ markDownloaded() {
53
+ actor.send({ type: "DOWNLOADED" });
54
+ },
55
+ reportDownloadError() {
56
+ actor.send({ type: "DOWNLOAD_FAILED" });
57
+ },
51
58
  finish() {
52
59
  actor.send({ type: "FINISH" });
53
60
  }
@@ -112,7 +112,12 @@ const certificateIssuanceMachine = setup({
112
112
  },
113
113
  onError: { target: "error" }
114
114
  } },
115
- success: { on: { FINISH: { target: "finished" } } },
115
+ success: { on: {
116
+ DOWNLOADED: { target: "downloaded" },
117
+ DOWNLOAD_FAILED: { target: "error" },
118
+ FINISH: { target: "finished" }
119
+ } },
120
+ downloaded: { on: { FINISH: { target: "finished" } } },
116
121
  error: { after: { 3e3: { target: "finished" } } },
117
122
  finished: { type: "final" }
118
123
  }
package/dist/consent.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./Manager-CHiHBvMT.js";
2
2
  import "./Actor-CeqUTqL9.js";
3
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-DWB0fOnC.js";
3
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-C7RMZy5x.js";
4
4
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CHiHBvMT.js";
2
2
  import { t as ActorRefFrom } from "./Actor-CeqUTqL9.js";
3
- import * as xstate24 from "xstate";
3
+ import * as xstate1222 from "xstate";
4
4
 
5
5
  //#region src/modules/consent/types.d.ts
6
6
  type ConsentConfig = {
@@ -37,7 +37,7 @@ type ConsentContext = {
37
37
  type ConsentInput = {
38
38
  config: ConsentConfig;
39
39
  };
40
- declare const consentMachine: xstate24.StateMachine<ConsentContext, {
40
+ declare const consentMachine: xstate1222.StateMachine<ConsentContext, {
41
41
  type: "LOAD";
42
42
  } | {
43
43
  type: "TOGGLE_CHECKBOX";
@@ -49,55 +49,55 @@ declare const consentMachine: xstate24.StateMachine<ConsentContext, {
49
49
  } | {
50
50
  type: "RESET";
51
51
  }, {
52
- [x: string]: xstate24.ActorRefFromLogic<xstate24.PromiseActorLogic<FetchCombinedConsentResponse, {
52
+ [x: string]: xstate1222.ActorRefFromLogic<xstate1222.PromiseActorLogic<FetchCombinedConsentResponse, {
53
53
  consentId: string;
54
54
  language?: string;
55
- }, xstate24.EventObject>> | xstate24.ActorRefFromLogic<xstate24.PromiseActorLogic<void, {
55
+ }, xstate1222.EventObject>> | xstate1222.ActorRefFromLogic<xstate1222.PromiseActorLogic<void, {
56
56
  languageConsentId: string;
57
57
  checkboxes: ConsentCheckbox[];
58
- }, xstate24.EventObject>> | undefined;
59
- }, xstate24.Values<{
58
+ }, xstate1222.EventObject>> | undefined;
59
+ }, xstate1222.Values<{
60
60
  fetchConsent: {
61
61
  src: "fetchConsent";
62
- logic: xstate24.PromiseActorLogic<FetchCombinedConsentResponse, {
62
+ logic: xstate1222.PromiseActorLogic<FetchCombinedConsentResponse, {
63
63
  consentId: string;
64
64
  language?: string;
65
- }, xstate24.EventObject>;
65
+ }, xstate1222.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
68
  submitConsent: {
69
69
  src: "submitConsent";
70
- logic: xstate24.PromiseActorLogic<void, {
70
+ logic: xstate1222.PromiseActorLogic<void, {
71
71
  languageConsentId: string;
72
72
  checkboxes: ConsentCheckbox[];
73
- }, xstate24.EventObject>;
73
+ }, xstate1222.EventObject>;
74
74
  id: string | undefined;
75
75
  };
76
- }>, xstate24.Values<{
76
+ }>, xstate1222.Values<{
77
+ clearError: {
78
+ type: "clearError";
79
+ params: xstate1222.NonReducibleUnknown;
80
+ };
77
81
  setError: {
78
82
  type: "setError";
79
- params: xstate24.NonReducibleUnknown;
83
+ params: xstate1222.NonReducibleUnknown;
80
84
  };
81
- clearError: {
82
- type: "clearError";
83
- params: xstate24.NonReducibleUnknown;
85
+ resetContext: {
86
+ type: "resetContext";
87
+ params: xstate1222.NonReducibleUnknown;
84
88
  };
85
89
  setConsentData: {
86
90
  type: "setConsentData";
87
- params: xstate24.NonReducibleUnknown;
91
+ params: xstate1222.NonReducibleUnknown;
88
92
  };
89
93
  toggleCheckbox: {
90
94
  type: "toggleCheckbox";
91
- params: xstate24.NonReducibleUnknown;
92
- };
93
- resetContext: {
94
- type: "resetContext";
95
- params: xstate24.NonReducibleUnknown;
95
+ params: xstate1222.NonReducibleUnknown;
96
96
  };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate24.NonReducibleUnknown, xstate24.EventObject, xstate24.MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate1222.NonReducibleUnknown, xstate1222.EventObject, xstate1222.MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({
@@ -106,73 +106,73 @@ declare const consentMachine: xstate24.StateMachine<ConsentContext, {
106
106
  spawn: {
107
107
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
108
108
  src: "fetchConsent";
109
- logic: xstate24.PromiseActorLogic<FetchCombinedConsentResponse, {
109
+ logic: xstate1222.PromiseActorLogic<FetchCombinedConsentResponse, {
110
110
  consentId: string;
111
111
  language?: string;
112
- }, xstate24.EventObject>;
112
+ }, xstate1222.EventObject>;
113
113
  id: string | undefined;
114
114
  } extends infer T ? T extends {
115
115
  src: "fetchConsent";
116
- logic: xstate24.PromiseActorLogic<FetchCombinedConsentResponse, {
116
+ logic: xstate1222.PromiseActorLogic<FetchCombinedConsentResponse, {
117
117
  consentId: string;
118
118
  language?: string;
119
- }, xstate24.EventObject>;
119
+ }, xstate1222.EventObject>;
120
120
  id: string | undefined;
121
121
  } ? T extends {
122
122
  src: TSrc;
123
- } ? xstate24.ConditionalRequired<[options?: ({
123
+ } ? xstate1222.ConditionalRequired<[options?: ({
124
124
  id?: T["id"] | undefined;
125
125
  systemId?: string;
126
- input?: xstate24.InputFrom<T["logic"]> | undefined;
126
+ input?: xstate1222.InputFrom<T["logic"]> | undefined;
127
127
  syncSnapshot?: boolean;
128
- } & { [K in xstate24.RequiredActorOptions<T>]: unknown }) | undefined], xstate24.IsNotNever<xstate24.RequiredActorOptions<T>>> : never : never : never) | ({
128
+ } & { [K in xstate1222.RequiredActorOptions<T>]: unknown }) | undefined], xstate1222.IsNotNever<xstate1222.RequiredActorOptions<T>>> : never : never : never) | ({
129
129
  src: "submitConsent";
130
- logic: xstate24.PromiseActorLogic<void, {
130
+ logic: xstate1222.PromiseActorLogic<void, {
131
131
  languageConsentId: string;
132
132
  checkboxes: ConsentCheckbox[];
133
- }, xstate24.EventObject>;
133
+ }, xstate1222.EventObject>;
134
134
  id: string | undefined;
135
135
  } extends infer T_1 ? T_1 extends {
136
136
  src: "submitConsent";
137
- logic: xstate24.PromiseActorLogic<void, {
137
+ logic: xstate1222.PromiseActorLogic<void, {
138
138
  languageConsentId: string;
139
139
  checkboxes: ConsentCheckbox[];
140
- }, xstate24.EventObject>;
140
+ }, xstate1222.EventObject>;
141
141
  id: string | undefined;
142
142
  } ? T_1 extends {
143
143
  src: TSrc;
144
- } ? xstate24.ConditionalRequired<[options?: ({
144
+ } ? xstate1222.ConditionalRequired<[options?: ({
145
145
  id?: T_1["id"] | undefined;
146
146
  systemId?: string;
147
- input?: xstate24.InputFrom<T_1["logic"]> | undefined;
147
+ input?: xstate1222.InputFrom<T_1["logic"]> | undefined;
148
148
  syncSnapshot?: boolean;
149
- } & { [K_1 in xstate24.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate24.IsNotNever<xstate24.RequiredActorOptions<T_1>>> : never : never : never)): xstate24.ActorRefFromLogic<xstate24.GetConcreteByKey<xstate24.Values<{
149
+ } & { [K_1 in xstate1222.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1222.IsNotNever<xstate1222.RequiredActorOptions<T_1>>> : never : never : never)): xstate1222.ActorRefFromLogic<xstate1222.GetConcreteByKey<xstate1222.Values<{
150
150
  fetchConsent: {
151
151
  src: "fetchConsent";
152
- logic: xstate24.PromiseActorLogic<FetchCombinedConsentResponse, {
152
+ logic: xstate1222.PromiseActorLogic<FetchCombinedConsentResponse, {
153
153
  consentId: string;
154
154
  language?: string;
155
- }, xstate24.EventObject>;
155
+ }, xstate1222.EventObject>;
156
156
  id: string | undefined;
157
157
  };
158
158
  submitConsent: {
159
159
  src: "submitConsent";
160
- logic: xstate24.PromiseActorLogic<void, {
160
+ logic: xstate1222.PromiseActorLogic<void, {
161
161
  languageConsentId: string;
162
162
  checkboxes: ConsentCheckbox[];
163
- }, xstate24.EventObject>;
163
+ }, xstate1222.EventObject>;
164
164
  id: string | undefined;
165
165
  };
166
166
  }>, "src", TSrc>["logic"]>;
167
- <TLogic extends xstate24.AnyActorLogic>(src: TLogic, ...[options]: xstate24.ConditionalRequired<[options?: ({
167
+ <TLogic extends xstate1222.AnyActorLogic>(src: TLogic, ...[options]: xstate1222.ConditionalRequired<[options?: ({
168
168
  id?: never;
169
169
  systemId?: string;
170
- input?: xstate24.InputFrom<TLogic> | undefined;
170
+ input?: xstate1222.InputFrom<TLogic> | undefined;
171
171
  syncSnapshot?: boolean;
172
- } & { [K in xstate24.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate24.IsNotNever<xstate24.RequiredLogicInput<TLogic>>>): xstate24.ActorRefFromLogic<TLogic>;
172
+ } & { [K in xstate1222.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1222.IsNotNever<xstate1222.RequiredLogicInput<TLogic>>>): xstate1222.ActorRefFromLogic<TLogic>;
173
173
  };
174
174
  input: ConsentInput;
175
- self: xstate24.ActorRef<xstate24.MachineSnapshot<ConsentContext, {
175
+ self: xstate1222.ActorRef<xstate1222.MachineSnapshot<ConsentContext, {
176
176
  type: "LOAD";
177
177
  } | {
178
178
  type: "TOGGLE_CHECKBOX";
@@ -183,7 +183,7 @@ declare const consentMachine: xstate24.StateMachine<ConsentContext, {
183
183
  type: "RETRY";
184
184
  } | {
185
185
  type: "RESET";
186
- }, Record<string, xstate24.AnyActorRef | undefined>, xstate24.StateValue, string, unknown, any, any>, {
186
+ }, Record<string, xstate1222.AnyActorRef | undefined>, xstate1222.StateValue, string, unknown, any, any>, {
187
187
  type: "LOAD";
188
188
  } | {
189
189
  type: "TOGGLE_CHECKBOX";
@@ -194,7 +194,7 @@ declare const consentMachine: xstate24.StateMachine<ConsentContext, {
194
194
  type: "RETRY";
195
195
  } | {
196
196
  type: "RESET";
197
- }, xstate24.AnyEventObject>;
197
+ }, xstate1222.AnyEventObject>;
198
198
  }) => {
199
199
  config: ConsentConfig;
200
200
  title: string;
@@ -232,7 +232,7 @@ declare const consentMachine: xstate24.StateMachine<ConsentContext, {
232
232
  } | {
233
233
  type: "RESET";
234
234
  };
235
- self: xstate24.ActorRef<xstate24.MachineSnapshot<ConsentContext, {
235
+ self: xstate1222.ActorRef<xstate1222.MachineSnapshot<ConsentContext, {
236
236
  type: "LOAD";
237
237
  } | {
238
238
  type: "TOGGLE_CHECKBOX";
@@ -243,7 +243,7 @@ declare const consentMachine: xstate24.StateMachine<ConsentContext, {
243
243
  type: "RETRY";
244
244
  } | {
245
245
  type: "RESET";
246
- }, Record<string, xstate24.AnyActorRef>, xstate24.StateValue, string, unknown, any, any>, {
246
+ }, Record<string, xstate1222.AnyActorRef>, xstate1222.StateValue, string, unknown, any, any>, {
247
247
  type: "LOAD";
248
248
  } | {
249
249
  type: "TOGGLE_CHECKBOX";
@@ -254,7 +254,7 @@ declare const consentMachine: xstate24.StateMachine<ConsentContext, {
254
254
  type: "RETRY";
255
255
  } | {
256
256
  type: "RESET";
257
- }, xstate24.AnyEventObject>;
257
+ }, xstate1222.AnyEventObject>;
258
258
  }) => {
259
259
  consentId: string;
260
260
  language: string | undefined;
@@ -304,7 +304,7 @@ declare const consentMachine: xstate24.StateMachine<ConsentContext, {
304
304
  } | {
305
305
  type: "RESET";
306
306
  };
307
- self: xstate24.ActorRef<xstate24.MachineSnapshot<ConsentContext, {
307
+ self: xstate1222.ActorRef<xstate1222.MachineSnapshot<ConsentContext, {
308
308
  type: "LOAD";
309
309
  } | {
310
310
  type: "TOGGLE_CHECKBOX";
@@ -315,7 +315,7 @@ declare const consentMachine: xstate24.StateMachine<ConsentContext, {
315
315
  type: "RETRY";
316
316
  } | {
317
317
  type: "RESET";
318
- }, Record<string, xstate24.AnyActorRef>, xstate24.StateValue, string, unknown, any, any>, {
318
+ }, Record<string, xstate1222.AnyActorRef>, xstate1222.StateValue, string, unknown, any, any>, {
319
319
  type: "LOAD";
320
320
  } | {
321
321
  type: "TOGGLE_CHECKBOX";
@@ -326,7 +326,7 @@ declare const consentMachine: xstate24.StateMachine<ConsentContext, {
326
326
  type: "RETRY";
327
327
  } | {
328
328
  type: "RESET";
329
- }, xstate24.AnyEventObject>;
329
+ }, xstate1222.AnyEventObject>;
330
330
  }) => {
331
331
  languageConsentId: string;
332
332
  checkboxes: ConsentCheckbox[];
package/dist/cpf-ocr.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./Manager-CHiHBvMT.js";
2
2
  import "./Actor-CeqUTqL9.js";
3
- import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-DZudorH5.js";
3
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-BAT8zE9Q.js";
4
4
 
5
5
  //#region src/modules/cpf-ocr/cpfOcrUtils.d.ts
6
6
  declare function formatCPF(value: string): string;
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CHiHBvMT.js";
2
2
  import { t as ActorRefFrom } from "./Actor-CeqUTqL9.js";
3
- import * as xstate0 from "xstate";
3
+ import * as xstate1197 from "xstate";
4
4
 
5
5
  //#region src/modules/cpf-ocr/types.d.ts
6
6
  type CpfOcrDataResponse = {
@@ -17,7 +17,7 @@ type CpfOcrContext = {
17
17
  error: string | undefined;
18
18
  };
19
19
  type CpfOcrInput = Record<string, never>;
20
- declare const cpfOcrMachine: xstate0.StateMachine<CpfOcrContext, {
20
+ declare const cpfOcrMachine: xstate1197.StateMachine<CpfOcrContext, {
21
21
  type: "LOAD";
22
22
  } | {
23
23
  type: "SET_CPF";
@@ -27,43 +27,43 @@ declare const cpfOcrMachine: xstate0.StateMachine<CpfOcrContext, {
27
27
  } | {
28
28
  type: "RETRY";
29
29
  }, {
30
- [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<CpfOcrDataResponse, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<CpfOcrUpdateResponse, {
30
+ [x: string]: xstate1197.ActorRefFromLogic<xstate1197.PromiseActorLogic<CpfOcrDataResponse, void, xstate1197.EventObject>> | xstate1197.ActorRefFromLogic<xstate1197.PromiseActorLogic<CpfOcrUpdateResponse, {
31
31
  cpf: string;
32
- }, xstate0.EventObject>> | undefined;
33
- }, xstate0.Values<{
32
+ }, xstate1197.EventObject>> | undefined;
33
+ }, xstate1197.Values<{
34
34
  fetchCpfOcrData: {
35
35
  src: "fetchCpfOcrData";
36
- logic: xstate0.PromiseActorLogic<CpfOcrDataResponse, void, xstate0.EventObject>;
36
+ logic: xstate1197.PromiseActorLogic<CpfOcrDataResponse, void, xstate1197.EventObject>;
37
37
  id: string | undefined;
38
38
  };
39
39
  submitCpfOcr: {
40
40
  src: "submitCpfOcr";
41
- logic: xstate0.PromiseActorLogic<CpfOcrUpdateResponse, {
41
+ logic: xstate1197.PromiseActorLogic<CpfOcrUpdateResponse, {
42
42
  cpf: string;
43
- }, xstate0.EventObject>;
43
+ }, xstate1197.EventObject>;
44
44
  id: string | undefined;
45
45
  };
46
- }>, xstate0.Values<{
46
+ }>, xstate1197.Values<{
47
+ clearError: {
48
+ type: "clearError";
49
+ params: xstate1197.NonReducibleUnknown;
50
+ };
51
+ setError: {
52
+ type: "setError";
53
+ params: xstate1197.NonReducibleUnknown;
54
+ };
47
55
  setPrefill: {
48
56
  type: "setPrefill";
49
- params: xstate0.NonReducibleUnknown;
57
+ params: xstate1197.NonReducibleUnknown;
50
58
  };
51
59
  setCpf: {
52
60
  type: "setCpf";
53
- params: xstate0.NonReducibleUnknown;
54
- };
55
- setError: {
56
- type: "setError";
57
- params: xstate0.NonReducibleUnknown;
58
- };
59
- clearError: {
60
- type: "clearError";
61
- params: xstate0.NonReducibleUnknown;
61
+ params: xstate1197.NonReducibleUnknown;
62
62
  };
63
63
  }>, {
64
64
  type: "isValid";
65
65
  params: unknown;
66
- }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
66
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting", string, CpfOcrInput, xstate1197.NonReducibleUnknown, xstate1197.EventObject, xstate1197.MetaObject, {
67
67
  readonly id: "cpfOcr";
68
68
  readonly initial: "idle";
69
69
  readonly context: {
@@ -118,7 +118,7 @@ declare const cpfOcrMachine: xstate0.StateMachine<CpfOcrContext, {
118
118
  } | {
119
119
  type: "RETRY";
120
120
  };
121
- self: xstate0.ActorRef<xstate0.MachineSnapshot<CpfOcrContext, {
121
+ self: xstate1197.ActorRef<xstate1197.MachineSnapshot<CpfOcrContext, {
122
122
  type: "LOAD";
123
123
  } | {
124
124
  type: "SET_CPF";
@@ -127,7 +127,7 @@ declare const cpfOcrMachine: xstate0.StateMachine<CpfOcrContext, {
127
127
  type: "SUBMIT";
128
128
  } | {
129
129
  type: "RETRY";
130
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
130
+ }, Record<string, xstate1197.AnyActorRef>, xstate1197.StateValue, string, unknown, any, any>, {
131
131
  type: "LOAD";
132
132
  } | {
133
133
  type: "SET_CPF";
@@ -136,7 +136,7 @@ declare const cpfOcrMachine: xstate0.StateMachine<CpfOcrContext, {
136
136
  type: "SUBMIT";
137
137
  } | {
138
138
  type: "RETRY";
139
- }, xstate0.AnyEventObject>;
139
+ }, xstate1197.AnyEventObject>;
140
140
  }) => {
141
141
  cpf: string;
142
142
  };