@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
|
@@ -163,7 +163,6 @@ function doUpdateBillList(draft, payload, tab) {
|
|
|
163
163
|
const pendingApprovalTransactionIDs = payload.pending_approval_transaction_ids_for_user;
|
|
164
164
|
const start = (0, timePeriod_1.toAbsoluteDay)(payload === null || payload === void 0 ? void 0 : payload.query.start_date); // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
165
165
|
const end = (0, timePeriod_1.toAbsoluteDay)(payload === null || payload === void 0 ? void 0 : payload.query.end_date); // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
166
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
167
166
|
const key = (0, billListState_1.getBillListKey)({ start, end }, tab);
|
|
168
167
|
draft[key] = Object.assign(Object.assign({}, billListState_1.billListInitialState), { uiState: draft[key] != null ? draft[key].uiState : billListState_1.billListInitialState.uiState, fetchState: 'Completed', error: undefined, transactionIDs,
|
|
169
168
|
pendingApprovalTransactionIDs });
|
|
@@ -35,9 +35,9 @@ export type SaveBillStageCode = 'draft' | 'pending_approval' | undefined;
|
|
|
35
35
|
export declare const ALL_BILL_TABS: readonly ["paid", "pending_approval", "scheduled", "draft"];
|
|
36
36
|
declare const toBillTabType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
|
|
37
37
|
export type BillTab = ReturnType<typeof toBillTabType>;
|
|
38
|
-
declare const toBillsSubTabType: (v: string) => "
|
|
38
|
+
declare const toBillsSubTabType: (v: string) => "rejected" | "ach" | "wire" | "failed" | "cancelled" | "all" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "deleted" | "offline";
|
|
39
39
|
export type BillsSubTabType = ReturnType<typeof toBillsSubTabType>;
|
|
40
|
-
declare const toBillPaySortKeyType: (v: string) => "
|
|
40
|
+
declare const toBillPaySortKeyType: (v: string) => "status" | "amount" | "name" | "dueDate" | "paymentMethod" | "invoiceDate";
|
|
41
41
|
export declare type BillPayViewSortKey = ReturnType<typeof toBillPaySortKeyType>;
|
|
42
42
|
export interface BillPayFilters {
|
|
43
43
|
categoryCombinationOperator: CategoryCombinationOperator;
|
|
@@ -7,7 +7,7 @@ export declare const getBillPayConfigKey: (method: string, subMethod: string) =>
|
|
|
7
7
|
type BillPayConfigKey = ReturnType<typeof getBillPayConfigKey>;
|
|
8
8
|
export declare const getBillPayConfigMethodKey: (method: BillPaymentConfigCodeType, subMethod: BillPaymentSubConfigCodeKeyType, accType?: AccountTypeSubConfigCodeKeyType, internationalMethod?: InternationalWireMethodCodeKeyType, internationalSubMethod?: InternationalSubConfigCodeKeyType) => string;
|
|
9
9
|
type VendorCurrencyConfig = Record<BillPayConfigKey, Currency[]>;
|
|
10
|
-
export declare const toDynamicFeeType: (v: string) => "
|
|
10
|
+
export declare const toDynamicFeeType: (v: string) => "percent" | "fixed";
|
|
11
11
|
type DynamicFeeType = ReturnType<typeof toDynamicFeeType>;
|
|
12
12
|
export interface BillPayConfigState extends FetchedState {
|
|
13
13
|
methodById: Record<string, BillPayConfig>;
|
|
@@ -30,11 +30,9 @@ exports.BILL_PAYMENT_METHOD_CODE = [
|
|
|
30
30
|
'wire',
|
|
31
31
|
'outside-zeni',
|
|
32
32
|
];
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
34
33
|
const toBillPaymentMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.BILL_PAYMENT_METHOD_CODE);
|
|
35
34
|
exports.toBillPaymentMethodCodeType = toBillPaymentMethodCodeType;
|
|
36
35
|
exports.PAYMENT_ACH_SUB_CODES = ['standard', 'same-day'];
|
|
37
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
38
36
|
const toPaymentAchSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.PAYMENT_ACH_SUB_CODES);
|
|
39
37
|
exports.toPaymentAchSubMethodCodeType = toPaymentAchSubMethodCodeType;
|
|
40
38
|
const PAYMENT_ACH_SUB_CODES_KEYS = ['standard', 'sameDay'];
|
|
@@ -44,7 +42,6 @@ exports.BILL_PAYMENT_WIRE_SUB_CODES = [
|
|
|
44
42
|
'us-domestic',
|
|
45
43
|
'international',
|
|
46
44
|
];
|
|
47
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
48
45
|
const toBillPaymentWireSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.BILL_PAYMENT_WIRE_SUB_CODES);
|
|
49
46
|
exports.toBillPaymentWireSubMethodCodeType = toBillPaymentWireSubMethodCodeType;
|
|
50
47
|
const BILL_PAYMENT_WIRE_SUB_CODES_KEYS = [
|
|
@@ -54,7 +51,6 @@ const BILL_PAYMENT_WIRE_SUB_CODES_KEYS = [
|
|
|
54
51
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
52
|
const toBillPaymentWireSubMethodCodeKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_PAYMENT_WIRE_SUB_CODES_KEYS);
|
|
56
53
|
exports.BILL_PAYMENT_OUTSIDE_ZENI_SUB_CODES = ['outside-zeni'];
|
|
57
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
58
54
|
const toBillPaymentOutsideZeniSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.BILL_PAYMENT_OUTSIDE_ZENI_SUB_CODES);
|
|
59
55
|
exports.toBillPaymentOutsideZeniSubMethodCodeType = toBillPaymentOutsideZeniSubMethodCodeType;
|
|
60
56
|
const BILL_PAYMENT_OUTSIDE_ZENI_SUB_CODES_KEYS = ['outsideZeni'];
|
|
@@ -91,14 +87,12 @@ exports.ACCOUNT_TYPE_CODES = [
|
|
|
91
87
|
'deposit_account',
|
|
92
88
|
'payment_account',
|
|
93
89
|
];
|
|
94
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
95
90
|
const toAccType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ACCOUNT_TYPE_CODES);
|
|
96
91
|
exports.toAccType = toAccType;
|
|
97
92
|
const ACCOUNT_TYPE_SUB_CODES_KEYS = [
|
|
98
93
|
'depositAccount',
|
|
99
94
|
'paymentAccount',
|
|
100
95
|
];
|
|
101
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
102
96
|
const toAccountTypeSubConfigCodeKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ACCOUNT_TYPE_SUB_CODES_KEYS);
|
|
103
97
|
exports.toAccountTypeSubConfigCodeKeyType = toAccountTypeSubConfigCodeKeyType;
|
|
104
98
|
//These const are used in web-components
|
package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export declare const initialState: BillsBulkActionViewState;
|
|
|
7
7
|
export declare const updateBillsBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "billsBulkActionView/updateBillsBulkActionList">, removeBillFromBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "billsBulkActionView/removeBillFromBulkActionList">, clearAllBillsFromBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billsBulkActionView/clearAllBillsFromBulkActionList">, validateBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkOperationType, "billsBulkActionView/validateBillsBulkAction">, validateBillsBulkActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkActionReviewItemResponsePayload[], "billsBulkActionView/validateBillsBulkActionSuccess">, validateBillsBulkActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "billsBulkActionView/validateBillsBulkActionFailure">, submitDraftBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billsBulkActionView/submitDraftBillsBulkAction">, approveOrRejectBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[approvalType: BillApprovalType, description: string], {
|
|
8
8
|
approvalType: BillApprovalType;
|
|
9
9
|
description: string;
|
|
10
|
-
}, "billsBulkActionView/approveOrRejectBillsBulkAction", never, never>, cancelOrDeleteBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[operationType: "
|
|
11
|
-
operationType: "
|
|
10
|
+
}, "billsBulkActionView/approveOrRejectBillsBulkAction", never, never>, cancelOrDeleteBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[operationType: "delete" | "cancel", description: string], {
|
|
11
|
+
operationType: "delete" | "cancel";
|
|
12
12
|
description: string;
|
|
13
13
|
}, "billsBulkActionView/cancelOrDeleteBillsBulkAction", never, never>, billsBulkActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "billsBulkActionView/billsBulkActionFailure">, autoReviewPendingApprovalBills: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billsBulkActionView/autoReviewPendingApprovalBills">, incrementBulkActionProcessedCount: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billsBulkActionView/incrementBulkActionProcessedCount">, billsBulkActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
14
14
|
billsProcessing: number;
|
package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js
CHANGED
|
@@ -8,11 +8,12 @@ const billsBulkActionViewReducer_1 = require("../billsBulkActionViewReducer");
|
|
|
8
8
|
const validateBillsBulkActionEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(billsBulkActionViewReducer_1.validateBillsBulkAction.match), (0, operators_1.mergeMap)(() => {
|
|
9
9
|
const { billsBulkActionViewState } = state$.value;
|
|
10
10
|
const { billsSelectedForBulkAction: transactionIds, bulkOperationTypeSelected, } = billsBulkActionViewState;
|
|
11
|
+
const validationValue = bulkOperationTypeSelected === 'send_for_approval'
|
|
12
|
+
? 'all'
|
|
13
|
+
: 'sufficient_funds';
|
|
11
14
|
const queryParam = {
|
|
12
15
|
entity_ids: transactionIds,
|
|
13
|
-
validations:
|
|
14
|
-
? 'all'
|
|
15
|
-
: 'sufficient_funds',
|
|
16
|
+
validations: [validationValue],
|
|
16
17
|
};
|
|
17
18
|
return zeniAPI
|
|
18
19
|
.getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bulk/bills/transactions/validate?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
|
package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js
CHANGED
|
@@ -10,9 +10,7 @@ const operators_1 = require("rxjs/operators");
|
|
|
10
10
|
const billDetailViewReducer_1 = require("../../billDetailView/billDetailViewReducer");
|
|
11
11
|
const billDetailViewState_1 = require("../../billDetailView/billDetailViewState");
|
|
12
12
|
const editBillViewReducer_1 = require("../editBillViewReducer");
|
|
13
|
-
const fetchBillAndInitializeLocalStoreEpic = (actions$,
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15
|
-
state$) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.fetchBillAndInitializeLocalStore.match), (0, operators_1.mergeMap)((action) => {
|
|
13
|
+
const fetchBillAndInitializeLocalStoreEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.fetchBillAndInitializeLocalStore.match), (0, operators_1.mergeMap)((action) => {
|
|
16
14
|
const { billId, cacheOverride, isShowDeletedBillsEnabled, hasZeniAssistAccess, } = action.payload;
|
|
17
15
|
const state = state$.value;
|
|
18
16
|
const billDetailActions = [];
|
|
@@ -13,9 +13,9 @@ interface ChargeCardDetail extends FetchedState {
|
|
|
13
13
|
updatePhysicalChargeCardAttemptFetchState: FetchStateAndError;
|
|
14
14
|
updateChargeCardLimitFetchState: FetchStateAndError;
|
|
15
15
|
}
|
|
16
|
-
export declare const toChargeCardTransactionSortKeyType: (v: string) => "
|
|
16
|
+
export declare const toChargeCardTransactionSortKeyType: (v: string) => "amount" | "type" | "merchant" | "paymentDate" | "receipts";
|
|
17
17
|
export declare type ChargeCardTransactionSortKey = ReturnType<typeof toChargeCardTransactionSortKeyType>;
|
|
18
|
-
interface ChargeCardDetailTransactionList extends FetchStateAndError {
|
|
18
|
+
export interface ChargeCardDetailTransactionList extends FetchStateAndError {
|
|
19
19
|
transactionIds: ID[];
|
|
20
20
|
uploadReceiptsFetchStateByTransactionId: Record<ID, FetchStateAndError>;
|
|
21
21
|
isViewReceiptClickedImmediatelyAfterUploadTransactionId: Record<ID, boolean>;
|
|
@@ -24,6 +24,6 @@ export interface CommonHistoryState {
|
|
|
24
24
|
}
|
|
25
25
|
export declare const toHistoricEventUpdateType: (v: string) => "deleted" | "created" | "updated";
|
|
26
26
|
type HistoricEventUpdateType = ReturnType<typeof toHistoricEventUpdateType>;
|
|
27
|
-
export declare const toHistoricEventUpdateDisplayType: (v: string) => "
|
|
27
|
+
export declare const toHistoricEventUpdateDisplayType: (v: string) => "list" | "sentence" | "inline";
|
|
28
28
|
type HistoricEventUpdateDisplayType = ReturnType<typeof toHistoricEventUpdateDisplayType>;
|
|
29
29
|
export {};
|
|
@@ -4,18 +4,18 @@ import { ZeniDate } from '../../../zeniDayJS';
|
|
|
4
4
|
import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
|
|
5
5
|
import { SetupViewLocalData, SetupViewState } from './setupViewState';
|
|
6
6
|
export declare const initialState: SetupViewState;
|
|
7
|
-
export declare const enableSetup: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, setupViewType: "
|
|
7
|
+
export declare const enableSetup: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing"], {
|
|
8
8
|
companyId: string;
|
|
9
|
-
setupViewType: "
|
|
10
|
-
}, "setupView/enableSetup", never, never>, enableSetupSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/enableSetupSuccess">, enableSetupFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/enableSetupFailure", never, never>, updateBusinessVerificationDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, officerType: "
|
|
9
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
10
|
+
}, "setupView/enableSetup", never, never>, enableSetupSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/enableSetupSuccess">, enableSetupFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/enableSetupFailure", never, never>, updateBusinessVerificationDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, officerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10", setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", sendForVerification?: any, fromBillListScreen?: any, isSubmittingAdditionalDocuments?: any], {
|
|
11
11
|
companyId: string;
|
|
12
|
-
officerType: "
|
|
13
|
-
setupViewType: "
|
|
12
|
+
officerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10";
|
|
13
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
14
14
|
sendForVerification: any;
|
|
15
15
|
fromBillListScreen: any;
|
|
16
16
|
isSubmittingAdditionalDocuments: any;
|
|
17
|
-
}, "setupView/updateBusinessVerificationDetails", never, never>, updateBusinessVerificationDetailsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/updateBusinessVerificationDetailsSuccess">, updateBusinessVerificationDetailsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/updateBusinessVerificationDetailsFailure", never, never>, updateSelectedCompanyOfficer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedOfficerType: "
|
|
18
|
-
selectedOfficerType: "
|
|
17
|
+
}, "setupView/updateBusinessVerificationDetails", never, never>, updateBusinessVerificationDetailsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/updateBusinessVerificationDetailsSuccess">, updateBusinessVerificationDetailsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/updateBusinessVerificationDetailsFailure", never, never>, updateSelectedCompanyOfficer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedOfficerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10"], {
|
|
18
|
+
selectedOfficerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10";
|
|
19
19
|
}, "setupView/updateSelectedCompanyOfficer", never, never>, updateSetupViewLocalStoreData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
20
20
|
companyId: ID;
|
|
21
21
|
}, "setupView/updateSetupViewLocalStoreData">, saveSetupViewDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<SetupViewLocalData>, "setupView/saveSetupViewDataInLocalStore">, saveCompnayOfficerPhoneInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -4,7 +4,7 @@ import { AllowedDocumentType } from '../../../entity/file/fileState';
|
|
|
4
4
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
5
5
|
import ZeniUrl from '../../../zeniUrl';
|
|
6
6
|
import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
|
|
7
|
-
declare const toSetupViewType: (v: string) => "
|
|
7
|
+
declare const toSetupViewType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
8
8
|
export type SetupViewType = ReturnType<typeof toSetupViewType>;
|
|
9
9
|
/**
|
|
10
10
|
* Setup View Local Data - Interfaces
|
package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js
CHANGED
|
@@ -14,14 +14,16 @@ const paymentAccountListReducer_1 = require("../../../zeniAccounts/paymentAccoun
|
|
|
14
14
|
const plaidAccountViewReducer_1 = require("../../plaidAccountViewReducer");
|
|
15
15
|
const establishPlaidConnectionEpic = (actions$, state, zeniAPI) => actions$.pipe((0, operators_1.filter)(plaidAccountViewReducer_1.establishPlaidConnection.match), (0, operators_1.mergeMap)((action) => {
|
|
16
16
|
var _a, _b;
|
|
17
|
-
const { publicToken, companyId, setupViewType, linkTokenType, plaidAccountKeyType, } = action.payload;
|
|
17
|
+
const { publicToken, companyId, setupViewType, linkTokenType, plaidAccountKeyType, zeniMappedAccountId, } = action.payload;
|
|
18
18
|
const requestPayload = {
|
|
19
19
|
public_token: publicToken,
|
|
20
20
|
};
|
|
21
|
+
const queryPayload = {};
|
|
21
22
|
const userId = (_b = (_a = state.value.tenantState.loggedInUser) === null || _a === void 0 ? void 0 : _a.userId) !== null && _b !== void 0 ? _b : '';
|
|
22
23
|
//setupViewType not passed means this is a user account
|
|
23
24
|
if (linkTokenType !== 'link_external_account') {
|
|
24
|
-
if (setupViewType == null
|
|
25
|
+
if (setupViewType == null &&
|
|
26
|
+
plaidAccountKeyType !== 'expense_automation_reconcile') {
|
|
25
27
|
requestPayload.is_user_account = true;
|
|
26
28
|
}
|
|
27
29
|
else if (plaidAccountKeyType === 'bill_pay_setup') {
|
|
@@ -39,9 +41,15 @@ const establishPlaidConnectionEpic = (actions$, state, zeniAPI) => actions$.pipe
|
|
|
39
41
|
else if (plaidAccountKeyType === 'billing_setup') {
|
|
40
42
|
requestPayload.is_primary_for_onboarding = true;
|
|
41
43
|
}
|
|
44
|
+
else if (plaidAccountKeyType === 'expense_automation_reconcile') {
|
|
45
|
+
queryPayload.zeni_mapped_account_id = zeniMappedAccountId !== null && zeniMappedAccountId !== void 0 ? zeniMappedAccountId : '';
|
|
46
|
+
}
|
|
42
47
|
}
|
|
48
|
+
const queryString = Object.entries(queryPayload).length > 0
|
|
49
|
+
? `?query=${JSON.stringify(queryPayload)}`
|
|
50
|
+
: '';
|
|
43
51
|
return zeniAPI
|
|
44
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.payMicroServiceBaseUrl}/1.0/plaid/public-token`, requestPayload)
|
|
52
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.payMicroServiceBaseUrl}/1.0/plaid/public-token${queryString}`, requestPayload)
|
|
45
53
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
46
54
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
47
55
|
const paymentAccount = response.data.payment_accounts[0];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
2
2
|
import { PlaidAccountKeyType, PlaidAccountViewState, PlaidLinkTokenType } from './plaidAccountViewState';
|
|
3
3
|
export declare const initialState: PlaidAccountViewState;
|
|
4
|
-
export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[setupViewType: "
|
|
5
|
-
setupViewType: "
|
|
4
|
+
export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", plaidAccountKeyType: PlaidAccountKeyType, includeBalances?: boolean | undefined], {
|
|
5
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
6
6
|
includeBalances: boolean;
|
|
7
7
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
8
8
|
}, "plaidAccountView/getPaymentAccounts", never, never>, getPaymentAccountsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[paymentAccountIds: string[], plaidAccountKeyType: PlaidAccountKeyType], {
|
|
@@ -11,20 +11,20 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
|
|
|
11
11
|
}, "plaidAccountView/getPaymentAccountsSuccess", never, never>, getPaymentAccountsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
12
12
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
13
13
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
14
|
-
}, "plaidAccountView/getPaymentAccountsFailure", never, never>, updatePaymentAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, paymentAccountId: string, setupViewType: "
|
|
14
|
+
}, "plaidAccountView/getPaymentAccountsFailure", never, never>, updatePaymentAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, paymentAccountId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", plaidAccountKeyType: PlaidAccountKeyType], {
|
|
15
15
|
accountId: string;
|
|
16
16
|
paymentAccountId: string;
|
|
17
|
-
setupViewType: "
|
|
17
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
18
18
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
19
19
|
}, "plaidAccountView/updatePaymentAccount", never, never>, updatePaymentAccountSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[plaidAccountKeyType: PlaidAccountKeyType], {
|
|
20
20
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
21
21
|
}, "plaidAccountView/updatePaymentAccountSuccess", never, never>, updatePaymentAccountFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
22
22
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
23
23
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
24
|
-
}, "plaidAccountView/updatePaymentAccountFailure", never, never>, updatePaymentAccountStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[verificationStatusCode: string, paymentAccountId: string, setupViewType: "
|
|
24
|
+
}, "plaidAccountView/updatePaymentAccountFailure", never, never>, updatePaymentAccountStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[verificationStatusCode: string, paymentAccountId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", plaidAccountKeyType: PlaidAccountKeyType, linkTokenType?: PlaidLinkTokenType | undefined], {
|
|
25
25
|
verificationStatusCode: string;
|
|
26
26
|
paymentAccountId: string;
|
|
27
|
-
setupViewType: "
|
|
27
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
28
28
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
29
29
|
linkTokenType: PlaidLinkTokenType;
|
|
30
30
|
}, "plaidAccountView/updatePaymentAccountStatus", never, never>, updatePaymentAccountStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[linkTokenType: PlaidLinkTokenType, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
@@ -34,10 +34,10 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
|
|
|
34
34
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
35
35
|
linkTokenType: PlaidLinkTokenType;
|
|
36
36
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
37
|
-
}, "plaidAccountView/updatePaymentAccountStatusFailure", never, never>, updatePaymentAccountLoginStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isLoginRequired: boolean, paymentAccountId: string, setupViewType: "
|
|
37
|
+
}, "plaidAccountView/updatePaymentAccountStatusFailure", never, never>, updatePaymentAccountLoginStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isLoginRequired: boolean, paymentAccountId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", plaidAccountKeyType: PlaidAccountKeyType, linkTokenType?: PlaidLinkTokenType | undefined], {
|
|
38
38
|
isLoginRequired: boolean;
|
|
39
39
|
paymentAccountId: string;
|
|
40
|
-
setupViewType: "
|
|
40
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
41
41
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
42
42
|
linkTokenType: PlaidLinkTokenType;
|
|
43
43
|
}, "plaidAccountView/updatePaymentAccountLoginStatus", never, never>, updatePaymentAccountLoginStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[paymentAccountIds: string[], linkTokenType: PlaidLinkTokenType, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
@@ -61,12 +61,13 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
|
|
|
61
61
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
62
62
|
linkTokenType: PlaidLinkTokenType;
|
|
63
63
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
64
|
-
}, "plaidAccountView/getPlaidLinkTokenFailure", never, never>, establishPlaidConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[publicToken: string, companyId: string, plaidAccountKeyType: PlaidAccountKeyType, setupViewType?: "
|
|
64
|
+
}, "plaidAccountView/getPlaidLinkTokenFailure", never, never>, establishPlaidConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[publicToken: string, companyId: string, plaidAccountKeyType: PlaidAccountKeyType, setupViewType?: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | undefined, linkTokenType?: PlaidLinkTokenType | undefined, zeniMappedAccountId?: string | undefined], {
|
|
65
65
|
publicToken: string;
|
|
66
66
|
companyId: string;
|
|
67
|
-
setupViewType: "
|
|
67
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | undefined;
|
|
68
68
|
linkTokenType: PlaidLinkTokenType;
|
|
69
69
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
70
|
+
zeniMappedAccountId: string | undefined;
|
|
70
71
|
}, "plaidAccountView/establishPlaidConnection", never, never>, establishPlaidConnectionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[linkTokenType: PlaidLinkTokenType, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
71
72
|
linkTokenType: PlaidLinkTokenType;
|
|
72
73
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
@@ -14,6 +14,7 @@ exports.initialState = {
|
|
|
14
14
|
user_reimbursement_account: plaidAccountViewState_1.initialPlaidAccountState,
|
|
15
15
|
external_account: plaidAccountViewState_1.initialPlaidAccountState,
|
|
16
16
|
billing_setup: plaidAccountViewState_1.initialPlaidAccountState,
|
|
17
|
+
expense_automation_reconcile: plaidAccountViewState_1.initialPlaidAccountState,
|
|
17
18
|
};
|
|
18
19
|
const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
19
20
|
name: 'plaidAccountView',
|
|
@@ -264,7 +265,7 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
264
265
|
error: undefined,
|
|
265
266
|
} });
|
|
266
267
|
},
|
|
267
|
-
prepare(publicToken, companyId, plaidAccountKeyType, setupViewType, linkTokenType) {
|
|
268
|
+
prepare(publicToken, companyId, plaidAccountKeyType, setupViewType, linkTokenType, zeniMappedAccountId) {
|
|
268
269
|
return {
|
|
269
270
|
payload: {
|
|
270
271
|
publicToken,
|
|
@@ -272,6 +273,7 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
272
273
|
setupViewType,
|
|
273
274
|
linkTokenType: linkTokenType !== null && linkTokenType !== void 0 ? linkTokenType : 'link_account',
|
|
274
275
|
plaidAccountKeyType,
|
|
276
|
+
zeniMappedAccountId,
|
|
275
277
|
},
|
|
276
278
|
};
|
|
277
279
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
3
3
|
export type PlaidLinkTokenType = 'link_account' | 'update_account' | 'link_account_no_microdeposit' | 'link_external_account';
|
|
4
|
-
export type PlaidAccountKeyType = 'spend_management_setup' | 'bill_pay_setup' | 'reimbursement_setup' | 'account_setup' | 'charge_card_setup' | 'user_reimbursement_account' | 'external_account' | 'billing_setup';
|
|
4
|
+
export type PlaidAccountKeyType = 'spend_management_setup' | 'bill_pay_setup' | 'reimbursement_setup' | 'account_setup' | 'charge_card_setup' | 'user_reimbursement_account' | 'external_account' | 'billing_setup' | 'expense_automation_reconcile';
|
|
5
5
|
export type PlaidConnectionDetails = Record<PlaidLinkTokenType, {
|
|
6
6
|
linkToken?: string;
|
|
7
7
|
expiration?: ZeniDate;
|
|
@@ -6,9 +6,7 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const recommendationReducer_1 = require("../../../../recommendation/recommendationReducer");
|
|
7
7
|
const recommendationSelector_1 = require("../../../../recommendation/recommendationSelector");
|
|
8
8
|
const editRemiViewReducer_1 = require("../editRemiViewReducer");
|
|
9
|
-
const fetchRecommendationsAndUpdateMerchantRecommendationsEpic = (actions$,
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11
|
-
state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.fetchRecommendationsAndUpdateMerchantRecommendations.match), (0, operators_1.mergeMap)((action) => {
|
|
9
|
+
const fetchRecommendationsAndUpdateMerchantRecommendationsEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.fetchRecommendationsAndUpdateMerchantRecommendations.match), (0, operators_1.mergeMap)((action) => {
|
|
12
10
|
const { cacheOverride, lineId, reimbursementId, merchantId, merchantName } = action.payload;
|
|
13
11
|
const state = state$.value;
|
|
14
12
|
const reimbursement = reimbursementId != null
|
|
@@ -67,9 +65,7 @@ state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.fetchReco
|
|
|
67
65
|
return (0, rxjs_1.from)(merchantRecommendationActions);
|
|
68
66
|
}));
|
|
69
67
|
exports.fetchRecommendationsAndUpdateMerchantRecommendationsEpic = fetchRecommendationsAndUpdateMerchantRecommendationsEpic;
|
|
70
|
-
const waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic = (actions$,
|
|
71
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
72
|
-
state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchant.match),
|
|
68
|
+
const waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchant.match),
|
|
73
69
|
//used concatMap here, as with mergeMap it was triggering below flow for first completed recommendations (in case of multi receipts)
|
|
74
70
|
(0, operators_1.concatMap)((action) => {
|
|
75
71
|
const { reimbursementId } = action.payload;
|
|
@@ -9,9 +9,7 @@ const rxjs_1 = require("rxjs");
|
|
|
9
9
|
const operators_1 = require("rxjs/operators");
|
|
10
10
|
const remiDetailViewReducer_1 = require("../../remiDetailView/remiDetailViewReducer");
|
|
11
11
|
const editRemiViewReducer_1 = require("../editRemiViewReducer");
|
|
12
|
-
const fetchRemiAndInitializeLocalStoreEpic = (actions$,
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14
|
-
state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.fetchRemiAndInitializeLocalStore.match), (0, operators_1.mergeMap)((action) => {
|
|
12
|
+
const fetchRemiAndInitializeLocalStoreEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.fetchRemiAndInitializeLocalStore.match), (0, operators_1.mergeMap)((action) => {
|
|
15
13
|
const { reimbursementId, cacheOverride, isShowDeletedReimbursementEnabled, } = action.payload;
|
|
16
14
|
const state = state$.value;
|
|
17
15
|
const remiDetailActions = [];
|
|
@@ -25,7 +25,7 @@ export declare const fetchRemiList: import("@reduxjs/toolkit").ActionCreatorWith
|
|
|
25
25
|
}, "remiList/updateRemiListFailure", never, never>, updateRemiListUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
26
26
|
uiState: Partial<RemiListUIState>;
|
|
27
27
|
period: TimePeriod;
|
|
28
|
-
}, "remiList/updateRemiListUIState">, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", "remiList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"
|
|
28
|
+
}, "remiList/updateRemiListUIState">, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", "remiList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"rejected" | "ach" | "wire" | "failed" | "cancelled" | "all" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval", "remiList/updateSubTab">, updateSelectedRemiId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSelectedRemiId">, clearRemiList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remiList/clearRemiList">, updateRemiDetailSaveRemiCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveRemiStageCode, "remiList/updateRemiDetailSaveRemiCode">, updateSearchResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSearchResult">, updateFilterResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
29
29
|
filters: ReimbursementFilters;
|
|
30
30
|
}, "remiList/updateFilterResult">, updateRemiListDownloadUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
31
31
|
uiState: Partial<RemiListDownloadUIState>;
|
|
@@ -173,7 +173,6 @@ function doUpdateRemiList(draft, payload, tab) {
|
|
|
173
173
|
const pendingApprovalTransactionIDs = payload.pending_approval_transaction_ids_for_user;
|
|
174
174
|
const start = (0, timePeriod_1.toAbsoluteDay)(payload === null || payload === void 0 ? void 0 : payload.query.start_date); // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
175
175
|
const end = (0, timePeriod_1.toAbsoluteDay)(payload === null || payload === void 0 ? void 0 : payload.query.end_date); // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
176
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
177
176
|
const key = (0, remiListState_1.getRemiListKey)({ start, end }, tab);
|
|
178
177
|
draft[key] = Object.assign(Object.assign({}, remiListState_1.remiListInitialState), { uiState: draft[key] != null ? draft[key].uiState : remiListState_1.remiListInitialState.uiState, fetchState: 'Completed', error: undefined, transactionIDs,
|
|
179
178
|
pendingApprovalTransactionIDs });
|
|
@@ -33,12 +33,12 @@ export declare const ALL_REMI_TABS: readonly ["paid", "pending_approval", "sched
|
|
|
33
33
|
export declare const toRemiTabType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
|
|
34
34
|
export declare const toRemiTabTypeStrict: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft" | undefined;
|
|
35
35
|
export type RemiTabType = ReturnType<typeof toRemiTabType>;
|
|
36
|
-
export declare const toRemiSubTabType: (v: string) => "
|
|
37
|
-
export declare const toRemiSubTabTypeStrict: (v: string) => "
|
|
36
|
+
export declare const toRemiSubTabType: (v: string) => "rejected" | "ach" | "wire" | "failed" | "cancelled" | "all" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval";
|
|
37
|
+
export declare const toRemiSubTabTypeStrict: (v: string) => "rejected" | "ach" | "wire" | "failed" | "cancelled" | "all" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval" | undefined;
|
|
38
38
|
export type RemiSubTabType = ReturnType<typeof toRemiSubTabType>;
|
|
39
|
-
export declare const toRemiSubTabUnderScoreType: (v: string) => "
|
|
39
|
+
export declare const toRemiSubTabUnderScoreType: (v: string) => "rejected" | "ach" | "wire" | "failed" | "cancelled" | "all" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "deleted" | "my_drafts" | "awaiting_all_approval";
|
|
40
40
|
export type RemiSubTabUnderScoreType = ReturnType<typeof toRemiSubTabUnderScoreType>;
|
|
41
|
-
declare const toReimbursementSortKeyType: (v: string) => "
|
|
41
|
+
declare const toReimbursementSortKeyType: (v: string) => "status" | "amount" | "type" | "submittedOn" | "reportName";
|
|
42
42
|
export type ReimbursementViewSortKey = ReturnType<typeof toReimbursementSortKeyType>;
|
|
43
43
|
export interface ReimbursementFilters {
|
|
44
44
|
categoryCombinationOperator: CategoryCombinationOperator;
|
package/lib/view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export declare const initialState: RemisBulkActionViewState;
|
|
|
7
7
|
export declare const updateRemisBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "remisBulkActionView/updateRemisBulkActionList">, removeRemiFromBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remisBulkActionView/removeRemiFromBulkActionList">, clearAllRemisFromBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remisBulkActionView/clearAllRemisFromBulkActionList">, reviewDraftRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkOperationType, "remisBulkActionView/reviewDraftRemisBulkAction">, reviewDraftRemisBulkActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkActionReviewItemResponsePayload[], "remisBulkActionView/reviewDraftRemisBulkActionSuccess">, reviewDraftRemisBulkActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "remisBulkActionView/reviewDraftRemisBulkActionFailure">, submitDraftRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remisBulkActionView/submitDraftRemisBulkAction">, approveOrRejectRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[approvalType: RemiApprovalType, description: string], {
|
|
8
8
|
approvalType: RemiApprovalType;
|
|
9
9
|
description: string;
|
|
10
|
-
}, "remisBulkActionView/approveOrRejectRemisBulkAction", never, never>, cancelOrDeleteRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[operationType: "
|
|
11
|
-
operationType: "
|
|
10
|
+
}, "remisBulkActionView/approveOrRejectRemisBulkAction", never, never>, cancelOrDeleteRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[operationType: "delete" | "cancel", description: string], {
|
|
11
|
+
operationType: "delete" | "cancel";
|
|
12
12
|
description: string;
|
|
13
13
|
}, "remisBulkActionView/cancelOrDeleteRemisBulkAction", never, never>, remisBulkActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "remisBulkActionView/remisBulkActionFailure">, autoReviewPendingApprovalRemis: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remisBulkActionView/autoReviewPendingApprovalRemis">, incrementRemiBulkActionProcessedCount: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remisBulkActionView/incrementRemiBulkActionProcessedCount">, remisBulkActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
14
14
|
remisProcessing: number;
|
|
@@ -191,7 +191,6 @@ const subscriptionView = (0, toolkit_1.createSlice)({
|
|
|
191
191
|
},
|
|
192
192
|
},
|
|
193
193
|
fetchSubscriptionList: {
|
|
194
|
-
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
195
194
|
prepare(fetchFullResponse = false) {
|
|
196
195
|
return { payload: { fetchFullResponse } };
|
|
197
196
|
},
|
|
@@ -15,7 +15,6 @@ const ALL_SUBSCRIPTION_SORT_KEYS = [
|
|
|
15
15
|
'monthlyRecurringRevenue',
|
|
16
16
|
'notes',
|
|
17
17
|
];
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
19
18
|
const toSubscriptionSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SUBSCRIPTION_SORT_KEYS);
|
|
20
19
|
exports.toSubscriptionSortKeyType = toSubscriptionSortKeyType;
|
|
21
20
|
exports.SUBSCRIPTION_STATUS_CODES = [
|
|
@@ -5,9 +5,7 @@ const rxjs_1 = require("rxjs");
|
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const taskListReducer_1 = require("../taskListReducer");
|
|
7
7
|
const taskListViewHelpers_1 = require("../taskListViewHelpers");
|
|
8
|
-
const dragNDropTasksEpic = (actions$,
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10
|
-
state$) => actions$.pipe((0, operators_1.filter)(taskListReducer_1.dragNDropTasks.match), (0, operators_1.mergeMap)((action) => {
|
|
8
|
+
const dragNDropTasksEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(taskListReducer_1.dragNDropTasks.match), (0, operators_1.mergeMap)((action) => {
|
|
11
9
|
const { taskIds, groupId } = action.payload;
|
|
12
10
|
const state = state$.value;
|
|
13
11
|
const { groupByKey } = state.taskListState.uiState;
|
|
@@ -37,15 +37,15 @@ export interface TaskFilterCategory {
|
|
|
37
37
|
}
|
|
38
38
|
export type TaskListFilterCategoryField = 'status' | 'dueDate' | 'assignee' | 'creationDate' | 'priority' | 'tag';
|
|
39
39
|
export declare const TASK_LIST_GROUP_BY_KEYS: readonly ["groupName", "status", "dueDate", "assignee", "priority", "tag"];
|
|
40
|
-
export declare const toTaskListGroupByKeyType: (v: string) => "
|
|
41
|
-
export declare const toTaskListGroupByKeyTypeStrict: (v: string) => "
|
|
40
|
+
export declare const toTaskListGroupByKeyType: (v: string) => "status" | "dueDate" | "groupName" | "tag" | "priority" | "assignee";
|
|
41
|
+
export declare const toTaskListGroupByKeyTypeStrict: (v: string) => "status" | "dueDate" | "groupName" | "tag" | "priority" | "assignee" | undefined;
|
|
42
42
|
export declare type TaskGroupKey = ReturnType<typeof toTaskListGroupByKeyType>;
|
|
43
43
|
export interface TaskListUIState extends SpendManagementUIState {
|
|
44
44
|
sortKey: TaskListViewSortKey;
|
|
45
45
|
searchText: string;
|
|
46
46
|
groupByKey: TaskGroupKey;
|
|
47
47
|
}
|
|
48
|
-
declare const toTaskListSortKeyType: (v: string) => "
|
|
48
|
+
declare const toTaskListSortKeyType: (v: string) => "status" | "name" | "dueDate" | "tag" | "priority" | "timeSpent" | "assignee" | "creationDate";
|
|
49
49
|
export declare type TaskListViewSortKey = ReturnType<typeof toTaskListSortKeyType>;
|
|
50
50
|
export declare const TASK_LIST_FILTER_CATEGORIES: TaskListFilterCategoryOption[];
|
|
51
51
|
interface TaskListFilterCategoryOption {
|
|
@@ -54,7 +54,7 @@ export declare const getTaskListGroupedByPriority: ({ taskListState, taskState,
|
|
|
54
54
|
tagState: TagState;
|
|
55
55
|
}) => {
|
|
56
56
|
groupName: string;
|
|
57
|
-
id: "
|
|
57
|
+
id: "urgent" | "high" | "normal" | "medium" | "low";
|
|
58
58
|
isDefault: boolean;
|
|
59
59
|
tasks: TaskWithUserDetails[];
|
|
60
60
|
}[];
|
|
@@ -9,8 +9,7 @@ const fetchTasksCardEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators
|
|
|
9
9
|
.getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/reports/task_card`)
|
|
10
10
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
11
11
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
12
|
-
return (0, rxjs_1.of)((0, tasksCardReducer_1.updateTasksCard)(response.data)
|
|
13
|
-
);
|
|
12
|
+
return (0, rxjs_1.of)((0, tasksCardReducer_1.updateTasksCard)(response.data));
|
|
14
13
|
}
|
|
15
14
|
else {
|
|
16
15
|
return (0, rxjs_1.of)((0, tasksCardReducer_1.updateTasksCardFailure)(response.status));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getTasksCardReport: (state: RootState) => {
|
|
3
|
-
reportId: "
|
|
3
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
status: import("../..").Status | undefined;
|
|
7
7
|
fetchState: import("../..").FetchState;
|
|
8
|
-
firstMonthOfFY:
|
|
8
|
+
firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
9
9
|
tasks: {
|
|
10
10
|
isUncategorizedIncomeTransactionsExist: boolean;
|
|
11
11
|
numOfBillsPendingApproval: number;
|
|
@@ -4,7 +4,7 @@ exports.getTasksCardReport = void 0;
|
|
|
4
4
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
5
|
const getTasksCardReportSelector = (0, toolkit_1.createSelector)((state) => state.tasksCardState, (tasksCardState) => {
|
|
6
6
|
const { tasks, fetchState } = tasksCardState;
|
|
7
|
-
let showCard =
|
|
7
|
+
let showCard = fetchState !== 'Completed';
|
|
8
8
|
let isMulti = false;
|
|
9
9
|
if (fetchState === 'Completed') {
|
|
10
10
|
for (const key in tasks) {
|
|
@@ -4,7 +4,7 @@ import { RootState } from '../../reducer';
|
|
|
4
4
|
import { TopExReport, TopExTimePeriodWithMetaData } from './topExSelectorTypes';
|
|
5
5
|
import { TopExState } from './topExState';
|
|
6
6
|
export declare const getTopExpenses: (accountState: AccountState, topExState: TopExState, numberOfExpenses?: number) => {
|
|
7
|
-
reportId: "
|
|
7
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
|
|
8
8
|
reportTitle: string;
|
|
9
9
|
version: string | number | undefined;
|
|
10
10
|
status: import("../..").Status | undefined;
|
|
@@ -24,13 +24,13 @@ export declare const getTopExpenses: (accountState: AccountState, topExState: To
|
|
|
24
24
|
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | undefined;
|
|
25
25
|
accountSubType: string | undefined;
|
|
26
26
|
accountDescription: string;
|
|
27
|
-
logo: import("url-parse")<string
|
|
27
|
+
logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
|
|
28
28
|
balance: import("../..").Balance;
|
|
29
29
|
}[];
|
|
30
30
|
};
|
|
31
31
|
allTimePeriods: TopExTimePeriodWithMetaData[];
|
|
32
32
|
dataAvailable: import("../..").TimeframeTick | undefined;
|
|
33
|
-
firstMonthOfFY:
|
|
33
|
+
firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
34
34
|
downloadState: import("../..").FetchState;
|
|
35
35
|
};
|
|
36
36
|
export declare const getTop6Expenses: (state: RootState) => TopExReport;
|