@zeniai/client-epic-state 4.11.98 → 4.12.0
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
|
@@ -50,11 +50,10 @@ export declare type SupportedRewardPlans = ReturnType<typeof toSupportedRewardPl
|
|
|
50
50
|
export declare const REFERRAL_LIST_VIEW_SORT_KEYS: readonly ["invitee_email", "amount", "status", "referral_date"];
|
|
51
51
|
export declare const toReferralListViewSortKeyType: (v: string) => "status" | "amount" | "invitee_email" | "referral_date";
|
|
52
52
|
export declare type ReferralListViewSortKey = ReturnType<typeof toReferralListViewSortKeyType>;
|
|
53
|
-
|
|
54
|
-
export declare const toReferralStatusType: (v: string) => "active" | "onboarding" | "invite_processing" | "invite_sent" | "declined" | "resend_invite" | "reward_sent";
|
|
53
|
+
declare const toReferralStatusType: (v: string) => "active" | "onboarding" | "invite_processing" | "invite_sent" | "declined" | "resend_invite" | "reward_sent";
|
|
55
54
|
export declare type ReferralStatus = ReturnType<typeof toReferralStatusType>;
|
|
56
55
|
export declare const StatusTypes: Record<ReferralStatus, string>;
|
|
57
|
-
|
|
58
|
-
export declare const toReferralAmountStatusType: (v: string) => "received" | "to_be_received";
|
|
56
|
+
declare const toReferralAmountStatusType: (v: string) => "received" | "to_be_received";
|
|
59
57
|
export declare type ReferralAmountStatus = ReturnType<typeof toReferralAmountStatusType>;
|
|
60
58
|
export declare const AmountStatusTypes: Record<ReferralAmountStatus, string>;
|
|
59
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AmountStatusTypes = exports.
|
|
3
|
+
exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.REFERRAL_LIST_VIEW_SORT_KEYS = exports.toSupportedRewardPlansType = exports.SUPPORTED_REWARD_PLANS = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
exports.SUPPORTED_REWARD_PLANS = ['PLAN_1000', 'PLAN_4000'];
|
|
6
6
|
const toSupportedRewardPlansType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.SUPPORTED_REWARD_PLANS);
|
|
@@ -13,7 +13,7 @@ exports.REFERRAL_LIST_VIEW_SORT_KEYS = [
|
|
|
13
13
|
];
|
|
14
14
|
const toReferralListViewSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.REFERRAL_LIST_VIEW_SORT_KEYS);
|
|
15
15
|
exports.toReferralListViewSortKeyType = toReferralListViewSortKeyType;
|
|
16
|
-
|
|
16
|
+
const ALL_REFERRAL_STATUSES = [
|
|
17
17
|
'invite_processing',
|
|
18
18
|
'invite_sent',
|
|
19
19
|
'onboarding',
|
|
@@ -22,8 +22,7 @@ exports.ALL_REFERRAL_STATUSES = [
|
|
|
22
22
|
'resend_invite',
|
|
23
23
|
'reward_sent',
|
|
24
24
|
];
|
|
25
|
-
const toReferralStatusType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
26
|
-
exports.toReferralStatusType = toReferralStatusType;
|
|
25
|
+
const toReferralStatusType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_REFERRAL_STATUSES);
|
|
27
26
|
exports.StatusTypes = {
|
|
28
27
|
invite_processing: 'Invite Processing',
|
|
29
28
|
invite_sent: 'Invite Sent',
|
|
@@ -33,12 +32,8 @@ exports.StatusTypes = {
|
|
|
33
32
|
resend_invite: 'Resend Invite',
|
|
34
33
|
reward_sent: 'Reward Sent',
|
|
35
34
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
'to_be_received',
|
|
39
|
-
];
|
|
40
|
-
const toReferralAmountStatusType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_REFERRAL_AMOUNT_STATUSES);
|
|
41
|
-
exports.toReferralAmountStatusType = toReferralAmountStatusType;
|
|
35
|
+
const ALL_REFERRAL_AMOUNT_STATUSES = ['received', 'to_be_received'];
|
|
36
|
+
const toReferralAmountStatusType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_REFERRAL_AMOUNT_STATUSES);
|
|
42
37
|
exports.AmountStatusTypes = {
|
|
43
38
|
received: 'Received',
|
|
44
39
|
to_be_received: 'To be received',
|
|
@@ -28,7 +28,7 @@ const fetchReimbursementCardEpic = (actions$, _state$, zeniAPI) => actions$.pipe
|
|
|
28
28
|
get_count_only: true,
|
|
29
29
|
};
|
|
30
30
|
return zeniAPI
|
|
31
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
31
|
+
.getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/reimbursement-card?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
|
|
32
32
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
33
33
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
34
34
|
return (0, rxjs_1.of)((0, reimbursementCardReducer_1.updateReimbursementCard)({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ZeniAPIResponse } from '../../responsePayload';
|
|
2
|
-
|
|
2
|
+
interface ReimbursementsCountPayload {
|
|
3
3
|
total_amount: number;
|
|
4
4
|
count: number;
|
|
5
5
|
currency_code: string;
|
|
6
6
|
currency_symbol: string;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
declare type ReimbursementSubTabBasedCount = Record<string, ReimbursementsCountPayload>;
|
|
9
9
|
export declare type TransactionTotalPayload = Record<string, ReimbursementSubTabBasedCount>;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
declare type ReimbursementStagesPayload = Record<string, string[]>;
|
|
11
|
+
interface ReimbursementCardPayload {
|
|
12
12
|
query: ReimbursementCardQuery;
|
|
13
13
|
transaction_count: number;
|
|
14
14
|
transaction_totals: TransactionTotalPayload;
|
|
@@ -2,9 +2,10 @@ import { FetchedState } from '../../commonStateTypes/common';
|
|
|
2
2
|
import { Amount } from '../../commonStateTypes/amount';
|
|
3
3
|
import { Report } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
4
|
import { RemiSubTabType, RemiTabType } from '../spendManagement/reimbursement/remiListView/remiListState';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
declare const getReimbursementAmountKey: (tab: RemiTabType, subTab: RemiSubTabType) => string;
|
|
6
|
+
declare type ReimbursementAmountKey = ReturnType<typeof getReimbursementAmountKey>;
|
|
7
7
|
export interface ReimbursementCardState extends FetchedState, Report {
|
|
8
8
|
transactionCount: number;
|
|
9
9
|
reimbursementAmountByKey: Record<ReimbursementAmountKey, Amount>;
|
|
10
10
|
}
|
|
11
|
+
export {};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getReimbursementAmountKey = void 0;
|
|
4
3
|
const getReimbursementAmountKey = (tab, subTab) => `reimbursements-${tab}-${subTab}`;
|
|
5
|
-
exports.getReimbursementAmountKey = getReimbursementAmountKey;
|
|
@@ -12,19 +12,4 @@ export declare const getRevenueReport: (filter: COABalancesFilter, accountState:
|
|
|
12
12
|
export declare const getRevenueUIState: (state: RootState) => RevenueUIStateSelectorView;
|
|
13
13
|
export declare const getRevenueForSelectedRange: (state: RootState) => RevenueReport;
|
|
14
14
|
export declare const getRevenueForHighlightedRange: (state: RootState) => RevenueReport;
|
|
15
|
-
/**
|
|
16
|
-
* Get Revenue with forecast data overlaid on actuals.
|
|
17
|
-
* @param filter : ;
|
|
18
|
-
* @param forecastId
|
|
19
|
-
* @param accountState
|
|
20
|
-
* @param accountGroupState
|
|
21
|
-
* @param forecastState
|
|
22
|
-
* @param state
|
|
23
|
-
* @notes IMPORTANT:
|
|
24
|
-
* 1. Here the forecast data for the given forecast ID is super imposed on actual data.
|
|
25
|
-
* 2. This method can super impose forecast data on whole data available date range,
|
|
26
|
-
* rather than restricting to ONLY forecast date range.
|
|
27
|
-
* This is different from zeni REST API endpoint where it only super imposes forecast data ONLY for the forecast time period.
|
|
28
|
-
*/
|
|
29
|
-
export declare function getRevenueWithForecastOnDataAvailableDateRange(filter: COABalancesFilter, selectedforecastId: ID | undefined, accountState: AccountState, accountGroupState: AccountGroupState, sectionsState: SectionAccountsViewState, forecastListState: ForecastListState, revenueWithForecaststate: RevenueWithForecastState, forecastState: ForecastState): RevenueReport;
|
|
30
15
|
export declare const getRevenueReportFetchState: (forecastId: ID | undefined, revenueWithForecastState: RevenueWithForecastState) => FetchStateAndError;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRevenueReportFetchState = exports.
|
|
3
|
+
exports.getRevenueReportFetchState = exports.getRevenueForHighlightedRange = exports.getRevenueForSelectedRange = exports.getRevenueUIState = exports.getRevenueReport = void 0;
|
|
4
4
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
5
|
const coaBalancesFilter_1 = require("../../commonStateTypes/coaBalance/coaBalancesFilter");
|
|
6
6
|
const dataAvailable_1 = require("../../commonStateTypes/dataAvailable");
|
|
@@ -198,7 +198,6 @@ function getRevenueWithForecastOnDataAvailableDateRange(filter, selectedforecast
|
|
|
198
198
|
});
|
|
199
199
|
return reportF;
|
|
200
200
|
}
|
|
201
|
-
exports.getRevenueWithForecastOnDataAvailableDateRange = getRevenueWithForecastOnDataAvailableDateRange;
|
|
202
201
|
const getRevenueReportFetchState = (forecastId, revenueWithForecastState) => {
|
|
203
202
|
const revState = (0, revenueReducer_1.getState)(revenueWithForecastState, forecastId != null, forecastId);
|
|
204
203
|
return (0, reduceFetchState_1.reduceAnyFetchState)([
|
|
@@ -4,15 +4,15 @@ import { DataAvailable } from '../../commonStateTypes/dataAvailable';
|
|
|
4
4
|
import { COABalancesFilter } from '../../commonStateTypes/coaBalance/coaBalancesFilter';
|
|
5
5
|
import { InsightSummary } from '../../entity/insights/insightSummary';
|
|
6
6
|
import { RevenueUIState } from './revenueState';
|
|
7
|
-
import {
|
|
7
|
+
import { Mode } from '../../commonStateTypes/common';
|
|
8
8
|
import { ForecastListSelectorView } from '../forecastList/forecastListSelector';
|
|
9
9
|
import { AccountsViewSelectorReport } from '../../commonStateTypes/selectorTypes/accountsViewSelectorReport';
|
|
10
10
|
export declare const ALL_REVENUE_SECTION_IDS: readonly ["cogs", "income"];
|
|
11
|
-
|
|
11
|
+
declare const toRevenueSectionID: (v: string) => "cogs" | "income";
|
|
12
12
|
export declare type RevenueSectionID = ReturnType<typeof toRevenueSectionID>;
|
|
13
13
|
export declare const isRevenueSectionID: (id: string) => id is "cogs" | "income";
|
|
14
14
|
export declare const ALL_REVENUE_CALCULATED_SECTION_IDS: readonly ["grossMargin"];
|
|
15
|
-
|
|
15
|
+
declare const toRevenueCalculatedSectionID: (v: string) => "grossMargin";
|
|
16
16
|
export declare type RevenueCalculatedSectionID = ReturnType<typeof toRevenueCalculatedSectionID>;
|
|
17
17
|
export declare const isRevenueCalculatedSectionID: (id: string) => id is "grossMargin";
|
|
18
18
|
export interface RevenueReport extends AccountsViewSelectorReport<RevenueSectionID, RevenueCalculatedSectionID> {
|
|
@@ -22,10 +22,8 @@ export interface RevenueReport extends AccountsViewSelectorReport<RevenueSection
|
|
|
22
22
|
filter: COABalancesFilter;
|
|
23
23
|
forecastList: ForecastListSelectorView;
|
|
24
24
|
}
|
|
25
|
-
export interface RevenueReportWithForecast extends RevenueReport {
|
|
26
|
-
forecastId: ID;
|
|
27
|
-
}
|
|
28
25
|
export interface RevenueUIStateSelectorView extends SelectorView, RevenueUIState {
|
|
29
26
|
mode: Mode;
|
|
30
27
|
}
|
|
31
28
|
export declare const revenueIdsInOrder: (RevenueSectionID | RevenueCalculatedSectionID)[];
|
|
29
|
+
export {};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.revenueIdsInOrder = exports.isRevenueCalculatedSectionID = exports.
|
|
3
|
+
exports.revenueIdsInOrder = exports.isRevenueCalculatedSectionID = exports.ALL_REVENUE_CALCULATED_SECTION_IDS = exports.isRevenueSectionID = exports.ALL_REVENUE_SECTION_IDS = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
exports.ALL_REVENUE_SECTION_IDS = ['cogs', 'income'];
|
|
6
6
|
const toRevenueSectionID = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_REVENUE_SECTION_IDS);
|
|
7
|
-
exports.toRevenueSectionID = toRevenueSectionID;
|
|
8
7
|
const isRevenueSectionID = (id) => exports.ALL_REVENUE_SECTION_IDS.find((sectionId) => id === sectionId) != null;
|
|
9
8
|
exports.isRevenueSectionID = isRevenueSectionID;
|
|
10
9
|
exports.ALL_REVENUE_CALCULATED_SECTION_IDS = ['grossMargin'];
|
|
11
10
|
const toRevenueCalculatedSectionID = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_REVENUE_CALCULATED_SECTION_IDS);
|
|
12
|
-
exports.toRevenueCalculatedSectionID = toRevenueCalculatedSectionID;
|
|
13
11
|
const isRevenueCalculatedSectionID = (id) => exports.ALL_REVENUE_CALCULATED_SECTION_IDS.find((calcId) => id === calcId) != null;
|
|
14
12
|
exports.isRevenueCalculatedSectionID = isRevenueCalculatedSectionID;
|
|
15
13
|
exports.revenueIdsInOrder = ['income', 'cogs', 'grossMargin'];
|
|
@@ -2,14 +2,14 @@ import { ClassesViewSelectorReportV2 } from '../../commonStateTypes/selectorType
|
|
|
2
2
|
import { InsightSummary } from '../../entity/insights/insightSummary';
|
|
3
3
|
import { RevenueClassesViewUIState } from './revenueClassesViewState';
|
|
4
4
|
export declare const ALL_REVENUE_CLASSES_VIEW_SECTION_IDS: readonly ["cogs", "income"];
|
|
5
|
-
|
|
5
|
+
declare const toRevenueClassesViewSectionID: (v: string) => "cogs" | "income";
|
|
6
6
|
export declare type RevenueClassesViewSectionID = ReturnType<typeof toRevenueClassesViewSectionID>;
|
|
7
7
|
export declare const isRevenueClassesViewSectionID: (id: string) => id is "cogs" | "income";
|
|
8
|
-
|
|
9
|
-
export declare const toRevenueClassesViewCalculatedSectionID: (v: string) => "grossMargin";
|
|
8
|
+
declare const toRevenueClassesViewCalculatedSectionID: (v: string) => "grossMargin";
|
|
10
9
|
export declare type RevenueClassesViewCalculatedSectionID = ReturnType<typeof toRevenueClassesViewCalculatedSectionID>;
|
|
11
10
|
export declare const isRevenueClassesViewCalculatedSectionID: (id: string) => id is "grossMargin";
|
|
12
11
|
export interface RevenueClassesViewReport extends ClassesViewSelectorReportV2<RevenueClassesViewSectionID, RevenueClassesViewCalculatedSectionID> {
|
|
13
12
|
uiState: RevenueClassesViewUIState;
|
|
14
13
|
insights: InsightSummary[];
|
|
15
14
|
}
|
|
15
|
+
export {};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isRevenueClassesViewCalculatedSectionID = exports.
|
|
3
|
+
exports.isRevenueClassesViewCalculatedSectionID = exports.isRevenueClassesViewSectionID = exports.ALL_REVENUE_CLASSES_VIEW_SECTION_IDS = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
exports.ALL_REVENUE_CLASSES_VIEW_SECTION_IDS = ['cogs', 'income'];
|
|
6
6
|
const toRevenueClassesViewSectionID = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_REVENUE_CLASSES_VIEW_SECTION_IDS);
|
|
7
|
-
exports.toRevenueClassesViewSectionID = toRevenueClassesViewSectionID;
|
|
8
7
|
const isRevenueClassesViewSectionID = (id) => exports.ALL_REVENUE_CLASSES_VIEW_SECTION_IDS.find((sectionId) => id === sectionId) != null;
|
|
9
8
|
exports.isRevenueClassesViewSectionID = isRevenueClassesViewSectionID;
|
|
10
|
-
|
|
9
|
+
const ALL_REVENUE_CLASSES_VIEW_CALCULATED_SECTION_IDS = [
|
|
11
10
|
'grossMargin',
|
|
12
11
|
];
|
|
13
|
-
const toRevenueClassesViewCalculatedSectionID = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
14
|
-
|
|
15
|
-
const isRevenueClassesViewCalculatedSectionID = (id) => exports.ALL_REVENUE_CLASSES_VIEW_CALCULATED_SECTION_IDS.find((calcId) => id === calcId) != null;
|
|
12
|
+
const toRevenueClassesViewCalculatedSectionID = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_REVENUE_CLASSES_VIEW_CALCULATED_SECTION_IDS);
|
|
13
|
+
const isRevenueClassesViewCalculatedSectionID = (id) => ALL_REVENUE_CLASSES_VIEW_CALCULATED_SECTION_IDS.find((calcId) => id === calcId) != null;
|
|
16
14
|
exports.isRevenueClassesViewCalculatedSectionID = isRevenueClassesViewCalculatedSectionID;
|
|
@@ -39,9 +39,10 @@ export interface AuditRuleGroupsPayload {
|
|
|
39
39
|
audit_rule_groups: AuditRuleGroupPayload[];
|
|
40
40
|
version: string;
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
interface ReviewCompanyViewPayload {
|
|
43
43
|
companies: ReviewCompanyPayload[];
|
|
44
44
|
}
|
|
45
45
|
export declare type ReviewCompanyListResponse = ZeniAPIResponse<ReviewCompanyViewPayload>;
|
|
46
46
|
export declare type AuditRuleGroupsResponse = ZeniAPIResponse<AuditRuleGroupsPayload>;
|
|
47
47
|
export declare type RetryBankAccountConnectionResponse = ZeniAPIResponse<ReviewCompanyViewPayload>;
|
|
48
|
+
export {};
|
|
@@ -3,7 +3,6 @@ import { SortOrder } from '../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
|
3
3
|
import { OnboardingInfo } from '../../entity/company/companyStateTypes';
|
|
4
4
|
import { ZeniDate } from '../../zeniDayJS';
|
|
5
5
|
import { AuditSummaryPayload, ReviewCompanyPayload } from './reviewCompanyPayload';
|
|
6
|
-
export declare const REVIEW_COMPANY_COLUMN_KEYS: readonly ["auditScore", "miscategorized", "companyName", "notes", "uncategorized", "warnings", "vendorReview", "reviewVendor"];
|
|
7
6
|
export declare const toReviewColumnKeyType: (v: string) => "companyName" | "notes" | "auditScore" | "miscategorized" | "uncategorized" | "warnings" | "vendorReview" | "reviewVendor";
|
|
8
7
|
export declare type ReviewCompanyColumnKey = ReturnType<typeof toReviewColumnKeyType>;
|
|
9
8
|
export declare type ReviewTransactionsType = 'income' | 'expense';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toReviewCompany = exports.toAuditSummary = exports.toReviewColumnKeyType =
|
|
3
|
+
exports.toReviewCompany = exports.toAuditSummary = exports.toReviewColumnKeyType = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
const companyPayload_1 = require("../../entity/company/companyPayload");
|
|
6
6
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
7
|
-
|
|
7
|
+
const REVIEW_COMPANY_COLUMN_KEYS = [
|
|
8
8
|
'auditScore',
|
|
9
9
|
'miscategorized',
|
|
10
10
|
'companyName',
|
|
@@ -14,7 +14,7 @@ exports.REVIEW_COMPANY_COLUMN_KEYS = [
|
|
|
14
14
|
'vendorReview',
|
|
15
15
|
'reviewVendor',
|
|
16
16
|
];
|
|
17
|
-
const toReviewColumnKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
17
|
+
const toReviewColumnKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, REVIEW_COMPANY_COLUMN_KEYS);
|
|
18
18
|
exports.toReviewColumnKeyType = toReviewColumnKeyType;
|
|
19
19
|
const toAuditSummary = (auditSummaryPayload) => {
|
|
20
20
|
return {
|
|
@@ -7,7 +7,6 @@ import { ScheduleJournalEntryStatusCodeType, ScheduleTypes } from '../../../enti
|
|
|
7
7
|
import { TransactionID } from '../../../entity/transaction/stateTypes/transaction';
|
|
8
8
|
import { AccountType } from '../../../entity/account/accountState';
|
|
9
9
|
import { JEScheduleOtherAttributes } from '../../../entity/jeSchedules/jeSchedulesState';
|
|
10
|
-
export declare const DUMMY_TRANSACTION_ID = "dummyid";
|
|
11
10
|
export declare const getPostingDateAndStatusForIndex: (schedulePostingMonth: number, schedulePostingYear: number, postingDay?: 2 | 1 | 22 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | 28 | undefined) => {
|
|
12
11
|
postingDate: ZeniDate;
|
|
13
12
|
postingStatus: ScheduleJournalEntryStatusCodeType;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAccountsTypesForScheduleDetails = exports.getJETransactionLinkFromThirdPartyId = exports.getThirdPartyIDFromQBOURL = exports.getQBOUrlForLink = exports.updateAmountsInScheduleDetails = exports.getInitializedFixedAssetsJEScheduleDetailsLocalData = exports.getInitializedJEScheduleDetailsLocalData = exports.createNewSchedulesHelper = exports.getPostingDateAndStatusForIndex =
|
|
3
|
+
exports.getAccountsTypesForScheduleDetails = exports.getJETransactionLinkFromThirdPartyId = exports.getThirdPartyIDFromQBOURL = exports.getQBOUrlForLink = exports.updateAmountsInScheduleDetails = exports.getInitializedFixedAssetsJEScheduleDetailsLocalData = exports.getInitializedJEScheduleDetailsLocalData = exports.createNewSchedulesHelper = exports.getPostingDateAndStatusForIndex = void 0;
|
|
4
4
|
const amount_1 = require("../../../commonStateTypes/amount");
|
|
5
5
|
const zeniUrl_1 = require("../../../zeniUrl");
|
|
6
6
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
7
7
|
const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
8
|
-
|
|
8
|
+
const DUMMY_TRANSACTION_ID = 'dummyid';
|
|
9
9
|
const getPostingDateAndStatusForIndex = function (schedulePostingMonth, schedulePostingYear, postingDay) {
|
|
10
10
|
// For the index, (1-12) find the posting date
|
|
11
11
|
const dateOfTransaction = postingDay !== null && postingDay !== void 0 ? postingDay : 31;
|
|
@@ -190,7 +190,7 @@ const getThirdPartyIDFromQBOURL = (jeLinkURL) => {
|
|
|
190
190
|
thirdPartyTransactionId: thirdPartyID,
|
|
191
191
|
transactionDetailID: thirdPartyID != null
|
|
192
192
|
? {
|
|
193
|
-
id: `${
|
|
193
|
+
id: `${DUMMY_TRANSACTION_ID}:${thirdPartyID}`,
|
|
194
194
|
type: 'journal_entry',
|
|
195
195
|
}
|
|
196
196
|
: undefined,
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { RootState } from '../../../reducer';
|
|
2
|
-
import {
|
|
2
|
+
import { ScheduleDetailsLocalData } from './scheduleDetailState';
|
|
3
3
|
import { JEScheduleKey, ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
|
|
4
4
|
import { VendorBasePayload } from '../../../entity/vendor/vendorPayload';
|
|
5
|
-
import { JEScheduledTransaction } from '../../../entity/jeSchedules/jeSchedulesSelector';
|
|
6
|
-
import { Vendor, VendorState } from '../../../entity/vendor/vendorState';
|
|
7
|
-
import { ScheduleTransaction } from '../../../entity/transaction/stateTypes/scheduleTransaction';
|
|
8
5
|
import { AccountBasePayload } from '../../../entity/account/accountPayload';
|
|
9
6
|
import { ClassBasePayload } from '../../../entity/class/classPayload';
|
|
10
7
|
import { TransactionIDPayload } from '../../../entity/transaction/payloadTypes/transactionIDPayload';
|
|
11
8
|
import { StatusCodeWithLabelPayload } from '../../../commonPayloadTypes/statusPayload';
|
|
12
9
|
import { JEScheduleOtherAttributesPayload } from '../../../entity/jeSchedules/jeSchedulesPayload';
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
declare type BaseScheduleTransactionPayload = SaveScheduleTransactionPayload;
|
|
11
|
+
interface JESchedulePayload {
|
|
15
12
|
status: StatusCodeWithLabelPayload;
|
|
16
13
|
vendor: VendorBasePayload;
|
|
17
14
|
currency_code: string;
|
|
@@ -31,7 +28,7 @@ export interface JESchedulePayload {
|
|
|
31
28
|
is_deleted?: boolean;
|
|
32
29
|
je_schedule_id?: string;
|
|
33
30
|
}
|
|
34
|
-
|
|
31
|
+
interface SaveJESchedulePayload {
|
|
35
32
|
status: StatusCodeWithLabelPayload;
|
|
36
33
|
transaction_memo: string | null;
|
|
37
34
|
third_party_id: string | null;
|
|
@@ -46,20 +43,16 @@ export interface SaveJESchedulePayload {
|
|
|
46
43
|
create_time: string | null;
|
|
47
44
|
is_deleted?: boolean;
|
|
48
45
|
}
|
|
49
|
-
|
|
46
|
+
interface SaveScheduleTransactionPayload extends TransactionIDPayload, Omit<AccountBasePayload, 'qbo_id'>, Omit<ClassBasePayload, 'qbo_id'> {
|
|
50
47
|
third_party_transaction_id: string | null;
|
|
51
48
|
transaction_date: string | null;
|
|
52
49
|
total_amount: number | null;
|
|
53
50
|
transaction_memo: string | null;
|
|
54
51
|
line_id: string | null;
|
|
55
52
|
}
|
|
56
|
-
|
|
53
|
+
interface SaveScheduleDetailPayload {
|
|
57
54
|
je_schedules: JESchedulePayload[];
|
|
58
55
|
scheduled_journal_entries: SaveJESchedulePayload[];
|
|
59
56
|
}
|
|
60
|
-
export declare const mapVendorToVendorPayload: (payload: Vendor) => VendorBasePayload;
|
|
61
|
-
export declare const mapScheduleTransactionToBaseScheduleTransactionPayload: (payload: ScheduleTransaction) => BaseScheduleTransactionPayload;
|
|
62
|
-
export declare const mapJEScheduleLocalDataToScheduleDetailPayload: (jeScheduleDetails: JEScheduleDetailsLocalData[], jeScheduleTransactionState: JEScheduledTransaction, isDelete?: boolean | undefined) => SaveJESchedulePayload[];
|
|
63
|
-
export declare const mapJEScheduleTransactionToPayload: (jeScheduleTransactionState: JEScheduledTransaction, vendorState: VendorState, scheduleDetailsLocalData: ScheduleDetailsLocalData, jeScheduleType: ScheduleTypes, isDelete?: boolean | undefined, isMarkAsComplete?: boolean | undefined) => JESchedulePayload;
|
|
64
|
-
export declare const mapFixedAssetJEScheduleTransactionToPayload: (jeScheduleTransactionState: JEScheduledTransaction, vendorState: VendorState, scheduleDetailsLocalData: ScheduleDetailsLocalDataFixedAssets, isDelete?: boolean | undefined, isMarkAsComplete?: boolean | undefined) => JESchedulePayload;
|
|
65
57
|
export declare const prepareScheduleDetailPayload: (state: RootState, scheduleDetailsLocalData: ScheduleDetailsLocalData, selectedJEScheduleKey: JEScheduleKey, jeScheduleType: ScheduleTypes, isDelete?: boolean | undefined, isMarkAsComplete?: boolean | undefined) => SaveScheduleDetailPayload;
|
|
58
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.prepareScheduleDetailPayload =
|
|
3
|
+
exports.prepareScheduleDetailPayload = void 0;
|
|
4
4
|
const jeSchedulesSelector_1 = require("../../../entity/jeSchedules/jeSchedulesSelector");
|
|
5
5
|
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
6
6
|
const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
@@ -8,7 +8,6 @@ const mapVendorToVendorPayload = (payload) => ({
|
|
|
8
8
|
vendor_id: payload.id,
|
|
9
9
|
vendor_name: payload.name,
|
|
10
10
|
});
|
|
11
|
-
exports.mapVendorToVendorPayload = mapVendorToVendorPayload;
|
|
12
11
|
const mapScheduleTransactionToBaseScheduleTransactionPayload = (payload) => {
|
|
13
12
|
var _a, _b;
|
|
14
13
|
return {
|
|
@@ -26,7 +25,6 @@ const mapScheduleTransactionToBaseScheduleTransactionPayload = (payload) => {
|
|
|
26
25
|
accounting_class_name: payload.classBase != null ? payload.classBase.className : '',
|
|
27
26
|
};
|
|
28
27
|
};
|
|
29
|
-
exports.mapScheduleTransactionToBaseScheduleTransactionPayload = mapScheduleTransactionToBaseScheduleTransactionPayload;
|
|
30
28
|
const mapJEScheduleLocalDataToScheduleDetailPayload = (jeScheduleDetails, jeScheduleTransactionState, isDelete) => {
|
|
31
29
|
const scheduleJournalEntry = jeScheduleTransactionState.scheduledJournalEntry;
|
|
32
30
|
return jeScheduleDetails.length > 0
|
|
@@ -70,7 +68,6 @@ const mapJEScheduleLocalDataToScheduleDetailPayload = (jeScheduleDetails, jeSche
|
|
|
70
68
|
})
|
|
71
69
|
: [];
|
|
72
70
|
};
|
|
73
|
-
exports.mapJEScheduleLocalDataToScheduleDetailPayload = mapJEScheduleLocalDataToScheduleDetailPayload;
|
|
74
71
|
const getBalanceAmountAsOfToday = ({ isMarkAsComplete, balanceAsOfToday, baseTransaction, }) => {
|
|
75
72
|
if (isMarkAsComplete === true) {
|
|
76
73
|
return 0;
|
|
@@ -126,7 +123,7 @@ const mapJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorSta
|
|
|
126
123
|
const vendorDetails = vendorState.vendorByID[vendorID];
|
|
127
124
|
const payload = {
|
|
128
125
|
status: updatedStatus,
|
|
129
|
-
vendor:
|
|
126
|
+
vendor: mapVendorToVendorPayload(vendorDetails),
|
|
130
127
|
currency_code: currencyCode,
|
|
131
128
|
currency_symbol: currencySymbol,
|
|
132
129
|
period: selectedMonths !== null && selectedMonths !== void 0 ? selectedMonths : null,
|
|
@@ -151,12 +148,11 @@ const mapJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorSta
|
|
|
151
148
|
je_debit_account_id: selectedAccount !== null && selectedAccount !== void 0 ? selectedAccount : null,
|
|
152
149
|
je_debit_accounting_class_id: selectedClass !== null && selectedClass !== void 0 ? selectedClass : null,
|
|
153
150
|
other_attributes: {},
|
|
154
|
-
base_transaction:
|
|
151
|
+
base_transaction: mapScheduleTransactionToBaseScheduleTransactionPayload(baseTransaction),
|
|
155
152
|
};
|
|
156
153
|
return isDelete === true
|
|
157
154
|
? Object.assign(Object.assign({}, payload), { is_deleted: true }) : payload;
|
|
158
155
|
};
|
|
159
|
-
exports.mapJEScheduleTransactionToPayload = mapJEScheduleTransactionToPayload;
|
|
160
156
|
const mapFixedAssetJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, isDelete, isMarkAsComplete) => {
|
|
161
157
|
var _a, _b;
|
|
162
158
|
const { vendor, currencyCode, currencySymbol, baseTransaction, status, startDate, endDate, balanceAsOfToday, jeScheduleId, } = jeScheduleTransactionState;
|
|
@@ -187,7 +183,7 @@ const mapFixedAssetJEScheduleTransactionToPayload = (jeScheduleTransactionState,
|
|
|
187
183
|
const vendorDetails = vendorState.vendorByID[vendorID];
|
|
188
184
|
const payload = {
|
|
189
185
|
status: updatedStatus,
|
|
190
|
-
vendor:
|
|
186
|
+
vendor: mapVendorToVendorPayload(vendorDetails),
|
|
191
187
|
currency_code: currencyCode,
|
|
192
188
|
currency_symbol: currencySymbol,
|
|
193
189
|
period: selectedMonths !== null && selectedMonths !== void 0 ? selectedMonths : null,
|
|
@@ -215,12 +211,11 @@ const mapFixedAssetJEScheduleTransactionToPayload = (jeScheduleTransactionState,
|
|
|
215
211
|
asset_id: assetId,
|
|
216
212
|
}
|
|
217
213
|
: {},
|
|
218
|
-
base_transaction:
|
|
214
|
+
base_transaction: mapScheduleTransactionToBaseScheduleTransactionPayload(baseTransaction),
|
|
219
215
|
};
|
|
220
216
|
return isDelete === true
|
|
221
217
|
? Object.assign(Object.assign({}, payload), { is_deleted: true }) : payload;
|
|
222
218
|
};
|
|
223
|
-
exports.mapFixedAssetJEScheduleTransactionToPayload = mapFixedAssetJEScheduleTransactionToPayload;
|
|
224
219
|
const prepareScheduleDetailPayload = (state, scheduleDetailsLocalData, selectedJEScheduleKey, jeScheduleType, isDelete, isMarkAsComplete) => {
|
|
225
220
|
const payload = {
|
|
226
221
|
je_schedules: [],
|
|
@@ -232,15 +227,15 @@ const prepareScheduleDetailPayload = (state, scheduleDetailsLocalData, selectedJ
|
|
|
232
227
|
payload.je_schedules =
|
|
233
228
|
jeScheduleType !== 'fixed_assets'
|
|
234
229
|
? [
|
|
235
|
-
|
|
230
|
+
mapJEScheduleTransactionToPayload(jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, jeScheduleType, isDelete, isMarkAsComplete),
|
|
236
231
|
]
|
|
237
232
|
: [
|
|
238
|
-
|
|
233
|
+
mapFixedAssetJEScheduleTransactionToPayload(jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, isDelete, isMarkAsComplete),
|
|
239
234
|
];
|
|
240
235
|
payload.scheduled_journal_entries =
|
|
241
236
|
isMarkAsComplete === true
|
|
242
237
|
? []
|
|
243
|
-
:
|
|
238
|
+
: mapJEScheduleLocalDataToScheduleDetailPayload(jeScheduleDetailsLocalData, jeScheduleTransactionState, isDelete);
|
|
244
239
|
return payload;
|
|
245
240
|
};
|
|
246
241
|
exports.prepareScheduleDetailPayload = prepareScheduleDetailPayload;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const toScheduleDetailSortKeyType: (v: string) => "amount" | "memo" | "jePostingDate" | "runningBalance" | "postingStatus" | "jeLink";
|
|
1
|
+
declare const toScheduleDetailSortKeyType: (v: string) => "amount" | "memo" | "jePostingDate" | "runningBalance" | "postingStatus" | "jeLink";
|
|
3
2
|
export declare type ScheduleDetailSortKey = ReturnType<typeof toScheduleDetailSortKeyType>;
|
|
3
|
+
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toScheduleDetailSortKeyType = exports.ALL_SCHEDULE_DETAIL_SORT_KEYS = void 0;
|
|
4
3
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
|
-
|
|
4
|
+
const ALL_SCHEDULE_DETAIL_SORT_KEYS = [
|
|
6
5
|
'jePostingDate',
|
|
7
6
|
'amount',
|
|
8
7
|
'runningBalance',
|
|
@@ -10,5 +9,4 @@ exports.ALL_SCHEDULE_DETAIL_SORT_KEYS = [
|
|
|
10
9
|
'jeLink',
|
|
11
10
|
'memo',
|
|
12
11
|
];
|
|
13
|
-
const toScheduleDetailSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
14
|
-
exports.toScheduleDetailSortKeyType = toScheduleDetailSortKeyType;
|
|
12
|
+
const toScheduleDetailSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SCHEDULE_DETAIL_SORT_KEYS);
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { NestedAccountHierarchyForReport } from '../../../commonStateTypes/accountView/nestedAccountID';
|
|
2
2
|
import { Amount } from '../../../commonStateTypes/amount';
|
|
3
|
-
import {
|
|
3
|
+
import { COABalanceGroupedByPeriod } from '../../../commonStateTypes/coaBalance/coaBalance';
|
|
4
4
|
import { TimeframeTick, TimeframeTickWithMetaData } from '../../../commonStateTypes/timeframeTick';
|
|
5
5
|
import { AccountBase, AccountLabel, AccountType } from '../../../entity/account/accountState';
|
|
6
|
-
import { JEScheduledTransaction
|
|
6
|
+
import { JEScheduledTransaction } from '../../../entity/jeSchedules/jeSchedulesSelector';
|
|
7
7
|
import { ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
|
|
8
8
|
import { AccountListKeyType } from '../../accountList/accountListState';
|
|
9
9
|
import { JEScheduledTransactionWithBalance } from './scheduleListSelector';
|
|
10
|
-
export declare const scheduleTypesAccountLabels: Record<ScheduleTypes, AccountType>;
|
|
11
|
-
export declare type TimeframeTickBalances = Record<string, COABalance[]>;
|
|
12
10
|
export interface ScheduleTotalType {
|
|
13
11
|
totalAmount: Amount;
|
|
14
12
|
totalRunningBalances: Amount;
|
|
@@ -21,7 +19,6 @@ export interface ScheduleTotalType {
|
|
|
21
19
|
*/
|
|
22
20
|
export declare const getCalculatedScheduleTotals: (jeTransactions: JEScheduledTransaction[]) => ScheduleTotalType;
|
|
23
21
|
export declare const getAccountListKeyForSchedules: () => AccountListKeyType;
|
|
24
|
-
export declare const getAccountLabelForSchedulesTab: (tab: ScheduleTypes) => AccountLabel;
|
|
25
22
|
export declare const getAllAccountBase: () => AccountBase;
|
|
26
23
|
export declare const getAllAccountNested: () => NestedAccountHierarchyForReport;
|
|
27
24
|
/**
|
|
@@ -32,20 +29,6 @@ export declare const getAllAccountNested: () => NestedAccountHierarchyForReport;
|
|
|
32
29
|
* @returns
|
|
33
30
|
*/
|
|
34
31
|
export declare const getAllTimeframeTicks: (sortedJETransactionView: JEScheduledTransaction[], startMonth: number) => TimeframeTickWithMetaData[];
|
|
35
|
-
/**
|
|
36
|
-
* This is a helper function to map totalBalanceTimeframeTicks to COABalance
|
|
37
|
-
* @param totalBalanceTimeframeTicks
|
|
38
|
-
* @returns
|
|
39
|
-
*/
|
|
40
|
-
export declare const mapTotalBalanceTimeframeTickToCOAGroupedBalance: (totalBalanceTimeframeTicks: TimeframeTickBalances) => COABalance[];
|
|
41
|
-
/**
|
|
42
|
-
* This function setting default values in the totalBalanceTimeframeTicks using allTimeframeTicks
|
|
43
|
-
* e.g {'Feb 2023' : [], 'Mar 2023' : [], 'Apr 2023' : [], 'Jun 2023' : [], 'Jun 2023' : [], 'Jul 2023' : []}
|
|
44
|
-
*
|
|
45
|
-
* @param allTimeframeTicks
|
|
46
|
-
* @returns
|
|
47
|
-
*/
|
|
48
|
-
export declare const setDefaultTotalBalanceTimeframeTicks: (allTimeframeTicks: TimeframeTickWithMetaData[]) => TimeframeTickBalances;
|
|
49
32
|
/**
|
|
50
33
|
* This function returns an COABalanceGroupedByPeriod (months, weeks, years, quarters) with an array of COABalances
|
|
51
34
|
* in which we loop over the totalBalanceTimeframeTicks which is a record of <Labels(mm yy), Balances>- {'Feb 2023' : [20, 30, 40]}
|
|
@@ -56,15 +39,6 @@ export declare const setDefaultTotalBalanceTimeframeTicks: (allTimeframeTicks: T
|
|
|
56
39
|
* @returns
|
|
57
40
|
*/
|
|
58
41
|
export declare const calculateTotalBalanceTimeframeTick: (allTimeframeTickBalances: JEScheduledTransactionWithBalance[], allTimeframeTicks: TimeframeTickWithMetaData[], timeframe: 'months') => COABalanceGroupedByPeriod;
|
|
59
|
-
/**
|
|
60
|
-
* This is a helper function just to map COABalance for every ScheduledJournalEntry
|
|
61
|
-
* @param scheduleJournal
|
|
62
|
-
* @param currencyCode
|
|
63
|
-
* @param currencySymbol
|
|
64
|
-
* @param timeframe
|
|
65
|
-
* @returns
|
|
66
|
-
*/
|
|
67
|
-
export declare const mapScheduleJournalToCOABalance: (scheduleJournal: ScheduledJournalEntry, currencyCode: string, currencySymbol: string, timeframe: 'month') => COABalance;
|
|
68
42
|
/**
|
|
69
43
|
* This function helps us in finding COABalanceGroupedByPeriod for months
|
|
70
44
|
* @param jeSchedule
|