@zeniai/client-epic-state 4.14.5 → 4.14.7
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/billPay/billTransaction/billTransactionPayload.d.ts +1 -0
- package/lib/entity/billPay/billTransaction/billTransactionPayload.js +3 -0
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +6 -3
- package/lib/entity/billPay/billTransaction/billTransactionState.js +18 -1
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +1 -0
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/index.d.ts +11 -11
- package/lib/index.js +23 -15
- package/lib/view/bankAccountView/bankAccountViewReducer.d.ts +2 -2
- package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +7 -4
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +2 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +1 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +1 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/initializeTransactionCategorizationLocalDataEpic.js +3 -3
- package/lib/view/expenseAutomationView/epics/transactionCategorization/markTransactionAsNotMiscatgorizedEpic.js +1 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/saveTransactionCategorizationEpic.js +1 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +2 -1
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +1 -3
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +2 -12
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +13 -12
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +0 -2
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +2 -0
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +102 -65
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +1 -2
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +20 -11
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +4 -1
- 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/recommendation/fetchEntityRecommendationsByTransactionIdEpic.js +1 -1
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +5 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +22 -6
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +3 -2
- package/lib/view/spendManagement/billPay/billList/billListSelector.js +54 -17
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListState.js +1 -0
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +7 -2
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.js +18 -6
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.js +6 -0
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +9 -4
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +18 -4
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +2 -0
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.d.ts +8 -4
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +27 -5
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +4 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +33 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +6 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.js +16 -5
- package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +27 -13
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +7 -3
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +48 -28
- package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewReducer.d.ts +2 -2
- package/lib/view/spendManagement/helpers.d.ts +2 -0
- package/lib/view/spendManagement/helpers.js +9 -1
- package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
- package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
|
|
|
7
7
|
export declare type ActionType = ReturnType<typeof createCardSetupIntent> | ReturnType<typeof updateCardSetupIntentStatus> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateCardPayments>;
|
|
8
8
|
export declare const createCardSetupIntentEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
9
9
|
payload: {
|
|
10
|
-
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "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_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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "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" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload";
|
|
10
|
+
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "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_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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "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" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload";
|
|
11
11
|
messageText: "failed" | "success" | "notification";
|
|
12
12
|
type: import("../../..").SnackbarMessageType;
|
|
13
13
|
showStatusIcon?: boolean | undefined;
|
|
@@ -7,7 +7,7 @@ import { updateSubscriptionPaymentAccounts } from '../../../entity/subscriptionP
|
|
|
7
7
|
export declare type ActionType = ReturnType<typeof fetchPaymentSources> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateSubscriptionPaymentAccounts> | ReturnType<typeof updatePaymentSources>;
|
|
8
8
|
export declare const fetchPaymentSourcesEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
9
9
|
payload: {
|
|
10
|
-
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "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_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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "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" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload";
|
|
10
|
+
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "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_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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "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" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload";
|
|
11
11
|
messageText: "failed" | "success" | "notification";
|
|
12
12
|
type: import("../../..").SnackbarMessageType;
|
|
13
13
|
showStatusIcon?: boolean | undefined;
|
|
@@ -16,7 +16,7 @@ const fetchAllExpenseAutomationTabsEpic = (actions$, state$) => actions$.pipe((0
|
|
|
16
16
|
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
|
|
17
17
|
const companyId = currentTenant.companyId;
|
|
18
18
|
const selectedPeriod = state.expenseAutomationViewState.selectedPeriodByTenantId[currentTenant.tenantId];
|
|
19
|
-
const { selectedTransactionCategorizationTab } = state.
|
|
19
|
+
const { selectedTransactionCategorizationTab } = state.expenseAutomationTransactionsViewState;
|
|
20
20
|
const period = (0, timePeriod_1.convertToPeriod)(selectedPeriod);
|
|
21
21
|
const timePeriodStart = (0, timePeriod_1.toAbsoluteDay)(period.start);
|
|
22
22
|
const timePeriodEnd = (0, timePeriod_1.toAbsoluteDay)(period.end);
|
|
@@ -68,9 +68,12 @@ const fetchAllExpenseAutomationTabsEpic = (actions$, state$) => actions$.pipe((0
|
|
|
68
68
|
null)) {
|
|
69
69
|
fetchActions.push((0, jeSchedulesViewReducer_1.fetchJeSchedulesPage)({ start: timePeriodStart, end: timePeriodEnd }, cacheOverride));
|
|
70
70
|
}
|
|
71
|
-
if (state.expenseAutomationTransactionsViewState
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
if (state.expenseAutomationTransactionsViewState
|
|
72
|
+
.transactionCategorizationView[selectedTransactionCategorizationTab]
|
|
73
|
+
.fetchState !== 'In-Progress' &&
|
|
74
|
+
(state.expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTransactionCategorizationTab].hasValidState() === false ||
|
|
75
|
+
state.expenseAutomationTransactionsViewState
|
|
76
|
+
.transactionCategorizationView[selectedTransactionCategorizationTab].transactionIdsBySelectedPeriod[monthYearPeriodId] == null)) {
|
|
74
77
|
fetchActions.push((0, transactionsViewReducer_1.fetchTransactionCategorizationView)(selectedTransactionCategorizationTab, { start: timePeriodStart, end: timePeriodEnd }, cacheOverride, false, undefined, undefined, refreshViewInBackground));
|
|
75
78
|
}
|
|
76
79
|
return (0, rxjs_1.from)(fetchActions);
|
package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js
CHANGED
|
@@ -15,7 +15,8 @@ const refreshExpenseAutomationCurrentTabEpic = (actions$, state$) => actions$.pi
|
|
|
15
15
|
const state = state$.value;
|
|
16
16
|
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
|
|
17
17
|
const companyId = currentTenant.companyId;
|
|
18
|
-
const {
|
|
18
|
+
const { selectedTransactionCategorizationTab } = state.expenseAutomationTransactionsViewState;
|
|
19
|
+
const { selectedPeriodByTenantId, currentSelectedView } = state.expenseAutomationViewState;
|
|
19
20
|
const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
|
|
20
21
|
const period = (0, timePeriod_1.convertToPeriod)(selectedPeriod);
|
|
21
22
|
const timePeriodStart = (0, timePeriod_1.toAbsoluteDay)(period.start);
|
|
@@ -12,7 +12,7 @@ const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
|
12
12
|
const fetchTransactionCategorizationEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(transactionsViewReducer_1.fetchTransactionCategorization.match), (0, operators_1.switchMap)((action) => {
|
|
13
13
|
const { expenseAutomationViewState: { selectedPeriodByTenantId }, expenseAutomationTransactionsViewState, } = state$.value;
|
|
14
14
|
const { period, keepExistingListItems, selectedTab, refreshViewInBackground, } = action.payload;
|
|
15
|
-
const uiState = expenseAutomationTransactionsViewState[selectedTab].uiState;
|
|
15
|
+
const uiState = expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTab].uiState;
|
|
16
16
|
const { pageToken, sortOrder, sortKey } = uiState;
|
|
17
17
|
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state$.value);
|
|
18
18
|
const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
|
|
@@ -12,7 +12,7 @@ const fetchTransactionCategorizationViewEpic = (actions$, state$) => actions$.pi
|
|
|
12
12
|
const { selectedTab, cacheOverride, keepExistingListItems, pageToken, period, refreshViewInBackground, searchString, resetListItems, } = action.payload;
|
|
13
13
|
const updateActions = [];
|
|
14
14
|
const { expenseAutomationTransactionsViewState } = state$.value;
|
|
15
|
-
const { fetchState, transactionIdsBySelectedPeriod } = expenseAutomationTransactionsViewState[selectedTab];
|
|
15
|
+
const { fetchState, transactionIdsBySelectedPeriod } = expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTab];
|
|
16
16
|
const monthYearPeriod = {
|
|
17
17
|
month: period.start.month,
|
|
18
18
|
year: period.start.year,
|
|
@@ -10,9 +10,9 @@ const transactionCategorizationLocalDataHelper_1 = require("../../helpers/transa
|
|
|
10
10
|
const initializeTransactionCategorizationViewLocalDataEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(transactionsViewReducer_1.initializeTransactionCategorizationViewLocalData.match), (0, operators_1.mergeMap)((action) => {
|
|
11
11
|
const { transactionIds, selectedPeriod, keepExistingListItems, selectedTab, pageToken, totalCount, refreshViewInBackground, } = action.payload;
|
|
12
12
|
const fetchActions = [];
|
|
13
|
-
const { transactionState, expenseAutomationTransactionsViewState
|
|
14
|
-
const { selectedTransactionCategorizationTab } =
|
|
15
|
-
const { transactionReviewLocalDataById } = expenseAutomationTransactionsViewState[selectedTransactionCategorizationTab];
|
|
13
|
+
const { transactionState, expenseAutomationTransactionsViewState } = state$.value;
|
|
14
|
+
const { selectedTransactionCategorizationTab } = expenseAutomationTransactionsViewState;
|
|
15
|
+
const { transactionReviewLocalDataById } = expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTransactionCategorizationTab];
|
|
16
16
|
const transactionLocalData = Object.assign({}, transactionReviewLocalDataById);
|
|
17
17
|
const transactions = (0, transactionSelector_1.getSupportedTransactionsByIds)(transactionState, transactionIds);
|
|
18
18
|
transactions.forEach((transaction) => {
|
|
@@ -17,7 +17,7 @@ const markTransactionAsNotMiscategorizedEpic = (actions$, state$, zeniAPI) => ac
|
|
|
17
17
|
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state$.value);
|
|
18
18
|
const selectedPeriod = expenseAutomationViewState.selectedPeriodByTenantId[currentTenant.tenantId];
|
|
19
19
|
const { selectedTab } = action.payload;
|
|
20
|
-
const { uiState } = expenseAutomationTransactionsViewState[selectedTab];
|
|
20
|
+
const { uiState } = expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTab];
|
|
21
21
|
if (transactionsInReview.length > 0) {
|
|
22
22
|
return zeniAPI
|
|
23
23
|
.putAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/expense-automation/mark-as-reviewed`, { transactions_reviewed: transactionsInReview })
|
|
@@ -18,8 +18,7 @@ const saveTransactionCategorizationEpic = (actions$, state$) => actions$.pipe((0
|
|
|
18
18
|
const transactionSaveUpdates = [];
|
|
19
19
|
const transactions = (0, transactionSelector_1.getSupportedTransactionsByIds)(transactionState, transactionIds);
|
|
20
20
|
transactions.forEach((transaction) => {
|
|
21
|
-
const detail = (0, get_1.default)(expenseAutomationTransactionsViewState[selectedTab]
|
|
22
|
-
.transactionReviewLocalDataById, transaction.id, undefined);
|
|
21
|
+
const detail = (0, get_1.default)(expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTab].transactionReviewLocalDataById, transaction.id, undefined);
|
|
23
22
|
const uncategorizedIncomeExpense = (0, accountListSelector_1.getUncategorizedAccounts)(state$.value.accountState, state$.value.accountListState, 'accountList');
|
|
24
23
|
const localData = detail === null || detail === void 0 ? void 0 : detail.transactionReviewLocalData;
|
|
25
24
|
if (localData != null) {
|
|
@@ -42,7 +42,8 @@ exports.updateTransactionCategorizationEpic = updateTransactionCategorizationEpi
|
|
|
42
42
|
function prepareTransactionPayload(selectedTab, transactionState, vendorState, transactionsViewState, transactionId, saveUpdates) {
|
|
43
43
|
var _a;
|
|
44
44
|
const detail = (0, transactionSelector_1.getSupportedTransactionById)(transactionState, transactionId);
|
|
45
|
-
const tranDetail = (0, get_1.default)(transactionsViewState[selectedTab]
|
|
45
|
+
const tranDetail = (0, get_1.default)(transactionsViewState.transactionCategorizationView[selectedTab]
|
|
46
|
+
.transactionReviewLocalDataById, transactionId, undefined);
|
|
46
47
|
const tranVendorUpdates = (_a = tranDetail === null || tranDetail === void 0 ? void 0 : tranDetail.transactionReviewLocalData) === null || _a === void 0 ? void 0 : _a.vendorUpdates;
|
|
47
48
|
let vendorUpdates = undefined;
|
|
48
49
|
if ((tranVendorUpdates === null || tranVendorUpdates === void 0 ? void 0 : tranVendorUpdates.qboId) != null) {
|
|
@@ -12,8 +12,6 @@ export declare const fetchAllExpenseAutomationTabs: import("@reduxjs/toolkit").A
|
|
|
12
12
|
newSelectedView: "transaction_categorization" | "je_schedules" | "account_recon" | "missing_receipts" | "flux_analysis" | "month_end_insights";
|
|
13
13
|
}, string, never, never>, clearExpenseAutomationView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, initializeSelectedPeriodForTenants: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
14
14
|
selectedPeriodByTenantId: Record<ID, MonthYearPeriod>;
|
|
15
|
-
}, string>, refreshExpenseAutomationCurrentTab: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string
|
|
16
|
-
newSelectedTab: "review" | "autoCategorized";
|
|
17
|
-
}, string, never, never>;
|
|
15
|
+
}, string>, refreshExpenseAutomationCurrentTab: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
18
16
|
declare const _default: import("@reduxjs/toolkit").Reducer<ExpenseAutomationViewState, import("@reduxjs/toolkit").AnyAction>;
|
|
19
17
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.refreshExpenseAutomationCurrentTab = exports.initializeSelectedPeriodForTenants = exports.clearExpenseAutomationView = exports.updateCurrentSelectedView = exports.updateCurrentSelectedPeriod = exports.fetchAllExpenseAutomationTabs = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
exports.initialState = {
|
|
7
7
|
saveStatus: { fetchState: 'Not-Started', error: undefined },
|
|
@@ -13,7 +13,6 @@ exports.initialState = {
|
|
|
13
13
|
hasValidState() {
|
|
14
14
|
return this.fetchState == 'Completed';
|
|
15
15
|
},
|
|
16
|
-
selectedTransactionCategorizationTab: 'review',
|
|
17
16
|
};
|
|
18
17
|
const expenseAutomationView = (0, toolkit_1.createSlice)({
|
|
19
18
|
name: 'expenseAutomationView',
|
|
@@ -63,19 +62,10 @@ const expenseAutomationView = (0, toolkit_1.createSlice)({
|
|
|
63
62
|
return { payload: { newSelectedPeriod, tenantId } };
|
|
64
63
|
},
|
|
65
64
|
},
|
|
66
|
-
updateCurrentSelectedTransactionCategorizationTab: {
|
|
67
|
-
reducer(draft, action) {
|
|
68
|
-
draft.selectedTransactionCategorizationTab =
|
|
69
|
-
action.payload.newSelectedTab;
|
|
70
|
-
},
|
|
71
|
-
prepare(newSelectedTab) {
|
|
72
|
-
return { payload: { newSelectedTab } };
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
65
|
clearExpenseAutomationView(draft) {
|
|
76
66
|
Object.assign(draft, exports.initialState);
|
|
77
67
|
},
|
|
78
68
|
},
|
|
79
69
|
});
|
|
80
|
-
_a = expenseAutomationView.actions, exports.fetchAllExpenseAutomationTabs = _a.fetchAllExpenseAutomationTabs, exports.updateCurrentSelectedPeriod = _a.updateCurrentSelectedPeriod, exports.updateCurrentSelectedView = _a.updateCurrentSelectedView, exports.clearExpenseAutomationView = _a.clearExpenseAutomationView, exports.initializeSelectedPeriodForTenants = _a.initializeSelectedPeriodForTenants, exports.refreshExpenseAutomationCurrentTab = _a.refreshExpenseAutomationCurrentTab
|
|
70
|
+
_a = expenseAutomationView.actions, exports.fetchAllExpenseAutomationTabs = _a.fetchAllExpenseAutomationTabs, exports.updateCurrentSelectedPeriod = _a.updateCurrentSelectedPeriod, exports.updateCurrentSelectedView = _a.updateCurrentSelectedView, exports.clearExpenseAutomationView = _a.clearExpenseAutomationView, exports.initializeSelectedPeriodForTenants = _a.initializeSelectedPeriodForTenants, exports.refreshExpenseAutomationCurrentTab = _a.refreshExpenseAutomationCurrentTab;
|
|
81
71
|
exports.default = expenseAutomationView.reducer;
|
|
@@ -24,10 +24,11 @@ const isPreviousStepDisabled = (selectedTransactionCategorizationTab, allSteps,
|
|
|
24
24
|
};
|
|
25
25
|
function getExpenseAutomationView(state) {
|
|
26
26
|
var _a, _b, _c;
|
|
27
|
-
const { expenseAutomationViewState, tenantState, expenseAutomationMissingReceiptsViewState, expenseAutomationJESchedulesViewState, monthEndCloseChecksState, companyState, } = state;
|
|
27
|
+
const { expenseAutomationViewState, tenantState, expenseAutomationMissingReceiptsViewState, expenseAutomationJESchedulesViewState, expenseAutomationTransactionsViewState, monthEndCloseChecksState, companyState, } = state;
|
|
28
28
|
const { loggedInUser, currentTenantId } = tenantState;
|
|
29
29
|
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
|
|
30
|
-
const { currentSelectedView, selectedPeriodByTenantId
|
|
30
|
+
const { currentSelectedView, selectedPeriodByTenantId } = expenseAutomationViewState;
|
|
31
|
+
const { selectedTransactionCategorizationTab } = expenseAutomationTransactionsViewState;
|
|
31
32
|
const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
|
|
32
33
|
let currentSelectedViewFetchState = {
|
|
33
34
|
fetchState: 'Not-Started',
|
|
@@ -41,7 +42,7 @@ function getExpenseAutomationView(state) {
|
|
|
41
42
|
const missingReceipts = (0, missingReceiptsSelector_1.getExpenseAutomationMissingReceiptsView)(state);
|
|
42
43
|
const fluxAnalysis = (0, fluxAnalysisViewSelector_1.getExpenseAutomationFluxAnalysisView)(state);
|
|
43
44
|
const monthEndInsights = (0, companyMonthEndReportViewSelector_1.getCompanyMonthEndReportSelectorView)(state, currentTenant.companyId, loggedInUser);
|
|
44
|
-
const
|
|
45
|
+
const expenseAutomationTransactionsView = (0, transactionCategorizationSelector_1.getExpenseAutomationTransactionView)(state);
|
|
45
46
|
const jeSchedules = (0, jeSchedulesViewSelector_1.getExpenseAutomationJESchedulesView)(state);
|
|
46
47
|
switch (currentSelectedView) {
|
|
47
48
|
case 'flux_analysis':
|
|
@@ -67,11 +68,11 @@ function getExpenseAutomationView(state) {
|
|
|
67
68
|
break;
|
|
68
69
|
case 'transaction_categorization':
|
|
69
70
|
currentSelectedViewFetchState = {
|
|
70
|
-
fetchState:
|
|
71
|
-
error:
|
|
71
|
+
fetchState: expenseAutomationTransactionsView.fetchState,
|
|
72
|
+
error: expenseAutomationTransactionsView.error,
|
|
72
73
|
};
|
|
73
74
|
currentSelectedViewBackgroundRefreshFetchState =
|
|
74
|
-
|
|
75
|
+
expenseAutomationTransactionsView.refreshStatus;
|
|
75
76
|
break;
|
|
76
77
|
case 'month_end_insights':
|
|
77
78
|
currentSelectedViewFetchState = {
|
|
@@ -88,7 +89,7 @@ function getExpenseAutomationView(state) {
|
|
|
88
89
|
expenseAutomationMissingReceiptsViewState,
|
|
89
90
|
expenseAutomationJESchedulesViewState,
|
|
90
91
|
monthEndCloseChecksView,
|
|
91
|
-
|
|
92
|
+
expenseAutomationTransactionsView,
|
|
92
93
|
];
|
|
93
94
|
let allSteps = [];
|
|
94
95
|
let auditSummary = undefined;
|
|
@@ -108,7 +109,7 @@ function getExpenseAutomationView(state) {
|
|
|
108
109
|
allSteps.forEach((stepDetail, index, allStepsOriginal) => {
|
|
109
110
|
switch (stepDetail.step) {
|
|
110
111
|
case 'transaction_categorization':
|
|
111
|
-
allStepsOriginal[index] = Object.assign(Object.assign({}, stepDetail), { completionStatus:
|
|
112
|
+
allStepsOriginal[index] = Object.assign(Object.assign({}, stepDetail), { completionStatus: expenseAutomationTransactionsView.completionStatus });
|
|
112
113
|
return;
|
|
113
114
|
case 'je_schedules':
|
|
114
115
|
allStepsOriginal[index] = Object.assign(Object.assign({}, stepDetail), { completionStatus: jeSchedules.completionStatus });
|
|
@@ -135,15 +136,15 @@ function getExpenseAutomationView(state) {
|
|
|
135
136
|
}
|
|
136
137
|
const reducedFetchStatus = (0, reduceFetchState_1.reduceAnyFetchState)(fetchStateVariables); // Add more states
|
|
137
138
|
const reducedSaveStatus = (0, reduceFetchState_1.reduceAllFetchState)([
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
expenseAutomationTransactionsView.saveStatus,
|
|
140
|
+
expenseAutomationTransactionsView.markAsNotMiscategorizedStatus,
|
|
140
141
|
]);
|
|
141
142
|
const reducedUpdateStatus = (0, reduceFetchState_1.reduceAllFetchState)([
|
|
142
|
-
|
|
143
|
+
expenseAutomationTransactionsView.saveStatus, // TODO - Anjali add more states
|
|
143
144
|
]);
|
|
144
145
|
return {
|
|
145
146
|
jeSchedules,
|
|
146
|
-
transactionView:
|
|
147
|
+
transactionView: expenseAutomationTransactionsView,
|
|
147
148
|
missingReceipts,
|
|
148
149
|
currentSelectedViewFetchState,
|
|
149
150
|
currentSelectedViewBackgroundRefreshFetchState,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FetchedState, FetchStateAndError, ID } from '../../commonStateTypes/common';
|
|
2
2
|
import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
|
|
3
|
-
import { TransactionsTab } from './types/transactionsViewState';
|
|
4
3
|
export declare const EXPENSE_AUTOMATION_VIEW_TYPES: readonly ["transaction_categorization", "je_schedules", "account_recon", "missing_receipts", "flux_analysis", "month_end_insights"];
|
|
5
4
|
export declare const toExpenseAutomationViewType: (v: string) => "transaction_categorization" | "je_schedules" | "account_recon" | "missing_receipts" | "flux_analysis" | "month_end_insights";
|
|
6
5
|
export declare type ExpenseAutomationViewType = ReturnType<typeof toExpenseAutomationViewType>;
|
|
@@ -9,5 +8,4 @@ export interface ExpenseAutomationViewState extends FetchedState {
|
|
|
9
8
|
updateStatus: FetchStateAndError;
|
|
10
9
|
currentSelectedView: ExpenseAutomationViewType;
|
|
11
10
|
selectedPeriodByTenantId: Record<ID, MonthYearPeriod>;
|
|
12
|
-
selectedTransactionCategorizationTab: TransactionsTab;
|
|
13
11
|
}
|
|
@@ -53,6 +53,8 @@ export declare const fetchTransactionCategorization: import("@reduxjs/toolkit").
|
|
|
53
53
|
selectedTab: "review" | "autoCategorized";
|
|
54
54
|
transactionIds: string[];
|
|
55
55
|
transactionSaveUpdates: TransactionSaveUpdates[];
|
|
56
|
+
}, string, never, never>, updateCurrentSelectedTransactionCategorizationTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSelectedTab: "review" | "autoCategorized"], {
|
|
57
|
+
newSelectedTab: "review" | "autoCategorized";
|
|
56
58
|
}, string, never, never>, updateTransactionCategorizationSaveStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedTab: "review" | "autoCategorized", fetchState: FetchState, error?: ZeniAPIStatus<Record<string, unknown>> | undefined], {
|
|
57
59
|
selectedTab: "review" | "autoCategorized";
|
|
58
60
|
fetchState: FetchState;
|