@incodetech/core 0.0.0-dev-20260610-e5b4c4d5 → 0.0.0-dev-20260610-1fe09049
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/ae-signature.d.ts +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-66SjOJ7U.d.ts → consentManager-Cdzcgwhn.d.ts} +50 -50
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-DVSJov4W.d.ts → cpfOcrManager-CMotz6uR.d.ts} +17 -17
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-CMXS-tjU.esm.js → curpValidationManager-DvWCxCgu.esm.js} +3 -2
- package/dist/{curpValidationManager-DIFa6O03.d.ts → curpValidationManager-RttixpIc.d.ts} +2 -0
- package/dist/{curpValidationStateMachine-CD-npCgV.esm.js → curpValidationStateMachine-C4e5_bif.esm.js} +16 -11
- package/dist/document-capture.d.ts +173 -173
- package/dist/document-upload.d.ts +43 -43
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-DWm7C2qW.esm.js → ekybStateMachine-DJDl_L_M.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +5 -5
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-BykryjdA.esm.js → flowServices-CTr-Ffr_.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-mQGmxqf1.esm.js → idCaptureManager-BhYdzKU6.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-DXeLlQa_.esm.js → idCaptureStateMachine-CItfSY6e.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-DYb7I3jf.d.ts → identityReuseManager-BVhGpnBg.d.ts} +31 -31
- package/dist/{index-B2RUw1Th.d.ts → index-BNHhJmAf.d.ts} +168 -168
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-DBc5NyKN.d.ts → mandatoryConsentManager-BC3J2Hr6.d.ts} +50 -50
- package/dist/qe-signature.d.ts +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-D0Ei5Ol7.esm.js → sessionInitializer-QI6k2WYq.esm.js} +1 -1
- package/dist/{setup-DotVj7UA.esm.js → setup-Dvk_2-MG.esm.js} +1 -1
- package/dist/trust-graph.d.ts +2 -2
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +88 -88
- package/dist/workflow.esm.js +5 -5
- package/package.json +3 -3
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BHn8wH8K.js";
|
|
2
2
|
import "./Actor-Y0_Fj-KL.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-
|
|
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-BNHhJmAf.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ae-signature/index.d.ts
|
|
6
6
|
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./Manager-BHn8wH8K.js";
|
|
2
2
|
import "./Actor-Y0_Fj-KL.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-
|
|
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-Cdzcgwhn.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-BHn8wH8K.js";
|
|
2
2
|
import { t as ActorRefFrom } from "./Actor-Y0_Fj-KL.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate614 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:
|
|
40
|
+
declare const consentMachine: xstate614.StateMachine<ConsentContext, {
|
|
41
41
|
type: "LOAD";
|
|
42
42
|
} | {
|
|
43
43
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -49,55 +49,55 @@ declare const consentMachine: xstate740.StateMachine<ConsentContext, {
|
|
|
49
49
|
} | {
|
|
50
50
|
type: "RESET";
|
|
51
51
|
}, {
|
|
52
|
-
[x: string]:
|
|
52
|
+
[x: string]: xstate614.ActorRefFromLogic<xstate614.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
53
53
|
consentId: string;
|
|
54
54
|
language?: string;
|
|
55
|
-
},
|
|
55
|
+
}, xstate614.EventObject>> | xstate614.ActorRefFromLogic<xstate614.PromiseActorLogic<void, {
|
|
56
56
|
languageConsentId: string;
|
|
57
57
|
checkboxes: ConsentCheckbox[];
|
|
58
|
-
},
|
|
59
|
-
},
|
|
58
|
+
}, xstate614.EventObject>> | undefined;
|
|
59
|
+
}, xstate614.Values<{
|
|
60
60
|
fetchConsent: {
|
|
61
61
|
src: "fetchConsent";
|
|
62
|
-
logic:
|
|
62
|
+
logic: xstate614.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
63
63
|
consentId: string;
|
|
64
64
|
language?: string;
|
|
65
|
-
},
|
|
65
|
+
}, xstate614.EventObject>;
|
|
66
66
|
id: string | undefined;
|
|
67
67
|
};
|
|
68
68
|
submitConsent: {
|
|
69
69
|
src: "submitConsent";
|
|
70
|
-
logic:
|
|
70
|
+
logic: xstate614.PromiseActorLogic<void, {
|
|
71
71
|
languageConsentId: string;
|
|
72
72
|
checkboxes: ConsentCheckbox[];
|
|
73
|
-
},
|
|
73
|
+
}, xstate614.EventObject>;
|
|
74
74
|
id: string | undefined;
|
|
75
75
|
};
|
|
76
|
-
}>,
|
|
76
|
+
}>, xstate614.Values<{
|
|
77
77
|
setError: {
|
|
78
78
|
type: "setError";
|
|
79
|
-
params:
|
|
79
|
+
params: xstate614.NonReducibleUnknown;
|
|
80
80
|
};
|
|
81
81
|
clearError: {
|
|
82
82
|
type: "clearError";
|
|
83
|
-
params:
|
|
84
|
-
};
|
|
85
|
-
resetContext: {
|
|
86
|
-
type: "resetContext";
|
|
87
|
-
params: xstate740.NonReducibleUnknown;
|
|
83
|
+
params: xstate614.NonReducibleUnknown;
|
|
88
84
|
};
|
|
89
85
|
setConsentData: {
|
|
90
86
|
type: "setConsentData";
|
|
91
|
-
params:
|
|
87
|
+
params: xstate614.NonReducibleUnknown;
|
|
92
88
|
};
|
|
93
89
|
toggleCheckbox: {
|
|
94
90
|
type: "toggleCheckbox";
|
|
95
|
-
params:
|
|
91
|
+
params: xstate614.NonReducibleUnknown;
|
|
92
|
+
};
|
|
93
|
+
resetContext: {
|
|
94
|
+
type: "resetContext";
|
|
95
|
+
params: xstate614.NonReducibleUnknown;
|
|
96
96
|
};
|
|
97
97
|
}>, {
|
|
98
98
|
type: "canSubmit";
|
|
99
99
|
params: unknown;
|
|
100
|
-
}, never, "error" | "idle" | "finished" | "loading" | "
|
|
100
|
+
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate614.NonReducibleUnknown, xstate614.EventObject, xstate614.MetaObject, {
|
|
101
101
|
readonly id: "consent";
|
|
102
102
|
readonly initial: "idle";
|
|
103
103
|
readonly context: ({
|
|
@@ -106,73 +106,73 @@ declare const consentMachine: xstate740.StateMachine<ConsentContext, {
|
|
|
106
106
|
spawn: {
|
|
107
107
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
108
108
|
src: "fetchConsent";
|
|
109
|
-
logic:
|
|
109
|
+
logic: xstate614.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
110
110
|
consentId: string;
|
|
111
111
|
language?: string;
|
|
112
|
-
},
|
|
112
|
+
}, xstate614.EventObject>;
|
|
113
113
|
id: string | undefined;
|
|
114
114
|
} extends infer T ? T extends {
|
|
115
115
|
src: "fetchConsent";
|
|
116
|
-
logic:
|
|
116
|
+
logic: xstate614.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
117
117
|
consentId: string;
|
|
118
118
|
language?: string;
|
|
119
|
-
},
|
|
119
|
+
}, xstate614.EventObject>;
|
|
120
120
|
id: string | undefined;
|
|
121
121
|
} ? T extends {
|
|
122
122
|
src: TSrc;
|
|
123
|
-
} ?
|
|
123
|
+
} ? xstate614.ConditionalRequired<[options?: ({
|
|
124
124
|
id?: T["id"] | undefined;
|
|
125
125
|
systemId?: string;
|
|
126
|
-
input?:
|
|
126
|
+
input?: xstate614.InputFrom<T["logic"]> | undefined;
|
|
127
127
|
syncSnapshot?: boolean;
|
|
128
|
-
} & { [K in
|
|
128
|
+
} & { [K in xstate614.RequiredActorOptions<T>]: unknown }) | undefined], xstate614.IsNotNever<xstate614.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
129
129
|
src: "submitConsent";
|
|
130
|
-
logic:
|
|
130
|
+
logic: xstate614.PromiseActorLogic<void, {
|
|
131
131
|
languageConsentId: string;
|
|
132
132
|
checkboxes: ConsentCheckbox[];
|
|
133
|
-
},
|
|
133
|
+
}, xstate614.EventObject>;
|
|
134
134
|
id: string | undefined;
|
|
135
135
|
} extends infer T_1 ? T_1 extends {
|
|
136
136
|
src: "submitConsent";
|
|
137
|
-
logic:
|
|
137
|
+
logic: xstate614.PromiseActorLogic<void, {
|
|
138
138
|
languageConsentId: string;
|
|
139
139
|
checkboxes: ConsentCheckbox[];
|
|
140
|
-
},
|
|
140
|
+
}, xstate614.EventObject>;
|
|
141
141
|
id: string | undefined;
|
|
142
142
|
} ? T_1 extends {
|
|
143
143
|
src: TSrc;
|
|
144
|
-
} ?
|
|
144
|
+
} ? xstate614.ConditionalRequired<[options?: ({
|
|
145
145
|
id?: T_1["id"] | undefined;
|
|
146
146
|
systemId?: string;
|
|
147
|
-
input?:
|
|
147
|
+
input?: xstate614.InputFrom<T_1["logic"]> | undefined;
|
|
148
148
|
syncSnapshot?: boolean;
|
|
149
|
-
} & { [K_1 in
|
|
149
|
+
} & { [K_1 in xstate614.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate614.IsNotNever<xstate614.RequiredActorOptions<T_1>>> : never : never : never)): xstate614.ActorRefFromLogic<xstate614.GetConcreteByKey<xstate614.Values<{
|
|
150
150
|
fetchConsent: {
|
|
151
151
|
src: "fetchConsent";
|
|
152
|
-
logic:
|
|
152
|
+
logic: xstate614.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
153
153
|
consentId: string;
|
|
154
154
|
language?: string;
|
|
155
|
-
},
|
|
155
|
+
}, xstate614.EventObject>;
|
|
156
156
|
id: string | undefined;
|
|
157
157
|
};
|
|
158
158
|
submitConsent: {
|
|
159
159
|
src: "submitConsent";
|
|
160
|
-
logic:
|
|
160
|
+
logic: xstate614.PromiseActorLogic<void, {
|
|
161
161
|
languageConsentId: string;
|
|
162
162
|
checkboxes: ConsentCheckbox[];
|
|
163
|
-
},
|
|
163
|
+
}, xstate614.EventObject>;
|
|
164
164
|
id: string | undefined;
|
|
165
165
|
};
|
|
166
166
|
}>, "src", TSrc>["logic"]>;
|
|
167
|
-
<TLogic extends
|
|
167
|
+
<TLogic extends xstate614.AnyActorLogic>(src: TLogic, ...[options]: xstate614.ConditionalRequired<[options?: ({
|
|
168
168
|
id?: never;
|
|
169
169
|
systemId?: string;
|
|
170
|
-
input?:
|
|
170
|
+
input?: xstate614.InputFrom<TLogic> | undefined;
|
|
171
171
|
syncSnapshot?: boolean;
|
|
172
|
-
} & { [K in
|
|
172
|
+
} & { [K in xstate614.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate614.IsNotNever<xstate614.RequiredLogicInput<TLogic>>>): xstate614.ActorRefFromLogic<TLogic>;
|
|
173
173
|
};
|
|
174
174
|
input: ConsentInput;
|
|
175
|
-
self:
|
|
175
|
+
self: xstate614.ActorRef<xstate614.MachineSnapshot<ConsentContext, {
|
|
176
176
|
type: "LOAD";
|
|
177
177
|
} | {
|
|
178
178
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -183,7 +183,7 @@ declare const consentMachine: xstate740.StateMachine<ConsentContext, {
|
|
|
183
183
|
type: "RETRY";
|
|
184
184
|
} | {
|
|
185
185
|
type: "RESET";
|
|
186
|
-
}, Record<string,
|
|
186
|
+
}, Record<string, xstate614.AnyActorRef | undefined>, xstate614.StateValue, string, unknown, any, any>, {
|
|
187
187
|
type: "LOAD";
|
|
188
188
|
} | {
|
|
189
189
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -194,7 +194,7 @@ declare const consentMachine: xstate740.StateMachine<ConsentContext, {
|
|
|
194
194
|
type: "RETRY";
|
|
195
195
|
} | {
|
|
196
196
|
type: "RESET";
|
|
197
|
-
},
|
|
197
|
+
}, xstate614.AnyEventObject>;
|
|
198
198
|
}) => {
|
|
199
199
|
config: ConsentConfig;
|
|
200
200
|
title: string;
|
|
@@ -232,7 +232,7 @@ declare const consentMachine: xstate740.StateMachine<ConsentContext, {
|
|
|
232
232
|
} | {
|
|
233
233
|
type: "RESET";
|
|
234
234
|
};
|
|
235
|
-
self:
|
|
235
|
+
self: xstate614.ActorRef<xstate614.MachineSnapshot<ConsentContext, {
|
|
236
236
|
type: "LOAD";
|
|
237
237
|
} | {
|
|
238
238
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -243,7 +243,7 @@ declare const consentMachine: xstate740.StateMachine<ConsentContext, {
|
|
|
243
243
|
type: "RETRY";
|
|
244
244
|
} | {
|
|
245
245
|
type: "RESET";
|
|
246
|
-
}, Record<string,
|
|
246
|
+
}, Record<string, xstate614.AnyActorRef>, xstate614.StateValue, string, unknown, any, any>, {
|
|
247
247
|
type: "LOAD";
|
|
248
248
|
} | {
|
|
249
249
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -254,7 +254,7 @@ declare const consentMachine: xstate740.StateMachine<ConsentContext, {
|
|
|
254
254
|
type: "RETRY";
|
|
255
255
|
} | {
|
|
256
256
|
type: "RESET";
|
|
257
|
-
},
|
|
257
|
+
}, xstate614.AnyEventObject>;
|
|
258
258
|
}) => {
|
|
259
259
|
consentId: string;
|
|
260
260
|
language: string | undefined;
|
|
@@ -304,7 +304,7 @@ declare const consentMachine: xstate740.StateMachine<ConsentContext, {
|
|
|
304
304
|
} | {
|
|
305
305
|
type: "RESET";
|
|
306
306
|
};
|
|
307
|
-
self:
|
|
307
|
+
self: xstate614.ActorRef<xstate614.MachineSnapshot<ConsentContext, {
|
|
308
308
|
type: "LOAD";
|
|
309
309
|
} | {
|
|
310
310
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -315,7 +315,7 @@ declare const consentMachine: xstate740.StateMachine<ConsentContext, {
|
|
|
315
315
|
type: "RETRY";
|
|
316
316
|
} | {
|
|
317
317
|
type: "RESET";
|
|
318
|
-
}, Record<string,
|
|
318
|
+
}, Record<string, xstate614.AnyActorRef>, xstate614.StateValue, string, unknown, any, any>, {
|
|
319
319
|
type: "LOAD";
|
|
320
320
|
} | {
|
|
321
321
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -326,7 +326,7 @@ declare const consentMachine: xstate740.StateMachine<ConsentContext, {
|
|
|
326
326
|
type: "RETRY";
|
|
327
327
|
} | {
|
|
328
328
|
type: "RESET";
|
|
329
|
-
},
|
|
329
|
+
}, xstate614.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-BHn8wH8K.js";
|
|
2
2
|
import "./Actor-Y0_Fj-KL.js";
|
|
3
|
-
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-
|
|
3
|
+
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-CMotz6uR.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-BHn8wH8K.js";
|
|
2
2
|
import { t as ActorRefFrom } from "./Actor-Y0_Fj-KL.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate589 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:
|
|
20
|
+
declare const cpfOcrMachine: xstate589.StateMachine<CpfOcrContext, {
|
|
21
21
|
type: "LOAD";
|
|
22
22
|
} | {
|
|
23
23
|
type: "SET_CPF";
|
|
@@ -27,43 +27,43 @@ declare const cpfOcrMachine: xstate709.StateMachine<CpfOcrContext, {
|
|
|
27
27
|
} | {
|
|
28
28
|
type: "RETRY";
|
|
29
29
|
}, {
|
|
30
|
-
[x: string]:
|
|
30
|
+
[x: string]: xstate589.ActorRefFromLogic<xstate589.PromiseActorLogic<CpfOcrDataResponse, void, xstate589.EventObject>> | xstate589.ActorRefFromLogic<xstate589.PromiseActorLogic<CpfOcrUpdateResponse, {
|
|
31
31
|
cpf: string;
|
|
32
|
-
},
|
|
33
|
-
},
|
|
32
|
+
}, xstate589.EventObject>> | undefined;
|
|
33
|
+
}, xstate589.Values<{
|
|
34
34
|
fetchCpfOcrData: {
|
|
35
35
|
src: "fetchCpfOcrData";
|
|
36
|
-
logic:
|
|
36
|
+
logic: xstate589.PromiseActorLogic<CpfOcrDataResponse, void, xstate589.EventObject>;
|
|
37
37
|
id: string | undefined;
|
|
38
38
|
};
|
|
39
39
|
submitCpfOcr: {
|
|
40
40
|
src: "submitCpfOcr";
|
|
41
|
-
logic:
|
|
41
|
+
logic: xstate589.PromiseActorLogic<CpfOcrUpdateResponse, {
|
|
42
42
|
cpf: string;
|
|
43
|
-
},
|
|
43
|
+
}, xstate589.EventObject>;
|
|
44
44
|
id: string | undefined;
|
|
45
45
|
};
|
|
46
|
-
}>,
|
|
46
|
+
}>, xstate589.Values<{
|
|
47
47
|
setError: {
|
|
48
48
|
type: "setError";
|
|
49
|
-
params:
|
|
49
|
+
params: xstate589.NonReducibleUnknown;
|
|
50
50
|
};
|
|
51
51
|
clearError: {
|
|
52
52
|
type: "clearError";
|
|
53
|
-
params:
|
|
53
|
+
params: xstate589.NonReducibleUnknown;
|
|
54
54
|
};
|
|
55
55
|
setPrefill: {
|
|
56
56
|
type: "setPrefill";
|
|
57
|
-
params:
|
|
57
|
+
params: xstate589.NonReducibleUnknown;
|
|
58
58
|
};
|
|
59
59
|
setCpf: {
|
|
60
60
|
type: "setCpf";
|
|
61
|
-
params:
|
|
61
|
+
params: xstate589.NonReducibleUnknown;
|
|
62
62
|
};
|
|
63
63
|
}>, {
|
|
64
64
|
type: "isValid";
|
|
65
65
|
params: unknown;
|
|
66
|
-
}, never, "error" | "idle" | "finished" | "loading" | "
|
|
66
|
+
}, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate589.NonReducibleUnknown, xstate589.EventObject, xstate589.MetaObject, {
|
|
67
67
|
readonly id: "cpfOcr";
|
|
68
68
|
readonly initial: "idle";
|
|
69
69
|
readonly context: {
|
|
@@ -118,7 +118,7 @@ declare const cpfOcrMachine: xstate709.StateMachine<CpfOcrContext, {
|
|
|
118
118
|
} | {
|
|
119
119
|
type: "RETRY";
|
|
120
120
|
};
|
|
121
|
-
self:
|
|
121
|
+
self: xstate589.ActorRef<xstate589.MachineSnapshot<CpfOcrContext, {
|
|
122
122
|
type: "LOAD";
|
|
123
123
|
} | {
|
|
124
124
|
type: "SET_CPF";
|
|
@@ -127,7 +127,7 @@ declare const cpfOcrMachine: xstate709.StateMachine<CpfOcrContext, {
|
|
|
127
127
|
type: "SUBMIT";
|
|
128
128
|
} | {
|
|
129
129
|
type: "RETRY";
|
|
130
|
-
}, Record<string,
|
|
130
|
+
}, Record<string, xstate589.AnyActorRef>, xstate589.StateValue, string, unknown, any, any>, {
|
|
131
131
|
type: "LOAD";
|
|
132
132
|
} | {
|
|
133
133
|
type: "SET_CPF";
|
|
@@ -136,7 +136,7 @@ declare const cpfOcrMachine: xstate709.StateMachine<CpfOcrContext, {
|
|
|
136
136
|
type: "SUBMIT";
|
|
137
137
|
} | {
|
|
138
138
|
type: "RETRY";
|
|
139
|
-
},
|
|
139
|
+
}, xstate589.AnyEventObject>;
|
|
140
140
|
}) => {
|
|
141
141
|
cpf: string;
|
|
142
142
|
};
|
|
@@ -4,7 +4,7 @@ import "./camera-SRBpPq2X.js";
|
|
|
4
4
|
import "./types-Bj9hdFjU.js";
|
|
5
5
|
import "./types-DvGZI7BF.js";
|
|
6
6
|
import "./types-DOUhndhT.js";
|
|
7
|
-
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-
|
|
7
|
+
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-RttixpIc.js";
|
|
8
8
|
|
|
9
9
|
//#region src/modules/curp-validation/curpValidationUtils.d.ts
|
|
10
10
|
type MexicanState = {
|
|
@@ -2,7 +2,7 @@ import "./api-CESGtpbH.esm.js";
|
|
|
2
2
|
import "./events-Dvvriq9l.esm.js";
|
|
3
3
|
import "./endpoints-zEf_JIJU.esm.js";
|
|
4
4
|
import "./xstate.esm-C9wncMQa.esm.js";
|
|
5
|
-
import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
6
|
-
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-
|
|
5
|
+
import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-C4e5_bif.esm.js";
|
|
6
|
+
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-DvWCxCgu.esm.js";
|
|
7
7
|
|
|
8
8
|
export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
|
package/dist/{curpValidationManager-CMXS-tjU.esm.js → curpValidationManager-DvWCxCgu.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
|
|
2
2
|
import { c as createManager, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
|
|
3
|
-
import { t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
3
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-C4e5_bif.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/curp-validation/curpValidationActor.ts
|
|
6
6
|
function createCurpValidationActor(options) {
|
|
@@ -25,7 +25,8 @@ function mapState(snapshot) {
|
|
|
25
25
|
if (typedSnapshot.matches("success")) return { status: "success" };
|
|
26
26
|
if (typedSnapshot.matches("failure")) return {
|
|
27
27
|
status: "failure",
|
|
28
|
-
retriesLeft: context.retriesLeft
|
|
28
|
+
retriesLeft: context.retriesLeft,
|
|
29
|
+
fromAutoVerify: context.fromAutoVerify
|
|
29
30
|
};
|
|
30
31
|
if (typedSnapshot.matches("generateCurp")) return {
|
|
31
32
|
status: "generateCurp",
|
|
@@ -103,6 +103,8 @@ type CurpValidationSuccessState = {
|
|
|
103
103
|
type CurpValidationFailureState = {
|
|
104
104
|
status: 'failure';
|
|
105
105
|
retriesLeft: number;
|
|
106
|
+
/** True for auto OCR-prefilled failures; UI shows "Verify manually". */
|
|
107
|
+
fromAutoVerify: boolean;
|
|
106
108
|
};
|
|
107
109
|
/**
|
|
108
110
|
* State exposed to UI for the multi-field Generate CURP form.
|
|
@@ -394,6 +394,8 @@ const curpValidationMachine = setup({
|
|
|
394
394
|
decrementRetries: assign(({ context }) => ({ retriesLeft: Math.max(0, context.retriesLeft - 1) })),
|
|
395
395
|
setFromGenerate: assign({ fromGenerate: () => true }),
|
|
396
396
|
clearFromGenerate: assign({ fromGenerate: () => false }),
|
|
397
|
+
setAutoVerify: assign({ fromAutoVerify: () => true }),
|
|
398
|
+
clearAutoVerify: assign({ fromAutoVerify: () => false }),
|
|
397
399
|
setError: assign(({ event }) => ({ error: String(event.error) }))
|
|
398
400
|
},
|
|
399
401
|
guards: {
|
|
@@ -428,7 +430,8 @@ const curpValidationMachine = setup({
|
|
|
428
430
|
retriesLeft: input.config.maxRetries ?? 1,
|
|
429
431
|
generatedCurp: void 0,
|
|
430
432
|
error: void 0,
|
|
431
|
-
fromGenerate: false
|
|
433
|
+
fromGenerate: false,
|
|
434
|
+
fromAutoVerify: false
|
|
432
435
|
}),
|
|
433
436
|
states: {
|
|
434
437
|
idle: { on: {
|
|
@@ -445,7 +448,7 @@ const curpValidationMachine = setup({
|
|
|
445
448
|
onDone: [{
|
|
446
449
|
target: "verifying",
|
|
447
450
|
guard: "hasOcrCurp",
|
|
448
|
-
actions: "setCurpFromOcr"
|
|
451
|
+
actions: ["setCurpFromOcr", "setAutoVerify"]
|
|
449
452
|
}, { target: "enterCurp" }],
|
|
450
453
|
onError: { target: "enterCurp" }
|
|
451
454
|
},
|
|
@@ -471,7 +474,8 @@ const curpValidationMachine = setup({
|
|
|
471
474
|
entry: "computeEnterCurpValidationResult",
|
|
472
475
|
always: [{
|
|
473
476
|
guard: "shouldVerify",
|
|
474
|
-
target: "#curpValidation.verifying"
|
|
477
|
+
target: "#curpValidation.verifying",
|
|
478
|
+
actions: "clearAutoVerify"
|
|
475
479
|
}, { target: "inputting" }]
|
|
476
480
|
}
|
|
477
481
|
},
|
|
@@ -485,13 +489,10 @@ const curpValidationMachine = setup({
|
|
|
485
489
|
onDone: [{
|
|
486
490
|
target: "success",
|
|
487
491
|
guard: "isVerifySuccess"
|
|
488
|
-
}, {
|
|
489
|
-
target: "failure",
|
|
490
|
-
actions: "decrementRetries"
|
|
491
|
-
}],
|
|
492
|
+
}, { target: "failure" }],
|
|
492
493
|
onError: {
|
|
493
494
|
target: "failure",
|
|
494
|
-
actions:
|
|
495
|
+
actions: "setError"
|
|
495
496
|
}
|
|
496
497
|
},
|
|
497
498
|
on: { CLOSE: "closed" }
|
|
@@ -504,11 +505,12 @@ const curpValidationMachine = setup({
|
|
|
504
505
|
on: {
|
|
505
506
|
RETRY: [{
|
|
506
507
|
target: "generateCurp",
|
|
507
|
-
guard: ({ context }) => context.retriesLeft > 0 && context.fromGenerate
|
|
508
|
+
guard: ({ context }) => context.retriesLeft > 0 && context.fromGenerate,
|
|
509
|
+
actions: "decrementRetries"
|
|
508
510
|
}, {
|
|
509
511
|
target: "enterCurp",
|
|
510
512
|
guard: ({ context }) => context.retriesLeft > 0 && !context.fromGenerate,
|
|
511
|
-
actions: "clearFromGenerate"
|
|
513
|
+
actions: ["decrementRetries", "clearFromGenerate"]
|
|
512
514
|
}],
|
|
513
515
|
CLOSE: "closed"
|
|
514
516
|
},
|
|
@@ -571,7 +573,10 @@ const curpValidationMachine = setup({
|
|
|
571
573
|
on: { CLOSE: "closed" }
|
|
572
574
|
},
|
|
573
575
|
confirmCurp: { on: {
|
|
574
|
-
CONFIRM: {
|
|
576
|
+
CONFIRM: {
|
|
577
|
+
target: "verifying",
|
|
578
|
+
actions: "clearAutoVerify"
|
|
579
|
+
},
|
|
575
580
|
CLOSE: "closed"
|
|
576
581
|
} },
|
|
577
582
|
generateError: {
|