@zeniai/client-epic-state 4.15.43 → 4.15.44
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/README.md +19 -1
- package/lib/commonPayloadTypes/recommendationPayload.d.ts +1 -0
- package/lib/commonStateTypes/common.d.ts +1 -1
- package/lib/commonStateTypes/fiscalYearHelpers/getFYMonths.d.ts +2 -2
- package/lib/commonStateTypes/fiscalYearHelpers/getFYQuarterAndYear.d.ts +2 -2
- package/lib/commonStateTypes/timePeriod.d.ts +7 -7
- package/lib/commonStateTypes/timePeriod.js +2 -2
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +1 -1
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +1 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +1 -0
- package/lib/configureStore.js +2 -1
- package/lib/entity/account/accountSelector.d.ts +3 -3
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -22
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/accountRecon/accountReconPayload.d.ts +70 -0
- package/lib/entity/accountRecon/accountReconPayload.js +125 -0
- package/lib/entity/accountRecon/accountReconReducer.d.ts +16 -0
- package/lib/entity/accountRecon/accountReconReducer.js +71 -0
- package/lib/entity/accountRecon/accountReconSelector.d.ts +28 -0
- package/lib/entity/accountRecon/accountReconSelector.js +44 -0
- package/lib/entity/accountRecon/accountReconState.d.ts +70 -0
- package/lib/entity/accountRecon/accountReconState.js +28 -0
- package/lib/entity/approvalRule/approvalRuleState.d.ts +2 -2
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +4 -4
- package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
- package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/company/companyReducer.js +0 -1
- package/lib/entity/customer/customerPayload.d.ts +1 -1
- package/lib/entity/customer/customerPayload.js +16 -6
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
- package/lib/entity/file/fileState.d.ts +3 -3
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +2 -2
- package/lib/entity/notification/types/notificationTypes.d.ts +2 -2
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.js +4 -0
- package/lib/entity/task/taskState.d.ts +3 -3
- package/lib/entity/tenant/clearAllEpic.d.ts +4 -2
- package/lib/entity/tenant/clearAllEpic.js +4 -0
- package/lib/entity/tenant/tenantReducer.d.ts +2 -2
- package/lib/entity/tenant/tenantReducer.js +0 -1
- package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
- package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +1 -2
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +35 -0
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +53 -0
- package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +2 -0
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +9 -6
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +9 -1
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +24 -2
- package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -2
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +32 -0
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +10 -0
- package/lib/entity/transaction/stateTypes/transaction.d.ts +3 -1
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/transactionType.js +1 -1
- package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +5 -0
- package/lib/entity/transaction/stateTypes/vendorTransaction.js +5 -1
- package/lib/entity/transaction/toSupportedTransaction.js +6 -1
- package/lib/entity/transaction/transactionReducer.d.ts +17 -0
- package/lib/entity/transaction/transactionReducer.js +47 -2
- package/lib/entity/transaction/transactionSelector.d.ts +2 -0
- package/lib/entity/transaction/transactionSelector.js +5 -0
- package/lib/entity/transaction/transactionState.d.ts +6 -4
- package/lib/entity/vendorExpense/vendorExpenseReducer.js +0 -1
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/epic.d.ts +6 -1
- package/lib/epic.js +6 -1
- package/lib/index.d.ts +20 -12
- package/lib/index.js +56 -27
- package/lib/init.d.ts +2 -1
- package/lib/init.js +9 -2
- package/lib/reducer.d.ts +7 -1
- package/lib/reducer.js +6 -0
- package/lib/view/accountList/accountListReducer.js +1 -3
- package/lib/view/accountMappingView/accountMappingReducer.js +0 -1
- package/lib/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +1 -2
- package/lib/view/auditReportView/auditReportViewReducer.d.ts +2 -2
- package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
- package/lib/view/balanceSheet/balanceSheetReducer.js +1 -6
- package/lib/view/bankAccountView/bankAccountViewReducer.js +0 -1
- package/lib/view/billPayCard/billPayCardSelector.d.ts +2 -2
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +3 -3
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +3 -3
- package/lib/view/cashFlow/cashFlowReducer.js +1 -4
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +2 -2
- package/lib/view/cashPosition/cashPositionReducer.js +0 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +2 -2
- package/lib/view/common/reportsHelpers.d.ts +1 -1
- package/lib/view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic.js +7 -0
- package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +1 -3
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
- package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
- package/lib/view/companyView/companyViewReducer.d.ts +1 -1
- package/lib/view/companyView/companyViewReducer.js +1 -10
- package/lib/view/companyView/types/cockpitTypes.d.ts +3 -3
- package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +1 -1
- package/lib/view/dashboard/dashboardEpic.js +0 -2
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +15 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +118 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +10 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +49 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +14 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +169 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +9 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +154 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +6 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +110 -0
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +24 -10
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +14 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +30 -7
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +1 -5
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +17 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +7 -0
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +18 -0
- package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +98 -42
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +86 -10
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +28 -0
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +51 -0
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +11 -11
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +66 -0
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +384 -0
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +12 -1
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +66 -7
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +2 -0
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +51 -0
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +7 -0
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +5 -2
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +5 -0
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +254 -0
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +103 -0
- package/lib/view/expenseAutomationView/types/reconciliationViewState.js +37 -0
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +12 -2
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/financeStatement/financeStatementReducer.js +1 -4
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +4 -4
- package/lib/view/netBurnOrIncome/netBurnOrIncomeReducer.js +3 -10
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +1 -6
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +0 -1
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +1 -1
- package/lib/view/notificationView/notificationViewReducer.d.ts +8 -8
- package/lib/view/notificationView/notificationViewState.d.ts +2 -2
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +0 -3
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -2
- package/lib/view/opEx/opExForTimeFrameEpic.js +1 -1
- package/lib/view/opEx/opExReducer.js +4 -14
- package/lib/view/opExByVendor/opExByVendorReducer.js +1 -3
- package/lib/view/opExByVendor/opExByVendorState.d.ts +1 -1
- package/lib/view/opExClassesView/opExClassesViewReducer.js +1 -6
- package/lib/view/people/fetchPeopleEpic.js +1 -3
- package/lib/view/people/invitePeopleEpic.js +1 -3
- package/lib/view/people/inviteZeniPeopleEpic.js +1 -3
- package/lib/view/people/peopleReducer.js +0 -1
- package/lib/view/people/peopleSaveUpdatesEpic.js +1 -1
- package/lib/view/profitAndLoss/profitAndLossReducer.js +1 -6
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +1 -6
- package/lib/view/recommendation/recommendationReducer.js +1 -4
- package/lib/view/referralView/referralState.d.ts +1 -1
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +2 -2
- package/lib/view/reportUIOptions/reportUIOptionsReducer.d.ts +8 -8
- package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.js +1 -3
- package/lib/view/revenue/revenueReducer.js +3 -10
- package/lib/view/revenueClassesView/revenueClassesViewReducer.js +1 -6
- package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +4 -4
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -2
- package/lib/view/settingsView/settingsViewReducer.js +0 -1
- package/lib/view/settingsView/settingsViewState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.js +0 -1
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +0 -6
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +4 -3
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +1 -3
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +2 -2
- package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +7 -7
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -1
- package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +11 -3
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +11 -10
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +3 -1
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.js +2 -6
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +1 -3
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.js +0 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +4 -4
- package/lib/view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer.d.ts +2 -2
- package/lib/view/subscriptionView/subscriptionViewReducer.js +0 -1
- package/lib/view/subscriptionView/types/subscriptionTypes.js +0 -1
- package/lib/view/taskManager/taskListView/epics/dragNDropTasksEpic.js +1 -3
- package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
- package/lib/view/taskManager/taskListView/taskListSelector.d.ts +1 -1
- package/lib/view/tasksCard/fetchTasksCardEpic.js +1 -2
- package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
- package/lib/view/tasksCard/tasksCardSelector.js +1 -1
- package/lib/view/topEx/topExSelector.d.ts +3 -3
- package/lib/view/transactionDetail/epics/saveTransactionHelper.js +30 -52
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +22 -4
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +66 -13
- package/lib/view/transactionDetail/transactionDetailReducer.d.ts +13 -4
- package/lib/view/transactionDetail/transactionDetailReducer.js +51 -21
- package/lib/view/transactionDetail/transactionDetailState.d.ts +3 -2
- package/lib/view/transactionDetail/transactionDetailTypes.d.ts +8 -0
- package/lib/view/transactionList/transactionListByEntitySelector.js +0 -2
- package/lib/view/transactionList/transactionListReducer.js +4 -6
- package/lib/view/trendWithTransactions/trendWithTransactionsReducer.js +0 -1
- package/lib/view/userFinancialAccount/userFinancialAccountReducer.js +1 -3
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
- package/lib/zeniAPI.d.ts +1 -0
- package/lib/zeniUrl.d.ts +1 -1
- package/package.json +13 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const toSnackbarMessageSection: (v: string) => "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_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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "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_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "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" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload" | "billing_address_view" | "express_pay_submit";
|
|
1
|
+
export declare const toSnackbarMessageSection: (v: string) => "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_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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "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_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "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" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_creation";
|
|
2
2
|
export type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
|
|
3
|
-
export declare const toSnackbarMessageSectionTexts: (v: string) => "
|
|
3
|
+
export declare const toSnackbarMessageSectionTexts: (v: string) => "notification" | "failed" | "success";
|
|
4
4
|
export type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
|
|
5
5
|
export type SnackbarMessageType = 'info' | 'warning' | 'error' | 'none' | 'success' | 'notification';
|
|
@@ -146,6 +146,10 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
|
|
|
146
146
|
'receipts_upload',
|
|
147
147
|
'billing_address_view',
|
|
148
148
|
'express_pay_submit',
|
|
149
|
+
'exclude_transaction',
|
|
150
|
+
'reconcile',
|
|
151
|
+
'save_reconcile_for_later',
|
|
152
|
+
'recon_transaction_creation',
|
|
149
153
|
];
|
|
150
154
|
const toSnackbarMessageSection = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SNACKBAR_MESSAGE_SECTIONS);
|
|
151
155
|
exports.toSnackbarMessageSection = toSnackbarMessageSection;
|
|
@@ -37,11 +37,11 @@ export interface TaskStatus {
|
|
|
37
37
|
name: string;
|
|
38
38
|
}
|
|
39
39
|
export declare const ALL_PRIORITY_CODE: readonly ["urgent", "high", "normal", "medium", "low"];
|
|
40
|
-
export declare const toPriorityCodeType: (v: string) => "
|
|
41
|
-
export declare const toPriorityCodeTypeStrict: (v?: string) => "
|
|
40
|
+
export declare const toPriorityCodeType: (v: string) => "urgent" | "high" | "normal" | "medium" | "low";
|
|
41
|
+
export declare const toPriorityCodeTypeStrict: (v?: string) => "urgent" | "high" | "normal" | "medium" | "low" | undefined;
|
|
42
42
|
export type PriorityCodeType = ReturnType<typeof toPriorityCodeType>;
|
|
43
43
|
export declare const ALL_TASK_STATUS_CODE: readonly ["todo", "in_progress", "on_hold", "done", "resolved"];
|
|
44
|
-
export declare const toTaskStatusCodeType: (v: string) => "
|
|
44
|
+
export declare const toTaskStatusCodeType: (v: string) => "resolved" | "in_progress" | "todo" | "on_hold" | "done";
|
|
45
45
|
export type TaskStatusCodeType = ReturnType<typeof toTaskStatusCodeType>;
|
|
46
46
|
export declare const toTaskCodeType: (v: string) => "one_time" | "recurring";
|
|
47
47
|
export type TaskCodeType = NonNullable<ReturnType<typeof toTaskCodeType>>;
|
|
@@ -37,6 +37,7 @@ import { clearExpenseAutomationView } from '../../view/expenseAutomationView/exp
|
|
|
37
37
|
import { clearExpenseAutomationFluxAnalysisView } from '../../view/expenseAutomationView/reducers/fluxAnalysisViewReducer';
|
|
38
38
|
import { clearExpenseAutomationJESchedulesView } from '../../view/expenseAutomationView/reducers/jeSchedulesViewReducer';
|
|
39
39
|
import { clearExpenseAutomationMissingReceiptsView } from '../../view/expenseAutomationView/reducers/missingReceiptsViewReducer';
|
|
40
|
+
import { clearExpenseAutomationReconciliationView } from '../../view/expenseAutomationView/reducers/reconciliationViewReducer';
|
|
40
41
|
import { clearExpenseAutomationTransactionsView } from '../../view/expenseAutomationView/reducers/transactionsViewReducer';
|
|
41
42
|
import { clearFileViewList } from '../../view/fileView/fileViewReducer';
|
|
42
43
|
import { clearFinanceStatement } from '../../view/financeStatement/financeStatementReducer';
|
|
@@ -137,6 +138,7 @@ import { clearZeniAccStatementList } from '../../view/zeniAccStatementList/zeniA
|
|
|
137
138
|
import { clearZeniAccountsPromoCard } from '../../view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer';
|
|
138
139
|
import { clearAllAccounts } from '../account/accountReducer';
|
|
139
140
|
import { clearAllAccountGroups } from '../accountGroup/accountGroupReducer';
|
|
141
|
+
import { clearAllAccountRecon } from '../accountRecon/accountReconReducer';
|
|
140
142
|
import { clearAllAddresses } from '../address/addressReducer';
|
|
141
143
|
import { clearAllBankAccounts } from '../bankAccount/bankAccountReducer';
|
|
142
144
|
import { clearAllBillTransactions } from '../billPay/billTransaction/billTransactionReducer';
|
|
@@ -183,8 +185,8 @@ import { clearAllUserRoles } from '../userRole/userRoleReducer';
|
|
|
183
185
|
import { clearAllVendors } from '../vendor/vendorReducer';
|
|
184
186
|
import { clearAllVendorExpenseTrends } from '../vendorExpense/vendorExpenseReducer';
|
|
185
187
|
import { clearAll } from './tenantReducer';
|
|
186
|
-
type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearAllMonthEndCloseChecksView> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayBulkActionView> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCardPaymentView> | ReturnType<typeof clearCardUserOnboarding> | ReturnType<typeof clearCashbackDetail> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearChargeCardStatementList> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearExpenseAutomationFluxAnalysisView> | ReturnType<typeof clearExpenseAutomationJESchedulesView> | ReturnType<typeof clearExpenseAutomationMissingReceiptsView> | ReturnType<typeof clearExpenseAutomationTransactionsView> | ReturnType<typeof clearExpenseAutomationView> | ReturnType<typeof clearExpressPayView> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantAutoCompleteResults> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearInternationalVerificationView> | ReturnType<typeof clearIssueChargeCard> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiBulkActionView> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleAccruedDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskGroupTemplatesView> | ReturnType<typeof clearTaskGroupView> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorReviewView> | ReturnType<typeof clearVendor1099TypeList> | ReturnType<typeof clearVendorTypeList> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsFiling1099List> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
|
|
187
|
-
type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllCardPayments> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllAccruedJESchedules> | ReturnType<typeof clearAllJEScheduleTransactions> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllMonthEndCloseChecks> | ReturnType<typeof clearAllNotifications> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllRecurringBills> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTags> | ReturnType<typeof clearAllTaskGroups> | ReturnType<typeof clearAllTaskGroupTemplates> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllToastNotifications> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearCountryList> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
|
|
188
|
+
type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearAllMonthEndCloseChecksView> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayBulkActionView> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCardPaymentView> | ReturnType<typeof clearCardUserOnboarding> | ReturnType<typeof clearCashbackDetail> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearChargeCardStatementList> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearExpenseAutomationFluxAnalysisView> | ReturnType<typeof clearExpenseAutomationJESchedulesView> | ReturnType<typeof clearExpenseAutomationMissingReceiptsView> | ReturnType<typeof clearExpenseAutomationReconciliationView> | ReturnType<typeof clearExpenseAutomationTransactionsView> | ReturnType<typeof clearExpenseAutomationView> | ReturnType<typeof clearExpressPayView> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantAutoCompleteResults> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearInternationalVerificationView> | ReturnType<typeof clearIssueChargeCard> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiBulkActionView> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleAccruedDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskGroupTemplatesView> | ReturnType<typeof clearTaskGroupView> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorReviewView> | ReturnType<typeof clearVendor1099TypeList> | ReturnType<typeof clearVendorTypeList> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsFiling1099List> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
|
|
189
|
+
type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountRecon> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllCardPayments> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllAccruedJESchedules> | ReturnType<typeof clearAllJEScheduleTransactions> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllMonthEndCloseChecks> | ReturnType<typeof clearAllNotifications> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllRecurringBills> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTags> | ReturnType<typeof clearAllTaskGroups> | ReturnType<typeof clearAllTaskGroupTemplates> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllToastNotifications> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearCountryList> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
|
|
188
190
|
export type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
|
|
189
191
|
export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
|
|
190
192
|
export {};
|
|
@@ -41,6 +41,7 @@ const expenseAutomationViewReducer_1 = require("../../view/expenseAutomationView
|
|
|
41
41
|
const fluxAnalysisViewReducer_1 = require("../../view/expenseAutomationView/reducers/fluxAnalysisViewReducer");
|
|
42
42
|
const jeSchedulesViewReducer_1 = require("../../view/expenseAutomationView/reducers/jeSchedulesViewReducer");
|
|
43
43
|
const missingReceiptsViewReducer_1 = require("../../view/expenseAutomationView/reducers/missingReceiptsViewReducer");
|
|
44
|
+
const reconciliationViewReducer_1 = require("../../view/expenseAutomationView/reducers/reconciliationViewReducer");
|
|
44
45
|
const transactionsViewReducer_1 = require("../../view/expenseAutomationView/reducers/transactionsViewReducer");
|
|
45
46
|
const fileViewReducer_1 = require("../../view/fileView/fileViewReducer");
|
|
46
47
|
const financeStatementReducer_1 = require("../../view/financeStatement/financeStatementReducer");
|
|
@@ -141,6 +142,7 @@ const zeniAccStatementListReducer_1 = require("../../view/zeniAccStatementList/z
|
|
|
141
142
|
const zeniAccountsPromoCardReducer_1 = require("../../view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer");
|
|
142
143
|
const accountReducer_1 = require("../account/accountReducer");
|
|
143
144
|
const accountGroupReducer_1 = require("../accountGroup/accountGroupReducer");
|
|
145
|
+
const accountReconReducer_1 = require("../accountRecon/accountReconReducer");
|
|
144
146
|
const addressReducer_1 = require("../address/addressReducer");
|
|
145
147
|
const bankAccountReducer_1 = require("../bankAccount/bankAccountReducer");
|
|
146
148
|
const billTransactionReducer_1 = require("../billPay/billTransaction/billTransactionReducer");
|
|
@@ -243,6 +245,7 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
|
|
|
243
245
|
(0, fluxAnalysisViewReducer_1.clearExpenseAutomationFluxAnalysisView)(),
|
|
244
246
|
(0, jeSchedulesViewReducer_1.clearExpenseAutomationJESchedulesView)(),
|
|
245
247
|
(0, missingReceiptsViewReducer_1.clearExpenseAutomationMissingReceiptsView)(),
|
|
248
|
+
(0, reconciliationViewReducer_1.clearExpenseAutomationReconciliationView)(),
|
|
246
249
|
(0, transactionsViewReducer_1.clearExpenseAutomationTransactionsView)(),
|
|
247
250
|
(0, expenseAutomationViewReducer_1.clearExpenseAutomationView)(),
|
|
248
251
|
(0, expressPayReducer_1.clearExpressPayView)(),
|
|
@@ -325,6 +328,7 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
|
|
|
325
328
|
// Note: Please maintain strict alphabetical order
|
|
326
329
|
const clearEntityActions = [
|
|
327
330
|
(0, accountGroupReducer_1.clearAllAccountGroups)(),
|
|
331
|
+
(0, accountReconReducer_1.clearAllAccountRecon)(),
|
|
328
332
|
(0, accountingSummaryReducer_1.clearAllAccountingSummary)(),
|
|
329
333
|
(0, accountReducer_1.clearAllAccounts)(),
|
|
330
334
|
(0, jeSchedulesReducer_1.clearAllAccruedJESchedules)(),
|
|
@@ -41,10 +41,10 @@ export declare const updateTenants: import("@reduxjs/toolkit").ActionCreatorWith
|
|
|
41
41
|
}, "tenant/updateLoggedInUser", never, never>, fetchExternalConnections: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, tenantId: string], {
|
|
42
42
|
userId: string;
|
|
43
43
|
tenantId: string;
|
|
44
|
-
}, "tenant/fetchExternalConnections", never, never>, saveExternalConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[tenantId: string, connectionMeta: ConnectionWithMetaPayload, redirectUri: import("url-parse")<string
|
|
44
|
+
}, "tenant/fetchExternalConnections", never, never>, saveExternalConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[tenantId: string, connectionMeta: ConnectionWithMetaPayload, redirectUri: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string>, companyId?: string | undefined, userId?: string | undefined], {
|
|
45
45
|
tenantId: string;
|
|
46
46
|
connectionMeta: ConnectionWithMetaPayload;
|
|
47
|
-
redirectUri: import("url-parse")<string
|
|
47
|
+
redirectUri: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string>;
|
|
48
48
|
companyId: string | undefined;
|
|
49
49
|
userId: string | undefined;
|
|
50
50
|
}, "tenant/saveExternalConnection", never, never>, saveExternalConnectionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[tenantId: string, connectionPayload: ConnectionDataPayload], {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomerBasePayload } from '../../customer/customerPayload';
|
|
2
2
|
import { CustomerTransaction } from '../stateTypes/customerTransaction';
|
|
3
3
|
import { TransactionPayload } from './transactionPayload';
|
|
4
|
-
export interface CustomerTransactionPayload extends TransactionPayload, CustomerBasePayload {
|
|
4
|
+
export interface CustomerTransactionPayload extends Omit<TransactionPayload, 'customer_id' | 'customer_name'>, CustomerBasePayload {
|
|
5
5
|
document_id: string;
|
|
6
6
|
payment_type?: string;
|
|
7
7
|
payment_type_name?: string;
|
|
@@ -17,7 +17,6 @@ const toCustomerTransaction = (payload) => {
|
|
|
17
17
|
exports.toCustomerTransaction = toCustomerTransaction;
|
|
18
18
|
const toCustomerTransactionPayload = (transaction) => {
|
|
19
19
|
const payload = (0, transactionPayload_1.toTransactionPayload)(transaction);
|
|
20
|
-
return transaction.customer
|
|
21
|
-
? Object.assign(Object.assign({}, payload), { customer_id: transaction.customer.id, customer_name: transaction.customer.name }) : payload;
|
|
20
|
+
return Object.assign(Object.assign({}, payload), (0, customerPayload_1.toCustomerBasePayload)(transaction.customer));
|
|
22
21
|
};
|
|
23
22
|
exports.toCustomerTransactionPayload = toCustomerTransactionPayload;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CurrencyPayload } from '../../../commonPayloadTypes/v2/viewAndReportPayloadv2';
|
|
2
|
+
import { ID } from '../../../commonStateTypes/common';
|
|
3
|
+
import { MatchedTransaction, MatchingBankOrCardTransaction } from '../stateTypes/reconciliationTransaction';
|
|
4
|
+
import { TransactionIDPayload } from './transactionIDPayload';
|
|
5
|
+
export interface MatchingBankOrCardTransactionPayload {
|
|
6
|
+
transaction_id: string;
|
|
7
|
+
transaction_date: string;
|
|
8
|
+
amount: number;
|
|
9
|
+
transaction_memo: string;
|
|
10
|
+
transaction_direction: string;
|
|
11
|
+
status: string;
|
|
12
|
+
}
|
|
13
|
+
export interface MatchedTransactionPayload extends TransactionIDPayload {
|
|
14
|
+
transaction_date: string;
|
|
15
|
+
amount: number;
|
|
16
|
+
transaction_memo: string;
|
|
17
|
+
is_checked_transaction: boolean;
|
|
18
|
+
is_zeni_recommended: boolean;
|
|
19
|
+
transaction_direction: string;
|
|
20
|
+
matching_bank_or_card_transactions: MatchingBankOrCardTransactionPayload[];
|
|
21
|
+
cleared_date?: string | null;
|
|
22
|
+
account_id?: ID | null;
|
|
23
|
+
account_name?: string | null;
|
|
24
|
+
class_id?: ID | null;
|
|
25
|
+
class_name?: string | null;
|
|
26
|
+
merchant?: {
|
|
27
|
+
merchant_id: ID;
|
|
28
|
+
merchant_name: string;
|
|
29
|
+
merchant_type: string;
|
|
30
|
+
} | null;
|
|
31
|
+
}
|
|
32
|
+
export declare const toMatchedTransaction: (payload: MatchedTransactionPayload, currencyPayload: CurrencyPayload) => MatchedTransaction;
|
|
33
|
+
export declare const toMatchingBankOrCardTransaction: (payload: MatchingBankOrCardTransactionPayload, currencyPayload: CurrencyPayload) => MatchingBankOrCardTransaction;
|
|
34
|
+
export declare const toMatchingBankOrCardTransactionPayload: (payload: MatchingBankOrCardTransaction) => MatchingBankOrCardTransactionPayload;
|
|
35
|
+
export declare const toMatchedTransactionPayload: (payload: MatchedTransaction) => MatchedTransactionPayload;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toMatchedTransactionPayload = exports.toMatchingBankOrCardTransactionPayload = exports.toMatchingBankOrCardTransaction = exports.toMatchedTransaction = void 0;
|
|
4
|
+
const amount_1 = require("../../../commonStateTypes/amount");
|
|
5
|
+
const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
6
|
+
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
7
|
+
const reconciliationTransaction_1 = require("../stateTypes/reconciliationTransaction");
|
|
8
|
+
const transactionIDPayload_1 = require("./transactionIDPayload");
|
|
9
|
+
const toMatchedTransaction = (payload, currencyPayload) => {
|
|
10
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
11
|
+
return Object.assign(Object.assign({}, (0, transactionIDPayload_1.toTransactionID)(payload)), { isZeniRecommended: payload.is_zeni_recommended, merchantId: (_b = (_a = payload.merchant) === null || _a === void 0 ? void 0 : _a.merchant_id) !== null && _b !== void 0 ? _b : undefined, merchantName: (_d = (_c = payload.merchant) === null || _c === void 0 ? void 0 : _c.merchant_name) !== null && _d !== void 0 ? _d : undefined, merchantType: ((_e = payload.merchant) === null || _e === void 0 ? void 0 : _e.merchant_type) != null
|
|
12
|
+
? (0, reconciliationTransaction_1.toMerchantType)(payload.merchant.merchant_type)
|
|
13
|
+
: undefined, classId: (_f = payload.class_id) !== null && _f !== void 0 ? _f : undefined, accountId: (_g = payload.account_id) !== null && _g !== void 0 ? _g : undefined, accountName: (_h = payload.account_name) !== null && _h !== void 0 ? _h : undefined, date: (0, zeniDayJS_1.date)(payload.transaction_date), clearedDate: payload.cleared_date != null ? (0, zeniDayJS_1.date)(payload.cleared_date) : undefined, amount: (0, amount_1.toAmount)(payload.amount, currencyPayload.currency_code, currencyPayload.currency_symbol), transactionDirection: (0, reconciliationTransaction_1.toTransactionDirectionType)(payload.transaction_direction), memo: (_j = payload.transaction_memo) !== null && _j !== void 0 ? _j : undefined, typeOfTransaction: 'matched', isTransactionChecked: payload.is_checked_transaction, matchingBankOrCardTransactions: payload.matching_bank_or_card_transactions.map((t) => (0, exports.toMatchingBankOrCardTransaction)(t, currencyPayload)) });
|
|
14
|
+
};
|
|
15
|
+
exports.toMatchedTransaction = toMatchedTransaction;
|
|
16
|
+
const toMatchingBankOrCardTransaction = (payload, currencyPayload) => {
|
|
17
|
+
return {
|
|
18
|
+
transactionDate: (0, zeniDayJS_1.date)(payload.transaction_date),
|
|
19
|
+
status: payload.status,
|
|
20
|
+
id: payload.transaction_id,
|
|
21
|
+
amount: (0, amount_1.toAmount)(payload.amount, currencyPayload.currency_code, currencyPayload.currency_symbol),
|
|
22
|
+
memo: payload.transaction_memo,
|
|
23
|
+
transactionDirection: (0, reconciliationTransaction_1.toTransactionDirectionType)(payload.transaction_direction),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
exports.toMatchingBankOrCardTransaction = toMatchingBankOrCardTransaction;
|
|
27
|
+
const toMatchingBankOrCardTransactionPayload = (payload) => {
|
|
28
|
+
return {
|
|
29
|
+
transaction_date: payload.transactionDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT),
|
|
30
|
+
status: payload.status,
|
|
31
|
+
transaction_id: payload.id,
|
|
32
|
+
amount: payload.amount.amount,
|
|
33
|
+
transaction_memo: payload.memo,
|
|
34
|
+
transaction_direction: (0, reconciliationTransaction_1.toTransactionDirectionType)(payload.transactionDirection),
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
exports.toMatchingBankOrCardTransactionPayload = toMatchingBankOrCardTransactionPayload;
|
|
38
|
+
const toMatchedTransactionPayload = (payload) => {
|
|
39
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, transactionIDPayload_1.toTransactionIDPayload)(payload)), { is_zeni_recommended: payload.isZeniRecommended }), (payload.merchantId != null &&
|
|
40
|
+
payload.merchantName != null &&
|
|
41
|
+
payload.merchantType != null
|
|
42
|
+
? {
|
|
43
|
+
merchant: {
|
|
44
|
+
merchant_id: payload.merchantId,
|
|
45
|
+
merchant_name: payload.merchantName,
|
|
46
|
+
merchant_type: payload.merchantType.toString(),
|
|
47
|
+
},
|
|
48
|
+
}
|
|
49
|
+
: {})), (payload.clearedDate != null
|
|
50
|
+
? { cleared_date: payload.clearedDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT) }
|
|
51
|
+
: {})), (payload.classId != null ? { class_id: payload.classId } : {})), (payload.accountName != null ? { account_name: payload.accountName } : {})), (payload.account != null ? { account_id: payload.accountId } : {})), { transaction_date: payload.date.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT), amount: payload.amount.amount, transaction_memo: payload.memo, is_checked_transaction: payload.isTransactionChecked, transaction_direction: (0, reconciliationTransaction_1.toTransactionDirectionType)(payload.transactionDirection), matching_bank_or_card_transactions: payload.matchingBankOrCardTransactions.map((t) => (0, exports.toMatchingBankOrCardTransactionPayload)(t)) });
|
|
52
|
+
};
|
|
53
|
+
exports.toMatchedTransactionPayload = toMatchedTransactionPayload;
|
|
@@ -32,6 +32,8 @@ export interface TransactionPayload extends TransactionIDPayload, AccountBasePay
|
|
|
32
32
|
company_inc_date: string | null;
|
|
33
33
|
vendor_id?: string | null;
|
|
34
34
|
vendor_name?: string | null;
|
|
35
|
+
customer_id?: string | null;
|
|
36
|
+
customer_name?: string | null;
|
|
35
37
|
recipient_total_amount?: number;
|
|
36
38
|
recipient_currency_code?: string;
|
|
37
39
|
recipient_currency_symbol?: string;
|
|
@@ -38,12 +38,16 @@ const toTransaction = (payload) => {
|
|
|
38
38
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
39
39
|
const amount = (0, exports.getTransactionPayloadAmount)(payload);
|
|
40
40
|
const recipientAmount = getTransactionPayloadRecipientAmount(payload);
|
|
41
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, transactionIDPayload_1.toTransactionID)(payload)), { typeOfTransaction: 'supported', typeName: payload.transaction_type_name, createTime: (0, zeniDayJS_1.date)(payload.transaction_create_time), updateTime: payload.transaction_update_time != null
|
|
41
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, transactionIDPayload_1.toTransactionID)(payload)), { typeOfTransaction: 'supported', typeName: payload.transaction_type_name, createTime: (0, zeniDayJS_1.date)(payload.transaction_create_time), updateTime: payload.transaction_update_time != null
|
|
42
42
|
? (0, zeniDayJS_1.date)(payload.transaction_update_time)
|
|
43
|
-
: undefined, date: (0, zeniDayJS_1.date)(payload.transaction_date), amount: amount, memo: payload.transaction_memo, description: payload.transaction_description, documentId: payload.document_id, logo: (0, urlPayload_1.toURL)(payload.logo), attachments: (_a = payload.attachments) === null || _a === void 0 ? void 0 : _a.map((attachmentPayload) => (0, attachmentPayload_1.toAttachment)(attachmentPayload)) }), (payload.vendor_id
|
|
43
|
+
: undefined, date: (0, zeniDayJS_1.date)(payload.transaction_date), amount: amount, memo: payload.transaction_memo, description: payload.transaction_description, documentId: payload.document_id, logo: (0, urlPayload_1.toURL)(payload.logo), attachments: (_a = payload.attachments) === null || _a === void 0 ? void 0 : _a.map((attachmentPayload) => (0, attachmentPayload_1.toAttachment)(attachmentPayload)) }), (payload.vendor_id !== null && payload.vendor_id !== ''
|
|
44
44
|
? { vendorId: payload.vendor_id }
|
|
45
|
-
: {})), (payload.vendor_name
|
|
45
|
+
: {})), (payload.vendor_name !== null && payload.vendor_name !== ''
|
|
46
46
|
? { vendorName: payload.vendor_name }
|
|
47
|
+
: {})), (payload.customer_id !== null && payload.customer_id !== ''
|
|
48
|
+
? { customerId: payload.customer_id }
|
|
49
|
+
: {})), (payload.customer_name !== null && payload.customer_name !== ''
|
|
50
|
+
? { customerName: payload.customer_name }
|
|
47
51
|
: {})), { linkedTransactions: (_b = payload.linked_transactions) === null || _b === void 0 ? void 0 : _b.map((transactionIDPayload) => (0, transactionIDPayload_1.toTransactionID)(transactionIDPayload)), lines: (_c = payload === null || payload === void 0 ? void 0 : payload.lines) === null || _c === void 0 ? void 0 : _c.map((linePayload) => (0, transactionLinePayload_1.toLine)(linePayload, amount, recipientAmount)), account: payloadHasAccountInfo(payload)
|
|
48
52
|
? (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(payload)
|
|
49
53
|
: undefined, syncToken: (_d = payload.sync_token) === null || _d === void 0 ? void 0 : _d.toString(), paymentType: (_e = payload.payment_type) !== null && _e !== void 0 ? _e : undefined, paymentTypeName: (_f = payload.payment_type_name) !== null && _f !== void 0 ? _f : undefined, isUpdatingTransaction: (_g = payload === null || payload === void 0 ? void 0 : payload.is_updating_transaction) !== null && _g !== void 0 ? _g : false, bookCloseDate: (payload === null || payload === void 0 ? void 0 : payload.book_close_date) != null
|
|
@@ -106,10 +110,10 @@ const transformRecommendation = (recommendation) => {
|
|
|
106
110
|
else if (mappedClasses != null &&
|
|
107
111
|
mappedClasses.length >= ((_c = mappedAccounts === null || mappedAccounts === void 0 ? void 0 : mappedAccounts.length) !== null && _c !== void 0 ? _c : 0) &&
|
|
108
112
|
mappedClasses.length >= ((_d = mappedRecommendedVendors === null || mappedRecommendedVendors === void 0 ? void 0 : mappedRecommendedVendors.length) !== null && _d !== void 0 ? _d : 0)) {
|
|
109
|
-
mappedClasses.forEach((
|
|
113
|
+
mappedClasses.forEach((recommendedClass, index) => {
|
|
110
114
|
recommendations.push({
|
|
111
115
|
account: mappedAccounts === null || mappedAccounts === void 0 ? void 0 : mappedAccounts[index],
|
|
112
|
-
class:
|
|
116
|
+
class: recommendedClass,
|
|
113
117
|
vendor: mappedRecommendedVendors === null || mappedRecommendedVendors === void 0 ? void 0 : mappedRecommendedVendors[index],
|
|
114
118
|
});
|
|
115
119
|
});
|
|
@@ -167,7 +171,6 @@ function toRecommendationsPayload(lines, recommendationByLineID) {
|
|
|
167
171
|
lineRecommendationPayload.vendors.push((0, recommendationPayload_1.toRecommendedVendorBasePayload)(recommendationType.vendor));
|
|
168
172
|
}
|
|
169
173
|
});
|
|
170
|
-
recommendationsPayload.push(lineRecommendationPayload);
|
|
171
174
|
}
|
|
172
175
|
});
|
|
173
176
|
return recommendationsPayload;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { CustomerBase } from '../../customer/customerState';
|
|
1
2
|
import { VendorBasePayload } from '../../vendor/vendorPayload';
|
|
2
3
|
import { VendorBase } from '../../vendor/vendorState';
|
|
3
|
-
import { VendorTransaction } from '../stateTypes/vendorTransaction';
|
|
4
|
+
import { VendorTransaction, VendorTransactionWithCustomer } from '../stateTypes/vendorTransaction';
|
|
4
5
|
import { TransactionPayload } from './transactionPayload';
|
|
5
6
|
export interface VendorTransactionPayload extends VendorBasePayload, Omit<TransactionPayload, 'vendor_id' | 'vendor_name'> {
|
|
6
7
|
document_id: string;
|
|
@@ -10,6 +11,13 @@ export interface VendorTransactionPayload extends VendorBasePayload, Omit<Transa
|
|
|
10
11
|
balance?: number;
|
|
11
12
|
due_date?: string;
|
|
12
13
|
}
|
|
14
|
+
export interface VendorTransactionWithCustomerPayload extends VendorTransactionPayload {
|
|
15
|
+
customer_id: string;
|
|
16
|
+
customer_name: string;
|
|
17
|
+
}
|
|
13
18
|
export declare const isVendorTransactionPayload: (payload: TransactionPayload) => boolean;
|
|
14
19
|
export declare const toVendorTransaction: (payload: VendorTransactionPayload) => VendorTransaction;
|
|
15
20
|
export declare const toVendorTransactionPayload: (transaction: VendorTransaction, vendorUpdates?: VendorBase) => Partial<VendorTransactionPayload>;
|
|
21
|
+
export declare const isVendorTransactionWithCustomerPayload: (payload: TransactionPayload) => boolean;
|
|
22
|
+
export declare const toVendorTransactionWithCustomer: (payload: VendorTransactionWithCustomerPayload) => VendorTransactionWithCustomer;
|
|
23
|
+
export declare const toVendorTransactionWithCustomerPayload: (transaction: VendorTransactionWithCustomer, customerUpdates?: CustomerBase) => Partial<VendorTransactionWithCustomerPayload>;
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toVendorTransactionPayload = exports.toVendorTransaction = exports.isVendorTransactionPayload = void 0;
|
|
3
|
+
exports.toVendorTransactionWithCustomerPayload = exports.toVendorTransactionWithCustomer = exports.isVendorTransactionWithCustomerPayload = exports.toVendorTransactionPayload = exports.toVendorTransaction = exports.isVendorTransactionPayload = void 0;
|
|
4
4
|
const amount_1 = require("../../../commonStateTypes/amount");
|
|
5
5
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
6
|
+
const customerPayload_1 = require("../../customer/customerPayload");
|
|
6
7
|
const vendorPayload_1 = require("../../vendor/vendorPayload");
|
|
7
8
|
const paymentType_1 = require("../stateTypes/paymentType");
|
|
8
9
|
const transactionType_1 = require("../stateTypes/transactionType");
|
|
9
10
|
const transactionPayload_1 = require("./transactionPayload");
|
|
10
11
|
const isVendorTransactionPayload = (payload) => (0, transactionType_1.toVendorTransactionTypeStrict)(payload.transaction_type) != null;
|
|
11
12
|
exports.isVendorTransactionPayload = isVendorTransactionPayload;
|
|
12
|
-
|
|
13
|
+
function buildVendorTransactionBase(payload) {
|
|
13
14
|
const transaction = (0, transactionPayload_1.toTransaction)(payload);
|
|
14
15
|
return Object.assign(Object.assign({}, transaction), { documentId: payload.document_id, vendor: payload.vendor_id != null
|
|
15
16
|
? (0, vendorPayload_1.mapVendorBasePayloadToVendorBase)(payload)
|
|
16
17
|
: undefined, paymentType: (0, paymentType_1.toPaymentTypeStrict)(payload.payment_type), paymentTypeName: payload.payment_type_name, paymentMethodName: payload.payment_method_name, balance: payload.balance != null
|
|
17
18
|
? (0, amount_1.toAmountWC)(payload.balance, transaction.amount)
|
|
18
19
|
: undefined, dueDate: payload.due_date != null ? (0, zeniDayJS_1.date)(payload.due_date) : undefined });
|
|
20
|
+
}
|
|
21
|
+
const toVendorTransaction = (payload) => {
|
|
22
|
+
return buildVendorTransactionBase(payload);
|
|
19
23
|
};
|
|
20
24
|
exports.toVendorTransaction = toVendorTransaction;
|
|
21
25
|
const toVendorTransactionPayload = (transaction, vendorUpdates) => {
|
|
@@ -23,3 +27,21 @@ const toVendorTransactionPayload = (transaction, vendorUpdates) => {
|
|
|
23
27
|
return Object.assign(Object.assign({}, payload), (0, vendorPayload_1.toVendorBasePayload)(transaction.vendor, vendorUpdates));
|
|
24
28
|
};
|
|
25
29
|
exports.toVendorTransactionPayload = toVendorTransactionPayload;
|
|
30
|
+
/*
|
|
31
|
+
This is used to check if the transaction is a vendor transaction with a customer
|
|
32
|
+
*/
|
|
33
|
+
const isVendorTransactionWithCustomerPayload = (payload) => (0, transactionType_1.toVendorTransactionTypeStrict)(payload.transaction_type) != null &&
|
|
34
|
+
Boolean(payload.customer_id) === true &&
|
|
35
|
+
Boolean(payload.customer_name) === true;
|
|
36
|
+
exports.isVendorTransactionWithCustomerPayload = isVendorTransactionWithCustomerPayload;
|
|
37
|
+
const toVendorTransactionWithCustomer = (payload) => {
|
|
38
|
+
return Object.assign(Object.assign({}, buildVendorTransactionBase(payload)), { customer: Boolean(payload.customer_id) === true
|
|
39
|
+
? (0, customerPayload_1.toCustomerBase)(payload, false)
|
|
40
|
+
: undefined });
|
|
41
|
+
};
|
|
42
|
+
exports.toVendorTransactionWithCustomer = toVendorTransactionWithCustomer;
|
|
43
|
+
const toVendorTransactionWithCustomerPayload = (transaction, customerUpdates) => {
|
|
44
|
+
const payload = (0, transactionPayload_1.toTransactionPayload)(transaction);
|
|
45
|
+
return Object.assign(Object.assign(Object.assign({}, payload), (0, customerPayload_1.toCustomerBasePayload)(transaction.customer, customerUpdates)), { vendor_id: '', vendor_name: '' });
|
|
46
|
+
};
|
|
47
|
+
exports.toVendorTransactionWithCustomerPayload = toVendorTransactionWithCustomerPayload;
|
|
@@ -4,9 +4,9 @@ import { ZeniDate } from '../../../zeniDayJS';
|
|
|
4
4
|
import { ZeniUrl as Url } from '../../../zeniUrl';
|
|
5
5
|
import { File } from '../../file/fileState';
|
|
6
6
|
import { AttachmentPayload } from '../payloadTypes/attachmentPayload';
|
|
7
|
-
export declare const toContentType: (v: string) => "
|
|
7
|
+
export declare const toContentType: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/heic" | "text/html" | "text/csv" | "text/plain" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/gif" | "text/xml" | "application/msword" | "application/postscript" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/rtf" | "image/heif" | "image/svg+xml" | "image/webp";
|
|
8
8
|
export type ContentType = ReturnType<typeof toContentType>;
|
|
9
|
-
export declare const toContentTypeStrict: (v: string) => "
|
|
9
|
+
export declare const toContentTypeStrict: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/heic" | "text/html" | "text/csv" | "text/plain" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/gif" | "text/xml" | "application/msword" | "application/postscript" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/rtf" | "image/heif" | "image/svg+xml" | "image/webp" | undefined;
|
|
10
10
|
export interface Attachment {
|
|
11
11
|
id: ID;
|
|
12
12
|
contentType?: ContentType;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Amount } from '../../../commonStateTypes/amount';
|
|
2
|
+
import { ID } from '../../../commonStateTypes/common';
|
|
3
|
+
import { ZeniDate } from '../../../zeniDayJS';
|
|
4
|
+
import { BaseTransaction } from './transaction';
|
|
5
|
+
export declare const TRANSACTION_DIRECTION: readonly ["payment", "deposit"];
|
|
6
|
+
export declare const toTransactionDirectionType: (v: string) => "payment" | "deposit";
|
|
7
|
+
export type TransactionDirectionType = ReturnType<typeof toTransactionDirectionType>;
|
|
8
|
+
export declare const MERCHANT_TYPE: readonly ["customer", "vendor", "none"];
|
|
9
|
+
export declare const toMerchantType: (v: string) => "vendor" | "customer" | "none";
|
|
10
|
+
export type MerchantType = ReturnType<typeof toMerchantType>;
|
|
11
|
+
export interface MatchedTransaction extends BaseTransaction {
|
|
12
|
+
isTransactionChecked: boolean;
|
|
13
|
+
matchingBankOrCardTransactions: MatchingBankOrCardTransaction[];
|
|
14
|
+
isZeniRecommended: boolean;
|
|
15
|
+
transactionDirection: TransactionDirectionType;
|
|
16
|
+
clearedDate?: ZeniDate;
|
|
17
|
+
merchantId?: ID;
|
|
18
|
+
merchantName?: string;
|
|
19
|
+
merchantType?: MerchantType;
|
|
20
|
+
classId?: ID;
|
|
21
|
+
className?: string;
|
|
22
|
+
accountId?: ID;
|
|
23
|
+
accountName?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface MatchingBankOrCardTransaction {
|
|
26
|
+
id: ID;
|
|
27
|
+
transactionDate: ZeniDate;
|
|
28
|
+
amount: Amount;
|
|
29
|
+
memo: string;
|
|
30
|
+
status: string;
|
|
31
|
+
transactionDirection: TransactionDirectionType;
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toMerchantType = exports.MERCHANT_TYPE = exports.toTransactionDirectionType = exports.TRANSACTION_DIRECTION = void 0;
|
|
4
|
+
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
|
+
exports.TRANSACTION_DIRECTION = ['payment', 'deposit'];
|
|
6
|
+
const toTransactionDirectionType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.TRANSACTION_DIRECTION);
|
|
7
|
+
exports.toTransactionDirectionType = toTransactionDirectionType;
|
|
8
|
+
exports.MERCHANT_TYPE = ['customer', 'vendor', 'none'];
|
|
9
|
+
const toMerchantType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.MERCHANT_TYPE);
|
|
10
|
+
exports.toMerchantType = toMerchantType;
|
|
@@ -16,9 +16,9 @@ export interface BaseTransaction extends TransactionID {
|
|
|
16
16
|
date: ZeniDate;
|
|
17
17
|
amount: Amount;
|
|
18
18
|
memo: string;
|
|
19
|
+
typeOfTransaction: TypeOfTransactionType;
|
|
19
20
|
typeName?: string;
|
|
20
21
|
account?: AccountBase;
|
|
21
|
-
typeOfTransaction: TypeOfTransactionType;
|
|
22
22
|
}
|
|
23
23
|
export interface Transaction extends BaseTransaction {
|
|
24
24
|
description: string;
|
|
@@ -39,4 +39,6 @@ export interface Transaction extends BaseTransaction {
|
|
|
39
39
|
isRecommendedTransaction?: boolean;
|
|
40
40
|
vendorId?: ID;
|
|
41
41
|
vendorName?: string;
|
|
42
|
+
customerId?: ID;
|
|
43
|
+
customerName?: string;
|
|
42
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toTypeOfTransaction: (v: string) => "schedule" | "supported" | "uncategorized";
|
|
1
|
+
export declare const toTypeOfTransaction: (v: string) => "schedule" | "supported" | "uncategorized" | "matched";
|
|
2
2
|
export type TypeOfTransactionType = ReturnType<typeof toTypeOfTransaction>;
|
|
3
3
|
declare const toCustomerTransactionType: (v: string) => "invoice" | "payment" | "credit_memo" | "sales_receipt" | "delayed_credit" | "delayed_charge" | "refund";
|
|
4
4
|
export declare const toCustomerTransactionTypeStrict: (v?: string) => "invoice" | "payment" | "credit_memo" | "sales_receipt" | "delayed_credit" | "delayed_charge" | "refund" | undefined;
|
|
@@ -6,8 +6,8 @@ const ALL_TYPES_OF_TRANSACTIONS = [
|
|
|
6
6
|
'schedule',
|
|
7
7
|
'supported', // supported is like a superset at this point
|
|
8
8
|
'uncategorized',
|
|
9
|
+
'matched', // used for reconcile transactions
|
|
9
10
|
];
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11
11
|
const toTypeOfTransaction = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_TYPES_OF_TRANSACTIONS);
|
|
12
12
|
exports.toTypeOfTransaction = toTypeOfTransaction;
|
|
13
13
|
const ALL_CUSTOMER_TRANSACTION_TYPE = [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Amount } from '../../../commonStateTypes/amount';
|
|
2
2
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
3
|
+
import { CustomerBase } from '../../customer/customerState';
|
|
3
4
|
import { VendorBase } from '../../vendor/vendorState';
|
|
4
5
|
import { PaymentType } from './paymentType';
|
|
5
6
|
import { Transaction } from './transaction';
|
|
@@ -11,4 +12,8 @@ export interface VendorTransaction extends Transaction {
|
|
|
11
12
|
balance?: Amount;
|
|
12
13
|
dueDate?: ZeniDate;
|
|
13
14
|
}
|
|
15
|
+
export interface VendorTransactionWithCustomer extends VendorTransaction {
|
|
16
|
+
customer?: CustomerBase;
|
|
17
|
+
}
|
|
14
18
|
export declare const isVendorTransaction: (transaction: Transaction) => boolean;
|
|
19
|
+
export declare const isVendorTransactionWithCustomer: (transaction: Transaction) => boolean;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isVendorTransaction = void 0;
|
|
3
|
+
exports.isVendorTransactionWithCustomer = exports.isVendorTransaction = void 0;
|
|
4
4
|
const transactionType_1 = require("./transactionType");
|
|
5
5
|
const isVendorTransaction = (transaction) => (0, transactionType_1.toVendorTransactionTypeStrict)(transaction.type) != null;
|
|
6
6
|
exports.isVendorTransaction = isVendorTransaction;
|
|
7
|
+
const isVendorTransactionWithCustomer = (transaction) => (0, transactionType_1.toVendorTransactionTypeStrict)(transaction.type) != null &&
|
|
8
|
+
Boolean(transaction.customerId) === true &&
|
|
9
|
+
Boolean(transaction.customerName) === true;
|
|
10
|
+
exports.isVendorTransactionWithCustomer = isVendorTransactionWithCustomer;
|
|
@@ -10,7 +10,12 @@ function toSupportedTransaction(payload) {
|
|
|
10
10
|
return (0, customerTransactionPayload_1.toCustomerTransaction)(payload);
|
|
11
11
|
}
|
|
12
12
|
else if ((0, vendorTransactionPayload_1.isVendorTransactionPayload)(payload)) {
|
|
13
|
-
|
|
13
|
+
if ((0, vendorTransactionPayload_1.isVendorTransactionWithCustomerPayload)(payload)) {
|
|
14
|
+
return (0, vendorTransactionPayload_1.toVendorTransactionWithCustomer)(payload);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
return (0, vendorTransactionPayload_1.toVendorTransaction)(payload);
|
|
18
|
+
}
|
|
14
19
|
}
|
|
15
20
|
else if ((0, otherTransactionPayload_1.isTransferTransactionPayload)(payload)) {
|
|
16
21
|
return (0, otherTransactionPayload_1.toTransferTransaction)(payload);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { CurrencyPayload } from '../../commonPayloadTypes/v2/viewAndReportPayloadv2';
|
|
1
2
|
import { ID, UpdateType } from '../../commonStateTypes/common';
|
|
2
3
|
import { TransactionDetailKey } from '../../view/transactionDetail/transactionDetailState';
|
|
4
|
+
import { MatchedTransactionPayload } from './payloadTypes/reconciliationTransactionPayloads';
|
|
3
5
|
import { ScheduleTransactionPayload } from './payloadTypes/scheduleTransactionPayload';
|
|
4
6
|
import { SupportedTransactionPayload, TransactionState } from './transactionState';
|
|
5
7
|
export declare const initialState: TransactionState;
|
|
@@ -19,6 +21,21 @@ export declare const updateTransactions: import("@reduxjs/toolkit").ActionCreato
|
|
|
19
21
|
currencySymbol: string;
|
|
20
22
|
}, "transaction/updateScheduleTransactions", never, {
|
|
21
23
|
updateType: UpdateType;
|
|
24
|
+
}>, updateReconcileTransactions: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionsPayload: MatchedTransactionPayload[], currencyPayload: CurrencyPayload, updateType?: UpdateType | undefined], {
|
|
25
|
+
transactionsPayload: MatchedTransactionPayload[];
|
|
26
|
+
currencyPayload: CurrencyPayload;
|
|
27
|
+
}, "transaction/updateReconcileTransactions", never, {
|
|
28
|
+
updateType: UpdateType;
|
|
29
|
+
}>, updateMultipleReconcileTransactions: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionsPayload: {
|
|
30
|
+
allReconciledTransactions: MatchedTransactionPayload[];
|
|
31
|
+
currencyPayload: CurrencyPayload;
|
|
32
|
+
}[], updateType?: UpdateType | undefined], {
|
|
33
|
+
transactionsPayload: {
|
|
34
|
+
allReconciledTransactions: MatchedTransactionPayload[];
|
|
35
|
+
currencyPayload: CurrencyPayload;
|
|
36
|
+
}[];
|
|
37
|
+
}, "transaction/updateMultipleReconcileTransactions", never, {
|
|
38
|
+
updateType: UpdateType;
|
|
22
39
|
}>, removeTransaction: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "transaction/removeTransaction">, removeTransactionCategorization: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
23
40
|
transactionIds: ID[];
|
|
24
41
|
}, "transaction/removeTransactionCategorization">, removeTransactionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|