@zeniai/client-epic-state 4.8.75 → 4.8.76

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 (58) hide show
  1. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +0 -1
  2. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +3 -3
  3. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  4. package/lib/entity/snackbar/snackbarTypes.js +0 -1
  5. package/lib/entity/tenant/clearAllEpic.d.ts +1 -2
  6. package/lib/entity/tenant/clearAllEpic.js +0 -2
  7. package/lib/epic.d.ts +1 -7
  8. package/lib/epic.js +1 -7
  9. package/lib/index.d.ts +7 -15
  10. package/lib/index.js +12 -35
  11. package/lib/init.js +1 -1
  12. package/lib/reducer.d.ts +0 -6
  13. package/lib/reducer.js +0 -6
  14. package/lib/view/apAgingView/apAgingReport/fetchApAgingEpic.js +0 -1
  15. package/lib/view/companyView/types/cockpitTypes.d.ts +0 -2
  16. package/lib/view/companyView/types/cockpitTypes.js +1 -9
  17. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  18. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  19. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  20. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  21. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  22. package/lib/view/reviewCompanyView/reviewCompanyPayload.d.ts +1 -25
  23. package/lib/view/reviewCompanyView/reviewCompanyViewSelector.d.ts +0 -1
  24. package/lib/view/reviewCompanyView/reviewCompanyViewSelector.js +8 -31
  25. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +4 -12
  26. package/lib/view/reviewCompanyView/reviewCompanyViewState.js +5 -15
  27. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  28. package/package.json +1 -1
  29. package/lib/view/auditReportView/auditReportViewHelper.d.ts +0 -12
  30. package/lib/view/auditReportView/auditReportViewHelper.js +0 -79
  31. package/lib/view/auditReportView/auditReportViewPayload.d.ts +0 -53
  32. package/lib/view/auditReportView/auditReportViewPayload.js +0 -2
  33. package/lib/view/auditReportView/auditReportViewReducer.d.ts +0 -27
  34. package/lib/view/auditReportView/auditReportViewReducer.js +0 -121
  35. package/lib/view/auditReportView/auditReportViewSelector.d.ts +0 -22
  36. package/lib/view/auditReportView/auditReportViewSelector.js +0 -34
  37. package/lib/view/auditReportView/auditReportViewState.d.ts +0 -71
  38. package/lib/view/auditReportView/auditReportViewState.js +0 -22
  39. package/lib/view/auditReportView/epics/fetchAuditReportGroupViewEpic.d.ts +0 -7
  40. package/lib/view/auditReportView/epics/fetchAuditReportGroupViewEpic.js +0 -54
  41. package/lib/view/auditReportView/epics/fetchAuditRuleGroupViewEpic.d.ts +0 -7
  42. package/lib/view/auditReportView/epics/fetchAuditRuleGroupViewEpic.js +0 -39
  43. package/lib/view/referralView/epics/fetchReferralsEpic.d.ts +0 -7
  44. package/lib/view/referralView/epics/fetchReferralsEpic.js +0 -36
  45. package/lib/view/referralView/epics/fetchRewardsPlanEpic.d.ts +0 -7
  46. package/lib/view/referralView/epics/fetchRewardsPlanEpic.js +0 -41
  47. package/lib/view/referralView/epics/resendReferralInviteEpic.d.ts +0 -8
  48. package/lib/view/referralView/epics/resendReferralInviteEpic.js +0 -39
  49. package/lib/view/referralView/epics/sendReferralInviteEpic.d.ts +0 -8
  50. package/lib/view/referralView/epics/sendReferralInviteEpic.js +0 -52
  51. package/lib/view/referralView/referralPayload.d.ts +0 -43
  52. package/lib/view/referralView/referralPayload.js +0 -33
  53. package/lib/view/referralView/referralReducer.d.ts +0 -23
  54. package/lib/view/referralView/referralReducer.js +0 -162
  55. package/lib/view/referralView/referralSelector.d.ts +0 -21
  56. package/lib/view/referralView/referralSelector.js +0 -76
  57. package/lib/view/referralView/referralState.d.ts +0 -54
  58. package/lib/view/referralView/referralState.js +0 -37
