@zeniai/client-epic-state 4.11.97 → 4.11.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonPayloadTypes/balanceChangePayload.d.ts +3 -3
- package/lib/commonPayloadTypes/balanceChangePayload.js +2 -3
- package/lib/commonPayloadTypes/classesView/reportByClassPayloadV2.d.ts +2 -3
- package/lib/commonPayloadTypes/classesView/reportByClassPayloadV2.js +1 -1
- package/lib/commonPayloadTypes/coaBalancePayload.d.ts +3 -9
- package/lib/commonPayloadTypes/coaBalancePayload.js +1 -29
- package/lib/commonPayloadTypes/subAccountView/reportBySubAccountPayload.d.ts +3 -2
- package/lib/commonPayloadTypes/v2/coaBalancePayload.d.ts +2 -1
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -8
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +0 -83
- package/lib/commonStateTypes/accountView/nestedAccountID.d.ts +9 -8
- package/lib/commonStateTypes/accountView/nestedAccountID.js +4 -10
- package/lib/commonStateTypes/classesView/nestedClassID.d.ts +6 -8
- package/lib/commonStateTypes/classesView/nestedClassID.js +1 -10
- package/lib/commonStateTypes/coaBalance/additionalBalances/getSamePeriodLastYearBalance.d.ts +0 -1
- package/lib/commonStateTypes/coaBalance/additionalBalances/getSamePeriodLastYearBalance.js +1 -27
- package/lib/commonStateTypes/coaBalance/pickAndMergeForecast.d.ts +0 -2
- package/lib/commonStateTypes/coaBalance/pickAndMergeForecast.js +1 -2
- package/lib/commonStateTypes/customerView/nestedCustomerID.d.ts +6 -8
- package/lib/commonStateTypes/customerView/nestedCustomerID.js +0 -7
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +0 -3
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +2 -5
- package/lib/commonStateTypes/reduceFetchState.d.ts +0 -18
- package/lib/commonStateTypes/reduceFetchState.js +7 -10
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSection.d.ts +0 -2
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSection.js +0 -12
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -2
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +0 -10
- package/lib/commonStateTypes/selectorTypes/sortOrderTypes.d.ts +2 -2
- package/lib/commonStateTypes/selectorTypes/sortOrderTypes.js +2 -4
- package/lib/commonStateTypes/timePeriod.d.ts +2 -3
- package/lib/commonStateTypes/timePeriod.js +1 -6
- package/lib/commonStateTypes/v2/viewAndReport.d.ts +0 -5
- package/lib/commonStateTypes/v2/viewAndReport.js +3 -0
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +3 -4
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +0 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +3 -3
- package/lib/commonStateTypes/workingDayHelper.d.ts +0 -1
- package/lib/commonStateTypes/workingDayHelper.js +6 -6
- package/lib/entity/account/accountPayload.d.ts +1 -6
- package/lib/entity/account/accountPayload.js +3 -19
- package/lib/entity/account/accountReducer.d.ts +1 -3
- package/lib/entity/account/accountReducer.js +2 -3
- package/lib/entity/account/accountState.d.ts +2 -1
- package/lib/entity/account/accountState.js +1 -2
- package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +0 -6
- package/lib/entity/account/pickAndMergeForecastAccountReport.js +1 -2
- package/lib/entity/accountGroup/accountGroupSelector.d.ts +2 -1
- package/lib/entity/accountGroup/accountGroupSelector.js +2 -3
- package/lib/entity/address/addressReducer.d.ts +1 -2
- package/lib/entity/address/addressReducer.js +1 -2
- package/lib/entity/approvalRule/approvalRulePayload.d.ts +1 -3
- package/lib/entity/approvalRule/approvalRulePayload.js +3 -5
- package/lib/entity/approvalRule/approvalRuleState.d.ts +3 -7
- package/lib/entity/approvalRule/approvalRuleState.js +1 -13
- package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +3 -5
- package/lib/entity/billPay/billTransaction/billTransactionPayload.js +4 -7
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +9 -8
- package/lib/entity/billPay/billTransaction/billTransactionState.js +1 -7
- package/lib/entity/billPay/recurringBills/recurringBillsPayload.d.ts +2 -4
- package/lib/entity/billPay/recurringBills/recurringBillsPayload.js +3 -5
- package/lib/entity/chargeCard/chargeCard.d.ts +6 -7
- package/lib/entity/chargeCard/chargeCard.js +2 -7
- package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +3 -3
- package/lib/entity/chargeCardTransaction/chargeCardTransaction.js +1 -3
- package/lib/entity/chargeCardTransaction/chargeCardTransactionPayload.d.ts +2 -1
- package/lib/entity/chargeCardTransaction/chargeCardTransactionSelector.d.ts +0 -1
- package/lib/entity/chargeCardTransaction/chargeCardTransactionSelector.js +1 -2
- package/lib/entity/class/classPayload.d.ts +0 -4
- package/lib/entity/class/classPayload.js +1 -16
- package/lib/entity/class/classSelectorV2.d.ts +1 -8
- package/lib/entity/class/classSelectorV2.js +1 -2
- package/lib/entity/company/companyHelper.d.ts +0 -2
- package/lib/entity/company/companyHelper.js +2 -7
- package/lib/entity/company/companyPayload.d.ts +17 -24
- package/lib/entity/company/companyPayload.js +9 -17
- package/lib/entity/company/companyStateTypes.d.ts +6 -7
- package/lib/entity/company/companyStateTypes.js +3 -6
- package/lib/entity/companyHealthMetric/companyHealthMetricPayload.d.ts +5 -6
- package/lib/entity/companyHealthMetric/companyHealthMetricPayload.js +3 -5
- package/lib/entity/currency/currencySelector.d.ts +0 -3
- package/lib/entity/currency/currencySelector.js +1 -3
- package/lib/entity/customer/customerSelector.d.ts +2 -3
- package/lib/entity/customer/customerSelector.js +1 -8
- package/lib/entity/customerSatisfaction/customerSatisfactionReducerHelpers.d.ts +2 -4
- package/lib/entity/customerSatisfaction/customerSatisfactionReducerHelpers.js +3 -5
- package/lib/entity/customerSatisfaction/customerSatisfactionState.d.ts +1 -1
- package/lib/entity/customerSatisfaction/customerSatisfactionState.js +1 -2
- package/lib/entity/depositAccount/depositAccount.d.ts +3 -4
- package/lib/entity/depositAccount/depositAccount.js +1 -5
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +2 -2
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.js +3 -3
- package/lib/entity/depositAccountTransaction/depositAccountTransactionPayload.d.ts +2 -1
- package/lib/entity/depositAccountTransaction/depositAccountTransactionSelector.d.ts +0 -1
- package/lib/entity/depositAccountTransaction/depositAccountTransactionSelector.js +1 -2
- package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.d.ts +2 -6
- package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.js +3 -5
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +3 -4
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.js +1 -6
- package/lib/entity/file/filePayload.d.ts +2 -1
- package/lib/entity/file/fileState.d.ts +7 -21
- package/lib/entity/file/fileState.js +15 -34
- package/lib/entity/genericEntity/entity.d.ts +2 -1
- package/lib/entity/globalMerchant/globalMerchantPayload.d.ts +1 -4
- package/lib/entity/globalMerchant/globalMerchantPayload.js +2 -32
- package/lib/entity/globalMerchant/globalMerchantState.d.ts +2 -1
- package/lib/entity/insights/insightReducer.d.ts +1 -2
- package/lib/entity/insights/insightReducer.js +2 -3
- package/lib/entity/insights/insightState.d.ts +2 -1
- package/lib/entity/insights/insightState.js +0 -2
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -2
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +1 -2
- package/lib/entity/notification/types/notificationSelectorTypes.d.ts +2 -1
- package/lib/entity/notification/types/notificationTypes.d.ts +2 -11
- package/lib/entity/notification/types/notificationTypes.js +15 -24
- package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +3 -3
- package/lib/entity/paymentAccount/paymentAccountPayload.js +2 -3
- package/lib/entity/portfolio/accountingSummary/accountingSummaryPayload.d.ts +3 -2
- package/lib/entity/reimbursement/reimbursementPayload.d.ts +9 -22
- package/lib/entity/reimbursement/reimbursementPayload.js +16 -32
- package/lib/entity/reimbursement/reimbursementState.d.ts +2 -1
- package/lib/entity/subscription/subscriptionAddOn/subscriptionAddOnSelector.d.ts +0 -1
- package/lib/entity/subscription/subscriptionAddOn/subscriptionAddOnSelector.js +1 -2
- package/lib/entity/subscription/subscriptionCoupon/subscriptionCouponSelector.d.ts +0 -1
- package/lib/entity/subscription/subscriptionCoupon/subscriptionCouponSelector.js +1 -2
- package/lib/entity/subscription/subscriptionPlan/subscriptionPlanReducer.d.ts +1 -5
- package/lib/entity/subscription/subscriptionPlan/subscriptionPlanReducer.js +1 -2
- package/lib/entity/subscription/subscriptionSummary/subscriptionSummarySelector.d.ts +0 -1
- package/lib/entity/subscription/subscriptionSummary/subscriptionSummarySelector.js +1 -2
- package/lib/entity/task/taskState.d.ts +2 -5
- package/lib/entity/task/taskState.js +3 -10
- package/lib/entity/tenant/tenantSelector.d.ts +2 -2
- package/lib/entity/tenant/tenantSelector.js +1 -2
- package/lib/entity/toastNotification/toastNotificationState.d.ts +3 -6
- package/lib/entity/toastNotification/toastNotificationState.js +3 -3
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.d.ts +11 -21
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +10 -17
- package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -1
- package/lib/entity/transaction/stateTypes/paymentType.d.ts +2 -1
- package/lib/entity/transaction/stateTypes/paymentType.js +1 -2
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +6 -10
- package/lib/entity/transaction/stateTypes/transactionType.js +1 -14
- package/lib/entity/user/userReducer.d.ts +1 -3
- package/lib/entity/user/userReducer.js +2 -3
- package/lib/entity/user/userState.d.ts +2 -1
- package/lib/entity/userRole/userRoleState.d.ts +2 -2
- package/lib/entity/userRole/userRoleState.js +2 -4
- package/lib/entity/userRole/userRoleType.d.ts +0 -6
- package/lib/entity/userRole/userRoleType.js +9 -27
- package/lib/entity/vendor/vendorPayload.d.ts +2 -1
- package/lib/entity/vendorExpense/vendorExpenseReducer.d.ts +1 -2
- package/lib/entity/vendorExpense/vendorExpenseReducer.js +7 -7
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -1
- package/lib/entity/vendorExpense/vendorExpenseSelector.js +1 -2
- package/lib/entity/vendorExpense/vendorExpenseTrend.d.ts +2 -1
- package/lib/index.d.ts +56 -56
- package/lib/index.js +9 -9
- package/lib/responsePayload.d.ts +2 -1
- package/lib/view/accountList/accountListPayload.d.ts +2 -1
- package/lib/view/accountMappingView/accountMappingPayload.d.ts +0 -3
- package/lib/view/accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload.d.ts +8 -7
- package/lib/view/addressView/addressViewPayload.d.ts +2 -1
- package/lib/view/apAgingView/apAgingDetail/apAgingDetailState.d.ts +2 -1
- package/lib/view/arAgingView/arAgingDetail/arAgingDetailState.d.ts +2 -1
- package/lib/view/arAgingView/arAgingReport/arAgingPayload.d.ts +1 -1
- package/lib/view/auditReportView/auditReportViewPayload.d.ts +2 -1
- package/lib/view/auditReportView/auditReportViewState.d.ts +3 -5
- package/lib/view/auditReportView/auditReportViewState.js +5 -6
- package/lib/view/autoComplete/entityAutoCompleteReducer.d.ts +1 -1
- package/lib/view/balanceSheet/balanceSheetPayload.d.ts +14 -17
- package/lib/view/balanceSheet/balanceSheetPayload.js +1 -13
- package/lib/view/balanceSheet/balanceSheetSelectorTypes.d.ts +19 -25
- package/lib/view/balanceSheet/balanceSheetSelectorTypes.js +27 -36
- package/lib/view/bankAccountView/bankAccountViewPayload.d.ts +5 -4
- package/lib/view/billPayCard/billPayCardPayload.d.ts +3 -3
- package/lib/view/billPayCard/billPayCardState.d.ts +3 -2
- package/lib/view/billPayCard/billPayCardState.js +0 -2
- package/lib/view/cardPayment/cardPaymentViewPayload.d.ts +3 -3
- package/lib/view/cardPayment/cardPaymentViewTypes.d.ts +2 -3
- package/lib/view/cardPayment/cardPaymentViewTypes.js +4 -6
- package/lib/view/cashFlow/cashFlowPayload.d.ts +7 -8
- package/lib/view/cashFlow/cashFlowPayload.js +5 -8
- package/lib/view/cashFlow/cashFlowSelectorTypes.d.ts +17 -23
- package/lib/view/cashFlow/cashFlowSelectorTypes.js +21 -28
- package/lib/view/cashInCashOut/cashInCashOutSelectorTypes.d.ts +3 -4
- package/lib/view/cashInCashOut/cashInCashOutSelectorTypes.js +3 -12
- package/lib/view/classList/classListPayload.d.ts +2 -1
- package/lib/view/common/recurringViewHelper.d.ts +2 -2
- package/lib/view/common/recurringViewHelper.js +1 -4
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewPayload.d.ts +2 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +0 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +1 -3
- package/lib/view/companyConfigView/companyConfigPayload.d.ts +2 -1
- package/lib/view/companyHealthMetricView/companyHealthMetricViewPayload.d.ts +2 -1
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.d.ts +6 -11
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +8 -13
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewPayload.d.ts +3 -2
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewSelector.d.ts +0 -4
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewSelector.js +2 -3
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewState.d.ts +2 -2
- package/lib/view/companyView/companyViewPayload.d.ts +10 -9
- package/lib/view/companyView/helpers/cockpitHelpers.d.ts +0 -1
- package/lib/view/companyView/helpers/cockpitHelpers.js +3 -3
- package/lib/view/companyView/selector/companyManagementViewSelector.d.ts +0 -2
- package/lib/view/companyView/selector/companyManagementViewSelector.js +4 -5
- package/lib/view/companyView/types/cockpitTypes.d.ts +0 -7
- package/lib/view/companyView/types/cockpitTypes.js +11 -19
- package/lib/view/companyView/types/companyMetaDataViewState.d.ts +2 -1
- package/lib/view/companyView/types/companyPassportViewPayload.d.ts +6 -5
- package/lib/view/fileView/fileViewPayload.d.ts +2 -1
- package/lib/view/fileView/fileViewState.d.ts +2 -1
- package/lib/view/forecastList/forecastListPayload.d.ts +2 -1
- package/lib/view/globalMerchantView/epics/createGlobalMerchantEpic.d.ts +0 -7
- package/lib/view/globalMerchantView/epics/createGlobalMerchantEpic.js +2 -3
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState.d.ts +0 -1
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState.js +1 -3
- package/lib/view/globalMerchantView/globalMerchantViewPayload.d.ts +1 -1
- package/lib/view/netBurnOrIncome/netBurnOrIncomeSelector.d.ts +0 -1
- package/lib/view/netBurnOrIncome/netBurnOrIncomeSelector.js +1 -2
- package/lib/view/netBurnOrIncome/netBurnOrIncomeSelectorTypes.d.ts +4 -6
- package/lib/view/netBurnOrIncome/netBurnOrIncomeSelectorTypes.js +1 -3
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelectorTypes.d.ts +3 -3
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelectorTypes.js +4 -6
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardPayload.d.ts +9 -11
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardPayload.js +3 -4
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelectorTypes.d.ts +0 -1
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelectorTypes.js +1 -3
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +0 -2
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.js +1 -5
- package/lib/view/notificationView/notificationViewPayload.d.ts +3 -17
- package/lib/view/notificationView/notificationViewState.d.ts +3 -4
- package/lib/view/notificationView/notificationViewState.js +7 -9
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.d.ts +1 -15
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewState.d.ts +2 -1
- package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +2 -4
- package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.js +6 -9
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.d.ts +0 -6
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +2 -3
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.d.ts +0 -8
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +1 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +3 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -6
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +1 -4
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +1 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.js +5 -7
- package/lib/view/opEx/opExSelector.d.ts +0 -13
- package/lib/view/opEx/opExSelector.js +3 -4
- package/lib/view/opExByVendor/opExByVendorPayload.d.ts +4 -3
- package/lib/view/opExByVendor/opExByVendorState.d.ts +0 -1
- package/lib/view/opExByVendor/opExByVendorState.js +3 -3
- package/lib/view/opExClassesView/opExClassesViewSelectorTypes.d.ts +3 -3
- package/lib/view/opExClassesView/opExClassesViewSelectorTypes.js +4 -6
- package/lib/view/people/peopleTypes.d.ts +2 -2
- package/lib/view/people/peopleTypes.js +2 -4
- package/lib/view/profitAndLoss/profitAndLossSelector.d.ts +1 -1
- package/lib/view/profitAndLoss/profitAndLossSelector.js +2 -6
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes.d.ts +3 -2
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes.js +1 -3
- package/lib/view/recommendation/recommendationPayload.d.ts +3 -2
- package/lib/view/referralView/referralPayload.d.ts +4 -3
- package/lib/view/referralView/referralState.d.ts +3 -4
- package/lib/view/referralView/referralState.js +5 -10
- package/lib/view/reimbursementCard/reimbursementCardPayload.d.ts +4 -4
- package/lib/view/reimbursementCard/reimbursementCardState.d.ts +3 -2
- package/lib/view/reimbursementCard/reimbursementCardState.js +0 -2
- package/lib/view/revenue/revenueSelector.d.ts +0 -15
- package/lib/view/revenue/revenueSelector.js +1 -2
- package/lib/view/revenue/revenueSelectorTypes.d.ts +4 -6
- package/lib/view/revenue/revenueSelectorTypes.js +1 -3
- package/lib/view/revenueClassesView/revenueClassesViewSelectorTypes.d.ts +3 -3
- package/lib/view/revenueClassesView/revenueClassesViewSelectorTypes.js +4 -6
- package/lib/view/reviewCompanyView/reviewCompanyPayload.d.ts +2 -1
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +0 -1
- package/lib/view/reviewCompanyView/reviewCompanyViewState.js +3 -3
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.d.ts +0 -1
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +3 -3
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +7 -14
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +8 -13
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailTypes.d.ts +2 -2
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailTypes.js +2 -4
- package/lib/view/scheduleView/scheduleListView/scheduleListHelper.d.ts +2 -28
- package/lib/view/scheduleView/scheduleListView/scheduleListHelper.js +4 -24
- package/lib/view/scheduleView/scheduleListView/scheduleListPayload.d.ts +2 -1
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -4
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.js +7 -8
- package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +0 -6
- package/lib/view/settingsView/epic/fetchMyProfileEpic.js +1 -3
- package/lib/view/settingsView/settingsViewPayload.d.ts +3 -2
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +3 -4
- package/lib/view/spendManagement/billPay/billList/billListSelector.js +3 -5
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +4 -4
- package/lib/view/spendManagement/billPay/billList/billListState.js +3 -6
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +15 -35
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.js +7 -13
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigSelector.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +10 -15
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +15 -21
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewPayload.d.ts +3 -2
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewPayload.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewPayload.d.ts +3 -4
- package/lib/view/spendManagement/billPay/billPaySetupView/types/billPayTerms.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.d.ts +4 -3
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.d.ts +0 -2
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.js +5 -5
- package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.d.ts +3 -30
- package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.js +1 -25
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +2 -4
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +2 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.js +3 -4
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +0 -8
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +3 -4
- package/lib/view/spendManagement/billPay/internationalWire/internationalWire.d.ts +2 -1
- package/lib/view/spendManagement/billPay/internationalWire/internationalWirePayload.d.ts +5 -10
- package/lib/view/spendManagement/billPay/internationalWire/internationalWirePayload.js +3 -5
- package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewPayload.d.ts +7 -6
- package/lib/view/spendManagement/billPay/previousBills/previousBillsState.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailPayload.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.d.ts +0 -11
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +3 -5
- package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigPayload.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailPayload.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +0 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +5 -5
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListPayload.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +1 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +2 -3
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewPayload.d.ts +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewState.d.ts +0 -2
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/types/chargeCardTerms.d.ts +2 -1
- package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +4 -3
- package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.d.ts +5 -5
- package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.js +2 -3
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -5
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -13
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +2 -5
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -2
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +2 -3
- package/lib/view/spendManagement/commonSetup/setupViewState.js +2 -6
- package/lib/view/spendManagement/helpers.d.ts +1 -3
- package/lib/view/spendManagement/helpers.js +3 -5
- package/lib/view/spendManagement/merchantList/merchantListPayload.d.ts +2 -1
- package/lib/view/spendManagement/plaidAccount/types/plaidConnection.d.ts +2 -1
- package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalPayload.d.ts +2 -1
- package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalState.d.ts +3 -2
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewPayload.d.ts +2 -2
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.d.ts +2 -3
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +1 -22
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewState.d.ts +2 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.d.ts +0 -6
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +2 -12
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigPayload.d.ts +2 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigSelector.d.ts +0 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigSelector.js +1 -8
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState.d.ts +2 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState.js +1 -2
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewPayload.d.ts +4 -3
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +2 -2
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.js +3 -4
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewPayload.d.ts +2 -1
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateRemiSetupViewLocalStoreDataEpic.d.ts +0 -8
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateRemiSetupViewLocalStoreDataEpic.js +1 -2
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewPayload.d.ts +3 -2
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewState.d.ts +1 -2
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewState.js +1 -3
- package/lib/view/spendManagement/reimbursement/remiSetupView/types/remiTerms.d.ts +3 -2
- package/lib/view/spendManagement/spendManagementFilterHelpers.d.ts +3 -7
- package/lib/view/spendManagement/spendManagementFilterHelpers.js +4 -7
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailPayload.d.ts +3 -2
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListPayload.d.ts +3 -2
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListState.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailPayload.d.ts +3 -2
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailState.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.js +1 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/types/zeniAccountTerms.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewPayload.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +4 -4
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +2 -3
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +2 -1
- package/lib/view/subscriptionView/subscriptionEstmiatePayload.d.ts +1 -1
- package/lib/view/subscriptionView/subscriptionViewPayload.d.ts +9 -8
- package/lib/view/subscriptionView/subscriptionViewState.d.ts +3 -2
- package/lib/view/subscriptionView/types/subscriptionEstmiate.d.ts +4 -3
- package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +2 -2
- package/lib/view/subscriptionView/types/subscriptionTypes.js +3 -4
- package/lib/view/tagView/tagViewPayload.d.ts +2 -2
- package/lib/view/taskManager/taskDetailView/epics/archiveTaskEpic.d.ts +0 -7
- package/lib/view/taskManager/taskGroupView/taskGroupViewPayload.d.ts +2 -1
- package/lib/view/taskManager/taskListView/taskList.d.ts +2 -7
- package/lib/view/taskManager/taskListView/taskList.js +3 -4
- package/lib/view/taskManager/taskListView/taskListPayload.d.ts +2 -1
- package/lib/view/transactionDetail/transactionDetailPayload.d.ts +1 -1
- package/lib/view/transactionList/parallelFetchEntityTransactionListEpic.d.ts +0 -8
- package/lib/view/transactionList/parallelFetchEntityTransactionListEpic.js +1 -2
- package/lib/view/transactionList/transactionListByEntitySelector.d.ts +0 -2
- package/lib/view/transactionList/transactionListByEntitySelector.js +1 -2
- package/lib/view/transactionList/transactionListPayload.d.ts +5 -4
- package/lib/view/transactionList/transactionListState.d.ts +5 -4
- package/lib/view/trend/trendPayload.d.ts +4 -3
- package/lib/view/trendWithTransactions/trendWithTransactionsState.d.ts +2 -1
- package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.d.ts +3 -2
- package/lib/view/userFinancialAccount/fetchUserFinancialAccountEpic.d.ts +0 -2
- package/lib/view/userFinancialAccount/fetchUserFinancialAccountEpic.js +2 -3
- package/lib/view/userFinancialAccount/userFinancialAccountSelector.d.ts +0 -1
- package/lib/view/userFinancialAccount/userFinancialAccountSelector.js +2 -3
- package/lib/view/userListView/userListViewPayload.d.ts +2 -1
- package/lib/view/userRoleConfigView/userRoleConfigPayload.d.ts +2 -1
- package/lib/view/vendorList/vendorListPayload.d.ts +2 -5
- package/lib/view/vendorList/vendorListSelector.d.ts +0 -1
- package/lib/view/vendorList/vendorListSelector.js +1 -3
- package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +3 -5
- package/lib/view/vendorReviewView/common/state/commonTypes.js +4 -26
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewAttachmentsEpic.d.ts +0 -3
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewPayload.d.ts +3 -3
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.d.ts +2 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +2 -2
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.js +3 -3
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewPayload.d.ts +2 -3
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewPayload.js +3 -5
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +0 -2
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.js +3 -5
- package/lib/view/vendorTypeList/vendorTypeListPayload.d.ts +2 -1
- package/lib/view/vendorTypeList/vendorTypeSelector.d.ts +0 -12
- package/lib/view/vendorTypeList/vendorTypeSelector.js +0 -11
- package/lib/view/zeniAccStatementList/zeniAccStatementListPayload.d.ts +2 -1
- package/package.json +5 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
2
|
-
|
|
2
|
+
interface PlaidLinkTokenPayload {
|
|
3
3
|
link_token: string;
|
|
4
4
|
expiration: string;
|
|
5
5
|
}
|
|
6
6
|
export declare type PlaidLinkTokenResponse = ZeniAPIResponse<PlaidLinkTokenPayload>;
|
|
7
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { EntityApprovalStatusPayload } from '../../../entity/entityApprovalStatus/entityApprovalStatusPayload';
|
|
2
2
|
import { UserPayload } from '../../../entity/user/userPayload';
|
|
3
3
|
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
4
|
-
|
|
4
|
+
interface RealTimeApprovalPayload {
|
|
5
5
|
entity_approval: EntityApprovalStatusPayload;
|
|
6
6
|
attribute_users: UserPayload[];
|
|
7
7
|
}
|
|
8
8
|
export declare type RealTimeApprovalResponse = ZeniAPIResponse<RealTimeApprovalPayload>;
|
|
9
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import { EntityType as SpendManagementEntityType } from '../../../entity/entityA
|
|
|
3
3
|
import { Actor, ApprovalActionType, StepOperatorType } from '../../../entity/approvalRule/approvalRuleState';
|
|
4
4
|
import { EntityType } from '../../../entity/entityApprovalStatus/entityApprovalStatusState';
|
|
5
5
|
export declare const getEntityRealTimeApprovalDetailKey: (entityId: ID, entityType: SpendManagementEntityType) => string;
|
|
6
|
-
|
|
6
|
+
declare type EntityRealTimeApprovalDetailKey = ReturnType<typeof getEntityRealTimeApprovalDetailKey>;
|
|
7
7
|
export interface RealTimeStepsData {
|
|
8
8
|
action: ApprovalActionType;
|
|
9
9
|
operator: StepOperatorType;
|
|
@@ -17,10 +17,11 @@ export interface RealTimeApprovalDetailLocalData {
|
|
|
17
17
|
description?: string;
|
|
18
18
|
realTimeSteps: RealTimeStepsData[];
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
interface RealTimeApprovalView extends FetchStateAndError {
|
|
21
21
|
isEditMode: boolean;
|
|
22
22
|
realTimeApproverIds: ID[];
|
|
23
23
|
}
|
|
24
24
|
export interface RealTimeApprovalState {
|
|
25
25
|
realTimeApprovalById: Record<EntityRealTimeApprovalDetailKey, RealTimeApprovalView>;
|
|
26
26
|
}
|
|
27
|
+
export {};
|
|
@@ -30,8 +30,7 @@ export interface ReceiptsProcessingPayload {
|
|
|
30
30
|
merchants: MerchantPayload[];
|
|
31
31
|
receipts: ReceiptPayload[];
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
export interface RemiSavePayload {
|
|
33
|
+
interface RemiSavePayload {
|
|
35
34
|
transactions: ReimbursementPayload[];
|
|
36
35
|
entity_approvals: EntityApprovalStatusPayload[];
|
|
37
36
|
approval_rules: ApprovalRulePayload[];
|
|
@@ -44,3 +43,4 @@ export declare type CurrencyConversionResponse = ZeniAPIResponse<CurrencyConvers
|
|
|
44
43
|
export declare type ReimbursementConfigResponse = ZeniAPIResponse<ReimbursementConfigPayload>;
|
|
45
44
|
export declare const toReimbursementLineWithRecommendationFromMileage: (line: MilageReimbursementLine) => SegregatedReimbursementLineWithRecommendation;
|
|
46
45
|
export declare const toReimbursementLineWithRecommendationFromOutOfPocket: (line: OutofPocketReimbursementLine) => SegregatedReimbursementLineWithRecommendation;
|
|
46
|
+
export {};
|
|
@@ -6,7 +6,6 @@ import { AccountListSelectorView } from '../../../accountList/accountListSelecto
|
|
|
6
6
|
import { ClassListSelectorView } from '../../../classList/classListSelector';
|
|
7
7
|
import { AutoFields, SegregatedReimbursementLineWithRecommendation, WhatForSection, SegregatedReimbursementLine } from './editRemiViewState';
|
|
8
8
|
import { ReimbursementInfo, ReimbursementLine } from '../../../../entity/reimbursement/reimbursementState';
|
|
9
|
-
import { File } from '../../../../entity/file/fileState';
|
|
10
9
|
import { Attachment } from '../../../../entity/transaction/stateTypes/attachment';
|
|
11
10
|
import { MerchantListSelectorView } from '../../merchantList/merchantListSelector';
|
|
12
11
|
import { RemiActivity } from '../remiDetailView/remiDetailViewSelector';
|
|
@@ -54,7 +53,7 @@ export interface EditRemiDetailSelectorView extends BankAccountSelectorView, Sel
|
|
|
54
53
|
latestApprovedDate?: ZeniDate;
|
|
55
54
|
loggedInUserDepartmentId?: ID;
|
|
56
55
|
}
|
|
57
|
-
|
|
56
|
+
interface EditRemiInitialDetails {
|
|
58
57
|
whatForSection?: WhatForSection;
|
|
59
58
|
lineDetailSection: Record<ID, ReimbursementLineWithAttachment>;
|
|
60
59
|
paymentTo?: ID;
|
|
@@ -69,5 +68,5 @@ export declare type ReimbursementLineWithAttachmentAndRecommendation = Segregate
|
|
|
69
68
|
file?: Attachment;
|
|
70
69
|
recommendationFetchState: FetchState;
|
|
71
70
|
};
|
|
72
|
-
export declare const mapFileToAttachment: (file: File | undefined) => Attachment | undefined;
|
|
73
71
|
export declare const getEditRemiDetail: (state: RootState, reimbursementId?: string | undefined) => EditRemiDetailSelectorView;
|
|
72
|
+
export {};
|
|
@@ -3,12 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getEditRemiDetail =
|
|
6
|
+
exports.getEditRemiDetail = void 0;
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
8
|
const reduceFetchState_1 = require("../../../../commonStateTypes/reduceFetchState");
|
|
9
9
|
const accountListSelector_1 = require("../../../accountList/accountListSelector");
|
|
10
10
|
const classListSelector_1 = require("../../../classList/classListSelector");
|
|
11
|
-
const attachment_1 = require("../../../../entity/transaction/stateTypes/attachment");
|
|
12
11
|
const merchantListSelector_1 = require("../../merchantList/merchantListSelector");
|
|
13
12
|
const userSelector_1 = require("../../../../entity/user/userSelector");
|
|
14
13
|
const remiDetailViewSelector_1 = require("../remiDetailView/remiDetailViewSelector");
|
|
@@ -22,26 +21,6 @@ const helpers_1 = require("../../helpers");
|
|
|
22
21
|
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
23
22
|
const reimbursementConfigSelector_1 = require("../reimbursementConfig/reimbursementConfigSelector");
|
|
24
23
|
const reimbursementConfigState_1 = require("../reimbursementConfig/reimbursementConfigState");
|
|
25
|
-
const mapFileToAttachment = (file) => {
|
|
26
|
-
var _a;
|
|
27
|
-
if (file != null) {
|
|
28
|
-
return {
|
|
29
|
-
id: file.fileId,
|
|
30
|
-
contentType: (0, attachment_1.toContentType)(file.contentType),
|
|
31
|
-
createTime: file.createTime,
|
|
32
|
-
updateTime: (_a = file.updateTime) !== null && _a !== void 0 ? _a : file.createTime,
|
|
33
|
-
fileName: file.fileName,
|
|
34
|
-
fileSizeInBytes: file.fileSize,
|
|
35
|
-
fileDownloadUrl: file.signedUrl,
|
|
36
|
-
fileChecksum: file.checksum,
|
|
37
|
-
fileId: file.fileId,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
return undefined;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.mapFileToAttachment = mapFileToAttachment;
|
|
45
24
|
const getEditRemiDetail = (state, reimbursementId) => {
|
|
46
25
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
47
26
|
const { accountListState, accountState, remiDetailViewState, reimbursementState, currencyState, classListState, classState, editRemiDetailViewState, reimbursementConfigState, merchantListState, merchantState, userState, bankAccountState, commonHistoryState, } = state;
|
|
@@ -41,7 +41,7 @@ export interface OutofPocketLine extends ReimbursementBaseLineWithoutType {
|
|
|
41
41
|
export interface MilageLine extends ReimbursementBaseLineWithoutType {
|
|
42
42
|
distanceMileage: DistanceMilage;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
interface ReimbursementBaseLineWithoutType extends Amount {
|
|
45
45
|
lineDetail: LineDetail;
|
|
46
46
|
transactionDate: ZeniDate;
|
|
47
47
|
description: string;
|
|
@@ -62,3 +62,4 @@ export interface RemiDetailLocalData {
|
|
|
62
62
|
paymentTo?: ID;
|
|
63
63
|
}
|
|
64
64
|
export declare type AutoFields = ('merchant' | 'transactionDate' | 'amount' | 'memo' | 'account' | 'class')[];
|
|
65
|
+
export {};
|
|
@@ -4,9 +4,3 @@ import { fetchRemiDetail, updateRemiDetail } from '../../remiDetailView/remiDeta
|
|
|
4
4
|
import { fetchRemiAndInitializeLocalStore, initializeRemiToLocalStore, waitForRemiDetailThenInitializeLocalStore } from '../editRemiViewReducer';
|
|
5
5
|
export declare type ActionType = ReturnType<typeof waitForRemiDetailThenInitializeLocalStore> | ReturnType<typeof fetchRemiDetail> | ReturnType<typeof updateRemiDetail> | ReturnType<typeof initializeRemiToLocalStore> | ReturnType<typeof fetchRemiAndInitializeLocalStore>;
|
|
6
6
|
export declare const fetchRemiAndInitializeLocalStoreEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<ActionType>;
|
|
7
|
-
export declare const waitForRemiDetailThenInitializeLocalStoreEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>) => import("rxjs").Observable<{
|
|
8
|
-
payload: {
|
|
9
|
-
reimbursementId: string;
|
|
10
|
-
};
|
|
11
|
-
type: string;
|
|
12
|
-
}>;
|
|
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.fetchRemiAndInitializeLocalStoreEpic = void 0;
|
|
7
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
7
8
|
const rxjs_1 = require("rxjs");
|
|
8
9
|
const operators_1 = require("rxjs/operators");
|
|
9
|
-
const get_1 = __importDefault(require("lodash/get"));
|
|
10
10
|
const remiDetailViewReducer_1 = require("../../remiDetailView/remiDetailViewReducer");
|
|
11
11
|
const editRemiViewReducer_1 = require("../editRemiViewReducer");
|
|
12
12
|
const fetchRemiAndInitializeLocalStoreEpic = (actions$,
|
|
@@ -44,13 +44,3 @@ state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.fetchRemi
|
|
|
44
44
|
return (0, rxjs_1.from)(remiDetailActions);
|
|
45
45
|
}));
|
|
46
46
|
exports.fetchRemiAndInitializeLocalStoreEpic = fetchRemiAndInitializeLocalStoreEpic;
|
|
47
|
-
const waitForRemiDetailThenInitializeLocalStoreEpic = (actions$,
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
49
|
-
_) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.waitForRemiDetailThenInitializeLocalStore.match), (0, operators_1.switchMap)((action) => {
|
|
50
|
-
const { reimbursementId } = action.payload;
|
|
51
|
-
return actions$.pipe((0, operators_1.filter)((value) => editRemiViewReducer_1.indicateReadyToInitializeRemiLocalStore.match(value)), (0, operators_1.take)(1), // don't listen forever! IMPORTANT!
|
|
52
|
-
(0, operators_1.mergeMap)(() => {
|
|
53
|
-
return (0, rxjs_1.of)((0, editRemiViewReducer_1.initializeRemiToLocalStore)(reimbursementId));
|
|
54
|
-
}));
|
|
55
|
-
}));
|
|
56
|
-
exports.waitForRemiDetailThenInitializeLocalStoreEpic = waitForRemiDetailThenInitializeLocalStoreEpic;
|
package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigPayload.d.ts
CHANGED
|
@@ -10,8 +10,9 @@ export interface ReimbursementConfigPayload {
|
|
|
10
10
|
currency_country_map: CurrencyCountryPayload[];
|
|
11
11
|
reimbursement_bot_email: string;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
interface ReimbursementConfigPaymentProcessorPayload {
|
|
14
14
|
payment_timeline: Record<ReimbursementmentConfigCodeType, Record<ReimbursementmentSubConfigCodeType, ConfigTimelinePayload>>;
|
|
15
15
|
}
|
|
16
16
|
export declare const mapReimbursementConfigPayloadToReimbursementConfig: (payload: ReimbursementConfigPayload, code: ReimbursementmentConfigCodeType, subCode: ReimbursementmentSubConfigCodeType) => ReimbursementConfig;
|
|
17
17
|
export declare type ReimbursementConfigResponse = ZeniAPIResponse<ReimbursementConfigPayload>;
|
|
18
|
+
export {};
|
package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigSelector.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ReimbursementConfig, ReimbursementConfigKey, ReimbursementConfigState } from './reimbursementConfigState';
|
|
2
|
-
export declare function getReimbursementConfigByKeys(reimbursementConfigState: ReimbursementConfigState, reimbursementConfigKeys: ReimbursementConfigKey[]): ReimbursementConfig[];
|
|
3
2
|
export declare function getReimbursementConfigByKey(reimbursementConfigState: ReimbursementConfigState, reimbursementConfigKey: ReimbursementConfigKey): ReimbursementConfig | undefined;
|
|
4
3
|
export declare function getReimbursementConfigBotEmail(reimbursementConfigState: ReimbursementConfigState): string;
|
package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigSelector.js
CHANGED
|
@@ -3,15 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getReimbursementConfigBotEmail = exports.getReimbursementConfigByKey =
|
|
6
|
+
exports.getReimbursementConfigBotEmail = exports.getReimbursementConfigByKey = void 0;
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
|
-
function getReimbursementConfigByKeys(reimbursementConfigState, reimbursementConfigKeys) {
|
|
9
|
-
const reimbursementConfigs = reimbursementConfigKeys
|
|
10
|
-
.map((id) => getReimbursementConfigByKey(reimbursementConfigState, id))
|
|
11
|
-
.filter((value) => value != null);
|
|
12
|
-
return reimbursementConfigs;
|
|
13
|
-
}
|
|
14
|
-
exports.getReimbursementConfigByKeys = getReimbursementConfigByKeys;
|
|
15
8
|
function getReimbursementConfigByKey(reimbursementConfigState, reimbursementConfigKey) {
|
|
16
9
|
return (0, get_1.default)(reimbursementConfigState.methodById, reimbursementConfigKey, undefined);
|
|
17
10
|
}
|
package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ export interface ReimbursementConfig {
|
|
|
12
12
|
method: ReimbursementConfigKey;
|
|
13
13
|
}
|
|
14
14
|
export declare const REIMBURSEMENT_PAYMENT_METHOD_CODE: readonly ["ach"];
|
|
15
|
-
|
|
15
|
+
declare const toReimbursementmentMethodCodeType: (v: string) => "ach";
|
|
16
16
|
export declare type ReimbursementmentConfigCodeType = ReturnType<typeof toReimbursementmentMethodCodeType>;
|
|
17
17
|
export declare type ReimbursementmentSubConfigCodeType = PaymentAchSubConfigCodeType;
|
|
18
18
|
export declare const REIMBURSEMENT_PAYMENT_NUMBER_OF_DAYS = 2;
|
|
19
|
+
export {};
|
package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.REIMBURSEMENT_PAYMENT_NUMBER_OF_DAYS = exports.
|
|
3
|
+
exports.REIMBURSEMENT_PAYMENT_NUMBER_OF_DAYS = exports.REIMBURSEMENT_PAYMENT_METHOD_CODE = exports.getReimbursementConfigKey = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../../commonStateTypes/stringToUnion");
|
|
5
5
|
const getReimbursementConfigKey = (method, subMethod) => `reimbursement_${method}_${subMethod}`;
|
|
6
6
|
exports.getReimbursementConfigKey = getReimbursementConfigKey;
|
|
7
7
|
exports.REIMBURSEMENT_PAYMENT_METHOD_CODE = ['ach'];
|
|
8
8
|
const toReimbursementmentMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.REIMBURSEMENT_PAYMENT_METHOD_CODE);
|
|
9
|
-
exports.toReimbursementmentMethodCodeType = toReimbursementmentMethodCodeType;
|
|
10
9
|
exports.REIMBURSEMENT_PAYMENT_NUMBER_OF_DAYS = 2;
|
|
@@ -5,7 +5,7 @@ import { MerchantPayload } from '../../../../entity/merchant/merchantPayload';
|
|
|
5
5
|
import { ReimbursementPayload } from '../../../../entity/reimbursement/reimbursementPayload';
|
|
6
6
|
import { UserPayload } from '../../../../entity/user/userPayload';
|
|
7
7
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
8
|
-
|
|
8
|
+
interface ApproveOrRejectRemiPayload {
|
|
9
9
|
approval_rules: ApprovalRulePayload[];
|
|
10
10
|
users: UserPayload[];
|
|
11
11
|
entity_approvals: EntityApprovalStatusPayload[];
|
|
@@ -20,7 +20,7 @@ export interface RemiDetailViewPayload {
|
|
|
20
20
|
merchants: MerchantPayload[];
|
|
21
21
|
reimbursee_bank_account: BankAccountPayload | null;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
interface RemiDetailQuery {
|
|
24
24
|
reimbursement_provider: string;
|
|
25
25
|
is_include_approval_info: boolean;
|
|
26
26
|
is_include_payment_accounts_info: boolean;
|
|
@@ -33,7 +33,8 @@ export interface DuplicateLinePayload {
|
|
|
33
33
|
duplicate_transaction_id: string | null;
|
|
34
34
|
}
|
|
35
35
|
export declare type RemiDetailViewResponse = ZeniAPIResponse<RemiDetailViewPayload>;
|
|
36
|
-
|
|
36
|
+
interface DuplicateReimbursementPayload {
|
|
37
37
|
lines: DuplicateLinePayload[];
|
|
38
38
|
}
|
|
39
39
|
export declare type DuplicateReimbursementResponse = ZeniAPIResponse<DuplicateReimbursementPayload>;
|
|
40
|
+
export {};
|
|
@@ -38,8 +38,7 @@ export declare const toRemiSubTabTypeStrict: (v: string) => "all" | "failed" | "
|
|
|
38
38
|
export declare type RemiSubTabType = ReturnType<typeof toRemiSubTabType>;
|
|
39
39
|
export declare const toRemiSubTabUnderScoreType: (v: string) => "all" | "failed" | "rejected" | "ach" | "wire" | "cancelled" | "deleted" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "my_drafts" | "awaiting_all_approval";
|
|
40
40
|
export declare type RemiSubTabUnderScoreType = ReturnType<typeof toRemiSubTabUnderScoreType>;
|
|
41
|
-
|
|
42
|
-
export declare const toReimbursementSortKeyType: (v: string) => "type" | "status" | "amount" | "submittedOn" | "reportName";
|
|
41
|
+
declare const toReimbursementSortKeyType: (v: string) => "type" | "status" | "amount" | "submittedOn" | "reportName";
|
|
43
42
|
export declare type ReimbursementViewSortKey = ReturnType<typeof toReimbursementSortKeyType>;
|
|
44
43
|
export interface ReimbursementFilters {
|
|
45
44
|
categoryCombinationOperator: CategoryCombinationOperator;
|
|
@@ -54,3 +53,4 @@ export interface ReimbursementFilterCategory {
|
|
|
54
53
|
export declare type RemiListViewFilterCategoryField = 'createdBy' | 'status' | 'amount' | 'receiptDate' | 'creationDate' | 'paymentMethod';
|
|
55
54
|
export declare const REIMBURSEMENT_FILTER_CATEGORIES: ReimbursementFilterCategoryDropdownOption[];
|
|
56
55
|
export declare const REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED: ReimbursementFilterCategoryDropdownOption[];
|
|
56
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED = exports.REIMBURSEMENT_FILTER_CATEGORIES = exports.
|
|
3
|
+
exports.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED = exports.REIMBURSEMENT_FILTER_CATEGORIES = exports.toRemiSubTabUnderScoreType = exports.toRemiSubTabTypeStrict = exports.toRemiSubTabType = exports.toRemiTabTypeStrict = exports.toRemiTabType = exports.ALL_REMI_TABS = exports.remiListInitialState = exports.getRemiListKey = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../../commonStateTypes/stringToUnion");
|
|
5
5
|
const getRemiListKey = (period, tab) => `remi-${tab}-${period.start.day}_${period.start.month}_${period.start.year}_${period.end.day}_${period.end.month}_${period.end.year}`;
|
|
6
6
|
exports.getRemiListKey = getRemiListKey;
|
|
@@ -61,15 +61,14 @@ const REMI_SUB_TAB_UNDERSCORE = [
|
|
|
61
61
|
];
|
|
62
62
|
const toRemiSubTabUnderScoreType = (v) => (0, stringToUnion_1.stringToUnion)(v, REMI_SUB_TAB_UNDERSCORE);
|
|
63
63
|
exports.toRemiSubTabUnderScoreType = toRemiSubTabUnderScoreType;
|
|
64
|
-
|
|
64
|
+
const ALL_REIMBURSEMENT_SORT_KEYS = [
|
|
65
65
|
'reportName',
|
|
66
66
|
'submittedOn',
|
|
67
67
|
'type',
|
|
68
68
|
'status',
|
|
69
69
|
'amount',
|
|
70
70
|
];
|
|
71
|
-
const toReimbursementSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
72
|
-
exports.toReimbursementSortKeyType = toReimbursementSortKeyType;
|
|
71
|
+
const toReimbursementSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_REIMBURSEMENT_SORT_KEYS);
|
|
73
72
|
exports.REIMBURSEMENT_FILTER_CATEGORIES = [
|
|
74
73
|
{
|
|
75
74
|
value: 'createdBy',
|
|
@@ -4,7 +4,7 @@ import { AttributeType } from '../../../../entity/approvalRule/approvalRuleState
|
|
|
4
4
|
import { UserRolePayload } from '../../../../entity/userRole/userRolePayload';
|
|
5
5
|
import { ApproverViewPayload } from '../../billPay/billPaySetupApproverView/types/commonPayload';
|
|
6
6
|
import { ID } from '../../../../commonStateTypes/common';
|
|
7
|
-
|
|
7
|
+
interface RemiSetupApproversListPayload {
|
|
8
8
|
users: UserPayload[];
|
|
9
9
|
attributes: AttributeType[];
|
|
10
10
|
user_roles: UserRolePayload[];
|
|
@@ -12,3 +12,4 @@ export interface RemiSetupApproversListPayload {
|
|
|
12
12
|
}
|
|
13
13
|
export declare type RemiSetupApproverViewResponse = ZeniAPIResponse<ApproverViewPayload>;
|
|
14
14
|
export declare type RemiSetupApproversListResponse = ZeniAPIResponse<RemiSetupApproversListPayload>;
|
|
15
|
+
export {};
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { RootState } from '../../../../../../reducer';
|
|
3
|
-
import { Company } from '../../../../../../entity/company/companyStateTypes';
|
|
4
3
|
import { updateRemiSetupViewLocalStoreData, clearRemiSetupViewDataInLocalStore, saveRemiSetupViewDataInLocalStore } from '../../remiSetupViewReducer';
|
|
5
|
-
import { MileageDetailsLocalData } from '../../remiSetupViewState';
|
|
6
4
|
export declare type ActionType = ReturnType<typeof updateRemiSetupViewLocalStoreData> | ReturnType<typeof saveRemiSetupViewDataInLocalStore> | ReturnType<typeof clearRemiSetupViewDataInLocalStore>;
|
|
7
5
|
export declare const updateRemiSetupViewLocalStoreDataEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<ActionType>;
|
|
8
|
-
/**
|
|
9
|
-
* Helpers
|
|
10
|
-
*/
|
|
11
|
-
export declare function toMileageLocalData(company: Company): {
|
|
12
|
-
mileageDetails: MileageDetailsLocalData;
|
|
13
|
-
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.updateRemiSetupViewLocalStoreDataEpic = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const amount_1 = require("../../../../../../commonStateTypes/amount");
|
|
@@ -38,4 +38,3 @@ function toMileageLocalData(company) {
|
|
|
38
38
|
};
|
|
39
39
|
return { mileageDetails };
|
|
40
40
|
}
|
|
41
|
-
exports.toMileageLocalData = toMileageLocalData;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
2
2
|
import { EnableSetupViewPayload, SetupViewPayload } from '../../commonSetup/setupViewPayload';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare type EnableRemiSetupViewPayload = EnableSetupViewPayload;
|
|
4
|
+
declare type RemiSetupViewPayload = SetupViewPayload;
|
|
5
5
|
export declare type RemiSetupViewResponse = ZeniAPIResponse<RemiSetupViewPayload>;
|
|
6
6
|
export declare type EnableRemiSetupViewResponse = ZeniAPIResponse<EnableRemiSetupViewPayload>;
|
|
7
|
+
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { FetchedState, FetchStateAndError } from '../../../../commonStateTypes/common';
|
|
2
1
|
import { Amount } from '../../../../commonStateTypes/amount';
|
|
2
|
+
import { FetchedState, FetchStateAndError } from '../../../../commonStateTypes/common';
|
|
3
3
|
import { SetupViewLocalData } from '../../commonSetup/setupViewState';
|
|
4
4
|
export declare const toMileageDenominationType: (v: string) => "cents" | "dollars";
|
|
5
5
|
export declare type MileageDenomination = ReturnType<typeof toMileageDenominationType>;
|
|
6
|
-
export declare const toMileageDenominationTypeStrict: (v: string | null) => MileageDenomination | undefined;
|
|
7
6
|
export interface MileageDetailsLocalData {
|
|
8
7
|
mileageUnitAmount?: Amount;
|
|
9
8
|
mileageUnit: string;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toMileageDenominationType = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../../commonStateTypes/stringToUnion");
|
|
5
5
|
const ALL_DENOMINATION_TYPES = ['cents', 'dollars'];
|
|
6
6
|
const toMileageDenominationType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_DENOMINATION_TYPES);
|
|
7
7
|
exports.toMileageDenominationType = toMileageDenominationType;
|
|
8
|
-
const toMileageDenominationTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_DENOMINATION_TYPES);
|
|
9
|
-
exports.toMileageDenominationTypeStrict = toMileageDenominationTypeStrict;
|
|
@@ -2,13 +2,14 @@ import { ZeniAPIResponse } from '../../../../../responsePayload';
|
|
|
2
2
|
import { CompanyPayload } from '../../../../../entity/company/companyPayload';
|
|
3
3
|
import { UserPayload } from '../../../../../entity/user/userPayload';
|
|
4
4
|
import { UserRolePayload } from '../../../../../entity/userRole/userRolePayload';
|
|
5
|
-
|
|
5
|
+
interface AcceptRemiTermsPayload {
|
|
6
6
|
companies: CompanyPayload[];
|
|
7
7
|
users: UserPayload[];
|
|
8
8
|
user_roles: UserRolePayload[];
|
|
9
9
|
}
|
|
10
10
|
export declare type AcceptRemiTermsResponse = ZeniAPIResponse<AcceptRemiTermsPayload>;
|
|
11
|
-
|
|
11
|
+
interface AcceptEmployeeRemiTermsPayload {
|
|
12
12
|
user_roles: UserRolePayload[];
|
|
13
13
|
}
|
|
14
14
|
export declare type AcceptEmployeeRemiTermsResponse = ZeniAPIResponse<AcceptEmployeeRemiTermsPayload>;
|
|
15
|
+
export {};
|
|
@@ -3,13 +3,12 @@ import { RootState } from '../../reducer';
|
|
|
3
3
|
import { ZeniDate } from '../../zeniDayJS';
|
|
4
4
|
import { UserRoleType } from '../../entity/userRole/userRoleType';
|
|
5
5
|
import { BillTransactionView } from './billPay/billList/billListSelector';
|
|
6
|
-
import { BillListViewFilterCategoryField,
|
|
6
|
+
import { BillListViewFilterCategoryField, BillPayFilters } from './billPay/billList/billListState';
|
|
7
7
|
import { ReimbursementView } from './reimbursement/remiListView/remiListSelector';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { ReimbursementFilters, RemiListViewFilterCategoryField } from './reimbursement/remiListView/remiListState';
|
|
9
|
+
import { TaskListFilterCategoryField, TaskListFilters } from '../taskManager/taskListView/taskList';
|
|
10
10
|
import { TaskWithUserDetails } from '../taskManager/taskListView/taskListSelector';
|
|
11
11
|
export declare type SpendManagementFiltersType = BillPayFilters | ReimbursementFilters | TaskListFilters;
|
|
12
|
-
export declare type SpendManagementFilterCategory = BillPayFilterCategory | ReimbursementFilterCategory | TaskFilterCategory;
|
|
13
12
|
export declare type SpendManagementFilterEntityType = 'bill_pay' | 'reimbursement' | 'task_management';
|
|
14
13
|
export declare type FilterCategoryType = 'searchAutocomplete' | 'user' | 'dateRange' | 'numberRange' | 'dropdown';
|
|
15
14
|
export interface MatchingOperatorDropdownOption {
|
|
@@ -34,9 +33,6 @@ export interface TaskFilterCategoryDropdownOption {
|
|
|
34
33
|
}
|
|
35
34
|
export declare type SpendManagementFilterCategoryDropdownOption = BillPayFilterCategoryDropdownOption | ReimbursementFilterCategoryDropdownOption | TaskFilterCategoryDropdownOption;
|
|
36
35
|
export declare type FilterCategoryValueType = string | number | ZeniDate;
|
|
37
|
-
export declare const filterItemOnCategoriesWithSingleValue: (categoryValue: FilterCategoryValueType, currentFilter: SpendManagementFilterCategory, rangeTypeFields: string[]) => boolean;
|
|
38
|
-
export declare const filterItemOnCategoriesWithMultipleValues: (categoryValue: string[], currentFilter: SpendManagementFilterCategory) => boolean;
|
|
39
|
-
export declare const removeDuplicatesFromList: (list: (BillTransactionView | ReimbursementView | TaskWithUserDetails)[]) => (BillTransactionView | ReimbursementView | TaskWithUserDetails)[];
|
|
40
36
|
export declare const applyAdvancedFiltersOnList: (entity: SpendManagementFilterEntityType, allItems: BillTransactionView[] | ReimbursementView[] | TaskWithUserDetails[], filters?: BillPayFilters | ReimbursementFilters | TaskListFilters | undefined, filteredItems?: (BillTransactionView | ReimbursementView | TaskWithUserDetails)[], index?: number) => (BillTransactionView | ReimbursementView | TaskWithUserDetails)[];
|
|
41
37
|
export declare const isBillListDownloadable: (state: RootState, currentTimePeriod: TimePeriod) => boolean;
|
|
42
38
|
export declare const isRemiListDownloadable: (state: RootState, currentTimePeriod: TimePeriod) => boolean;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.hideCreatedByFilter = exports.isRemiListDownloadable = exports.isBillListDownloadable = exports.applyAdvancedFiltersOnList =
|
|
6
|
+
exports.hideCreatedByFilter = exports.isRemiListDownloadable = exports.isBillListDownloadable = exports.applyAdvancedFiltersOnList = void 0;
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
8
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
9
9
|
const userSelector_1 = require("../../entity/user/userSelector");
|
|
@@ -53,7 +53,6 @@ const filterItemOnCategoriesWithSingleValue = (categoryValue, currentFilter, ran
|
|
|
53
53
|
}
|
|
54
54
|
return currentFilter.values.indexOf(categoryValue.toString()) > -1;
|
|
55
55
|
};
|
|
56
|
-
exports.filterItemOnCategoriesWithSingleValue = filterItemOnCategoriesWithSingleValue;
|
|
57
56
|
//filters items which have multiple values against a filter category. ex: status - ['scheduled','approved']
|
|
58
57
|
const filterItemOnCategoriesWithMultipleValues = (categoryValue, currentFilter) => {
|
|
59
58
|
// logic for multi valued columns - ex: billStatus
|
|
@@ -74,7 +73,6 @@ const filterItemOnCategoriesWithMultipleValues = (categoryValue, currentFilter)
|
|
|
74
73
|
return true;
|
|
75
74
|
}
|
|
76
75
|
};
|
|
77
|
-
exports.filterItemOnCategoriesWithMultipleValues = filterItemOnCategoriesWithMultipleValues;
|
|
78
76
|
const removeDuplicatesFromList = (list) => {
|
|
79
77
|
const foundIds = [];
|
|
80
78
|
return list.filter((item) => {
|
|
@@ -86,7 +84,6 @@ const removeDuplicatesFromList = (list) => {
|
|
|
86
84
|
return false;
|
|
87
85
|
});
|
|
88
86
|
};
|
|
89
|
-
exports.removeDuplicatesFromList = removeDuplicatesFromList;
|
|
90
87
|
//filters against all filter categories for the respective list (allItems) recursively
|
|
91
88
|
const applyAdvancedFiltersOnList = (entity, allItems, filters, filteredItems = [], index = 0) => {
|
|
92
89
|
// if there are no filters we will return allBills
|
|
@@ -124,10 +121,10 @@ const applyAdvancedFiltersOnList = (entity, allItems, filters, filteredItems = [
|
|
|
124
121
|
else if ((currentFilter.field === 'status' ||
|
|
125
122
|
currentFilter.field === 'assignee') &&
|
|
126
123
|
Array.isArray(categoryValue)) {
|
|
127
|
-
return
|
|
124
|
+
return filterItemOnCategoriesWithMultipleValues(categoryValue, currentFilter);
|
|
128
125
|
}
|
|
129
126
|
else {
|
|
130
|
-
return
|
|
127
|
+
return filterItemOnCategoriesWithSingleValue(categoryValue, currentFilter, [
|
|
131
128
|
'amount',
|
|
132
129
|
'invoiceDate',
|
|
133
130
|
'paymentDate',
|
|
@@ -139,7 +136,7 @@ const applyAdvancedFiltersOnList = (entity, allItems, filters, filteredItems = [
|
|
|
139
136
|
});
|
|
140
137
|
// if categoryCombinationOperator is OR we will union already filtered and the items which match current filter criteria
|
|
141
138
|
if (filters.categoryCombinationOperator === 'OR') {
|
|
142
|
-
filteredItems =
|
|
139
|
+
filteredItems = removeDuplicatesFromList([
|
|
143
140
|
...itemsWithCurrentFilter,
|
|
144
141
|
...filteredItems,
|
|
145
142
|
]);
|
package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailPayload.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { BalancePayload } from '../../../../commonPayloadTypes/balanceChangePayload';
|
|
2
2
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
3
3
|
import { AccountHistoryWithBalance } from './depositAccountDetailState';
|
|
4
|
-
|
|
4
|
+
interface AccountHistoryPayload {
|
|
5
5
|
date: string;
|
|
6
6
|
balances: BalancePayload;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
interface FetchAccountHistoryPayload {
|
|
9
9
|
account_end_of_day_balances: AccountHistoryPayload[];
|
|
10
10
|
}
|
|
11
11
|
export declare type FetchAccountHistoryResponse = ZeniAPIResponse<FetchAccountHistoryPayload>;
|
|
12
12
|
export declare const mapAccountHistoryPayloadToAccountHistory: (payload: AccountHistoryPayload) => AccountHistoryWithBalance;
|
|
13
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DepositAccountTransactionPayload } from '../../../../entity/depositAccountTransaction/depositAccountTransactionPayload';
|
|
2
2
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
3
|
-
|
|
3
|
+
interface DepositAccountTransactionListPayload {
|
|
4
4
|
query: DepositAccountTransactionListQueryparam;
|
|
5
5
|
deposit_account: DepositAccTransactionListPayload;
|
|
6
6
|
}
|
|
7
7
|
export declare type FetchDepositAccountTransactionListResponse = ZeniAPIResponse<DepositAccountTransactionListPayload>;
|
|
8
|
-
|
|
8
|
+
interface DepositAccTransactionListPayload {
|
|
9
9
|
deposit_account_id: string;
|
|
10
10
|
deposit_account_name: string;
|
|
11
11
|
transactions: DepositAccountTransactionPayload[];
|
|
@@ -15,3 +15,4 @@ export interface DepositAccountTransactionListQueryparam {
|
|
|
15
15
|
end_date: string;
|
|
16
16
|
limit?: number;
|
|
17
17
|
}
|
|
18
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../../commonStateTypes/common';
|
|
2
|
-
|
|
2
|
+
interface TransactionsByDepositId extends FetchStateAndError {
|
|
3
3
|
transactions: ID[];
|
|
4
4
|
depositAccountName: string;
|
|
5
5
|
}
|
|
@@ -7,3 +7,4 @@ export interface DepositAccountTransactionListState {
|
|
|
7
7
|
byDepositId: Record<ID, TransactionsByDepositId>;
|
|
8
8
|
}
|
|
9
9
|
export declare const initialTransactionsByDepositId: TransactionsByDepositId;
|
|
10
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AmountPayload } from '../../../../entity/reimbursement/reimbursementPayload';
|
|
2
2
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
3
3
|
import { ReviewTransferMoney } from './transferDetailState';
|
|
4
|
-
|
|
4
|
+
interface TransferMoneyPayload {
|
|
5
5
|
transaction_id: string;
|
|
6
6
|
amount: number;
|
|
7
7
|
currency_code: string;
|
|
8
8
|
currency_symbol: string;
|
|
9
9
|
transaction_creation_time: string;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
interface TransferSchedulePayload {
|
|
12
12
|
amount: number;
|
|
13
13
|
currency_code: string;
|
|
14
14
|
currency_symbol: string;
|
|
@@ -22,3 +22,4 @@ export interface ReviewTransferMoneyPayload {
|
|
|
22
22
|
export declare const mapReviewTransferMoneyPayloadToReviewTransferMoney: (payload: ReviewTransferMoneyPayload) => ReviewTransferMoney;
|
|
23
23
|
export declare type ReviewTransferMoneyResponse = ZeniAPIResponse<ReviewTransferMoneyPayload>;
|
|
24
24
|
export declare type TransferMoneyResponse = ZeniAPIResponse<TransferMoneyPayload>;
|
|
25
|
+
export {};
|
|
@@ -19,6 +19,7 @@ export interface ReviewTransferMoney {
|
|
|
19
19
|
dailyAchDebitLimit: Amount;
|
|
20
20
|
transferSchedules: TransferSchedule[];
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
interface TransferSchedule extends Amount {
|
|
23
23
|
scheduleTime: ZeniDate;
|
|
24
24
|
}
|
|
25
|
+
export {};
|
|
@@ -18,5 +18,6 @@ export interface ZeniAccountSummaryWithBalance {
|
|
|
18
18
|
totalInterest: DepositBalance;
|
|
19
19
|
}
|
|
20
20
|
export declare const ZENI_ACCOUNTS_TAB: readonly ["zeniAccounts", "externalAccounts"];
|
|
21
|
-
|
|
21
|
+
declare const toZeniAccountsTab: (v: string) => "zeniAccounts" | "externalAccounts";
|
|
22
22
|
export declare type ZeniAccountsTab = ReturnType<typeof toZeniAccountsTab>;
|
|
23
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ZENI_ACCOUNTS_TAB = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../../commonStateTypes/stringToUnion");
|
|
5
5
|
exports.ZENI_ACCOUNTS_TAB = ['zeniAccounts', 'externalAccounts'];
|
|
6
6
|
const toZeniAccountsTab = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ZENI_ACCOUNTS_TAB);
|
|
7
|
-
exports.toZeniAccountsTab = toZeniAccountsTab;
|
|
@@ -2,9 +2,10 @@ import { ZeniAPIResponse } from '../../../../../responsePayload';
|
|
|
2
2
|
import { CompanyPayload } from '../../../../../entity/company/companyPayload';
|
|
3
3
|
import { UserPayload } from '../../../../../entity/user/userPayload';
|
|
4
4
|
import { UserRolePayload } from '../../../../../entity/userRole/userRolePayload';
|
|
5
|
-
|
|
5
|
+
interface AcceptZeniAccountTermsPayload {
|
|
6
6
|
companies: CompanyPayload[];
|
|
7
7
|
users: UserPayload[];
|
|
8
8
|
user_roles: UserRolePayload[];
|
|
9
9
|
}
|
|
10
10
|
export declare type AcceptZeniAccountTermsResponse = ZeniAPIResponse<AcceptZeniAccountTermsPayload>;
|
|
11
|
+
export {};
|