@zeniai/client-epic-state 4.11.98 → 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/animations.d.ts +2 -0
- package/lib/commonStateTypes/animations.js +32 -0
- 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 -32
- package/lib/entity/company/companyPayload.js +9 -19
- package/lib/entity/company/companyStateTypes.d.ts +6 -9
- 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 +58 -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/billPayCard/fetchBillPayCardEpic.js +1 -1
- 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/fetchReimbursementCardEpic.js +1 -1
- 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/billDetailView/epics/approveOrRejectBillEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +1 -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/billList/fetchBillListPerTabEpic.js +1 -1
- 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/billPayConfig/fetchBillPayConfigEpic.js +1 -1
- 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/billsBulkActionView/epics/approveOrRejectBillsBulkActionEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/cancelOrDeleteBillsBulkActionEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/reviewDraftBillsBulkActionEpic.ts.js +1 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.js +1 -1
- 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/convertAmountToHomeCurrencyEpic.js +1 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +0 -8
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +4 -5
- 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/epics/fetchMagicLinkBillEpic.js +1 -1
- package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewPayload.d.ts +7 -6
- package/lib/view/spendManagement/billPay/previousBills/fetchPreviousBillsEpic.js +1 -1
- 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/commonHistoryView/fetchEntityHistoryEpic.js +1 -1
- 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/epic/paymentAccounts/updateMappedCashAccountEpic.js +1 -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/fetchCurrencyConversionValueEpic.js +1 -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/editRemiView/epics/saveRemiDetailEpic.js +2 -2
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/fetchReimbursementConfigEpic.js +1 -1
- 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/epics/approveOrRejectRemiEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/cancelAndDeleteRemiEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/deleteRemiEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchDuplicateReimbursementEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewPayload.d.ts +4 -3
- package/lib/view/spendManagement/reimbursement/remiListView/fetchRemiListPerTabEpic.js +1 -1
- 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/checkDeposit/checkDepositEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailPayload.d.ts +3 -2
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountHistoryEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/updateDepositAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.js +1 -1
- 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/depositAccountTransactionList/fetchDepositAccountTransactionListEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/transferDetail/fetchReviewTransferDetailEpic.js +1 -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/transferDetail/transferMoneyEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/createCheckingAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.d.ts +1 -4
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +1 -5
- 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/fetchZeniAccountsConfigEpic.js +1 -1
- 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/fetchZeniAccStatementListEpic.js +2 -2
- package/lib/view/zeniAccStatementList/zeniAccStatementListPayload.d.ts +2 -1
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.js +1 -1
- package/lib/zeniAPI.d.ts +2 -0
- package/package.json +5 -3
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toSetupViewTypeStrict = exports.toSetupViewType = exports.SETUP_VIEW_TYPES = void 0;
|
|
4
3
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
4
|
const entityApprovalStatusState_1 = require("../../../entity/entityApprovalStatus/entityApprovalStatusState");
|
|
6
|
-
|
|
7
|
-
const toSetupViewType = (v) => (0, stringToUnion_1.stringToUnion)(v, [...entityApprovalStatusState_1.ALL_ENTITY_TYPES, ...
|
|
8
|
-
exports.toSetupViewType = toSetupViewType;
|
|
9
|
-
const toSetupViewTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', entityApprovalStatusState_1.ALL_ENTITY_TYPES);
|
|
10
|
-
exports.toSetupViewTypeStrict = toSetupViewTypeStrict;
|
|
5
|
+
const SETUP_VIEW_TYPES = ['billing'];
|
|
6
|
+
const toSetupViewType = (v) => (0, stringToUnion_1.stringToUnion)(v, [...entityApprovalStatusState_1.ALL_ENTITY_TYPES, ...SETUP_VIEW_TYPES]);
|
|
@@ -3,7 +3,7 @@ import { BillActivity } from './billPay/billDetailView/billDetailViewSelector';
|
|
|
3
3
|
import { RemiActivity } from './reimbursement/remiDetailView/remiDetailViewSelector';
|
|
4
4
|
import { BusinessVerificationDetails, CompanyOfficersDetails } from './commonSetup/setupViewSelector';
|
|
5
5
|
import { RecurringBillConfigLocalData, RecurringBillInstance } from './billPay/editBillView/editBillViewState';
|
|
6
|
-
import { RecurringBillConfig
|
|
6
|
+
import { RecurringBillConfig } from '../../entity/billPay/recurringBills/recurringBillsState';
|
|
7
7
|
import { AccType } from './billPay/billPayConfig/billPayConfigState';
|
|
8
8
|
import { CurrentTenant } from '../../entity/tenant/tenantSelector';
|
|
9
9
|
import { RoleMap } from '../../entity/userRole/userRoleType';
|
|
@@ -18,8 +18,6 @@ export declare const updateRecurringBillDetails: (currentRecurringConfig: Recurr
|
|
|
18
18
|
recurringInstances: RecurringBillInstance[] | undefined;
|
|
19
19
|
};
|
|
20
20
|
export declare const isRecurringConfigChanged: (recurringBillNewConfig: RecurringBillConfigLocalData, originalRecurringBillConfig: Partial<RecurringBillConfig>, checkApprovalChange: boolean) => boolean;
|
|
21
|
-
export declare const getTotalPayments: (startDate: ZeniDate, endDate: ZeniDate, frequency: RecurringBillFrequency, currentInstance?: RecurringBillInstance | undefined) => number;
|
|
22
|
-
export declare const getEndDate: (startDate: ZeniDate, frequency: RecurringBillFrequency, totalPayments: number, currentInstance?: RecurringBillInstance | undefined) => ZeniDate;
|
|
23
21
|
export declare const accountTypeSubConfigCodeToAccType: (code?: "depositAccount" | "paymentAccount" | undefined) => AccType | undefined;
|
|
24
22
|
export declare function showReimbursementPromoPage(currentTenant: CurrentTenant, userRoleMap: RoleMap): boolean;
|
|
25
23
|
export declare function showBillPayPromoPage(currentTenant: CurrentTenant, userRoleMap: RoleMap): 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.getBillListUniqueType = exports.isBillProcessing = exports.isVerifiedStatusCode = exports.getActualPaymentDate = exports.showBillPayPromoPage = exports.showReimbursementPromoPage = exports.accountTypeSubConfigCodeToAccType = exports.
|
|
6
|
+
exports.getBillListUniqueType = exports.isBillProcessing = exports.isVerifiedStatusCode = exports.getActualPaymentDate = exports.showBillPayPromoPage = exports.showReimbursementPromoPage = exports.accountTypeSubConfigCodeToAccType = exports.isRecurringConfigChanged = exports.updateRecurringBillDetails = exports.getPaymentDateFromVendorReceiveDate = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getLatestApprovalDate = void 0;
|
|
7
7
|
const uniq_1 = __importDefault(require("lodash/uniq"));
|
|
8
8
|
const timeframeTick_1 = require("../../commonStateTypes/timeframeTick");
|
|
9
9
|
const workingDayHelper_1 = require("../../commonStateTypes/workingDayHelper");
|
|
@@ -83,11 +83,11 @@ const updateRecurringBillDetails = (currentRecurringConfig, prevRecurringConfig,
|
|
|
83
83
|
totalPaymentCycles !== 0) ||
|
|
84
84
|
totalPaymentCycles === 0 ||
|
|
85
85
|
endDateSelectorOptionType === 'date')) {
|
|
86
|
-
currentTotalPayments =
|
|
86
|
+
currentTotalPayments = getTotalPayments(startDate, endDate, frequency, currentInstance);
|
|
87
87
|
}
|
|
88
88
|
else if (endDate == null ||
|
|
89
89
|
endDateSelectorOptionType === 'recurringCount') {
|
|
90
|
-
currentEndDate =
|
|
90
|
+
currentEndDate = getEndDate(startDate, frequency, totalPaymentCycles, currentInstance);
|
|
91
91
|
}
|
|
92
92
|
//editRecurringBill
|
|
93
93
|
if (currentRecurringConfig.isActive &&
|
|
@@ -146,7 +146,6 @@ const getTotalPayments = (startDate, endDate, frequency, currentInstance) => {
|
|
|
146
146
|
}
|
|
147
147
|
return Math.floor(totalPayments + pastPayments) + 1; //+1 to include startDate
|
|
148
148
|
};
|
|
149
|
-
exports.getTotalPayments = getTotalPayments;
|
|
150
149
|
const getEndDate = (startDate, frequency, totalPayments, currentInstance) => {
|
|
151
150
|
let currentStartDate = startDate;
|
|
152
151
|
let endDate = currentStartDate;
|
|
@@ -169,7 +168,6 @@ const getEndDate = (startDate, frequency, totalPayments, currentInstance) => {
|
|
|
169
168
|
}
|
|
170
169
|
return endDate;
|
|
171
170
|
};
|
|
172
|
-
exports.getEndDate = getEndDate;
|
|
173
171
|
function getRecurringBillInstances(startDate, frequency, totalPayments, currentInstance, billAmount) {
|
|
174
172
|
const updatedInstances = [];
|
|
175
173
|
const getRecurringFrequencyWithOffset = (frequency) => {
|
|
@@ -2,9 +2,10 @@ import { AccountBasePayload } from '../../../entity/account/accountPayload';
|
|
|
2
2
|
import { ClassBasePayload } from '../../../entity/class/classPayload';
|
|
3
3
|
import { MerchantPayload } from '../../../entity/merchant/merchantPayload';
|
|
4
4
|
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
5
|
-
|
|
5
|
+
interface MerchantsPayload {
|
|
6
6
|
merchants: MerchantPayload[];
|
|
7
7
|
accounting_classes: ClassBasePayload[];
|
|
8
8
|
accounts: AccountBasePayload[];
|
|
9
9
|
}
|
|
10
10
|
export declare type MerchantListResponse = ZeniAPIResponse<MerchantsPayload>;
|
|
11
|
+
export {};
|
package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updateMappedCashAccountEpic.js
CHANGED
|
@@ -9,7 +9,7 @@ const depositAccountReducer_1 = require("../../../../../entity/depositAccount/de
|
|
|
9
9
|
const updateMappedCashAccountEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(plaidAccountViewReducer_1.updateMappedCashAccount.match), (0, operators_1.mergeMap)((action) => {
|
|
10
10
|
const { plaidAccountKeyType, accountId, depositAccountId } = action.payload;
|
|
11
11
|
return zeniAPI
|
|
12
|
-
.putAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
12
|
+
.putAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${depositAccountId}`, {
|
|
13
13
|
zeni_mapped_account_id: accountId,
|
|
14
14
|
})
|
|
15
15
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
@@ -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 {};
|
|
@@ -25,7 +25,7 @@ const fetchCurrencyConversionValueEpic = (actions$, state$, zeniAPI) => actions$
|
|
|
25
25
|
home_currency_code: conversionCurrencyCode,
|
|
26
26
|
};
|
|
27
27
|
return zeniAPI
|
|
28
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
28
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/reimbursements/currencies/conversion`, payload)
|
|
29
29
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
30
30
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
31
31
|
const updateActions = [];
|
|
@@ -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;
|
|
@@ -29,8 +29,8 @@ const saveRemiDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, oper
|
|
|
29
29
|
: state.editRemiDetailViewState.newRemiState;
|
|
30
30
|
const payload = prepareSaveRemiPayload(state.reimbursementState, state.tenantState, remiDetail, remiStageCode, isSubmitted);
|
|
31
31
|
const saveVendorApi = reimbursementId != null
|
|
32
|
-
? zeniAPI.putAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
33
|
-
: zeniAPI.postAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
32
|
+
? zeniAPI.putAndGetJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/reimbursements/transactions/${action.payload.reimbursementId}`, payload)
|
|
33
|
+
: zeniAPI.postAndGetJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/reimbursements/transactions`, payload);
|
|
34
34
|
return saveVendorApi.pipe((0, operators_1.mergeMap)((response) => {
|
|
35
35
|
var _a, _b, _c;
|
|
36
36
|
if ((0, responsePayload_1.isSuccessResponse)(response) &&
|
package/lib/view/spendManagement/reimbursement/reimbursementConfig/fetchReimbursementConfigEpic.js
CHANGED
|
@@ -8,7 +8,7 @@ const responsePayload_1 = require("../../../../responsePayload");
|
|
|
8
8
|
const currencyReducer_1 = require("../../../../entity/currency/currencyReducer");
|
|
9
9
|
const fetchReimbursementConfigEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(reimbursementConfigReducer_1.fetchReimbursementConfig.match), (0, operators_1.mergeMap)(() => {
|
|
10
10
|
return zeniAPI
|
|
11
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
11
|
+
.getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/reimbursements/config`)
|
|
12
12
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
13
13
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
14
14
|
const updateActions = [];
|
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;
|
package/lib/view/spendManagement/reimbursement/remiDetailView/epics/approveOrRejectRemiEpic.js
CHANGED
|
@@ -16,7 +16,7 @@ const approveOrRejectRemiEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0
|
|
|
16
16
|
description,
|
|
17
17
|
};
|
|
18
18
|
return zeniAPI
|
|
19
|
-
.putAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
19
|
+
.putAndGetJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/reimbursements/transactions/${reimbursementId}/approval-status`, payload)
|
|
20
20
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
21
21
|
var _a, _b;
|
|
22
22
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
package/lib/view/spendManagement/reimbursement/remiDetailView/epics/cancelAndDeleteRemiEpic.js
CHANGED
|
@@ -16,7 +16,7 @@ const cancelAndDeleteRemiEpic = (actions$, state$, zeniAPI) => actions$.pipe((0,
|
|
|
16
16
|
const { reimbursementState } = state$.value;
|
|
17
17
|
const transaction = reimbursementState.reimbursementById[action.payload.reimbursementId];
|
|
18
18
|
return zeniAPI
|
|
19
|
-
.putAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
19
|
+
.putAndGetJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/reimbursements/transactions/${action.payload.reimbursementId}/cancel-payment`, query)
|
|
20
20
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
21
21
|
var _a, _b;
|
|
22
22
|
if (action.payload.isDeleteRemi === true &&
|
|
@@ -16,7 +16,7 @@ const deleteRemiEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operator
|
|
|
16
16
|
const { reimbursementState } = state$.value;
|
|
17
17
|
const transaction = reimbursementState.reimbursementById[action.payload.reimbursementId];
|
|
18
18
|
return zeniAPI
|
|
19
|
-
.deleteAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
19
|
+
.deleteAndGetJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/reimbursements/transactions/${action.payload.reimbursementId}?query=${encodeURIComponent(JSON.stringify(query))}`)
|
|
20
20
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
21
21
|
if ((0, responsePayload_1.isSuccessStatus)(response)) {
|
|
22
22
|
const actions = [
|
|
@@ -49,7 +49,7 @@ const fetchDuplicateReimbursementEpic = (actions$, state$, zeniAPI) => actions$.
|
|
|
49
49
|
lines: lines.map(reimbursementPayload_1.toReimbursementLinePayload),
|
|
50
50
|
};
|
|
51
51
|
return zeniAPI
|
|
52
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
52
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/reimbursements/transactions/duplicates`, payload)
|
|
53
53
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
54
54
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
55
55
|
const updateActions = [];
|
|
@@ -44,7 +44,7 @@ const fetchRemiDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, ope
|
|
|
44
44
|
is_include_deleted: isShowDeletedReimbursementEnabled,
|
|
45
45
|
};
|
|
46
46
|
const getTransactionDetail$ = zeniAPI
|
|
47
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
47
|
+
.getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/reimbursements/transactions/${reimbursementId}?query=${encodeURIComponent(JSON.stringify(query))}`)
|
|
48
48
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
49
49
|
var _a, _b, _c, _d;
|
|
50
50
|
if ((0, responsePayload_1.isSuccessResponse)(response) &&
|
|
@@ -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 {};
|
|
@@ -28,7 +28,7 @@ const fetchRemiListPerTabEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0
|
|
|
28
28
|
is_include_line_items: isIncludeLineItems ? tab !== 'draft' : false,
|
|
29
29
|
};
|
|
30
30
|
return zeniAPI
|
|
31
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
31
|
+
.getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/reimbursements/transactions?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
|
|
32
32
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
33
33
|
var _a;
|
|
34
34
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
@@ -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 {};
|