package/lib/reducer.d.ts CHANGED
@@ -146,7 +146,6 @@ import { PaymentInstrumentState } from './entity/paymentInstrument/paymentInstru
146
146
  import { JESchedulesState } from './entity/jeSchedules/jeSchedulesState';
147
147
  import { GlobalMerchantAutoCompleteState } from './view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState';
148
148
  import { GlobalMerchantViewState } from './view/globalMerchantView/globalMerchantViewState';
149
- import { AuditReportViewState } from './view/auditReportView/auditReportViewState';
150
149
  import { TaskState } from './entity/task/task';
151
150
  import { TaskSummaryState } from './entity/taskSummary/taskSummaryState';
152
151
  import { TaskListState } from './view/taskManager/taskListView/taskList';
@@ -154,7 +153,6 @@ import { TaskDetailViewState } from './view/taskManager/taskDetailView/taskDetai
154
153
  import { AuthenticationViewState } from './view/authenticationView/authenticationViewState';
155
154
  import { TwoFactorAuthenticationState } from './view/twoFactorAuthentication/twoFactorAuthentication';
156
155
  import { ZeniAccountsPromoCardState } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardState';
157
- import { ReferralViewState } from './view/referralView/referralState';
158
156
  declare type EntitiesState = {
159
157
  accountGroupState: AccountGroupState;
160
158
  accountingSummaryState: AccountingSummaryState;
@@ -216,7 +214,6 @@ declare type ViewsState = {
216
214
  apAgingState: ApAgingState;
217
215
  arAgingDetailState: ArAgingDetailState;
218
216
  arAgingState: ArAgingState;
219
- auditReportViewState: AuditReportViewState;
220
217
  authenticationViewState: AuthenticationViewState;
221
218
  balanceSheetState: BalanceSheetState;
222
219
  bankAccountViewState: BankAccountViewState;
@@ -274,7 +271,6 @@ declare type ViewsState = {
274
271
  profitAndLossClassesViewState: ProfitAndLossClassesViewState;
275
272
  profitAndLossState: ProfitAndLossWithForecastState;
276
273
  realTimeApprovalState: RealTimeApprovalState;
277
- referralViewState: ReferralViewState;
278
274
  reimbursementCardState: ReimbursementCardState;
279
275
  reimbursementConfigState: ReimbursementConfigState;
280
276
  remiDetailViewState: RemiDetailViewState;
@@ -327,7 +323,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
327
323
  apAgingState: ApAgingState;
328
324
  arAgingDetailState: ArAgingDetailState;
329
325
  arAgingState: ArAgingState;
330
- auditReportViewState: AuditReportViewState;
331
326
  authenticationViewState: AuthenticationViewState;
332
327
  balanceSheetState: BalanceSheetState;
333
328
  bankAccountViewState: BankAccountViewState;
@@ -385,7 +380,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
385
380
  profitAndLossClassesViewState: ProfitAndLossClassesViewState;
386
381
  profitAndLossState: ProfitAndLossWithForecastState;
387
382
  realTimeApprovalState: RealTimeApprovalState;
388
- referralViewState: ReferralViewState;
389
383
  reimbursementCardState: ReimbursementCardState;
390
384
  reimbursementConfigState: ReimbursementConfigState;
391
385
  remiDetailViewState: RemiDetailViewState;
package/lib/reducer.js CHANGED
@@ -177,7 +177,6 @@ const paymentInstrumentReducer_1 = __importStar(require("./entity/paymentInstrum
177
177
  const jeSchedulesReducer_1 = __importStar(require("./entity/jeSchedules/jeSchedulesReducer"));
178
178
  const globalMerchantAutoCompleteViewReducer_1 = __importStar(require("./view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewReducer"));
179
179
  const globalMerchantViewReducer_1 = __importStar(require("./view/globalMerchantView/globalMerchantViewReducer"));
180
- const auditReportViewReducer_1 = __importStar(require("./view/auditReportView/auditReportViewReducer"));
181
180
  const taskReducer_1 = __importStar(require("./entity/task/taskReducer"));
182
181
  const taskSummaryReducer_1 = __importStar(require("./entity/taskSummary/taskSummaryReducer"));
183
182
  const taskListReducer_1 = __importStar(require("./view/taskManager/taskListView/taskListReducer"));
@@ -185,7 +184,6 @@ const taskDetailReducer_1 = __importStar(require("./view/taskManager/taskDetailV
185
184
  const authenticationViewReducer_1 = __importStar(require("./view/authenticationView/authenticationViewReducer"));
186
185
  const twoFactorAuthenticationReducer_1 = __importStar(require("./view/twoFactorAuthentication/twoFactorAuthenticationReducer"));
187
186
  const zeniAccountsPromoCardReducer_1 = __importStar(require("./view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer"));
188
- const referralReducer_1 = __importStar(require("./view/referralView/referralReducer"));
189
187
  // Note: Please maintain strict alphabetical order
190
188
  const initialEntitiesState = {
191
189
  accountGroupState: accountGroupReducer_1.initialState,
@@ -249,7 +247,6 @@ const initialViewsState = {
249
247
  apAgingState: apAgingReducer_1.initialState,
250
248
  arAgingDetailState: arAgingDetailReducer_1.initialState,
251
249
  arAgingState: arAgingReducer_1.initialState,
252
- auditReportViewState: auditReportViewReducer_1.initialState,
253
250
  authenticationViewState: authenticationViewReducer_1.initialState,
254
251
  balanceSheetState: balanceSheetReducer_1.initialState,
255
252
  bankAccountViewState: bankAccountViewReducer_1.initialState,
@@ -307,7 +304,6 @@ const initialViewsState = {
307
304
  profitAndLossClassesViewState: profitAndLossClassesViewReducer_1.initialState,
308
305
  profitAndLossState: profitAndLossReducer_1.initialState,
309
306
  realTimeApprovalState: realTimeApprovalReducer_1.initialState,
310
- referralViewState: referralReducer_1.initialState,
311
307
  reimbursementCardState: reimbursementCardReducer_1.initialState,
312
308
  reimbursementConfigState: reimbursementConfigReducer_1.initialState,
313
309
  remiDetailViewState: remiDetailViewReducer_1.initialState,
@@ -415,7 +411,6 @@ const viewReducers = {
415
411
  apAgingState: apAgingReducer_1.default,
416
412
  arAgingDetailState: arAgingDetailReducer_1.default,
417
413
  arAgingState: arAgingReducer_1.default,
418
- auditReportViewState: auditReportViewReducer_1.default,
419
414
  authenticationViewState: authenticationViewReducer_1.default,
420
415
  balanceSheetState: balanceSheetReducer_1.default,
421
416
  bankAccountViewState: bankAccountViewReducer_1.default,
@@ -473,7 +468,6 @@ const viewReducers = {
473
468
  profitAndLossClassesViewState: profitAndLossClassesViewReducer_1.default,
474
469
  profitAndLossState: profitAndLossReducer_1.default,
475
470
  realTimeApprovalState: realTimeApprovalReducer_1.default,
476
- referralViewState: referralReducer_1.default,
477
471
  reimbursementCardState: reimbursementCardReducer_1.default,
478
472
  reimbursementConfigState: reimbursementConfigReducer_1.default,
479
473
  remiDetailViewState: remiDetailViewReducer_1.default,
@@ -11,7 +11,6 @@ const fetchApAgingEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operat
11
11
  const state = state$.value;
12
12
  const { reportDate } = action.payload;
13
13
  const queryParam = {
14
- is_employee_allowed: false,
15
14
  report_date: reportDate != null
16
15
  ? reportDate.format('YYYY-MM-DD')
17
16
  : (_a = state.apAgingState.uiState.selectedDate) === null || _a === void 0 ? void 0 : _a.date.format('YYYY-MM-DD'),
@@ -41,5 +41,3 @@ 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.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;
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;
4
4
  const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
5
5
  exports.ALL_PORTFOLIO_SORT_KEYS = [
6
6
  'companyName',
@@ -69,11 +69,3 @@ exports.MANAGEMENT_STATUS_CODES = [
69
69
  ];
70
70
  const toManagementStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.MANAGEMENT_STATUS_CODES);
71
71
  exports.toManagementStatusCodeType = toManagementStatusCodeType;
72
- exports.ALL_ONBOARDING_STEP_KEYS = [
73
- 'bankAccountLinked',
74
- 'qboLinked',
75
- 'identityVerified',
76
- 'businessVerified',
77
- ];
78
- const toOnboardingStepKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_ONBOARDING_STEP_KEYS);
79
- exports.toOnboardingStepKeyType = toOnboardingStepKeyType;
@@ -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" | "referral_invite_sent";
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";
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" | "referral_invite_sent";
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";
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" | "referral_invite_sent";
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";
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" | "referral_invite_sent";
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";
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" | "referral_invite_sent";
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";
17
17
  messageText: "failed" | "success";
18
18
  type: import("../..").SnackbarMessageType;
19
19
  showStatusIcon?: boolean | undefined;
@@ -1,12 +1,6 @@
1
1
  import { ID } from '../../commonStateTypes/common';
2
2
  import { OnboardingInfoPayload } from '../../entity/company/companyPayload';
3
3
  import { ZeniAPIResponse } from '../../responsePayload';
4
- export interface AuditSummaryPayload {
5
- fixes_required: number;
6
- total_checks: number;
7
- audit_score_percentage: number;
8
- audit_report_last_generated_date?: string | null;
9
- }
10
4
  export interface ReviewCompanyPayload {
11
5
  company_id: ID;
12
6
  name: string;
@@ -18,29 +12,11 @@ export interface ReviewCompanyPayload {
18
12
  is_uncategorized_income_transactions_present: boolean;
19
13
  is_miscategorized_expenses_transactions_present: boolean;
20
14
  is_miscategorized_income_transactions_present: boolean;
21
- is_vendor_review_required: boolean;
22
15
  onboarding_info?: OnboardingInfoPayload;
23
- audit_summary: AuditSummaryPayload;
24
- }
25
- export interface AuditRuleGroupPayload {
26
- audit_rule_category: string;
27
- audit_rule_group_description: string;
28
- audit_rule_group_id: string;
29
- audit_rules: AuditRulePayload[];
30
- sequence: number;
31
- }
32
- export interface AuditRulePayload {
33
- audit_rule_description: string;
34
- audit_rule_id: string;
35
- sequence: number;
36
- }
37
- export interface AuditRuleGroupsPayload {
38
- audit_rule_groups: AuditRuleGroupPayload[];
39
- version: string;
16
+ is_vendor_review_required: boolean;
40
17
  }
41
18
  export interface ReviewCompanyViewPayload {
42
19
  companies: ReviewCompanyPayload[];
43
20
  }
44
21
  export declare type ReviewCompanyListResponse = ZeniAPIResponse<ReviewCompanyViewPayload>;
45
- export declare type AuditRuleGroupsResponse = ZeniAPIResponse<AuditRuleGroupsPayload>;
46
22
  export declare type RetryBankAccountConnectionResponse = ZeniAPIResponse<ReviewCompanyViewPayload>;
@@ -12,4 +12,3 @@ export interface ReviewCompanySelectorView extends SelectorView {
12
12
  }
13
13
  export declare const getReviewCompanySelectorView: (state: RootState) => ReviewCompanySelectorView;
14
14
  export declare const getReviewCompanyListCount: (state: RootState) => number;
15
- export declare const getAuditWarningsCount: (companyView: ReviewCompanyView) => number;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getAuditWarningsCount = exports.getReviewCompanyListCount = exports.getReviewCompanySelectorView = void 0;
6
+ exports.getReviewCompanyListCount = exports.getReviewCompanySelectorView = void 0;
7
7
  const toolkit_1 = require("@reduxjs/toolkit");
8
8
  const orderBy_1 = __importDefault(require("lodash/orderBy"));
9
9
  const values_1 = __importDefault(require("lodash/values"));
@@ -27,8 +27,7 @@ exports.getReviewCompanySelectorView = (0, toolkit_1.createSelector)((state) =>
27
27
  .filter((value) => value != null);
28
28
  const orderedZeniUsers = (0, orderBy_1.default)(zeniUsers, (user) => (0, userSelector_1.getUserName)(user), 'asc');
29
29
  const sortedCompanies = (0, orderBy_1.default)(companies, (company) => {
30
- var _a;
31
- const warningCount = (0, exports.getAuditWarningsCount)(company);
30
+ var _a, _b, _c, _d;
32
31
  switch (sortKey) {
33
32
  case 'notes':
34
33
  return (_a = company.note) === null || _a === void 0 ? void 0 : _a.toLowerCase();
@@ -38,10 +37,12 @@ exports.getReviewCompanySelectorView = (0, toolkit_1.createSelector)((state) =>
38
37
  case 'miscategorized':
39
38
  return ((company.miscategorizedTransactions.income ? 1 : 0) +
40
39
  (company.miscategorizedTransactions.expense ? 1 : 0));
41
- case 'warnings':
42
- return warningCount;
43
- case 'auditScore':
44
- return company.auditSummary.fixesRequired;
40
+ case 'bankAccountLinked':
41
+ case 'qboLinked':
42
+ return ((_c = (_b = company.onboardingInfo) === null || _b === void 0 ? void 0 : _b[sortKey]) === null || _c === void 0 ? void 0 : _c.completed) === true;
43
+ case 'businessVerified':
44
+ case 'identityVerified':
45
+ return (_d = company.onboardingInfo) === null || _d === void 0 ? void 0 : _d[sortKey].status.toLowerCase();
45
46
  case 'reviewVendor':
46
47
  return company.isVendorReviewReqiured;
47
48
  case 'companyName':
@@ -61,27 +62,3 @@ exports.getReviewCompanyListCount = (0, toolkit_1.createSelector)((state) => sta
61
62
  const companies = (0, values_1.default)(rootState.reviewCompanyViewState.reviewCompanyById);
62
63
  return companies.length;
63
64
  });
64
- const getAuditWarningsCount = (companyView) => {
65
- var _a, _b, _c, _d;
66
- let warningsCount = 0;
67
- const bankConnectionStepInfo = (_a = companyView.onboardingInfo) === null || _a === void 0 ? void 0 : _a['bankAccountLinked'];
68
- if ((bankConnectionStepInfo === null || bankConnectionStepInfo === void 0 ? void 0 : bankConnectionStepInfo.error) === true ||
69
- (bankConnectionStepInfo === null || bankConnectionStepInfo === void 0 ? void 0 : bankConnectionStepInfo.completed) === false) {
70
- warningsCount++;
71
- }
72
- const qboLinkedStepInfo = (_b = companyView.onboardingInfo) === null || _b === void 0 ? void 0 : _b['qboLinked'];
73
- if ((qboLinkedStepInfo === null || qboLinkedStepInfo === void 0 ? void 0 : qboLinkedStepInfo.error) === true ||
74
- (qboLinkedStepInfo === null || qboLinkedStepInfo === void 0 ? void 0 : qboLinkedStepInfo.completed) === false) {
75
- warningsCount++;
76
- }
77
- const identityVerificationStepInfo = (_c = companyView.onboardingInfo) === null || _c === void 0 ? void 0 : _c['identityVerified'];
78
- if ((identityVerificationStepInfo === null || identityVerificationStepInfo === void 0 ? void 0 : identityVerificationStepInfo.status) !== 'Complete') {
79
- warningsCount++;
80
- }
81
- const businessVerificationStepInfo = (_d = companyView.onboardingInfo) === null || _d === void 0 ? void 0 : _d['businessVerified'];
82
- if ((businessVerificationStepInfo === null || businessVerificationStepInfo === void 0 ? void 0 : businessVerificationStepInfo.status) !== 'Complete') {
83
- warningsCount++;
84
- }
85
- return warningsCount;
86
- };
87
- exports.getAuditWarningsCount = getAuditWarningsCount;
@@ -2,30 +2,23 @@ import { FetchedState, ID, FetchStateAndError } from '../../commonStateTypes/com
2
2
  import { SortOrder } from '../../commonStateTypes/selectorTypes/sortOrderTypes';
3
3
  import { OnboardingInfo } from '../../entity/company/companyStateTypes';
4
4
  import { ZeniDate } from '../../zeniDayJS';
5
- import { AuditSummaryPayload, ReviewCompanyPayload } from './reviewCompanyPayload';
6
- export declare const REVIEW_COMPANY_COLUMN_KEYS: readonly ["auditScore", "miscategorized", "companyName", "notes", "uncategorized", "warnings", "vendorReview", "reviewVendor"];
7
- export declare const toReviewColumnKeyType: (v: string) => "companyName" | "notes" | "auditScore" | "miscategorized" | "uncategorized" | "warnings" | "vendorReview" | "reviewVendor";
5
+ import { ReviewCompanyPayload } from './reviewCompanyPayload';
6
+ export declare const REVIEW_COMPANY_COLUMN_KEYS: readonly ["miscategorized", "companyName", "notes", "uncategorized", "vendorReview", "bankAccountLinked", "qboLinked", "identityVerified", "businessVerified", "reviewVendor"];
7
+ export declare const toReviewColumnKeyType: (v: string) => "companyName" | "identityVerified" | "businessVerified" | "bankAccountLinked" | "qboLinked" | "notes" | "miscategorized" | "uncategorized" | "vendorReview" | "reviewVendor";
8
8
  export declare type ReviewCompanyColumnKey = ReturnType<typeof toReviewColumnKeyType>;
9
9
  export declare type ReviewTransactionsType = 'income' | 'expense';
10
- export interface AuditSummary {
11
- fixesRequired: number;
12
- totalChecks: number;
13
- auditScorePercentage: number;
14
- auditReportLastGeneratedDate: ZeniDate | null;
15
- }
16
10
  export interface ReviewCompany {
17
11
  companyId: ID;
18
12
  name: string;
19
13
  primaryEmailDomain: string;
20
14
  miscategorizedTransactions: Record<ReviewTransactionsType, boolean>;
21
15
  uncategorizedTransactions: Record<ReviewTransactionsType, boolean>;
22
- isVendorReviewReqiured: boolean;
23
- auditSummary: AuditSummary;
24
16
  noteLastUpdatedUserId?: ID;
25
17
  noteLastUpdateTime?: ZeniDate;
26
18
  note?: string;
27
19
  onboardingInfo?: OnboardingInfo;
28
20
  retryBankAccountConnectionFetchState: FetchStateAndError;
21
+ isVendorReviewReqiured: boolean;
29
22
  }
30
23
  export interface ReviewCompanyListUIState {
31
24
  filterText: string;
@@ -36,5 +29,4 @@ export interface ReviewCompanyViewState extends FetchedState {
36
29
  reviewCompanyById: Record<ID, ReviewCompany>;
37
30
  uiState: ReviewCompanyListUIState;
38
31
  }
39
- export declare const toAuditSummary: (auditSummaryPayload: AuditSummaryPayload) => AuditSummary;
40
32
  export declare function toReviewCompany(company: ReviewCompanyPayload): ReviewCompany;
@@ -1,32 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toReviewCompany = exports.toAuditSummary = exports.toReviewColumnKeyType = exports.REVIEW_COMPANY_COLUMN_KEYS = void 0;
3
+ exports.toReviewCompany = exports.toReviewColumnKeyType = exports.REVIEW_COMPANY_COLUMN_KEYS = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
5
  const companyPayload_1 = require("../../entity/company/companyPayload");
6
6
  const zeniDayJS_1 = require("../../zeniDayJS");
7
7
  exports.REVIEW_COMPANY_COLUMN_KEYS = [
8
- 'auditScore',
9
8
  'miscategorized',
10
9
  'companyName',
11
10
  'notes',
12
11
  'uncategorized',
13
- 'warnings',
14
12
  'vendorReview',
13
+ 'bankAccountLinked',
14
+ 'qboLinked',
15
+ 'identityVerified',
16
+ 'businessVerified',
15
17
  'reviewVendor',
16
18
  ];
17
19
  const toReviewColumnKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.REVIEW_COMPANY_COLUMN_KEYS);
18
20
  exports.toReviewColumnKeyType = toReviewColumnKeyType;
19
- const toAuditSummary = (auditSummaryPayload) => {
20
- return {
21
- fixesRequired: auditSummaryPayload.fixes_required,
22
- totalChecks: auditSummaryPayload.total_checks,
23
- auditScorePercentage: auditSummaryPayload.audit_score_percentage,
24
- auditReportLastGeneratedDate: auditSummaryPayload.audit_report_last_generated_date != null
25
- ? (0, zeniDayJS_1.date)(auditSummaryPayload.audit_report_last_generated_date)
26
- : null,
27
- };
28
- };
29
- exports.toAuditSummary = toAuditSummary;
30
21
  function toReviewCompany(company) {
31
22
  const reviewCompany = {
32
23
  companyId: company.company_id,
@@ -44,7 +35,6 @@ function toReviewCompany(company) {
44
35
  fetchState: 'Not-Started',
45
36
  },
46
37
  isVendorReviewReqiured: company.is_vendor_review_required,
47
- auditSummary: (0, exports.toAuditSummary)(company.audit_summary),
48
38
  };
49
39
  if (company.note != null) {
50
40
  reviewCompany.note = company.note;
@@ -18,7 +18,7 @@ export declare const saveNotificationSettingsEpic: (actions$: ActionsObservable<
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" | "referral_invite_sent";
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";
22
22
  messageText: "failed" | "success";
23
23
  type: import("../../..").SnackbarMessageType;
24
24
  showStatusIcon?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.8.75",
3
+ "version": "4.8.76",
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",
@@ -1,12 +0,0 @@
1
- import { AuditRule, AuditRuleGroup, AuditReportGroupQuery, AuditReport, AuditRuleGroupReport, AuditReportGroup, AuditRuleBase, AuditReportRule } from './auditReportViewState';
2
- import { AuditReportGroupPayload, AuditReportGroupQueryPayload, AuditReportPayload, AuditRuleGroupPayload, AuditRulePayload, AuditRuleGroupReportPayload, AuditRuleBasePayload, AuditReportRulePayload } from './auditReportViewPayload';
3
- declare const toAuditRuleGroupFromPayload: (auditRuleGroupPayload: AuditRuleGroupPayload) => AuditRuleGroup;
4
- declare const toAuditRulesFromPayload: (auditRulesPayload: AuditRulePayload[]) => AuditRule[];
5
- declare const toAuditRuleBaseFromPayload: (auditRuleBasePayload: AuditRuleBasePayload) => AuditRuleBase;
6
- declare const toAuditRuleFromPayload: (auditRulesPayload: AuditRulePayload) => AuditRule;
7
- declare const toAuditReportGroupViewFromPayload: (auditReportGroupPayload: AuditReportGroupPayload) => AuditReportGroup;
8
- declare const toAuditReportGroupQueryFromPayload: (queryPayload: AuditReportGroupQueryPayload) => AuditReportGroupQuery;
9
- declare const toAuditReportFromPayload: (auditReportPayload: AuditReportPayload) => AuditReport;
10
- declare const toAuditReportRuleFromPayload: (auditReportRulesPayload: AuditReportRulePayload[]) => AuditReportRule[];
11
- declare const toAuditRuleReportGroupFromPayload: (auditRuleReportGroupPayload: AuditRuleGroupReportPayload[]) => AuditRuleGroupReport[];
12
- export { toAuditRuleGroupFromPayload, toAuditRulesFromPayload, toAuditRuleBaseFromPayload, toAuditRuleFromPayload, toAuditReportGroupViewFromPayload, toAuditReportGroupQueryFromPayload, toAuditReportFromPayload, toAuditReportRuleFromPayload, toAuditRuleReportGroupFromPayload, };
@@ -1,79 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toAuditRuleReportGroupFromPayload = exports.toAuditReportRuleFromPayload = exports.toAuditReportFromPayload = exports.toAuditReportGroupQueryFromPayload = exports.toAuditReportGroupViewFromPayload = exports.toAuditRuleFromPayload = exports.toAuditRuleBaseFromPayload = exports.toAuditRulesFromPayload = exports.toAuditRuleGroupFromPayload = void 0;
4
- const statusPayload_1 = require("../../commonPayloadTypes/statusPayload");
5
- const viewAndReport_1 = require("../../commonStateTypes/viewAndReport/viewAndReport");
6
- const auditReportViewState_1 = require("./auditReportViewState");
7
- const toAuditRuleGroupFromPayload = (auditRuleGroupPayload) => {
8
- return {
9
- auditRuleCategory: auditRuleGroupPayload.audit_rule_category,
10
- auditRuleGroupDescription: auditRuleGroupPayload.audit_rule_group_description,
11
- auditRuleGroupId: auditRuleGroupPayload.audit_rule_group_id,
12
- auditRules: toAuditRulesFromPayload(auditRuleGroupPayload.audit_rules),
13
- sequence: auditRuleGroupPayload.sequence,
14
- };
15
- };
16
- exports.toAuditRuleGroupFromPayload = toAuditRuleGroupFromPayload;
17
- const toAuditRulesFromPayload = (auditRulesPayload) => {
18
- const auditRules = [];
19
- auditRulesPayload.forEach((auditRulePayload) => auditRules.push(toAuditRuleFromPayload(auditRulePayload)));
20
- return auditRules;
21
- };
22
- exports.toAuditRulesFromPayload = toAuditRulesFromPayload;
23
- const toAuditRuleBaseFromPayload = (auditRuleBasePayload) => {
24
- return {
25
- auditRuleId: auditRuleBasePayload.audit_rule_id,
26
- };
27
- };
28
- exports.toAuditRuleBaseFromPayload = toAuditRuleBaseFromPayload;
29
- const toAuditRuleFromPayload = (auditRulesPayload) => {
30
- return Object.assign(Object.assign({}, toAuditRuleBaseFromPayload(auditRulesPayload)), { auditRuleDescription: auditRulesPayload.audit_rule_description, sequence: auditRulesPayload.sequence });
31
- };
32
- exports.toAuditRuleFromPayload = toAuditRuleFromPayload;
33
- const toAuditReportGroupViewFromPayload = (auditReportGroupPayload) => {
34
- const query = toAuditReportGroupQueryFromPayload(auditReportGroupPayload.query);
35
- const report = toAuditReportFromPayload(auditReportGroupPayload.report);
36
- return {
37
- report,
38
- query,
39
- };
40
- };
41
- exports.toAuditReportGroupViewFromPayload = toAuditReportGroupViewFromPayload;
42
- const toAuditReportGroupQueryFromPayload = (queryPayload) => {
43
- return {
44
- auditRuleGroupIds: queryPayload.audit_rule_group_ids,
45
- action: (0, auditReportViewState_1.toAuditReportActionType)(queryPayload.action),
46
- };
47
- };
48
- exports.toAuditReportGroupQueryFromPayload = toAuditReportGroupQueryFromPayload;
49
- const toAuditReportFromPayload = (auditReportPayload) => {
50
- return {
51
- auditMonthAndYear: auditReportPayload.audit_month_and_year,
52
- auditRulesGroupReport: toAuditRuleReportGroupFromPayload(auditReportPayload.audit_rules_group_report),
53
- reportId: auditReportPayload.report_id,
54
- reportTitle: auditReportPayload.report_title,
55
- status: (0, statusPayload_1.mapStatusPayloadToStatus)(auditReportPayload.status),
56
- version: auditReportPayload.version,
57
- };
58
- };
59
- exports.toAuditReportFromPayload = toAuditReportFromPayload;
60
- const toAuditReportRuleFromPayload = (auditReportRulesPayload) => {
61
- var _a;
62
- return ((_a = auditReportRulesPayload.map((auditReportRulePayload) => {
63
- return Object.assign(Object.assign({}, toAuditRuleBaseFromPayload(auditReportRulePayload)), { isSuccess: auditReportRulePayload.is_success, entityType: (0, auditReportViewState_1.toAuditRuleEntityType)(auditReportRulePayload.entity_type), entityIds: auditReportRulePayload.entity_ids.map((id) => (0, viewAndReport_1.toReportID)(id)), message: auditReportRulePayload.message, sequence: auditReportRulePayload.sequence });
64
- })) !== null && _a !== void 0 ? _a : []);
65
- };
66
- exports.toAuditReportRuleFromPayload = toAuditReportRuleFromPayload;
67
- const toAuditRuleReportGroupFromPayload = (auditRuleReportGroupPayload) => {
68
- return auditRuleReportGroupPayload.map((auditRuleReportGroup) => {
69
- var _a;
70
- return {
71
- auditRuleGroupId: auditRuleReportGroup.audit_rule_group_id,
72
- isSuccess: auditRuleReportGroup.is_success,
73
- message: auditRuleReportGroup.message,
74
- auditRules: toAuditReportRuleFromPayload((_a = auditRuleReportGroup.audit_rules) !== null && _a !== void 0 ? _a : []),
75
- sequence: auditRuleReportGroup.sequence,
76
- };
77
- });
78
- };
79
- exports.toAuditRuleReportGroupFromPayload = toAuditRuleReportGroupFromPayload;