@zeniai/client-epic-state 4.19.19 → 4.19.20-beta0ND

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.
@@ -298,6 +298,8 @@ export interface OnboardingInfoPayload {
298
298
  zeni_subscriptions_payment_account_linked_status_code: string;
299
299
  zeni_subscriptions_payment_account_method_type_code: string;
300
300
  onboarding_customer_user_ids?: ID[];
301
+ onboarding_time_since_quote_signed?: string;
302
+ onboarding_to_quote_sign_minutes?: number;
301
303
  }
302
304
  interface CompanyOnboardingInfoPayload {
303
305
  is_onboarding_company_details_step_completed: boolean;
@@ -283,7 +283,7 @@ const toPayNowCutOffByMethod = (payload) => {
283
283
  };
284
284
  };
285
285
  const toOnboardingInfo = (onboardingInfoPayload) => {
286
- var _a, _b, _c, _d, _e, _f, _g, _h;
286
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
287
287
  if (onboardingInfoPayload == null) {
288
288
  return undefined;
289
289
  }
@@ -334,6 +334,8 @@ const toOnboardingInfo = (onboardingInfoPayload) => {
334
334
  onboardingCustomerUserIds: onboardingInfoPayload.onboarding_customer_user_ids != null
335
335
  ? onboardingInfoPayload.onboarding_customer_user_ids
336
336
  : [],
337
+ onboardingTimeSinceQuoteSigned: (_j = onboardingInfoPayload.onboarding_time_since_quote_signed) !== null && _j !== void 0 ? _j : '',
338
+ onboardingToQuoteSignMinutes: (_k = onboardingInfoPayload.onboarding_to_quote_sign_minutes) !== null && _k !== void 0 ? _k : 0,
337
339
  };
338
340
  };
339
341
  exports.toOnboardingInfo = toOnboardingInfo;
@@ -306,6 +306,8 @@ export interface OnboardingInfo extends OnboardingStepsInfo {
306
306
  accountingConnectionCreationMode?: AccountingConnectionCreationMode;
307
307
  inviteAccepted?: boolean;
308
308
  inviteSent?: boolean;
309
+ onboardingTimeSinceQuoteSigned?: string;
310
+ onboardingToQuoteSignMinutes?: number;
309
311
  }
310
312
  export interface CompanyOnboardingInfo {
311
313
  isOnboardingCompanyDetailsCompleted: boolean;
@@ -83,7 +83,7 @@ export declare const isZeniDomainTenant: (currentTenant: TenantView) => boolean;
83
83
  export declare const isTenantUsingZeniCOA: (currentTenant: TenantView) => boolean;
84
84
  export declare const getCurrentTenantExternalConnections: (tenantState: TenantState, companyState: CompanyState) => TenantExternalConnections | undefined;
85
85
  export declare const toTenantCoreDetailsView: (tenantsBaseView: TenantBaseView[]) => TenantCoreDetailsView[];
86
- export declare const isTenantBankingOnly: (tenant: Tenant | undefined) => boolean;
86
+ export declare const isTenantBankingOnly: (isDebitCardFlagEnabled: boolean, tenant: Tenant | undefined) => boolean;
87
87
  export declare const isTenantCardsOnly: (tenant: Tenant | undefined) => boolean;
88
88
  export declare const isTenantBookkeepingEnabled: (tenant: Tenant | undefined) => boolean;
89
89
  export declare const isOtherProductsEnabledForTenant: (tenant: Tenant | undefined) => boolean;
@@ -259,12 +259,14 @@ const toTenantCoreDetailsView = (tenantsBaseView) => {
259
259
  });
260
260
  };
261
261
  exports.toTenantCoreDetailsView = toTenantCoreDetailsView;
262
- const isTenantBankingOnly = (tenant) => {
262
+ const isTenantBankingOnly = (isDebitCardFlagEnabled, tenant) => {
263
263
  // if the tenants API takes time, tenant can be non null with productSettings as null
264
264
  return tenant != null && tenant.productSettings != null
265
- ? tenant.productSettings.isBankingEnabled === true &&
266
- tenant.productSettings.isBookkeepingEnabled === false &&
267
- tenant.productSettings.isSpendManagementEnabled === false
265
+ ? //Banking will be enabled if debit card statsig flag is enabled
266
+ (tenant.productSettings.isBankingEnabled === true ||
267
+ isDebitCardFlagEnabled) &&
268
+ tenant.productSettings.isBookkeepingEnabled === false &&
269
+ tenant.productSettings.isSpendManagementEnabled === false
268
270
  : false;
269
271
  };
270
272
  exports.isTenantBankingOnly = isTenantBankingOnly;