@incodetech/core 0.0.0-dev-20260619-bb63cb3a → 0.0.0-dev-20260619-9a09b3a5
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/{browser-DlFgHpoC-iQk9oyxh.esm.js → browser-DlFgHpoC-DwBHV6-1.esm.js} +1 -1
- package/dist/certificate-issuance.d.ts +28 -28
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-CNdr6JTS.d.ts → consentManager-C7D16zfA.d.ts} +50 -50
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-CII4qiF3.d.ts → cpfOcrManager-r5gjUsYU.d.ts} +20 -20
- package/dist/document-capture.d.ts +222 -222
- package/dist/document-upload.d.ts +46 -46
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-DGFH-tLB.esm.js → ekybStateMachine-JF6-IKua.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +3 -3
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-3MBrgTQn.esm.js → flowServices-iJKtJvK3.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-Bkrt8QIC.esm.js → idCaptureManager-DNTn2TCr.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-H-1tL3jX.esm.js → idCaptureStateMachine-CixFJh5-.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-C3VRLqYZ.d.ts → identityReuseManager-DLlFpDiV.d.ts} +34 -34
- package/dist/{index-DXzIC0HG.d.ts → index-BTJ5ufs1.d.ts} +168 -168
- package/dist/index.esm.js +3 -3
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-Cy0yEZ2A.d.ts → mandatoryConsentManager-BheHDo4t.d.ts} +50 -50
- package/dist/qe-signature.d.ts +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-DBTrvltw.esm.js → sessionInitializer-DFA3XI-3.esm.js} +1 -1
- package/dist/{setup-Dq9-4cRc.esm.js → setup-l-Ud6DX-.esm.js} +2 -2
- package/dist/{tri-DPpCyQfs.esm.js → tri-nGQNAf3M.esm.js} +1 -1
- package/dist/{tri.esm-CpKcH4P7.esm.js → tri.esm-seBni-5K.esm.js} +121 -118
- package/dist/tri.esm.js +1 -1
- package/dist/trust-graph.d.ts +2 -2
- package/dist/wasm.esm.js +3 -3
- package/dist/workflow.d.ts +140 -140
- package/dist/workflow.esm.js +4 -4
- package/package.json +3 -3
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-B2OEDYqf.js";
|
|
2
2
|
import "./Actor-fIPLXfoi.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-BTJ5ufs1.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ae-signature/index.d.ts
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.4.1/node_modules/@incodetech/tri-sdk/dist/chunks/browser-DlFgHpoC.js
|
|
2
2
|
var n = {}, t = Uint8Array, i = Uint16Array, r = Int32Array, e = new t([
|
|
3
3
|
0,
|
|
4
4
|
0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-B2OEDYqf.js";
|
|
2
2
|
import "./Actor-fIPLXfoi.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate1555 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/certificate-issuance/certificateIssuanceConstants.d.ts
|
|
6
6
|
declare const MIN_PASSWORD_LENGTH = 8;
|
|
@@ -39,7 +39,7 @@ type CertificateIssuanceContext = {
|
|
|
39
39
|
type CertificateIssuanceInput = {
|
|
40
40
|
config: CertificateIssuanceConfig;
|
|
41
41
|
};
|
|
42
|
-
declare const certificateIssuanceMachine:
|
|
42
|
+
declare const certificateIssuanceMachine: xstate1555.StateMachine<CertificateIssuanceContext, {
|
|
43
43
|
type: "LOAD";
|
|
44
44
|
} | {
|
|
45
45
|
type: "PASSWORD_CHANGED";
|
|
@@ -53,28 +53,28 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
|
|
|
53
53
|
} | {
|
|
54
54
|
type: "FINISH";
|
|
55
55
|
}, {
|
|
56
|
-
[x: string]:
|
|
56
|
+
[x: string]: xstate1555.ActorRefFromLogic<xstate1555.PromiseActorLogic<IssueCertificateResponse, {
|
|
57
57
|
password: string;
|
|
58
|
-
},
|
|
58
|
+
}, xstate1555.EventObject>> | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
src: "issueCertificate";
|
|
61
|
-
logic:
|
|
61
|
+
logic: xstate1555.PromiseActorLogic<IssueCertificateResponse, {
|
|
62
62
|
password: string;
|
|
63
|
-
},
|
|
63
|
+
}, xstate1555.EventObject>;
|
|
64
64
|
id: string | undefined;
|
|
65
|
-
},
|
|
65
|
+
}, xstate1555.Values<{
|
|
66
66
|
setPassword: {
|
|
67
67
|
type: "setPassword";
|
|
68
|
-
params:
|
|
68
|
+
params: xstate1555.NonReducibleUnknown;
|
|
69
69
|
};
|
|
70
70
|
setBlob: {
|
|
71
71
|
type: "setBlob";
|
|
72
|
-
params:
|
|
72
|
+
params: xstate1555.NonReducibleUnknown;
|
|
73
73
|
};
|
|
74
74
|
}>, {
|
|
75
75
|
type: "isPasswordValid";
|
|
76
76
|
params: unknown;
|
|
77
|
-
}, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput,
|
|
77
|
+
}, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate1555.NonReducibleUnknown, xstate1555.EventObject, xstate1555.MetaObject, {
|
|
78
78
|
readonly id: "certificateIssuance";
|
|
79
79
|
readonly initial: "idle";
|
|
80
80
|
readonly context: ({
|
|
@@ -83,39 +83,39 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
|
|
|
83
83
|
spawn: {
|
|
84
84
|
<TSrc extends "issueCertificate">(logic: TSrc, ...[options]: {
|
|
85
85
|
src: "issueCertificate";
|
|
86
|
-
logic:
|
|
86
|
+
logic: xstate1555.PromiseActorLogic<IssueCertificateResponse, {
|
|
87
87
|
password: string;
|
|
88
|
-
},
|
|
88
|
+
}, xstate1555.EventObject>;
|
|
89
89
|
id: string | undefined;
|
|
90
90
|
} extends infer T ? T extends {
|
|
91
91
|
src: "issueCertificate";
|
|
92
|
-
logic:
|
|
92
|
+
logic: xstate1555.PromiseActorLogic<IssueCertificateResponse, {
|
|
93
93
|
password: string;
|
|
94
|
-
},
|
|
94
|
+
}, xstate1555.EventObject>;
|
|
95
95
|
id: string | undefined;
|
|
96
96
|
} ? T extends {
|
|
97
97
|
src: TSrc;
|
|
98
|
-
} ?
|
|
98
|
+
} ? xstate1555.ConditionalRequired<[options?: ({
|
|
99
99
|
id?: T["id"] | undefined;
|
|
100
100
|
systemId?: string;
|
|
101
|
-
input?:
|
|
101
|
+
input?: xstate1555.InputFrom<T["logic"]> | undefined;
|
|
102
102
|
syncSnapshot?: boolean;
|
|
103
|
-
} & { [K in
|
|
103
|
+
} & { [K in xstate1555.RequiredActorOptions<T>]: unknown }) | undefined], xstate1555.IsNotNever<xstate1555.RequiredActorOptions<T>>> : never : never : never): xstate1555.ActorRefFromLogic<xstate1555.GetConcreteByKey<{
|
|
104
104
|
src: "issueCertificate";
|
|
105
|
-
logic:
|
|
105
|
+
logic: xstate1555.PromiseActorLogic<IssueCertificateResponse, {
|
|
106
106
|
password: string;
|
|
107
|
-
},
|
|
107
|
+
}, xstate1555.EventObject>;
|
|
108
108
|
id: string | undefined;
|
|
109
109
|
}, "src", TSrc>["logic"]>;
|
|
110
|
-
<TLogic extends
|
|
110
|
+
<TLogic extends xstate1555.AnyActorLogic>(src: TLogic, ...[options]: xstate1555.ConditionalRequired<[options?: ({
|
|
111
111
|
id?: never;
|
|
112
112
|
systemId?: string;
|
|
113
|
-
input?:
|
|
113
|
+
input?: xstate1555.InputFrom<TLogic> | undefined;
|
|
114
114
|
syncSnapshot?: boolean;
|
|
115
|
-
} & { [K in
|
|
115
|
+
} & { [K in xstate1555.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1555.IsNotNever<xstate1555.RequiredLogicInput<TLogic>>>): xstate1555.ActorRefFromLogic<TLogic>;
|
|
116
116
|
};
|
|
117
117
|
input: CertificateIssuanceInput;
|
|
118
|
-
self:
|
|
118
|
+
self: xstate1555.ActorRef<xstate1555.MachineSnapshot<CertificateIssuanceContext, {
|
|
119
119
|
type: "LOAD";
|
|
120
120
|
} | {
|
|
121
121
|
type: "PASSWORD_CHANGED";
|
|
@@ -128,7 +128,7 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
|
|
|
128
128
|
type: "DOWNLOAD_FAILED";
|
|
129
129
|
} | {
|
|
130
130
|
type: "FINISH";
|
|
131
|
-
}, Record<string,
|
|
131
|
+
}, Record<string, xstate1555.AnyActorRef | undefined>, xstate1555.StateValue, string, unknown, any, any>, {
|
|
132
132
|
type: "LOAD";
|
|
133
133
|
} | {
|
|
134
134
|
type: "PASSWORD_CHANGED";
|
|
@@ -141,7 +141,7 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
|
|
|
141
141
|
type: "DOWNLOAD_FAILED";
|
|
142
142
|
} | {
|
|
143
143
|
type: "FINISH";
|
|
144
|
-
},
|
|
144
|
+
}, xstate1555.AnyEventObject>;
|
|
145
145
|
}) => {
|
|
146
146
|
config: CertificateIssuanceConfig;
|
|
147
147
|
password: string;
|
|
@@ -189,7 +189,7 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
|
|
|
189
189
|
} | {
|
|
190
190
|
type: "FINISH";
|
|
191
191
|
};
|
|
192
|
-
self:
|
|
192
|
+
self: xstate1555.ActorRef<xstate1555.MachineSnapshot<CertificateIssuanceContext, {
|
|
193
193
|
type: "LOAD";
|
|
194
194
|
} | {
|
|
195
195
|
type: "PASSWORD_CHANGED";
|
|
@@ -202,7 +202,7 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
|
|
|
202
202
|
type: "DOWNLOAD_FAILED";
|
|
203
203
|
} | {
|
|
204
204
|
type: "FINISH";
|
|
205
|
-
}, Record<string,
|
|
205
|
+
}, Record<string, xstate1555.AnyActorRef>, xstate1555.StateValue, string, unknown, any, any>, {
|
|
206
206
|
type: "LOAD";
|
|
207
207
|
} | {
|
|
208
208
|
type: "PASSWORD_CHANGED";
|
|
@@ -215,7 +215,7 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
|
|
|
215
215
|
type: "DOWNLOAD_FAILED";
|
|
216
216
|
} | {
|
|
217
217
|
type: "FINISH";
|
|
218
|
-
},
|
|
218
|
+
}, xstate1555.AnyEventObject>;
|
|
219
219
|
}) => {
|
|
220
220
|
password: string;
|
|
221
221
|
};
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./Manager-B2OEDYqf.js";
|
|
2
2
|
import "./Actor-fIPLXfoi.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-C7D16zfA.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-B2OEDYqf.js";
|
|
2
2
|
import { t as ActorRefFrom } from "./Actor-fIPLXfoi.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate1487 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: xstate1487.StateMachine<ConsentContext, {
|
|
41
41
|
type: "LOAD";
|
|
42
42
|
} | {
|
|
43
43
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -49,55 +49,55 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
|
|
|
49
49
|
} | {
|
|
50
50
|
type: "RESET";
|
|
51
51
|
}, {
|
|
52
|
-
[x: string]:
|
|
52
|
+
[x: string]: xstate1487.ActorRefFromLogic<xstate1487.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
53
53
|
consentId: string;
|
|
54
54
|
language?: string;
|
|
55
|
-
},
|
|
55
|
+
}, xstate1487.EventObject>> | xstate1487.ActorRefFromLogic<xstate1487.PromiseActorLogic<void, {
|
|
56
56
|
languageConsentId: string;
|
|
57
57
|
checkboxes: ConsentCheckbox[];
|
|
58
|
-
},
|
|
59
|
-
},
|
|
58
|
+
}, xstate1487.EventObject>> | undefined;
|
|
59
|
+
}, xstate1487.Values<{
|
|
60
60
|
fetchConsent: {
|
|
61
61
|
src: "fetchConsent";
|
|
62
|
-
logic:
|
|
62
|
+
logic: xstate1487.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
63
63
|
consentId: string;
|
|
64
64
|
language?: string;
|
|
65
|
-
},
|
|
65
|
+
}, xstate1487.EventObject>;
|
|
66
66
|
id: string | undefined;
|
|
67
67
|
};
|
|
68
68
|
submitConsent: {
|
|
69
69
|
src: "submitConsent";
|
|
70
|
-
logic:
|
|
70
|
+
logic: xstate1487.PromiseActorLogic<void, {
|
|
71
71
|
languageConsentId: string;
|
|
72
72
|
checkboxes: ConsentCheckbox[];
|
|
73
|
-
},
|
|
73
|
+
}, xstate1487.EventObject>;
|
|
74
74
|
id: string | undefined;
|
|
75
75
|
};
|
|
76
|
-
}>,
|
|
77
|
-
setError: {
|
|
78
|
-
type: "setError";
|
|
79
|
-
params: xstate1529.NonReducibleUnknown;
|
|
80
|
-
};
|
|
76
|
+
}>, xstate1487.Values<{
|
|
81
77
|
clearError: {
|
|
82
78
|
type: "clearError";
|
|
83
|
-
params:
|
|
79
|
+
params: xstate1487.NonReducibleUnknown;
|
|
80
|
+
};
|
|
81
|
+
setError: {
|
|
82
|
+
type: "setError";
|
|
83
|
+
params: xstate1487.NonReducibleUnknown;
|
|
84
84
|
};
|
|
85
85
|
resetContext: {
|
|
86
86
|
type: "resetContext";
|
|
87
|
-
params:
|
|
87
|
+
params: xstate1487.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
setConsentData: {
|
|
90
90
|
type: "setConsentData";
|
|
91
|
-
params:
|
|
91
|
+
params: xstate1487.NonReducibleUnknown;
|
|
92
92
|
};
|
|
93
93
|
toggleCheckbox: {
|
|
94
94
|
type: "toggleCheckbox";
|
|
95
|
-
params:
|
|
95
|
+
params: xstate1487.NonReducibleUnknown;
|
|
96
96
|
};
|
|
97
97
|
}>, {
|
|
98
98
|
type: "canSubmit";
|
|
99
99
|
params: unknown;
|
|
100
|
-
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput,
|
|
100
|
+
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate1487.NonReducibleUnknown, xstate1487.EventObject, xstate1487.MetaObject, {
|
|
101
101
|
readonly id: "consent";
|
|
102
102
|
readonly initial: "idle";
|
|
103
103
|
readonly context: ({
|
|
@@ -106,73 +106,73 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
|
|
|
106
106
|
spawn: {
|
|
107
107
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
108
108
|
src: "fetchConsent";
|
|
109
|
-
logic:
|
|
109
|
+
logic: xstate1487.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
110
110
|
consentId: string;
|
|
111
111
|
language?: string;
|
|
112
|
-
},
|
|
112
|
+
}, xstate1487.EventObject>;
|
|
113
113
|
id: string | undefined;
|
|
114
114
|
} extends infer T ? T extends {
|
|
115
115
|
src: "fetchConsent";
|
|
116
|
-
logic:
|
|
116
|
+
logic: xstate1487.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
117
117
|
consentId: string;
|
|
118
118
|
language?: string;
|
|
119
|
-
},
|
|
119
|
+
}, xstate1487.EventObject>;
|
|
120
120
|
id: string | undefined;
|
|
121
121
|
} ? T extends {
|
|
122
122
|
src: TSrc;
|
|
123
|
-
} ?
|
|
123
|
+
} ? xstate1487.ConditionalRequired<[options?: ({
|
|
124
124
|
id?: T["id"] | undefined;
|
|
125
125
|
systemId?: string;
|
|
126
|
-
input?:
|
|
126
|
+
input?: xstate1487.InputFrom<T["logic"]> | undefined;
|
|
127
127
|
syncSnapshot?: boolean;
|
|
128
|
-
} & { [K in
|
|
128
|
+
} & { [K in xstate1487.RequiredActorOptions<T>]: unknown }) | undefined], xstate1487.IsNotNever<xstate1487.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
129
129
|
src: "submitConsent";
|
|
130
|
-
logic:
|
|
130
|
+
logic: xstate1487.PromiseActorLogic<void, {
|
|
131
131
|
languageConsentId: string;
|
|
132
132
|
checkboxes: ConsentCheckbox[];
|
|
133
|
-
},
|
|
133
|
+
}, xstate1487.EventObject>;
|
|
134
134
|
id: string | undefined;
|
|
135
135
|
} extends infer T_1 ? T_1 extends {
|
|
136
136
|
src: "submitConsent";
|
|
137
|
-
logic:
|
|
137
|
+
logic: xstate1487.PromiseActorLogic<void, {
|
|
138
138
|
languageConsentId: string;
|
|
139
139
|
checkboxes: ConsentCheckbox[];
|
|
140
|
-
},
|
|
140
|
+
}, xstate1487.EventObject>;
|
|
141
141
|
id: string | undefined;
|
|
142
142
|
} ? T_1 extends {
|
|
143
143
|
src: TSrc;
|
|
144
|
-
} ?
|
|
144
|
+
} ? xstate1487.ConditionalRequired<[options?: ({
|
|
145
145
|
id?: T_1["id"] | undefined;
|
|
146
146
|
systemId?: string;
|
|
147
|
-
input?:
|
|
147
|
+
input?: xstate1487.InputFrom<T_1["logic"]> | undefined;
|
|
148
148
|
syncSnapshot?: boolean;
|
|
149
|
-
} & { [K_1 in
|
|
149
|
+
} & { [K_1 in xstate1487.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1487.IsNotNever<xstate1487.RequiredActorOptions<T_1>>> : never : never : never)): xstate1487.ActorRefFromLogic<xstate1487.GetConcreteByKey<xstate1487.Values<{
|
|
150
150
|
fetchConsent: {
|
|
151
151
|
src: "fetchConsent";
|
|
152
|
-
logic:
|
|
152
|
+
logic: xstate1487.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
153
153
|
consentId: string;
|
|
154
154
|
language?: string;
|
|
155
|
-
},
|
|
155
|
+
}, xstate1487.EventObject>;
|
|
156
156
|
id: string | undefined;
|
|
157
157
|
};
|
|
158
158
|
submitConsent: {
|
|
159
159
|
src: "submitConsent";
|
|
160
|
-
logic:
|
|
160
|
+
logic: xstate1487.PromiseActorLogic<void, {
|
|
161
161
|
languageConsentId: string;
|
|
162
162
|
checkboxes: ConsentCheckbox[];
|
|
163
|
-
},
|
|
163
|
+
}, xstate1487.EventObject>;
|
|
164
164
|
id: string | undefined;
|
|
165
165
|
};
|
|
166
166
|
}>, "src", TSrc>["logic"]>;
|
|
167
|
-
<TLogic extends
|
|
167
|
+
<TLogic extends xstate1487.AnyActorLogic>(src: TLogic, ...[options]: xstate1487.ConditionalRequired<[options?: ({
|
|
168
168
|
id?: never;
|
|
169
169
|
systemId?: string;
|
|
170
|
-
input?:
|
|
170
|
+
input?: xstate1487.InputFrom<TLogic> | undefined;
|
|
171
171
|
syncSnapshot?: boolean;
|
|
172
|
-
} & { [K in
|
|
172
|
+
} & { [K in xstate1487.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1487.IsNotNever<xstate1487.RequiredLogicInput<TLogic>>>): xstate1487.ActorRefFromLogic<TLogic>;
|
|
173
173
|
};
|
|
174
174
|
input: ConsentInput;
|
|
175
|
-
self:
|
|
175
|
+
self: xstate1487.ActorRef<xstate1487.MachineSnapshot<ConsentContext, {
|
|
176
176
|
type: "LOAD";
|
|
177
177
|
} | {
|
|
178
178
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -183,7 +183,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
|
|
|
183
183
|
type: "RETRY";
|
|
184
184
|
} | {
|
|
185
185
|
type: "RESET";
|
|
186
|
-
}, Record<string,
|
|
186
|
+
}, Record<string, xstate1487.AnyActorRef | undefined>, xstate1487.StateValue, string, unknown, any, any>, {
|
|
187
187
|
type: "LOAD";
|
|
188
188
|
} | {
|
|
189
189
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -194,7 +194,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
|
|
|
194
194
|
type: "RETRY";
|
|
195
195
|
} | {
|
|
196
196
|
type: "RESET";
|
|
197
|
-
},
|
|
197
|
+
}, xstate1487.AnyEventObject>;
|
|
198
198
|
}) => {
|
|
199
199
|
config: ConsentConfig;
|
|
200
200
|
title: string;
|
|
@@ -232,7 +232,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
|
|
|
232
232
|
} | {
|
|
233
233
|
type: "RESET";
|
|
234
234
|
};
|
|
235
|
-
self:
|
|
235
|
+
self: xstate1487.ActorRef<xstate1487.MachineSnapshot<ConsentContext, {
|
|
236
236
|
type: "LOAD";
|
|
237
237
|
} | {
|
|
238
238
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -243,7 +243,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
|
|
|
243
243
|
type: "RETRY";
|
|
244
244
|
} | {
|
|
245
245
|
type: "RESET";
|
|
246
|
-
}, Record<string,
|
|
246
|
+
}, Record<string, xstate1487.AnyActorRef>, xstate1487.StateValue, string, unknown, any, any>, {
|
|
247
247
|
type: "LOAD";
|
|
248
248
|
} | {
|
|
249
249
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -254,7 +254,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
|
|
|
254
254
|
type: "RETRY";
|
|
255
255
|
} | {
|
|
256
256
|
type: "RESET";
|
|
257
|
-
},
|
|
257
|
+
}, xstate1487.AnyEventObject>;
|
|
258
258
|
}) => {
|
|
259
259
|
consentId: string;
|
|
260
260
|
language: string | undefined;
|
|
@@ -304,7 +304,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
|
|
|
304
304
|
} | {
|
|
305
305
|
type: "RESET";
|
|
306
306
|
};
|
|
307
|
-
self:
|
|
307
|
+
self: xstate1487.ActorRef<xstate1487.MachineSnapshot<ConsentContext, {
|
|
308
308
|
type: "LOAD";
|
|
309
309
|
} | {
|
|
310
310
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -315,7 +315,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
|
|
|
315
315
|
type: "RETRY";
|
|
316
316
|
} | {
|
|
317
317
|
type: "RESET";
|
|
318
|
-
}, Record<string,
|
|
318
|
+
}, Record<string, xstate1487.AnyActorRef>, xstate1487.StateValue, string, unknown, any, any>, {
|
|
319
319
|
type: "LOAD";
|
|
320
320
|
} | {
|
|
321
321
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -326,7 +326,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
|
|
|
326
326
|
type: "RETRY";
|
|
327
327
|
} | {
|
|
328
328
|
type: "RESET";
|
|
329
|
-
},
|
|
329
|
+
}, xstate1487.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-B2OEDYqf.js";
|
|
2
2
|
import "./Actor-fIPLXfoi.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-r5gjUsYU.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-B2OEDYqf.js";
|
|
2
2
|
import { t as ActorRefFrom } from "./Actor-fIPLXfoi.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate1462 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: xstate1462.StateMachine<CpfOcrContext, {
|
|
21
21
|
type: "LOAD";
|
|
22
22
|
} | {
|
|
23
23
|
type: "SET_CPF";
|
|
@@ -27,43 +27,43 @@ declare const cpfOcrMachine: xstate1504.StateMachine<CpfOcrContext, {
|
|
|
27
27
|
} | {
|
|
28
28
|
type: "RETRY";
|
|
29
29
|
}, {
|
|
30
|
-
[x: string]:
|
|
30
|
+
[x: string]: xstate1462.ActorRefFromLogic<xstate1462.PromiseActorLogic<CpfOcrDataResponse, void, xstate1462.EventObject>> | xstate1462.ActorRefFromLogic<xstate1462.PromiseActorLogic<CpfOcrUpdateResponse, {
|
|
31
31
|
cpf: string;
|
|
32
|
-
},
|
|
33
|
-
},
|
|
32
|
+
}, xstate1462.EventObject>> | undefined;
|
|
33
|
+
}, xstate1462.Values<{
|
|
34
34
|
fetchCpfOcrData: {
|
|
35
35
|
src: "fetchCpfOcrData";
|
|
36
|
-
logic:
|
|
36
|
+
logic: xstate1462.PromiseActorLogic<CpfOcrDataResponse, void, xstate1462.EventObject>;
|
|
37
37
|
id: string | undefined;
|
|
38
38
|
};
|
|
39
39
|
submitCpfOcr: {
|
|
40
40
|
src: "submitCpfOcr";
|
|
41
|
-
logic:
|
|
41
|
+
logic: xstate1462.PromiseActorLogic<CpfOcrUpdateResponse, {
|
|
42
42
|
cpf: string;
|
|
43
|
-
},
|
|
43
|
+
}, xstate1462.EventObject>;
|
|
44
44
|
id: string | undefined;
|
|
45
45
|
};
|
|
46
|
-
}>,
|
|
47
|
-
setError: {
|
|
48
|
-
type: "setError";
|
|
49
|
-
params: xstate1504.NonReducibleUnknown;
|
|
50
|
-
};
|
|
46
|
+
}>, xstate1462.Values<{
|
|
51
47
|
clearError: {
|
|
52
48
|
type: "clearError";
|
|
53
|
-
params:
|
|
49
|
+
params: xstate1462.NonReducibleUnknown;
|
|
50
|
+
};
|
|
51
|
+
setError: {
|
|
52
|
+
type: "setError";
|
|
53
|
+
params: xstate1462.NonReducibleUnknown;
|
|
54
54
|
};
|
|
55
55
|
setPrefill: {
|
|
56
56
|
type: "setPrefill";
|
|
57
|
-
params:
|
|
57
|
+
params: xstate1462.NonReducibleUnknown;
|
|
58
58
|
};
|
|
59
59
|
setCpf: {
|
|
60
60
|
type: "setCpf";
|
|
61
|
-
params:
|
|
61
|
+
params: xstate1462.NonReducibleUnknown;
|
|
62
62
|
};
|
|
63
63
|
}>, {
|
|
64
64
|
type: "isValid";
|
|
65
65
|
params: unknown;
|
|
66
|
-
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting", string, CpfOcrInput,
|
|
66
|
+
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting", string, CpfOcrInput, xstate1462.NonReducibleUnknown, xstate1462.EventObject, xstate1462.MetaObject, {
|
|
67
67
|
readonly id: "cpfOcr";
|
|
68
68
|
readonly initial: "idle";
|
|
69
69
|
readonly context: {
|
|
@@ -118,7 +118,7 @@ declare const cpfOcrMachine: xstate1504.StateMachine<CpfOcrContext, {
|
|
|
118
118
|
} | {
|
|
119
119
|
type: "RETRY";
|
|
120
120
|
};
|
|
121
|
-
self:
|
|
121
|
+
self: xstate1462.ActorRef<xstate1462.MachineSnapshot<CpfOcrContext, {
|
|
122
122
|
type: "LOAD";
|
|
123
123
|
} | {
|
|
124
124
|
type: "SET_CPF";
|
|
@@ -127,7 +127,7 @@ declare const cpfOcrMachine: xstate1504.StateMachine<CpfOcrContext, {
|
|
|
127
127
|
type: "SUBMIT";
|
|
128
128
|
} | {
|
|
129
129
|
type: "RETRY";
|
|
130
|
-
}, Record<string,
|
|
130
|
+
}, Record<string, xstate1462.AnyActorRef>, xstate1462.StateValue, string, unknown, any, any>, {
|
|
131
131
|
type: "LOAD";
|
|
132
132
|
} | {
|
|
133
133
|
type: "SET_CPF";
|
|
@@ -136,7 +136,7 @@ declare const cpfOcrMachine: xstate1504.StateMachine<CpfOcrContext, {
|
|
|
136
136
|
type: "SUBMIT";
|
|
137
137
|
} | {
|
|
138
138
|
type: "RETRY";
|
|
139
|
-
},
|
|
139
|
+
}, xstate1462.AnyEventObject>;
|
|
140
140
|
}) => {
|
|
141
141
|
cpf: string;
|
|
142
142
|
};
|