@zeniai/client-epic-state 4.11.98 → 4.11.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonPayloadTypes/balanceChangePayload.d.ts +3 -3
- package/lib/commonPayloadTypes/balanceChangePayload.js +2 -3
- package/lib/commonPayloadTypes/classesView/reportByClassPayloadV2.d.ts +2 -3
- package/lib/commonPayloadTypes/classesView/reportByClassPayloadV2.js +1 -1
- package/lib/commonPayloadTypes/coaBalancePayload.d.ts +3 -9
- package/lib/commonPayloadTypes/coaBalancePayload.js +1 -29
- package/lib/commonPayloadTypes/subAccountView/reportBySubAccountPayload.d.ts +3 -2
- package/lib/commonPayloadTypes/v2/coaBalancePayload.d.ts +2 -1
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -8
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +0 -83
- package/lib/commonStateTypes/accountView/nestedAccountID.d.ts +9 -8
- package/lib/commonStateTypes/accountView/nestedAccountID.js +4 -10
- package/lib/commonStateTypes/animations.d.ts +2 -0
- package/lib/commonStateTypes/animations.js +32 -0
- package/lib/commonStateTypes/classesView/nestedClassID.d.ts +6 -8
- package/lib/commonStateTypes/classesView/nestedClassID.js +1 -10
- package/lib/commonStateTypes/coaBalance/additionalBalances/getSamePeriodLastYearBalance.d.ts +0 -1
- package/lib/commonStateTypes/coaBalance/additionalBalances/getSamePeriodLastYearBalance.js +1 -27
- package/lib/commonStateTypes/coaBalance/pickAndMergeForecast.d.ts +0 -2
- package/lib/commonStateTypes/coaBalance/pickAndMergeForecast.js +1 -2
- package/lib/commonStateTypes/customerView/nestedCustomerID.d.ts +6 -8
- package/lib/commonStateTypes/customerView/nestedCustomerID.js +0 -7
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +0 -3
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +2 -5
- package/lib/commonStateTypes/reduceFetchState.d.ts +0 -18
- package/lib/commonStateTypes/reduceFetchState.js +7 -10
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSection.d.ts +0 -2
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSection.js +0 -12
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -2
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +0 -10
- package/lib/commonStateTypes/selectorTypes/sortOrderTypes.d.ts +2 -2
- package/lib/commonStateTypes/selectorTypes/sortOrderTypes.js +2 -4
- package/lib/commonStateTypes/timePeriod.d.ts +2 -3
- package/lib/commonStateTypes/timePeriod.js +1 -6
- package/lib/commonStateTypes/v2/viewAndReport.d.ts +0 -5
- package/lib/commonStateTypes/v2/viewAndReport.js +3 -0
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +3 -4
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +0 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +3 -3
- package/lib/commonStateTypes/workingDayHelper.d.ts +0 -1
- package/lib/commonStateTypes/workingDayHelper.js +6 -6
- package/lib/entity/account/accountPayload.d.ts +1 -6
- package/lib/entity/account/accountPayload.js +3 -19
- package/lib/entity/account/accountReducer.d.ts +1 -3
- package/lib/entity/account/accountReducer.js +2 -3
- package/lib/entity/account/accountState.d.ts +2 -1
- package/lib/entity/account/accountState.js +1 -2
- package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +0 -6
- package/lib/entity/account/pickAndMergeForecastAccountReport.js +1 -2
- package/lib/entity/accountGroup/accountGroupSelector.d.ts +2 -1
- package/lib/entity/accountGroup/accountGroupSelector.js +2 -3
- package/lib/entity/address/addressReducer.d.ts +1 -2
- package/lib/entity/address/addressReducer.js +1 -2
- package/lib/entity/approvalRule/approvalRulePayload.d.ts +1 -3
- package/lib/entity/approvalRule/approvalRulePayload.js +3 -5
- package/lib/entity/approvalRule/approvalRuleState.d.ts +3 -7
- package/lib/entity/approvalRule/approvalRuleState.js +1 -13
- package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +3 -5
- package/lib/entity/billPay/billTransaction/billTransactionPayload.js +4 -7
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +9 -8
- package/lib/entity/billPay/billTransaction/billTransactionState.js +1 -7
- package/lib/entity/billPay/recurringBills/recurringBillsPayload.d.ts +2 -4
- package/lib/entity/billPay/recurringBills/recurringBillsPayload.js +3 -5
- package/lib/entity/chargeCard/chargeCard.d.ts +6 -7
- package/lib/entity/chargeCard/chargeCard.js +2 -7
- package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +3 -3
- package/lib/entity/chargeCardTransaction/chargeCardTransaction.js +1 -3
- package/lib/entity/chargeCardTransaction/chargeCardTransactionPayload.d.ts +2 -1
- package/lib/entity/chargeCardTransaction/chargeCardTransactionSelector.d.ts +0 -1
- package/lib/entity/chargeCardTransaction/chargeCardTransactionSelector.js +1 -2
- package/lib/entity/class/classPayload.d.ts +0 -4
- package/lib/entity/class/classPayload.js +1 -16
- package/lib/entity/class/classSelectorV2.d.ts +1 -8
- package/lib/entity/class/classSelectorV2.js +1 -2
- package/lib/entity/company/companyHelper.d.ts +0 -2
- package/lib/entity/company/companyHelper.js +2 -7
- package/lib/entity/company/companyPayload.d.ts +17 -32
- package/lib/entity/company/companyPayload.js +9 -19
- package/lib/entity/company/companyStateTypes.d.ts +6 -9
- package/lib/entity/company/companyStateTypes.js +3 -6
- package/lib/entity/companyHealthMetric/companyHealthMetricPayload.d.ts +5 -6
- package/lib/entity/companyHealthMetric/companyHealthMetricPayload.js +3 -5
- package/lib/entity/currency/currencySelector.d.ts +0 -3
- package/lib/entity/currency/currencySelector.js +1 -3
- package/lib/entity/customer/customerSelector.d.ts +2 -3
- package/lib/entity/customer/customerSelector.js +1 -8
- package/lib/entity/customerSatisfaction/customerSatisfactionReducerHelpers.d.ts +2 -4
- package/lib/entity/customerSatisfaction/customerSatisfactionReducerHelpers.js +3 -5
- package/lib/entity/customerSatisfaction/customerSatisfactionState.d.ts +1 -1
- package/lib/entity/customerSatisfaction/customerSatisfactionState.js +1 -2
- package/lib/entity/depositAccount/depositAccount.d.ts +3 -4
- package/lib/entity/depositAccount/depositAccount.js +1 -5
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +2 -2
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.js +3 -3
- package/lib/entity/depositAccountTransaction/depositAccountTransactionPayload.d.ts +2 -1
- package/lib/entity/depositAccountTransaction/depositAccountTransactionSelector.d.ts +0 -1
- package/lib/entity/depositAccountTransaction/depositAccountTransactionSelector.js +1 -2
- package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.d.ts +2 -6
- package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.js +3 -5
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +3 -4
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.js +1 -6
- package/lib/entity/file/filePayload.d.ts +2 -1
- package/lib/entity/file/fileState.d.ts +7 -21
- package/lib/entity/file/fileState.js +15 -34
- package/lib/entity/genericEntity/entity.d.ts +2 -1
- package/lib/entity/globalMerchant/globalMerchantPayload.d.ts +1 -4
- package/lib/entity/globalMerchant/globalMerchantPayload.js +2 -32
- package/lib/entity/globalMerchant/globalMerchantState.d.ts +2 -1
- package/lib/entity/insights/insightReducer.d.ts +1 -2
- package/lib/entity/insights/insightReducer.js +2 -3
- package/lib/entity/insights/insightState.d.ts +2 -1
- package/lib/entity/insights/insightState.js +0 -2
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -2
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +1 -2
- package/lib/entity/notification/types/notificationSelectorTypes.d.ts +2 -1
- package/lib/entity/notification/types/notificationTypes.d.ts +2 -11
- package/lib/entity/notification/types/notificationTypes.js +15 -24
- package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +3 -3
- package/lib/entity/paymentAccount/paymentAccountPayload.js +2 -3
- package/lib/entity/portfolio/accountingSummary/accountingSummaryPayload.d.ts +3 -2
- package/lib/entity/reimbursement/reimbursementPayload.d.ts +9 -22
- package/lib/entity/reimbursement/reimbursementPayload.js +16 -32
- package/lib/entity/reimbursement/reimbursementState.d.ts +2 -1
- package/lib/entity/subscription/subscriptionAddOn/subscriptionAddOnSelector.d.ts +0 -1
- package/lib/entity/subscription/subscriptionAddOn/subscriptionAddOnSelector.js +1 -2
- package/lib/entity/subscription/subscriptionCoupon/subscriptionCouponSelector.d.ts +0 -1
- package/lib/entity/subscription/subscriptionCoupon/subscriptionCouponSelector.js +1 -2
- package/lib/entity/subscription/subscriptionPlan/subscriptionPlanReducer.d.ts +1 -5
- package/lib/entity/subscription/subscriptionPlan/subscriptionPlanReducer.js +1 -2
- package/lib/entity/subscription/subscriptionSummary/subscriptionSummarySelector.d.ts +0 -1
- package/lib/entity/subscription/subscriptionSummary/subscriptionSummarySelector.js +1 -2
- package/lib/entity/task/taskState.d.ts +2 -5
- package/lib/entity/task/taskState.js +3 -10
- package/lib/entity/tenant/tenantSelector.d.ts +2 -2
- package/lib/entity/tenant/tenantSelector.js +1 -2
- package/lib/entity/toastNotification/toastNotificationState.d.ts +3 -6
- package/lib/entity/toastNotification/toastNotificationState.js +3 -3
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.d.ts +11 -21
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +10 -17
- package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -1
- package/lib/entity/transaction/stateTypes/paymentType.d.ts +2 -1
- package/lib/entity/transaction/stateTypes/paymentType.js +1 -2
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +6 -10
- package/lib/entity/transaction/stateTypes/transactionType.js +1 -14
- package/lib/entity/user/userReducer.d.ts +1 -3
- package/lib/entity/user/userReducer.js +2 -3
- package/lib/entity/user/userState.d.ts +2 -1
- package/lib/entity/userRole/userRoleState.d.ts +2 -2
- package/lib/entity/userRole/userRoleState.js +2 -4
- package/lib/entity/userRole/userRoleType.d.ts +0 -6
- package/lib/entity/userRole/userRoleType.js +9 -27
- package/lib/entity/vendor/vendorPayload.d.ts +2 -1
- package/lib/entity/vendorExpense/vendorExpenseReducer.d.ts +1 -2
- package/lib/entity/vendorExpense/vendorExpenseReducer.js +7 -7
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -1
- package/lib/entity/vendorExpense/vendorExpenseSelector.js +1 -2
- package/lib/entity/vendorExpense/vendorExpenseTrend.d.ts +2 -1
- package/lib/index.d.ts +58 -56
- package/lib/index.js +9 -9
- package/lib/responsePayload.d.ts +2 -1
- package/lib/view/accountList/accountListPayload.d.ts +2 -1
- package/lib/view/accountMappingView/accountMappingPayload.d.ts +0 -3
- package/lib/view/accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload.d.ts +8 -7
- package/lib/view/addressView/addressViewPayload.d.ts +2 -1
- package/lib/view/apAgingView/apAgingDetail/apAgingDetailState.d.ts +2 -1
- package/lib/view/arAgingView/arAgingDetail/arAgingDetailState.d.ts +2 -1
- package/lib/view/arAgingView/arAgingReport/arAgingPayload.d.ts +1 -1
- package/lib/view/auditReportView/auditReportViewPayload.d.ts +2 -1
- package/lib/view/auditReportView/auditReportViewState.d.ts +3 -5
- package/lib/view/auditReportView/auditReportViewState.js +5 -6
- package/lib/view/autoComplete/entityAutoCompleteReducer.d.ts +1 -1
- package/lib/view/balanceSheet/balanceSheetPayload.d.ts +14 -17
- package/lib/view/balanceSheet/balanceSheetPayload.js +1 -13
- package/lib/view/balanceSheet/balanceSheetSelectorTypes.d.ts +19 -25
- package/lib/view/balanceSheet/balanceSheetSelectorTypes.js +27 -36
- package/lib/view/bankAccountView/bankAccountViewPayload.d.ts +5 -4
- package/lib/view/billPayCard/billPayCardPayload.d.ts +3 -3
- package/lib/view/billPayCard/billPayCardState.d.ts +3 -2
- package/lib/view/billPayCard/billPayCardState.js +0 -2
- package/lib/view/billPayCard/fetchBillPayCardEpic.js +1 -1
- package/lib/view/cardPayment/cardPaymentViewPayload.d.ts +3 -3
- package/lib/view/cardPayment/cardPaymentViewTypes.d.ts +2 -3
- package/lib/view/cardPayment/cardPaymentViewTypes.js +4 -6
- package/lib/view/cashFlow/cashFlowPayload.d.ts +7 -8
- package/lib/view/cashFlow/cashFlowPayload.js +5 -8
- package/lib/view/cashFlow/cashFlowSelectorTypes.d.ts +17 -23
- package/lib/view/cashFlow/cashFlowSelectorTypes.js +21 -28
- package/lib/view/cashInCashOut/cashInCashOutSelectorTypes.d.ts +3 -4
- package/lib/view/cashInCashOut/cashInCashOutSelectorTypes.js +3 -12
- package/lib/view/classList/classListPayload.d.ts +2 -1
- package/lib/view/common/recurringViewHelper.d.ts +2 -2
- package/lib/view/common/recurringViewHelper.js +1 -4
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewPayload.d.ts +2 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +0 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +1 -3
- package/lib/view/companyConfigView/companyConfigPayload.d.ts +2 -1
- package/lib/view/companyHealthMetricView/companyHealthMetricViewPayload.d.ts +2 -1
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.d.ts +6 -11
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +8 -13
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewPayload.d.ts +3 -2
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewSelector.d.ts +0 -4
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewSelector.js +2 -3
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewState.d.ts +2 -2
- package/lib/view/companyView/companyViewPayload.d.ts +10 -9
- package/lib/view/companyView/helpers/cockpitHelpers.d.ts +0 -1
- package/lib/view/companyView/helpers/cockpitHelpers.js +3 -3
- package/lib/view/companyView/selector/companyManagementViewSelector.d.ts +0 -2
- package/lib/view/companyView/selector/companyManagementViewSelector.js +4 -5
- package/lib/view/companyView/types/cockpitTypes.d.ts +0 -7
- package/lib/view/companyView/types/cockpitTypes.js +11 -19
- package/lib/view/companyView/types/companyMetaDataViewState.d.ts +2 -1
- package/lib/view/companyView/types/companyPassportViewPayload.d.ts +6 -5
- package/lib/view/fileView/fileViewPayload.d.ts +2 -1
- package/lib/view/fileView/fileViewState.d.ts +2 -1
- package/lib/view/forecastList/forecastListPayload.d.ts +2 -1
- package/lib/view/globalMerchantView/epics/createGlobalMerchantEpic.d.ts +0 -7
- package/lib/view/globalMerchantView/epics/createGlobalMerchantEpic.js +2 -3
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState.d.ts +0 -1
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState.js +1 -3
- package/lib/view/globalMerchantView/globalMerchantViewPayload.d.ts +1 -1
- package/lib/view/netBurnOrIncome/netBurnOrIncomeSelector.d.ts +0 -1
- package/lib/view/netBurnOrIncome/netBurnOrIncomeSelector.js +1 -2
- package/lib/view/netBurnOrIncome/netBurnOrIncomeSelectorTypes.d.ts +4 -6
- package/lib/view/netBurnOrIncome/netBurnOrIncomeSelectorTypes.js +1 -3
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelectorTypes.d.ts +3 -3
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelectorTypes.js +4 -6
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardPayload.d.ts +9 -11
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardPayload.js +3 -4
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelectorTypes.d.ts +0 -1
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelectorTypes.js +1 -3
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +0 -2
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.js +1 -5
- package/lib/view/notificationView/notificationViewPayload.d.ts +3 -17
- package/lib/view/notificationView/notificationViewState.d.ts +3 -4
- package/lib/view/notificationView/notificationViewState.js +7 -9
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.d.ts +1 -15
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewState.d.ts +2 -1
- package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +2 -4
- package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.js +6 -9
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.d.ts +0 -6
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +2 -3
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.d.ts +0 -8
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +1 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +3 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -6
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +1 -4
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +1 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.js +5 -7
- package/lib/view/opEx/opExSelector.d.ts +0 -13
- package/lib/view/opEx/opExSelector.js +3 -4
- package/lib/view/opExByVendor/opExByVendorPayload.d.ts +4 -3
- package/lib/view/opExByVendor/opExByVendorState.d.ts +0 -1
- package/lib/view/opExByVendor/opExByVendorState.js +3 -3
- package/lib/view/opExClassesView/opExClassesViewSelectorTypes.d.ts +3 -3
- package/lib/view/opExClassesView/opExClassesViewSelectorTypes.js +4 -6
- package/lib/view/people/peopleTypes.d.ts +2 -2
- package/lib/view/people/peopleTypes.js +2 -4
- package/lib/view/profitAndLoss/profitAndLossSelector.d.ts +1 -1
- package/lib/view/profitAndLoss/profitAndLossSelector.js +2 -6
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes.d.ts +3 -2
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes.js +1 -3
- package/lib/view/recommendation/recommendationPayload.d.ts +3 -2
- package/lib/view/referralView/referralPayload.d.ts +4 -3
- package/lib/view/referralView/referralState.d.ts +3 -4
- package/lib/view/referralView/referralState.js +5 -10
- package/lib/view/reimbursementCard/fetchReimbursementCardEpic.js +1 -1
- package/lib/view/reimbursementCard/reimbursementCardPayload.d.ts +4 -4
- package/lib/view/reimbursementCard/reimbursementCardState.d.ts +3 -2
- package/lib/view/reimbursementCard/reimbursementCardState.js +0 -2
- package/lib/view/revenue/revenueSelector.d.ts +0 -15
- package/lib/view/revenue/revenueSelector.js +1 -2
- package/lib/view/revenue/revenueSelectorTypes.d.ts +4 -6
- package/lib/view/revenue/revenueSelectorTypes.js +1 -3
- package/lib/view/revenueClassesView/revenueClassesViewSelectorTypes.d.ts +3 -3
- package/lib/view/revenueClassesView/revenueClassesViewSelectorTypes.js +4 -6
- package/lib/view/reviewCompanyView/reviewCompanyPayload.d.ts +2 -1
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +0 -1
- package/lib/view/reviewCompanyView/reviewCompanyViewState.js +3 -3
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.d.ts +0 -1
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +3 -3
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +7 -14
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +8 -13
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailTypes.d.ts +2 -2
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailTypes.js +2 -4
- package/lib/view/scheduleView/scheduleListView/scheduleListHelper.d.ts +2 -28
- package/lib/view/scheduleView/scheduleListView/scheduleListHelper.js +4 -24
- package/lib/view/scheduleView/scheduleListView/scheduleListPayload.d.ts +2 -1
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -4
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.js +7 -8
- package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +0 -6
- package/lib/view/settingsView/epic/fetchMyProfileEpic.js +1 -3
- package/lib/view/settingsView/settingsViewPayload.d.ts +3 -2
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/approveOrRejectBillEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +3 -4
- package/lib/view/spendManagement/billPay/billList/billListSelector.js +3 -5
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +4 -4
- package/lib/view/spendManagement/billPay/billList/billListState.js +3 -6
- package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +15 -35
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.js +7 -13
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigSelector.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +10 -15
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +15 -21
- package/lib/view/spendManagement/billPay/billPayConfig/fetchBillPayConfigEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewPayload.d.ts +3 -2
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewPayload.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewPayload.d.ts +3 -4
- package/lib/view/spendManagement/billPay/billPaySetupView/types/billPayTerms.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.d.ts +4 -3
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.d.ts +0 -2
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.js +5 -5
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/approveOrRejectBillsBulkActionEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/cancelOrDeleteBillsBulkActionEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/reviewDraftBillsBulkActionEpic.ts.js +1 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.js +1 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.d.ts +3 -30
- package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.js +1 -25
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +2 -4
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +2 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.js +3 -4
- package/lib/view/spendManagement/billPay/editBillView/epics/convertAmountToHomeCurrencyEpic.js +1 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +0 -8
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +4 -5
- package/lib/view/spendManagement/billPay/internationalWire/internationalWire.d.ts +2 -1
- package/lib/view/spendManagement/billPay/internationalWire/internationalWirePayload.d.ts +5 -10
- package/lib/view/spendManagement/billPay/internationalWire/internationalWirePayload.js +3 -5
- package/lib/view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkBillEpic.js +1 -1
- package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewPayload.d.ts +7 -6
- package/lib/view/spendManagement/billPay/previousBills/fetchPreviousBillsEpic.js +1 -1
- package/lib/view/spendManagement/billPay/previousBills/previousBillsState.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailPayload.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.d.ts +0 -11
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +3 -5
- package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigPayload.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailPayload.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +0 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +5 -5
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListPayload.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +1 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +2 -3
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewPayload.d.ts +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewState.d.ts +0 -2
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/types/chargeCardTerms.d.ts +2 -1
- package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +4 -3
- package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.d.ts +5 -5
- package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.js +2 -3
- package/lib/view/spendManagement/commonHistoryView/fetchEntityHistoryEpic.js +1 -1
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -5
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -13
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +2 -5
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -2
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +2 -3
- package/lib/view/spendManagement/commonSetup/setupViewState.js +2 -6
- package/lib/view/spendManagement/helpers.d.ts +1 -3
- package/lib/view/spendManagement/helpers.js +3 -5
- package/lib/view/spendManagement/merchantList/merchantListPayload.d.ts +2 -1
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updateMappedCashAccountEpic.js +1 -1
- package/lib/view/spendManagement/plaidAccount/types/plaidConnection.d.ts +2 -1
- package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalPayload.d.ts +2 -1
- package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalState.d.ts +3 -2
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewPayload.d.ts +2 -2
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.d.ts +2 -3
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +1 -22
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewState.d.ts +2 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchCurrencyConversionValueEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.d.ts +0 -6
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +2 -12
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/saveRemiDetailEpic.js +2 -2
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/fetchReimbursementConfigEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigPayload.d.ts +2 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigSelector.d.ts +0 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigSelector.js +1 -8
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState.d.ts +2 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState.js +1 -2
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/approveOrRejectRemiEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/cancelAndDeleteRemiEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/deleteRemiEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchDuplicateReimbursementEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewPayload.d.ts +4 -3
- package/lib/view/spendManagement/reimbursement/remiListView/fetchRemiListPerTabEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +2 -2
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.js +3 -4
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewPayload.d.ts +2 -1
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateRemiSetupViewLocalStoreDataEpic.d.ts +0 -8
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateRemiSetupViewLocalStoreDataEpic.js +1 -2
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewPayload.d.ts +3 -2
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewState.d.ts +1 -2
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewState.js +1 -3
- package/lib/view/spendManagement/reimbursement/remiSetupView/types/remiTerms.d.ts +3 -2
- package/lib/view/spendManagement/spendManagementFilterHelpers.d.ts +3 -7
- package/lib/view/spendManagement/spendManagementFilterHelpers.js +4 -7
- package/lib/view/spendManagement/zeniAccounts/checkDeposit/checkDepositEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailPayload.d.ts +3 -2
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountHistoryEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/updateDepositAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListPayload.d.ts +3 -2
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListState.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/fetchDepositAccountTransactionListEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/transferDetail/fetchReviewTransferDetailEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailPayload.d.ts +3 -2
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailState.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferMoneyEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/createCheckingAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.d.ts +1 -4
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +1 -5
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.js +1 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/types/zeniAccountTerms.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewPayload.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/fetchZeniAccountsConfigEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +4 -4
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +2 -3
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +2 -1
- package/lib/view/subscriptionView/subscriptionEstmiatePayload.d.ts +1 -1
- package/lib/view/subscriptionView/subscriptionViewPayload.d.ts +9 -8
- package/lib/view/subscriptionView/subscriptionViewState.d.ts +3 -2
- package/lib/view/subscriptionView/types/subscriptionEstmiate.d.ts +4 -3
- package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +2 -2
- package/lib/view/subscriptionView/types/subscriptionTypes.js +3 -4
- package/lib/view/tagView/tagViewPayload.d.ts +2 -2
- package/lib/view/taskManager/taskDetailView/epics/archiveTaskEpic.d.ts +0 -7
- package/lib/view/taskManager/taskGroupView/taskGroupViewPayload.d.ts +2 -1
- package/lib/view/taskManager/taskListView/taskList.d.ts +2 -7
- package/lib/view/taskManager/taskListView/taskList.js +3 -4
- package/lib/view/taskManager/taskListView/taskListPayload.d.ts +2 -1
- package/lib/view/transactionDetail/transactionDetailPayload.d.ts +1 -1
- package/lib/view/transactionList/parallelFetchEntityTransactionListEpic.d.ts +0 -8
- package/lib/view/transactionList/parallelFetchEntityTransactionListEpic.js +1 -2
- package/lib/view/transactionList/transactionListByEntitySelector.d.ts +0 -2
- package/lib/view/transactionList/transactionListByEntitySelector.js +1 -2
- package/lib/view/transactionList/transactionListPayload.d.ts +5 -4
- package/lib/view/transactionList/transactionListState.d.ts +5 -4
- package/lib/view/trend/trendPayload.d.ts +4 -3
- package/lib/view/trendWithTransactions/trendWithTransactionsState.d.ts +2 -1
- package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.d.ts +3 -2
- package/lib/view/userFinancialAccount/fetchUserFinancialAccountEpic.d.ts +0 -2
- package/lib/view/userFinancialAccount/fetchUserFinancialAccountEpic.js +2 -3
- package/lib/view/userFinancialAccount/userFinancialAccountSelector.d.ts +0 -1
- package/lib/view/userFinancialAccount/userFinancialAccountSelector.js +2 -3
- package/lib/view/userListView/userListViewPayload.d.ts +2 -1
- package/lib/view/userRoleConfigView/userRoleConfigPayload.d.ts +2 -1
- package/lib/view/vendorList/vendorListPayload.d.ts +2 -5
- package/lib/view/vendorList/vendorListSelector.d.ts +0 -1
- package/lib/view/vendorList/vendorListSelector.js +1 -3
- package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +3 -5
- package/lib/view/vendorReviewView/common/state/commonTypes.js +4 -26
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewAttachmentsEpic.d.ts +0 -3
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewPayload.d.ts +3 -3
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.d.ts +2 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +2 -2
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.js +3 -3
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewPayload.d.ts +2 -3
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewPayload.js +3 -5
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +0 -2
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.js +3 -5
- package/lib/view/vendorTypeList/vendorTypeListPayload.d.ts +2 -1
- package/lib/view/vendorTypeList/vendorTypeSelector.d.ts +0 -12
- package/lib/view/vendorTypeList/vendorTypeSelector.js +0 -11
- package/lib/view/zeniAccStatementList/fetchZeniAccStatementListEpic.js +2 -2
- package/lib/view/zeniAccStatementList/zeniAccStatementListPayload.d.ts +2 -1
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.js +1 -1
- package/lib/zeniAPI.d.ts +2 -0
- package/package.json +5 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Currency } from '../../../commonStateTypes/amount';
|
|
2
2
|
import { AccountBasePayload } from '../../account/accountPayload';
|
|
3
3
|
import { ClassBasePayload } from '../../class/classPayload';
|
|
4
|
-
import Line, {
|
|
4
|
+
import Line, { LineType, TransactionWithAccountAndClassLine, BillableStatus } from '../stateTypes/transactionLine';
|
|
5
5
|
import { CustomerBasePayload } from '../../customer/customerPayload';
|
|
6
6
|
import { TransactionIDPayload } from './transactionIDPayload';
|
|
7
7
|
import { VendorBasePayload } from '../../vendor/vendorPayload';
|
|
8
|
-
|
|
8
|
+
interface TransactionLineBasePayload {
|
|
9
9
|
line_id: string;
|
|
10
10
|
line_description: string;
|
|
11
11
|
amount: number;
|
|
@@ -19,14 +19,12 @@ export interface LineDetailPayload {
|
|
|
19
19
|
vendor?: VendorBasePayload;
|
|
20
20
|
billable_status?: BillableStatus;
|
|
21
21
|
}
|
|
22
|
-
export declare const toTransactionLineBase: (payload: TransactionLineBasePayload, lineType: LineType, currency: Currency) => TransactionLineBase;
|
|
23
22
|
/**
|
|
24
23
|
* Linked Transaction Line Payload
|
|
25
24
|
*/
|
|
26
|
-
|
|
25
|
+
interface LinkedTransactionLinePayload extends TransactionLineBasePayload {
|
|
27
26
|
linked_transactions: TransactionIDPayload[];
|
|
28
27
|
}
|
|
29
|
-
export declare const toLinkedTransactionLine: (payload: LinkedTransactionLinePayload, currency: Currency) => LinkedTransactionLine;
|
|
30
28
|
/**
|
|
31
29
|
* Transaction with account and class line payload
|
|
32
30
|
*/
|
|
@@ -40,49 +38,41 @@ export declare const toTransactionWithAccountAndClassLine: (payload: Transaction
|
|
|
40
38
|
/**
|
|
41
39
|
* Transaction with product or service line payload
|
|
42
40
|
*/
|
|
43
|
-
|
|
41
|
+
interface ProductOrServiceItemPayload {
|
|
44
42
|
item_id: string;
|
|
45
43
|
item_name: string;
|
|
46
44
|
}
|
|
47
|
-
|
|
48
|
-
export interface LineDetailProductOrServicePayload extends LineDetailPayload {
|
|
45
|
+
interface LineDetailProductOrServicePayload extends LineDetailPayload {
|
|
49
46
|
item: ProductOrServiceItemPayload;
|
|
50
47
|
unit_price: number;
|
|
51
48
|
quantity: number;
|
|
52
49
|
}
|
|
53
|
-
|
|
50
|
+
interface TransactionWithProductOrServiceLinePayload extends TransactionWithAccountAndClassLinePayload {
|
|
54
51
|
line_detail: LineDetailProductOrServicePayload;
|
|
55
52
|
}
|
|
56
|
-
export declare const toTransactionWithProductOrServiceLine: (payload: TransactionWithProductOrServiceLinePayload, currency: Currency) => TransactionWithProductOrServiceLine;
|
|
57
53
|
/**
|
|
58
54
|
* Journal entry transaction line payload
|
|
59
55
|
*/
|
|
60
|
-
|
|
56
|
+
interface LineDetailJournalEntryPayload extends LineDetailPayload {
|
|
61
57
|
posting_type: string;
|
|
62
58
|
posting_type_name: string;
|
|
63
59
|
vendor?: VendorBasePayload;
|
|
64
60
|
}
|
|
65
|
-
|
|
61
|
+
interface JournalEntryTransactionLinePayload extends TransactionWithAccountAndClassLinePayload {
|
|
66
62
|
line_type: string;
|
|
67
63
|
line_detail: LineDetailJournalEntryPayload;
|
|
68
64
|
}
|
|
69
|
-
export declare const toJournalEntryTransactionLine: (payload: JournalEntryTransactionLinePayload, currency: Currency) => JournalEntryTransactionLine;
|
|
70
65
|
/**
|
|
71
66
|
* Transaction info line payload
|
|
72
67
|
*/
|
|
73
|
-
|
|
68
|
+
interface LineDetailInfoLinePayload {
|
|
74
69
|
line_detail_type: string;
|
|
75
70
|
}
|
|
76
|
-
|
|
71
|
+
interface TransactionInfoLinePayload extends TransactionLineBasePayload {
|
|
77
72
|
line_detail: LineDetailInfoLinePayload;
|
|
78
73
|
}
|
|
79
|
-
export declare const toTransactionInfoLine: (payload: TransactionInfoLinePayload, currency: Currency) => TransactionInfoLine;
|
|
80
74
|
export declare type LinePayload = LinkedTransactionLinePayload | TransactionWithProductOrServiceLinePayload | JournalEntryTransactionLinePayload | TransactionWithAccountAndClassLinePayload | TransactionInfoLinePayload;
|
|
81
|
-
/**
|
|
82
|
-
* Get the line type based on the line_detail_type
|
|
83
|
-
* @param payload line paylod
|
|
84
|
-
*/
|
|
85
|
-
export declare function getLineType(payload: LinePayload): LineType;
|
|
86
75
|
export declare function toLine(payload: LinePayload, currency: Currency, recipientCurrency?: Currency): Line;
|
|
87
76
|
export declare const toLinePayload: (line: Line) => LinePayload;
|
|
88
77
|
export declare const toAccountAndClassLinePayload: (line: TransactionWithAccountAndClassLine) => TransactionWithAccountAndClassLinePayload;
|
|
78
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toAccountAndClassLinePayload = exports.toLinePayload = exports.toLine = exports.
|
|
3
|
+
exports.toAccountAndClassLinePayload = exports.toLinePayload = exports.toLine = exports.toTransactionWithAccountAndClassLine = void 0;
|
|
4
4
|
const amount_1 = require("../../../commonStateTypes/amount");
|
|
5
5
|
const accountPayload_1 = require("../../account/accountPayload");
|
|
6
6
|
const classPayload_1 = require("../../class/classPayload");
|
|
@@ -16,12 +16,10 @@ const toTransactionLineBase = (payload, lineType, currency) => ({
|
|
|
16
16
|
amount: (0, amount_1.toAmountWC)(payload.amount, currency),
|
|
17
17
|
platformLineDetailType: (0, transactionLine_1.toPlatformLineDetailType)(payload.line_detail_type),
|
|
18
18
|
});
|
|
19
|
-
|
|
20
|
-
const toLinkedTransactionLine = (payload, currency) => (Object.assign(Object.assign({}, (0, exports.toTransactionLineBase)(payload, 'linked_transaction_line', currency)), { linkedTransactions: payload.linked_transactions.map((transactionIDPayload) => (0, transactionIDPayload_1.toTransactionID)(transactionIDPayload)) }));
|
|
21
|
-
exports.toLinkedTransactionLine = toLinkedTransactionLine;
|
|
19
|
+
const toLinkedTransactionLine = (payload, currency) => (Object.assign(Object.assign({}, toTransactionLineBase(payload, 'linked_transaction_line', currency)), { linkedTransactions: payload.linked_transactions.map((transactionIDPayload) => (0, transactionIDPayload_1.toTransactionID)(transactionIDPayload)) }));
|
|
22
20
|
const toTransactionWithAccountAndClassLine = (payload, currency, type = 'transaction_with_account_and_class_line') => {
|
|
23
21
|
var _a, _b, _c, _d, _e;
|
|
24
|
-
return (Object.assign(Object.assign({},
|
|
22
|
+
return (Object.assign(Object.assign({}, toTransactionLineBase(payload, type, currency)), { class: (0, classPayload_1.mapClassBasePayloadToClassBase)((_a = payload.line_detail.class) !== null && _a !== void 0 ? _a : {}), account: (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(payload.line_detail.account), customer: payload.line_detail.customer != null &&
|
|
25
23
|
payload.line_detail.customer.customer_id != null
|
|
26
24
|
? (0, customerPayload_1.toCustomerBase)(payload.line_detail.customer, false)
|
|
27
25
|
: undefined, vendor: payload.line_detail.vendor != null &&
|
|
@@ -36,13 +34,9 @@ const toProductOrServiceItem = (payload, unitPrice, currency, quantity) => ({
|
|
|
36
34
|
unitPrice: (0, amount_1.toAmountWC)(unitPrice, currency),
|
|
37
35
|
quantity: quantity,
|
|
38
36
|
});
|
|
39
|
-
exports.toProductOrServiceItem
|
|
40
|
-
const toTransactionWithProductOrServiceLine = (payload, currency) => (Object.assign(Object.assign({}, (0, exports.toTransactionWithAccountAndClassLine)(payload, currency, 'transaction_with_product_or_service_line')), { item: (0, exports.toProductOrServiceItem)(payload.line_detail.item, payload.line_detail.unit_price, currency, payload.line_detail.quantity), lineDetailType: (0, transactionLine_1.toPlatformLineDetailType)(payload.line_detail.line_detail_type) }));
|
|
41
|
-
exports.toTransactionWithProductOrServiceLine = toTransactionWithProductOrServiceLine;
|
|
37
|
+
const toTransactionWithProductOrServiceLine = (payload, currency) => (Object.assign(Object.assign({}, (0, exports.toTransactionWithAccountAndClassLine)(payload, currency, 'transaction_with_product_or_service_line')), { item: toProductOrServiceItem(payload.line_detail.item, payload.line_detail.unit_price, currency, payload.line_detail.quantity), lineDetailType: (0, transactionLine_1.toPlatformLineDetailType)(payload.line_detail.line_detail_type) }));
|
|
42
38
|
const toJournalEntryTransactionLine = (payload, currency) => (Object.assign(Object.assign({}, (0, exports.toTransactionWithAccountAndClassLine)(payload, currency, 'journal_entry_transaction_line')), { lineTransactionType: (0, transactionType_1.toTransactionType)(payload.line_type), postingType: (0, transactionType_1.toTransactionCategory)(payload.line_detail.posting_type), postingTypeName: payload.line_detail.posting_type_name }));
|
|
43
|
-
|
|
44
|
-
const toTransactionInfoLine = (payload, currency) => (Object.assign(Object.assign({}, (0, exports.toTransactionLineBase)(payload, 'transaction_info_line', currency)), { lineDetailType: (0, transactionLine_1.toPlatformLineDetailType)(payload.line_detail.line_detail_type) }));
|
|
45
|
-
exports.toTransactionInfoLine = toTransactionInfoLine;
|
|
39
|
+
const toTransactionInfoLine = (payload, currency) => (Object.assign(Object.assign({}, toTransactionLineBase(payload, 'transaction_info_line', currency)), { lineDetailType: (0, transactionLine_1.toPlatformLineDetailType)(payload.line_detail.line_detail_type) }));
|
|
46
40
|
/**
|
|
47
41
|
* Get the line type based on the line_detail_type
|
|
48
42
|
* @param payload line paylod
|
|
@@ -70,22 +64,21 @@ function getLineType(payload) {
|
|
|
70
64
|
return 'transaction_line_base';
|
|
71
65
|
}
|
|
72
66
|
}
|
|
73
|
-
exports.getLineType = getLineType;
|
|
74
67
|
function toLine(payload, currency, recipientCurrency) {
|
|
75
68
|
const lineType = getLineType(payload);
|
|
76
69
|
switch (lineType) {
|
|
77
70
|
case 'linked_transaction_line':
|
|
78
|
-
return
|
|
71
|
+
return toLinkedTransactionLine(payload, currency);
|
|
79
72
|
case 'transaction_with_product_or_service_line':
|
|
80
|
-
return
|
|
73
|
+
return toTransactionWithProductOrServiceLine(payload, currency);
|
|
81
74
|
case 'journal_entry_transaction_line':
|
|
82
|
-
return
|
|
75
|
+
return toJournalEntryTransactionLine(payload, currency);
|
|
83
76
|
case 'transaction_with_account_and_class_line':
|
|
84
77
|
return (0, exports.toTransactionWithAccountAndClassLine)(payload, recipientCurrency !== null && recipientCurrency !== void 0 ? recipientCurrency : currency);
|
|
85
78
|
case 'transaction_info_line':
|
|
86
|
-
return
|
|
79
|
+
return toTransactionInfoLine(payload, currency);
|
|
87
80
|
case 'transaction_line_base':
|
|
88
|
-
return
|
|
81
|
+
return toTransactionLineBase(payload, 'transaction_line_base', currency);
|
|
89
82
|
}
|
|
90
83
|
}
|
|
91
84
|
exports.toLine = toLine;
|
|
@@ -19,7 +19,8 @@ export interface Attachment {
|
|
|
19
19
|
fileId: ID;
|
|
20
20
|
}
|
|
21
21
|
export declare const mapFileEntityToAttachment: (file: File) => Attachment;
|
|
22
|
-
|
|
22
|
+
interface AttachmentViewPayload {
|
|
23
23
|
transaction_attachments: AttachmentPayload[];
|
|
24
24
|
}
|
|
25
25
|
export declare type AttachmentViewResponse = ZeniAPIResponse<AttachmentViewPayload>;
|
|
26
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
declare const toPaymentType: (v: string) => "credit_card" | "cash" | "check";
|
|
2
2
|
export declare const toPaymentTypeStrict: (v?: string | undefined) => "credit_card" | "cash" | "check" | undefined;
|
|
3
3
|
export declare type PaymentType = ReturnType<typeof toPaymentType>;
|
|
4
|
+
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toPaymentTypeStrict =
|
|
3
|
+
exports.toPaymentTypeStrict = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
5
|
const ALL_PAYMENT_TYPES = ['check', 'cash', 'credit_card'];
|
|
6
6
|
const toPaymentType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_PAYMENT_TYPES);
|
|
7
|
-
exports.toPaymentType = toPaymentType;
|
|
8
7
|
const toPaymentTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_PAYMENT_TYPES);
|
|
9
8
|
exports.toPaymentTypeStrict = toPaymentTypeStrict;
|
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
export declare const toTypeOfTransaction: (v: string) => "schedule" | "supported";
|
|
2
|
-
export declare const toTypeOfTransactionStrict: (v?: string | undefined) => "schedule" | "supported" | undefined;
|
|
3
2
|
export declare type TypeOfTransactionType = ReturnType<typeof toTypeOfTransaction>;
|
|
4
|
-
|
|
3
|
+
declare const toCustomerTransactionType: (v: string) => "invoice" | "payment" | "credit_memo" | "sales_receipt" | "delayed_credit" | "delayed_charge" | "refund";
|
|
5
4
|
export declare const toCustomerTransactionTypeStrict: (v?: string | undefined) => "invoice" | "payment" | "credit_memo" | "sales_receipt" | "delayed_credit" | "delayed_charge" | "refund" | undefined;
|
|
6
5
|
export declare type CustomerTransactionType = ReturnType<typeof toCustomerTransactionType>;
|
|
7
|
-
|
|
6
|
+
declare const toVendorTransactionType: (v: string) => "expense" | "check" | "bill" | "bill_payment" | "bill_payment_check" | "bill_payment_credit_card" | "vendor_credit" | "credit_card_credit";
|
|
8
7
|
export declare const toVendorTransactionTypeStrict: (v?: string | undefined) => "expense" | "check" | "bill" | "bill_payment" | "bill_payment_check" | "bill_payment_credit_card" | "vendor_credit" | "credit_card_credit" | undefined;
|
|
9
8
|
export declare type VendorTransactionType = ReturnType<typeof toVendorTransactionType>;
|
|
10
|
-
|
|
11
|
-
export declare const toEmployeeTransactionTypeStrict: (v?: string | undefined) => undefined;
|
|
9
|
+
declare const toEmployeeTransactionType: (v: string) => never;
|
|
12
10
|
export declare type EmployeeTransactionType = ReturnType<typeof toEmployeeTransactionType>;
|
|
13
|
-
|
|
11
|
+
declare const toTransferTransactionType: (v: string) => "transfer" | "credit_card_payment";
|
|
14
12
|
export declare const toTransferTransactionTypeStrict: (v?: string | undefined) => "transfer" | "credit_card_payment" | undefined;
|
|
15
13
|
export declare type TransferTransactionType = ReturnType<typeof toTransferTransactionType>;
|
|
16
|
-
export declare const toJEAndDepositTransactionType: (v: string) => "transfer" | "credit_card_payment" | "deposit" | "journal_entry";
|
|
17
14
|
export declare const toJEAndDepositTransactionTypeStrict: (v?: string | undefined) => "transfer" | "credit_card_payment" | "deposit" | "journal_entry" | undefined;
|
|
18
|
-
|
|
19
|
-
export declare const toOtherTransactionType: (v: string) => "transfer" | "credit_card_payment" | "deposit" | "journal_entry";
|
|
20
|
-
export declare const toOtherTransactionTypeStrict: (v?: string | undefined) => "transfer" | "credit_card_payment" | "deposit" | "journal_entry" | undefined;
|
|
15
|
+
declare const toOtherTransactionType: (v: string) => "transfer" | "credit_card_payment" | "deposit" | "journal_entry";
|
|
21
16
|
export declare type OtherTransactionType = ReturnType<typeof toOtherTransactionType>;
|
|
22
17
|
export declare type TransactionType = CustomerTransactionType | VendorTransactionType | EmployeeTransactionType | OtherTransactionType;
|
|
23
18
|
export declare const toTransactionType: (v: string) => TransactionType;
|
|
@@ -25,3 +20,4 @@ export declare const toTransactionTypeStrict: (v?: string | undefined) => Transa
|
|
|
25
20
|
export declare const ALL_TRANSACTION_CATEGORY: readonly ["credit", "debit"];
|
|
26
21
|
export declare const toTransactionCategory: (v: string) => "credit" | "debit";
|
|
27
22
|
export declare type TransactionCategory = ReturnType<typeof toTransactionCategory>;
|
|
23
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toTransactionCategory = exports.ALL_TRANSACTION_CATEGORY = exports.toTransactionTypeStrict = exports.toTransactionType = exports.
|
|
3
|
+
exports.toTransactionCategory = exports.ALL_TRANSACTION_CATEGORY = exports.toTransactionTypeStrict = exports.toTransactionType = exports.toJEAndDepositTransactionTypeStrict = exports.toTransferTransactionTypeStrict = exports.toVendorTransactionTypeStrict = exports.toCustomerTransactionTypeStrict = exports.toTypeOfTransaction = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
5
|
const ALL_TYPES_OF_TRANSACTIONS = [
|
|
6
6
|
'schedule',
|
|
@@ -8,8 +8,6 @@ const ALL_TYPES_OF_TRANSACTIONS = [
|
|
|
8
8
|
];
|
|
9
9
|
const toTypeOfTransaction = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_TYPES_OF_TRANSACTIONS);
|
|
10
10
|
exports.toTypeOfTransaction = toTypeOfTransaction;
|
|
11
|
-
const toTypeOfTransactionStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_TYPES_OF_TRANSACTIONS);
|
|
12
|
-
exports.toTypeOfTransactionStrict = toTypeOfTransactionStrict;
|
|
13
11
|
const ALL_CUSTOMER_TRANSACTION_TYPE = [
|
|
14
12
|
'invoice',
|
|
15
13
|
'payment',
|
|
@@ -20,7 +18,6 @@ const ALL_CUSTOMER_TRANSACTION_TYPE = [
|
|
|
20
18
|
'refund',
|
|
21
19
|
];
|
|
22
20
|
const toCustomerTransactionType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_CUSTOMER_TRANSACTION_TYPE);
|
|
23
|
-
exports.toCustomerTransactionType = toCustomerTransactionType;
|
|
24
21
|
const toCustomerTransactionTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_CUSTOMER_TRANSACTION_TYPE);
|
|
25
22
|
exports.toCustomerTransactionTypeStrict = toCustomerTransactionTypeStrict;
|
|
26
23
|
const ALL_VENDOR_TRANSACTION_TYPE = [
|
|
@@ -34,25 +31,18 @@ const ALL_VENDOR_TRANSACTION_TYPE = [
|
|
|
34
31
|
'credit_card_credit',
|
|
35
32
|
];
|
|
36
33
|
const toVendorTransactionType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_VENDOR_TRANSACTION_TYPE);
|
|
37
|
-
exports.toVendorTransactionType = toVendorTransactionType;
|
|
38
34
|
const toVendorTransactionTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_VENDOR_TRANSACTION_TYPE);
|
|
39
35
|
exports.toVendorTransactionTypeStrict = toVendorTransactionTypeStrict;
|
|
40
36
|
const ALL_EMPLOYEE_TRANSACTION_TYPE = [];
|
|
41
37
|
const toEmployeeTransactionType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_EMPLOYEE_TRANSACTION_TYPE);
|
|
42
|
-
exports.toEmployeeTransactionType = toEmployeeTransactionType;
|
|
43
|
-
const toEmployeeTransactionTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_EMPLOYEE_TRANSACTION_TYPE);
|
|
44
|
-
exports.toEmployeeTransactionTypeStrict = toEmployeeTransactionTypeStrict;
|
|
45
38
|
const ALL_TRANSFER_TRANSACTION_TYPE = [
|
|
46
39
|
'transfer',
|
|
47
40
|
'credit_card_payment',
|
|
48
41
|
];
|
|
49
42
|
const toTransferTransactionType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_TRANSFER_TRANSACTION_TYPE);
|
|
50
|
-
exports.toTransferTransactionType = toTransferTransactionType;
|
|
51
43
|
const toTransferTransactionTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_TRANSFER_TRANSACTION_TYPE);
|
|
52
44
|
exports.toTransferTransactionTypeStrict = toTransferTransactionTypeStrict;
|
|
53
45
|
const JE_AND_DEPOSIT_TRANSACTION_TYPE = ['deposit', 'journal_entry'];
|
|
54
|
-
const toJEAndDepositTransactionType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_OTHER_TRANSACTION_TYPE);
|
|
55
|
-
exports.toJEAndDepositTransactionType = toJEAndDepositTransactionType;
|
|
56
46
|
const toJEAndDepositTransactionTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_OTHER_TRANSACTION_TYPE);
|
|
57
47
|
exports.toJEAndDepositTransactionTypeStrict = toJEAndDepositTransactionTypeStrict;
|
|
58
48
|
const ALL_OTHER_TRANSACTION_TYPE = [
|
|
@@ -60,9 +50,6 @@ const ALL_OTHER_TRANSACTION_TYPE = [
|
|
|
60
50
|
...JE_AND_DEPOSIT_TRANSACTION_TYPE,
|
|
61
51
|
];
|
|
62
52
|
const toOtherTransactionType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_OTHER_TRANSACTION_TYPE);
|
|
63
|
-
exports.toOtherTransactionType = toOtherTransactionType;
|
|
64
|
-
const toOtherTransactionTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_OTHER_TRANSACTION_TYPE);
|
|
65
|
-
exports.toOtherTransactionTypeStrict = toOtherTransactionTypeStrict;
|
|
66
53
|
const ALL_TRANSACTION_TYPE = [
|
|
67
54
|
...ALL_CUSTOMER_TRANSACTION_TYPE,
|
|
68
55
|
...ALL_VENDOR_TRANSACTION_TYPE,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="url-parse" />
|
|
2
1
|
import { UpdateType } from '../../commonStateTypes/common';
|
|
3
|
-
import {
|
|
2
|
+
import { UserPayload } from './userPayload';
|
|
4
3
|
import { User, UserState } from './userState';
|
|
5
4
|
export declare const initialState: UserState;
|
|
6
5
|
export declare const updateAllUsers: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -13,4 +12,3 @@ export default _default;
|
|
|
13
12
|
* Helper functions.
|
|
14
13
|
*/
|
|
15
14
|
export declare function mapUserPayloadToUser(payload: UserPayload): User;
|
|
16
|
-
export declare const toPhotoURL: (photoPayload?: PhotoPayload | null | undefined) => import("url-parse")<string> | import("url-parse")<Record<string, string | undefined>> | undefined;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
var _a;
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
7
|
+
exports.mapUserPayloadToUser = exports.clearAllUsers = exports.removeUser = exports.updateAllUsers = exports.initialState = void 0;
|
|
8
8
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
9
9
|
const get_1 = __importDefault(require("lodash/get"));
|
|
10
10
|
const assignWith_1 = __importDefault(require("lodash/assignWith"));
|
|
@@ -61,7 +61,7 @@ function mapUserPayloadToUser(payload) {
|
|
|
61
61
|
countryCode: (_g = payload.country_code) !== null && _g !== void 0 ? _g : undefined,
|
|
62
62
|
phone: (_h = payload.phone) !== null && _h !== void 0 ? _h : undefined,
|
|
63
63
|
ssn: (_j = payload.ssn) !== null && _j !== void 0 ? _j : undefined,
|
|
64
|
-
photo: payload.photo != null ?
|
|
64
|
+
photo: payload.photo != null ? toPhotoURL(payload.photo) : undefined,
|
|
65
65
|
lastSeenTime: payload.last_seen_time != null ? (0, zeniDayJS_1.date)(payload.last_seen_time) : undefined,
|
|
66
66
|
createTime: payload.create_time != null ? (0, zeniDayJS_1.date)(payload.create_time) : undefined,
|
|
67
67
|
updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined,
|
|
@@ -82,4 +82,3 @@ function mapUserPayloadToUser(payload) {
|
|
|
82
82
|
}
|
|
83
83
|
exports.mapUserPayloadToUser = mapUserPayloadToUser;
|
|
84
84
|
const toPhotoURL = (photoPayload) => (photoPayload === null || photoPayload === void 0 ? void 0 : photoPayload.original) == null ? undefined : (0, zeniUrl_1.toZeniUrl)(photoPayload.original);
|
|
85
|
-
exports.toPhotoURL = toPhotoURL;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ZeniDate } from '../../zeniDayJS';
|
|
2
2
|
import { ID } from '../../commonStateTypes/common';
|
|
3
3
|
import ZeniUrl from '../../zeniUrl';
|
|
4
|
-
|
|
4
|
+
interface UserBase {
|
|
5
5
|
userId: ID;
|
|
6
6
|
firstName: string;
|
|
7
7
|
lastName: string;
|
|
@@ -34,3 +34,4 @@ export interface User extends UserBase {
|
|
|
34
34
|
export interface UserState {
|
|
35
35
|
userByUserId: Record<ID, User>;
|
|
36
36
|
}
|
|
37
|
+
export {};
|
|
@@ -43,6 +43,6 @@ export interface UserRole {
|
|
|
43
43
|
export interface UserRoleState {
|
|
44
44
|
userRoleByUserId: Record<ID, UserRole>;
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
export declare const toInvitationStatus: (v: string) => "invited" | "accepted";
|
|
46
|
+
declare const toInvitationStatus: (v: string) => "invited" | "accepted";
|
|
48
47
|
export declare type InvitationStatus = ReturnType<typeof toInvitationStatus>;
|
|
48
|
+
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toInvitationStatus = exports.ALL_INVITATION_STATUS = void 0;
|
|
4
3
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
|
-
|
|
6
|
-
const toInvitationStatus = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
7
|
-
exports.toInvitationStatus = toInvitationStatus;
|
|
4
|
+
const ALL_INVITATION_STATUS = ['invited', 'accepted'];
|
|
5
|
+
const toInvitationStatus = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_INVITATION_STATUS);
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { CurrentTenant, TenantView } from '../tenant/tenantSelector';
|
|
2
2
|
import { LoggedInUser } from '../tenant/tenantState';
|
|
3
|
-
export declare const FINOPS_USER_ROLES: readonly ["controller", "tax_lead", "ap_analyst", "preparer", "reviewer", "customer_success_manager"];
|
|
4
|
-
export declare const toFinOpsUserRoleTypeStrict: (v?: string | undefined) => "controller" | "tax_lead" | "ap_analyst" | "preparer" | "reviewer" | "customer_success_manager" | undefined;
|
|
5
|
-
export declare const toFinOpsUserRoleType: (v: string) => "controller" | "tax_lead" | "ap_analyst" | "preparer" | "reviewer" | "customer_success_manager";
|
|
6
|
-
export declare type FinOpsUserRoleType = ReturnType<typeof toFinOpsUserRoleType>;
|
|
7
|
-
export declare const ALL_USER_ROLES: readonly ["admin", "bookkeeping_admin", "bookkeeping_user", "investor_or_banker", "company_officer", "reimbursements_user", "bill_pay_admin", "bill_pay_user", "reimbursements_admin", "deposit_accounts_admin", "deposit_accounts_user", "charge_card_admin", "charge_card_user", "controller", "tax_lead", "ap_analyst", "preparer", "reviewer", "customer_success_manager"];
|
|
8
3
|
export declare const toUserRoleTypeStrict: (v?: string | undefined) => "admin" | "bookkeeping_admin" | "bookkeeping_user" | "investor_or_banker" | "company_officer" | "reimbursements_user" | "bill_pay_admin" | "bill_pay_user" | "reimbursements_admin" | "deposit_accounts_admin" | "deposit_accounts_user" | "charge_card_admin" | "charge_card_user" | "controller" | "tax_lead" | "ap_analyst" | "preparer" | "reviewer" | "customer_success_manager" | undefined;
|
|
9
4
|
export declare const toUserRoleType: (v: string) => "admin" | "bookkeeping_admin" | "bookkeeping_user" | "investor_or_banker" | "company_officer" | "reimbursements_user" | "bill_pay_admin" | "bill_pay_user" | "reimbursements_admin" | "deposit_accounts_admin" | "deposit_accounts_user" | "charge_card_admin" | "charge_card_user" | "controller" | "tax_lead" | "ap_analyst" | "preparer" | "reviewer" | "customer_success_manager";
|
|
10
5
|
export declare type UserRoleType = ReturnType<typeof toUserRoleType>;
|
|
@@ -45,4 +40,3 @@ export declare const hasBillPayAccessible: (currentTenant: CurrentTenant | undef
|
|
|
45
40
|
export declare const hasReimbursementAccessible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap | undefined) => boolean;
|
|
46
41
|
export declare const hasChargeCardAccessible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap | undefined) => boolean;
|
|
47
42
|
export declare const hasZeniAccountsAccessible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap | undefined) => boolean;
|
|
48
|
-
export declare const hasAnySpendManagementTOSAccepted: (currentTenant: CurrentTenant | undefined) => boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.hasZeniAccountsAccessible = exports.hasChargeCardAccessible = exports.hasReimbursementAccessible = exports.hasBillPayAccessible = exports.hasFullOrAdminLevelAccess = exports.hasAnyAdminLevelAccess = exports.hasAnyFinOpRole = exports.hasAnyCompanyRole = exports.hasSpendManagementAdminLevelAccess = exports.hasSpendManagementAccess = exports.hasZeniAccountsAdminLevelAccess = exports.hasChargeCardAdminLevelAccess = exports.hasReimbursementAdminLevelAccess = exports.hasBillPayAdminLevelAccess = exports.hasZeniAccountsAccess = exports.hasChargeCardAccess = exports.hasReimbursementAccess = exports.hasBillPayAccess = exports.hasOnlyZeniAccountsAccess = exports.hasOnlyChargeCardAccess = exports.hasOnlyReimbursementAccess = exports.isZeniSignedInUser = exports.hasZeniRoleOrCompanyOfficerAccess = exports.hasOnlyBillPayAccess = exports.getUserRoleMap = exports.hasEmployeeLevelAccess = exports.hasInvestorBankerLevelAccess = exports.isNonZeniRole = exports.hasBookKeepingUserLevelAccess = exports.hasBookKeepingAdminLevelAccess = exports.hasSuperAdminLevelAccess = exports.hasReimbursementUserAccess = exports.hasRemiFallbackAdminLevelAccess = exports.hasBillPayFallbackAdminLevelAccess = exports.hasAdminLevelAccess = exports.isFinOpsUserRoleType = exports.toUserRoleType = exports.toUserRoleTypeStrict = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
|
-
|
|
5
|
+
const FINOPS_USER_ROLES = [
|
|
6
6
|
'controller',
|
|
7
7
|
'tax_lead',
|
|
8
8
|
'ap_analyst',
|
|
@@ -10,11 +10,8 @@ exports.FINOPS_USER_ROLES = [
|
|
|
10
10
|
'reviewer',
|
|
11
11
|
'customer_success_manager',
|
|
12
12
|
];
|
|
13
|
-
const toFinOpsUserRoleTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '',
|
|
14
|
-
|
|
15
|
-
const toFinOpsUserRoleType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.FINOPS_USER_ROLES);
|
|
16
|
-
exports.toFinOpsUserRoleType = toFinOpsUserRoleType;
|
|
17
|
-
exports.ALL_USER_ROLES = [
|
|
13
|
+
const toFinOpsUserRoleTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', FINOPS_USER_ROLES);
|
|
14
|
+
const ALL_USER_ROLES = [
|
|
18
15
|
'admin',
|
|
19
16
|
'bookkeeping_admin',
|
|
20
17
|
'bookkeeping_user',
|
|
@@ -28,13 +25,13 @@ exports.ALL_USER_ROLES = [
|
|
|
28
25
|
'deposit_accounts_user',
|
|
29
26
|
'charge_card_admin',
|
|
30
27
|
'charge_card_user',
|
|
31
|
-
...
|
|
28
|
+
...FINOPS_USER_ROLES,
|
|
32
29
|
];
|
|
33
|
-
const toUserRoleTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '',
|
|
30
|
+
const toUserRoleTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_USER_ROLES);
|
|
34
31
|
exports.toUserRoleTypeStrict = toUserRoleTypeStrict;
|
|
35
|
-
const toUserRoleType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
32
|
+
const toUserRoleType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_USER_ROLES);
|
|
36
33
|
exports.toUserRoleType = toUserRoleType;
|
|
37
|
-
const isFinOpsUserRoleType = (userRole) =>
|
|
34
|
+
const isFinOpsUserRoleType = (userRole) => toFinOpsUserRoleTypeStrict(userRole) != null;
|
|
38
35
|
exports.isFinOpsUserRoleType = isFinOpsUserRoleType;
|
|
39
36
|
const hasAdminLevelAccess = (roles) => {
|
|
40
37
|
if (roles.includes('admin')) {
|
|
@@ -207,7 +204,7 @@ const hasOnlyBillPayAccess = (userRoleMap) => {
|
|
|
207
204
|
exports.hasOnlyBillPayAccess = hasOnlyBillPayAccess;
|
|
208
205
|
const hasZeniRoleOrCompanyOfficerAccess = (role) => {
|
|
209
206
|
const zeniRolesWithCompanyOfficer = [
|
|
210
|
-
...
|
|
207
|
+
...FINOPS_USER_ROLES,
|
|
211
208
|
'company_officer',
|
|
212
209
|
];
|
|
213
210
|
return zeniRolesWithCompanyOfficer.includes(role);
|
|
@@ -487,18 +484,3 @@ const hasZeniAccountsAccessible = (currentTenant, userRoleMap) => {
|
|
|
487
484
|
return (isZeniAccountTOSAccepted && (0, exports.hasZeniAccountsAdminLevelAccess)(userRoleMap));
|
|
488
485
|
};
|
|
489
486
|
exports.hasZeniAccountsAccessible = hasZeniAccountsAccessible;
|
|
490
|
-
const hasAnySpendManagementTOSAccepted = (currentTenant) => {
|
|
491
|
-
var _a, _b, _c, _d;
|
|
492
|
-
if (currentTenant == null) {
|
|
493
|
-
return false;
|
|
494
|
-
}
|
|
495
|
-
const isBillPayTOSAccepted = Boolean((_a = currentTenant.company) === null || _a === void 0 ? void 0 : _a.companyBillPayInfo.isBillPayTOSAccepted);
|
|
496
|
-
const isReimbursementTOSAccepted = Boolean((_b = currentTenant.company) === null || _b === void 0 ? void 0 : _b.companyReimbursementInfo.isReimbursementTOSAccepted);
|
|
497
|
-
const isZeniAccountTOSAccepted = Boolean((_c = currentTenant.company) === null || _c === void 0 ? void 0 : _c.companyZeniAccountInfo.isZeniAccountTOSAccepted);
|
|
498
|
-
const isChargeCardTOSAccepted = Boolean((_d = currentTenant.company) === null || _d === void 0 ? void 0 : _d.companyChargeCardInfo.isChargeCardTOSAccepted);
|
|
499
|
-
return (isBillPayTOSAccepted ||
|
|
500
|
-
isReimbursementTOSAccepted ||
|
|
501
|
-
isZeniAccountTOSAccepted ||
|
|
502
|
-
isChargeCardTOSAccepted);
|
|
503
|
-
};
|
|
504
|
-
exports.hasAnySpendManagementTOSAccepted = hasAnySpendManagementTOSAccepted;
|
|
@@ -18,7 +18,7 @@ export interface VendorBasePayload {
|
|
|
18
18
|
}
|
|
19
19
|
export declare const mapVendorBasePayloadToVendorBase: (payload: VendorBasePayload) => VendorBase;
|
|
20
20
|
export declare const toVendorBasePayload: (tranVendor: VendorBase | undefined, vendorUpdates?: VendorBase | undefined) => VendorBasePayload;
|
|
21
|
-
|
|
21
|
+
interface MatchScorePayload {
|
|
22
22
|
value: number;
|
|
23
23
|
}
|
|
24
24
|
export interface SpendPayload {
|
|
@@ -74,3 +74,4 @@ export interface VendorPayload extends VendorBasePayload, SpendPayload {
|
|
|
74
74
|
preferred_international_transfer_fee_bearer_payment_method?: string;
|
|
75
75
|
}
|
|
76
76
|
export declare const mapVendorPayloadToVendor: (payload: VendorPayload) => Vendor;
|
|
77
|
+
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { VendorExpenseState
|
|
1
|
+
import { VendorExpenseState } from './vendorExpenseState';
|
|
2
2
|
import { InsightSummaryPayload } from '../insights/insightSummaryPayload';
|
|
3
3
|
import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
|
|
4
4
|
import { VendorBase } from '../vendor/vendorState';
|
|
5
5
|
import { COABalanceGroupedPayloadWithSpendTrend } from '../../view/trend/trendPayload';
|
|
6
|
-
export declare const initialVendorSpendState: VendorSpend;
|
|
7
6
|
export declare const initialState: VendorExpenseState;
|
|
8
7
|
export declare const updateVendorExpenseTrend: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[vendor: VendorBase, timePeriod: TimeframeTick, balances: COABalanceGroupedPayloadWithSpendTrend | undefined, insights: InsightSummaryPayload[] | undefined], {
|
|
9
8
|
vendor: VendorBase;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearAllVendorExpenseTrends = exports.updateVendorExpenseTrend = exports.initialState =
|
|
4
|
+
exports.clearAllVendorExpenseTrends = exports.updateVendorExpenseTrend = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const vendorExpenseState_1 = require("./vendorExpenseState");
|
|
7
7
|
const insightSummaryPayload_1 = require("../insights/insightSummaryPayload");
|
|
8
8
|
const timeframeTick_1 = require("../../commonStateTypes/timeframeTick");
|
|
9
9
|
const coaBalanceByAdditionalPeriodPayload_1 = require("../../commonPayloadTypes/coaBalanceByAdditionalPeriodPayload");
|
|
10
|
-
|
|
10
|
+
const initialVendorSpendState = {
|
|
11
11
|
last12MonthsExpense: 0,
|
|
12
12
|
last3MonthsExpense: 0,
|
|
13
13
|
last6MonthsExpense: 0,
|
|
@@ -21,7 +21,7 @@ exports.initialVendorSpendState = {
|
|
|
21
21
|
};
|
|
22
22
|
exports.initialState = {
|
|
23
23
|
vendorExpenseTrendByPeriod: {},
|
|
24
|
-
spend:
|
|
24
|
+
spend: initialVendorSpendState,
|
|
25
25
|
};
|
|
26
26
|
const vendor = (0, toolkit_1.createSlice)({
|
|
27
27
|
name: 'vendor',
|
|
@@ -45,13 +45,13 @@ const vendor = (0, toolkit_1.createSlice)({
|
|
|
45
45
|
last30DaysSpend: (_f = balances === null || balances === void 0 ? void 0 : balances.last_30_days_spend) !== null && _f !== void 0 ? _f : 0,
|
|
46
46
|
last90DaysSpend: (_g = balances === null || balances === void 0 ? void 0 : balances.last_90_days_spend) !== null && _g !== void 0 ? _g : 0,
|
|
47
47
|
yearToDateSpend: (_h = balances === null || balances === void 0 ? void 0 : balances.year_to_date_spend) !== null && _h !== void 0 ? _h : 0,
|
|
48
|
-
currencyCode: (_j = balances === null || balances === void 0 ? void 0 : balances.currency_code) !== null && _j !== void 0 ? _j :
|
|
49
|
-
currencySymbol: (_k = balances === null || balances === void 0 ? void 0 : balances.currency_symbol) !== null && _k !== void 0 ? _k :
|
|
50
|
-
changeType: (_m = (_l = insights === null || insights === void 0 ? void 0 : insights[0]) === null || _l === void 0 ? void 0 : _l.change_type) !== null && _m !== void 0 ? _m :
|
|
48
|
+
currencyCode: (_j = balances === null || balances === void 0 ? void 0 : balances.currency_code) !== null && _j !== void 0 ? _j : initialVendorSpendState.currencyCode,
|
|
49
|
+
currencySymbol: (_k = balances === null || balances === void 0 ? void 0 : balances.currency_symbol) !== null && _k !== void 0 ? _k : initialVendorSpendState.currencySymbol,
|
|
50
|
+
changeType: (_m = (_l = insights === null || insights === void 0 ? void 0 : insights[0]) === null || _l === void 0 ? void 0 : _l.change_type) !== null && _m !== void 0 ? _m : initialVendorSpendState.changeType,
|
|
51
51
|
percentChange: ((_o = insights === null || insights === void 0 ? void 0 : insights[0]) === null || _o === void 0 ? void 0 : _o.percent_change) != null &&
|
|
52
52
|
((_p = insights === null || insights === void 0 ? void 0 : insights[0]) === null || _p === void 0 ? void 0 : _p.percent_change.length) > 0
|
|
53
53
|
? (_q = insights === null || insights === void 0 ? void 0 : insights[0]) === null || _q === void 0 ? void 0 : _q.percent_change
|
|
54
|
-
:
|
|
54
|
+
: initialVendorSpendState.percentChange,
|
|
55
55
|
};
|
|
56
56
|
doUpdateVendor(draft.vendorExpenseTrendByPeriod, action.payload.vendor, action.payload.timePeriod, action.payload.balances, action.payload.insights);
|
|
57
57
|
},
|
|
@@ -4,6 +4,7 @@ import { VendorExpenseTrend } from './vendorExpenseTrend';
|
|
|
4
4
|
import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
|
|
5
5
|
import { Month } from '../../commonStateTypes/timePeriod';
|
|
6
6
|
export declare function getVendor(vendorExpenseState: VendorExpenseState, vendorId: ID, timePeriod: TimeframeTick | undefined, firstMonthOfFY?: Month, filter?: VendorSpendTrendFilterTabType): VendorExpenseTrend | undefined;
|
|
7
|
-
|
|
7
|
+
declare const toVendorSpendTrendFilterTabsType: (v: string) => "last_month" | "last_30_days" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year";
|
|
8
8
|
export declare const toVendorSpendTrendFilterTabsTypeStrict: (v: string) => "last_month" | "last_30_days" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year" | undefined;
|
|
9
9
|
export declare type VendorSpendTrendFilterTabType = ReturnType<typeof toVendorSpendTrendFilterTabsType>;
|
|
10
|
+
export {};
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.toVendorSpendTrendFilterTabsTypeStrict = exports.
|
|
6
|
+
exports.toVendorSpendTrendFilterTabsTypeStrict = exports.getVendor = void 0;
|
|
7
7
|
const vendorExpenseState_1 = require("./vendorExpenseState");
|
|
8
8
|
const get_1 = __importDefault(require("lodash/get"));
|
|
9
9
|
const vendorExpenseTrend_1 = require("./vendorExpenseTrend");
|
|
@@ -31,6 +31,5 @@ const VENDOR_SPEND_TREND_FILTER_TABS_TYPES = [
|
|
|
31
31
|
'last_year',
|
|
32
32
|
];
|
|
33
33
|
const toVendorSpendTrendFilterTabsType = (v) => (0, stringToUnion_1.stringToUnion)(v, VENDOR_SPEND_TREND_FILTER_TABS_TYPES);
|
|
34
|
-
exports.toVendorSpendTrendFilterTabsType = toVendorSpendTrendFilterTabsType;
|
|
35
34
|
const toVendorSpendTrendFilterTabsTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, VENDOR_SPEND_TREND_FILTER_TABS_TYPES);
|
|
36
35
|
exports.toVendorSpendTrendFilterTabsTypeStrict = toVendorSpendTrendFilterTabsTypeStrict;
|
|
@@ -12,7 +12,7 @@ export interface VendorExpenseTrendData {
|
|
|
12
12
|
expenseTrend: COABalanceByAdditionalPeriodGrouped;
|
|
13
13
|
insights: InsightSummary[];
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
interface VendorExpenseTrendType extends VendorExpenseTrendData {
|
|
16
16
|
filter?: VendorSpendTrendFilterTabType;
|
|
17
17
|
firstMonthOfFY?: Month;
|
|
18
18
|
}
|
|
@@ -34,3 +34,4 @@ export declare class VendorExpenseTrend implements TrendTimeseries {
|
|
|
34
34
|
}
|
|
35
35
|
export declare const getFilteredExpenseTrend: (expenseTrend: COABalanceByAdditionalPeriodGrouped, filter: VendorSpendTrendFilterTabType, firstMonthOfFY?: 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | undefined) => COABalance[];
|
|
36
36
|
export declare const getYTDSpend: (months: COABalance[], firstMonthOfFY: Month) => COABalance[];
|
|
37
|
+
export {};
|