@zeniai/client-epic-state 4.14.18 → 4.14.20
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.
|
@@ -237,7 +237,7 @@ const toPayNowCutOffByMethod = (payload) => {
|
|
|
237
237
|
};
|
|
238
238
|
};
|
|
239
239
|
const toOnboardingInfo = (onboardingInfoPayload) => {
|
|
240
|
-
var _a, _b, _c, _d, _e, _f;
|
|
240
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
241
241
|
if (onboardingInfoPayload == null) {
|
|
242
242
|
return undefined;
|
|
243
243
|
}
|
|
@@ -253,9 +253,13 @@ const toOnboardingInfo = (onboardingInfoPayload) => {
|
|
|
253
253
|
null
|
|
254
254
|
? onboardingInfoPayload.zeni_subscriptions_payment_account_creation_error_message
|
|
255
255
|
: undefined,
|
|
256
|
+
pendingVerification: (_d = (onboardingInfoPayload.zeni_subscriptions_payment_account_linked_status_code ===
|
|
257
|
+
'pending_automatic_verification' ||
|
|
258
|
+
onboardingInfoPayload.zeni_subscriptions_payment_account_linked_status_code ===
|
|
259
|
+
'pending_manual_verification')) !== null && _d !== void 0 ? _d : false,
|
|
256
260
|
},
|
|
257
261
|
qboLinked: {
|
|
258
|
-
completed: (
|
|
262
|
+
completed: (_e = onboardingInfoPayload.is_onboarding_qbo_linked) !== null && _e !== void 0 ? _e : false,
|
|
259
263
|
userIds: onboardingInfoPayload.onboarding_qbo_linked_by,
|
|
260
264
|
error: false,
|
|
261
265
|
},
|
|
@@ -268,12 +272,12 @@ const toOnboardingInfo = (onboardingInfoPayload) => {
|
|
|
268
272
|
userIds: onboardingInfoPayload.onboarding_business_identity_verified_by,
|
|
269
273
|
},
|
|
270
274
|
groupCreated: {
|
|
271
|
-
completed: (
|
|
275
|
+
completed: (_f = onboardingInfoPayload.is_onboarding_email_group_created) !== null && _f !== void 0 ? _f : false,
|
|
272
276
|
userIds: onboardingInfoPayload.onboarding_email_group_creation_done_by,
|
|
273
277
|
error: false,
|
|
274
278
|
},
|
|
275
279
|
customerCreated: {
|
|
276
|
-
completed: (
|
|
280
|
+
completed: (_g = onboardingInfoPayload.is_onboarding_customer_created) !== null && _g !== void 0 ? _g : false,
|
|
277
281
|
userIds: onboardingInfoPayload.onboarding_customer_creation_done_by,
|
|
278
282
|
error: false,
|
|
279
283
|
},
|
|
@@ -244,8 +244,9 @@ export interface CompanyConfigInfo {
|
|
|
244
244
|
export interface OnboardingStepInfo {
|
|
245
245
|
completed: boolean;
|
|
246
246
|
error: boolean;
|
|
247
|
-
errorDetails?: OnboardingStepErrorDetails;
|
|
248
247
|
userIds: ID[];
|
|
248
|
+
errorDetails?: OnboardingStepErrorDetails;
|
|
249
|
+
pendingVerification?: boolean;
|
|
249
250
|
}
|
|
250
251
|
export interface IdentityVerificationStatus {
|
|
251
252
|
status: OnboardingIdentityVerficationStatus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.20",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|