@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Balance
|
|
2
|
-
|
|
1
|
+
import { Balance } from '../commonStateTypes/balance';
|
|
2
|
+
interface BalanceChangePayload {
|
|
3
3
|
available?: number;
|
|
4
4
|
available_percent?: number;
|
|
5
5
|
current?: number;
|
|
@@ -17,4 +17,4 @@ export interface BalancePayload {
|
|
|
17
17
|
change?: BalanceChangePayload;
|
|
18
18
|
}
|
|
19
19
|
export declare const mapBalancePayloadToBalance: (payload: BalancePayload) => Balance;
|
|
20
|
-
export
|
|
20
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.mapBalancePayloadToBalance = void 0;
|
|
4
4
|
const amount_1 = require("../commonStateTypes/amount");
|
|
5
5
|
const zeniDayJS_1 = require("../zeniDayJS");
|
|
6
6
|
const mapBalancePayloadToBalance = (payload) => {
|
|
@@ -8,7 +8,7 @@ const mapBalancePayloadToBalance = (payload) => {
|
|
|
8
8
|
return ({
|
|
9
9
|
available: (0, amount_1.toAmount)((_a = payload.available) !== null && _a !== void 0 ? _a : 0, payload.currency_code, payload.currency_symbol),
|
|
10
10
|
change: payload.change
|
|
11
|
-
?
|
|
11
|
+
? mapBalanceChangePayloadToBalanceChange(payload.change)
|
|
12
12
|
: undefined,
|
|
13
13
|
});
|
|
14
14
|
};
|
|
@@ -25,4 +25,3 @@ const mapBalanceChangePayloadToBalanceChange = (payload) => ({
|
|
|
25
25
|
: (0, amount_1.toAmount)(payload.current, payload.currency_code, payload.currency_symbol),
|
|
26
26
|
currentPercent: payload.current_percent,
|
|
27
27
|
});
|
|
28
|
-
exports.mapBalanceChangePayloadToBalanceChange = mapBalanceChangePayloadToBalanceChange;
|
|
@@ -9,12 +9,10 @@ export interface ReportByClassMetadataPayloadV2 extends ReportPayloadV2 {
|
|
|
9
9
|
classes: ClassMetadataPayload[];
|
|
10
10
|
accounts: AccountMetadataPayload[];
|
|
11
11
|
}
|
|
12
|
-
export interface ClassAccountCOABalanceGroupedPayloadV2 extends COABalanceGroupedPayloadV2 {
|
|
13
|
-
}
|
|
14
12
|
export interface ClassCOABalanceGroupedPayloadV2 extends COABalanceGroupedPayloadV2 {
|
|
15
13
|
accounts: AccountCOABalanceGroupedPayloadByAccountId;
|
|
16
14
|
}
|
|
17
|
-
|
|
15
|
+
interface ClassCOABalanceGroupedPayloadByClassIdV2 {
|
|
18
16
|
[class_Id: string]: ClassCOABalanceGroupedPayloadV2;
|
|
19
17
|
}
|
|
20
18
|
export interface SectionByClassCOABalanceGroupedPayloadV2 extends COABalanceGroupedPayloadV2 {
|
|
@@ -26,3 +24,4 @@ export interface ClassMetadataWithBalancesPayloadV2 {
|
|
|
26
24
|
nestedClassId: NestedClassID;
|
|
27
25
|
nestedAccountIds: NestedAccountIDHierarchy[];
|
|
28
26
|
}
|
|
27
|
+
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/*
|
|
4
4
|
ToDo:: Define this type individually for each report if platform is not supporting this.
|
|
5
|
-
|
|
5
|
+
interface PandLReportByClassPayload {
|
|
6
6
|
metadata: ReportByClassMetadataPayload;
|
|
7
7
|
sections: Record<string, SectionByClassCOABalanceGroupedPayload>; // Record<section_id, SectionCOABalanceGroupedPayload>
|
|
8
8
|
calculated_sections: Record<string, COABalanceGroupedByPeriodPayload>; // Record<calcualted_section_id, COABalanceGroupedByPeriodPayload>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BalancePayload } from './balanceChangePayload';
|
|
2
|
-
import { COABalanceTimeFrame, COABalance, COABalanceGrouped, COABalanceGroupedWithIDs, COABalanceGroupedWithAccountIDs
|
|
2
|
+
import { COABalanceTimeFrame, COABalance, COABalanceGrouped, COABalanceGroupedWithIDs, COABalanceGroupedWithAccountIDs } from '../commonStateTypes/coaBalance/coaBalance';
|
|
3
3
|
import { COABalanceType } from '../commonStateTypes/coaBalance/coaBalanceType';
|
|
4
4
|
/**
|
|
5
5
|
* Interface for any Chart of Account (COA) balance payload in a
|
|
@@ -38,20 +38,14 @@ export interface COABalanceGroupedPayload extends COABalanceGroupedByPeriodPaylo
|
|
|
38
38
|
years?: COABalancePayload;
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
export interface COABalanceWithAveragesGroupedPayload extends COABalanceGroupedPayload {
|
|
42
|
-
averages?: {
|
|
43
|
-
months?: COABalancePayload;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
41
|
export declare const mapCOABalanceGroupedPayloadToCOABalanceGrouped: (payload: COABalanceGroupedPayload) => COABalanceGrouped;
|
|
47
|
-
export declare const mapCOABalanceGroupedWithAveragesPayloadToCOABalanceGrouped: (payload: COABalanceWithAveragesGroupedPayload) => COABalanceWithAveragesGrouped;
|
|
48
42
|
export interface COABalanceGroupedWithIDsPayload extends COABalanceGroupedPayload {
|
|
49
43
|
account_group_ids?: string[];
|
|
50
44
|
account_ids?: string[];
|
|
51
45
|
}
|
|
52
46
|
export declare const mapCOABalanceGroupedWithIDsPayloadToCOABalanceGroupedWithIDs: (payload: COABalanceGroupedWithIDsPayload) => COABalanceGroupedWithIDs;
|
|
53
|
-
|
|
47
|
+
interface COABalanceGroupedWithAccountIDsPayload extends COABalanceGroupedPayload {
|
|
54
48
|
account_ids: string[];
|
|
55
49
|
}
|
|
56
50
|
export declare const mapCOABalanceGroupedWithAccountIDsPayloadToCOABalanceGroupedWithAccountIDs: (payload: COABalanceGroupedWithAccountIDsPayload) => COABalanceGroupedWithAccountIDs;
|
|
57
|
-
export
|
|
51
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.mapCOABalanceGroupedWithAccountIDsPayloadToCOABalanceGroupedWithAccountIDs = exports.mapCOABalanceGroupedWithIDsPayloadToCOABalanceGroupedWithIDs = exports.mapCOABalanceGroupedPayloadToCOABalanceGrouped = exports.mapCOABalancePayloadToCOABalance = void 0;
|
|
4
4
|
const amount_1 = require("../commonStateTypes/amount");
|
|
5
5
|
const zeniDayJS_1 = require("../zeniDayJS");
|
|
6
6
|
/**
|
|
@@ -55,16 +55,6 @@ const mapCOABalanceGroupedPayloadToCOABalanceGrouped = (payload) => {
|
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
exports.mapCOABalanceGroupedPayloadToCOABalanceGrouped = mapCOABalanceGroupedPayloadToCOABalanceGrouped;
|
|
58
|
-
const mapCOABalanceGroupedWithAveragesPayloadToCOABalanceGrouped = (payload) => {
|
|
59
|
-
const { averages } = Object.assign({}, payload);
|
|
60
|
-
const response = (0, exports.mapCOABalanceGroupedPayloadToCOABalanceGrouped)(payload);
|
|
61
|
-
return Object.assign(Object.assign({}, response), { averages: {
|
|
62
|
-
months: (averages === null || averages === void 0 ? void 0 : averages.months) == null || !Object.keys(averages === null || averages === void 0 ? void 0 : averages.months).length
|
|
63
|
-
? undefined
|
|
64
|
-
: (0, exports.mapCOABalancePayloadToCOABalance)(averages.months),
|
|
65
|
-
} });
|
|
66
|
-
};
|
|
67
|
-
exports.mapCOABalanceGroupedWithAveragesPayloadToCOABalanceGrouped = mapCOABalanceGroupedWithAveragesPayloadToCOABalanceGrouped;
|
|
68
58
|
const mapCOABalanceGroupedWithIDsPayloadToCOABalanceGroupedWithIDs = (payload) => {
|
|
69
59
|
var _a, _b;
|
|
70
60
|
return (Object.assign({ accountGroupIDs: (_a = payload.account_group_ids) !== null && _a !== void 0 ? _a : [], accountIDs: (_b = payload.account_ids) !== null && _b !== void 0 ? _b : [] }, (0, exports.mapCOABalanceGroupedPayloadToCOABalanceGrouped)(payload)));
|
|
@@ -72,21 +62,3 @@ const mapCOABalanceGroupedWithIDsPayloadToCOABalanceGroupedWithIDs = (payload) =
|
|
|
72
62
|
exports.mapCOABalanceGroupedWithIDsPayloadToCOABalanceGroupedWithIDs = mapCOABalanceGroupedWithIDsPayloadToCOABalanceGroupedWithIDs;
|
|
73
63
|
const mapCOABalanceGroupedWithAccountIDsPayloadToCOABalanceGroupedWithAccountIDs = (payload) => (Object.assign({ accountIDs: payload.account_ids }, (0, exports.mapCOABalanceGroupedPayloadToCOABalanceGrouped)(payload)));
|
|
74
64
|
exports.mapCOABalanceGroupedWithAccountIDsPayloadToCOABalanceGroupedWithAccountIDs = mapCOABalanceGroupedWithAccountIDsPayloadToCOABalanceGroupedWithAccountIDs;
|
|
75
|
-
const mapCOABalanceGroupedByPeriodPayloadToCOABalanceGroupedByPeriod = (payload, timeframe) => {
|
|
76
|
-
var _a, _b, _c;
|
|
77
|
-
switch (timeframe) {
|
|
78
|
-
case 'month':
|
|
79
|
-
return {
|
|
80
|
-
months: (_a = payload.months) === null || _a === void 0 ? void 0 : _a.map((p) => (0, exports.mapCOABalancePayloadToCOABalance)(p, 'month')),
|
|
81
|
-
};
|
|
82
|
-
case 'quarter':
|
|
83
|
-
return {
|
|
84
|
-
quarters: (_b = payload.quarters) === null || _b === void 0 ? void 0 : _b.map((p) => (0, exports.mapCOABalancePayloadToCOABalance)(p, 'quarter')),
|
|
85
|
-
};
|
|
86
|
-
case 'year':
|
|
87
|
-
return {
|
|
88
|
-
years: (_c = payload.years) === null || _c === void 0 ? void 0 : _c.map((p) => (0, exports.mapCOABalancePayloadToCOABalance)(p, 'year')),
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
exports.mapCOABalanceGroupedByPeriodPayloadToCOABalanceGroupedByPeriod = mapCOABalanceGroupedByPeriodPayloadToCOABalanceGroupedByPeriod;
|
|
@@ -8,12 +8,12 @@ export interface ReportByAccountMetadataPayload extends ReportPayloadV2 {
|
|
|
8
8
|
account_groups: AccountGroupMetadataPayload[];
|
|
9
9
|
accounts: AccountMetadataPayload[];
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
interface AccountCOABalanceGroupedPayload extends COABalanceGroupedPayloadV2 {
|
|
12
12
|
}
|
|
13
13
|
export interface AccountCOABalanceGroupedPayloadByAccountId {
|
|
14
14
|
[account_Id: string]: AccountCOABalanceGroupedPayload;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
interface AccountGroupCOABalanceGroupedPayload extends COABalanceGroupedByPeriodPayloadV2 {
|
|
17
17
|
accounts: AccountCOABalanceGroupedPayloadByAccountId;
|
|
18
18
|
}
|
|
19
19
|
export interface AccountGroupCOABalanceGroupedPayloadByAccountGroupId {
|
|
@@ -34,3 +34,4 @@ export interface AccountGroupMetadataWithBalancesPayload {
|
|
|
34
34
|
accountGroupBalances: COABalanceGroupedByPeriodPayloadV2;
|
|
35
35
|
nestedAccountIds: NestedAccountIDHierarchy[];
|
|
36
36
|
}
|
|
37
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { COABalance, COABalanceGrouped, COABalanceGroupedByPeriod, COABalanceTimeFrame } from '../../commonStateTypes/coaBalance/coaBalance';
|
|
2
2
|
import { COABalanceType } from '../../commonStateTypes/coaBalance/coaBalanceType';
|
|
3
3
|
import { CurrencyPayload } from './viewAndReportPayloadv2';
|
|
4
|
-
|
|
4
|
+
interface AmountPayloadV2 {
|
|
5
5
|
value: number | null;
|
|
6
6
|
total_value?: number | null;
|
|
7
7
|
forecast_value?: number | null;
|
|
@@ -54,3 +54,4 @@ export declare const mapCOABalanceGroupedByPeriodPayloadV2ToCOABalanceGroupedByP
|
|
|
54
54
|
* @returns
|
|
55
55
|
*/
|
|
56
56
|
export declare const combineCOABalanceGrouped: (payloadA: COABalanceGrouped, payloadB: COABalanceGrouped) => COABalanceGrouped;
|
|
57
|
+
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { COABalanceGroupedByPeriodPayloadV2 } from './coaBalancePayload';
|
|
2
|
-
/**
|
|
3
|
-
* Given an array of COABalanceGroupedByPeriodPayload, this function will add all balances
|
|
4
|
-
* across timeframes for every balance
|
|
5
|
-
* @param coaBalancesByPeriodPayloadArray
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare const getSumOfBalancesByGroupedByPeriodPayload: (coaBalancesByPeriodPayloadArray: COABalanceGroupedByPeriodPayloadV2[]) => COABalanceGroupedByPeriodPayloadV2 | undefined;
|
|
@@ -1,84 +1 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSumOfBalancesByGroupedByPeriodPayload = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Given an array of COABalanceGroupedByPeriodPayload, this function will add all balances
|
|
6
|
-
* across timeframes for every balance
|
|
7
|
-
* @param coaBalancesByPeriodPayloadArray
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
|
-
const getSumOfBalancesByGroupedByPeriodPayload = (coaBalancesByPeriodPayloadArray) => {
|
|
11
|
-
if (coaBalancesByPeriodPayloadArray.length <= 0) {
|
|
12
|
-
return undefined;
|
|
13
|
-
}
|
|
14
|
-
const coaBalancesArrayPayloadByPeriodPayload = extractCOABalancesArrayByPeriodPayload(coaBalancesByPeriodPayloadArray);
|
|
15
|
-
const resultCOABalanceGroupedByPeriodPayload = {
|
|
16
|
-
weeks: getSumForCOABalancesPayload(coaBalancesArrayPayloadByPeriodPayload.weeks),
|
|
17
|
-
months: getSumForCOABalancesPayload(coaBalancesArrayPayloadByPeriodPayload.months),
|
|
18
|
-
quarters: getSumForCOABalancesPayload(coaBalancesArrayPayloadByPeriodPayload.quarters),
|
|
19
|
-
years: getSumForCOABalancesPayload(coaBalancesArrayPayloadByPeriodPayload.years),
|
|
20
|
-
};
|
|
21
|
-
return resultCOABalanceGroupedByPeriodPayload;
|
|
22
|
-
};
|
|
23
|
-
exports.getSumOfBalancesByGroupedByPeriodPayload = getSumOfBalancesByGroupedByPeriodPayload;
|
|
24
|
-
const extractCOABalancesArrayByPeriodPayload = (coaBalancesPeriodPayloadArray) => {
|
|
25
|
-
const allBalancesPayloadInWeeks = [];
|
|
26
|
-
const allBalancesPayloadInMonths = [];
|
|
27
|
-
const allBalancesPayloadInQuarters = [];
|
|
28
|
-
const allBalancesPayloadInYears = [];
|
|
29
|
-
coaBalancesPeriodPayloadArray.forEach((coaBalanceGroupedPaylod) => {
|
|
30
|
-
if (coaBalanceGroupedPaylod.weeks != null &&
|
|
31
|
-
coaBalanceGroupedPaylod.weeks.length !== 0) {
|
|
32
|
-
allBalancesPayloadInWeeks.push(coaBalanceGroupedPaylod.weeks);
|
|
33
|
-
}
|
|
34
|
-
if (coaBalanceGroupedPaylod.months != null &&
|
|
35
|
-
coaBalanceGroupedPaylod.months.length !== 0) {
|
|
36
|
-
allBalancesPayloadInMonths.push(coaBalanceGroupedPaylod.months);
|
|
37
|
-
}
|
|
38
|
-
if (coaBalanceGroupedPaylod.quarters != null &&
|
|
39
|
-
coaBalanceGroupedPaylod.quarters.length !== 0) {
|
|
40
|
-
allBalancesPayloadInQuarters.push(coaBalanceGroupedPaylod.quarters);
|
|
41
|
-
}
|
|
42
|
-
if (coaBalanceGroupedPaylod.years != null &&
|
|
43
|
-
coaBalanceGroupedPaylod.years.length !== 0) {
|
|
44
|
-
allBalancesPayloadInYears.push(coaBalanceGroupedPaylod.years);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
return {
|
|
48
|
-
weeks: allBalancesPayloadInWeeks,
|
|
49
|
-
months: allBalancesPayloadInMonths,
|
|
50
|
-
quarters: allBalancesPayloadInQuarters,
|
|
51
|
-
years: allBalancesPayloadInYears,
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
const getSumForCOABalancesPayload = (coaBalancesArrayPayload) => {
|
|
55
|
-
var _a;
|
|
56
|
-
if (coaBalancesArrayPayload.length <= 0) {
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
59
|
-
if (coaBalancesArrayPayload.length === 1) {
|
|
60
|
-
return coaBalancesArrayPayload[0];
|
|
61
|
-
}
|
|
62
|
-
const balancesLength = coaBalancesArrayPayload[0].length;
|
|
63
|
-
const totalBalances = coaBalancesArrayPayload.length;
|
|
64
|
-
const resultBalances = [];
|
|
65
|
-
for (let index = 1; index < totalBalances; index++) {
|
|
66
|
-
if (coaBalancesArrayPayload[index].length !== balancesLength) {
|
|
67
|
-
throw Error('Cannot calculate sum of balances with different lengths');
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
for (let dateIndex = 0; dateIndex < balancesLength; dateIndex++) {
|
|
71
|
-
let sumAmount = 0;
|
|
72
|
-
for (let totalIndex = 0; totalIndex < totalBalances; totalIndex++) {
|
|
73
|
-
sumAmount +=
|
|
74
|
-
(_a = coaBalancesArrayPayload[totalIndex][dateIndex].amount.value) !== null && _a !== void 0 ? _a : 0;
|
|
75
|
-
}
|
|
76
|
-
const resultBalance = Object.assign({}, coaBalancesArrayPayload[0][dateIndex], {
|
|
77
|
-
balance: Object.assign({}, coaBalancesArrayPayload[0][dateIndex].amount, {
|
|
78
|
-
value: sumAmount,
|
|
79
|
-
}),
|
|
80
|
-
});
|
|
81
|
-
resultBalances.push(resultBalance);
|
|
82
|
-
}
|
|
83
|
-
return resultBalances;
|
|
84
|
-
};
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import { AccountMetadataPayload } from '../../entity/account/accountPayload';
|
|
2
2
|
import { AccountMetadata } from '../../entity/account/accountState';
|
|
3
3
|
import { ID } from '../common';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
declare type AccountIDPlus0SubAccount = [thisAccountId: string];
|
|
5
|
+
declare type AccountIDPlus1SubAccount = [
|
|
6
6
|
thisAccountId: string,
|
|
7
7
|
parentAccountId: string
|
|
8
8
|
];
|
|
9
|
-
|
|
9
|
+
declare type AccountIDPlus2SubAccount = [
|
|
10
10
|
thisAccountId: string,
|
|
11
11
|
parentAccountId: string,
|
|
12
12
|
greatParentAccountId: string
|
|
13
13
|
];
|
|
14
|
-
|
|
14
|
+
declare type AccountIDPlus3SubAccount = [
|
|
15
15
|
thisAccountId: string,
|
|
16
16
|
parentAccountId: string,
|
|
17
17
|
greatParentAccountId: string,
|
|
18
18
|
greatGreatParentAccountId: string
|
|
19
19
|
];
|
|
20
|
-
|
|
20
|
+
declare type AccountIDPlus4SubAccount = [
|
|
21
21
|
thisAccountId: string,
|
|
22
22
|
parentAccountId: string,
|
|
23
23
|
greatParentAccountId: string,
|
|
24
24
|
greatGreatParentAccountId: string,
|
|
25
25
|
greatGreatGreatParentAccountId: string
|
|
26
26
|
];
|
|
27
|
-
export declare const MAX_SUB_ACCOUNTS_SUPPORTED = 4;
|
|
28
27
|
/**
|
|
29
28
|
* Example usage:
|
|
30
29
|
* Root level account ID = ["thisAccountId"]
|
|
@@ -33,9 +32,10 @@ export declare const MAX_SUB_ACCOUNTS_SUPPORTED = 4;
|
|
|
33
32
|
* and so on..
|
|
34
33
|
*/
|
|
35
34
|
export declare type NestedAccountID = AccountIDPlus0SubAccount | AccountIDPlus1SubAccount | AccountIDPlus2SubAccount | AccountIDPlus3SubAccount | AccountIDPlus4SubAccount;
|
|
35
|
+
export declare const MAX_SUB_ACCOUNTS_SUPPORTED = 4;
|
|
36
|
+
export declare const MAX_SUB_CLASSES_SUPPORTED = 4;
|
|
37
|
+
export declare const MAX_SUB_CUSTOMERS_SUPPORTED = 4;
|
|
36
38
|
export declare function getNestedAccountIDStr(nestedAccountId: NestedAccountID): `${string}-${string}-${string}-${string}-${string}`;
|
|
37
|
-
export declare type NestedAccountIDStr = ReturnType<typeof getNestedAccountIDStr>;
|
|
38
|
-
export declare function getNestedAccountID(nestedAccountIdStr: NestedAccountIDStr): NestedAccountID;
|
|
39
39
|
export declare const isEqualNestedAccountId: (nestedAccountIdA: NestedAccountID, nestedAccountIdB: NestedAccountID) => boolean;
|
|
40
40
|
export interface AccountsViewParentID {
|
|
41
41
|
sectionId: ID;
|
|
@@ -58,3 +58,4 @@ export declare type AccountMetadataRecordsByID = Record<ID, {
|
|
|
58
58
|
accountMetadata: AccountMetadata;
|
|
59
59
|
accountMetadataPayload: AccountMetadataPayload;
|
|
60
60
|
}>;
|
|
61
|
+
export {};
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isEqualNestedAccountId = exports.
|
|
4
|
-
exports.MAX_SUB_ACCOUNTS_SUPPORTED = 4;
|
|
3
|
+
exports.isEqualNestedAccountId = exports.getNestedAccountIDStr = exports.MAX_SUB_CUSTOMERS_SUPPORTED = exports.MAX_SUB_CLASSES_SUPPORTED = exports.MAX_SUB_ACCOUNTS_SUPPORTED = void 0;
|
|
4
|
+
exports.MAX_SUB_ACCOUNTS_SUPPORTED = 4;
|
|
5
|
+
exports.MAX_SUB_CLASSES_SUPPORTED = 4;
|
|
6
|
+
exports.MAX_SUB_CUSTOMERS_SUPPORTED = 4;
|
|
5
7
|
function getNestedAccountIDStr(nestedAccountId) {
|
|
6
8
|
const [accountId, parentAccountId, greatParentAccountId, greatGreatParentAccountId, greatGreatGreatParentAccountId,] = nestedAccountId;
|
|
7
9
|
return `${accountId}-${parentAccountId !== null && parentAccountId !== void 0 ? parentAccountId : ''}-${greatParentAccountId !== null && greatParentAccountId !== void 0 ? greatParentAccountId : ''}-${greatGreatParentAccountId !== null && greatGreatParentAccountId !== void 0 ? greatGreatParentAccountId : ''}-${greatGreatGreatParentAccountId !== null && greatGreatGreatParentAccountId !== void 0 ? greatGreatGreatParentAccountId : ''}`;
|
|
8
10
|
}
|
|
9
11
|
exports.getNestedAccountIDStr = getNestedAccountIDStr;
|
|
10
|
-
function getNestedAccountID(nestedAccountIdStr) {
|
|
11
|
-
const nestedAccountId = nestedAccountIdStr
|
|
12
|
-
.split('-')
|
|
13
|
-
.filter((accountIdStr) => accountIdStr.length > 0)
|
|
14
|
-
.reverse();
|
|
15
|
-
return nestedAccountId;
|
|
16
|
-
}
|
|
17
|
-
exports.getNestedAccountID = getNestedAccountID;
|
|
18
12
|
const isEqualNestedAccountId = (nestedAccountIdA, nestedAccountIdB) => {
|
|
19
13
|
const nestedStringA = getNestedAccountIDStr(nestedAccountIdA);
|
|
20
14
|
const nestedStringB = getNestedAccountIDStr(nestedAccountIdB);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const toAnimationsFileName: (v: string) => "AIPoweredInvoiceDark" | "AIPoweredInvoiceLight" | "Angry" | "Confetti" | "ConfettiExplosion" | "FastestWayDark" | "FastestWayLight" | "FinanceTeamDark" | "FinanceTeamLight" | "Happy" | "MoneyTransferSuccess" | "MultiLevelApprovalDark" | "MultiLevelApprovalLight" | "NotHappy" | "ReceiptDark" | "ReceiptLight" | "ReimburseDark" | "ReimburseLight" | "RewardsDark" | "RewardsDarkHover" | "RewardsLight" | "RewardsLightHover" | "Success" | "VeryHappy";
|
|
2
|
+
export declare type AnimationFileName = ReturnType<typeof toAnimationsFileName>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toAnimationsFileName = void 0;
|
|
4
|
+
const stringToUnion_1 = require("./stringToUnion");
|
|
5
|
+
const ALL_ANIMATIONS_FILE_NAMES = [
|
|
6
|
+
'AIPoweredInvoiceDark',
|
|
7
|
+
'AIPoweredInvoiceLight',
|
|
8
|
+
'Angry',
|
|
9
|
+
'Confetti',
|
|
10
|
+
'ConfettiExplosion',
|
|
11
|
+
'FastestWayDark',
|
|
12
|
+
'FastestWayLight',
|
|
13
|
+
'FinanceTeamDark',
|
|
14
|
+
'FinanceTeamLight',
|
|
15
|
+
'Happy',
|
|
16
|
+
'MoneyTransferSuccess',
|
|
17
|
+
'MultiLevelApprovalDark',
|
|
18
|
+
'MultiLevelApprovalLight',
|
|
19
|
+
'NotHappy',
|
|
20
|
+
'ReceiptDark',
|
|
21
|
+
'ReceiptLight',
|
|
22
|
+
'ReimburseDark',
|
|
23
|
+
'ReimburseLight',
|
|
24
|
+
'RewardsDark',
|
|
25
|
+
'RewardsDarkHover',
|
|
26
|
+
'RewardsLight',
|
|
27
|
+
'RewardsLightHover',
|
|
28
|
+
'Success',
|
|
29
|
+
'VeryHappy',
|
|
30
|
+
];
|
|
31
|
+
const toAnimationsFileName = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_ANIMATIONS_FILE_NAMES);
|
|
32
|
+
exports.toAnimationsFileName = toAnimationsFileName;
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { ClassMetadataPayload } from '../../entity/class/classPayload';
|
|
2
2
|
import { ClassMetadata } from '../../entity/class/classState';
|
|
3
3
|
import { ID } from '../common';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare type ClassIDPlus0SubClass = [thisClassId: string];
|
|
5
|
+
declare type ClassIDPlus1SubClass = [thisClassId: string, parentClassId: string];
|
|
6
|
+
declare type ClassIDPlus2SubClass = [
|
|
7
7
|
thisClassId: string,
|
|
8
8
|
parentClassId: string,
|
|
9
9
|
greatParentClassId: string
|
|
10
10
|
];
|
|
11
|
-
|
|
11
|
+
declare type ClassIDPlus3SubClass = [
|
|
12
12
|
thisClassId: string,
|
|
13
13
|
parentClassId: string,
|
|
14
14
|
greatParentClassId: string,
|
|
15
15
|
greatGreatParentClassId: string
|
|
16
16
|
];
|
|
17
|
-
|
|
17
|
+
declare type ClassIDPlus4SubClass = [
|
|
18
18
|
thisClassId: string,
|
|
19
19
|
parentClassId: string,
|
|
20
20
|
greatParentClassId: string,
|
|
21
21
|
greatGreatParentClassId: string,
|
|
22
22
|
greatGreatGreatParentClassId: string
|
|
23
23
|
];
|
|
24
|
-
export declare const MAX_SUB_CLASSES_SUPPORTED = 4;
|
|
25
24
|
/**
|
|
26
25
|
* Example usage:
|
|
27
26
|
* Root level class ID = ["thisClassId"]
|
|
@@ -31,8 +30,6 @@ export declare const MAX_SUB_CLASSES_SUPPORTED = 4;
|
|
|
31
30
|
*/
|
|
32
31
|
export declare type NestedClassID = ClassIDPlus0SubClass | ClassIDPlus1SubClass | ClassIDPlus2SubClass | ClassIDPlus3SubClass | ClassIDPlus4SubClass;
|
|
33
32
|
export declare function getNestedClassIDStr(nestedClassId: NestedClassID): `${string}-${string}-${string}-${string}-${string}`;
|
|
34
|
-
export declare type NestedClassIDStr = ReturnType<typeof getNestedClassIDStr>;
|
|
35
|
-
export declare function getNestedClassID(nestedClassIdStr: NestedClassIDStr): NestedClassID;
|
|
36
33
|
export interface ClassesViewParentID {
|
|
37
34
|
sectionId: ID;
|
|
38
35
|
parentClassId?: NestedClassID;
|
|
@@ -55,3 +52,4 @@ export declare type ClassMetadataRecordsByID = Record<ID, {
|
|
|
55
52
|
classMetadata: ClassMetadata;
|
|
56
53
|
classMetadataPayload: ClassMetadataPayload;
|
|
57
54
|
}>;
|
|
55
|
+
export {};
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.MAX_SUB_CLASSES_SUPPORTED = 4; // QBO limitation, there can only be 4 nested subclasses under a class (i.e) class -> subclass1 -> subclass2 -> subclass3 -> subclass4.
|
|
3
|
+
exports.getNestedClassIDStr = void 0;
|
|
5
4
|
function getNestedClassIDStr(nestedClassId) {
|
|
6
5
|
const [classId, parentClassId, greatParentClassId, greatGreatParentClassId, greatGreatGreatParentClassId,] = nestedClassId;
|
|
7
6
|
return `${classId}-${parentClassId !== null && parentClassId !== void 0 ? parentClassId : ''}-${greatParentClassId !== null && greatParentClassId !== void 0 ? greatParentClassId : ''}-${greatGreatParentClassId !== null && greatGreatParentClassId !== void 0 ? greatGreatParentClassId : ''}-${greatGreatGreatParentClassId !== null && greatGreatGreatParentClassId !== void 0 ? greatGreatGreatParentClassId : ''}`;
|
|
8
7
|
}
|
|
9
8
|
exports.getNestedClassIDStr = getNestedClassIDStr;
|
|
10
|
-
function getNestedClassID(nestedClassIdStr) {
|
|
11
|
-
const nestedClassId = nestedClassIdStr
|
|
12
|
-
.split('-')
|
|
13
|
-
.filter((classIdStr) => classIdStr.length > 0)
|
|
14
|
-
.reverse();
|
|
15
|
-
return nestedClassId;
|
|
16
|
-
}
|
|
17
|
-
exports.getNestedClassID = getNestedClassID;
|
package/lib/commonStateTypes/coaBalance/additionalBalances/getSamePeriodLastYearBalance.d.ts
CHANGED
|
@@ -3,5 +3,4 @@ import { COABalancesOrder } from '../coaBalancesFilter';
|
|
|
3
3
|
import { TimeframeTick } from '../../timeframeTick';
|
|
4
4
|
import { Month } from '../../timePeriod';
|
|
5
5
|
export declare function getSamePeriodLastYearBalance(timeframe: COABalanceTimeFrame, resultSlice: COABalance[], resultBalanceOrder: COABalancesOrder, allBalancesOrderedAsc: COABalance[]): COABalance | undefined;
|
|
6
|
-
export declare function getThisPeriodFullyForLastYear(thisPeriod: TimeframeTick, timeframe: COABalanceTimeFrame): TimeframeTick;
|
|
7
6
|
export declare function getThisPeriodForLastYear(firstMonthOfFY: Month, thisPeriod: TimeframeTick, timeframe: COABalanceTimeFrame): TimeframeTick;
|
|
@@ -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.getThisPeriodForLastYear = exports.
|
|
6
|
+
exports.getThisPeriodForLastYear = exports.getSamePeriodLastYearBalance = void 0;
|
|
7
7
|
const findLastIndex_1 = __importDefault(require("lodash/findLastIndex"));
|
|
8
8
|
const getStartOfAndEndOfTimeframeFY_1 = require("../../fiscalYearHelpers/getStartOfAndEndOfTimeframeFY");
|
|
9
9
|
function getSamePeriodLastYearBalance(timeframe, resultSlice, resultBalanceOrder, allBalancesOrderedAsc) {
|
|
@@ -43,32 +43,6 @@ function getSamePeriodLastYearBalance(timeframe, resultSlice, resultBalanceOrder
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.getSamePeriodLastYearBalance = getSamePeriodLastYearBalance;
|
|
46
|
-
function getThisPeriodFullyForLastYear(thisPeriod, timeframe) {
|
|
47
|
-
let startDateLY = undefined;
|
|
48
|
-
let endDateLY = undefined;
|
|
49
|
-
switch (timeframe) {
|
|
50
|
-
case 'month':
|
|
51
|
-
case 'quarter':
|
|
52
|
-
case 'year':
|
|
53
|
-
{
|
|
54
|
-
startDateLY = thisPeriod.startDate
|
|
55
|
-
.subtract(1, 'year')
|
|
56
|
-
.startOf(timeframe);
|
|
57
|
-
endDateLY = startDateLY.endOf(timeframe);
|
|
58
|
-
}
|
|
59
|
-
break;
|
|
60
|
-
case 'week':
|
|
61
|
-
case 'free_range':
|
|
62
|
-
{
|
|
63
|
-
console.warn('Be carefull!! getThisPeriodFullyForLastYear for week or free_range is not intended');
|
|
64
|
-
startDateLY = thisPeriod.startDate.subtract(1, 'year');
|
|
65
|
-
endDateLY = thisPeriod.endDate.subtract(1, 'year');
|
|
66
|
-
}
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
return { startDate: startDateLY, endDate: endDateLY };
|
|
70
|
-
}
|
|
71
|
-
exports.getThisPeriodFullyForLastYear = getThisPeriodFullyForLastYear;
|
|
72
46
|
function getThisPeriodForLastYear(firstMonthOfFY, thisPeriod, timeframe) {
|
|
73
47
|
let startDateLY = undefined;
|
|
74
48
|
let endDateLY = undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { COABalance } from './coaBalance';
|
|
2
1
|
import { COABalancesSlice } from './coaBalancesFilter';
|
|
3
2
|
/**
|
|
4
3
|
* For all balances in `sliceA` picks the matching forecast data from `sliceF` iff available,
|
|
@@ -12,4 +11,3 @@ import { COABalancesSlice } from './coaBalancesFilter';
|
|
|
12
11
|
*/
|
|
13
12
|
export declare function pickAndMergeForecast(sliceA: COABalancesSlice, sliceF: COABalancesSlice): COABalancesSlice;
|
|
14
13
|
export declare function cloneAndResetBalanceSlice(slice: COABalancesSlice): COABalancesSlice;
|
|
15
|
-
export declare function cloneAndResetBalance(balance: COABalance): COABalance;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.cloneAndResetBalanceSlice = exports.pickAndMergeForecast = void 0;
|
|
7
7
|
const isEqual_1 = __importDefault(require("lodash/isEqual"));
|
|
8
8
|
const cloneDeep_1 = __importDefault(require("lodash/cloneDeep"));
|
|
9
9
|
/**
|
|
@@ -65,4 +65,3 @@ function cloneAndResetBalance(balance) {
|
|
|
65
65
|
clonedBalance.totalForecast = undefined;
|
|
66
66
|
return clonedBalance;
|
|
67
67
|
}
|
|
68
|
-
exports.cloneAndResetBalance = cloneAndResetBalance;
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { ID } from '../common';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare type CustomerIDPlus0SubCustomer = [thisCustomerId: string];
|
|
3
|
+
declare type CustomerIDPlus1SubCustomer = [
|
|
4
4
|
thisCustomerId: string,
|
|
5
5
|
parentCustomerId: string
|
|
6
6
|
];
|
|
7
|
-
|
|
7
|
+
declare type CustomerIDPlus2SubCustomer = [
|
|
8
8
|
thisCustomerId: string,
|
|
9
9
|
parentCustomerId: string,
|
|
10
10
|
greatParentCustomerId: string
|
|
11
11
|
];
|
|
12
|
-
|
|
12
|
+
declare type CustomerIDPlus3SubCustomer = [
|
|
13
13
|
thisCustomerId: string,
|
|
14
14
|
parentCustomerId: string,
|
|
15
15
|
greatParentCustomerId: string,
|
|
16
16
|
greatGreatParentCustomerId: string
|
|
17
17
|
];
|
|
18
|
-
|
|
18
|
+
declare type CustomerIDPlus4SubCustomer = [
|
|
19
19
|
thisCustomerId: string,
|
|
20
20
|
parentCustomerId: string,
|
|
21
21
|
greatParentCustomerId: string,
|
|
22
22
|
greatGreatParentCustomerId: string,
|
|
23
23
|
greatGreatGreatParentCustomerId: string
|
|
24
24
|
];
|
|
25
|
-
export declare const MAX_SUB_CUSTOMERS_SUPPORTED = 4;
|
|
26
25
|
/**
|
|
27
26
|
* Example usage:
|
|
28
27
|
* Root level customer ID = ["thisCustomerId"]
|
|
@@ -31,8 +30,6 @@ export declare const MAX_SUB_CUSTOMERS_SUPPORTED = 4;
|
|
|
31
30
|
* and so on..
|
|
32
31
|
*/
|
|
33
32
|
export declare type NestedCustomerID = CustomerIDPlus0SubCustomer | CustomerIDPlus1SubCustomer | CustomerIDPlus2SubCustomer | CustomerIDPlus3SubCustomer | CustomerIDPlus4SubCustomer;
|
|
34
|
-
export declare function getNestedCustomerIDStr(nestedCustomerId: NestedCustomerID): `${string}-${string}-${string}-${string}-${string}`;
|
|
35
|
-
export declare type NestedCustomerIDStr = ReturnType<typeof getNestedCustomerIDStr>;
|
|
36
33
|
export interface NestedCustomerHierarchy {
|
|
37
34
|
customerId: NestedCustomerID;
|
|
38
35
|
customerName: string;
|
|
@@ -40,3 +37,4 @@ export interface NestedCustomerHierarchy {
|
|
|
40
37
|
children: NestedCustomerHierarchy[];
|
|
41
38
|
hasSiblings: boolean;
|
|
42
39
|
}
|
|
40
|
+
export {};
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getNestedCustomerIDStr = exports.MAX_SUB_CUSTOMERS_SUPPORTED = void 0;
|
|
4
|
-
exports.MAX_SUB_CUSTOMERS_SUPPORTED = 4; // QBO limitation, there can only be 4 nested subcustomers under a customer (i.e) customer -> subcustomer1 -> subcustomer2 -> subcustomer3 -> subcustomer4.
|
|
5
|
-
function getNestedCustomerIDStr(nestedCustomerId) {
|
|
6
|
-
const [customerId, parentCustomerId, greatParentCustomerId, greatGreatParentCustomerId, greatGreatGreatParentCustomerId,] = nestedCustomerId;
|
|
7
|
-
return `${customerId}-${parentCustomerId !== null && parentCustomerId !== void 0 ? parentCustomerId : ''}-${greatParentCustomerId !== null && greatParentCustomerId !== void 0 ? greatParentCustomerId : ''}-${greatGreatParentCustomerId !== null && greatGreatParentCustomerId !== void 0 ? greatGreatParentCustomerId : ''}-${greatGreatGreatParentCustomerId !== null && greatGreatGreatParentCustomerId !== void 0 ? greatGreatGreatParentCustomerId : ''}`;
|
|
8
|
-
}
|
|
9
|
-
exports.getNestedCustomerIDStr = getNestedCustomerIDStr;
|
|
@@ -5,9 +5,6 @@ export declare const MONTH_YEAR_FORMAT = "MMM YYYY";
|
|
|
5
5
|
export declare const DEFAULT_DATE_FORMAT = "YYYY-MM-DD";
|
|
6
6
|
export declare const DAY_MONTH_YEAR_FORMAT = "DDMMYYYY";
|
|
7
7
|
export declare const MONTH_FORMAT = "MMMM";
|
|
8
|
-
export declare const toFiscalYearSupportedDateFormat: (format: string) => "YY" | "YYYY" | "Q YY" | "Q YYYY";
|
|
9
|
-
export declare const toFiscalYearSupportedDateFormatStrict: (format: string) => "YY" | "YYYY" | "Q YY" | "Q YYYY" | undefined;
|
|
10
|
-
export declare type FiscalYearSupportedDateFormat = ReturnType<typeof toFiscalYearSupportedDateFormat>;
|
|
11
8
|
/**
|
|
12
9
|
* Format date according to the `format` and `firstMonthOfFY`
|
|
13
10
|
* see: https://sharing.clickup.com/10555925/t/h/1xju71j/ZJWTNROIRRKCB41
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatZeniDateFY = exports.
|
|
3
|
+
exports.formatZeniDateFY = exports.MONTH_FORMAT = exports.DAY_MONTH_YEAR_FORMAT = exports.DEFAULT_DATE_FORMAT = exports.MONTH_YEAR_FORMAT = exports.FULL_MONTH_FULL_YEAR_FORMAT = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../stringToUnion");
|
|
5
5
|
const getFYQuarterAndYear_1 = require("./getFYQuarterAndYear");
|
|
6
6
|
exports.FULL_MONTH_FULL_YEAR_FORMAT = 'MMMM YYYY';
|
|
@@ -14,10 +14,7 @@ const ALL_FISCAL_YEAR_SUPPORTED_DATE_FORMATS = [
|
|
|
14
14
|
'Q YY',
|
|
15
15
|
'Q YYYY',
|
|
16
16
|
];
|
|
17
|
-
const toFiscalYearSupportedDateFormat = (format) => (0, stringToUnion_1.stringToUnion)(format, ALL_FISCAL_YEAR_SUPPORTED_DATE_FORMATS);
|
|
18
|
-
exports.toFiscalYearSupportedDateFormat = toFiscalYearSupportedDateFormat;
|
|
19
17
|
const toFiscalYearSupportedDateFormatStrict = (format) => (0, stringToUnion_1.stringToUnionStrict)(format, ALL_FISCAL_YEAR_SUPPORTED_DATE_FORMATS);
|
|
20
|
-
exports.toFiscalYearSupportedDateFormatStrict = toFiscalYearSupportedDateFormatStrict;
|
|
21
18
|
/**
|
|
22
19
|
* Format date according to the `format` and `firstMonthOfFY`
|
|
23
20
|
* see: https://sharing.clickup.com/10555925/t/h/1xju71j/ZJWTNROIRRKCB41
|
|
@@ -35,7 +32,7 @@ exports.toFiscalYearSupportedDateFormatStrict = toFiscalYearSupportedDateFormatS
|
|
|
35
32
|
* @param firstMonthOfFY
|
|
36
33
|
*/
|
|
37
34
|
function formatZeniDateFY(date, format, firstMonthOfFY) {
|
|
38
|
-
const fiscalYearSupportedFormat =
|
|
35
|
+
const fiscalYearSupportedFormat = toFiscalYearSupportedDateFormatStrict(format);
|
|
39
36
|
const shouldUpdateForFY = firstMonthOfFY !== 1 && fiscalYearSupportedFormat != null;
|
|
40
37
|
if (shouldUpdateForFY) {
|
|
41
38
|
const { fyQuarter, fyYear } = (0, getFYQuarterAndYear_1.getFYQuarterAndYear)(date, firstMonthOfFY);
|