@zeniai/client-epic-state 4.10.36 → 4.10.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/entity/account/accountSelector.js +4 -2
- package/lib/entity/accountGroup/accountGroupSelector.js +2 -1
- package/lib/entity/company/companyPayload.js +2 -1
- package/lib/entity/customerIncome/customerIncomeTrend.js +2 -1
- package/lib/entity/paymentAccount/paymentAccountSelector.d.ts +1 -0
- package/lib/entity/paymentAccount/paymentAccountSelector.js +5 -1
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +2 -0
- package/lib/entity/tag/tagPayload.d.ts +9 -0
- package/lib/entity/tag/tagPayload.js +12 -0
- package/lib/entity/tag/tagReducer.d.ts +9 -0
- package/lib/entity/tag/tagReducer.js +39 -0
- package/lib/entity/tag/tagSelector.d.ts +4 -0
- package/lib/entity/tag/tagSelector.js +18 -0
- package/lib/entity/tag/tagState.d.ts +12 -0
- package/lib/entity/tag/tagState.js +2 -0
- package/lib/entity/task/taskPayload.d.ts +6 -2
- package/lib/entity/task/taskPayload.js +1 -6
- package/lib/entity/task/taskState.d.ts +1 -5
- package/lib/entity/tenant/clearAllEpic.d.ts +4 -2
- package/lib/entity/tenant/clearAllEpic.js +4 -0
- package/lib/entity/transaction/payloadTypes/otherTransactionPayload.js +2 -1
- package/lib/entity/user/userSelector.js +4 -2
- package/lib/entity/vendorExpense/vendorExpenseTrend.js +2 -1
- package/lib/epic.d.ts +4 -1
- package/lib/epic.js +4 -1
- package/lib/index.d.ts +10 -5
- package/lib/index.js +24 -16
- package/lib/reducer.d.ts +6 -0
- package/lib/reducer.js +6 -0
- package/lib/view/accountMappingView/saveAccountMappingViewEpic.js +2 -1
- package/lib/view/autoComplete/fetchEntityAutoCompleteEpic.js +2 -1
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +8 -4
- package/lib/view/companyView/selector/companyManagementViewSelector.js +58 -29
- package/lib/view/companyView/selector/companyPassportViewSelector.js +2 -1
- package/lib/view/companyView/selector/companyPortfolioViewSelector.js +10 -5
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/fetchGlobalMerchantAutoCompleteViewEpic.js +2 -1
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewSelector.js +8 -4
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
- package/lib/view/people/deletePersonEpic.d.ts +1 -1
- package/lib/view/people/invitePeopleEpic.d.ts +1 -1
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
- package/lib/view/people/resendInviteEpic.d.ts +1 -1
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +6 -3
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListSelector.js +30 -15
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +2 -6
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +2 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchCurrencyConversionValueEpic.js +2 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js +6 -3
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic.js +2 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListSelector.js +26 -13
- package/lib/view/spendManagement/spendManagementFilterHelpers.js +1 -2
- package/lib/view/subscriptionView/subscriptionViewSelector.js +26 -13
- package/lib/view/tagView/epics/createTagEpic.d.ts +36 -0
- package/lib/view/tagView/epics/createTagEpic.js +69 -0
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +35 -0
- package/lib/view/tagView/epics/deleteTagEpic.js +53 -0
- package/lib/view/tagView/epics/fetchAllTagsEpic.d.ts +8 -0
- package/lib/view/tagView/epics/fetchAllTagsEpic.js +33 -0
- package/lib/view/tagView/tagViewPayload.d.ts +7 -0
- package/lib/view/tagView/tagViewPayload.js +2 -0
- package/lib/view/tagView/tagViewReducer.d.ts +27 -0
- package/lib/view/tagView/tagViewReducer.js +94 -0
- package/lib/view/tagView/tagViewSelector.d.ts +10 -0
- package/lib/view/tagView/tagViewSelector.js +17 -0
- package/lib/view/tagView/tagViewState.d.ts +6 -0
- package/lib/view/tagView/tagViewState.js +2 -0
- package/lib/view/taskManager/taskDetailView/epics/fetchTaskDetailEpic.d.ts +2 -1
- package/lib/view/taskManager/taskDetailView/epics/fetchTaskDetailEpic.js +2 -0
- package/lib/view/taskManager/taskDetailView/epics/initializeTaskToLocalStoreEpic.js +1 -1
- package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.js +1 -1
- package/lib/view/taskManager/taskDetailView/taskDetail.d.ts +4 -4
- package/lib/view/taskManager/taskDetailView/taskDetail.js +1 -1
- package/lib/view/taskManager/taskDetailView/taskDetailReducer.d.ts +7 -1
- package/lib/view/taskManager/taskDetailView/taskDetailReducer.js +24 -2
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.d.ts +1 -2
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +5 -47
- package/lib/view/taskManager/taskListView/fetchTaskListEpic.d.ts +2 -1
- package/lib/view/taskManager/taskListView/fetchTaskListEpic.js +2 -1
- package/lib/view/taskManager/taskListView/taskListSelector.js +5 -3
- package/lib/view/transactionDetail/epics/saveTransactionHelper.js +4 -2
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.d.ts +2 -0
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +162 -4
- package/lib/view/transactionDetail/transactionDetailReducer.d.ts +10 -0
- package/lib/view/transactionDetail/transactionDetailReducer.js +48 -2
- package/lib/view/transactionDetail/transactionDetailState.js +1 -0
- package/lib/view/transactionDetail/transactionDetailTypes.d.ts +2 -0
- package/package.json +2 -1
|
@@ -36,8 +36,9 @@ const fetchGlobalMerchantAutoCompleteViewEpic = (actions$, state$, zeniAPI) => a
|
|
|
36
36
|
updateActions.push((0, globalMerchantAutoCompleteViewReducer_1.fetchGlobalMerchantAutoCompleteResultsSuccess)(response.data));
|
|
37
37
|
return (0, rxjs_1.from)(updateActions);
|
|
38
38
|
}
|
|
39
|
-
else
|
|
39
|
+
else {
|
|
40
40
|
return (0, rxjs_1.of)((0, globalMerchantAutoCompleteViewReducer_1.fetchGlobalMerchantAutoCompleteResultsFailure)(response.status));
|
|
41
|
+
}
|
|
41
42
|
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, globalMerchantAutoCompleteViewReducer_1.fetchGlobalMerchantAutoCompleteResultsFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Global Merchant Auto Complete REST API call errored out' +
|
|
42
43
|
JSON.stringify(error))))));
|
|
43
44
|
}
|
|
@@ -143,17 +143,21 @@ const getSortedOnboardingCustomers = (onboardingCustomers, sortKey, sortOrder, u
|
|
|
143
143
|
companiesWithSortKeyValue.push(company);
|
|
144
144
|
break;
|
|
145
145
|
case 'notes':
|
|
146
|
-
if (((_a = company.company.company.managegmentInfo.note) === null || _a === void 0 ? void 0 : _a.length) != null)
|
|
146
|
+
if (((_a = company.company.company.managegmentInfo.note) === null || _a === void 0 ? void 0 : _a.length) != null) {
|
|
147
147
|
companiesWithSortKeyValue.push(company);
|
|
148
|
-
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
149
150
|
companiesWithNoSortKeyValue.push(company);
|
|
151
|
+
}
|
|
150
152
|
break;
|
|
151
153
|
case 'enroller':
|
|
152
154
|
if (company.company.company.companyOnboardingInfo.onboardingUserIds[0] !=
|
|
153
|
-
null)
|
|
155
|
+
null) {
|
|
154
156
|
companiesWithSortKeyValue.push(company);
|
|
155
|
-
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
156
159
|
companiesWithNoSortKeyValue.push(company);
|
|
160
|
+
}
|
|
157
161
|
break;
|
|
158
162
|
}
|
|
159
163
|
});
|
|
@@ -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_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated";
|
|
29
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated";
|
|
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_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated";
|
|
21
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated";
|
|
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_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated";
|
|
38
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated";
|
|
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_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated";
|
|
35
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated";
|
|
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_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated";
|
|
16
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated";
|
|
17
17
|
messageText: "failed" | "success";
|
|
18
18
|
type: import("../..").SnackbarMessageType;
|
|
19
19
|
showStatusIcon?: boolean | undefined;
|
|
@@ -314,8 +314,9 @@ const updateJELinkInScheduleDetails = (jeScheduleDetailsLocalData, rowId, jeLink
|
|
|
314
314
|
// mark this as posted
|
|
315
315
|
postingStatus: 'posted' });
|
|
316
316
|
}
|
|
317
|
-
else
|
|
317
|
+
else {
|
|
318
318
|
return jeScheduleDetail;
|
|
319
|
+
}
|
|
319
320
|
});
|
|
320
321
|
};
|
|
321
322
|
const updateJELinkInWithRecommendedScheduleDetails = (jeScheduleDetailsLocalData, rowId) => {
|
|
@@ -327,8 +328,9 @@ const updateJELinkInWithRecommendedScheduleDetails = (jeScheduleDetailsLocalData
|
|
|
327
328
|
// mark this as posted
|
|
328
329
|
postingStatus: 'posted' });
|
|
329
330
|
}
|
|
330
|
-
else
|
|
331
|
+
else {
|
|
331
332
|
return jeScheduleDetail;
|
|
333
|
+
}
|
|
332
334
|
});
|
|
333
335
|
};
|
|
334
336
|
const resetJELinkInScheduleDetails = (jeScheduleDetailsLocalData, rowId, originalScheduledJE) => {
|
|
@@ -340,8 +342,9 @@ const resetJELinkInScheduleDetails = (jeScheduleDetailsLocalData, rowId, origina
|
|
|
340
342
|
return Object.assign(Object.assign({}, jeScheduleDetail), { jeLink,
|
|
341
343
|
postingStatus });
|
|
342
344
|
}
|
|
343
|
-
else
|
|
345
|
+
else {
|
|
344
346
|
return jeScheduleDetail;
|
|
347
|
+
}
|
|
345
348
|
});
|
|
346
349
|
};
|
|
347
350
|
const updateNewOrEditScheduleDetailLocalData = (draft, scheduleType, updates, selectedJeScheduleDetailId) => {
|
|
@@ -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_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated";
|
|
21
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated";
|
|
22
22
|
messageText: "failed" | "success";
|
|
23
23
|
type: import("../../..").SnackbarMessageType;
|
|
24
24
|
showStatusIcon?: boolean | undefined;
|
|
@@ -182,12 +182,15 @@ const getAllSubTabs = (selectedTab, isWireActive, isAchActive) => {
|
|
|
182
182
|
};
|
|
183
183
|
const getAllPaidSubTabs = (isWireActive, isAchActive) => {
|
|
184
184
|
let paidSubTabs = [];
|
|
185
|
-
if (isAchActive)
|
|
185
|
+
if (isAchActive) {
|
|
186
186
|
paidSubTabs.push('ach');
|
|
187
|
-
|
|
187
|
+
}
|
|
188
|
+
if (isWireActive) {
|
|
188
189
|
paidSubTabs.push('wire');
|
|
189
|
-
|
|
190
|
+
}
|
|
191
|
+
if (paidSubTabs.length > 0) {
|
|
190
192
|
paidSubTabs = ['all', ...paidSubTabs, 'deleted'];
|
|
193
|
+
}
|
|
191
194
|
return paidSubTabs;
|
|
192
195
|
};
|
|
193
196
|
const getApproversOrRejectors = (billTransaction, entityApprovalStatusState, userState) => {
|
|
@@ -235,8 +238,9 @@ const getApproversOrRejectors = (billTransaction, entityApprovalStatusState, use
|
|
|
235
238
|
else {
|
|
236
239
|
//if not isBillSerailized, we need to show all the first approvers in each steps_approval_status
|
|
237
240
|
const pendingActivity = pendingActivities[0];
|
|
238
|
-
if (pendingActivity != null)
|
|
241
|
+
if (pendingActivity != null) {
|
|
239
242
|
pendingActivitiesList.push(pendingActivity);
|
|
243
|
+
}
|
|
240
244
|
}
|
|
241
245
|
});
|
|
242
246
|
if (pendingActivitiesList.length > 0) {
|
|
@@ -247,8 +251,9 @@ const getApproversOrRejectors = (billTransaction, entityApprovalStatusState, use
|
|
|
247
251
|
}
|
|
248
252
|
else if (activity.subType != null && isAdminFallbackApprover) {
|
|
249
253
|
const subTypeApprover = (0, approvalRuleState_1.toAttributeTypeStrict)(activity.subType);
|
|
250
|
-
if (subTypeApprover != null)
|
|
254
|
+
if (subTypeApprover != null) {
|
|
251
255
|
approvers.attributes.push(subTypeApprover);
|
|
256
|
+
}
|
|
252
257
|
}
|
|
253
258
|
});
|
|
254
259
|
}
|
|
@@ -311,30 +316,34 @@ const getBillListOnSort = (sortKey, sortOrder, currentTab, transactions) => {
|
|
|
311
316
|
if (Boolean((_a = transaction.vendor) === null || _a === void 0 ? void 0 : _a.name) === true) {
|
|
312
317
|
transactionsWithSortKeyValue.push(transaction);
|
|
313
318
|
}
|
|
314
|
-
else
|
|
319
|
+
else {
|
|
315
320
|
transactionsWithNoSortKeyValue.push(transaction);
|
|
321
|
+
}
|
|
316
322
|
break;
|
|
317
323
|
case 'invoiceDate':
|
|
318
324
|
if (Boolean(transaction.date) === true) {
|
|
319
325
|
transactionsWithSortKeyValue.push(transaction);
|
|
320
326
|
}
|
|
321
|
-
else
|
|
327
|
+
else {
|
|
322
328
|
transactionsWithNoSortKeyValue.push(transaction);
|
|
329
|
+
}
|
|
323
330
|
break;
|
|
324
331
|
case 'dueDate':
|
|
325
332
|
if (currentTab === 'draft') {
|
|
326
333
|
if (Boolean(transaction.dueDate) === true) {
|
|
327
334
|
transactionsWithSortKeyValue.push(transaction);
|
|
328
335
|
}
|
|
329
|
-
else
|
|
336
|
+
else {
|
|
330
337
|
transactionsWithNoSortKeyValue.push(transaction);
|
|
338
|
+
}
|
|
331
339
|
}
|
|
332
340
|
else {
|
|
333
341
|
if (Boolean(transaction.billPayInfo.paymentDate) === true) {
|
|
334
342
|
transactionsWithSortKeyValue.push(transaction);
|
|
335
343
|
}
|
|
336
|
-
else
|
|
344
|
+
else {
|
|
337
345
|
transactionsWithNoSortKeyValue.push(transaction);
|
|
346
|
+
}
|
|
338
347
|
}
|
|
339
348
|
break;
|
|
340
349
|
case 'status':
|
|
@@ -344,16 +353,18 @@ const getBillListOnSort = (sortKey, sortOrder, currentTab, transactions) => {
|
|
|
344
353
|
transaction.dueDate.isBefore((0, zeniDayJS_1.dateNow)())) {
|
|
345
354
|
transactionsWithSortKeyValue.push(transaction);
|
|
346
355
|
}
|
|
347
|
-
else
|
|
356
|
+
else {
|
|
348
357
|
transactionsWithNoSortKeyValue.push(transaction);
|
|
358
|
+
}
|
|
349
359
|
break;
|
|
350
360
|
case 'pending_approval':
|
|
351
361
|
if (Boolean(transaction.billPayInfo.billStatus.name) === true ||
|
|
352
362
|
Boolean(transaction.dueDate != null)) {
|
|
353
363
|
transactionsWithSortKeyValue.push(transaction);
|
|
354
364
|
}
|
|
355
|
-
else
|
|
365
|
+
else {
|
|
356
366
|
transactionsWithNoSortKeyValue.push(transaction);
|
|
367
|
+
}
|
|
357
368
|
break;
|
|
358
369
|
case 'scheduled':
|
|
359
370
|
if (Boolean(transaction.billPayInfo.billPaymentStatus.name) ===
|
|
@@ -361,16 +372,18 @@ const getBillListOnSort = (sortKey, sortOrder, currentTab, transactions) => {
|
|
|
361
372
|
Boolean(transaction.billPayInfo.billStatus.name) === true) {
|
|
362
373
|
transactionsWithSortKeyValue.push(transaction);
|
|
363
374
|
}
|
|
364
|
-
else
|
|
375
|
+
else {
|
|
365
376
|
transactionsWithNoSortKeyValue.push(transaction);
|
|
377
|
+
}
|
|
366
378
|
break;
|
|
367
379
|
case 'paid':
|
|
368
380
|
if (Boolean(transaction.billPayInfo.billPaymentMethodType.name) ===
|
|
369
381
|
true) {
|
|
370
382
|
transactionsWithSortKeyValue.push(transaction);
|
|
371
383
|
}
|
|
372
|
-
else
|
|
384
|
+
else {
|
|
373
385
|
transactionsWithNoSortKeyValue.push(transaction);
|
|
386
|
+
}
|
|
374
387
|
break;
|
|
375
388
|
}
|
|
376
389
|
break;
|
|
@@ -378,15 +391,17 @@ const getBillListOnSort = (sortKey, sortOrder, currentTab, transactions) => {
|
|
|
378
391
|
if (Boolean(transaction.totalAmountInUSD) === true) {
|
|
379
392
|
transactionsWithSortKeyValue.push(transaction);
|
|
380
393
|
}
|
|
381
|
-
else
|
|
394
|
+
else {
|
|
382
395
|
transactionsWithNoSortKeyValue.push(transaction);
|
|
396
|
+
}
|
|
383
397
|
break;
|
|
384
398
|
case 'paymentMethod':
|
|
385
399
|
if (Boolean(transaction.billPayInfo.billPaymentMethodType) === true) {
|
|
386
400
|
transactionsWithSortKeyValue.push(transaction);
|
|
387
401
|
}
|
|
388
|
-
else
|
|
402
|
+
else {
|
|
389
403
|
transactionsWithNoSortKeyValue.push(transaction);
|
|
404
|
+
}
|
|
390
405
|
break;
|
|
391
406
|
}
|
|
392
407
|
});
|
|
@@ -10,15 +10,11 @@ function getCommonSetupViewDetails(state, companyId, setupViewType) {
|
|
|
10
10
|
var _a;
|
|
11
11
|
const { accountState, setupViewState, paymentAccountState } = state;
|
|
12
12
|
const { accountDetails, plaidConnectionDetails, updateStatus } = setupViewState;
|
|
13
|
-
const { allBankAccountIds
|
|
13
|
+
const { allBankAccountIds } = accountDetails;
|
|
14
14
|
const allBankAccounts = (_a = allBankAccountIds === null || allBankAccountIds === void 0 ? void 0 : allBankAccountIds.map((accountId) => (0, accountSelector_1.getAccountBase)(accountState, accountId, setupViewType)).filter((account) => account != null)) !== null && _a !== void 0 ? _a : [];
|
|
15
15
|
const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
|
|
16
16
|
const companyBillPayInfo = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyBillPayInfo;
|
|
17
|
-
|
|
18
|
-
if ((paymentAccountIds === null || paymentAccountIds === void 0 ? void 0 : paymentAccountIds.length) > 0) {
|
|
19
|
-
const paymentAccountId = paymentAccountIds[0];
|
|
20
|
-
paymentAccount = (0, paymentAccountSelector_1.getPaymentAccountByPaymentAccountId)(paymentAccountState, paymentAccountId);
|
|
21
|
-
}
|
|
17
|
+
const paymentAccount = (0, paymentAccountSelector_1.getSpendManagementPrimaryPaymentAccount)(paymentAccountState);
|
|
22
18
|
return {
|
|
23
19
|
companyBillPayInfo,
|
|
24
20
|
paymentAccount,
|
|
@@ -10,10 +10,11 @@ const fetchCurrencyConversionValueEpic = (actions$, state$, zeniAPI) => actions$
|
|
|
10
10
|
const { conversionCurrencyCode, reimbursementId, lineId } = action.payload;
|
|
11
11
|
const state = state$.value;
|
|
12
12
|
let remiDetailLocalData = state.editRemiDetailViewState.newRemiState.remiDetailLocalData;
|
|
13
|
-
if (reimbursementId != null)
|
|
13
|
+
if (reimbursementId != null) {
|
|
14
14
|
remiDetailLocalData =
|
|
15
15
|
state.editRemiDetailViewState.editRemiStateById[reimbursementId]
|
|
16
16
|
.remiDetailLocalData;
|
|
17
|
+
}
|
|
17
18
|
const currentAmountDetails = remiDetailLocalData.updatesByLineId[lineId];
|
|
18
19
|
const payload = {
|
|
19
20
|
amount: {
|
package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js
CHANGED
|
@@ -135,15 +135,17 @@ const getAutoFieldData = (reimbursementLine) => {
|
|
|
135
135
|
fields.push('merchant');
|
|
136
136
|
break;
|
|
137
137
|
case 'amount':
|
|
138
|
-
if (reimbursementLine.amount !== 0)
|
|
138
|
+
if (reimbursementLine.amount !== 0) {
|
|
139
139
|
fields.push('amount');
|
|
140
|
+
}
|
|
140
141
|
break;
|
|
141
142
|
case 'transactionDate':
|
|
142
143
|
fields.push('transactionDate');
|
|
143
144
|
break;
|
|
144
145
|
case 'description':
|
|
145
|
-
if (reimbursementLine.description !== '')
|
|
146
|
+
if (reimbursementLine.description !== '') {
|
|
146
147
|
fields.push('memo');
|
|
148
|
+
}
|
|
147
149
|
break;
|
|
148
150
|
case 'lineDetail':
|
|
149
151
|
if (((_b = (_a = reimbursementLine.lineDetail) === null || _a === void 0 ? void 0 : _a.account) === null || _b === void 0 ? void 0 : _b.accountId) != null) {
|
|
@@ -160,6 +162,7 @@ const getTentativeMerchantNameByLineIdData = (reimbursementLine, tentativeMercha
|
|
|
160
162
|
reimbursementLine.merchant != null) {
|
|
161
163
|
return undefined;
|
|
162
164
|
}
|
|
163
|
-
else
|
|
165
|
+
else {
|
|
164
166
|
return tentativeMerchantName;
|
|
167
|
+
}
|
|
165
168
|
};
|
|
@@ -85,8 +85,9 @@ const fetchRemiDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, ope
|
|
|
85
85
|
});
|
|
86
86
|
actions.push((0, editRemiViewReducer_1.indicateReadyToInitializeRemiLocalStore)()); // add dummy action
|
|
87
87
|
if (((_d = response.data.transaction) === null || _d === void 0 ? void 0 : _d.lines) != null &&
|
|
88
|
-
response.data.transaction.lines.length > 0)
|
|
88
|
+
response.data.transaction.lines.length > 0) {
|
|
89
89
|
actions.push((0, remiDetailViewReducer_1.fetchDuplicateReimbursement)(response.data.transaction.created_by_user_id, false, response.data.transaction.transaction_id));
|
|
90
|
+
}
|
|
90
91
|
return (0, rxjs_1.from)(actions);
|
|
91
92
|
}
|
|
92
93
|
else {
|
|
@@ -131,12 +131,15 @@ const getAllSubTabs = (selectedTab, isEmployee, isAdmin, isWireActive, isAchActi
|
|
|
131
131
|
};
|
|
132
132
|
const getAllPaidSubTabs = (isWireActive, isAchActive) => {
|
|
133
133
|
let paidSubTabs = [];
|
|
134
|
-
if (isAchActive)
|
|
134
|
+
if (isAchActive) {
|
|
135
135
|
paidSubTabs.push('ach');
|
|
136
|
-
|
|
136
|
+
}
|
|
137
|
+
if (isWireActive) {
|
|
137
138
|
paidSubTabs.push('wire');
|
|
138
|
-
|
|
139
|
+
}
|
|
140
|
+
if (paidSubTabs.length > 0) {
|
|
139
141
|
paidSubTabs = ['all', ...paidSubTabs, 'deleted'];
|
|
142
|
+
}
|
|
140
143
|
return paidSubTabs;
|
|
141
144
|
};
|
|
142
145
|
const getApproversOrRejectors = (reimbursement, entityApprovalStatusState, userState) => {
|
|
@@ -184,8 +187,9 @@ const getApproversOrRejectors = (reimbursement, entityApprovalStatusState, userS
|
|
|
184
187
|
else {
|
|
185
188
|
//if not isReimbursementSerailized, we need to show all the first approvers in each steps_approval_status
|
|
186
189
|
const pendingActivity = pendingActivities[0];
|
|
187
|
-
if (pendingActivity != null)
|
|
190
|
+
if (pendingActivity != null) {
|
|
188
191
|
pendingActivitiesList.push(pendingActivity);
|
|
192
|
+
}
|
|
189
193
|
}
|
|
190
194
|
});
|
|
191
195
|
if (pendingActivitiesList.length > 0) {
|
|
@@ -196,8 +200,9 @@ const getApproversOrRejectors = (reimbursement, entityApprovalStatusState, userS
|
|
|
196
200
|
}
|
|
197
201
|
else if (activity.subType != null && isAdminFallbackApprover) {
|
|
198
202
|
const subTypeApprover = (0, approvalRuleState_1.toAttributeTypeStrict)(activity.subType);
|
|
199
|
-
if (subTypeApprover != null)
|
|
203
|
+
if (subTypeApprover != null) {
|
|
200
204
|
approvers.attributes.push(subTypeApprover);
|
|
205
|
+
}
|
|
201
206
|
}
|
|
202
207
|
});
|
|
203
208
|
}
|
|
@@ -285,22 +290,25 @@ const getRemiListOnSort = (sortKey, sortOrder, currentTab, reimbursements) => {
|
|
|
285
290
|
if (reimbursement.reportTitle != null) {
|
|
286
291
|
reimbursementsWithSortKeyValue.push(reimbursement);
|
|
287
292
|
}
|
|
288
|
-
else
|
|
293
|
+
else {
|
|
289
294
|
reimbursementsWithNoSortKeyValue.push(reimbursement);
|
|
295
|
+
}
|
|
290
296
|
break;
|
|
291
297
|
case 'submittedOn':
|
|
292
298
|
if (reimbursement.remiDate.valueOf != null) {
|
|
293
299
|
reimbursementsWithSortKeyValue.push(reimbursement);
|
|
294
300
|
}
|
|
295
|
-
else
|
|
301
|
+
else {
|
|
296
302
|
reimbursementsWithNoSortKeyValue.push(reimbursement);
|
|
303
|
+
}
|
|
297
304
|
break;
|
|
298
305
|
case 'type':
|
|
299
306
|
if (reimbursement.reimbursementTypesIncluded.length != 0) {
|
|
300
307
|
reimbursementsWithSortKeyValue.push(reimbursement);
|
|
301
308
|
}
|
|
302
|
-
else
|
|
309
|
+
else {
|
|
303
310
|
reimbursementsWithNoSortKeyValue.push(reimbursement);
|
|
311
|
+
}
|
|
304
312
|
break;
|
|
305
313
|
case 'status':
|
|
306
314
|
switch (currentTab) {
|
|
@@ -308,8 +316,9 @@ const getRemiListOnSort = (sortKey, sortOrder, currentTab, reimbursements) => {
|
|
|
308
316
|
if (Boolean(reimbursement.dueDate) === true) {
|
|
309
317
|
reimbursementsWithSortKeyValue.push(reimbursement);
|
|
310
318
|
}
|
|
311
|
-
else
|
|
319
|
+
else {
|
|
312
320
|
reimbursementsWithNoSortKeyValue.push(reimbursement);
|
|
321
|
+
}
|
|
313
322
|
break;
|
|
314
323
|
case 'pending_approval':
|
|
315
324
|
if (Boolean(reimbursement.reimbursementInfo.billStatus.name) ===
|
|
@@ -317,23 +326,26 @@ const getRemiListOnSort = (sortKey, sortOrder, currentTab, reimbursements) => {
|
|
|
317
326
|
Boolean(reimbursement.dueDate != null)) {
|
|
318
327
|
reimbursementsWithSortKeyValue.push(reimbursement);
|
|
319
328
|
}
|
|
320
|
-
else
|
|
329
|
+
else {
|
|
321
330
|
reimbursementsWithNoSortKeyValue.push(reimbursement);
|
|
331
|
+
}
|
|
322
332
|
break;
|
|
323
333
|
case 'scheduled':
|
|
324
334
|
if (Boolean(reimbursement.reimbursementInfo.billPaymentStatus.name) === true ||
|
|
325
335
|
Boolean(reimbursement.reimbursementInfo.billStatus.name) === true) {
|
|
326
336
|
reimbursementsWithSortKeyValue.push(reimbursement);
|
|
327
337
|
}
|
|
328
|
-
else
|
|
338
|
+
else {
|
|
329
339
|
reimbursementsWithNoSortKeyValue.push(reimbursement);
|
|
340
|
+
}
|
|
330
341
|
break;
|
|
331
342
|
case 'paid':
|
|
332
343
|
if (Boolean(reimbursement.reimbursementInfo.billPaymentMethodType.name) === true) {
|
|
333
344
|
reimbursementsWithSortKeyValue.push(reimbursement);
|
|
334
345
|
}
|
|
335
|
-
else
|
|
346
|
+
else {
|
|
336
347
|
reimbursementsWithNoSortKeyValue.push(reimbursement);
|
|
348
|
+
}
|
|
337
349
|
break;
|
|
338
350
|
}
|
|
339
351
|
break;
|
|
@@ -341,8 +353,9 @@ const getRemiListOnSort = (sortKey, sortOrder, currentTab, reimbursements) => {
|
|
|
341
353
|
if (reimbursement.amount != null) {
|
|
342
354
|
reimbursementsWithSortKeyValue.push(reimbursement);
|
|
343
355
|
}
|
|
344
|
-
else
|
|
356
|
+
else {
|
|
345
357
|
reimbursementsWithNoSortKeyValue.push(reimbursement);
|
|
358
|
+
}
|
|
346
359
|
break;
|
|
347
360
|
}
|
|
348
361
|
});
|
|
@@ -179,14 +179,13 @@ const getCategoryValueForBill = (key, bill) => {
|
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
181
|
const getCategoryValueForTaskList = (key, task) => {
|
|
182
|
-
var _a;
|
|
183
182
|
switch (key) {
|
|
184
183
|
case 'dueDate':
|
|
185
184
|
return task.dueDate;
|
|
186
185
|
case 'priority':
|
|
187
186
|
return task.priority.code;
|
|
188
187
|
case 'tag':
|
|
189
|
-
return
|
|
188
|
+
return task.tagIds;
|
|
190
189
|
case 'status':
|
|
191
190
|
return task.status.code;
|
|
192
191
|
case 'creationDate':
|