@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
|
@@ -3,13 +3,12 @@ import { RootState } from '../../reducer';
|
|
|
3
3
|
import { ZeniDate } from '../../zeniDayJS';
|
|
4
4
|
import { UserRoleType } from '../../entity/userRole/userRoleType';
|
|
5
5
|
import { BillTransactionView } from './billPay/billList/billListSelector';
|
|
6
|
-
import { BillListViewFilterCategoryField,
|
|
6
|
+
import { BillListViewFilterCategoryField, BillPayFilters } from './billPay/billList/billListState';
|
|
7
7
|
import { ReimbursementView } from './reimbursement/remiListView/remiListSelector';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { ReimbursementFilters, RemiListViewFilterCategoryField } from './reimbursement/remiListView/remiListState';
|
|
9
|
+
import { TaskListFilterCategoryField, TaskListFilters } from '../taskManager/taskListView/taskList';
|
|
10
10
|
import { TaskWithUserDetails } from '../taskManager/taskListView/taskListSelector';
|
|
11
11
|
export declare type SpendManagementFiltersType = BillPayFilters | ReimbursementFilters | TaskListFilters;
|
|
12
|
-
export declare type SpendManagementFilterCategory = BillPayFilterCategory | ReimbursementFilterCategory | TaskFilterCategory;
|
|
13
12
|
export declare type SpendManagementFilterEntityType = 'bill_pay' | 'reimbursement' | 'task_management';
|
|
14
13
|
export declare type FilterCategoryType = 'searchAutocomplete' | 'user' | 'dateRange' | 'numberRange' | 'dropdown';
|
|
15
14
|
export interface MatchingOperatorDropdownOption {
|
|
@@ -34,9 +33,6 @@ export interface TaskFilterCategoryDropdownOption {
|
|
|
34
33
|
}
|
|
35
34
|
export declare type SpendManagementFilterCategoryDropdownOption = BillPayFilterCategoryDropdownOption | ReimbursementFilterCategoryDropdownOption | TaskFilterCategoryDropdownOption;
|
|
36
35
|
export declare type FilterCategoryValueType = string | number | ZeniDate;
|
|
37
|
-
export declare const filterItemOnCategoriesWithSingleValue: (categoryValue: FilterCategoryValueType, currentFilter: SpendManagementFilterCategory, rangeTypeFields: string[]) => boolean;
|
|
38
|
-
export declare const filterItemOnCategoriesWithMultipleValues: (categoryValue: string[], currentFilter: SpendManagementFilterCategory) => boolean;
|
|
39
|
-
export declare const removeDuplicatesFromList: (list: (BillTransactionView | ReimbursementView | TaskWithUserDetails)[]) => (BillTransactionView | ReimbursementView | TaskWithUserDetails)[];
|
|
40
36
|
export declare const applyAdvancedFiltersOnList: (entity: SpendManagementFilterEntityType, allItems: BillTransactionView[] | ReimbursementView[] | TaskWithUserDetails[], filters?: BillPayFilters | ReimbursementFilters | TaskListFilters | undefined, filteredItems?: (BillTransactionView | ReimbursementView | TaskWithUserDetails)[], index?: number) => (BillTransactionView | ReimbursementView | TaskWithUserDetails)[];
|
|
41
37
|
export declare const isBillListDownloadable: (state: RootState, currentTimePeriod: TimePeriod) => boolean;
|
|
42
38
|
export declare const isRemiListDownloadable: (state: RootState, currentTimePeriod: TimePeriod) => boolean;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.hideCreatedByFilter = exports.isRemiListDownloadable = exports.isBillListDownloadable = exports.applyAdvancedFiltersOnList =
|
|
6
|
+
exports.hideCreatedByFilter = exports.isRemiListDownloadable = exports.isBillListDownloadable = exports.applyAdvancedFiltersOnList = void 0;
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
8
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
9
9
|
const userSelector_1 = require("../../entity/user/userSelector");
|
|
@@ -53,7 +53,6 @@ const filterItemOnCategoriesWithSingleValue = (categoryValue, currentFilter, ran
|
|
|
53
53
|
}
|
|
54
54
|
return currentFilter.values.indexOf(categoryValue.toString()) > -1;
|
|
55
55
|
};
|
|
56
|
-
exports.filterItemOnCategoriesWithSingleValue = filterItemOnCategoriesWithSingleValue;
|
|
57
56
|
//filters items which have multiple values against a filter category. ex: status - ['scheduled','approved']
|
|
58
57
|
const filterItemOnCategoriesWithMultipleValues = (categoryValue, currentFilter) => {
|
|
59
58
|
// logic for multi valued columns - ex: billStatus
|
|
@@ -74,7 +73,6 @@ const filterItemOnCategoriesWithMultipleValues = (categoryValue, currentFilter)
|
|
|
74
73
|
return true;
|
|
75
74
|
}
|
|
76
75
|
};
|
|
77
|
-
exports.filterItemOnCategoriesWithMultipleValues = filterItemOnCategoriesWithMultipleValues;
|
|
78
76
|
const removeDuplicatesFromList = (list) => {
|
|
79
77
|
const foundIds = [];
|
|
80
78
|
return list.filter((item) => {
|
|
@@ -86,7 +84,6 @@ const removeDuplicatesFromList = (list) => {
|
|
|
86
84
|
return false;
|
|
87
85
|
});
|
|
88
86
|
};
|
|
89
|
-
exports.removeDuplicatesFromList = removeDuplicatesFromList;
|
|
90
87
|
//filters against all filter categories for the respective list (allItems) recursively
|
|
91
88
|
const applyAdvancedFiltersOnList = (entity, allItems, filters, filteredItems = [], index = 0) => {
|
|
92
89
|
// if there are no filters we will return allBills
|
|
@@ -124,10 +121,10 @@ const applyAdvancedFiltersOnList = (entity, allItems, filters, filteredItems = [
|
|
|
124
121
|
else if ((currentFilter.field === 'status' ||
|
|
125
122
|
currentFilter.field === 'assignee') &&
|
|
126
123
|
Array.isArray(categoryValue)) {
|
|
127
|
-
return
|
|
124
|
+
return filterItemOnCategoriesWithMultipleValues(categoryValue, currentFilter);
|
|
128
125
|
}
|
|
129
126
|
else {
|
|
130
|
-
return
|
|
127
|
+
return filterItemOnCategoriesWithSingleValue(categoryValue, currentFilter, [
|
|
131
128
|
'amount',
|
|
132
129
|
'invoiceDate',
|
|
133
130
|
'paymentDate',
|
|
@@ -139,7 +136,7 @@ const applyAdvancedFiltersOnList = (entity, allItems, filters, filteredItems = [
|
|
|
139
136
|
});
|
|
140
137
|
// if categoryCombinationOperator is OR we will union already filtered and the items which match current filter criteria
|
|
141
138
|
if (filters.categoryCombinationOperator === 'OR') {
|
|
142
|
-
filteredItems =
|
|
139
|
+
filteredItems = removeDuplicatesFromList([
|
|
143
140
|
...itemsWithCurrentFilter,
|
|
144
141
|
...filteredItems,
|
|
145
142
|
]);
|
|
@@ -23,7 +23,7 @@ const checkDepositEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operat
|
|
|
23
23
|
check_back_file_id: checkBack === null || checkBack === void 0 ? void 0 : checkBack.fileId,
|
|
24
24
|
};
|
|
25
25
|
return zeniAPI
|
|
26
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
26
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${(_a = localData.depositTo) === null || _a === void 0 ? void 0 : _a.id}/check-deposits`, payload)
|
|
27
27
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
28
28
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
29
29
|
return (0, rxjs_1.of)((0, snackbarReducer_1.openSnackbar)({
|
package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailPayload.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { BalancePayload } from '../../../../commonPayloadTypes/balanceChangePayload';
|
|
2
2
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
3
3
|
import { AccountHistoryWithBalance } from './depositAccountDetailState';
|
|
4
|
-
|
|
4
|
+
interface AccountHistoryPayload {
|
|
5
5
|
date: string;
|
|
6
6
|
balances: BalancePayload;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
interface FetchAccountHistoryPayload {
|
|
9
9
|
account_end_of_day_balances: AccountHistoryPayload[];
|
|
10
10
|
}
|
|
11
11
|
export declare type FetchAccountHistoryResponse = ZeniAPIResponse<FetchAccountHistoryPayload>;
|
|
12
12
|
export declare const mapAccountHistoryPayloadToAccountHistory: (payload: AccountHistoryPayload) => AccountHistoryWithBalance;
|
|
13
|
+
export {};
|
package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountEpic.js
CHANGED
|
@@ -9,7 +9,7 @@ const depositAccountReducer_1 = require("../../../../entity/depositAccount/depos
|
|
|
9
9
|
const fetchDepositAccountEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(depositAccountDetailReducer_1.fetchDepositAccount.match), (0, operators_1.switchMap)((action) => {
|
|
10
10
|
const { depositAccountId } = action.payload;
|
|
11
11
|
return zeniAPI
|
|
12
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
12
|
+
.getJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${depositAccountId}?query=${encodeURIComponent(`{"is_include_deposit_accounts_summary":true}`)}`)
|
|
13
13
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
14
14
|
var _a, _b;
|
|
15
15
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountHistoryEpic.js
CHANGED
|
@@ -11,7 +11,7 @@ const fetchDepositAccountHistoryEpic = (actions$, _state$, zeniAPI) => actions$.
|
|
|
11
11
|
const today = (0, zeniDayJS_1.dateNow)().format('YYYY-MM-DD');
|
|
12
12
|
const payload = { start_date: '2022-01-01', end_date: today };
|
|
13
13
|
return zeniAPI
|
|
14
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
14
|
+
.getJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${depositAccountId}/balances/time-series?query=${encodeURIComponent(JSON.stringify(payload))}`)
|
|
15
15
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
16
16
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
17
17
|
return (0, rxjs_1.of)((0, depositAccountDetailReducer_1.fetchDepositAccountHistorySuccess)({
|
package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/updateDepositAccountEpic.js
CHANGED
|
@@ -13,7 +13,7 @@ const updateDepositAccountEpic = (actions$, _state$, zeniAPI) => actions$.pipe((
|
|
|
13
13
|
? { is_close_account: true }
|
|
14
14
|
: { account_name: nickname };
|
|
15
15
|
return zeniAPI
|
|
16
|
-
.putAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
16
|
+
.putAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${depositAccountId}`, payload)
|
|
17
17
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
18
18
|
var _a, _b;
|
|
19
19
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.js
CHANGED
|
@@ -9,7 +9,7 @@ const depositAccountReducer_1 = require("../../../../entity/depositAccount/depos
|
|
|
9
9
|
const zeniAccountListReducer_1 = require("../zeniAccountList/zeniAccountListReducer");
|
|
10
10
|
const fetchDepositAccountListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(depositAccountListReducer_1.fetchDepositAccountList.match), (0, operators_1.switchMap)(() => {
|
|
11
11
|
return zeniAPI
|
|
12
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
12
|
+
.getJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts?query=${encodeURIComponent(`{"is_include_deposit_accounts_summary":true}`)}`)
|
|
13
13
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
14
14
|
var _a, _b, _c, _d, _e;
|
|
15
15
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DepositAccountTransactionPayload } from '../../../../entity/depositAccountTransaction/depositAccountTransactionPayload';
|
|
2
2
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
3
|
-
|
|
3
|
+
interface DepositAccountTransactionListPayload {
|
|
4
4
|
query: DepositAccountTransactionListQueryparam;
|
|
5
5
|
deposit_account: DepositAccTransactionListPayload;
|
|
6
6
|
}
|
|
7
7
|
export declare type FetchDepositAccountTransactionListResponse = ZeniAPIResponse<DepositAccountTransactionListPayload>;
|
|
8
|
-
|
|
8
|
+
interface DepositAccTransactionListPayload {
|
|
9
9
|
deposit_account_id: string;
|
|
10
10
|
deposit_account_name: string;
|
|
11
11
|
transactions: DepositAccountTransactionPayload[];
|
|
@@ -15,3 +15,4 @@ export interface DepositAccountTransactionListQueryparam {
|
|
|
15
15
|
end_date: string;
|
|
16
16
|
limit?: number;
|
|
17
17
|
}
|
|
18
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../../commonStateTypes/common';
|
|
2
|
-
|
|
2
|
+
interface TransactionsByDepositId extends FetchStateAndError {
|
|
3
3
|
transactions: ID[];
|
|
4
4
|
depositAccountName: string;
|
|
5
5
|
}
|
|
@@ -7,3 +7,4 @@ export interface DepositAccountTransactionListState {
|
|
|
7
7
|
byDepositId: Record<ID, TransactionsByDepositId>;
|
|
8
8
|
}
|
|
9
9
|
export declare const initialTransactionsByDepositId: TransactionsByDepositId;
|
|
10
|
+
export {};
|
|
@@ -27,7 +27,7 @@ const fetchDepositAccountTransactionListEpic = (actions$, state$, zeniAPI) => ac
|
|
|
27
27
|
queryParam = Object.assign(Object.assign({}, queryParam), { limit: count });
|
|
28
28
|
}
|
|
29
29
|
return zeniAPI
|
|
30
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
30
|
+
.getJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${depositAccountId}/transactions?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
|
|
31
31
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
32
32
|
var _a, _b, _c, _d, _e, _f;
|
|
33
33
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
package/lib/view/spendManagement/zeniAccounts/transferDetail/fetchReviewTransferDetailEpic.js
CHANGED
|
@@ -24,7 +24,7 @@ const fetchReviewTransferDetailEpic = (actions$, state$, zeniAPI) => actions$.pi
|
|
|
24
24
|
currency_symbol: localData.amount.currencySymbol,
|
|
25
25
|
};
|
|
26
26
|
return zeniAPI
|
|
27
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
27
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/transfers/review`, payload)
|
|
28
28
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
29
29
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
30
30
|
return (0, rxjs_1.of)((0, transferDetailReducer_1.updateReviewTransferDetail)(response.data));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AmountPayload } from '../../../../entity/reimbursement/reimbursementPayload';
|
|
2
2
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
3
3
|
import { ReviewTransferMoney } from './transferDetailState';
|
|
4
|
-
|
|
4
|
+
interface TransferMoneyPayload {
|
|
5
5
|
transaction_id: string;
|
|
6
6
|
amount: number;
|
|
7
7
|
currency_code: string;
|
|
8
8
|
currency_symbol: string;
|
|
9
9
|
transaction_creation_time: string;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
interface TransferSchedulePayload {
|
|
12
12
|
amount: number;
|
|
13
13
|
currency_code: string;
|
|
14
14
|
currency_symbol: string;
|
|
@@ -22,3 +22,4 @@ export interface ReviewTransferMoneyPayload {
|
|
|
22
22
|
export declare const mapReviewTransferMoneyPayloadToReviewTransferMoney: (payload: ReviewTransferMoneyPayload) => ReviewTransferMoney;
|
|
23
23
|
export declare type ReviewTransferMoneyResponse = ZeniAPIResponse<ReviewTransferMoneyPayload>;
|
|
24
24
|
export declare type TransferMoneyResponse = ZeniAPIResponse<TransferMoneyPayload>;
|
|
25
|
+
export {};
|
|
@@ -19,6 +19,7 @@ export interface ReviewTransferMoney {
|
|
|
19
19
|
dailyAchDebitLimit: Amount;
|
|
20
20
|
transferSchedules: TransferSchedule[];
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
interface TransferSchedule extends Amount {
|
|
23
23
|
scheduleTime: ZeniDate;
|
|
24
24
|
}
|
|
25
|
+
export {};
|
|
@@ -31,7 +31,7 @@ const transferMoneyEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, opera
|
|
|
31
31
|
},
|
|
32
32
|
};
|
|
33
33
|
return zeniAPI
|
|
34
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
34
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts-transfers`, payload)
|
|
35
35
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
36
36
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
37
37
|
const actions = [];
|
|
@@ -14,7 +14,7 @@ const createCheckingAccountEpic = (actions$, _state$, zeniAPI) => actions$.pipe(
|
|
|
14
14
|
account_name: action.payload.nickname,
|
|
15
15
|
};
|
|
16
16
|
return zeniAPI
|
|
17
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
17
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts`, payload)
|
|
18
18
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
19
19
|
var _a, _b, _c, _d, _e;
|
|
20
20
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { AllowedValueWithCode } from '../../../../commonStateTypes/allowedValue';
|
|
2
|
-
import { ID } from '../../../../commonStateTypes/common';
|
|
3
1
|
import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
2
|
import { PaymentAccount } from '../../../../entity/paymentAccount/paymentAccountState';
|
|
5
3
|
import { RootState } from '../../../../reducer';
|
|
@@ -15,8 +13,7 @@ export interface ZeniAccountListSelectorView extends SelectorView {
|
|
|
15
13
|
plaidConnectionDetails: PlaidConnectionDetails;
|
|
16
14
|
newCheckingAccount: NewCheckingAccount;
|
|
17
15
|
zeniAccountsConfig: ZeniAccountsConfigSelectorView;
|
|
18
|
-
companyBillPayAccountSetupStatus?: AllowedValueWithCode;
|
|
19
16
|
paymentAccount?: PaymentAccount;
|
|
20
17
|
summary?: ZeniAccountSummaryWithBalance;
|
|
21
18
|
}
|
|
22
|
-
export declare const getZeniAccountList: (state: RootState
|
|
19
|
+
export declare const getZeniAccountList: (state: RootState) => ZeniAccountListSelectorView;
|
|
@@ -3,17 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getZeniAccountList = void 0;
|
|
4
4
|
const depositAccountPayload_1 = require("../../../../entity/depositAccount/depositAccountPayload");
|
|
5
5
|
const paymentAccountSelector_1 = require("../../../../entity/paymentAccount/paymentAccountSelector");
|
|
6
|
-
const getCompanyView_1 = require("../../../companyView/selectorHelpers/getCompanyView");
|
|
7
6
|
const depositAccountListSelector_1 = require("../depositAccountList/depositAccountListSelector");
|
|
8
7
|
const paymentAccountListSelector_1 = require("../paymentAccountList/paymentAccountListSelector");
|
|
9
8
|
const zeniAccountsConfigSelector_1 = require("../zeniAccountsConfig/zeniAccountsConfigSelector");
|
|
10
|
-
const getZeniAccountList = (state
|
|
9
|
+
const getZeniAccountList = (state) => {
|
|
11
10
|
const { zeniAccountListState, depositAccountState, paymentAccountState, plaidAccountViewState, depositAccountListState, paymentAccountListState, } = state;
|
|
12
11
|
const { plaidConnectionDetails } = plaidAccountViewState['external_account'];
|
|
13
12
|
const depositAccountsSelectorView = (0, depositAccountListSelector_1.getAllDepostAccounts)(depositAccountState, depositAccountListState);
|
|
14
13
|
const zeniAccountsConfig = (0, zeniAccountsConfigSelector_1.getZeniAccountsConfigDetail)(state);
|
|
15
|
-
const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
|
|
16
|
-
const companyBillPayInfo = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyBillPayInfo;
|
|
17
14
|
const { paymentAccountIds } = paymentAccountListState;
|
|
18
15
|
const externalAccountsSelectorView = (0, paymentAccountListSelector_1.getAllPaymentAccounts)(paymentAccountState, paymentAccountListState);
|
|
19
16
|
let summary = undefined;
|
|
@@ -49,7 +46,6 @@ const getZeniAccountList = (state, companyId) => {
|
|
|
49
46
|
zeniAccountsConfig,
|
|
50
47
|
plaidConnectionDetails,
|
|
51
48
|
externalAccountsSelectorView,
|
|
52
|
-
companyBillPayAccountSetupStatus: companyBillPayInfo === null || companyBillPayInfo === void 0 ? void 0 : companyBillPayInfo.billPaymentAccountSetupStatus,
|
|
53
49
|
newCheckingAccount: zeniAccountListState.newCheckingAccount,
|
|
54
50
|
fetchState: zeniAccountListState.currentTab.id === 'zeniAccounts'
|
|
55
51
|
? depositAccountsSelectorView.fetchState
|
|
@@ -18,5 +18,6 @@ export interface ZeniAccountSummaryWithBalance {
|
|
|
18
18
|
totalInterest: DepositBalance;
|
|
19
19
|
}
|
|
20
20
|
export declare const ZENI_ACCOUNTS_TAB: readonly ["zeniAccounts", "externalAccounts"];
|
|
21
|
-
|
|
21
|
+
declare const toZeniAccountsTab: (v: string) => "zeniAccounts" | "externalAccounts";
|
|
22
22
|
export declare type ZeniAccountsTab = ReturnType<typeof toZeniAccountsTab>;
|
|
23
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ZENI_ACCOUNTS_TAB = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../../commonStateTypes/stringToUnion");
|
|
5
5
|
exports.ZENI_ACCOUNTS_TAB = ['zeniAccounts', 'externalAccounts'];
|
|
6
6
|
const toZeniAccountsTab = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ZENI_ACCOUNTS_TAB);
|
|
7
|
-
exports.toZeniAccountsTab = toZeniAccountsTab;
|
|
@@ -2,9 +2,10 @@ import { ZeniAPIResponse } from '../../../../../responsePayload';
|
|
|
2
2
|
import { CompanyPayload } from '../../../../../entity/company/companyPayload';
|
|
3
3
|
import { UserPayload } from '../../../../../entity/user/userPayload';
|
|
4
4
|
import { UserRolePayload } from '../../../../../entity/userRole/userRolePayload';
|
|
5
|
-
|
|
5
|
+
interface AcceptZeniAccountTermsPayload {
|
|
6
6
|
companies: CompanyPayload[];
|
|
7
7
|
users: UserPayload[];
|
|
8
8
|
user_roles: UserRolePayload[];
|
|
9
9
|
}
|
|
10
10
|
export declare type AcceptZeniAccountTermsResponse = ZeniAPIResponse<AcceptZeniAccountTermsPayload>;
|
|
11
|
+
export {};
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewPayload.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
2
2
|
import { EnableSetupViewPayload, SetupViewPayload } from '../../commonSetup/setupViewPayload';
|
|
3
3
|
export declare type EnableZeniAccountSetupViewPayload = EnableSetupViewPayload;
|
|
4
|
-
|
|
4
|
+
declare type ZeniAccountSetupViewPayload = SetupViewPayload;
|
|
5
5
|
export declare type ZeniAccountSetupViewResponse = ZeniAPIResponse<ZeniAccountSetupViewPayload>;
|
|
6
|
-
export
|
|
6
|
+
export {};
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/fetchZeniAccountsConfigEpic.js
CHANGED
|
@@ -7,7 +7,7 @@ const zeniAccountsConfigReducer_1 = require("./zeniAccountsConfigReducer");
|
|
|
7
7
|
const addressReducer_1 = require("../../../../entity/address/addressReducer");
|
|
8
8
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
9
9
|
const fetchZeniAccountsConfigEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(zeniAccountsConfigReducer_1.fetchZeniAccountsConfig.match), (0, operators_1.switchMap)(() => zeniAPI
|
|
10
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
10
|
+
.getJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/baas/config`)
|
|
11
11
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
12
12
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
13
13
|
const actions = [
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AddressPayload } from '../../../../entity/address/addressPayload';
|
|
2
2
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
3
|
-
import { ZeniAccountsConfig
|
|
3
|
+
import { ZeniAccountsConfig } from './zeniAccountsConfigState';
|
|
4
4
|
export interface ZeniAccountsConfigPayload {
|
|
5
5
|
apy: string | null;
|
|
6
6
|
bank_name: string;
|
|
@@ -9,12 +9,12 @@ export interface ZeniAccountsConfigPayload {
|
|
|
9
9
|
bank_address: AddressPayload;
|
|
10
10
|
}
|
|
11
11
|
export declare const mapZeniAccountsConfigPayloadToZeniAccountsConfigState: (payload: ZeniAccountsConfigPayload) => ZeniAccountsConfig;
|
|
12
|
-
|
|
13
|
-
export interface DepositProductConfigPayload {
|
|
12
|
+
interface DepositProductConfigPayload {
|
|
14
13
|
deposit_products: DepositProductsPayload[];
|
|
15
14
|
}
|
|
16
|
-
|
|
15
|
+
interface DepositProductsPayload {
|
|
17
16
|
apy: number;
|
|
18
17
|
range: (number | null)[];
|
|
19
18
|
}
|
|
20
19
|
export declare type FetchZeniAccountsConfigResponse = ZeniAPIResponse<ZeniAccountsConfigPayload>;
|
|
20
|
+
export {};
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.mapZeniAccountsConfigPayloadToZeniAccountsConfigState = void 0;
|
|
4
4
|
const mapZeniAccountsConfigPayloadToZeniAccountsConfigState = (payload) => ({
|
|
5
5
|
annualPercentageYield: payload.apy != null ? payload.apy : '',
|
|
6
6
|
bankName: payload.bank_name,
|
|
7
7
|
mailingAddressId: payload.mailing_address.address_id,
|
|
8
8
|
bankAddressId: payload.bank_address.address_id,
|
|
9
|
-
depositProductConfig:
|
|
9
|
+
depositProductConfig: mapDepositProductConfigPayloadToDepositProductConfig(payload.deposit_product_config),
|
|
10
10
|
});
|
|
11
11
|
exports.mapZeniAccountsConfigPayloadToZeniAccountsConfigState = mapZeniAccountsConfigPayloadToZeniAccountsConfigState;
|
|
12
12
|
const mapDepositProductConfigPayloadToDepositProductConfig = (payload) => {
|
|
@@ -20,4 +20,3 @@ const mapDepositProductConfigPayloadToDepositProductConfig = (payload) => {
|
|
|
20
20
|
depositProducts: array,
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
exports.mapDepositProductConfigPayloadToDepositProductConfig = mapDepositProductConfigPayloadToDepositProductConfig;
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ export interface ZeniAccountsConfig {
|
|
|
12
12
|
export interface DepositProductConfig {
|
|
13
13
|
depositProducts: DepositProduct[];
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
interface DepositProduct {
|
|
16
16
|
annualPercentageYield: number;
|
|
17
17
|
range: (number | null)[];
|
|
18
18
|
}
|
|
19
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AllowedValueWithCode } from '../../commonStateTypes/allowedValue';
|
|
2
2
|
import { ZeniAPIResponse } from '../../responsePayload';
|
|
3
3
|
import { SubscriptionEstimateWithSchema } from './types/subscriptionEstmiate';
|
|
4
|
-
|
|
4
|
+
interface CommonEstimatePayload {
|
|
5
5
|
change_status: string;
|
|
6
6
|
amount: number;
|
|
7
7
|
description: string;
|
|
@@ -10,28 +10,28 @@ import { UserRolePayload } from '../../entity/userRole/userRolePayload';
|
|
|
10
10
|
import { ZeniAPIResponse } from '../../responsePayload';
|
|
11
11
|
import { CompanyViewSchemaPayload } from '../companyView/companyViewPayload';
|
|
12
12
|
import { SubscriptionUpdateData, SubscriptionCreateData } from './subscriptionViewState';
|
|
13
|
-
|
|
13
|
+
interface SubscriptionPlansDataPayload {
|
|
14
14
|
subscription_plans: SubscriptionPlanPayload[];
|
|
15
15
|
schema: {
|
|
16
16
|
subscription_plan: SubscriptionPlanSchemaPayload;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
export declare type SubscriptionPlansResponse = ZeniAPIResponse<SubscriptionPlansDataPayload>;
|
|
20
|
-
|
|
20
|
+
interface SubscriptionAddOnsDataPayload {
|
|
21
21
|
subscription_addons: SubscriptionAddOnPayload[];
|
|
22
22
|
schema: {
|
|
23
23
|
subscription_addon: Partial<SubscriptionAddOnSchemaPayload>;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
export declare type SubscriptionAddOnsResponse = ZeniAPIResponse<SubscriptionAddOnsDataPayload>;
|
|
27
|
-
|
|
27
|
+
interface SubscriptionCouponsDataPayload {
|
|
28
28
|
subscription_coupons: SubscriptionCouponPayload[];
|
|
29
29
|
schema: {
|
|
30
30
|
subscription_coupon: SubscriptionCouponSchemaPayload;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
export declare type SubscriptionCouponsResponse = ZeniAPIResponse<SubscriptionCouponsDataPayload>;
|
|
34
|
-
|
|
34
|
+
interface SubscriptionEstimateInfoPayload {
|
|
35
35
|
tenant_id: ID;
|
|
36
36
|
subscription_id: ID;
|
|
37
37
|
subscription_plan_id: ID;
|
|
@@ -42,11 +42,11 @@ export interface SubscriptionEstimateInfoPayload {
|
|
|
42
42
|
should_prorate: boolean;
|
|
43
43
|
apply_end_of_term: boolean;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
declare type SubscriptionUpdatableInfoPayload = SubscriptionEstimateInfoPayload;
|
|
46
|
+
interface SubscriptionCreatableInfoPayload extends Omit<SubscriptionEstimateInfoPayload, 'subscription_id'> {
|
|
47
47
|
start_date: string | null;
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
interface SubscriptionDetailsPayloadWithSchema extends SubscriptionPlansDataPayload, SubscriptionAddOnsDataPayload, SubscriptionCouponsDataPayload {
|
|
50
50
|
subscriptions: SubscriptionPayload[];
|
|
51
51
|
subscription_summaries: SubscriptionSummaryPayload[];
|
|
52
52
|
schema: {
|
|
@@ -58,7 +58,7 @@ export interface SubscriptionDetailsPayloadWithSchema extends SubscriptionPlansD
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
export declare type SubscriptionDetailsWithSchemaResponse = ZeniAPIResponse<SubscriptionDetailsPayloadWithSchema>;
|
|
61
|
-
|
|
61
|
+
interface SubscriptionListPayload {
|
|
62
62
|
users?: UserPayload[];
|
|
63
63
|
user_roles: UserRolePayload[];
|
|
64
64
|
companies: CompanyPayload[];
|
|
@@ -76,3 +76,4 @@ export declare type SubscriptionListResponse = ZeniAPIResponse<SubscriptionListP
|
|
|
76
76
|
export declare const toSubscriptionUpdatableInfoPayload: (info: SubscriptionUpdateData, tenantId: ID, isEstimate?: boolean) => Partial<SubscriptionUpdatableInfoPayload>;
|
|
77
77
|
export declare const toSubscriptionCreatableInfoPayload: (info: SubscriptionCreateData, tenantId: ID, isEstimate?: boolean) => Partial<SubscriptionCreatableInfoPayload>;
|
|
78
78
|
export declare type SubscriptionSummaryNotesResponse = ZeniAPIResponse<SubscriptionSummaryPayload>;
|
|
79
|
+
export {};
|
|
@@ -21,7 +21,7 @@ export interface SubscriptionViewState {
|
|
|
21
21
|
subscriptionDetailsByCompanyId: Record<ID, SubscriptionDetailsState>;
|
|
22
22
|
subscriptionUpdateViewDataByTenantId: Record<ID, SubscriptionUpdateViewData>;
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
interface SubscriptionListViewState extends FetchedState {
|
|
25
25
|
uiState: SubscriptionListUIState;
|
|
26
26
|
companyIds: ID[];
|
|
27
27
|
}
|
|
@@ -38,7 +38,7 @@ export interface SubscriptionDetailsState {
|
|
|
38
38
|
subscriptionIds: ID[];
|
|
39
39
|
}
|
|
40
40
|
export declare type SubscriptionActionType = 'subscription_create' | 'subscription_update';
|
|
41
|
-
|
|
41
|
+
interface SubscriptionUpdateViewData {
|
|
42
42
|
estimateStatus: FetchStateAndError;
|
|
43
43
|
updateStatus: FetchStateAndError;
|
|
44
44
|
type: SubscriptionActionType;
|
|
@@ -62,3 +62,4 @@ export interface SubscriptionUpdateData {
|
|
|
62
62
|
applyEndOfTerm: boolean;
|
|
63
63
|
shouldProrate: boolean;
|
|
64
64
|
}
|
|
65
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { AllowedValue } from '../../../commonStateTypes/allowedValue';
|
|
2
2
|
import { Amount } from '../../../commonStateTypes/amount';
|
|
3
3
|
import { ID } from '../../../commonStateTypes/common';
|
|
4
|
-
|
|
4
|
+
interface CommonEstimate {
|
|
5
5
|
amount: Amount;
|
|
6
6
|
description: string;
|
|
7
7
|
changeStatus: string;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
interface PlanEstimate extends CommonEstimate {
|
|
10
10
|
detailDescription: string;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
declare type CouponEstimate = CommonEstimate;
|
|
13
13
|
export interface AddOnEstimate extends CommonEstimate {
|
|
14
14
|
detailDescription: string;
|
|
15
15
|
chargeType: string;
|
|
@@ -30,3 +30,4 @@ export interface SubscriptionEstimateWithSchema {
|
|
|
30
30
|
addOnsEstimate: AddOnEstimate[];
|
|
31
31
|
schema: Record<SchemaKeys, AllowedValue[]>;
|
|
32
32
|
}
|
|
33
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const ALL_SUBSCRIPTION_SORT_KEYS: readonly ["companyName", "status", "controller", "plans", "planLowerLimit", "planHigherLimit", "avg2MonthExpenses", "addons", "upgradeStatus", "monthlyRecurringRevenue", "notes"];
|
|
2
1
|
export declare const toSubscriptionSortKeyType: (v: string) => "status" | "controller" | "companyName" | "monthlyRecurringRevenue" | "avg2MonthExpenses" | "plans" | "planLowerLimit" | "planHigherLimit" | "addons" | "upgradeStatus" | "notes";
|
|
3
2
|
export declare type SubscriptionViewSortKey = ReturnType<typeof toSubscriptionSortKeyType>;
|
|
4
3
|
export declare const SUBSCRIPTION_STATUS_CODES: string[];
|
|
5
|
-
|
|
4
|
+
declare const toSubscriptionStatusCodeType: (v: string) => string;
|
|
6
5
|
export declare type SubscriptionStatusCodeType = ReturnType<typeof toSubscriptionStatusCodeType>;
|
|
6
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SUBSCRIPTION_STATUS_CODES = exports.toSubscriptionSortKeyType = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
|
-
|
|
5
|
+
const ALL_SUBSCRIPTION_SORT_KEYS = [
|
|
6
6
|
'companyName',
|
|
7
7
|
'status',
|
|
8
8
|
'controller',
|
|
@@ -15,7 +15,7 @@ exports.ALL_SUBSCRIPTION_SORT_KEYS = [
|
|
|
15
15
|
'monthlyRecurringRevenue',
|
|
16
16
|
'notes',
|
|
17
17
|
];
|
|
18
|
-
const toSubscriptionSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
18
|
+
const toSubscriptionSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SUBSCRIPTION_SORT_KEYS);
|
|
19
19
|
exports.toSubscriptionSortKeyType = toSubscriptionSortKeyType;
|
|
20
20
|
exports.SUBSCRIPTION_STATUS_CODES = [
|
|
21
21
|
'active',
|
|
@@ -26,4 +26,3 @@ exports.SUBSCRIPTION_STATUS_CODES = [
|
|
|
26
26
|
'cancelled',
|
|
27
27
|
];
|
|
28
28
|
const toSubscriptionStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.SUBSCRIPTION_STATUS_CODES);
|
|
29
|
-
exports.toSubscriptionStatusCodeType = toSubscriptionStatusCodeType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TagPayload } from '../../entity/tag/tagPayload';
|
|
2
2
|
import { ZeniAPIResponse } from '../../responsePayload';
|
|
3
|
-
|
|
4
|
-
export interface FetchTagListPayload {
|
|
3
|
+
interface FetchTagListPayload {
|
|
5
4
|
tags: TagPayload[];
|
|
6
5
|
}
|
|
7
6
|
export declare type FetchTagListResponse = ZeniAPIResponse<FetchTagListPayload>;
|
|
7
|
+
export {};
|
|
@@ -6,10 +6,3 @@ import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
|
6
6
|
import { archiveTask, archiveTaskSuccessOrFailure } from '../taskDetailReducer';
|
|
7
7
|
export declare type ActionType = ReturnType<typeof archiveTask> | ReturnType<typeof updateTasks> | ReturnType<typeof openSnackbar> | ReturnType<typeof archiveTaskSuccessOrFailure>;
|
|
8
8
|
export declare const archiveTaskEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
|
|
9
|
-
/**
|
|
10
|
-
* Interface
|
|
11
|
-
*/
|
|
12
|
-
export interface ArchiveTaskQueryPayload {
|
|
13
|
-
sync_token: string;
|
|
14
|
-
is_archived: boolean;
|
|
15
|
-
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TaskGroupPayload } from '../../../entity/taskGroup/taskGroupPayload';
|
|
2
2
|
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
3
|
-
|
|
3
|
+
interface FetchTaskGroupsPayload {
|
|
4
4
|
task_groups: TaskGroupPayload[];
|
|
5
5
|
}
|
|
6
6
|
export declare type FetchTaskGroupsResponse = ZeniAPIResponse<FetchTaskGroupsPayload>;
|
|
7
|
+
export {};
|