@zeniai/client-epic-state 4.8.86 → 4.8.87

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.
Files changed (132) hide show
  1. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -1
  2. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +4 -3
  3. package/lib/entity/account/accountSelector.d.ts +6 -6
  4. package/lib/entity/account/accountState.d.ts +3 -3
  5. package/lib/entity/account/accountState.js +1 -0
  6. package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +2 -2
  7. package/lib/entity/accountGroup/accountGroupSelector.d.ts +44 -44
  8. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  9. package/lib/entity/class/classReducer.d.ts +4 -4
  10. package/lib/entity/class/classState.d.ts +1 -1
  11. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
  12. package/lib/entity/forecast/forecastState.d.ts +1 -1
  13. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +6 -1
  14. package/lib/entity/jeSchedules/jeSchedulesPayload.js +11 -1
  15. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +2 -1
  16. package/lib/entity/jeSchedules/jeSchedulesSelector.js +2 -1
  17. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +5 -1
  18. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +4 -4
  19. package/lib/entity/jeSchedules/jeSchedulesTypes.js +1 -1
  20. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  21. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  22. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  23. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  24. package/lib/entity/snackbar/snackbarTypes.js +1 -0
  25. package/lib/entity/tenant/clearAllEpic.d.ts +2 -1
  26. package/lib/entity/tenant/clearAllEpic.js +2 -0
  27. package/lib/entity/tenant/tenantSelector.d.ts +12 -4
  28. package/lib/entity/tenant/tenantSelector.js +95 -31
  29. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.d.ts +1 -0
  30. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.js +1 -0
  31. package/lib/entity/transaction/stateTypes/scheduleTransaction.d.ts +1 -0
  32. package/lib/epic.d.ts +7 -1
  33. package/lib/epic.js +7 -1
  34. package/lib/index.d.ts +21 -13
  35. package/lib/index.js +48 -20
  36. package/lib/init.js +1 -1
  37. package/lib/reducer.d.ts +6 -0
  38. package/lib/reducer.js +6 -0
  39. package/lib/view/accountList/accountListReducer.d.ts +2 -2
  40. package/lib/view/accountList/accountListReducer.js +2 -1
  41. package/lib/view/accountList/accountListState.d.ts +1 -1
  42. package/lib/view/accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload.d.ts +1 -1
  43. package/lib/view/auditReportView/auditReportViewHelper.d.ts +12 -0
  44. package/lib/view/auditReportView/auditReportViewHelper.js +79 -0
  45. package/lib/view/auditReportView/auditReportViewPayload.d.ts +53 -0
  46. package/lib/view/auditReportView/auditReportViewPayload.js +2 -0
  47. package/lib/view/auditReportView/auditReportViewReducer.d.ts +27 -0
  48. package/lib/view/auditReportView/auditReportViewReducer.js +121 -0
  49. package/lib/view/auditReportView/auditReportViewSelector.d.ts +22 -0
  50. package/lib/view/auditReportView/auditReportViewSelector.js +34 -0
  51. package/lib/view/auditReportView/auditReportViewState.d.ts +71 -0
  52. package/lib/view/auditReportView/auditReportViewState.js +22 -0
  53. package/lib/view/auditReportView/epics/fetchAuditReportGroupViewEpic.d.ts +7 -0
  54. package/lib/view/auditReportView/epics/fetchAuditReportGroupViewEpic.js +54 -0
  55. package/lib/view/auditReportView/epics/fetchAuditRuleGroupViewEpic.d.ts +7 -0
  56. package/lib/view/auditReportView/epics/fetchAuditRuleGroupViewEpic.js +39 -0
  57. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  58. package/lib/view/cardBalance/cardBalanceSelector.d.ts +3 -3
  59. package/lib/view/cashBalance/cashBalanceSelector.d.ts +3 -3
  60. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  61. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  62. package/lib/view/companyView/types/cockpitTypes.d.ts +4 -2
  63. package/lib/view/companyView/types/cockpitTypes.js +10 -1
  64. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  65. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  66. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  67. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  68. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  69. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  70. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  71. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  72. package/lib/view/referralView/epics/fetchReferralsEpic.d.ts +7 -0
  73. package/lib/view/referralView/epics/fetchReferralsEpic.js +36 -0
  74. package/lib/view/referralView/epics/fetchRewardsPlanEpic.d.ts +7 -0
  75. package/lib/view/referralView/epics/fetchRewardsPlanEpic.js +41 -0
  76. package/lib/view/referralView/epics/resendReferralInviteEpic.d.ts +8 -0
  77. package/lib/view/referralView/epics/resendReferralInviteEpic.js +39 -0
  78. package/lib/view/referralView/epics/sendReferralInviteEpic.d.ts +8 -0
  79. package/lib/view/referralView/epics/sendReferralInviteEpic.js +44 -0
  80. package/lib/view/referralView/referralPayload.d.ts +43 -0
  81. package/lib/view/referralView/referralPayload.js +33 -0
  82. package/lib/view/referralView/referralReducer.d.ts +23 -0
  83. package/lib/view/referralView/referralReducer.js +167 -0
  84. package/lib/view/referralView/referralSelector.d.ts +23 -0
  85. package/lib/view/referralView/referralSelector.js +88 -0
  86. package/lib/view/referralView/referralState.d.ts +55 -0
  87. package/lib/view/referralView/referralState.js +40 -0
  88. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  89. package/lib/view/reviewCompanyView/fetchReviewCompanyViewEpic.js +1 -1
  90. package/lib/view/reviewCompanyView/reviewCompanyPayload.d.ts +25 -1
  91. package/lib/view/reviewCompanyView/reviewCompanyViewSelector.d.ts +1 -0
  92. package/lib/view/reviewCompanyView/reviewCompanyViewSelector.js +31 -8
  93. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +12 -4
  94. package/lib/view/reviewCompanyView/reviewCompanyViewState.js +15 -5
  95. package/lib/view/scheduleView/scheduleDetailView/epics/createNewSchedulesEpic.js +9 -2
  96. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +6 -6
  97. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.d.ts +3 -2
  98. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +13 -5
  99. package/lib/view/scheduleView/scheduleDetailView/epics/initializeScheduleDetailLocalDataEpic.js +11 -8
  100. package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +4 -4
  101. package/lib/view/scheduleView/scheduleDetailView/epics/updateAmountsInScheduleDetailEpic.js +8 -6
  102. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.d.ts +7 -5
  103. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +37 -6
  104. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +8 -4
  105. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +53 -4
  106. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +21 -11
  107. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +66 -35
  108. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +12 -3
  109. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +31 -14
  110. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.d.ts +19 -5
  111. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.js +0 -3
  112. package/lib/view/scheduleView/scheduleListView/epics/fetchDownloadSchedulesEpic.js +4 -3
  113. package/lib/view/scheduleView/scheduleListView/epics/fetchScheduleListEpic.d.ts +0 -10
  114. package/lib/view/scheduleView/scheduleListView/epics/fetchScheduleListEpic.js +7 -24
  115. package/lib/view/scheduleView/scheduleListView/epics/fetchSchedulesAccountEpic.js +2 -5
  116. package/lib/view/scheduleView/scheduleListView/scheduleListHelper.d.ts +7 -5
  117. package/lib/view/scheduleView/scheduleListView/scheduleListHelper.js +37 -28
  118. package/lib/view/scheduleView/scheduleListView/scheduleListReducer.d.ts +27 -18
  119. package/lib/view/scheduleView/scheduleListView/scheduleListReducer.js +109 -76
  120. package/lib/view/scheduleView/scheduleListView/scheduleListSelector.d.ts +4 -8
  121. package/lib/view/scheduleView/scheduleListView/scheduleListSelector.js +42 -40
  122. package/lib/view/scheduleView/scheduleListView/scheduleListState.d.ts +16 -13
  123. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +5 -5
  124. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.js +3 -1
  125. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  126. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  127. package/lib/view/topEx/topExSelector.d.ts +2 -2
  128. package/lib/view/transactionList/transactionListReducer.d.ts +12 -12
  129. package/lib/view/vendorList/vendorListSelector.d.ts +2 -2
  130. package/lib/view/vendorList/vendorListSelector.js +1 -0
  131. package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.d.ts +1 -1
  132. package/package.json +2 -2
