@incodetech/core 0.0.0-dev-20260713-0d1fc59b → 0.0.0-dev-20260713-506b2caa
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/{FaceDetectionProvider-C-TTFxTn.d.ts → FaceDetectionProvider-D-SuPeaR.d.ts} +1 -1
- package/dist/{IWasmUtilCapability-BWOlxduF.d.ts → IWasmUtilCapability-CCTvyShE.d.ts} +6 -1
- package/dist/{WasmUtilProvider-ADG54T6M.esm.js → WasmUtilProvider-BNQ2PBjG.esm.js} +21 -1
- package/dist/ae-signature.d.ts +1 -1
- package/dist/authentication.d.ts +6 -6
- package/dist/authentication.esm.js +9 -9
- package/dist/{authenticationManager-DW7Lju5h.esm.js → authenticationManager-BxjPAQjy.esm.js} +3 -3
- package/dist/{authenticationManager-Bk8ZnCwm.d.ts → authenticationManager-D_hu_JQz.d.ts} +1 -1
- package/dist/{authenticationStateMachine-Dn5nGX_f.esm.js → authenticationStateMachine-1dW-EM34.esm.js} +2 -2
- package/dist/camera.esm.js +2 -2
- package/dist/certificate-issuance.d.ts +28 -28
- package/dist/{clientLifecycle-Ct7h9uxx.esm.js → clientLifecycle-CCJMDjFe.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-nMA02HAK.d.ts → consentManager-BBLuAEtO.d.ts} +47 -47
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-B7QXocv1.d.ts → cpfOcrManager-DiuFeIlv.d.ts} +17 -17
- package/dist/{deepsightLoader-DNqG0Iux.esm.js → deepsightLoader-Br33KOpX.esm.js} +2 -2
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +5 -5
- package/dist/document-upload.d.ts +40 -40
- package/dist/{documentCaptureManager-81Q9AwsW.esm.js → documentCaptureManager-BBsQlZXw.esm.js} +1 -1
- package/dist/{documentCaptureManager-Cbmisldc.d.ts → documentCaptureManager-Cg45h7_W.d.ts} +224 -224
- package/dist/{documentCaptureStateMachine-D1s7n4_f.esm.js → documentCaptureStateMachine-xxT-yxJP.esm.js} +2 -2
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-Ch6KHRG4.esm.js → ekybStateMachine-BiPcOX5p.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +17 -16
- package/dist/extensibility.esm.js +17 -17
- package/dist/face-match.d.ts +1 -1
- package/dist/{faceCaptureManagerFactory-D4uYpHLN.esm.js → faceCaptureManagerFactory-7LOCpq26.esm.js} +2 -2
- package/dist/{faceCaptureManagerFactory-CXoJPazr.d.ts → faceCaptureManagerFactory-CN95eDaX.d.ts} +2 -2
- package/dist/{faceCaptureSetup-CcOkgTrp.esm.js → faceCaptureSetup-CcPBTCx_.esm.js} +4 -4
- package/dist/{faceMatchManager-CeCkxNYz.d.ts → faceMatchManager-CQiSAocW.d.ts} +2 -2
- package/dist/flow.d.ts +3 -3
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-_htCDjJ8.esm.js → flowServices-xoG2v-Zg.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-verification.d.ts +1 -1
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +9 -9
- package/dist/{idCaptureDefaults-CHbl3wiH.esm.js → idCaptureDefaults-DK4ykzxh.esm.js} +1 -1
- package/dist/{idCaptureManager-CGZOssGT.d.ts → idCaptureManager-C5Ko6NhX.d.ts} +1 -1
- package/dist/{idCaptureManager-BNMKY91_.esm.js → idCaptureManager-CvcIYCbR.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-Cvvg4Dr0.esm.js → idCaptureStateMachine-DWRtZU8U.esm.js} +7 -7
- package/dist/{idOcrManager-BirZFDij.d.ts → idOcrManager-BztGAfB0.d.ts} +52 -52
- package/dist/{idVerificationManager-DBSwipOg.d.ts → idVerificationManager-DDy-difD.d.ts} +25 -25
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-CAIW177J.d.ts → identityReuseManager-CU0zYV7u.d.ts} +31 -31
- package/dist/{index-Dawvpdu2.d.ts → index-U-zHjUn0.d.ts} +150 -150
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +4 -4
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-CJsSl9l9.d.ts → mandatoryConsentManager-DzZATI2M.d.ts} +50 -50
- package/dist/{onDeviceFaceResults-DkMpJ8sE.esm.js → onDeviceFaceResults-DOX32waz.esm.js} +2 -2
- package/dist/{permissionGuards-CaZl9t7f.esm.js → permissionGuards-CayfS8OY.esm.js} +1 -1
- package/dist/{permissionServices-D9lmzFYc.esm.js → permissionServices-B7lD6fiG.esm.js} +1 -1
- package/dist/personhood.d.ts +4 -4
- package/dist/personhood.esm.js +5 -5
- package/dist/qe-signature.d.ts +1 -1
- package/dist/{recordingService-DGmQlH2l.esm.js → recordingService-COOmW1Y3.esm.js} +1 -1
- package/dist/selfie.d.ts +6 -6
- package/dist/selfie.esm.js +9 -9
- package/dist/{selfieManager-BnMx5JXl.esm.js → selfieManager-CSc7GgWc.esm.js} +3 -3
- package/dist/{selfieManager-CBDdfgJq.d.ts → selfieManager-xfzu2VxN.d.ts} +1 -1
- package/dist/{selfieStateMachine-D9mpzUrN.esm.js → selfieStateMachine-BpCqqPy0.esm.js} +2 -2
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-pskmEs77.esm.js → sessionInitializer-Co7APszQ.esm.js} +1 -1
- package/dist/{setup-CQx3AATK.esm.js → setup-C-KKsxNp.esm.js} +9 -5
- package/dist/{setup-B57aFDOi.d.ts → setup-D1e0UBPP.d.ts} +7 -1
- package/dist/trust-graph.d.ts +2 -2
- package/dist/{types-B-wZmkKX.d.ts → types-DjUVRt1t.d.ts} +1 -1
- package/dist/video-selfie.d.ts +5 -5
- package/dist/video-selfie.esm.js +7 -7
- package/dist/{warmup-B6uMODEx.d.ts → warmup-BLb08x_r.d.ts} +7 -0
- package/dist/wasm.d.ts +3 -3
- package/dist/wasm.esm.js +4 -4
- package/dist/workflow.d.ts +156 -156
- package/dist/workflow.esm.js +14 -14
- package/package.json +3 -3
package/dist/cpf-ocr.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./StateMachine-BbQn0WGQ.js";
|
|
2
2
|
import "./Manager-Nf1FHI2l.js";
|
|
3
3
|
import "./Actor-CVuNUOJR.js";
|
|
4
|
-
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-
|
|
4
|
+
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-DiuFeIlv.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/cpf-ocr/cpfOcrUtils.d.ts
|
|
7
7
|
declare function formatCPF(value: string): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-Nf1FHI2l.js";
|
|
2
2
|
import { t as ActorRefFrom } from "./Actor-CVuNUOJR.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate1133 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: xstate1133.StateMachine<CpfOcrContext, {
|
|
21
21
|
type: "LOAD";
|
|
22
22
|
} | {
|
|
23
23
|
type: "SET_CPF";
|
|
@@ -27,43 +27,43 @@ declare const cpfOcrMachine: xstate1167.StateMachine<CpfOcrContext, {
|
|
|
27
27
|
} | {
|
|
28
28
|
type: "RETRY";
|
|
29
29
|
}, {
|
|
30
|
-
[x: string]:
|
|
30
|
+
[x: string]: xstate1133.ActorRefFromLogic<xstate1133.PromiseActorLogic<CpfOcrDataResponse, void, xstate1133.EventObject>> | xstate1133.ActorRefFromLogic<xstate1133.PromiseActorLogic<CpfOcrUpdateResponse, {
|
|
31
31
|
cpf: string;
|
|
32
|
-
},
|
|
33
|
-
},
|
|
32
|
+
}, xstate1133.EventObject>> | undefined;
|
|
33
|
+
}, xstate1133.Values<{
|
|
34
34
|
fetchCpfOcrData: {
|
|
35
35
|
src: "fetchCpfOcrData";
|
|
36
|
-
logic:
|
|
36
|
+
logic: xstate1133.PromiseActorLogic<CpfOcrDataResponse, void, xstate1133.EventObject>;
|
|
37
37
|
id: string | undefined;
|
|
38
38
|
};
|
|
39
39
|
submitCpfOcr: {
|
|
40
40
|
src: "submitCpfOcr";
|
|
41
|
-
logic:
|
|
41
|
+
logic: xstate1133.PromiseActorLogic<CpfOcrUpdateResponse, {
|
|
42
42
|
cpf: string;
|
|
43
|
-
},
|
|
43
|
+
}, xstate1133.EventObject>;
|
|
44
44
|
id: string | undefined;
|
|
45
45
|
};
|
|
46
|
-
}>,
|
|
46
|
+
}>, xstate1133.Values<{
|
|
47
47
|
setError: {
|
|
48
48
|
type: "setError";
|
|
49
|
-
params:
|
|
49
|
+
params: xstate1133.NonReducibleUnknown;
|
|
50
50
|
};
|
|
51
51
|
clearError: {
|
|
52
52
|
type: "clearError";
|
|
53
|
-
params:
|
|
53
|
+
params: xstate1133.NonReducibleUnknown;
|
|
54
54
|
};
|
|
55
55
|
setPrefill: {
|
|
56
56
|
type: "setPrefill";
|
|
57
|
-
params:
|
|
57
|
+
params: xstate1133.NonReducibleUnknown;
|
|
58
58
|
};
|
|
59
59
|
setCpf: {
|
|
60
60
|
type: "setCpf";
|
|
61
|
-
params:
|
|
61
|
+
params: xstate1133.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, xstate1133.NonReducibleUnknown, xstate1133.EventObject, xstate1133.MetaObject, {
|
|
67
67
|
readonly id: "cpfOcr";
|
|
68
68
|
readonly initial: "idle";
|
|
69
69
|
readonly context: {
|
|
@@ -118,7 +118,7 @@ declare const cpfOcrMachine: xstate1167.StateMachine<CpfOcrContext, {
|
|
|
118
118
|
} | {
|
|
119
119
|
type: "RETRY";
|
|
120
120
|
};
|
|
121
|
-
self:
|
|
121
|
+
self: xstate1133.ActorRef<xstate1133.MachineSnapshot<CpfOcrContext, {
|
|
122
122
|
type: "LOAD";
|
|
123
123
|
} | {
|
|
124
124
|
type: "SET_CPF";
|
|
@@ -127,7 +127,7 @@ declare const cpfOcrMachine: xstate1167.StateMachine<CpfOcrContext, {
|
|
|
127
127
|
type: "SUBMIT";
|
|
128
128
|
} | {
|
|
129
129
|
type: "RETRY";
|
|
130
|
-
}, Record<string,
|
|
130
|
+
}, Record<string, xstate1133.AnyActorRef>, xstate1133.StateValue, string, unknown, any, any>, {
|
|
131
131
|
type: "LOAD";
|
|
132
132
|
} | {
|
|
133
133
|
type: "SET_CPF";
|
|
@@ -136,7 +136,7 @@ declare const cpfOcrMachine: xstate1167.StateMachine<CpfOcrContext, {
|
|
|
136
136
|
type: "SUBMIT";
|
|
137
137
|
} | {
|
|
138
138
|
type: "RETRY";
|
|
139
|
-
},
|
|
139
|
+
}, xstate1133.AnyEventObject>;
|
|
140
140
|
}) => {
|
|
141
141
|
cpf: string;
|
|
142
142
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BNQ2PBjG.esm.js";
|
|
2
2
|
import "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
3
3
|
import "./api-DsbUi7TO.esm.js";
|
|
4
4
|
import "./events-aeCkGlnn.esm.js";
|
|
5
5
|
import "./endpoints-CwrFQfW7.esm.js";
|
|
6
6
|
import "./stats-BVy52wLy.esm.js";
|
|
7
|
-
import { c as IpifyProvider, d as BrowserEnvironmentProvider, n as getFingerprintEnabled, t as getDisableIpify } from "./sessionInitializer-
|
|
7
|
+
import { c as IpifyProvider, d as BrowserEnvironmentProvider, n as getFingerprintEnabled, t as getDisableIpify } from "./sessionInitializer-Co7APszQ.esm.js";
|
|
8
8
|
import "./browserSimulation-CWJhFPZ2.esm.js";
|
|
9
9
|
import "./platform-0Ot-bF_a.esm.js";
|
|
10
10
|
import "./getBrowser-1yNcfFZR.esm.js";
|
|
@@ -3,5 +3,5 @@ import "./Manager-Nf1FHI2l.js";
|
|
|
3
3
|
import "./Actor-CVuNUOJR.js";
|
|
4
4
|
import "./camera-BKIKKx_i.js";
|
|
5
5
|
import "./types-4Zm5rOiY.js";
|
|
6
|
-
import { a as DocumentCaptureActor, c as DocumentCaptureConfig, d as DocumentType, i as createDocumentCaptureManagerFromActor, l as DocumentCaptureErrorCode, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, s as DOCUMENT_CAPTURE_ERROR_CODES, t as DocumentCaptureManager, u as DocumentCaptureNextPageType } from "./documentCaptureManager-
|
|
6
|
+
import { a as DocumentCaptureActor, c as DocumentCaptureConfig, d as DocumentType, i as createDocumentCaptureManagerFromActor, l as DocumentCaptureErrorCode, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, s as DOCUMENT_CAPTURE_ERROR_CODES, t as DocumentCaptureManager, u as DocumentCaptureNextPageType } from "./documentCaptureManager-Cg45h7_W.js";
|
|
7
7
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./WasmUtilProvider-
|
|
1
|
+
import "./WasmUtilProvider-BNQ2PBjG.esm.js";
|
|
2
2
|
import "./api-DsbUi7TO.esm.js";
|
|
3
3
|
import "./events-aeCkGlnn.esm.js";
|
|
4
4
|
import "./endpoints-CwrFQfW7.esm.js";
|
|
5
5
|
import "./platform-0Ot-bF_a.esm.js";
|
|
6
6
|
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
7
7
|
import "./MotionSensorProvider-BkHKMCPE.esm.js";
|
|
8
|
-
import "./permissionServices-
|
|
8
|
+
import "./permissionServices-B7lD6fiG.esm.js";
|
|
9
9
|
import "./camera-B0yWS33x.esm.js";
|
|
10
10
|
import "./ITimerCapability-G7lQg-be.esm.js";
|
|
11
11
|
import "./backCameraStream-Cz2EvzSR.esm.js";
|
|
12
|
-
import "./permissionGuards-
|
|
13
|
-
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
14
|
-
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-
|
|
12
|
+
import "./permissionGuards-CayfS8OY.esm.js";
|
|
13
|
+
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-xxT-yxJP.esm.js";
|
|
14
|
+
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-BBsQlZXw.esm.js";
|
|
15
15
|
|
|
16
16
|
export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -3,10 +3,10 @@ import { t as Manager } from "./Manager-Nf1FHI2l.js";
|
|
|
3
3
|
import "./Actor-CVuNUOJR.js";
|
|
4
4
|
import "./camera-BKIKKx_i.js";
|
|
5
5
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-DMwx1WSD.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as xstate0 from "xstate";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
9
|
-
declare const documentUploadMachine:
|
|
9
|
+
declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext, {
|
|
10
10
|
type: "START";
|
|
11
11
|
} | {
|
|
12
12
|
type: "CAPTURE";
|
|
@@ -19,52 +19,52 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
19
19
|
} | {
|
|
20
20
|
type: "CLOSE";
|
|
21
21
|
}, {
|
|
22
|
-
[x: string]:
|
|
22
|
+
[x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
|
|
23
23
|
imageBase64: string;
|
|
24
24
|
documentType: string;
|
|
25
25
|
onProgress: (progress: number) => void;
|
|
26
|
-
},
|
|
27
|
-
},
|
|
26
|
+
}, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | undefined;
|
|
27
|
+
}, xstate0.Values<{
|
|
28
28
|
uploadDocument: {
|
|
29
29
|
src: "uploadDocument";
|
|
30
|
-
logic:
|
|
30
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
31
31
|
imageBase64: string;
|
|
32
32
|
documentType: string;
|
|
33
33
|
onProgress: (progress: number) => void;
|
|
34
|
-
},
|
|
34
|
+
}, xstate0.EventObject>;
|
|
35
35
|
id: string | undefined;
|
|
36
36
|
};
|
|
37
37
|
initCamera: {
|
|
38
38
|
src: "initCamera";
|
|
39
|
-
logic:
|
|
39
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
40
40
|
id: string | undefined;
|
|
41
41
|
};
|
|
42
|
-
}>,
|
|
42
|
+
}>, xstate0.Values<{
|
|
43
43
|
setStream: {
|
|
44
44
|
type: "setStream";
|
|
45
|
-
params:
|
|
45
|
+
params: xstate0.NonReducibleUnknown;
|
|
46
46
|
};
|
|
47
47
|
setImageAndClearError: {
|
|
48
48
|
type: "setImageAndClearError";
|
|
49
|
-
params:
|
|
49
|
+
params: xstate0.NonReducibleUnknown;
|
|
50
50
|
};
|
|
51
51
|
setProgress: {
|
|
52
52
|
type: "setProgress";
|
|
53
|
-
params:
|
|
53
|
+
params: xstate0.NonReducibleUnknown;
|
|
54
54
|
};
|
|
55
55
|
setError: {
|
|
56
56
|
type: "setError";
|
|
57
|
-
params:
|
|
57
|
+
params: xstate0.NonReducibleUnknown;
|
|
58
58
|
};
|
|
59
59
|
clearError: {
|
|
60
60
|
type: "clearError";
|
|
61
|
-
params:
|
|
61
|
+
params: xstate0.NonReducibleUnknown;
|
|
62
62
|
};
|
|
63
63
|
stopStream: {
|
|
64
64
|
type: "stopStream";
|
|
65
|
-
params:
|
|
65
|
+
params: xstate0.NonReducibleUnknown;
|
|
66
66
|
};
|
|
67
|
-
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput,
|
|
67
|
+
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
68
68
|
readonly id: "documentUpload";
|
|
69
69
|
readonly initial: "idle";
|
|
70
70
|
readonly context: ({
|
|
@@ -73,67 +73,67 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
73
73
|
spawn: {
|
|
74
74
|
<TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
|
|
75
75
|
src: "uploadDocument";
|
|
76
|
-
logic:
|
|
76
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
77
77
|
imageBase64: string;
|
|
78
78
|
documentType: string;
|
|
79
79
|
onProgress: (progress: number) => void;
|
|
80
|
-
},
|
|
80
|
+
}, xstate0.EventObject>;
|
|
81
81
|
id: string | undefined;
|
|
82
82
|
} extends infer T ? T extends {
|
|
83
83
|
src: "uploadDocument";
|
|
84
|
-
logic:
|
|
84
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
85
85
|
imageBase64: string;
|
|
86
86
|
documentType: string;
|
|
87
87
|
onProgress: (progress: number) => void;
|
|
88
|
-
},
|
|
88
|
+
}, xstate0.EventObject>;
|
|
89
89
|
id: string | undefined;
|
|
90
90
|
} ? T extends {
|
|
91
91
|
src: TSrc;
|
|
92
|
-
} ?
|
|
92
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
93
93
|
id?: T["id"] | undefined;
|
|
94
94
|
systemId?: string;
|
|
95
|
-
input?:
|
|
95
|
+
input?: xstate0.InputFrom<T["logic"]> | undefined;
|
|
96
96
|
syncSnapshot?: boolean;
|
|
97
|
-
} & { [K in
|
|
97
|
+
} & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
98
98
|
src: "initCamera";
|
|
99
|
-
logic:
|
|
99
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
100
100
|
id: string | undefined;
|
|
101
101
|
} extends infer T_1 ? T_1 extends {
|
|
102
102
|
src: "initCamera";
|
|
103
|
-
logic:
|
|
103
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
104
104
|
id: string | undefined;
|
|
105
105
|
} ? T_1 extends {
|
|
106
106
|
src: TSrc;
|
|
107
|
-
} ?
|
|
107
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
108
108
|
id?: T_1["id"] | undefined;
|
|
109
109
|
systemId?: string;
|
|
110
|
-
input?:
|
|
110
|
+
input?: xstate0.InputFrom<T_1["logic"]> | undefined;
|
|
111
111
|
syncSnapshot?: boolean;
|
|
112
|
-
} & { [K_1 in
|
|
112
|
+
} & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
|
|
113
113
|
uploadDocument: {
|
|
114
114
|
src: "uploadDocument";
|
|
115
|
-
logic:
|
|
115
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
116
116
|
imageBase64: string;
|
|
117
117
|
documentType: string;
|
|
118
118
|
onProgress: (progress: number) => void;
|
|
119
|
-
},
|
|
119
|
+
}, xstate0.EventObject>;
|
|
120
120
|
id: string | undefined;
|
|
121
121
|
};
|
|
122
122
|
initCamera: {
|
|
123
123
|
src: "initCamera";
|
|
124
|
-
logic:
|
|
124
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
125
125
|
id: string | undefined;
|
|
126
126
|
};
|
|
127
127
|
}>, "src", TSrc>["logic"]>;
|
|
128
|
-
<TLogic extends
|
|
128
|
+
<TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
|
|
129
129
|
id?: never;
|
|
130
130
|
systemId?: string;
|
|
131
|
-
input?:
|
|
131
|
+
input?: xstate0.InputFrom<TLogic> | undefined;
|
|
132
132
|
syncSnapshot?: boolean;
|
|
133
|
-
} & { [K in
|
|
133
|
+
} & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
|
|
134
134
|
};
|
|
135
135
|
input: DocumentUploadInput;
|
|
136
|
-
self:
|
|
136
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
|
|
137
137
|
type: "START";
|
|
138
138
|
} | {
|
|
139
139
|
type: "CAPTURE";
|
|
@@ -145,7 +145,7 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
145
145
|
type: "RETRY";
|
|
146
146
|
} | {
|
|
147
147
|
type: "CLOSE";
|
|
148
|
-
}, Record<string,
|
|
148
|
+
}, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
|
|
149
149
|
type: "START";
|
|
150
150
|
} | {
|
|
151
151
|
type: "CAPTURE";
|
|
@@ -157,7 +157,7 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
157
157
|
type: "RETRY";
|
|
158
158
|
} | {
|
|
159
159
|
type: "CLOSE";
|
|
160
|
-
},
|
|
160
|
+
}, xstate0.AnyEventObject>;
|
|
161
161
|
}) => {
|
|
162
162
|
config: DocumentUploadConfig;
|
|
163
163
|
stream: undefined;
|
|
@@ -227,7 +227,7 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
227
227
|
} | {
|
|
228
228
|
type: "CLOSE";
|
|
229
229
|
};
|
|
230
|
-
self:
|
|
230
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
|
|
231
231
|
type: "START";
|
|
232
232
|
} | {
|
|
233
233
|
type: "CAPTURE";
|
|
@@ -239,7 +239,7 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
239
239
|
type: "RETRY";
|
|
240
240
|
} | {
|
|
241
241
|
type: "CLOSE";
|
|
242
|
-
}, Record<string,
|
|
242
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
243
243
|
type: "START";
|
|
244
244
|
} | {
|
|
245
245
|
type: "CAPTURE";
|
|
@@ -251,7 +251,7 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
251
251
|
type: "RETRY";
|
|
252
252
|
} | {
|
|
253
253
|
type: "CLOSE";
|
|
254
|
-
},
|
|
254
|
+
}, xstate0.AnyEventObject>;
|
|
255
255
|
}) => {
|
|
256
256
|
imageBase64: string;
|
|
257
257
|
documentType: string;
|
package/dist/{documentCaptureManager-81Q9AwsW.esm.js → documentCaptureManager-BBsQlZXw.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as topLevelStateName, s as createManagerInstrumentation } from "./events-aeCkGlnn.esm.js";
|
|
2
2
|
import { l as createManager, s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
3
|
-
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
3
|
+
import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-xxT-yxJP.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/document-capture/documentCaptureActor.ts
|
|
6
6
|
function createDocumentCaptureActor(options) {
|