@incodetech/core 0.0.0-dev-20260416-e8e67a4 → 0.0.0-dev-20260416-3692bda
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/authentication.d.ts +3 -3
- package/dist/{authenticationManager-DxWVcbnl.d.ts → authenticationManager-C75RqUmN.d.ts} +1 -1
- package/dist/consent.d.ts +50 -50
- package/dist/curp-validation.d.ts +1 -1
- package/dist/document-capture.d.ts +70 -70
- package/dist/document-upload.d.ts +46 -46
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybStateMachine-BfBs85Uj.esm.js → ekybStateMachine-BdztAoD6.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-CV5lfQZg.d.ts → faceCaptureManagerFactory-XQOqroTM.d.ts} +1 -1
- package/dist/flow.d.ts +29 -4
- package/dist/flow.esm.js +234 -91
- package/dist/{flowServices-BjihIhLr.esm.js → flowServices-ibDApkcC.esm.js} +1 -9
- package/dist/home.d.ts +11 -11
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +2 -2
- package/dist/{idCaptureManager-Cxuy_f9Q.esm.js → idCaptureManager-Bvv0ssj8.esm.js} +38 -27
- package/dist/{idCaptureManager-BF-9O4pN.d.ts → idCaptureManager-eoc0PvFh.d.ts} +1 -1
- package/dist/{idCaptureStateMachine-DndyW7Rc.esm.js → idCaptureStateMachine-hELTmJQc.esm.js} +3 -1
- package/dist/identity-reuse.d.ts +46 -46
- package/dist/{index-BfG6VHnt.d.ts → index-XfOqcbrI.d.ts} +119 -119
- package/dist/mandatory-consent.d.ts +51 -51
- package/dist/qe-signature.d.ts +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/{selfieManager-J9vh9MZ6.d.ts → selfieManager-Bsag2fr3.d.ts} +1 -1
- package/dist/{types-Bk2AoUFA.d.ts → types-x6tue2ld.d.ts} +1 -0
- package/dist/workflow.d.ts +82 -82
- package/dist/workflow.esm.js +3 -3
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@ import { t as Manager } from "./Manager-C1r-74H0.js";
|
|
|
2
2
|
import "./Actor-Cqaw-2DF.js";
|
|
3
3
|
import "./camera-C1Lz6NFz.js";
|
|
4
4
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-DGwsRYfm.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: xstate72.StateMachine<DocumentUploadContext
|
|
|
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: xstate72.NonReducibleUnknown;
|
|
45
|
-
};
|
|
46
|
-
clearError: {
|
|
47
|
-
type: "clearError";
|
|
48
|
-
params: xstate72.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: xstate72.StateMachine<DocumentUploadContext
|
|
|
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: xstate72.StateMachine<DocumentUploadContext
|
|
|
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: xstate72.StateMachine<DocumentUploadContext
|
|
|
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: xstate72.StateMachine<DocumentUploadContext
|
|
|
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: xstate72.StateMachine<DocumentUploadContext
|
|
|
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: xstate72.StateMachine<DocumentUploadContext
|
|
|
250
250
|
type: "RETRY";
|
|
251
251
|
} | {
|
|
252
252
|
type: "CLOSE";
|
|
253
|
-
},
|
|
253
|
+
}, xstate0.AnyEventObject>;
|
|
254
254
|
}) => {
|
|
255
255
|
imageBase64: string;
|
|
256
256
|
documentType: string;
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -4,9 +4,9 @@ import "./session-4kX3TYAC.esm.js";
|
|
|
4
4
|
import "./BrowserEnvironmentProvider-D7IR7V-D.esm.js";
|
|
5
5
|
import "./browserSimulation-UTYyQOiB.esm.js";
|
|
6
6
|
import { a as createActor, o as createManager } from "./xstate.esm-BlgyVBVv.esm.js";
|
|
7
|
-
import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as computeDisplayErrors, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-
|
|
7
|
+
import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as computeDisplayErrors, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-BdztAoD6.esm.js";
|
|
8
8
|
import "./addressSearch-C7jdpkpZ.esm.js";
|
|
9
|
-
import "./flowServices-
|
|
9
|
+
import "./flowServices-ibDApkcC.esm.js";
|
|
10
10
|
import "./BrowserTimerProvider-DDCqhG2g.esm.js";
|
|
11
11
|
|
|
12
12
|
//#region src/modules/ekyb/ekybActor.ts
|
|
@@ -2,7 +2,7 @@ import { t as api } from "./api-BhYI_G8R.esm.js";
|
|
|
2
2
|
import { _ as endpoints } from "./events-GaZE-J-6.esm.js";
|
|
3
3
|
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-BlgyVBVv.esm.js";
|
|
4
4
|
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-C7jdpkpZ.esm.js";
|
|
5
|
-
import { t as getFlow } from "./flowServices-
|
|
5
|
+
import { t as getFlow } from "./flowServices-ibDApkcC.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
8
8
|
const UBO_INPUT_LIMIT = 8;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./Manager-C1r-74H0.js";
|
|
2
2
|
import "./Actor-Cqaw-2DF.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-XfOqcbrI.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/extensibility.d.ts
CHANGED
|
@@ -2,16 +2,16 @@ import "./warmup-BoNCXpou.js";
|
|
|
2
2
|
import "./Manager-C1r-74H0.js";
|
|
3
3
|
import { n as createActor } from "./Actor-Cqaw-2DF.js";
|
|
4
4
|
import { r as fromPromise } from "./StateMachine-sxIjYRWS.js";
|
|
5
|
-
import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-
|
|
5
|
+
import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-XQOqroTM.js";
|
|
6
6
|
import "./camera-C1Lz6NFz.js";
|
|
7
7
|
import "./types-DGwsRYfm.js";
|
|
8
|
-
import "./types-
|
|
8
|
+
import "./types-x6tue2ld.js";
|
|
9
9
|
import { a as IWasmUtilCapability, o as VirtualCameraCheckOutput, s as WasmUtilConfig, u as IStorageCapability } from "./deepsightService-D8Kbc-41.js";
|
|
10
10
|
import "./types-B-JXmW0H.js";
|
|
11
|
-
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-
|
|
12
|
-
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-
|
|
11
|
+
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-Bsag2fr3.js";
|
|
12
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-C75RqUmN.js";
|
|
13
13
|
import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-DXdv0T1X.js";
|
|
14
|
-
import { C as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-
|
|
14
|
+
import { C as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-eoc0PvFh.js";
|
|
15
15
|
import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-CZkwAnZA.js";
|
|
16
16
|
|
|
17
17
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
@@ -27,8 +27,8 @@ import "./emailStateMachine-s7890k9s.esm.js";
|
|
|
27
27
|
import { n as createEmailManagerFromActor } from "./emailManager-rQAZJqi6.esm.js";
|
|
28
28
|
import "./selfieStateMachine-BkYFIb_x.esm.js";
|
|
29
29
|
import { n as createSelfieManagerFromActor } from "./selfieManager-Cvixzq_O.esm.js";
|
|
30
|
-
import "./idCaptureStateMachine-
|
|
31
|
-
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
30
|
+
import "./idCaptureStateMachine-hELTmJQc.esm.js";
|
|
31
|
+
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-Bvv0ssj8.esm.js";
|
|
32
32
|
import "./phoneStateMachine-B2GLKrTW.esm.js";
|
|
33
33
|
import { n as createPhoneManagerFromActor } from "./phoneManager-CPVBmE6I.esm.js";
|
|
34
34
|
|
package/dist/{faceCaptureManagerFactory-CV5lfQZg.d.ts → faceCaptureManagerFactory-XQOqroTM.d.ts}
RENAMED
|
@@ -3,7 +3,7 @@ import { t as Manager } from "./Manager-C1r-74H0.js";
|
|
|
3
3
|
import { t as ActorRefFrom } from "./Actor-Cqaw-2DF.js";
|
|
4
4
|
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-sxIjYRWS.js";
|
|
5
5
|
import { t as CameraStream } from "./camera-C1Lz6NFz.js";
|
|
6
|
-
import { i as FlowModuleConfig, n as Flow } from "./types-
|
|
6
|
+
import { i as FlowModuleConfig, n as Flow } from "./types-x6tue2ld.js";
|
|
7
7
|
import { a as IWasmUtilCapability, c as IMLProviderCapability, d as IRecordingCapability, i as IncodeCanvas, l as MLProviderConfig, r as StreamCanvasCapture, t as DeepsightService, u as IStorageCapability } from "./deepsightService-D8Kbc-41.js";
|
|
8
8
|
import { n as PermissionStatus, t as PermissionResult } from "./types-B-JXmW0H.js";
|
|
9
9
|
|
package/dist/flow.d.ts
CHANGED
|
@@ -3,13 +3,12 @@ import { t as Manager } from "./Manager-C1r-74H0.js";
|
|
|
3
3
|
import { t as AnyStateMachine } from "./StateMachine-sxIjYRWS.js";
|
|
4
4
|
import "./camera-C1Lz6NFz.js";
|
|
5
5
|
import "./types-DGwsRYfm.js";
|
|
6
|
-
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-
|
|
6
|
+
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-x6tue2ld.js";
|
|
7
7
|
import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-D1DGDmXn.js";
|
|
8
8
|
import { t as ModuleRegistry } from "./types-DH_kbvQH.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/flow/flowUtils.d.ts
|
|
11
11
|
type NormalizeFlowModulesOptions = {
|
|
12
|
-
enableHome?: boolean;
|
|
13
12
|
isDesktop?: boolean;
|
|
14
13
|
authHint?: string;
|
|
15
14
|
lang?: string;
|
|
@@ -44,7 +43,6 @@ declare function normalizeFlowModules(flow: FlowForNormalization, options?: Norm
|
|
|
44
43
|
//#endregion
|
|
45
44
|
//#region src/modules/flow/flowServices.d.ts
|
|
46
45
|
type GetFlowOptions = {
|
|
47
|
-
enableHome?: boolean;
|
|
48
46
|
isDesktop?: boolean;
|
|
49
47
|
authHint?: string;
|
|
50
48
|
lang?: string;
|
|
@@ -200,6 +198,7 @@ type OrchestratedFlowInput = {
|
|
|
200
198
|
modules?: ModuleRegistry;
|
|
201
199
|
lazyModules?: LazyModuleRegistry;
|
|
202
200
|
getFinishStatus?: GetFinishStatusFn;
|
|
201
|
+
enableHome?: boolean;
|
|
203
202
|
};
|
|
204
203
|
type OrchestratedFlowEvent = {
|
|
205
204
|
type: 'LOAD';
|
|
@@ -211,6 +210,8 @@ type OrchestratedFlowEvent = {
|
|
|
211
210
|
type: 'MODULE_COMPLETE';
|
|
212
211
|
} | {
|
|
213
212
|
type: 'COMPLETE_FLOW';
|
|
213
|
+
} | {
|
|
214
|
+
type: 'HOME_CONTINUE';
|
|
214
215
|
} | {
|
|
215
216
|
type: '*';
|
|
216
217
|
[key: string]: unknown;
|
|
@@ -220,11 +221,24 @@ type OrchestratedFlowEvent = {
|
|
|
220
221
|
};
|
|
221
222
|
//#endregion
|
|
222
223
|
//#region src/modules/flow/orchestratedFlowManager.d.ts
|
|
224
|
+
type OrchestratedFlowHomeScreen = {
|
|
225
|
+
visible: boolean;
|
|
226
|
+
isContinueLoading: boolean;
|
|
227
|
+
};
|
|
228
|
+
type OrchestratedFlowPresentation = {
|
|
229
|
+
isAwaitingReady: boolean;
|
|
230
|
+
lazyModuleKey: string | undefined;
|
|
231
|
+
shouldPrefetchHome: boolean;
|
|
232
|
+
};
|
|
223
233
|
type OrchestratedFlowIdleState = {
|
|
224
234
|
status: 'idle';
|
|
235
|
+
homeScreen: OrchestratedFlowHomeScreen;
|
|
236
|
+
presentation: OrchestratedFlowPresentation;
|
|
225
237
|
};
|
|
226
238
|
type OrchestratedFlowLoadingState = {
|
|
227
239
|
status: 'loading';
|
|
240
|
+
homeScreen: OrchestratedFlowHomeScreen;
|
|
241
|
+
presentation: OrchestratedFlowPresentation;
|
|
228
242
|
};
|
|
229
243
|
type OrchestratedFlowReadyState = {
|
|
230
244
|
status: 'ready';
|
|
@@ -234,6 +248,8 @@ type OrchestratedFlowReadyState = {
|
|
|
234
248
|
currentStep: string | undefined;
|
|
235
249
|
config: unknown;
|
|
236
250
|
moduleState: unknown;
|
|
251
|
+
homeScreen: OrchestratedFlowHomeScreen;
|
|
252
|
+
presentation: OrchestratedFlowPresentation;
|
|
237
253
|
};
|
|
238
254
|
type OrchestratedFlowFinishedState = {
|
|
239
255
|
status: 'finished';
|
|
@@ -243,10 +259,14 @@ type OrchestratedFlowFinishedState = {
|
|
|
243
259
|
action: 'approved' | 'rejected' | 'none';
|
|
244
260
|
scoreStatus: 'OK' | 'WARN' | 'MANUAL_OK' | 'FAIL' | 'UNKNOWN' | 'MANUAL_FAIL';
|
|
245
261
|
};
|
|
262
|
+
homeScreen: OrchestratedFlowHomeScreen;
|
|
263
|
+
presentation: OrchestratedFlowPresentation;
|
|
246
264
|
};
|
|
247
265
|
type OrchestratedFlowErrorState = {
|
|
248
266
|
status: 'error';
|
|
249
267
|
error: string;
|
|
268
|
+
homeScreen: OrchestratedFlowHomeScreen;
|
|
269
|
+
presentation: OrchestratedFlowPresentation;
|
|
250
270
|
};
|
|
251
271
|
type OrchestratedFlowState = OrchestratedFlowIdleState | OrchestratedFlowLoadingState | OrchestratedFlowReadyState | OrchestratedFlowFinishedState | OrchestratedFlowErrorState;
|
|
252
272
|
type CreateOrchestratedFlowActorOptions = {
|
|
@@ -254,6 +274,7 @@ type CreateOrchestratedFlowActorOptions = {
|
|
|
254
274
|
modules?: ModuleRegistry;
|
|
255
275
|
lazyModules?: LazyModuleRegistry;
|
|
256
276
|
getFinishStatus?: OrchestratedFlowInput['getFinishStatus'];
|
|
277
|
+
enableHome?: boolean;
|
|
257
278
|
};
|
|
258
279
|
declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowActorOptions): Manager<OrchestratedFlowState> & {
|
|
259
280
|
/**
|
|
@@ -302,6 +323,10 @@ declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowAc
|
|
|
302
323
|
readonly canNext: boolean;
|
|
303
324
|
getModuleConfig: <T$1 = unknown>(moduleKey: string) => T$1 | undefined;
|
|
304
325
|
isModuleEnabled: (moduleKey: string) => boolean;
|
|
326
|
+
isAwaitingOrchestratorReady(): boolean;
|
|
327
|
+
getLazyModuleKey(): string | undefined;
|
|
328
|
+
shouldRenderHomeScreen(): boolean;
|
|
329
|
+
continueFromHome(): Promise<void>;
|
|
305
330
|
};
|
|
306
331
|
//#endregion
|
|
307
|
-
export { type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowReadyState, type FlowState, type LazyModule, type LazyModuleRegistry, type ModuleLoader, type ModuleLoaderRegistry, type ModuleRegistry, type OrchestratedFlowFinishedState, type OrchestratedFlowInput, type OrchestratedFlowReadyState, type OrchestratedFlowState, createFlowManager, createModuleLoader, createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines, normalizeFlowModules };
|
|
332
|
+
export { type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowReadyState, type FlowState, type LazyModule, type LazyModuleRegistry, type ModuleLoader, type ModuleLoaderRegistry, type ModuleRegistry, type OrchestratedFlowFinishedState, type OrchestratedFlowHomeScreen, type OrchestratedFlowInput, type OrchestratedFlowPresentation, type OrchestratedFlowReadyState, type OrchestratedFlowState, createFlowManager, createModuleLoader, createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines, normalizeFlowModules };
|