@@ -15,7 +15,7 @@ export declare const getCashInCashOut: (accountState: AccountState, accountGroup
15
15
  firstMonthOfFY: 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
16
16
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
17
17
  availableNumberOfPeriods: number | undefined;
18
- reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses";
18
+ reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets";
19
19
  reportTitle: string;
20
20
  version: string | number | undefined;
21
21
  status: import("../..").Status | undefined;
@@ -12,7 +12,7 @@ export declare const getCashPosition: (accountState: AccountState, cashPositionS
12
12
  firstMonthOfFY: 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
13
13
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
14
14
  availableNumberOfPeriods: number | undefined;
15
- reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses";
15
+ reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets";
16
16
  reportTitle: string;
17
17
  version: string | number | undefined;
18
18
  status: import("../..").Status | undefined;
@@ -2,11 +2,11 @@ import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderType
2
2
  import { SubscriptionViewSortKey } from '../../subscriptionView/types/subscriptionTypes';
3
3
  import { CockpitDownloadTabsID, CockpitTabsFileType } from './cockpitTabsID';
4
4
  export declare const ALL_PORTFOLIO_SORT_KEYS: readonly ["companyName", "cashBalance", "runway", "expenses", "revenues", "netIncome"];
5
- export declare const ALL_MANAGEMENT_SORT_KEYS: readonly ["companyName", "task", "status", "group", "plans", "controller", "reviewer", "preparer", "apAnalyst", "reportSent", "taxStatus", "taxLead", "monthlyRecurringRevenue", "annualRecurringRevenue", "notes", "satisfaction"];
5
+ export declare const ALL_MANAGEMENT_SORT_KEYS: readonly ["companyName", "task", "status", "group", "plans", "controller", "reviewer", "preparer", "apAnalyst", "reportSent", "taxStatus", "taxLead", "monthlyRecurringRevenue", "annualRecurringRevenue", "notes", "satisfaction", "bookCloseDate"];
6
6
  export declare const ALL_ONBOARDING_SORT_KEYS: readonly ["companyName", "bankAccountLinked", "qboLinked", "identityVerified", "businessVerified", "groupCreated", "customerCreated", "enroller", "notes", "invite"];
7
7
  export declare const ALL_HEALTH_SORT_KEYS: readonly ["companyName", "issues", "productVerticals", "runway", "churnProbability", "netPromoterScore", "controller", "lastReportSent", "subscriptionDate", "renewalDate"];
8
8
  export declare const toPortfolioSortKeyType: (v: string) => "expenses" | "runway" | "cashBalance" | "netIncome" | "companyName" | "revenues";
9
- export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "controller" | "preparer" | "reviewer" | "companyName" | "monthlyRecurringRevenue" | "annualRecurringRevenue" | "taxStatus" | "plans" | "notes" | "task" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
9
+ export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "controller" | "preparer" | "reviewer" | "companyName" | "monthlyRecurringRevenue" | "annualRecurringRevenue" | "taxStatus" | "plans" | "notes" | "task" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
10
10
  export declare const toOnboardingSortKeyType: (v: string) => "companyName" | "identityVerified" | "businessVerified" | "bankAccountLinked" | "qboLinked" | "groupCreated" | "customerCreated" | "notes" | "enroller" | "invite";
11
11
  export declare const toHealthSortKeyType: (v: string) => "runway" | "controller" | "companyName" | "issues" | "productVerticals" | "churnProbability" | "netPromoterScore" | "lastReportSent" | "subscriptionDate" | "renewalDate";
12
12
  export declare type PortfolioViewSortKey = ReturnType<typeof toPortfolioSortKeyType>;
@@ -41,3 +41,5 @@ export interface DownloadCockpitTabOptions {
41
41
  tabs: CockpitDownloadTabsID[];
42
42
  filterByTabs: Record<CockpitDownloadTabsID, FilterCombinationsByTabs>;
43
43
  }
44
+ export declare const ALL_ONBOARDING_STEP_KEYS: readonly ["bankAccountLinked", "qboLinked", "identityVerified", "businessVerified"];
45
+ export declare const toOnboardingStepKeyType: (v: string) => "identityVerified" | "businessVerified" | "bankAccountLinked" | "qboLinked";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toManagementStatusCodeType = exports.MANAGEMENT_STATUS_CODES = exports.toHealthSortKeyType = exports.toOnboardingSortKeyType = exports.toManagementSortKeyType = exports.toPortfolioSortKeyType = exports.ALL_HEALTH_SORT_KEYS = exports.ALL_ONBOARDING_SORT_KEYS = exports.ALL_MANAGEMENT_SORT_KEYS = exports.ALL_PORTFOLIO_SORT_KEYS = void 0;
3
+ exports.toOnboardingStepKeyType = exports.ALL_ONBOARDING_STEP_KEYS = exports.toManagementStatusCodeType = exports.MANAGEMENT_STATUS_CODES = exports.toHealthSortKeyType = exports.toOnboardingSortKeyType = exports.toManagementSortKeyType = exports.toPortfolioSortKeyType = exports.ALL_HEALTH_SORT_KEYS = exports.ALL_ONBOARDING_SORT_KEYS = exports.ALL_MANAGEMENT_SORT_KEYS = exports.ALL_PORTFOLIO_SORT_KEYS = void 0;
4
4
  const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
5
5
  exports.ALL_PORTFOLIO_SORT_KEYS = [
6
6
  'companyName',
@@ -27,6 +27,7 @@ exports.ALL_MANAGEMENT_SORT_KEYS = [
27
27
  'annualRecurringRevenue',
28
28
  'notes',
29
29
  'satisfaction',
30
+ 'bookCloseDate',
30
31
  ];
31
32
  exports.ALL_ONBOARDING_SORT_KEYS = [
32
33
  'companyName',
@@ -69,3 +70,11 @@ exports.MANAGEMENT_STATUS_CODES = [
69
70
  ];
70
71
  const toManagementStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.MANAGEMENT_STATUS_CODES);
71
72
  exports.toManagementStatusCodeType = toManagementStatusCodeType;
73
+ exports.ALL_ONBOARDING_STEP_KEYS = [
74
+ 'bankAccountLinked',
75
+ 'qboLinked',
76
+ 'identityVerified',
77
+ 'businessVerified',
78
+ ];
79
+ const toOnboardingStepKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_ONBOARDING_STEP_KEYS);
80
+ exports.toOnboardingStepKeyType = toOnboardingStepKeyType;
@@ -1,11 +1,11 @@
1
1
  import { DashboardState } from './dashboardState';
2
2
  export declare const initialState: DashboardState;
3
- export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses")[] | undefined], {
3
+ export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets")[] | undefined], {
4
4
  userId: string;
5
5
  companyId: string;
6
6
  fetchFullReport: any;
7
7
  cacheOverride: any;
8
- excludeResources: ("cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses")[];
8
+ excludeResources: ("cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets")[];
9
9
  }, string, never, never>, clearDashboard: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
10
10
  declare const _default: import("@reduxjs/toolkit").Reducer<DashboardState, import("@reduxjs/toolkit").AnyAction>;
11
11
  export default _default;
@@ -16,7 +16,7 @@ export declare const fetchFinanceStatement: import("@reduxjs/toolkit").ActionCre
16
16
  thisPeriod: TimeframeTick;
17
17
  coaBalances: COABalance[];
18
18
  maxNumOfPeriodsToHighlight: number;
19
- }, string>, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, string>, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses", string>, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
19
+ }, string>, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, string>, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets", string>, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
20
20
  firstMonthOfFY: Month;
