@incodetech/core 0.0.0-dev-20260525-09ff3879 → 0.0.0-dev-20260526-ff50bd63
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/{addressSearch-DwZVUD5O.esm.js → addressSearch-Dwi55Bks.esm.js} +57 -43
- package/dist/ae-signature.d.ts +1 -1
- package/dist/authentication.d.ts +4 -4
- package/dist/{authenticationManager-Dw7TQNvE.d.ts → authenticationManager-DSFSI1sV.d.ts} +1 -1
- package/dist/consent.d.ts +47 -47
- package/dist/cpf-ocr.d.ts +17 -17
- package/dist/curp-validation.d.ts +2 -2
- package/dist/document-capture.d.ts +74 -74
- package/dist/document-upload.d.ts +43 -43
- package/dist/ekyb.d.ts +4 -2
- package/dist/ekyb.esm.js +4 -4
- package/dist/{ekybStateMachine-DDDBN1HP.esm.js → ekybStateMachine-BiNGAzvU.esm.js} +59 -49
- package/dist/ekyc.d.ts +1 -1
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycStateMachine-DBXRTT6g.esm.js → ekycStateMachine-B4whhYrb.esm.js} +13 -2
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +6 -6
- package/dist/extensibility.esm.js +3 -3
- package/dist/{faceCaptureManagerFactory-CYXQCgGA.d.ts → faceCaptureManagerFactory-9FvE22Bb.d.ts} +1 -1
- package/dist/flow-events.d.ts +3 -3
- package/dist/flow.d.ts +3 -3
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-BDgdxfsO.esm.js → flowServices-DmS5NhK7.esm.js} +1 -1
- package/dist/home.d.ts +12 -12
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-DqS4kK-V.d.ts → idCaptureManager-C1-0T9Dm.d.ts} +1 -1
- package/dist/{idCaptureManager-DmNB6ERX.esm.js → idCaptureManager-DMty_HN8.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-q591XH5b.esm.js → idCaptureStateMachine-DNPxqcam.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +40 -40
- package/dist/{index-ClXuX-B6.d.ts → index-4aujCGH0.d.ts} +119 -119
- package/dist/{index-CDbYIQEX.d.ts → index-W2B4aSBn.d.ts} +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +49 -49
- package/dist/qe-signature.d.ts +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/{selfieManager-DwJtWG2W.d.ts → selfieManager-VIiNOujq.d.ts} +1 -1
- package/dist/session.d.ts +2 -2
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-CYs6xQKN.esm.js → sessionInitializer-DDZAwc7X.esm.js} +1 -1
- package/dist/{setup-tCSOqkLe.esm.js → setup-BnWSPgC4.esm.js} +1 -1
- package/dist/{types-w-I2ZgjG.d.ts → types-BNddPgzi.d.ts} +1 -1
- package/dist/{types-DF5RqPiL.d.ts → types-BYqs4TiJ.d.ts} +2 -0
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +87 -87
- package/dist/workflow.esm.js +6 -6
- package/package.json +3 -3
|
@@ -211,6 +211,62 @@ const usStateOptions = Object.values(usStates).map((state) => ({
|
|
|
211
211
|
label: state.name
|
|
212
212
|
}));
|
|
213
213
|
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region src/shared/addressSuggestion.ts
|
|
216
|
+
/** Shown when an autocomplete suggestion has no street (city/region-level result). */
|
|
217
|
+
const STREET_LEVEL_REQUIRED_ERROR = { key: "verification.errors.streetLevelRequired" };
|
|
218
|
+
function isStreetMissingFromSuggestion(suggestion) {
|
|
219
|
+
return !suggestion.street?.trim();
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Validation error for `street` after selecting a suggestion without `street`,
|
|
223
|
+
* or `undefined` when the suggestion is street-level or street is not active.
|
|
224
|
+
*/
|
|
225
|
+
function getStreetLevelErrorForSuggestion(suggestion, activeFields) {
|
|
226
|
+
if (!activeFields.has("street")) return void 0;
|
|
227
|
+
return isStreetMissingFromSuggestion(suggestion) ? STREET_LEVEL_REQUIRED_ERROR : void 0;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Fills form values from an address autocomplete suggestion.
|
|
231
|
+
* Shared between eKYC and eKYB address forms.
|
|
232
|
+
*/
|
|
233
|
+
function fillFromSuggestion(values, touched, suggestion, activeFields) {
|
|
234
|
+
const newValues = { ...values };
|
|
235
|
+
const newTouched = { ...touched };
|
|
236
|
+
const hasHouseNoField = !activeFields || activeFields.has("houseNo");
|
|
237
|
+
const hasStreetField = !activeFields || activeFields.has("street");
|
|
238
|
+
const streetValue = buildStreetValue(suggestion.street, suggestion.houseNumber, hasHouseNoField);
|
|
239
|
+
if (hasStreetField) {
|
|
240
|
+
newValues.street = streetValue;
|
|
241
|
+
newTouched.street = true;
|
|
242
|
+
}
|
|
243
|
+
if (suggestion.city) {
|
|
244
|
+
newValues.city = suggestion.city;
|
|
245
|
+
newTouched.city = true;
|
|
246
|
+
}
|
|
247
|
+
if (suggestion.stateCode) {
|
|
248
|
+
newValues.state = suggestion.stateCode;
|
|
249
|
+
newTouched.state = true;
|
|
250
|
+
}
|
|
251
|
+
if (suggestion.postalCode) {
|
|
252
|
+
newValues.postalCode = suggestion.postalCode;
|
|
253
|
+
newTouched.postalCode = true;
|
|
254
|
+
}
|
|
255
|
+
if (suggestion.houseNumber && hasHouseNoField) {
|
|
256
|
+
newValues.houseNo = suggestion.houseNumber;
|
|
257
|
+
newTouched.houseNo = true;
|
|
258
|
+
}
|
|
259
|
+
return {
|
|
260
|
+
values: newValues,
|
|
261
|
+
touched: newTouched
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
function buildStreetValue(street, houseNumber, hasHouseNoField) {
|
|
265
|
+
if (hasHouseNoField) return street ?? "";
|
|
266
|
+
if (houseNumber && street) return `${houseNumber} ${street}`;
|
|
267
|
+
return houseNumber ?? street ?? "";
|
|
268
|
+
}
|
|
269
|
+
|
|
214
270
|
//#endregion
|
|
215
271
|
//#region src/shared/displayErrors.ts
|
|
216
272
|
const DYNAMIC_REQUIRED_KEY = "verification.errors.fieldRequiredDynamic";
|
|
@@ -329,48 +385,6 @@ function formatPostalCode(value, country) {
|
|
|
329
385
|
return value.slice(0, DEFAULT_POSTAL_CODE_MAX_LENGTH);
|
|
330
386
|
}
|
|
331
387
|
|
|
332
|
-
//#endregion
|
|
333
|
-
//#region src/shared/addressSuggestion.ts
|
|
334
|
-
/**
|
|
335
|
-
* Fills form values from an address autocomplete suggestion.
|
|
336
|
-
* Shared between eKYC and eKYB address forms.
|
|
337
|
-
*/
|
|
338
|
-
function fillFromSuggestion(values, touched, suggestion, activeFields) {
|
|
339
|
-
const newValues = { ...values };
|
|
340
|
-
const newTouched = { ...touched };
|
|
341
|
-
const hasHouseNoField = !activeFields || activeFields.has("houseNo");
|
|
342
|
-
const streetValue = buildStreetValue(suggestion.street, suggestion.houseNumber, hasHouseNoField);
|
|
343
|
-
if (streetValue) {
|
|
344
|
-
newValues.street = streetValue;
|
|
345
|
-
newTouched.street = true;
|
|
346
|
-
}
|
|
347
|
-
if (suggestion.city) {
|
|
348
|
-
newValues.city = suggestion.city;
|
|
349
|
-
newTouched.city = true;
|
|
350
|
-
}
|
|
351
|
-
if (suggestion.stateCode) {
|
|
352
|
-
newValues.state = suggestion.stateCode;
|
|
353
|
-
newTouched.state = true;
|
|
354
|
-
}
|
|
355
|
-
if (suggestion.postalCode) {
|
|
356
|
-
newValues.postalCode = suggestion.postalCode;
|
|
357
|
-
newTouched.postalCode = true;
|
|
358
|
-
}
|
|
359
|
-
if (suggestion.houseNumber && hasHouseNoField) {
|
|
360
|
-
newValues.houseNo = suggestion.houseNumber;
|
|
361
|
-
newTouched.houseNo = true;
|
|
362
|
-
}
|
|
363
|
-
return {
|
|
364
|
-
values: newValues,
|
|
365
|
-
touched: newTouched
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
function buildStreetValue(street, houseNumber, hasHouseNoField) {
|
|
369
|
-
if (hasHouseNoField) return street ?? "";
|
|
370
|
-
if (houseNumber && street) return `${houseNumber} ${street}`;
|
|
371
|
-
return houseNumber ?? street ?? "";
|
|
372
|
-
}
|
|
373
|
-
|
|
374
388
|
//#endregion
|
|
375
389
|
//#region src/shared/addressSearch.ts
|
|
376
390
|
/** Searches for address suggestions via the address autocomplete API. */
|
|
@@ -419,4 +433,4 @@ const debounceSearchActor = fromCallback(({ input, sendBack }) => {
|
|
|
419
433
|
});
|
|
420
434
|
|
|
421
435
|
//#endregion
|
|
422
|
-
export {
|
|
436
|
+
export { getPostalCodeMaxLength as a, STREET_LEVEL_REQUIRED_ERROR as c, usStateOptions as d, getPostalCodeErrorKey as i, fillFromSuggestion as l, FIXED_DIGIT_POSTAL_CODE_LENGTH as n, validatePostalCode as o, formatPostalCode as r, DYNAMIC_REQUIRED_KEY as s, debounceSearchActor as t, getStreetLevelErrorForSuggestion as u };
|
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-DCgvJ8qz.js";
|
|
2
2
|
import "./Actor-DhAnkIwf.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-4aujCGH0.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ae-signature/index.d.ts
|
|
6
6
|
|
package/dist/authentication.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import "./warmup-D7Ox_nhs.js";
|
|
|
2
2
|
import "./Manager-DCgvJ8qz.js";
|
|
3
3
|
import "./Actor-DhAnkIwf.js";
|
|
4
4
|
import "./StateMachine-DOolktTn.js";
|
|
5
|
-
import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-
|
|
5
|
+
import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-9FvE22Bb.js";
|
|
6
6
|
import "./camera-MPUbZOp5.js";
|
|
7
7
|
import "./types-ClLIGfX1.js";
|
|
8
|
-
import "./types-
|
|
9
|
-
import "./types-
|
|
8
|
+
import "./types-BYqs4TiJ.js";
|
|
9
|
+
import "./types-BNddPgzi.js";
|
|
10
10
|
import "./deepsightService-Ds5vBWjY.js";
|
|
11
11
|
import "./types-ziDq2ukF.js";
|
|
12
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
12
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DSFSI1sV.js";
|
|
13
13
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-DCgvJ8qz.js";
|
|
2
|
-
import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-
|
|
2
|
+
import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-9FvE22Bb.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-DCgvJ8qz.js";
|
|
2
2
|
import "./Actor-DhAnkIwf.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate448 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:
|
|
39
|
+
declare const consentMachine: xstate448.StateMachine<ConsentContext, {
|
|
40
40
|
type: "LOAD";
|
|
41
41
|
} | {
|
|
42
42
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -48,53 +48,53 @@ declare const consentMachine: xstate350.StateMachine<ConsentContext, {
|
|
|
48
48
|
} | {
|
|
49
49
|
type: "RESET";
|
|
50
50
|
}, {
|
|
51
|
-
[x: string]:
|
|
51
|
+
[x: string]: xstate448.ActorRefFromLogic<xstate448.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
52
52
|
consentId: string;
|
|
53
|
-
},
|
|
53
|
+
}, xstate448.EventObject>> | xstate448.ActorRefFromLogic<xstate448.PromiseActorLogic<void, {
|
|
54
54
|
languageConsentId: string;
|
|
55
55
|
checkboxes: ConsentCheckbox[];
|
|
56
|
-
},
|
|
57
|
-
},
|
|
56
|
+
}, xstate448.EventObject>> | undefined;
|
|
57
|
+
}, xstate448.Values<{
|
|
58
58
|
fetchConsent: {
|
|
59
59
|
src: "fetchConsent";
|
|
60
|
-
logic:
|
|
60
|
+
logic: xstate448.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
61
61
|
consentId: string;
|
|
62
|
-
},
|
|
62
|
+
}, xstate448.EventObject>;
|
|
63
63
|
id: string | undefined;
|
|
64
64
|
};
|
|
65
65
|
submitConsent: {
|
|
66
66
|
src: "submitConsent";
|
|
67
|
-
logic:
|
|
67
|
+
logic: xstate448.PromiseActorLogic<void, {
|
|
68
68
|
languageConsentId: string;
|
|
69
69
|
checkboxes: ConsentCheckbox[];
|
|
70
|
-
},
|
|
70
|
+
}, xstate448.EventObject>;
|
|
71
71
|
id: string | undefined;
|
|
72
72
|
};
|
|
73
|
-
}>,
|
|
73
|
+
}>, xstate448.Values<{
|
|
74
74
|
setError: {
|
|
75
75
|
type: "setError";
|
|
76
|
-
params:
|
|
76
|
+
params: xstate448.NonReducibleUnknown;
|
|
77
77
|
};
|
|
78
78
|
clearError: {
|
|
79
79
|
type: "clearError";
|
|
80
|
-
params:
|
|
80
|
+
params: xstate448.NonReducibleUnknown;
|
|
81
81
|
};
|
|
82
82
|
setConsentData: {
|
|
83
83
|
type: "setConsentData";
|
|
84
|
-
params:
|
|
84
|
+
params: xstate448.NonReducibleUnknown;
|
|
85
85
|
};
|
|
86
86
|
toggleCheckbox: {
|
|
87
87
|
type: "toggleCheckbox";
|
|
88
|
-
params:
|
|
88
|
+
params: xstate448.NonReducibleUnknown;
|
|
89
89
|
};
|
|
90
90
|
resetContext: {
|
|
91
91
|
type: "resetContext";
|
|
92
|
-
params:
|
|
92
|
+
params: xstate448.NonReducibleUnknown;
|
|
93
93
|
};
|
|
94
94
|
}>, {
|
|
95
95
|
type: "canSubmit";
|
|
96
96
|
params: unknown;
|
|
97
|
-
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput,
|
|
97
|
+
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate448.NonReducibleUnknown, xstate448.EventObject, xstate448.MetaObject, {
|
|
98
98
|
readonly id: "consent";
|
|
99
99
|
readonly initial: "idle";
|
|
100
100
|
readonly context: ({
|
|
@@ -103,70 +103,70 @@ declare const consentMachine: xstate350.StateMachine<ConsentContext, {
|
|
|
103
103
|
spawn: {
|
|
104
104
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
105
105
|
src: "fetchConsent";
|
|
106
|
-
logic:
|
|
106
|
+
logic: xstate448.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
107
107
|
consentId: string;
|
|
108
|
-
},
|
|
108
|
+
}, xstate448.EventObject>;
|
|
109
109
|
id: string | undefined;
|
|
110
110
|
} extends infer T ? T extends {
|
|
111
111
|
src: "fetchConsent";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate448.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
113
113
|
consentId: string;
|
|
114
|
-
},
|
|
114
|
+
}, xstate448.EventObject>;
|
|
115
115
|
id: string | undefined;
|
|
116
116
|
} ? T extends {
|
|
117
117
|
src: TSrc;
|
|
118
|
-
} ?
|
|
118
|
+
} ? xstate448.ConditionalRequired<[options?: ({
|
|
119
119
|
id?: T["id"] | undefined;
|
|
120
120
|
systemId?: string;
|
|
121
|
-
input?:
|
|
121
|
+
input?: xstate448.InputFrom<T["logic"]> | undefined;
|
|
122
122
|
syncSnapshot?: boolean;
|
|
123
|
-
} & { [K in
|
|
123
|
+
} & { [K in xstate448.RequiredActorOptions<T>]: unknown }) | undefined], xstate448.IsNotNever<xstate448.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
124
124
|
src: "submitConsent";
|
|
125
|
-
logic:
|
|
125
|
+
logic: xstate448.PromiseActorLogic<void, {
|
|
126
126
|
languageConsentId: string;
|
|
127
127
|
checkboxes: ConsentCheckbox[];
|
|
128
|
-
},
|
|
128
|
+
}, xstate448.EventObject>;
|
|
129
129
|
id: string | undefined;
|
|
130
130
|
} extends infer T_1 ? T_1 extends {
|
|
131
131
|
src: "submitConsent";
|
|
132
|
-
logic:
|
|
132
|
+
logic: xstate448.PromiseActorLogic<void, {
|
|
133
133
|
languageConsentId: string;
|
|
134
134
|
checkboxes: ConsentCheckbox[];
|
|
135
|
-
},
|
|
135
|
+
}, xstate448.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
} ? T_1 extends {
|
|
138
138
|
src: TSrc;
|
|
139
|
-
} ?
|
|
139
|
+
} ? xstate448.ConditionalRequired<[options?: ({
|
|
140
140
|
id?: T_1["id"] | undefined;
|
|
141
141
|
systemId?: string;
|
|
142
|
-
input?:
|
|
142
|
+
input?: xstate448.InputFrom<T_1["logic"]> | undefined;
|
|
143
143
|
syncSnapshot?: boolean;
|
|
144
|
-
} & { [K_1 in
|
|
144
|
+
} & { [K_1 in xstate448.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate448.IsNotNever<xstate448.RequiredActorOptions<T_1>>> : never : never : never)): xstate448.ActorRefFromLogic<xstate448.GetConcreteByKey<xstate448.Values<{
|
|
145
145
|
fetchConsent: {
|
|
146
146
|
src: "fetchConsent";
|
|
147
|
-
logic:
|
|
147
|
+
logic: xstate448.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
148
148
|
consentId: string;
|
|
149
|
-
},
|
|
149
|
+
}, xstate448.EventObject>;
|
|
150
150
|
id: string | undefined;
|
|
151
151
|
};
|
|
152
152
|
submitConsent: {
|
|
153
153
|
src: "submitConsent";
|
|
154
|
-
logic:
|
|
154
|
+
logic: xstate448.PromiseActorLogic<void, {
|
|
155
155
|
languageConsentId: string;
|
|
156
156
|
checkboxes: ConsentCheckbox[];
|
|
157
|
-
},
|
|
157
|
+
}, xstate448.EventObject>;
|
|
158
158
|
id: string | undefined;
|
|
159
159
|
};
|
|
160
160
|
}>, "src", TSrc>["logic"]>;
|
|
161
|
-
<TLogic extends
|
|
161
|
+
<TLogic extends xstate448.AnyActorLogic>(src: TLogic, ...[options]: xstate448.ConditionalRequired<[options?: ({
|
|
162
162
|
id?: never;
|
|
163
163
|
systemId?: string;
|
|
164
|
-
input?:
|
|
164
|
+
input?: xstate448.InputFrom<TLogic> | undefined;
|
|
165
165
|
syncSnapshot?: boolean;
|
|
166
|
-
} & { [K in
|
|
166
|
+
} & { [K in xstate448.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate448.IsNotNever<xstate448.RequiredLogicInput<TLogic>>>): xstate448.ActorRefFromLogic<TLogic>;
|
|
167
167
|
};
|
|
168
168
|
input: ConsentInput;
|
|
169
|
-
self:
|
|
169
|
+
self: xstate448.ActorRef<xstate448.MachineSnapshot<ConsentContext, {
|
|
170
170
|
type: "LOAD";
|
|
171
171
|
} | {
|
|
172
172
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -177,7 +177,7 @@ declare const consentMachine: xstate350.StateMachine<ConsentContext, {
|
|
|
177
177
|
type: "RETRY";
|
|
178
178
|
} | {
|
|
179
179
|
type: "RESET";
|
|
180
|
-
}, Record<string,
|
|
180
|
+
}, Record<string, xstate448.AnyActorRef | undefined>, xstate448.StateValue, string, unknown, any, any>, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -188,7 +188,7 @@ declare const consentMachine: xstate350.StateMachine<ConsentContext, {
|
|
|
188
188
|
type: "RETRY";
|
|
189
189
|
} | {
|
|
190
190
|
type: "RESET";
|
|
191
|
-
},
|
|
191
|
+
}, xstate448.AnyEventObject>;
|
|
192
192
|
}) => {
|
|
193
193
|
config: ConsentConfig;
|
|
194
194
|
title: string;
|
|
@@ -226,7 +226,7 @@ declare const consentMachine: xstate350.StateMachine<ConsentContext, {
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "RESET";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate448.ActorRef<xstate448.MachineSnapshot<ConsentContext, {
|
|
230
230
|
type: "LOAD";
|
|
231
231
|
} | {
|
|
232
232
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -237,7 +237,7 @@ declare const consentMachine: xstate350.StateMachine<ConsentContext, {
|
|
|
237
237
|
type: "RETRY";
|
|
238
238
|
} | {
|
|
239
239
|
type: "RESET";
|
|
240
|
-
}, Record<string,
|
|
240
|
+
}, Record<string, xstate448.AnyActorRef>, xstate448.StateValue, string, unknown, any, any>, {
|
|
241
241
|
type: "LOAD";
|
|
242
242
|
} | {
|
|
243
243
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -248,7 +248,7 @@ declare const consentMachine: xstate350.StateMachine<ConsentContext, {
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "RESET";
|
|
251
|
-
},
|
|
251
|
+
}, xstate448.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
consentId: string;
|
|
254
254
|
};
|
|
@@ -297,7 +297,7 @@ declare const consentMachine: xstate350.StateMachine<ConsentContext, {
|
|
|
297
297
|
} | {
|
|
298
298
|
type: "RESET";
|
|
299
299
|
};
|
|
300
|
-
self:
|
|
300
|
+
self: xstate448.ActorRef<xstate448.MachineSnapshot<ConsentContext, {
|
|
301
301
|
type: "LOAD";
|
|
302
302
|
} | {
|
|
303
303
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -308,7 +308,7 @@ declare const consentMachine: xstate350.StateMachine<ConsentContext, {
|
|
|
308
308
|
type: "RETRY";
|
|
309
309
|
} | {
|
|
310
310
|
type: "RESET";
|
|
311
|
-
}, Record<string,
|
|
311
|
+
}, Record<string, xstate448.AnyActorRef>, xstate448.StateValue, string, unknown, any, any>, {
|
|
312
312
|
type: "LOAD";
|
|
313
313
|
} | {
|
|
314
314
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -319,7 +319,7 @@ declare const consentMachine: xstate350.StateMachine<ConsentContext, {
|
|
|
319
319
|
type: "RETRY";
|
|
320
320
|
} | {
|
|
321
321
|
type: "RESET";
|
|
322
|
-
},
|
|
322
|
+
}, xstate448.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-DCgvJ8qz.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as xstate0 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:
|
|
50
|
+
declare const cpfOcrMachine: xstate0.StateMachine<CpfOcrContext, {
|
|
51
51
|
type: "LOAD";
|
|
52
52
|
} | {
|
|
53
53
|
type: "SET_CPF";
|
|
@@ -57,43 +57,43 @@ declare const cpfOcrMachine: xstate325.StateMachine<CpfOcrContext, {
|
|
|
57
57
|
} | {
|
|
58
58
|
type: "RETRY";
|
|
59
59
|
}, {
|
|
60
|
-
[x: string]:
|
|
60
|
+
[x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<CpfOcrDataResponse, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<CpfOcrUpdateResponse, {
|
|
61
61
|
cpf: string;
|
|
62
|
-
},
|
|
63
|
-
},
|
|
62
|
+
}, xstate0.EventObject>> | undefined;
|
|
63
|
+
}, xstate0.Values<{
|
|
64
64
|
fetchCpfOcrData: {
|
|
65
65
|
src: "fetchCpfOcrData";
|
|
66
|
-
logic:
|
|
66
|
+
logic: xstate0.PromiseActorLogic<CpfOcrDataResponse, void, xstate0.EventObject>;
|
|
67
67
|
id: string | undefined;
|
|
68
68
|
};
|
|
69
69
|
submitCpfOcr: {
|
|
70
70
|
src: "submitCpfOcr";
|
|
71
|
-
logic:
|
|
71
|
+
logic: xstate0.PromiseActorLogic<CpfOcrUpdateResponse, {
|
|
72
72
|
cpf: string;
|
|
73
|
-
},
|
|
73
|
+
}, xstate0.EventObject>;
|
|
74
74
|
id: string | undefined;
|
|
75
75
|
};
|
|
76
|
-
}>,
|
|
76
|
+
}>, xstate0.Values<{
|
|
77
77
|
setPrefill: {
|
|
78
78
|
type: "setPrefill";
|
|
79
|
-
params:
|
|
79
|
+
params: xstate0.NonReducibleUnknown;
|
|
80
80
|
};
|
|
81
81
|
setCpf: {
|
|
82
82
|
type: "setCpf";
|
|
83
|
-
params:
|
|
83
|
+
params: xstate0.NonReducibleUnknown;
|
|
84
84
|
};
|
|
85
85
|
setError: {
|
|
86
86
|
type: "setError";
|
|
87
|
-
params:
|
|
87
|
+
params: xstate0.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
clearError: {
|
|
90
90
|
type: "clearError";
|
|
91
|
-
params:
|
|
91
|
+
params: xstate0.NonReducibleUnknown;
|
|
92
92
|
};
|
|
93
93
|
}>, {
|
|
94
94
|
type: "isValid";
|
|
95
95
|
params: unknown;
|
|
96
|
-
}, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput,
|
|
96
|
+
}, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
97
97
|
readonly id: "cpfOcr";
|
|
98
98
|
readonly initial: "idle";
|
|
99
99
|
readonly context: {
|
|
@@ -148,7 +148,7 @@ declare const cpfOcrMachine: xstate325.StateMachine<CpfOcrContext, {
|
|
|
148
148
|
} | {
|
|
149
149
|
type: "RETRY";
|
|
150
150
|
};
|
|
151
|
-
self:
|
|
151
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<CpfOcrContext, {
|
|
152
152
|
type: "LOAD";
|
|
153
153
|
} | {
|
|
154
154
|
type: "SET_CPF";
|
|
@@ -157,7 +157,7 @@ declare const cpfOcrMachine: xstate325.StateMachine<CpfOcrContext, {
|
|
|
157
157
|
type: "SUBMIT";
|
|
158
158
|
} | {
|
|
159
159
|
type: "RETRY";
|
|
160
|
-
}, Record<string,
|
|
160
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
161
161
|
type: "LOAD";
|
|
162
162
|
} | {
|
|
163
163
|
type: "SET_CPF";
|
|
@@ -166,7 +166,7 @@ declare const cpfOcrMachine: xstate325.StateMachine<CpfOcrContext, {
|
|
|
166
166
|
type: "SUBMIT";
|
|
167
167
|
} | {
|
|
168
168
|
type: "RETRY";
|
|
169
|
-
},
|
|
169
|
+
}, xstate0.AnyEventObject>;
|
|
170
170
|
}) => {
|
|
171
171
|
cpf: string;
|
|
172
172
|
};
|
|
@@ -2,8 +2,8 @@ import { t as Manager } from "./Manager-DCgvJ8qz.js";
|
|
|
2
2
|
import "./Actor-DhAnkIwf.js";
|
|
3
3
|
import "./camera-MPUbZOp5.js";
|
|
4
4
|
import "./types-ClLIGfX1.js";
|
|
5
|
-
import "./types-
|
|
6
|
-
import { i as FlowModuleConfig } from "./types-
|
|
5
|
+
import "./types-BYqs4TiJ.js";
|
|
6
|
+
import { i as FlowModuleConfig } from "./types-BNddPgzi.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/curp-validation/types.d.ts
|
|
9
9
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|