@incodetech/core 0.0.0-dev-20260325-72e1e24 → 0.0.0-dev-20260326-106dc21
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/consent.d.ts +50 -50
- package/dist/document-capture.d.ts +52 -52
- package/dist/document-upload.d.ts +46 -46
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +1 -1
- package/dist/{emailManager-Bl3NqSZ-.esm.js → emailManager-C8EeT_ZS.esm.js} +27 -17
- package/dist/{emailManager-DsAtfVR-.d.ts → emailManager-vDj9azjD.d.ts} +12 -4
- package/dist/extensibility.d.ts +2 -2
- package/dist/extensibility.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +53 -53
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +1 -1
- package/dist/{phoneManager-CenWu6bP.d.ts → phoneManager-BBEdl-dP.d.ts} +13 -5
- package/dist/{phoneManager-2NN9q777.esm.js → phoneManager-Chu-DkAG.esm.js} +37 -18
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { f as Manager } from "./index-BTaLQSj9.js";
|
|
2
2
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-oveF7RrS.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate0 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
6
|
-
declare const documentUploadMachine:
|
|
6
|
+
declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext, {
|
|
7
7
|
type: "START";
|
|
8
8
|
} | {
|
|
9
9
|
type: "CAPTURE";
|
|
@@ -16,52 +16,52 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
16
16
|
} | {
|
|
17
17
|
type: "CLOSE";
|
|
18
18
|
}, {
|
|
19
|
-
[x: string]:
|
|
19
|
+
[x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
|
|
20
20
|
imageBase64: string;
|
|
21
21
|
documentType: string;
|
|
22
22
|
onProgress: (progress: number) => void;
|
|
23
|
-
},
|
|
24
|
-
},
|
|
23
|
+
}, xstate0.EventObject>> | undefined;
|
|
24
|
+
}, xstate0.Values<{
|
|
25
25
|
initCamera: {
|
|
26
26
|
src: "initCamera";
|
|
27
|
-
logic:
|
|
27
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
28
28
|
id: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
uploadDocument: {
|
|
31
31
|
src: "uploadDocument";
|
|
32
|
-
logic:
|
|
32
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
33
33
|
imageBase64: string;
|
|
34
34
|
documentType: string;
|
|
35
35
|
onProgress: (progress: number) => void;
|
|
36
|
-
},
|
|
36
|
+
}, xstate0.EventObject>;
|
|
37
37
|
id: string | undefined;
|
|
38
38
|
};
|
|
39
|
-
}>,
|
|
40
|
-
setError: {
|
|
41
|
-
type: "setError";
|
|
42
|
-
params: xstate67.NonReducibleUnknown;
|
|
43
|
-
};
|
|
44
|
-
clearError: {
|
|
45
|
-
type: "clearError";
|
|
46
|
-
params: xstate67.NonReducibleUnknown;
|
|
47
|
-
};
|
|
39
|
+
}>, xstate0.Values<{
|
|
48
40
|
setStream: {
|
|
49
41
|
type: "setStream";
|
|
50
|
-
params:
|
|
42
|
+
params: xstate0.NonReducibleUnknown;
|
|
51
43
|
};
|
|
52
44
|
setImageAndClearError: {
|
|
53
45
|
type: "setImageAndClearError";
|
|
54
|
-
params:
|
|
46
|
+
params: xstate0.NonReducibleUnknown;
|
|
55
47
|
};
|
|
56
48
|
setProgress: {
|
|
57
49
|
type: "setProgress";
|
|
58
|
-
params:
|
|
50
|
+
params: xstate0.NonReducibleUnknown;
|
|
51
|
+
};
|
|
52
|
+
setError: {
|
|
53
|
+
type: "setError";
|
|
54
|
+
params: xstate0.NonReducibleUnknown;
|
|
55
|
+
};
|
|
56
|
+
clearError: {
|
|
57
|
+
type: "clearError";
|
|
58
|
+
params: xstate0.NonReducibleUnknown;
|
|
59
59
|
};
|
|
60
60
|
stopStream: {
|
|
61
61
|
type: "stopStream";
|
|
62
|
-
params:
|
|
62
|
+
params: xstate0.NonReducibleUnknown;
|
|
63
63
|
};
|
|
64
|
-
}>, never, never, "error" | "
|
|
64
|
+
}>, never, never, "error" | "initCamera" | "idle" | "capturing" | "closed" | "uploading" | "finished", string, DocumentUploadInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
65
65
|
readonly id: "documentUpload";
|
|
66
66
|
readonly initial: "idle";
|
|
67
67
|
readonly context: ({
|
|
@@ -70,67 +70,67 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
70
70
|
spawn: {
|
|
71
71
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
72
72
|
src: "initCamera";
|
|
73
|
-
logic:
|
|
73
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
74
74
|
id: string | undefined;
|
|
75
75
|
} extends infer T ? T extends {
|
|
76
76
|
src: "initCamera";
|
|
77
|
-
logic:
|
|
77
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
78
78
|
id: string | undefined;
|
|
79
79
|
} ? T extends {
|
|
80
80
|
src: TSrc;
|
|
81
|
-
} ?
|
|
81
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
82
82
|
id?: T["id"] | undefined;
|
|
83
83
|
systemId?: string;
|
|
84
|
-
input?:
|
|
84
|
+
input?: xstate0.InputFrom<T["logic"]> | undefined;
|
|
85
85
|
syncSnapshot?: boolean;
|
|
86
|
-
} & { [K in
|
|
86
|
+
} & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
87
87
|
src: "uploadDocument";
|
|
88
|
-
logic:
|
|
88
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
89
89
|
imageBase64: string;
|
|
90
90
|
documentType: string;
|
|
91
91
|
onProgress: (progress: number) => void;
|
|
92
|
-
},
|
|
92
|
+
}, xstate0.EventObject>;
|
|
93
93
|
id: string | undefined;
|
|
94
94
|
} extends infer T_1 ? T_1 extends {
|
|
95
95
|
src: "uploadDocument";
|
|
96
|
-
logic:
|
|
96
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
97
97
|
imageBase64: string;
|
|
98
98
|
documentType: string;
|
|
99
99
|
onProgress: (progress: number) => void;
|
|
100
|
-
},
|
|
100
|
+
}, xstate0.EventObject>;
|
|
101
101
|
id: string | undefined;
|
|
102
102
|
} ? T_1 extends {
|
|
103
103
|
src: TSrc;
|
|
104
|
-
} ?
|
|
104
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
105
105
|
id?: T_1["id"] | undefined;
|
|
106
106
|
systemId?: string;
|
|
107
|
-
input?:
|
|
107
|
+
input?: xstate0.InputFrom<T_1["logic"]> | undefined;
|
|
108
108
|
syncSnapshot?: boolean;
|
|
109
|
-
} & { [K_1 in
|
|
109
|
+
} & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
|
|
110
110
|
initCamera: {
|
|
111
111
|
src: "initCamera";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
|
|
113
113
|
id: string | undefined;
|
|
114
114
|
};
|
|
115
115
|
uploadDocument: {
|
|
116
116
|
src: "uploadDocument";
|
|
117
|
-
logic:
|
|
117
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
118
118
|
imageBase64: string;
|
|
119
119
|
documentType: string;
|
|
120
120
|
onProgress: (progress: number) => void;
|
|
121
|
-
},
|
|
121
|
+
}, xstate0.EventObject>;
|
|
122
122
|
id: string | undefined;
|
|
123
123
|
};
|
|
124
124
|
}>, "src", TSrc>["logic"]>;
|
|
125
|
-
<TLogic extends
|
|
125
|
+
<TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
|
|
126
126
|
id?: never;
|
|
127
127
|
systemId?: string;
|
|
128
|
-
input?:
|
|
128
|
+
input?: xstate0.InputFrom<TLogic> | undefined;
|
|
129
129
|
syncSnapshot?: boolean;
|
|
130
|
-
} & { [K in
|
|
130
|
+
} & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
|
|
131
131
|
};
|
|
132
132
|
input: DocumentUploadInput;
|
|
133
|
-
self:
|
|
133
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
|
|
134
134
|
type: "START";
|
|
135
135
|
} | {
|
|
136
136
|
type: "CAPTURE";
|
|
@@ -142,7 +142,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
142
142
|
type: "RETRY";
|
|
143
143
|
} | {
|
|
144
144
|
type: "CLOSE";
|
|
145
|
-
}, Record<string,
|
|
145
|
+
}, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
|
|
146
146
|
type: "START";
|
|
147
147
|
} | {
|
|
148
148
|
type: "CAPTURE";
|
|
@@ -154,7 +154,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
154
154
|
type: "RETRY";
|
|
155
155
|
} | {
|
|
156
156
|
type: "CLOSE";
|
|
157
|
-
},
|
|
157
|
+
}, xstate0.AnyEventObject>;
|
|
158
158
|
}) => {
|
|
159
159
|
config: DocumentUploadConfig;
|
|
160
160
|
stream: undefined;
|
|
@@ -224,7 +224,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
224
224
|
} | {
|
|
225
225
|
type: "CLOSE";
|
|
226
226
|
};
|
|
227
|
-
self:
|
|
227
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
|
|
228
228
|
type: "START";
|
|
229
229
|
} | {
|
|
230
230
|
type: "CAPTURE";
|
|
@@ -236,7 +236,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
236
236
|
type: "RETRY";
|
|
237
237
|
} | {
|
|
238
238
|
type: "CLOSE";
|
|
239
|
-
}, Record<string,
|
|
239
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
240
240
|
type: "START";
|
|
241
241
|
} | {
|
|
242
242
|
type: "CAPTURE";
|
|
@@ -248,7 +248,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "CLOSE";
|
|
251
|
-
},
|
|
251
|
+
}, xstate0.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
imageBase64: string;
|
|
254
254
|
documentType: string;
|
package/dist/email.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "./index-BTaLQSj9.js";
|
|
2
|
-
import { a as emailMachine, n as EmailState, o as EmailConfig, r as createEmailManager, t as EmailManager } from "./emailManager-
|
|
2
|
+
import { a as emailMachine, n as EmailState, o as EmailConfig, r as createEmailManager, t as EmailManager } from "./emailManager-vDj9azjD.js";
|
|
3
3
|
export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
|
package/dist/email.esm.js
CHANGED
|
@@ -2,6 +2,6 @@ import "./events-Cc1xUUgF.esm.js";
|
|
|
2
2
|
import "./src-DCc0dMkT.esm.js";
|
|
3
3
|
import "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
5
|
-
import { r as emailMachine, t as createEmailManager } from "./emailManager-
|
|
5
|
+
import { r as emailMachine, t as createEmailManager } from "./emailManager-C8EeT_ZS.esm.js";
|
|
6
6
|
|
|
7
7
|
export { createEmailManager, emailMachine };
|
|
@@ -70,7 +70,7 @@ const emailMachine = setup({
|
|
|
70
70
|
return {
|
|
71
71
|
email: e.email,
|
|
72
72
|
isValid: e.isValid,
|
|
73
|
-
emailError: e.isValid ? void 0 : "
|
|
73
|
+
emailError: e.isValid ? void 0 : "verification.errors.emailInvalid"
|
|
74
74
|
};
|
|
75
75
|
}),
|
|
76
76
|
setEmailError: assign(({ event }) => ({ emailError: String(event.error) })),
|
|
@@ -113,7 +113,11 @@ const emailMachine = setup({
|
|
|
113
113
|
attemptsRemaining: context.config.maxOtpAttempts ?? 3,
|
|
114
114
|
resendTimer: 0,
|
|
115
115
|
resendTimerActive: false
|
|
116
|
-
}))
|
|
116
|
+
})),
|
|
117
|
+
clearResendTimer: assign({
|
|
118
|
+
resendTimer: () => 0,
|
|
119
|
+
resendTimerActive: () => false
|
|
120
|
+
})
|
|
117
121
|
},
|
|
118
122
|
guards: {
|
|
119
123
|
hasPrefill: ({ context }) => context.config.prefill,
|
|
@@ -214,7 +218,7 @@ const emailMachine = setup({
|
|
|
214
218
|
target: "otpError",
|
|
215
219
|
guard: "hasAttemptsRemaining",
|
|
216
220
|
actions: assign(({ context }) => ({
|
|
217
|
-
otpError: "
|
|
221
|
+
otpError: "otp.errorv2",
|
|
218
222
|
attemptsRemaining: context.attemptsRemaining - 1
|
|
219
223
|
}))
|
|
220
224
|
},
|
|
@@ -232,17 +236,20 @@ const emailMachine = setup({
|
|
|
232
236
|
actions: "setError"
|
|
233
237
|
}]
|
|
234
238
|
} },
|
|
235
|
-
otpError: {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
239
|
+
otpError: {
|
|
240
|
+
entry: "clearResendTimer",
|
|
241
|
+
on: {
|
|
242
|
+
OTP_CHANGED: {
|
|
243
|
+
target: "awaitingOtp",
|
|
244
|
+
actions: "setOtpCode"
|
|
245
|
+
},
|
|
246
|
+
RESEND_OTP: {
|
|
247
|
+
target: "sendingOtp",
|
|
248
|
+
guard: "canResend"
|
|
249
|
+
},
|
|
250
|
+
BACK: { target: "inputting" }
|
|
251
|
+
}
|
|
252
|
+
},
|
|
246
253
|
finished: { type: "final" },
|
|
247
254
|
error: { on: { RESET: {
|
|
248
255
|
target: "idle",
|
|
@@ -357,7 +364,8 @@ function mapState(snapshot) {
|
|
|
357
364
|
emailError: context.emailError
|
|
358
365
|
};
|
|
359
366
|
if (typedSnapshot.matches("submitting")) return { status: "submitting" };
|
|
360
|
-
if (typedSnapshot.matches("
|
|
367
|
+
if (typedSnapshot.matches("resendingOtp")) return { status: "resendingOtp" };
|
|
368
|
+
if (typedSnapshot.matches("sendingInitialOtp")) return { status: "sendingInitialOtp" };
|
|
361
369
|
if (typedSnapshot.matches("awaitingOtp")) return {
|
|
362
370
|
status: "awaitingOtp",
|
|
363
371
|
resendTimer: context.resendTimer,
|
|
@@ -367,8 +375,10 @@ function mapState(snapshot) {
|
|
|
367
375
|
if (typedSnapshot.matches("verifyingOtp")) return { status: "verifyingOtp" };
|
|
368
376
|
if (typedSnapshot.matches("otpError")) return {
|
|
369
377
|
status: "otpError",
|
|
370
|
-
|
|
371
|
-
attemptsRemaining: context.attemptsRemaining
|
|
378
|
+
otpError: context.otpError ?? "Invalid OTP code",
|
|
379
|
+
attemptsRemaining: context.attemptsRemaining,
|
|
380
|
+
resendTimer: context.resendTimer,
|
|
381
|
+
canResend: !context.resendTimerActive
|
|
372
382
|
};
|
|
373
383
|
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
374
384
|
if (typedSnapshot.matches("error")) return {
|
|
@@ -83,8 +83,12 @@ type EmailSubmittingState = {
|
|
|
83
83
|
status: 'submitting';
|
|
84
84
|
};
|
|
85
85
|
/** OTP is being sent to the email address */
|
|
86
|
-
type
|
|
87
|
-
status: '
|
|
86
|
+
type EmailResendingOtpState = {
|
|
87
|
+
status: 'resendingOtp';
|
|
88
|
+
};
|
|
89
|
+
/** OTP is being sent initialy to the email address */
|
|
90
|
+
type EmailSendingInitialOtpState = {
|
|
91
|
+
status: 'sendingInitialOtp';
|
|
88
92
|
};
|
|
89
93
|
/**
|
|
90
94
|
* Waiting for OTP code - use `submitOtp()`, `resendOtp()`, or `back()`
|
|
@@ -106,11 +110,15 @@ type EmailVerifyingOtpState = {
|
|
|
106
110
|
* OTP verification failed - user can retry with `submitOtp()`
|
|
107
111
|
* @property error - Error message describing why verification failed
|
|
108
112
|
* @property attemptsRemaining - Number of remaining attempts before lockout
|
|
113
|
+
* @property resendTimer - Seconds remaining on resend cooldown (same as awaiting OTP)
|
|
114
|
+
* @property canResend - Whether resend is allowed (cooldown finished)
|
|
109
115
|
*/
|
|
110
116
|
type EmailOtpErrorState = {
|
|
111
117
|
status: 'otpError';
|
|
112
|
-
|
|
118
|
+
otpError: string;
|
|
113
119
|
attemptsRemaining: number;
|
|
120
|
+
resendTimer: number;
|
|
121
|
+
canResend: boolean;
|
|
114
122
|
};
|
|
115
123
|
/** Email verification completed successfully */
|
|
116
124
|
type EmailFinishedState = {
|
|
@@ -137,7 +145,7 @@ type EmailErrorState = {
|
|
|
137
145
|
* }
|
|
138
146
|
* ```
|
|
139
147
|
*/
|
|
140
|
-
type EmailState = EmailIdleState | EmailLoadingPrefillState | EmailInputtingState | EmailSubmittingState |
|
|
148
|
+
type EmailState = EmailIdleState | EmailLoadingPrefillState | EmailInputtingState | EmailSubmittingState | EmailResendingOtpState | EmailSendingInitialOtpState | EmailAwaitingOtpState | EmailVerifyingOtpState | EmailOtpErrorState | EmailFinishedState | EmailErrorState;
|
|
141
149
|
/**
|
|
142
150
|
* Creates an email verification manager for headless or UI-driven usage.
|
|
143
151
|
*
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ import "./types-oveF7RrS.js";
|
|
|
7
7
|
import "./types-mQLzH6uw.js";
|
|
8
8
|
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-B4Nnp7ws.js";
|
|
9
9
|
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-TaI12wf3.js";
|
|
10
|
-
import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-
|
|
11
|
-
import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-
|
|
10
|
+
import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-vDj9azjD.js";
|
|
11
|
+
import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBEdl-dP.js";
|
|
12
12
|
|
|
13
13
|
//#region ../infra/src/providers/browser/BrowserStorageProvider.d.ts
|
|
14
14
|
/**
|
|
@@ -11,8 +11,8 @@ import "./deepsightService-lTQvj-Wf.esm.js";
|
|
|
11
11
|
import "./stats-D0m3TvIg.esm.js";
|
|
12
12
|
import { t as faceCaptureMachine } from "./faceCaptureSetup-CP7WXoGS.esm.js";
|
|
13
13
|
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CoeHnXPS.esm.js";
|
|
14
|
-
import { n as createEmailManagerFromActor } from "./emailManager-
|
|
14
|
+
import { n as createEmailManagerFromActor } from "./emailManager-C8EeT_ZS.esm.js";
|
|
15
15
|
import { n as createSelfieManagerFromActor } from "./selfieManager-DZTwDE-b.esm.js";
|
|
16
|
-
import { n as createPhoneManagerFromActor } from "./phoneManager-
|
|
16
|
+
import { n as createPhoneManagerFromActor } from "./phoneManager-Chu-DkAG.esm.js";
|
|
17
17
|
|
|
18
18
|
export { BrowserStorageProvider, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as Manager } from "./index-BTaLQSj9.js";
|
|
2
2
|
import "./types-oveF7RrS.js";
|
|
3
3
|
import { i as RegulationTypes } from "./types-mQLzH6uw.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as xstate204 from "xstate";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/mandatory-consent/types.d.ts
|
|
7
7
|
type MandatoryConsentConfig = {
|
|
@@ -28,7 +28,7 @@ type MandatoryConsentContext = {
|
|
|
28
28
|
type MandatoryConsentInput = {
|
|
29
29
|
config: MandatoryConsentConfig;
|
|
30
30
|
};
|
|
31
|
-
declare const mandatoryConsentMachine:
|
|
31
|
+
declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentContext, {
|
|
32
32
|
type: "LOAD";
|
|
33
33
|
} | {
|
|
34
34
|
type: "TOGGLE";
|
|
@@ -41,53 +41,53 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
41
41
|
} | {
|
|
42
42
|
type: "RESET";
|
|
43
43
|
}, {
|
|
44
|
-
[x: string]:
|
|
44
|
+
[x: string]: xstate204.ActorRefFromLogic<xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
45
45
|
config: MandatoryConsentConfig;
|
|
46
|
-
},
|
|
46
|
+
}, xstate204.EventObject>> | xstate204.ActorRefFromLogic<xstate204.PromiseActorLogic<void, {
|
|
47
47
|
consentId: string;
|
|
48
48
|
isSigned: boolean;
|
|
49
|
-
},
|
|
50
|
-
},
|
|
49
|
+
}, xstate204.EventObject>> | undefined;
|
|
50
|
+
}, xstate204.Values<{
|
|
51
51
|
fetchConsent: {
|
|
52
52
|
src: "fetchConsent";
|
|
53
|
-
logic:
|
|
53
|
+
logic: xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
54
54
|
config: MandatoryConsentConfig;
|
|
55
|
-
},
|
|
55
|
+
}, xstate204.EventObject>;
|
|
56
56
|
id: string | undefined;
|
|
57
57
|
};
|
|
58
58
|
submitConsent: {
|
|
59
59
|
src: "submitConsent";
|
|
60
|
-
logic:
|
|
60
|
+
logic: xstate204.PromiseActorLogic<void, {
|
|
61
61
|
consentId: string;
|
|
62
62
|
isSigned: boolean;
|
|
63
|
-
},
|
|
63
|
+
}, xstate204.EventObject>;
|
|
64
64
|
id: string | undefined;
|
|
65
65
|
};
|
|
66
|
-
}>,
|
|
67
|
-
setConsent: {
|
|
68
|
-
type: "setConsent";
|
|
69
|
-
params: xstate0.NonReducibleUnknown;
|
|
70
|
-
};
|
|
71
|
-
toggleSigned: {
|
|
72
|
-
type: "toggleSigned";
|
|
73
|
-
params: xstate0.NonReducibleUnknown;
|
|
74
|
-
};
|
|
66
|
+
}>, xstate204.Values<{
|
|
75
67
|
setError: {
|
|
76
68
|
type: "setError";
|
|
77
|
-
params:
|
|
69
|
+
params: xstate204.NonReducibleUnknown;
|
|
78
70
|
};
|
|
79
71
|
clearError: {
|
|
80
72
|
type: "clearError";
|
|
81
|
-
params:
|
|
73
|
+
params: xstate204.NonReducibleUnknown;
|
|
82
74
|
};
|
|
83
75
|
resetContext: {
|
|
84
76
|
type: "resetContext";
|
|
85
|
-
params:
|
|
77
|
+
params: xstate204.NonReducibleUnknown;
|
|
78
|
+
};
|
|
79
|
+
setConsent: {
|
|
80
|
+
type: "setConsent";
|
|
81
|
+
params: xstate204.NonReducibleUnknown;
|
|
82
|
+
};
|
|
83
|
+
toggleSigned: {
|
|
84
|
+
type: "toggleSigned";
|
|
85
|
+
params: xstate204.NonReducibleUnknown;
|
|
86
86
|
};
|
|
87
87
|
}>, {
|
|
88
88
|
type: "canSubmit";
|
|
89
89
|
params: unknown;
|
|
90
|
-
}, never, "error" | "idle" | "
|
|
90
|
+
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate204.NonReducibleUnknown, xstate204.EventObject, xstate204.MetaObject, {
|
|
91
91
|
readonly id: "mandatoryConsent";
|
|
92
92
|
readonly initial: "idle";
|
|
93
93
|
readonly context: ({
|
|
@@ -96,70 +96,70 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
96
96
|
spawn: {
|
|
97
97
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
98
98
|
src: "fetchConsent";
|
|
99
|
-
logic:
|
|
99
|
+
logic: xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
100
100
|
config: MandatoryConsentConfig;
|
|
101
|
-
},
|
|
101
|
+
}, xstate204.EventObject>;
|
|
102
102
|
id: string | undefined;
|
|
103
103
|
} extends infer T ? T extends {
|
|
104
104
|
src: "fetchConsent";
|
|
105
|
-
logic:
|
|
105
|
+
logic: xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
106
106
|
config: MandatoryConsentConfig;
|
|
107
|
-
},
|
|
107
|
+
}, xstate204.EventObject>;
|
|
108
108
|
id: string | undefined;
|
|
109
109
|
} ? T extends {
|
|
110
110
|
src: TSrc;
|
|
111
|
-
} ?
|
|
111
|
+
} ? xstate204.ConditionalRequired<[options?: ({
|
|
112
112
|
id?: T["id"] | undefined;
|
|
113
113
|
systemId?: string;
|
|
114
|
-
input?:
|
|
114
|
+
input?: xstate204.InputFrom<T["logic"]> | undefined;
|
|
115
115
|
syncSnapshot?: boolean;
|
|
116
|
-
} & { [K in
|
|
116
|
+
} & { [K in xstate204.RequiredActorOptions<T>]: unknown }) | undefined], xstate204.IsNotNever<xstate204.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
117
117
|
src: "submitConsent";
|
|
118
|
-
logic:
|
|
118
|
+
logic: xstate204.PromiseActorLogic<void, {
|
|
119
119
|
consentId: string;
|
|
120
120
|
isSigned: boolean;
|
|
121
|
-
},
|
|
121
|
+
}, xstate204.EventObject>;
|
|
122
122
|
id: string | undefined;
|
|
123
123
|
} extends infer T_1 ? T_1 extends {
|
|
124
124
|
src: "submitConsent";
|
|
125
|
-
logic:
|
|
125
|
+
logic: xstate204.PromiseActorLogic<void, {
|
|
126
126
|
consentId: string;
|
|
127
127
|
isSigned: boolean;
|
|
128
|
-
},
|
|
128
|
+
}, xstate204.EventObject>;
|
|
129
129
|
id: string | undefined;
|
|
130
130
|
} ? T_1 extends {
|
|
131
131
|
src: TSrc;
|
|
132
|
-
} ?
|
|
132
|
+
} ? xstate204.ConditionalRequired<[options?: ({
|
|
133
133
|
id?: T_1["id"] | undefined;
|
|
134
134
|
systemId?: string;
|
|
135
|
-
input?:
|
|
135
|
+
input?: xstate204.InputFrom<T_1["logic"]> | undefined;
|
|
136
136
|
syncSnapshot?: boolean;
|
|
137
|
-
} & { [K_1 in
|
|
137
|
+
} & { [K_1 in xstate204.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate204.IsNotNever<xstate204.RequiredActorOptions<T_1>>> : never : never : never)): xstate204.ActorRefFromLogic<xstate204.GetConcreteByKey<xstate204.Values<{
|
|
138
138
|
fetchConsent: {
|
|
139
139
|
src: "fetchConsent";
|
|
140
|
-
logic:
|
|
140
|
+
logic: xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
141
141
|
config: MandatoryConsentConfig;
|
|
142
|
-
},
|
|
142
|
+
}, xstate204.EventObject>;
|
|
143
143
|
id: string | undefined;
|
|
144
144
|
};
|
|
145
145
|
submitConsent: {
|
|
146
146
|
src: "submitConsent";
|
|
147
|
-
logic:
|
|
147
|
+
logic: xstate204.PromiseActorLogic<void, {
|
|
148
148
|
consentId: string;
|
|
149
149
|
isSigned: boolean;
|
|
150
|
-
},
|
|
150
|
+
}, xstate204.EventObject>;
|
|
151
151
|
id: string | undefined;
|
|
152
152
|
};
|
|
153
153
|
}>, "src", TSrc>["logic"]>;
|
|
154
|
-
<TLogic extends
|
|
154
|
+
<TLogic extends xstate204.AnyActorLogic>(src: TLogic, ...[options]: xstate204.ConditionalRequired<[options?: ({
|
|
155
155
|
id?: never;
|
|
156
156
|
systemId?: string;
|
|
157
|
-
input?:
|
|
157
|
+
input?: xstate204.InputFrom<TLogic> | undefined;
|
|
158
158
|
syncSnapshot?: boolean;
|
|
159
|
-
} & { [K in
|
|
159
|
+
} & { [K in xstate204.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate204.IsNotNever<xstate204.RequiredLogicInput<TLogic>>>): xstate204.ActorRefFromLogic<TLogic>;
|
|
160
160
|
};
|
|
161
161
|
input: MandatoryConsentInput;
|
|
162
|
-
self:
|
|
162
|
+
self: xstate204.ActorRef<xstate204.MachineSnapshot<MandatoryConsentContext, {
|
|
163
163
|
type: "LOAD";
|
|
164
164
|
} | {
|
|
165
165
|
type: "TOGGLE";
|
|
@@ -171,7 +171,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
171
171
|
type: "RETRY";
|
|
172
172
|
} | {
|
|
173
173
|
type: "RESET";
|
|
174
|
-
}, Record<string,
|
|
174
|
+
}, Record<string, xstate204.AnyActorRef | undefined>, xstate204.StateValue, string, unknown, any, any>, {
|
|
175
175
|
type: "LOAD";
|
|
176
176
|
} | {
|
|
177
177
|
type: "TOGGLE";
|
|
@@ -183,7 +183,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
183
183
|
type: "RETRY";
|
|
184
184
|
} | {
|
|
185
185
|
type: "RESET";
|
|
186
|
-
},
|
|
186
|
+
}, xstate204.AnyEventObject>;
|
|
187
187
|
}) => {
|
|
188
188
|
config: MandatoryConsentConfig;
|
|
189
189
|
consent: undefined;
|
|
@@ -220,7 +220,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
220
220
|
} | {
|
|
221
221
|
type: "RESET";
|
|
222
222
|
};
|
|
223
|
-
self:
|
|
223
|
+
self: xstate204.ActorRef<xstate204.MachineSnapshot<MandatoryConsentContext, {
|
|
224
224
|
type: "LOAD";
|
|
225
225
|
} | {
|
|
226
226
|
type: "TOGGLE";
|
|
@@ -232,7 +232,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
232
232
|
type: "RETRY";
|
|
233
233
|
} | {
|
|
234
234
|
type: "RESET";
|
|
235
|
-
}, Record<string,
|
|
235
|
+
}, Record<string, xstate204.AnyActorRef>, xstate204.StateValue, string, unknown, any, any>, {
|
|
236
236
|
type: "LOAD";
|
|
237
237
|
} | {
|
|
238
238
|
type: "TOGGLE";
|
|
@@ -244,7 +244,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
244
244
|
type: "RETRY";
|
|
245
245
|
} | {
|
|
246
246
|
type: "RESET";
|
|
247
|
-
},
|
|
247
|
+
}, xstate204.AnyEventObject>;
|
|
248
248
|
}) => {
|
|
249
249
|
config: MandatoryConsentConfig;
|
|
250
250
|
};
|
|
@@ -297,7 +297,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
297
297
|
} | {
|
|
298
298
|
type: "RESET";
|
|
299
299
|
};
|
|
300
|
-
self:
|
|
300
|
+
self: xstate204.ActorRef<xstate204.MachineSnapshot<MandatoryConsentContext, {
|
|
301
301
|
type: "LOAD";
|
|
302
302
|
} | {
|
|
303
303
|
type: "TOGGLE";
|
|
@@ -309,7 +309,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
309
309
|
type: "RETRY";
|
|
310
310
|
} | {
|
|
311
311
|
type: "RESET";
|
|
312
|
-
}, Record<string,
|
|
312
|
+
}, Record<string, xstate204.AnyActorRef>, xstate204.StateValue, string, unknown, any, any>, {
|
|
313
313
|
type: "LOAD";
|
|
314
314
|
} | {
|
|
315
315
|
type: "TOGGLE";
|
|
@@ -321,7 +321,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
321
321
|
type: "RETRY";
|
|
322
322
|
} | {
|
|
323
323
|
type: "RESET";
|
|
324
|
-
},
|
|
324
|
+
}, xstate204.AnyEventObject>;
|
|
325
325
|
}) => {
|
|
326
326
|
consentId: string;
|
|
327
327
|
isSigned: boolean;
|
package/dist/phone.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "./index-BTaLQSj9.js";
|
|
2
|
-
import { a as phoneMachine, n as PhoneState, o as PhoneConfig, r as createPhoneManager, t as PhoneManager } from "./phoneManager-
|
|
2
|
+
import { a as phoneMachine, n as PhoneState, o as PhoneConfig, r as createPhoneManager, t as PhoneManager } from "./phoneManager-BBEdl-dP.js";
|
|
3
3
|
export { type PhoneConfig, type PhoneManager, type PhoneState, createPhoneManager, phoneMachine };
|
package/dist/phone.esm.js
CHANGED
|
@@ -2,6 +2,6 @@ import "./events-Cc1xUUgF.esm.js";
|
|
|
2
2
|
import "./src-DCc0dMkT.esm.js";
|
|
3
3
|
import "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
5
|
-
import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-
|
|
5
|
+
import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-Chu-DkAG.esm.js";
|
|
6
6
|
|
|
7
7
|
export { createPhoneManager, phoneMachine };
|