@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,16 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDefaultSelectedTimeframeForScheduleType = exports.getAccountsTypesForScheduleEpics = exports.getAccountLabelForScheduleType = exports.getAccountsTypesForScheduleList = exports.getDurationOfMonthOutTotalMonth = exports.calculateCOABalanceGroupedByPeriod = exports.
|
|
3
|
+
exports.getDefaultSelectedTimeframeForScheduleType = exports.getAccountsTypesForScheduleEpics = exports.getAccountLabelForScheduleType = exports.getAccountsTypesForScheduleList = exports.getDurationOfMonthOutTotalMonth = exports.calculateCOABalanceGroupedByPeriod = exports.calculateTotalBalanceTimeframeTick = exports.getAllTimeframeTicks = exports.getAllAccountNested = exports.getAllAccountBase = exports.getAccountListKeyForSchedules = exports.getCalculatedScheduleTotals = void 0;
|
|
4
4
|
const amount_1 = require("../../../commonStateTypes/amount");
|
|
5
5
|
const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
6
6
|
const getFYMonths_1 = require("../../../commonStateTypes/fiscalYearHelpers/getFYMonths");
|
|
7
7
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
8
|
-
exports.scheduleTypesAccountLabels = {
|
|
9
|
-
prepaid_expenses: 'other_current_assets',
|
|
10
|
-
fixed_assets: 'fixed_assets',
|
|
11
|
-
accrued_expenses: 'other_expense',
|
|
12
|
-
deferred_revenue: 'other_income',
|
|
13
|
-
};
|
|
14
8
|
/**
|
|
15
9
|
* This helper function calculates Total Amount and Total Running balances
|
|
16
10
|
* for all the JE transactions which can be used to display the totals on the Schedule List page.
|
|
@@ -41,17 +35,6 @@ const getAccountListKeyForSchedules = () => {
|
|
|
41
35
|
return 'schedulesAccountList';
|
|
42
36
|
};
|
|
43
37
|
exports.getAccountListKeyForSchedules = getAccountListKeyForSchedules;
|
|
44
|
-
const getAccountLabelForSchedulesTab = (tab) => {
|
|
45
|
-
switch (tab) {
|
|
46
|
-
case 'prepaid_expenses':
|
|
47
|
-
case 'fixed_assets':
|
|
48
|
-
return tab;
|
|
49
|
-
case 'accrued_expenses':
|
|
50
|
-
case 'deferred_revenue':
|
|
51
|
-
return 'uncategorized_expense';
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
exports.getAccountLabelForSchedulesTab = getAccountLabelForSchedulesTab;
|
|
55
38
|
const getAllAccountBase = () => ({
|
|
56
39
|
accountDescription: 'All',
|
|
57
40
|
accountId: 'all',
|
|
@@ -114,7 +97,6 @@ const mapTotalBalanceTimeframeTickToCOAGroupedBalance = (totalBalanceTimeframeTi
|
|
|
114
97
|
});
|
|
115
98
|
return coaBalanceTotalByTimeframe;
|
|
116
99
|
};
|
|
117
|
-
exports.mapTotalBalanceTimeframeTickToCOAGroupedBalance = mapTotalBalanceTimeframeTickToCOAGroupedBalance;
|
|
118
100
|
/**
|
|
119
101
|
* This function setting default values in the totalBalanceTimeframeTicks using allTimeframeTicks
|
|
120
102
|
* e.g {'Feb 2023' : [], 'Mar 2023' : [], 'Apr 2023' : [], 'Jun 2023' : [], 'Jun 2023' : [], 'Jul 2023' : []}
|
|
@@ -130,7 +112,6 @@ const setDefaultTotalBalanceTimeframeTicks = (allTimeframeTicks) => {
|
|
|
130
112
|
});
|
|
131
113
|
return totalBalanceTimeframeTicks;
|
|
132
114
|
};
|
|
133
|
-
exports.setDefaultTotalBalanceTimeframeTicks = setDefaultTotalBalanceTimeframeTicks;
|
|
134
115
|
/**
|
|
135
116
|
* This function returns an COABalanceGroupedByPeriod (months, weeks, years, quarters) with an array of COABalances
|
|
136
117
|
* in which we loop over the totalBalanceTimeframeTicks which is a record of <Labels(mm yy), Balances>- {'Feb 2023' : [20, 30, 40]}
|
|
@@ -141,7 +122,7 @@ exports.setDefaultTotalBalanceTimeframeTicks = setDefaultTotalBalanceTimeframeTi
|
|
|
141
122
|
* @returns
|
|
142
123
|
*/
|
|
143
124
|
const calculateTotalBalanceTimeframeTick = (allTimeframeTickBalances, allTimeframeTicks, timeframe) => {
|
|
144
|
-
const totalBalanceTimeframeTicks =
|
|
125
|
+
const totalBalanceTimeframeTicks = setDefaultTotalBalanceTimeframeTicks(allTimeframeTicks);
|
|
145
126
|
allTimeframeTickBalances.forEach((jeScheduleKey) => {
|
|
146
127
|
const coaBalanceByPeriodByTimeframe = jeScheduleKey.coaBalanceByPeriod[timeframe];
|
|
147
128
|
if (coaBalanceByPeriodByTimeframe != null) {
|
|
@@ -153,7 +134,7 @@ const calculateTotalBalanceTimeframeTick = (allTimeframeTickBalances, allTimefra
|
|
|
153
134
|
});
|
|
154
135
|
}
|
|
155
136
|
});
|
|
156
|
-
const coaBalanceGrouped =
|
|
137
|
+
const coaBalanceGrouped = mapTotalBalanceTimeframeTickToCOAGroupedBalance(totalBalanceTimeframeTicks);
|
|
157
138
|
return {
|
|
158
139
|
months: coaBalanceGrouped,
|
|
159
140
|
};
|
|
@@ -181,7 +162,6 @@ const mapScheduleJournalToCOABalance = (scheduleJournal, currencyCode, currencyS
|
|
|
181
162
|
label,
|
|
182
163
|
};
|
|
183
164
|
};
|
|
184
|
-
exports.mapScheduleJournalToCOABalance = mapScheduleJournalToCOABalance;
|
|
185
165
|
/**
|
|
186
166
|
* This function helps us in finding COABalanceGroupedByPeriod for months
|
|
187
167
|
* @param jeSchedule
|
|
@@ -191,7 +171,7 @@ const calculateCOABalanceGroupedByPeriod = (jeSchedule) => {
|
|
|
191
171
|
const scheduleJournalEntry = jeSchedule.scheduledJournalEntry;
|
|
192
172
|
const { currencyCode, currencySymbol } = jeSchedule;
|
|
193
173
|
return {
|
|
194
|
-
months: scheduleJournalEntry.map((scheduleJournal) =>
|
|
174
|
+
months: scheduleJournalEntry.map((scheduleJournal) => mapScheduleJournalToCOABalance(scheduleJournal, currencyCode, currencySymbol, 'month')),
|
|
195
175
|
};
|
|
196
176
|
};
|
|
197
177
|
exports.calculateCOABalanceGroupedByPeriod = calculateCOABalanceGroupedByPeriod;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JEScheduledTransactionPayload, ScheduledJournalEntryPayload } from '../../../entity/jeSchedules/jeSchedulesPayload';
|
|
2
2
|
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
3
|
-
|
|
3
|
+
interface ScheduleListPayload {
|
|
4
4
|
je_schedules: JEScheduledTransactionPayload[];
|
|
5
5
|
scheduled_journal_entries?: ScheduledJournalEntryPayload[];
|
|
6
6
|
}
|
|
7
7
|
export declare type FetchScheduleListResponse = ZeniAPIResponse<ScheduleListPayload>;
|
|
8
|
+
export {};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { TimeframeTick } from '../../../commonStateTypes/timeframeTick';
|
|
3
3
|
import { ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
|
|
4
|
-
export declare const ALL_SCHEDULE_LIST_TABS_FILE_TYPES: readonly ["excel"];
|
|
5
4
|
export declare const toScheduleListTabsFileTypeStrict: (v?: string | undefined) => "excel" | undefined;
|
|
6
5
|
export declare type ScheduleListTabsFileType = NonNullable<ReturnType<typeof toScheduleListTabsFileTypeStrict>>;
|
|
7
6
|
export declare const getScheduleListKey: (selectedCategory: ID, selectedTimeframe: TimeframeTick) => `${string}-${string}--${string}`;
|
|
8
7
|
export declare type ScheduleListKey = ReturnType<typeof getScheduleListKey>;
|
|
9
|
-
export declare const ALL_SCHEDULES_SUB_TABS: readonly ["all", "new", "ongoing", "completed"];
|
|
10
8
|
export declare const toScheduleSubTabType: (v: string) => "all" | "new" | "completed" | "ongoing";
|
|
11
9
|
export declare type ScheduleSubTabType = ReturnType<typeof toScheduleSubTabType>;
|
|
12
|
-
|
|
13
|
-
export declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "amount" | "vendor" | "class" | "memo" | "transactionDate" | "transactionType" | "balanceAsOfToday" | "scheduleCategory" | "expenseCategory" | "accumulatedDepreciationCategory" | "startMonth" | "endMonth" | "assetId";
|
|
10
|
+
declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "amount" | "vendor" | "class" | "memo" | "transactionDate" | "transactionType" | "balanceAsOfToday" | "scheduleCategory" | "expenseCategory" | "accumulatedDepreciationCategory" | "startMonth" | "endMonth" | "assetId";
|
|
14
11
|
export declare type ScheduleListSortKey = ReturnType<typeof toScheduleSortKeyType>;
|
|
15
12
|
export interface DownloadJEScheduleTabOptions {
|
|
16
13
|
timezone: string;
|
|
@@ -20,3 +17,4 @@ export interface DownloadJEScheduleTabOptions {
|
|
|
20
17
|
timeframe: TimeframeTick;
|
|
21
18
|
searchText?: string;
|
|
22
19
|
}
|
|
20
|
+
export {};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toScheduleSubTabType = exports.getScheduleListKey = exports.toScheduleListTabsFileTypeStrict = void 0;
|
|
4
4
|
const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
5
5
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
6
|
-
|
|
6
|
+
const ALL_SCHEDULE_LIST_TABS_FILE_TYPES = ['excel'];
|
|
7
7
|
const toScheduleListTabsFileTypeStrict = (v) => {
|
|
8
8
|
var _a;
|
|
9
|
-
return (0, stringToUnion_1.stringToUnionStrict)((_a = v === null || v === void 0 ? void 0 : v.toLocaleLowerCase()) !== null && _a !== void 0 ? _a : '',
|
|
9
|
+
return (0, stringToUnion_1.stringToUnionStrict)((_a = v === null || v === void 0 ? void 0 : v.toLocaleLowerCase()) !== null && _a !== void 0 ? _a : '', ALL_SCHEDULE_LIST_TABS_FILE_TYPES);
|
|
10
10
|
};
|
|
11
11
|
exports.toScheduleListTabsFileTypeStrict = toScheduleListTabsFileTypeStrict;
|
|
12
12
|
const getScheduleListKey = (selectedCategory, selectedTimeframe) => `${selectedCategory}-${selectedTimeframe.startDate.format(formatZeniDateFY_1.DAY_MONTH_YEAR_FORMAT)}--${selectedTimeframe.endDate.format(formatZeniDateFY_1.DAY_MONTH_YEAR_FORMAT)}`;
|
|
13
13
|
exports.getScheduleListKey = getScheduleListKey;
|
|
14
|
-
|
|
14
|
+
const ALL_SCHEDULES_SUB_TABS = [
|
|
15
15
|
'all',
|
|
16
16
|
'new',
|
|
17
17
|
'ongoing',
|
|
18
18
|
'completed',
|
|
19
19
|
];
|
|
20
|
-
const toScheduleSubTabType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
20
|
+
const toScheduleSubTabType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SCHEDULES_SUB_TABS);
|
|
21
21
|
exports.toScheduleSubTabType = toScheduleSubTabType;
|
|
22
|
-
|
|
22
|
+
const ALL_SCHEDULES_PAY_SORT_KEYS = [
|
|
23
23
|
'transactionDate',
|
|
24
24
|
'vendor',
|
|
25
25
|
'scheduleCategory',
|
|
@@ -37,5 +37,4 @@ exports.ALL_SCHEDULES_PAY_SORT_KEYS = [
|
|
|
37
37
|
'assetId',
|
|
38
38
|
'user',
|
|
39
39
|
];
|
|
40
|
-
const toScheduleSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
41
|
-
exports.toScheduleSortKeyType = toScheduleSortKeyType;
|
|
40
|
+
const toScheduleSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SCHEDULES_PAY_SORT_KEYS);
|
|
@@ -7,7 +7,6 @@ import { updateUserRoles } from '../../../entity/userRole/userRoleReducer';
|
|
|
7
7
|
import { updateAllUsers } from '../../../entity/user/userReducer';
|
|
8
8
|
import { updateUserIds } from '../../userListView/userListViewReducer';
|
|
9
9
|
import { UserRolePayload } from '../../../entity/userRole/userRolePayload';
|
|
10
|
-
import { ID } from '../../../commonStateTypes/common';
|
|
11
10
|
export declare type ActionType = ReturnType<typeof fetchMyProfile> | ReturnType<typeof updateUserRoles> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateMyProfileOnSuccess> | ReturnType<typeof updateUserIds> | ReturnType<typeof updateMyProfileOnFailure>;
|
|
12
11
|
export declare const fetchMyProfileEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
13
12
|
payload: undefined;
|
|
@@ -36,8 +35,3 @@ export declare const fetchMyProfileEpic: (actions$: ActionsObservable<ActionType
|
|
|
36
35
|
};
|
|
37
36
|
type: string;
|
|
38
37
|
}>;
|
|
39
|
-
/**
|
|
40
|
-
* Helpers
|
|
41
|
-
*/
|
|
42
|
-
export declare function getUserPayloadByUserId(userId: ID | undefined, usersPayload: UserPayload[]): UserPayload[] | undefined;
|
|
43
|
-
export declare function getManagerUserIdFromUserRolesPayloadByUserId(userId: ID | undefined, userRolesPayload: UserRolePayload[]): ID | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.fetchMyProfileEpic = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const settingsViewReducer_1 = require("../settingsViewReducer");
|
|
@@ -41,10 +41,8 @@ function getUserPayloadByUserId(userId, usersPayload) {
|
|
|
41
41
|
const user = usersPayload.find((user) => user.user_id === userId);
|
|
42
42
|
return user ? [user] : undefined;
|
|
43
43
|
}
|
|
44
|
-
exports.getUserPayloadByUserId = getUserPayloadByUserId;
|
|
45
44
|
function getManagerUserIdFromUserRolesPayloadByUserId(userId, userRolesPayload) {
|
|
46
45
|
const userRoles = userRolesPayload.find((user) => user.user_id === userId);
|
|
47
46
|
const manager_user_id = userRoles === null || userRoles === void 0 ? void 0 : userRoles.manager_user_id;
|
|
48
47
|
return manager_user_id !== null && manager_user_id !== void 0 ? manager_user_id : undefined;
|
|
49
48
|
}
|
|
50
|
-
exports.getManagerUserIdFromUserRolesPayloadByUserId = getManagerUserIdFromUserRolesPayloadByUserId;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UserPayload } from '../../entity/user/userPayload';
|
|
2
2
|
import { UserRolePayload } from '../../entity/userRole/userRolePayload';
|
|
3
3
|
import { ZeniAPIResponse } from '../../responsePayload';
|
|
4
|
-
|
|
4
|
+
interface MyProfilePeoplePayload {
|
|
5
5
|
user_roles: UserRolePayload[];
|
|
6
6
|
users: UserPayload[];
|
|
7
7
|
}
|
|
@@ -23,7 +23,8 @@ export interface NotificationSettingsPayload {
|
|
|
23
23
|
month_end_email_recipient_email_ids?: string[];
|
|
24
24
|
}
|
|
25
25
|
export declare type NotificationSettingsResponse = ZeniAPIResponse<NotificationSettingsPayload>;
|
|
26
|
-
|
|
26
|
+
interface RefreshQBOPayload {
|
|
27
27
|
message: string;
|
|
28
28
|
}
|
|
29
29
|
export declare type RefreshQBOResponse = ZeniAPIResponse<RefreshQBOPayload>;
|
|
30
|
+
export {};
|
|
@@ -10,7 +10,7 @@ import { VendorPayload } from '../../../../entity/vendor/vendorPayload';
|
|
|
10
10
|
import { PaymentInstrumentPayload } from '../../../../entity/paymentInstrument/paymentInstrumentPayload';
|
|
11
11
|
import { RecurringBillConfigResponsePayload, RecurringBillDataPayload } from '../../../../entity/billPay/recurringBills/recurringBillsPayload';
|
|
12
12
|
import { DepositAccountPayload } from '../../../../entity/depositAccount/depositAccountPayload';
|
|
13
|
-
|
|
13
|
+
interface ApproveOrRejectBillPayload {
|
|
14
14
|
approval_rules: ApprovalRulePayload[];
|
|
15
15
|
users: UserPayload[];
|
|
16
16
|
entity_approvals: EntityApprovalStatusPayload[];
|
|
@@ -56,3 +56,4 @@ export interface PreviousBillsQuery {
|
|
|
56
56
|
is_include_payment_accounts_info: boolean;
|
|
57
57
|
}
|
|
58
58
|
export declare type PreviousBillsResponse = ZeniAPIResponse<PreviousBillsPayload>;
|
|
59
|
+
export {};
|
|
@@ -16,7 +16,7 @@ const approveOrRejectBillEpic = (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/bills/transactions/${billId}/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) {
|
|
@@ -20,7 +20,7 @@ const cancelAndDeleteBillEpic = (actions$, state$, zeniAPI) => actions$.pipe((0,
|
|
|
20
20
|
const transaction = billTransactionState.transactionById[action.payload.billId];
|
|
21
21
|
const isRecurring = (_a = transaction === null || transaction === void 0 ? void 0 : transaction.isRecurring) !== null && _a !== void 0 ? _a : false;
|
|
22
22
|
const recurringConfigId = transaction === null || transaction === void 0 ? void 0 : transaction.recurringBillConfigId;
|
|
23
|
-
let cancelApiUrl = `${zeniAPI.apiEndPoints.
|
|
23
|
+
let cancelApiUrl = `${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bills/transactions/${action.payload.billId}`;
|
|
24
24
|
if (isRecurring === true) {
|
|
25
25
|
cancelApiUrl = `${cancelApiUrl}/recurring/cancel-payment`;
|
|
26
26
|
}
|
|
@@ -20,7 +20,7 @@ const deleteBillEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operator
|
|
|
20
20
|
const transaction = billTransactionState.transactionById[action.payload.billId];
|
|
21
21
|
const isRecurring = (_a = transaction === null || transaction === void 0 ? void 0 : transaction.isRecurring) !== null && _a !== void 0 ? _a : false;
|
|
22
22
|
const recurringConfigId = transaction === null || transaction === void 0 ? void 0 : transaction.recurringBillConfigId;
|
|
23
|
-
let deleteApiUrl = `${zeniAPI.apiEndPoints.
|
|
23
|
+
let deleteApiUrl = `${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bills/transactions/${action.payload.billId}`;
|
|
24
24
|
if (isRecurring === true) {
|
|
25
25
|
deleteApiUrl = `${deleteApiUrl}/recurring`;
|
|
26
26
|
}
|
|
@@ -53,7 +53,7 @@ const fetchBillDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, ope
|
|
|
53
53
|
is_include_deleted: isShowDeletedBillsEnabled,
|
|
54
54
|
};
|
|
55
55
|
const getTransactionDetail$ = zeniAPI
|
|
56
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
56
|
+
.getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bills/transactions/${billId}?query=${encodeURIComponent(JSON.stringify(query))}`)
|
|
57
57
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
58
58
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
59
59
|
if ((0, responsePayload_1.isSuccessResponse)(response) &&
|
|
@@ -11,12 +11,12 @@ import { SortOrder } from '../../../../commonStateTypes/selectorTypes/sortOrderT
|
|
|
11
11
|
import { Approvers } from '../../../../entity/approvalRule/approvalRuleState';
|
|
12
12
|
import { RecurringBillConfig } from '../../../../entity/billPay/recurringBills/recurringBillsState';
|
|
13
13
|
import { BulkOperationType, BulkSelectExceptionInfoType } from '../billsBulkActionView/billsBulkActionViewState';
|
|
14
|
-
|
|
14
|
+
interface BillBulkSelectInfo {
|
|
15
15
|
isSelectableForBulkAction: boolean;
|
|
16
16
|
isSelectableForBulkActionSelectAll: boolean;
|
|
17
17
|
bulkSelectExceptionInfo?: BulkSelectExceptionInfoType;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
interface BillListBulkActionInfo {
|
|
20
20
|
isBulkActionAllowed: boolean;
|
|
21
21
|
allowedBulkActions: BulkOperationType[];
|
|
22
22
|
bulkSubmissionFetchState: FetchState;
|
|
@@ -49,5 +49,4 @@ export interface BillListReport extends SelectorView {
|
|
|
49
49
|
export declare const getBillList: (state: RootState, currentTimePeriod: TimePeriod, isBulkActionFeatureEnabled: boolean) => BillListReport;
|
|
50
50
|
export declare const getApproversOrRejectors: (billTransaction: BillTransaction, entityApprovalStatusState: EntityApprovalStatusState, userState: UserState) => Approvers;
|
|
51
51
|
export declare const getBillListOnSort: (sortKey: BillPayViewSortKey, sortOrder: SortOrder, currentTab: BillTab, transactions: BillTransactionView[]) => BillTransactionView[];
|
|
52
|
-
export
|
|
53
|
-
export declare const getAllowedBulkActions: (selectedTab: BillTab, selectedSubTab: BillsSubTabType, isAllAwaitingMyApproval: boolean, isFirstBillProcessing: boolean, isBookClosedForAnySelectedBill: boolean, isRecurringBillInBulkActionList: boolean) => BulkOperationType[];
|
|
52
|
+
export {};
|
|
@@ -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.
|
|
6
|
+
exports.getBillListOnSort = exports.getApproversOrRejectors = exports.getBillList = void 0;
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
8
|
const orderBy_1 = __importDefault(require("lodash/orderBy"));
|
|
9
9
|
const difference_1 = __importDefault(require("lodash/difference"));
|
|
@@ -154,7 +154,7 @@ const getBillList = (state, currentTimePeriod, isBulkActionFeatureEnabled) => {
|
|
|
154
154
|
const billsSelectedForBulkAction = billsBulkActionViewState.billsSelectedForBulkAction;
|
|
155
155
|
const firstBillInBulkList = (0, get_1.default)(billTransactionState.transactionById, billsSelectedForBulkAction[0], undefined);
|
|
156
156
|
const isBulkActionAllowed = isBulkActionFeatureEnabled
|
|
157
|
-
?
|
|
157
|
+
? checkIfBulkActionAllowed(billListState.currentTab, billListState.currentSubTab)
|
|
158
158
|
: false;
|
|
159
159
|
let firstSelectableBill = undefined;
|
|
160
160
|
if (isBulkActionAllowed) {
|
|
@@ -196,7 +196,7 @@ const getBillList = (state, currentTimePeriod, isBulkActionFeatureEnabled) => {
|
|
|
196
196
|
const allBulkBillsAwaitingMyApproval = (0, difference_1.default)(billsSelectedForBulkAction, pendingApprovalTransactionIDs)
|
|
197
197
|
.length === 0;
|
|
198
198
|
const allowedBulkActions = isBulkActionAllowed
|
|
199
|
-
?
|
|
199
|
+
? getAllowedBulkActions(billListState.currentTab, billListState.currentSubTab, allBulkBillsAwaitingMyApproval, (firstBillInBulkList === null || firstBillInBulkList === void 0 ? void 0 : firstBillInBulkList.billPayInfo.billPaymentStatus.code) ===
|
|
200
200
|
'processing', isBookClosedForAnySelectedBill, isRecurringBillInBulkActionList)
|
|
201
201
|
: [];
|
|
202
202
|
billListBulkActionInfo = {
|
|
@@ -517,7 +517,6 @@ const checkIfBulkActionAllowed = (selectedTab, selectedSubTab) => {
|
|
|
517
517
|
}
|
|
518
518
|
return true;
|
|
519
519
|
};
|
|
520
|
-
exports.checkIfBulkActionAllowed = checkIfBulkActionAllowed;
|
|
521
520
|
const isBillSelectableForBulkAction = (bill, selectedTab, isBookClosedForBill, isAwaitingMyApproval, firstSelectableBill, firstBillSelected) => {
|
|
522
521
|
const result = {
|
|
523
522
|
isSelectableForBulkAction: true,
|
|
@@ -655,4 +654,3 @@ const getAllowedBulkActions = (selectedTab, selectedSubTab, isAllAwaitingMyAppro
|
|
|
655
654
|
return [];
|
|
656
655
|
}
|
|
657
656
|
};
|
|
658
|
-
exports.getAllowedBulkActions = getAllowedBulkActions;
|
|
@@ -33,12 +33,11 @@ export interface BillListDownloadUIState extends BillListUIState {
|
|
|
33
33
|
}
|
|
34
34
|
export declare type SaveBillStageCode = 'draft' | 'pending_approval' | undefined;
|
|
35
35
|
export declare const ALL_BILL_TABS: readonly ["paid", "pending_approval", "scheduled", "draft"];
|
|
36
|
-
|
|
36
|
+
declare const toBillTabType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
|
|
37
37
|
export declare type BillTab = ReturnType<typeof toBillTabType>;
|
|
38
|
-
|
|
38
|
+
declare const toBillsSubTabType: (v: string) => "all" | "failed" | "rejected" | "ach" | "wire" | "cancelled" | "deleted" | "overdue" | "awaiting_approval" | "awaiting_my_approval";
|
|
39
39
|
export declare type BillsSubTabType = ReturnType<typeof toBillsSubTabType>;
|
|
40
|
-
|
|
41
|
-
export declare const toBillPaySortKeyType: (v: string) => "name" | "status" | "amount" | "dueDate" | "invoiceDate" | "paymentMethod";
|
|
40
|
+
declare const toBillPaySortKeyType: (v: string) => "name" | "status" | "amount" | "dueDate" | "invoiceDate" | "paymentMethod";
|
|
42
41
|
export declare type BillPayViewSortKey = ReturnType<typeof toBillPaySortKeyType>;
|
|
43
42
|
export interface BillPayFilters {
|
|
44
43
|
categoryCombinationOperator: CategoryCombinationOperator;
|
|
@@ -52,3 +51,4 @@ export interface BillPayFilterCategory {
|
|
|
52
51
|
}
|
|
53
52
|
export declare type BillListViewFilterCategoryField = 'vendorName' | 'status' | 'invoiceDate' | 'dueDate' | 'paymentDate' | 'creationDate' | 'amount' | 'paymentMethod' | 'paymentType';
|
|
54
53
|
export declare const BILL_PAY_FILTER_CATEGORIES: BillPayFilterCategoryDropdownOption[];
|
|
54
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BILL_PAY_FILTER_CATEGORIES = exports.
|
|
3
|
+
exports.BILL_PAY_FILTER_CATEGORIES = exports.ALL_BILL_TABS = exports.billListInitialState = exports.getBillListKey = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../../commonStateTypes/stringToUnion");
|
|
5
5
|
const getBillListKey = (period, tab) => `bills-${tab}-${period.start.day}_${period.start.month}_${period.start.year}_${period.end.day}_${period.end.month}_${period.end.year}`;
|
|
6
6
|
exports.getBillListKey = getBillListKey;
|
|
@@ -24,7 +24,6 @@ exports.ALL_BILL_TABS = [
|
|
|
24
24
|
'draft',
|
|
25
25
|
];
|
|
26
26
|
const toBillTabType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_BILL_TABS);
|
|
27
|
-
exports.toBillTabType = toBillTabType;
|
|
28
27
|
const BILLS_SUB_TAB = [
|
|
29
28
|
'all',
|
|
30
29
|
'overdue',
|
|
@@ -38,8 +37,7 @@ const BILLS_SUB_TAB = [
|
|
|
38
37
|
'deleted',
|
|
39
38
|
];
|
|
40
39
|
const toBillsSubTabType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILLS_SUB_TAB);
|
|
41
|
-
|
|
42
|
-
exports.ALL_BILL_PAY_SORT_KEYS = [
|
|
40
|
+
const ALL_BILL_PAY_SORT_KEYS = [
|
|
43
41
|
'dueDate',
|
|
44
42
|
'status',
|
|
45
43
|
'amount',
|
|
@@ -47,8 +45,7 @@ exports.ALL_BILL_PAY_SORT_KEYS = [
|
|
|
47
45
|
'name',
|
|
48
46
|
'paymentMethod',
|
|
49
47
|
];
|
|
50
|
-
const toBillPaySortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
51
|
-
exports.toBillPaySortKeyType = toBillPaySortKeyType;
|
|
48
|
+
const toBillPaySortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_BILL_PAY_SORT_KEYS);
|
|
52
49
|
exports.BILL_PAY_FILTER_CATEGORIES = [
|
|
53
50
|
{
|
|
54
51
|
value: 'vendorName',
|
|
@@ -25,7 +25,7 @@ const fetchBillListPerTabEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0
|
|
|
25
25
|
is_include_deleted: isShowDeletedBillsEnabled ? tab !== 'draft' : false,
|
|
26
26
|
};
|
|
27
27
|
return zeniAPI
|
|
28
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
28
|
+
.getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bills/transactions?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
|
|
29
29
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
30
30
|
var _a, _b;
|
|
31
31
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
@@ -3,7 +3,7 @@ import { Currency } from '../../../../commonStateTypes/amount';
|
|
|
3
3
|
import { AccountBasePayload } from '../../../../entity/account/accountPayload';
|
|
4
4
|
import { ClassBasePayload } from '../../../../entity/class/classPayload';
|
|
5
5
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
6
|
-
import { BillPaymentConfigCodeType, BillPaymentSubConfigCodeType,
|
|
6
|
+
import { BillPaymentConfigCodeType, BillPaymentSubConfigCodeType, VendorCurrency, PaymentAchSubConfigCodeType, InternationalSubConfigCodeType, BillPayConfig, InternationalWireMethodCodeType, InternationalWireMethodCodeKeyType, InternationalSubConfigCodeKeyType, BillPaymentSubConfigCodeKeyType, PaymentAchSubConfigCodeKeyType, BillPaymentWireSubConfigCodeType, BillPaymentWireSubConfigCodeKeyType, AccountTypeSubConfigCodeKeyType, AccType } from './billPayConfigState';
|
|
7
7
|
export interface BillPayConfigPayload {
|
|
8
8
|
bill_pay_bot_email: string;
|
|
9
9
|
is_us_domestic_wire_enabled: boolean;
|
|
@@ -22,7 +22,7 @@ export interface BillPayConfigPayload {
|
|
|
22
22
|
local_currency_supported_countries: CountryPayload[];
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
interface SupportedCurrencyPayload {
|
|
26
26
|
ach: Record<PaymentAchSubConfigCodeType, CurrencyPayload[]>;
|
|
27
27
|
wire: Record<BillPaymentWireSubConfigCodeType, CurrencyPayload[]>;
|
|
28
28
|
by_country: Record<string, CountryWiseCurrencyPayload>;
|
|
@@ -36,43 +36,42 @@ export interface VendorCurrencyPayload extends CurrencyPayload {
|
|
|
36
36
|
country_code: string;
|
|
37
37
|
is_enabled: boolean;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
interface CountryPayload {
|
|
40
40
|
country_code: string;
|
|
41
41
|
country_name: string;
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
export interface PaymentTimeline {
|
|
43
|
+
interface PaymentTimeline {
|
|
45
44
|
ach: Record<PaymentAchSubConfigCodeType, ConfigTimelineForAccTypePayload>;
|
|
46
45
|
wire: Record<BillPaymentWireSubConfigCodeType, ConfigTimelineForAccTypePayload>;
|
|
47
46
|
}
|
|
48
|
-
|
|
47
|
+
interface ClassConfig {
|
|
49
48
|
ach: Record<PaymentAchSubConfigCodeType, ClassBasePayload>;
|
|
50
49
|
wire: Record<BillPaymentWireSubConfigCodeType, ClassBasePayload>;
|
|
51
50
|
}
|
|
52
|
-
|
|
51
|
+
interface AccountConfig {
|
|
53
52
|
ach: Record<PaymentAchSubConfigCodeType, AccountBasePayload>;
|
|
54
53
|
wire: Record<BillPaymentWireSubConfigCodeType, AccountBasePayload>;
|
|
55
54
|
}
|
|
56
|
-
|
|
55
|
+
interface BillPayConfigPaymentProcessorPayload {
|
|
57
56
|
payment_timeline: PaymentTimeline;
|
|
58
57
|
account: AccountConfig;
|
|
59
58
|
class: ClassConfig;
|
|
60
59
|
fees: FeesConfig;
|
|
61
60
|
}
|
|
62
|
-
|
|
61
|
+
interface InternationalWireConfig {
|
|
63
62
|
'usd-to-local-currency': BillPayConfigFeePayload;
|
|
64
63
|
'usd-to-usd': Record<InternationalSubConfigCodeType, BillPayConfigFeePayload>;
|
|
65
64
|
}
|
|
66
|
-
|
|
65
|
+
interface WireConfig {
|
|
67
66
|
international: Record<AccType, InternationalWireConfig>;
|
|
68
67
|
'us-domestic': BillPayConfigFeeForAccTypePayload;
|
|
69
68
|
}
|
|
70
|
-
|
|
69
|
+
interface FeesConfig {
|
|
71
70
|
ach: Record<PaymentAchSubConfigCodeType, BillPayConfigFeeForAccTypePayload>;
|
|
72
71
|
wire: WireConfig;
|
|
73
72
|
}
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
declare type BillPayConfigFeeForAccTypePayload = Record<AccType, BillPayConfigFeePayload>;
|
|
74
|
+
interface BillPayConfigFeePayload {
|
|
76
75
|
amount: number;
|
|
77
76
|
description: string;
|
|
78
77
|
currency_code: string;
|
|
@@ -82,12 +81,12 @@ export interface BillPayConfigFeePayload {
|
|
|
82
81
|
dynamic_fee?: number | null;
|
|
83
82
|
dynamic_fee_type?: string | null;
|
|
84
83
|
}
|
|
85
|
-
|
|
84
|
+
declare type ConfigTimelineForAccTypePayload = Record<AccType, ConfigTimelinePayload>;
|
|
86
85
|
export interface ConfigTimelinePayload {
|
|
87
86
|
max: ConfigTimelineFieldsPayload;
|
|
88
87
|
min: ConfigTimelineFieldsPayload;
|
|
89
88
|
}
|
|
90
|
-
|
|
89
|
+
interface ConfigTimelineFieldsPayload {
|
|
91
90
|
units: string;
|
|
92
91
|
value: number;
|
|
93
92
|
}
|
|
@@ -98,27 +97,8 @@ export declare const getBillPaymentWireSubConfigCodeKey: (subCode: BillPaymentWi
|
|
|
98
97
|
export declare const getInternationalSubConfigCodeKey: (subCode: InternationalSubConfigCodeType) => InternationalSubConfigCodeKeyType;
|
|
99
98
|
export declare const getInternationalWireMethodCodeKey: (subCode: InternationalWireMethodCodeType) => InternationalWireMethodCodeKeyType;
|
|
100
99
|
export declare const getAccountTypeSubConfigCodeKey: (subCode: AccType) => AccountTypeSubConfigCodeKeyType;
|
|
101
|
-
export interface FeeAmount {
|
|
102
|
-
amount: number;
|
|
103
|
-
currencyCode: string;
|
|
104
|
-
currencySymbol: string;
|
|
105
|
-
}
|
|
106
|
-
export interface FeeDetail {
|
|
107
|
-
feeAmount: FeeAmount;
|
|
108
|
-
description: string;
|
|
109
|
-
internationalFee?: InternationalFee;
|
|
110
|
-
}
|
|
111
|
-
export declare const getFeeDetail: (fees: FeesConfig, code: BillPaymentConfigCodeType, subCode: BillPaymentSubConfigCodeType, accType: AccType, internationalMethod?: "usd-to-local-currency" | "usd-to-usd" | undefined, internationalSubMethod?: "swift_our" | "swift_sha" | undefined) => FeeDetail;
|
|
112
|
-
export interface TimelineDetail {
|
|
113
|
-
minPeriod: ConfigPeriod;
|
|
114
|
-
maxPeriod: ConfigPeriod;
|
|
115
|
-
}
|
|
116
|
-
export declare const getTimelineDetail: (paymentTimeline: PaymentTimeline, code: BillPaymentConfigCodeType, subCode: BillPaymentSubConfigCodeType, accType: AccType) => TimelineDetail;
|
|
117
|
-
export declare const getAccountDetail: (account: AccountConfig, code: BillPaymentConfigCodeType, subCode: BillPaymentSubConfigCodeType) => AccountBasePayload;
|
|
118
|
-
export declare const getClassDetail: (classConfig: ClassConfig, code: BillPaymentConfigCodeType, subCode: BillPaymentSubConfigCodeType) => ClassBasePayload;
|
|
119
100
|
export declare const mapBillPayConfigPayloadToBillPayConfig: (paymentProcessor: BillPayConfigPaymentProcessorPayload, isEnabled: boolean, isVerified: boolean, code: BillPaymentConfigCodeType, subCode: BillPaymentSubConfigCodeType, accType: AccType, internationalMethod?: "usd-to-local-currency" | "usd-to-usd" | undefined, internationalSubMethod?: "swift_our" | "swift_sha" | undefined) => BillPayConfig;
|
|
120
|
-
export declare const mapFeePayloadToInternationalLocalAmountFeeAmount: (fees: BillPayConfigFeePayload) => InternationalFee;
|
|
121
|
-
export declare const getCurrencies: (supportedCurrencies: SupportedCurrencyPayload, code: BillPaymentConfigCodeType, subCode: BillPaymentSubConfigCodeType) => CurrencyPayload[];
|
|
122
101
|
export declare const mapBillPayVendorConfigPayloadToBillPayVendorConfig: (payload: BillPayConfigPayload, code: BillPaymentConfigCodeType, subCode: BillPaymentSubConfigCodeType) => Currency[];
|
|
123
102
|
export declare const toVendorCurrency: (payload: VendorCurrencyPayload) => VendorCurrency;
|
|
124
103
|
export declare type BillPayConfigResponse = ZeniAPIResponse<BillPayConfigPayload>;
|
|
104
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toVendorCurrency = exports.mapBillPayVendorConfigPayloadToBillPayVendorConfig = exports.
|
|
3
|
+
exports.toVendorCurrency = exports.mapBillPayVendorConfigPayloadToBillPayVendorConfig = exports.mapBillPayConfigPayloadToBillPayConfig = exports.getAccountTypeSubConfigCodeKey = exports.getInternationalWireMethodCodeKey = exports.getInternationalSubConfigCodeKey = exports.getBillPaymentWireSubConfigCodeKey = exports.getPaymentAchSubConfigCodeKey = exports.getBillPaymentSubConfigCodeKey = exports.getSubCodePayload = void 0;
|
|
4
4
|
const amount_1 = require("../../../../commonStateTypes/amount");
|
|
5
5
|
const accountPayload_1 = require("../../../../entity/account/accountPayload");
|
|
6
6
|
const classPayload_1 = require("../../../../entity/class/classPayload");
|
|
@@ -100,7 +100,7 @@ const getFeeDetail = (fees, code, subCode, accType, internationalMethod, interna
|
|
|
100
100
|
};
|
|
101
101
|
description =
|
|
102
102
|
fees.wire[subCode][accType][internationalMethod].description;
|
|
103
|
-
internationalFee =
|
|
103
|
+
internationalFee = mapFeePayloadToInternationalLocalAmountFeeAmount(fees.wire[subCode][accType][internationalMethod]);
|
|
104
104
|
}
|
|
105
105
|
else if (internationalMethod === 'usd-to-usd' &&
|
|
106
106
|
(internationalSubMethod === 'swift_our' ||
|
|
@@ -125,7 +125,6 @@ const getFeeDetail = (fees, code, subCode, accType, internationalMethod, interna
|
|
|
125
125
|
}
|
|
126
126
|
return { feeAmount, description, internationalFee };
|
|
127
127
|
};
|
|
128
|
-
exports.getFeeDetail = getFeeDetail;
|
|
129
128
|
const getTimelineDetail = (paymentTimeline, code, subCode, accType) => {
|
|
130
129
|
let minPeriod = {
|
|
131
130
|
value: 0,
|
|
@@ -161,7 +160,6 @@ const getTimelineDetail = (paymentTimeline, code, subCode, accType) => {
|
|
|
161
160
|
}
|
|
162
161
|
return { minPeriod, maxPeriod };
|
|
163
162
|
};
|
|
164
|
-
exports.getTimelineDetail = getTimelineDetail;
|
|
165
163
|
const getAccountDetail = (account, code, subCode) => {
|
|
166
164
|
let accountBasePayload = {
|
|
167
165
|
account_id: '',
|
|
@@ -177,7 +175,6 @@ const getAccountDetail = (account, code, subCode) => {
|
|
|
177
175
|
}
|
|
178
176
|
return accountBasePayload;
|
|
179
177
|
};
|
|
180
|
-
exports.getAccountDetail = getAccountDetail;
|
|
181
178
|
const getClassDetail = (classConfig, code, subCode) => {
|
|
182
179
|
let classBasePayload = {
|
|
183
180
|
accounting_class_name: '',
|
|
@@ -193,11 +190,10 @@ const getClassDetail = (classConfig, code, subCode) => {
|
|
|
193
190
|
}
|
|
194
191
|
return classBasePayload;
|
|
195
192
|
};
|
|
196
|
-
exports.getClassDetail = getClassDetail;
|
|
197
193
|
const mapBillPayConfigPayloadToBillPayConfig = (paymentProcessor, isEnabled, isVerified, code, subCode, accType, internationalMethod, internationalSubMethod) => {
|
|
198
194
|
const { payment_timeline, fees, account, class: classPayload, } = paymentProcessor;
|
|
199
|
-
const { feeAmount, description, internationalFee } =
|
|
200
|
-
const { minPeriod, maxPeriod } =
|
|
195
|
+
const { feeAmount, description, internationalFee } = getFeeDetail(fees, code, subCode, accType, internationalMethod, internationalSubMethod);
|
|
196
|
+
const { minPeriod, maxPeriod } = getTimelineDetail(payment_timeline, code, subCode, accType);
|
|
201
197
|
return {
|
|
202
198
|
minPeriod: minPeriod,
|
|
203
199
|
maxPeriod: maxPeriod,
|
|
@@ -209,8 +205,8 @@ const mapBillPayConfigPayloadToBillPayConfig = (paymentProcessor, isEnabled, isV
|
|
|
209
205
|
fee: (0, amount_1.toAmount)(feeAmount.amount, feeAmount.currencyCode, feeAmount.currencySymbol),
|
|
210
206
|
description,
|
|
211
207
|
internationalFee,
|
|
212
|
-
account: Object.assign({}, (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(
|
|
213
|
-
class: Object.assign({}, (0, classPayload_1.mapClassBasePayloadToClassBase)(
|
|
208
|
+
account: Object.assign({}, (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(getAccountDetail(account, code, subCode))),
|
|
209
|
+
class: Object.assign({}, (0, classPayload_1.mapClassBasePayloadToClassBase)(getClassDetail(classPayload, code, subCode))),
|
|
214
210
|
isEnabled,
|
|
215
211
|
isVerified,
|
|
216
212
|
};
|
|
@@ -227,7 +223,6 @@ const mapFeePayloadToInternationalLocalAmountFeeAmount = (fees) => {
|
|
|
227
223
|
: 'percent',
|
|
228
224
|
};
|
|
229
225
|
};
|
|
230
|
-
exports.mapFeePayloadToInternationalLocalAmountFeeAmount = mapFeePayloadToInternationalLocalAmountFeeAmount;
|
|
231
226
|
const getCurrencies = (supportedCurrencies, code, subCode) => {
|
|
232
227
|
let currencyPayload = [];
|
|
233
228
|
if (code === 'ach') {
|
|
@@ -240,11 +235,10 @@ const getCurrencies = (supportedCurrencies, code, subCode) => {
|
|
|
240
235
|
}
|
|
241
236
|
return currencyPayload;
|
|
242
237
|
};
|
|
243
|
-
exports.getCurrencies = getCurrencies;
|
|
244
238
|
const mapBillPayVendorConfigPayloadToBillPayVendorConfig = (payload, code, subCode) => {
|
|
245
239
|
const { vendor } = payload;
|
|
246
240
|
const currencies = vendor.supported_currencies;
|
|
247
|
-
return
|
|
241
|
+
return getCurrencies(currencies, code, subCode).map((currency) => {
|
|
248
242
|
return {
|
|
249
243
|
currencyCode: currency.currency_code,
|
|
250
244
|
currencySymbol: currency.currency_symbol,
|
|
@@ -3,7 +3,7 @@ import { InternationalTransferFeeBearerPaymentMethod } from '../../../../entity/
|
|
|
3
3
|
export declare function getBillPayConfigByKeys(billPayConfigState: BillPayConfigState, billPayConfigMethodKeys: string[]): BillPayConfig[];
|
|
4
4
|
export declare function getBillPayConfigByKey(billPayConfigState: BillPayConfigState, billPayConfigMethodKey: string): BillPayConfig | undefined;
|
|
5
5
|
export declare function getBillPayConfigBotEmail(billPayConfigState: BillPayConfigState): string;
|
|
6
|
-
|
|
6
|
+
interface InternationalMethodCode {
|
|
7
7
|
internationalCode?: InternationalWireMethodCodeType;
|
|
8
8
|
internationalSubCode?: InternationalSubConfigCodeType;
|
|
9
9
|
}
|
|
@@ -11,3 +11,4 @@ export interface InternationalMethodCode {
|
|
|
11
11
|
* Helpers
|
|
12
12
|
*/
|
|
13
13
|
export declare function getInternationalMethodCode(paymentMethodSubCode?: BillPaymentSubConfigCodeType, internationalTransferFeeBearerPaymentMethod?: InternationalTransferFeeBearerPaymentMethod): InternationalMethodCode;
|
|
14
|
+
export {};
|