21
21
  isCompareModeOn: boolean;
22
22
  additionalBalances: COABalanceType[];
@@ -4,9 +4,9 @@ import { ID } from '../../commonStateTypes/common';
4
4
  import { ZeniAPIStatus } from '../../responsePayload';
5
5
  import { VendorReviewViewAllRecommendationsPayload } from '../vendorReviewView/common/payload/commonTypes';
6
6
  export declare const initialState: GlobalMerchantViewState;
7
- export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | undefined], {
7
+ export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | undefined], {
8
8
  merchantId: string | undefined;
9
- context: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | undefined;
9
+ context: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | undefined;
10
10
  }, string, never, never>, createGlobalMerchantSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
11
11
  merchantId: ID;
12
12
  }, string>, createGlobalMerchantFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -26,7 +26,7 @@ export declare const changeZeniPersonRolesEpic: (actions$: ActionsObservable<Act
26
26
  type: string;
27
27
  } | {
28
28
  payload: {
29
- messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved";
29
+ messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved" | "referral_invite_sent";
30
30
  messageText: "failed" | "success";
31
31
  type: import("../..").SnackbarMessageType;
32
32
  showStatusIcon?: boolean | undefined;
@@ -18,7 +18,7 @@ export declare const deletePersonEpic: (actions$: ActionsObservable<ActionType>,
18
18
  type: string;
19
19
  } | {
20
20
  payload: {
21
- messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved";
21
+ messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved" | "referral_invite_sent";
22
22
  messageText: "failed" | "success";
23
23
  type: import("../..").SnackbarMessageType;
24
24
  showStatusIcon?: boolean | undefined;
@@ -35,7 +35,7 @@ export declare const invitePeopleEpic: (actions$: ActionsObservable<ActionType>,
35
35
  type: string;
36
36
  } | {
37
37
  payload: {
38
- messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved";
38
+ messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved" | "referral_invite_sent";
39
39
  messageText: "failed" | "success";
40
40
  type: import("../..").SnackbarMessageType;
41
41
  showStatusIcon?: boolean | undefined;
@@ -32,7 +32,7 @@ export declare const inviteZeniPeopleEpic: (actions$: ActionsObservable<ActionTy
32
32
  type: string;
33
33
  } | {
34
34
  payload: {
35
- messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved";
35
+ messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved" | "referral_invite_sent";
36
36
  messageText: "failed" | "success";
37
37
  type: import("../..").SnackbarMessageType;
38
38
  showStatusIcon?: boolean | undefined;
@@ -13,7 +13,7 @@ export declare const resendInviteEpic: (actions$: ActionsObservable<ActionType>,
13
13
  type: string;
14
14
  } | {
15
15
  payload: {
16
- messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved";
16
+ messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved" | "referral_invite_sent";
17
17
  messageText: "failed" | "success";
18
18
  type: import("../..").SnackbarMessageType;
19
19
  showStatusIcon?: boolean | undefined;
@@ -0,0 +1,7 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { RootState } from '../../../reducer';
4
+ import { ZeniAPI } from '../../../zeniAPI';
5
+ import { updateReferrals, fetchReferrals, updateReferralsFailure } from '../referralReducer';
6
+ export declare type ActionType = ReturnType<typeof updateReferrals> | ReturnType<typeof fetchReferrals> | ReturnType<typeof updateReferralsFailure>;
7
+ export declare const fetchReferralsEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchReferralsEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const responsePayload_1 = require("../../../responsePayload");
7
+ const referralReducer_1 = require("../referralReducer");
8
+ const fetchReferralsEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(referralReducer_1.fetchReferrals.match), (0, operators_1.mergeMap)((action) => {
9
+ const { cacheOverride } = action.payload;
10
+ const state = state$.value;
11
+ const fetchState = state.referralViewState.fetchState;
12
+ if (cacheOverride === true || fetchState === 'Not-Started') {
13
+ const { userId, sessionId } = zeniAPI;
14
+ const headers = {
15
+ 'zeni-user-id': userId,
16
+ 'zeni-tenant-id': '',
17
+ 'zeni-session-id': sessionId,
18
+ };
19
+ return zeniAPI
20
+ .getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/company-referals`, headers)
21
+ .pipe((0, operators_1.mergeMap)((response) => {
22
+ if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
23
+ const actions = [(0, referralReducer_1.updateReferrals)(response.data)];
24
+ return (0, rxjs_1.from)(actions);
25
+ }
26
+ else {
27
+ return (0, rxjs_1.of)((0, referralReducer_1.updateReferralsFailure)(response.status));
28
+ }
29
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, referralReducer_1.updateReferralsFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Fetch referrals REST API call errored out' +
30
+ JSON.stringify(error))))));
31
+ }
32
+ else {
33
+ return [];
34
+ }
35
+ }));
36
+ exports.fetchReferralsEpic = fetchReferralsEpic;
@@ -0,0 +1,7 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { RootState } from '../../../reducer';
4
+ import { ZeniAPI } from '../../../zeniAPI';
5
+ import { fetchRewardsPlan, updateRewardsPlan, updateRewardsPlanFailure } from '../referralReducer';
6
+ export declare type ActionType = ReturnType<typeof updateRewardsPlan> | ReturnType<typeof fetchRewardsPlan> | ReturnType<typeof updateRewardsPlanFailure>;
7
+ export declare const fetchRewardsPlanEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchRewardsPlanEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const responsePayload_1 = require("../../../responsePayload");
7
+ const referralReducer_1 = require("../referralReducer");
8
+ const fetchRewardsPlanEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(referralReducer_1.fetchRewardsPlan.match), (0, operators_1.mergeMap)((action) => {
9
+ const { cacheOverride } = action.payload;
10
+ const state = state$.value;
11
+ const fetchState = state.referralViewState.rewardsPlanFetchState.fetchState;
12
+ if (cacheOverride === true || fetchState === 'Not-Started') {
13
+ const { userId, sessionId } = zeniAPI;
14
+ const headers = {
15
+ 'zeni-user-id': userId,
16
+ 'zeni-tenant-id': '',
17
+ 'zeni-session-id': sessionId,
18
+ };
19
+ const payload = {
20
+ is_primary_refer_reward_plan: true,
21
+ };
22
+ return zeniAPI
23
+ .getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/company-refer-reward-plan?query=${encodeURIComponent(JSON.stringify(payload))}`, headers)
24
+ .pipe((0, operators_1.mergeMap)((response) => {
25
+ if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
26
+ const actions = [
27
+ (0, referralReducer_1.updateRewardsPlan)(response.data),
28
+ ];
29
+ return (0, rxjs_1.from)(actions);
30
+ }
31
+ else {
32
+ return (0, rxjs_1.of)((0, referralReducer_1.updateRewardsPlanFailure)(response.status));
33
+ }
34
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, referralReducer_1.updateRewardsPlanFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Fetch rewards plan REST API call errored out' +
35
+ JSON.stringify(error))))));
36
+ }
37
+ else {
38
+ return [];
39
+ }
40
+ }));
41
+ exports.fetchRewardsPlanEpic = fetchRewardsPlanEpic;
@@ -0,0 +1,8 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { RootState } from '../../../reducer';
4
+ import { ZeniAPI } from '../../../zeniAPI';
5
+ import { resendReferralInvite, resendReferralInviteSuccess, sendReferralInviteFailure } from '../referralReducer';
6
+ import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
7
+ export declare type ActionType = ReturnType<typeof resendReferralInvite> | ReturnType<typeof sendReferralInviteFailure> | ReturnType<typeof resendReferralInviteSuccess> | ReturnType<typeof openSnackbar>;
8
+ export declare const resendReferralInviteEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resendReferralInviteEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const responsePayload_1 = require("../../../responsePayload");
7
+ const referralReducer_1 = require("../referralReducer");
8
+ const snackbarReducer_1 = require("../../../entity/snackbar/snackbarReducer");
9
+ const resendReferralInviteEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(referralReducer_1.resendReferralInvite.match), (0, operators_1.switchMap)((action) => {
10
+ const { userId, sessionId } = zeniAPI;
11
+ const headers = {
12
+ 'zeni-user-id': userId,
13
+ 'zeni-tenant-id': '',
14
+ 'zeni-session-id': sessionId,
15
+ };
16
+ return zeniAPI
17
+ .putAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/company-referals`, { reinvite_to: action.payload.emailId }, headers)
18
+ .pipe((0, operators_1.mergeMap)((response) => {
19
+ if ((0, responsePayload_1.isSuccessStatus)(response) && response.data != null) {
20
+ const actions = [
21
+ (0, referralReducer_1.resendReferralInviteSuccess)({
22
+ emailId: action.payload.emailId,
23
+ timestamp: response.data.last_invite_timestamp,
24
+ }),
25
+ (0, snackbarReducer_1.openSnackbar)({
26
+ messageSection: 'referral_invite_sent',
27
+ messageText: 'success',
28
+ type: 'success',
29
+ }),
30
+ ];
31
+ return actions;
32
+ }
33
+ else {
34
+ return (0, rxjs_1.of)((0, referralReducer_1.sendReferralInviteFailure)(response.status));
35
+ }
36
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, referralReducer_1.sendReferralInviteFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'Resend referral REST API call errored out' +
37
+ JSON.stringify(error))))));
38
+ }));
39
+ exports.resendReferralInviteEpic = resendReferralInviteEpic;
@@ -0,0 +1,8 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { RootState } from '../../../reducer';
4
+ import { ZeniAPI } from '../../../zeniAPI';
5
+ import { sendReferralInvite, sendReferralInviteSuccess, sendReferralInviteFailure } from '../referralReducer';
6
+ import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
7
+ export declare type ActionType = ReturnType<typeof sendReferralInvite> | ReturnType<typeof sendReferralInviteFailure> | ReturnType<typeof sendReferralInviteSuccess> | ReturnType<typeof openSnackbar>;
8
+ export declare const sendReferralInviteEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendReferralInviteEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const responsePayload_1 = require("../../../responsePayload");
7
+ const referralReducer_1 = require("../referralReducer");
8
+ const sendReferralInviteEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(referralReducer_1.sendReferralInvite.match), (0, operators_1.switchMap)(() => {
9
+ const { referralViewState } = state$.value;
10
+ const referralFormLocalData = referralViewState.referralFormLocalData;
11
+ const referRewardsPlanId = referralViewState.rewardsPlan.referRewardPlanId;
12
+ const invitePayload = Object.assign({}, toInvitePayloadFromLocalData(referralFormLocalData, referRewardsPlanId));
13
+ const { userId, sessionId } = zeniAPI;
14
+ const headers = {
15
+ 'zeni-user-id': userId,
16
+ 'zeni-tenant-id': '',
17
+ 'zeni-session-id': sessionId,
18
+ };
19
+ return zeniAPI
20
+ .postAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/company-referals`, invitePayload, headers)
21
+ .pipe((0, operators_1.mergeMap)((response) => {
22
+ if ((0, responsePayload_1.isSuccessStatus)(response)) {
23
+ const actions = [(0, referralReducer_1.sendReferralInviteSuccess)()];
24
+ return actions;
25
+ }
26
+ else {
27
+ return (0, rxjs_1.of)((0, referralReducer_1.sendReferralInviteFailure)(response.status));
28
+ }
29
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, referralReducer_1.sendReferralInviteFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'Send referral REST API call errored out' +
30
+ JSON.stringify(error))))));
31
+ }));
32
+ exports.sendReferralInviteEpic = sendReferralInviteEpic;
33
+ const toInvitePayloadFromLocalData = (inviteCompanyLocalData, referRewardsPlanId) => {
34
+ const invitedCompanies = inviteCompanyLocalData.map((local) => {
35
+ return {
36
+ company: local.companyName,
37
+ email_ids: local.emailIds,
38
+ refer_reward_plan_id: referRewardsPlanId,
39
+ };
40
+ });
41
+ return {
42
+ referrals: invitedCompanies,
43
+ };
44
+ };
@@ -0,0 +1,43 @@
1
+ import { AmountPayload } from '../../entity/reimbursement/reimbursementPayload';
2
+ import { ZeniAPIResponse } from '../../responsePayload';
3
+ import { ReferralInvitation } from './referralState';
4
+ export interface ReferralSubmitPayload {
5
+ referal_unique_link: string;
6
+ }
7
+ export interface ReferralResubmitPayload {
8
+ last_invite_timestamp?: string;
9
+ }
10
+ export declare type ReferralSubmitResponse = ZeniAPIResponse<ReferralSubmitPayload>;
11
+ export declare type ReferralResubmitResponse = ZeniAPIResponse<ReferralResubmitPayload>;
12
+ export interface FetchRewardsPayload {
13
+ pending_bonus: AmountPayload;
14
+ earned_bonus: AmountPayload;
15
+ pending_referals: number;
16
+ static_referal_link: string;
17
+ referees: InviteePayload[];
18
+ }
19
+ export interface FetchRewardsPlanPayload {
20
+ create_time: string | null;
21
+ is_deleted: boolean | null;
22
+ is_primary: boolean | null;
23
+ period: number;
24
+ period_unit: string;
25
+ refer_reward_plan_id: string;
26
+ referral_plan_amount: AmountPayload;
27
+ update_time: string | null;
28
+ }
29
+ export interface InviteePayload {
30
+ company_name: string;
31
+ status_code: string;
32
+ invitees_id: string;
33
+ is_active: boolean;
34
+ last_invite_timestamp: string | null;
35
+ referee_email_id: string;
36
+ reward_plan: string;
37
+ user_id: string;
38
+ voucher_id: string;
39
+ referral_amount: AmountPayload;
40
+ }
41
+ export declare type FetchRewardsResponse = ZeniAPIResponse<FetchRewardsPayload>;
42
+ export declare type FetchRewardsPlanResponse = ZeniAPIResponse<FetchRewardsPlanPayload>;
43
+ export declare const toReferralInvitation: (payload: InviteePayload[]) => ReferralInvitation[];
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toReferralInvitation = void 0;
4
+ const zeniDayJS_1 = require("../../zeniDayJS");
5
+ const toReferralInvitation = (payload) => {
6
+ const invitations = [];
7
+ payload.map((invitee) => {
8
+ invitations.push({
9
+ companyName: invitee.company_name,
10
+ statusCode: invitee.status_code,
11
+ inviteesId: invitee.invitees_id,
12
+ isActive: invitee.is_active,
13
+ lastInviteTimestamp: invitee.last_invite_timestamp != null
14
+ ? (0, zeniDayJS_1.date)(invitee.last_invite_timestamp)
15
+ : undefined,
16
+ refereeEmailId: invitee.referee_email_id,
17
+ rewardPlan: invitee.reward_plan,
18
+ userId: invitee.user_id,
19
+ voucherId: invitee.voucher_id,
20
+ amount: {
21
+ amount: invitee.referral_amount.amount,
22
+ currencyCode: invitee.referral_amount.currency_code,
23
+ currencySymbol: invitee.referral_amount.currency_symbol,
24
+ },
25
+ resendInviteStatus: {
26
+ fetchState: 'Not-Started',
27
+ error: undefined,
28
+ },
29
+ });
30
+ });
31
+ return invitations;
32
+ };
33
+ exports.toReferralInvitation = toReferralInvitation;
@@ -0,0 +1,23 @@
1
+ import { ZeniAPIStatus } from '../../responsePayload';
2
+ import { InviteCompanyLocalData, ReferralListViewSortKey, ReferralViewState } from './referralState';
3
+ import { FetchRewardsPayload, FetchRewardsPlanPayload } from './referralPayload';
4
+ import { SortOrder } from '../../commonStateTypes/selectorTypes/sortOrderTypes';
5
+ export declare const initialState: ReferralViewState;
6
+ export declare const fetchReferrals: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride?: any], {
7
+ cacheOverride: any;
8
+ }, string, never, never>, updateReferrals: import("@reduxjs/toolkit").ActionCreatorWithPayload<FetchRewardsPayload, string>, updateReferralListSortUiState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
9
+ sortOrder: SortOrder;
10
+ sortkey: ReferralListViewSortKey;
11
+ scrollYOffset?: number | undefined;
12
+ }, string>, updateReferralsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, saveReferralFormDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
13
+ localData: InviteCompanyLocalData[];
14
+ }, string>, clearReferralFormDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendReferralInvite: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendReferralInviteSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, closeReferralInviteConfirmationPopup: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendReferralInviteFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, resendReferralInvite: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[emailId: string], {
15
+ emailId: string;
16
+ }, string, never, never>, resendReferralInviteSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
17
+ emailId: string;
18
+ timestamp?: string | undefined;
19
+ }, string>, clearReferrals: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, fetchRewardsPlan: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride?: any], {
20
+ cacheOverride: any;
21
+ }, string, never, never>, updateRewardsPlan: import("@reduxjs/toolkit").ActionCreatorWithPayload<FetchRewardsPlanPayload, string>, updateRewardsPlanFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>;
22
+ declare const _default: import("@reduxjs/toolkit").Reducer<ReferralViewState, import("@reduxjs/toolkit").AnyAction>;
23
+ export default _default;