@incodetech/core 0.0.0-dev-20260427-2d786e0 → 0.0.0-dev-20260427-c244d1d
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 +53 -53
- package/dist/document-capture.d.ts +71 -71
- package/dist/document-upload.d.ts +46 -46
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +79 -71
- package/dist/id-ocr.esm.js +11 -9
- package/dist/identity-reuse.d.ts +40 -40
- package/dist/{index-BNOfUWlA.d.ts → index-CV19mBRm.d.ts} +119 -119
- package/dist/mandatory-consent.d.ts +50 -50
- package/dist/qe-signature.d.ts +1 -1
- package/dist/workflow.d.ts +112 -112
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@ import { t as Manager } from "./Manager-BmmucBrC.js";
|
|
|
2
2
|
import "./Actor-gwS4PQSi.js";
|
|
3
3
|
import "./camera-CXfeCsaz.js";
|
|
4
4
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-BxjVn8Ry.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as xstate0 from "xstate";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
8
|
-
declare const documentUploadMachine:
|
|
8
|
+
declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext, {
|
|
9
9
|
type: "START";
|
|
10
10
|
} | {
|
|
11
11
|
type: "CAPTURE";
|
|
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate1069.StateMachine<DocumentUploadConte
|
|
|
18
18
|
} | {
|
|
19
19
|
type: "CLOSE";
|
|
20
20
|
}, {
|
|
21
|
-
[x: string]:
|
|
21
|
+
[x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
|
|
22
22
|
imageBase64: string;
|
|
23
23
|
documentType: string;
|
|
24
24
|
onProgress: (progress: number) => void;
|
|
25
|
-
},
|
|
26
|
-
},
|
|
25
|
+
}, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | undefined;
|
|
26
|
+
}, xstate0.Values<{
|
|
27
27
|
uploadDocument: {
|
|
28
28
|
src: "uploadDocument";
|
|
29
|
-
logic:
|
|
29
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
30
30
|
imageBase64: string;
|
|
31
31
|
documentType: string;
|
|
32
32
|
onProgress: (progress: number) => void;
|
|
33
|
-
},
|
|
33
|
+
}, xstate0.EventObject>;
|
|
34
34
|
id: string | undefined;
|
|
35
35
|
};
|
|
36
36
|
initCamera: {
|
|
37
37
|
src: "initCamera";
|
|
38
|
-
logic:
|
|
38
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
39
39
|
id: string | undefined;
|
|
40
40
|
};
|
|
41
|
-
}>,
|
|
42
|
-
setError: {
|
|
43
|
-
type: "setError";
|
|
44
|
-
params: xstate1069.NonReducibleUnknown;
|
|
45
|
-
};
|
|
46
|
-
clearError: {
|
|
47
|
-
type: "clearError";
|
|
48
|
-
params: xstate1069.NonReducibleUnknown;
|
|
49
|
-
};
|
|
41
|
+
}>, xstate0.Values<{
|
|
50
42
|
setStream: {
|
|
51
43
|
type: "setStream";
|
|
52
|
-
params:
|
|
44
|
+
params: xstate0.NonReducibleUnknown;
|
|
53
45
|
};
|
|
54
46
|
setImageAndClearError: {
|
|
55
47
|
type: "setImageAndClearError";
|
|
56
|
-
params:
|
|
48
|
+
params: xstate0.NonReducibleUnknown;
|
|
57
49
|
};
|
|
58
50
|
setProgress: {
|
|
59
51
|
type: "setProgress";
|
|
60
|
-
params:
|
|
52
|
+
params: xstate0.NonReducibleUnknown;
|
|
53
|
+
};
|
|
54
|
+
setError: {
|
|
55
|
+
type: "setError";
|
|
56
|
+
params: xstate0.NonReducibleUnknown;
|
|
57
|
+
};
|
|
58
|
+
clearError: {
|
|
59
|
+
type: "clearError";
|
|
60
|
+
params: xstate0.NonReducibleUnknown;
|
|
61
61
|
};
|
|
62
62
|
stopStream: {
|
|
63
63
|
type: "stopStream";
|
|
64
|
-
params:
|
|
64
|
+
params: xstate0.NonReducibleUnknown;
|
|
65
65
|
};
|
|
66
|
-
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput,
|
|
66
|
+
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
67
67
|
readonly id: "documentUpload";
|
|
68
68
|
readonly initial: "idle";
|
|
69
69
|
readonly context: ({
|
|
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate1069.StateMachine<DocumentUploadConte
|
|
|
72
72
|
spawn: {
|
|
73
73
|
<TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
|
|
74
74
|
src: "uploadDocument";
|
|
75
|
-
logic:
|
|
75
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
76
76
|
imageBase64: string;
|
|
77
77
|
documentType: string;
|
|
78
78
|
onProgress: (progress: number) => void;
|
|
79
|
-
},
|
|
79
|
+
}, xstate0.EventObject>;
|
|
80
80
|
id: string | undefined;
|
|
81
81
|
} extends infer T ? T extends {
|
|
82
82
|
src: "uploadDocument";
|
|
83
|
-
logic:
|
|
83
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
84
84
|
imageBase64: string;
|
|
85
85
|
documentType: string;
|
|
86
86
|
onProgress: (progress: number) => void;
|
|
87
|
-
},
|
|
87
|
+
}, xstate0.EventObject>;
|
|
88
88
|
id: string | undefined;
|
|
89
89
|
} ? T extends {
|
|
90
90
|
src: TSrc;
|
|
91
|
-
} ?
|
|
91
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
92
92
|
id?: T["id"] | undefined;
|
|
93
93
|
systemId?: string;
|
|
94
|
-
input?:
|
|
94
|
+
input?: xstate0.InputFrom<T["logic"]> | undefined;
|
|
95
95
|
syncSnapshot?: boolean;
|
|
96
|
-
} & { [K in
|
|
96
|
+
} & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
97
97
|
src: "initCamera";
|
|
98
|
-
logic:
|
|
98
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
99
99
|
id: string | undefined;
|
|
100
100
|
} extends infer T_1 ? T_1 extends {
|
|
101
101
|
src: "initCamera";
|
|
102
|
-
logic:
|
|
102
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
103
103
|
id: string | undefined;
|
|
104
104
|
} ? T_1 extends {
|
|
105
105
|
src: TSrc;
|
|
106
|
-
} ?
|
|
106
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
107
107
|
id?: T_1["id"] | undefined;
|
|
108
108
|
systemId?: string;
|
|
109
|
-
input?:
|
|
109
|
+
input?: xstate0.InputFrom<T_1["logic"]> | undefined;
|
|
110
110
|
syncSnapshot?: boolean;
|
|
111
|
-
} & { [K_1 in
|
|
111
|
+
} & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
|
|
112
112
|
uploadDocument: {
|
|
113
113
|
src: "uploadDocument";
|
|
114
|
-
logic:
|
|
114
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
115
115
|
imageBase64: string;
|
|
116
116
|
documentType: string;
|
|
117
117
|
onProgress: (progress: number) => void;
|
|
118
|
-
},
|
|
118
|
+
}, xstate0.EventObject>;
|
|
119
119
|
id: string | undefined;
|
|
120
120
|
};
|
|
121
121
|
initCamera: {
|
|
122
122
|
src: "initCamera";
|
|
123
|
-
logic:
|
|
123
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
};
|
|
126
126
|
}>, "src", TSrc>["logic"]>;
|
|
127
|
-
<TLogic extends
|
|
127
|
+
<TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
|
|
128
128
|
id?: never;
|
|
129
129
|
systemId?: string;
|
|
130
|
-
input?:
|
|
130
|
+
input?: xstate0.InputFrom<TLogic> | undefined;
|
|
131
131
|
syncSnapshot?: boolean;
|
|
132
|
-
} & { [K in
|
|
132
|
+
} & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
|
|
133
133
|
};
|
|
134
134
|
input: DocumentUploadInput;
|
|
135
|
-
self:
|
|
135
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
|
|
136
136
|
type: "START";
|
|
137
137
|
} | {
|
|
138
138
|
type: "CAPTURE";
|
|
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate1069.StateMachine<DocumentUploadConte
|
|
|
144
144
|
type: "RETRY";
|
|
145
145
|
} | {
|
|
146
146
|
type: "CLOSE";
|
|
147
|
-
}, Record<string,
|
|
147
|
+
}, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
|
|
148
148
|
type: "START";
|
|
149
149
|
} | {
|
|
150
150
|
type: "CAPTURE";
|
|
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate1069.StateMachine<DocumentUploadConte
|
|
|
156
156
|
type: "RETRY";
|
|
157
157
|
} | {
|
|
158
158
|
type: "CLOSE";
|
|
159
|
-
},
|
|
159
|
+
}, xstate0.AnyEventObject>;
|
|
160
160
|
}) => {
|
|
161
161
|
config: DocumentUploadConfig;
|
|
162
162
|
stream: undefined;
|
|
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate1069.StateMachine<DocumentUploadConte
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "CLOSE";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
|
|
230
230
|
type: "START";
|
|
231
231
|
} | {
|
|
232
232
|
type: "CAPTURE";
|
|
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate1069.StateMachine<DocumentUploadConte
|
|
|
238
238
|
type: "RETRY";
|
|
239
239
|
} | {
|
|
240
240
|
type: "CLOSE";
|
|
241
|
-
}, Record<string,
|
|
241
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
242
242
|
type: "START";
|
|
243
243
|
} | {
|
|
244
244
|
type: "CAPTURE";
|
|
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate1069.StateMachine<DocumentUploadConte
|
|
|
250
250
|
type: "RETRY";
|
|
251
251
|
} | {
|
|
252
252
|
type: "CLOSE";
|
|
253
|
-
},
|
|
253
|
+
}, xstate0.AnyEventObject>;
|
|
254
254
|
}) => {
|
|
255
255
|
imageBase64: string;
|
|
256
256
|
documentType: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./Manager-BmmucBrC.js";
|
|
2
2
|
import "./Actor-gwS4PQSi.js";
|
|
3
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-
|
|
3
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-CV19mBRm.js";
|
|
4
4
|
export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
package/dist/home.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { t as Manager } from "./Manager-BmmucBrC.js";
|
|
|
2
2
|
import "./camera-CXfeCsaz.js";
|
|
3
3
|
import "./types-BxjVn8Ry.js";
|
|
4
4
|
import { t as EmptyConfig } from "./types-BelKmTqU.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as xstate375 from "xstate";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/home/types.d.ts
|
|
8
8
|
type HomeConfig = EmptyConfig;
|
|
@@ -34,41 +34,41 @@ type HomeContext = {
|
|
|
34
34
|
type HomeInput = {
|
|
35
35
|
config: EmptyConfig;
|
|
36
36
|
};
|
|
37
|
-
declare const homeMachine:
|
|
37
|
+
declare const homeMachine: xstate375.StateMachine<HomeContext, {
|
|
38
38
|
type: "LOAD";
|
|
39
39
|
} | {
|
|
40
40
|
type: "COMPLETE";
|
|
41
41
|
} | {
|
|
42
42
|
type: "RESET";
|
|
43
|
-
}, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput,
|
|
43
|
+
}, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate375.NonReducibleUnknown, xstate375.EventObject, xstate375.MetaObject, {
|
|
44
44
|
readonly id: "home";
|
|
45
45
|
readonly initial: "idle";
|
|
46
46
|
readonly context: ({
|
|
47
47
|
input
|
|
48
48
|
}: {
|
|
49
49
|
spawn: {
|
|
50
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never):
|
|
51
|
-
<TLogic extends
|
|
50
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): xstate375.ActorRefFromLogic<never>;
|
|
51
|
+
<TLogic extends xstate375.AnyActorLogic>(src: TLogic, ...[options]: xstate375.ConditionalRequired<[options?: ({
|
|
52
52
|
id?: never;
|
|
53
53
|
systemId?: string;
|
|
54
|
-
input?:
|
|
54
|
+
input?: xstate375.InputFrom<TLogic> | undefined;
|
|
55
55
|
syncSnapshot?: boolean;
|
|
56
|
-
} & { [K in
|
|
56
|
+
} & { [K in xstate375.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate375.IsNotNever<xstate375.RequiredLogicInput<TLogic>>>): xstate375.ActorRefFromLogic<TLogic>;
|
|
57
57
|
};
|
|
58
58
|
input: HomeInput;
|
|
59
|
-
self:
|
|
59
|
+
self: xstate375.ActorRef<xstate375.MachineSnapshot<HomeContext, {
|
|
60
60
|
type: "LOAD";
|
|
61
61
|
} | {
|
|
62
62
|
type: "COMPLETE";
|
|
63
63
|
} | {
|
|
64
64
|
type: "RESET";
|
|
65
|
-
}, Record<string,
|
|
65
|
+
}, Record<string, xstate375.AnyActorRef | undefined>, xstate375.StateValue, string, unknown, any, any>, {
|
|
66
66
|
type: "LOAD";
|
|
67
67
|
} | {
|
|
68
68
|
type: "COMPLETE";
|
|
69
69
|
} | {
|
|
70
70
|
type: "RESET";
|
|
71
|
-
},
|
|
71
|
+
}, xstate375.AnyEventObject>;
|
|
72
72
|
}) => {
|
|
73
73
|
config: EmptyConfig;
|
|
74
74
|
};
|
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BmmucBrC.js";
|
|
2
2
|
import "./Actor-gwS4PQSi.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate302 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/id-ocr/types.d.ts
|
|
6
6
|
type IdOcrConfig = {
|
|
@@ -177,7 +177,7 @@ type IdOcrContext = {
|
|
|
177
177
|
type IdOcrInput = {
|
|
178
178
|
config: IdOcrConfig;
|
|
179
179
|
};
|
|
180
|
-
declare const idOcrStateMachine:
|
|
180
|
+
declare const idOcrStateMachine: xstate302.StateMachine<IdOcrContext, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "DATA_CHANGED";
|
|
@@ -189,68 +189,68 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
189
189
|
} | {
|
|
190
190
|
type: "CONTINUE";
|
|
191
191
|
} | {
|
|
192
|
-
type: "
|
|
192
|
+
type: "RETRY";
|
|
193
193
|
}, {
|
|
194
|
-
[x: string]:
|
|
194
|
+
[x: string]: xstate302.ActorRefFromLogic<xstate302.PromiseActorLogic<OcrData, {
|
|
195
195
|
isSecondId: boolean;
|
|
196
|
-
},
|
|
196
|
+
}, xstate302.EventObject>> | xstate302.ActorRefFromLogic<xstate302.PromiseActorLogic<UpdateOcrResponse, {
|
|
197
197
|
params: UpdateOcrDataParams;
|
|
198
198
|
isSecondId: boolean;
|
|
199
|
-
},
|
|
200
|
-
},
|
|
199
|
+
}, xstate302.EventObject>> | undefined;
|
|
200
|
+
}, xstate302.Values<{
|
|
201
201
|
getOcrData: {
|
|
202
202
|
src: "getOcrData";
|
|
203
|
-
logic:
|
|
203
|
+
logic: xstate302.PromiseActorLogic<OcrData, {
|
|
204
204
|
isSecondId: boolean;
|
|
205
|
-
},
|
|
205
|
+
}, xstate302.EventObject>;
|
|
206
206
|
id: string | undefined;
|
|
207
207
|
};
|
|
208
208
|
updateOcrData: {
|
|
209
209
|
src: "updateOcrData";
|
|
210
|
-
logic:
|
|
210
|
+
logic: xstate302.PromiseActorLogic<UpdateOcrResponse, {
|
|
211
211
|
params: UpdateOcrDataParams;
|
|
212
212
|
isSecondId: boolean;
|
|
213
|
-
},
|
|
213
|
+
}, xstate302.EventObject>;
|
|
214
214
|
id: string | undefined;
|
|
215
215
|
};
|
|
216
|
-
}>,
|
|
216
|
+
}>, xstate302.Values<{
|
|
217
217
|
setError: {
|
|
218
218
|
type: "setError";
|
|
219
|
-
params:
|
|
219
|
+
params: xstate302.NonReducibleUnknown;
|
|
220
220
|
};
|
|
221
221
|
setInitialData: {
|
|
222
222
|
type: "setInitialData";
|
|
223
|
-
params:
|
|
223
|
+
params: xstate302.NonReducibleUnknown;
|
|
224
224
|
};
|
|
225
225
|
updateField: {
|
|
226
226
|
type: "updateField";
|
|
227
|
-
params:
|
|
227
|
+
params: xstate302.NonReducibleUnknown;
|
|
228
228
|
};
|
|
229
229
|
clearFieldValidationError: {
|
|
230
230
|
type: "clearFieldValidationError";
|
|
231
|
-
params:
|
|
231
|
+
params: xstate302.NonReducibleUnknown;
|
|
232
232
|
};
|
|
233
233
|
setOcrValidationErrors: {
|
|
234
234
|
type: "setOcrValidationErrors";
|
|
235
|
-
params:
|
|
235
|
+
params: xstate302.NonReducibleUnknown;
|
|
236
236
|
};
|
|
237
237
|
validateFormField: {
|
|
238
238
|
type: "validateFormField";
|
|
239
|
-
params:
|
|
239
|
+
params: xstate302.NonReducibleUnknown;
|
|
240
240
|
};
|
|
241
241
|
beginSecondIdOcrPhase: {
|
|
242
242
|
type: "beginSecondIdOcrPhase";
|
|
243
|
-
params:
|
|
243
|
+
params: xstate302.NonReducibleUnknown;
|
|
244
244
|
};
|
|
245
245
|
resetForRetry: {
|
|
246
246
|
type: "resetForRetry";
|
|
247
|
-
params:
|
|
247
|
+
params: xstate302.NonReducibleUnknown;
|
|
248
248
|
};
|
|
249
249
|
computeValidationResult: {
|
|
250
250
|
type: "computeValidationResult";
|
|
251
|
-
params:
|
|
251
|
+
params: xstate302.NonReducibleUnknown;
|
|
252
252
|
};
|
|
253
|
-
}>,
|
|
253
|
+
}>, xstate302.Values<{
|
|
254
254
|
isOcrEditable: {
|
|
255
255
|
type: "isOcrEditable";
|
|
256
256
|
params: unknown;
|
|
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
271
271
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
272
272
|
params: unknown;
|
|
273
273
|
};
|
|
274
|
-
}>, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput,
|
|
274
|
+
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate302.NonReducibleUnknown, xstate302.EventObject, xstate302.MetaObject, {
|
|
275
275
|
readonly id: "idOcr";
|
|
276
276
|
readonly initial: "idle";
|
|
277
277
|
readonly context: ({
|
|
@@ -280,70 +280,70 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
280
280
|
spawn: {
|
|
281
281
|
<TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
|
|
282
282
|
src: "getOcrData";
|
|
283
|
-
logic:
|
|
283
|
+
logic: xstate302.PromiseActorLogic<OcrData, {
|
|
284
284
|
isSecondId: boolean;
|
|
285
|
-
},
|
|
285
|
+
}, xstate302.EventObject>;
|
|
286
286
|
id: string | undefined;
|
|
287
287
|
} extends infer T ? T extends {
|
|
288
288
|
src: "getOcrData";
|
|
289
|
-
logic:
|
|
289
|
+
logic: xstate302.PromiseActorLogic<OcrData, {
|
|
290
290
|
isSecondId: boolean;
|
|
291
|
-
},
|
|
291
|
+
}, xstate302.EventObject>;
|
|
292
292
|
id: string | undefined;
|
|
293
293
|
} ? T extends {
|
|
294
294
|
src: TSrc;
|
|
295
|
-
} ?
|
|
295
|
+
} ? xstate302.ConditionalRequired<[options?: ({
|
|
296
296
|
id?: T["id"] | undefined;
|
|
297
297
|
systemId?: string;
|
|
298
|
-
input?:
|
|
298
|
+
input?: xstate302.InputFrom<T["logic"]> | undefined;
|
|
299
299
|
syncSnapshot?: boolean;
|
|
300
|
-
} & { [K in
|
|
300
|
+
} & { [K in xstate302.RequiredActorOptions<T>]: unknown }) | undefined], xstate302.IsNotNever<xstate302.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
301
301
|
src: "updateOcrData";
|
|
302
|
-
logic:
|
|
302
|
+
logic: xstate302.PromiseActorLogic<UpdateOcrResponse, {
|
|
303
303
|
params: UpdateOcrDataParams;
|
|
304
304
|
isSecondId: boolean;
|
|
305
|
-
},
|
|
305
|
+
}, xstate302.EventObject>;
|
|
306
306
|
id: string | undefined;
|
|
307
307
|
} extends infer T_1 ? T_1 extends {
|
|
308
308
|
src: "updateOcrData";
|
|
309
|
-
logic:
|
|
309
|
+
logic: xstate302.PromiseActorLogic<UpdateOcrResponse, {
|
|
310
310
|
params: UpdateOcrDataParams;
|
|
311
311
|
isSecondId: boolean;
|
|
312
|
-
},
|
|
312
|
+
}, xstate302.EventObject>;
|
|
313
313
|
id: string | undefined;
|
|
314
314
|
} ? T_1 extends {
|
|
315
315
|
src: TSrc;
|
|
316
|
-
} ?
|
|
316
|
+
} ? xstate302.ConditionalRequired<[options?: ({
|
|
317
317
|
id?: T_1["id"] | undefined;
|
|
318
318
|
systemId?: string;
|
|
319
|
-
input?:
|
|
319
|
+
input?: xstate302.InputFrom<T_1["logic"]> | undefined;
|
|
320
320
|
syncSnapshot?: boolean;
|
|
321
|
-
} & { [K_1 in
|
|
321
|
+
} & { [K_1 in xstate302.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate302.IsNotNever<xstate302.RequiredActorOptions<T_1>>> : never : never : never)): xstate302.ActorRefFromLogic<xstate302.GetConcreteByKey<xstate302.Values<{
|
|
322
322
|
getOcrData: {
|
|
323
323
|
src: "getOcrData";
|
|
324
|
-
logic:
|
|
324
|
+
logic: xstate302.PromiseActorLogic<OcrData, {
|
|
325
325
|
isSecondId: boolean;
|
|
326
|
-
},
|
|
326
|
+
}, xstate302.EventObject>;
|
|
327
327
|
id: string | undefined;
|
|
328
328
|
};
|
|
329
329
|
updateOcrData: {
|
|
330
330
|
src: "updateOcrData";
|
|
331
|
-
logic:
|
|
331
|
+
logic: xstate302.PromiseActorLogic<UpdateOcrResponse, {
|
|
332
332
|
params: UpdateOcrDataParams;
|
|
333
333
|
isSecondId: boolean;
|
|
334
|
-
},
|
|
334
|
+
}, xstate302.EventObject>;
|
|
335
335
|
id: string | undefined;
|
|
336
336
|
};
|
|
337
337
|
}>, "src", TSrc>["logic"]>;
|
|
338
|
-
<TLogic extends
|
|
338
|
+
<TLogic extends xstate302.AnyActorLogic>(src: TLogic, ...[options]: xstate302.ConditionalRequired<[options?: ({
|
|
339
339
|
id?: never;
|
|
340
340
|
systemId?: string;
|
|
341
|
-
input?:
|
|
341
|
+
input?: xstate302.InputFrom<TLogic> | undefined;
|
|
342
342
|
syncSnapshot?: boolean;
|
|
343
|
-
} & { [K in
|
|
343
|
+
} & { [K in xstate302.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate302.IsNotNever<xstate302.RequiredLogicInput<TLogic>>>): xstate302.ActorRefFromLogic<TLogic>;
|
|
344
344
|
};
|
|
345
345
|
input: IdOcrInput;
|
|
346
|
-
self:
|
|
346
|
+
self: xstate302.ActorRef<xstate302.MachineSnapshot<IdOcrContext, {
|
|
347
347
|
type: "LOAD";
|
|
348
348
|
} | {
|
|
349
349
|
type: "DATA_CHANGED";
|
|
@@ -355,8 +355,8 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
355
355
|
} | {
|
|
356
356
|
type: "CONTINUE";
|
|
357
357
|
} | {
|
|
358
|
-
type: "
|
|
359
|
-
}, Record<string,
|
|
358
|
+
type: "RETRY";
|
|
359
|
+
}, Record<string, xstate302.AnyActorRef | undefined>, xstate302.StateValue, string, unknown, any, any>, {
|
|
360
360
|
type: "LOAD";
|
|
361
361
|
} | {
|
|
362
362
|
type: "DATA_CHANGED";
|
|
@@ -368,8 +368,8 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
368
368
|
} | {
|
|
369
369
|
type: "CONTINUE";
|
|
370
370
|
} | {
|
|
371
|
-
type: "
|
|
372
|
-
},
|
|
371
|
+
type: "RETRY";
|
|
372
|
+
}, xstate302.AnyEventObject>;
|
|
373
373
|
}) => {
|
|
374
374
|
config: IdOcrConfig;
|
|
375
375
|
formData: UpdateOcrDataParams;
|
|
@@ -403,9 +403,9 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
403
403
|
} | {
|
|
404
404
|
type: "CONTINUE";
|
|
405
405
|
} | {
|
|
406
|
-
type: "
|
|
406
|
+
type: "RETRY";
|
|
407
407
|
};
|
|
408
|
-
self:
|
|
408
|
+
self: xstate302.ActorRef<xstate302.MachineSnapshot<IdOcrContext, {
|
|
409
409
|
type: "LOAD";
|
|
410
410
|
} | {
|
|
411
411
|
type: "DATA_CHANGED";
|
|
@@ -417,8 +417,8 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
417
417
|
} | {
|
|
418
418
|
type: "CONTINUE";
|
|
419
419
|
} | {
|
|
420
|
-
type: "
|
|
421
|
-
}, Record<string,
|
|
420
|
+
type: "RETRY";
|
|
421
|
+
}, Record<string, xstate302.AnyActorRef>, xstate302.StateValue, string, unknown, any, any>, {
|
|
422
422
|
type: "LOAD";
|
|
423
423
|
} | {
|
|
424
424
|
type: "DATA_CHANGED";
|
|
@@ -430,8 +430,8 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
430
430
|
} | {
|
|
431
431
|
type: "CONTINUE";
|
|
432
432
|
} | {
|
|
433
|
-
type: "
|
|
434
|
-
},
|
|
433
|
+
type: "RETRY";
|
|
434
|
+
}, xstate302.AnyEventObject>;
|
|
435
435
|
}) => {
|
|
436
436
|
isSecondId: boolean;
|
|
437
437
|
};
|
|
@@ -456,7 +456,7 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
456
456
|
readonly guard: "shouldLoadSecondOcrAfterFirst";
|
|
457
457
|
readonly actions: "beginSecondIdOcrPhase";
|
|
458
458
|
}, {
|
|
459
|
-
readonly target: "
|
|
459
|
+
readonly target: "success";
|
|
460
460
|
}];
|
|
461
461
|
};
|
|
462
462
|
};
|
|
@@ -508,9 +508,9 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
508
508
|
} | {
|
|
509
509
|
type: "CONTINUE";
|
|
510
510
|
} | {
|
|
511
|
-
type: "
|
|
511
|
+
type: "RETRY";
|
|
512
512
|
};
|
|
513
|
-
self:
|
|
513
|
+
self: xstate302.ActorRef<xstate302.MachineSnapshot<IdOcrContext, {
|
|
514
514
|
type: "LOAD";
|
|
515
515
|
} | {
|
|
516
516
|
type: "DATA_CHANGED";
|
|
@@ -522,8 +522,8 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
522
522
|
} | {
|
|
523
523
|
type: "CONTINUE";
|
|
524
524
|
} | {
|
|
525
|
-
type: "
|
|
526
|
-
}, Record<string,
|
|
525
|
+
type: "RETRY";
|
|
526
|
+
}, Record<string, xstate302.AnyActorRef>, xstate302.StateValue, string, unknown, any, any>, {
|
|
527
527
|
type: "LOAD";
|
|
528
528
|
} | {
|
|
529
529
|
type: "DATA_CHANGED";
|
|
@@ -535,8 +535,8 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
535
535
|
} | {
|
|
536
536
|
type: "CONTINUE";
|
|
537
537
|
} | {
|
|
538
|
-
type: "
|
|
539
|
-
},
|
|
538
|
+
type: "RETRY";
|
|
539
|
+
}, xstate302.AnyEventObject>;
|
|
540
540
|
}) => {
|
|
541
541
|
params: UpdateOcrDataParams;
|
|
542
542
|
isSecondId: boolean;
|
|
@@ -546,7 +546,7 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
546
546
|
readonly guard: "shouldLoadSecondOcrAfterFirst";
|
|
547
547
|
readonly actions: "beginSecondIdOcrPhase";
|
|
548
548
|
}, {
|
|
549
|
-
readonly target: "
|
|
549
|
+
readonly target: "success";
|
|
550
550
|
}];
|
|
551
551
|
readonly onError: {
|
|
552
552
|
readonly target: "error";
|
|
@@ -554,17 +554,22 @@ declare const idOcrStateMachine: xstate979.StateMachine<IdOcrContext, {
|
|
|
554
554
|
};
|
|
555
555
|
};
|
|
556
556
|
};
|
|
557
|
-
readonly finished: {
|
|
558
|
-
readonly type: "final";
|
|
559
|
-
};
|
|
560
557
|
readonly error: {
|
|
561
558
|
readonly on: {
|
|
562
|
-
readonly
|
|
563
|
-
readonly target: "
|
|
559
|
+
readonly RETRY: {
|
|
560
|
+
readonly target: "loading";
|
|
564
561
|
readonly actions: "resetForRetry";
|
|
565
562
|
};
|
|
566
563
|
};
|
|
567
564
|
};
|
|
565
|
+
readonly success: {
|
|
566
|
+
readonly after: {
|
|
567
|
+
readonly 3000: "finished";
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
readonly finished: {
|
|
571
|
+
readonly type: "final";
|
|
572
|
+
};
|
|
568
573
|
};
|
|
569
574
|
}>;
|
|
570
575
|
//#endregion
|
|
@@ -590,7 +595,7 @@ type IdOcrReadonlyState = {
|
|
|
590
595
|
type IdOcrInputtingState = {
|
|
591
596
|
status: 'inputting';
|
|
592
597
|
formData: UpdateOcrDataParams;
|
|
593
|
-
|
|
598
|
+
editedFields: UpdateOcrDataParams;
|
|
594
599
|
editableOcr: boolean;
|
|
595
600
|
ocrDocument: IdOcrOcrDocument;
|
|
596
601
|
validationErrors?: Partial<Record<keyof UpdateOcrDataParams, string>>;
|
|
@@ -606,13 +611,16 @@ type IdOcrErrorState = {
|
|
|
606
611
|
status: 'error';
|
|
607
612
|
error: string;
|
|
608
613
|
};
|
|
609
|
-
type
|
|
614
|
+
type IdOcrSuccessState = {
|
|
615
|
+
status: 'success';
|
|
616
|
+
};
|
|
617
|
+
type IdOcrState = IdOcrIdleState | IdOcrLoadingState | IdOcrReadonlyState | IdOcrInputtingState | IdOcrSubmittingState | IdOcrFinishedState | IdOcrErrorState | IdOcrSuccessState;
|
|
610
618
|
declare function createIdOcrManager(options: CreateIdOcrActorOptions): Manager<IdOcrState> & {
|
|
611
619
|
load(): void;
|
|
612
620
|
setField(field: keyof UpdateOcrDataParams, value: string): void;
|
|
613
621
|
validateField(field: keyof UpdateOcrDataParams): void;
|
|
614
622
|
continue(): void;
|
|
615
|
-
|
|
623
|
+
retry(): void;
|
|
616
624
|
};
|
|
617
625
|
type IdOcrManager = ReturnType<typeof createIdOcrManager>;
|
|
618
626
|
//#endregion
|