@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,6 +1,6 @@
|
|
|
1
1
|
import { URLPayload } from '../../commonPayloadTypes/urlPayload';
|
|
2
|
-
import { PaymentAccount
|
|
3
|
-
|
|
2
|
+
import { PaymentAccount } from './paymentAccountState';
|
|
3
|
+
interface InstitutionPayload {
|
|
4
4
|
provider_institution_id?: string | null;
|
|
5
5
|
institution_name?: string | null;
|
|
6
6
|
zeni_institution_id?: string | null;
|
|
@@ -49,4 +49,4 @@ export interface PaymentAccountPayload {
|
|
|
49
49
|
create_time: string;
|
|
50
50
|
}
|
|
51
51
|
export declare const toPaymentAccount: (payload: PaymentAccountPayload) => PaymentAccount;
|
|
52
|
-
export
|
|
52
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toPaymentAccount = void 0;
|
|
4
4
|
const urlPayload_1 = require("../../commonPayloadTypes/urlPayload");
|
|
5
5
|
const amount_1 = require("../../commonStateTypes/amount");
|
|
6
6
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
@@ -12,7 +12,7 @@ const toPaymentAccount = (payload) => {
|
|
|
12
12
|
providerAccountId: payload.provider_account_id,
|
|
13
13
|
provider: payload.provider,
|
|
14
14
|
accountName: payload.account_name.trim(),
|
|
15
|
-
institutionDetails:
|
|
15
|
+
institutionDetails: toInstitutionDetails(payload.institution),
|
|
16
16
|
maskedAccountNumber: payload.masked_account_number,
|
|
17
17
|
accountLast4Digits: payload.account_number_last4,
|
|
18
18
|
accountType: (0, companyPayload_1.toAllowedValueWithCode)(payload.account_type),
|
|
@@ -59,4 +59,3 @@ const toInstitutionDetails = (institution) => {
|
|
|
59
59
|
: undefined,
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
|
-
exports.toInstitutionDetails = toInstitutionDetails;
|
|
@@ -2,7 +2,7 @@ import { RunwayPayload } from '../../../view/netBurnOrIncome/netBurnOrIncomePayl
|
|
|
2
2
|
export interface RunwayBalanceGroupedPayload {
|
|
3
3
|
months: AccountingSummaryRunwayPayload[];
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
interface AccountingSummaryRunwayPayload extends RunwayPayload {
|
|
6
6
|
start_date: string;
|
|
7
7
|
end_date: string;
|
|
8
8
|
id: string;
|
|
@@ -16,7 +16,7 @@ export interface BalancePayload {
|
|
|
16
16
|
available: number | null;
|
|
17
17
|
current: number | null;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
interface AccountingSummaryBalancePayload {
|
|
20
20
|
balance: BalancePayload;
|
|
21
21
|
start_date: string;
|
|
22
22
|
end_date: string;
|
|
@@ -41,3 +41,4 @@ export interface AccountingSummaryPayload {
|
|
|
41
41
|
update_time: string;
|
|
42
42
|
create_time: string;
|
|
43
43
|
}
|
|
44
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import { BillAccountPayload, BillPaymentMethodPayload, BillPaymentStatusPayload,
|
|
|
5
5
|
import { ClassBasePayload } from '../class/classPayload';
|
|
6
6
|
import { MerchantBasePayload } from '../merchant/merchantPayload';
|
|
7
7
|
import { AttachmentPayload } from '../transaction/payloadTypes/attachmentPayload';
|
|
8
|
-
import {
|
|
8
|
+
import { LineDetail, Reimbursement, ReimbursementTypeCode } from './reimbursementState';
|
|
9
9
|
export interface ReimbursementPayload {
|
|
10
10
|
reimbursement_provider: string;
|
|
11
11
|
transaction_type: string;
|
|
@@ -35,7 +35,7 @@ export interface ReimbursementPayload {
|
|
|
35
35
|
logo: URLPayload;
|
|
36
36
|
}
|
|
37
37
|
export declare type ReimbursementLinePayload = MilageReimbursementLinePayload | OutofPocketReimbursementLinePayload;
|
|
38
|
-
|
|
38
|
+
interface ReimbursementLineBasePayload extends AmountPayload {
|
|
39
39
|
file_id: string | null;
|
|
40
40
|
home_currency_conversions: AmountPayload;
|
|
41
41
|
line_description: string;
|
|
@@ -44,14 +44,14 @@ export interface ReimbursementLineBasePayload extends AmountPayload {
|
|
|
44
44
|
reimbursement_type: ReimbursementTypePayload;
|
|
45
45
|
transaction_date: string;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
interface MilageReimbursementLinePayload extends ReimbursementLineBasePayload {
|
|
48
48
|
distance_mileage: DistanceMilagePayload;
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
interface DistanceMilagePayload {
|
|
51
51
|
unit: string;
|
|
52
52
|
value: number;
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
interface OutofPocketReimbursementLinePayload extends ReimbursementLineBasePayload {
|
|
55
55
|
merchant: MerchantBasePayload;
|
|
56
56
|
}
|
|
57
57
|
export interface AmountPayload {
|
|
@@ -59,7 +59,7 @@ export interface AmountPayload {
|
|
|
59
59
|
currency_code: string;
|
|
60
60
|
currency_symbol: string;
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
interface ReimbursementTypePayload {
|
|
63
63
|
code: string;
|
|
64
64
|
name?: string;
|
|
65
65
|
}
|
|
@@ -67,7 +67,7 @@ export interface LineDetailPayload {
|
|
|
67
67
|
class: ClassBasePayload;
|
|
68
68
|
account?: AccountBasePayload;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
interface ReimbursementInfoPayload {
|
|
71
71
|
stage: BillStagePayload;
|
|
72
72
|
stage_update_time?: string | null;
|
|
73
73
|
reimbursement_payment_status: BillPaymentStatusPayload;
|
|
@@ -84,21 +84,8 @@ export interface ReimbursementInfoPayload {
|
|
|
84
84
|
from_account: BillAccountPayload;
|
|
85
85
|
}
|
|
86
86
|
export declare type ReimbursementTransactionType = ReturnType<typeof toReimbursementTransactionType>;
|
|
87
|
-
|
|
88
|
-
export declare const toReimbursementTransactionTypeStrict: (v?: string | undefined) => "reimbursement" | undefined;
|
|
87
|
+
declare const toReimbursementTransactionType: (v: string) => "reimbursement";
|
|
89
88
|
export declare const toReimbursement: (payload: ReimbursementPayload) => Reimbursement;
|
|
90
|
-
export declare const toReimbursementInfo: (payload: ReimbursementInfoPayload) => ReimbursementInfo;
|
|
91
89
|
export declare const toReimbursementLinePayload: (line: SegregatedReimbursementLineWithRecommendation) => ReimbursementLinePayload;
|
|
92
|
-
export declare const toMilageReimbursementLinePayload: (line: SegregatedReimbursementLineWithRecommendation) => MilageReimbursementLinePayload;
|
|
93
|
-
export declare const toOutofPocketReimbursementLinePayload: (line: SegregatedReimbursementLineWithRecommendation) => OutofPocketReimbursementLinePayload;
|
|
94
|
-
export declare const toReimbursementLine: (payload: ReimbursementLinePayload) => ReimbursementLine;
|
|
95
|
-
export declare const toMilageReimbursementLine: (payload: MilageReimbursementLinePayload) => MilageReimbursementLine;
|
|
96
|
-
export declare const toOutofPocketReimbursementLine: (payload: OutofPocketReimbursementLinePayload) => OutofPocketReimbursementLine;
|
|
97
|
-
export declare const toReimbursementLineBase: (payload: MilageReimbursementLinePayload | OutofPocketReimbursementLinePayload) => ReimbursementLineBase;
|
|
98
|
-
export declare const toReimbursementLineBasePayload: (line: ReimbursementLineBase) => ReimbursementLineBasePayload;
|
|
99
|
-
export declare const toReimbursementTypePayloadPayload: (reimbursementTypeCode: ReimbursementTypeCode) => ReimbursementTypePayload;
|
|
100
90
|
export declare const toLineDetailPayload: (lineDetail: LineDetail) => LineDetailPayload;
|
|
101
|
-
export
|
|
102
|
-
export declare const toDistanceMilage: (payload: DistanceMilagePayload) => DistanceMilage;
|
|
103
|
-
export declare const toDistanceMilagePayload: (distanceMilage: DistanceMilage) => DistanceMilagePayload;
|
|
104
|
-
export declare const toRemiBillAccount: (payload: BillAccountPayload) => RemiBillAccount;
|
|
91
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toLineDetailPayload = exports.toReimbursementLinePayload = exports.toReimbursement = void 0;
|
|
4
4
|
const urlPayload_1 = require("../../commonPayloadTypes/urlPayload");
|
|
5
5
|
const amount_1 = require("../../commonStateTypes/amount");
|
|
6
6
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
@@ -12,14 +12,11 @@ const merchantPayload_1 = require("../merchant/merchantPayload");
|
|
|
12
12
|
const attachmentPayload_1 = require("../transaction/payloadTypes/attachmentPayload");
|
|
13
13
|
const ALL_REIMBURSEMENT_TRANSACTION_TYPE = ['reimbursement'];
|
|
14
14
|
const toReimbursementTransactionType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_REIMBURSEMENT_TRANSACTION_TYPE);
|
|
15
|
-
exports.toReimbursementTransactionType = toReimbursementTransactionType;
|
|
16
|
-
const toReimbursementTransactionTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_REIMBURSEMENT_TRANSACTION_TYPE);
|
|
17
|
-
exports.toReimbursementTransactionTypeStrict = toReimbursementTransactionTypeStrict;
|
|
18
15
|
const toReimbursement = (payload) => {
|
|
19
16
|
var _a, _b, _c, _d, _e, _f;
|
|
20
17
|
return ({
|
|
21
18
|
id: payload.transaction_id,
|
|
22
|
-
type:
|
|
19
|
+
type: toReimbursementTransactionType(payload.transaction_type),
|
|
23
20
|
provider: payload.reimbursement_provider,
|
|
24
21
|
syncToken: payload.sync_token,
|
|
25
22
|
reportTitle: payload.report_title,
|
|
@@ -33,8 +30,8 @@ const toReimbursement = (payload) => {
|
|
|
33
30
|
documentId: (_b = payload.document_id) !== null && _b !== void 0 ? _b : '',
|
|
34
31
|
entityApprovalId: payload.entity_approval_id,
|
|
35
32
|
attachments: (_d = (_c = payload.attachments) === null || _c === void 0 ? void 0 : _c.map((attachmentPayload) => (0, attachmentPayload_1.toAttachment)(attachmentPayload))) !== null && _d !== void 0 ? _d : [],
|
|
36
|
-
reimbursementInfo:
|
|
37
|
-
lines: (_e = payload === null || payload === void 0 ? void 0 : payload.lines) === null || _e === void 0 ? void 0 : _e.map((linePayload) =>
|
|
33
|
+
reimbursementInfo: toReimbursementInfo(payload.reimbursement_info),
|
|
34
|
+
lines: (_e = payload === null || payload === void 0 ? void 0 : payload.lines) === null || _e === void 0 ? void 0 : _e.map((linePayload) => toReimbursementLine(linePayload)),
|
|
38
35
|
createdBy: payload.created_by_user_id,
|
|
39
36
|
lastUpdatedBy: (_f = payload.last_updated_by_user_id) !== null && _f !== void 0 ? _f : '',
|
|
40
37
|
createTime: (0, zeniDayJS_1.date)(payload.transaction_create_time),
|
|
@@ -57,8 +54,8 @@ const toReimbursementInfo = (payload) => {
|
|
|
57
54
|
? (0, zeniDayJS_1.date)(payload.reimbursement_payment_status_update_time)
|
|
58
55
|
: undefined,
|
|
59
56
|
billPaymentMethodType: (0, billTransactionPayload_1.toBillPaymentMethod)(payload.reimbursement_payment_method_type),
|
|
60
|
-
fromAccount:
|
|
61
|
-
toAccount:
|
|
57
|
+
fromAccount: toRemiBillAccount(payload.from_account),
|
|
58
|
+
toAccount: toRemiBillAccount(payload.to_account),
|
|
62
59
|
billStatus: (0, billTransactionPayload_1.toBillStatus)(payload.reimbursement_status),
|
|
63
60
|
expectedDepositDate: payload.expected_deposit_date != null
|
|
64
61
|
? (0, zeniDayJS_1.date)(payload.expected_deposit_date)
|
|
@@ -70,14 +67,13 @@ const toReimbursementInfo = (payload) => {
|
|
|
70
67
|
: undefined,
|
|
71
68
|
});
|
|
72
69
|
};
|
|
73
|
-
exports.toReimbursementInfo = toReimbursementInfo;
|
|
74
70
|
const toReimbursementLinePayload = (line) => {
|
|
75
71
|
const remiType = line.type;
|
|
76
72
|
if (remiType === 'mileage') {
|
|
77
|
-
return
|
|
73
|
+
return toMilageReimbursementLinePayload(line);
|
|
78
74
|
}
|
|
79
75
|
else {
|
|
80
|
-
return
|
|
76
|
+
return toOutofPocketReimbursementLinePayload(line);
|
|
81
77
|
}
|
|
82
78
|
};
|
|
83
79
|
exports.toReimbursementLinePayload = toReimbursementLinePayload;
|
|
@@ -99,9 +95,8 @@ const toMilageReimbursementLinePayload = (line) => {
|
|
|
99
95
|
value: 0,
|
|
100
96
|
unit: 'miles',
|
|
101
97
|
};
|
|
102
|
-
return Object.assign(Object.assign({},
|
|
98
|
+
return Object.assign(Object.assign({}, toReimbursementLineBasePayload(tempLine)), { distance_mileage: toDistanceMilagePayload(mileage) });
|
|
103
99
|
};
|
|
104
|
-
exports.toMilageReimbursementLinePayload = toMilageReimbursementLinePayload;
|
|
105
100
|
const toOutofPocketReimbursementLinePayload = (line) => {
|
|
106
101
|
var _a, _b, _c, _d, _e, _f;
|
|
107
102
|
const tempLine = {
|
|
@@ -116,28 +111,23 @@ const toOutofPocketReimbursementLinePayload = (line) => {
|
|
|
116
111
|
currencyCode: (_e = line.outOfPocket.currencyCode) !== null && _e !== void 0 ? _e : 'USD',
|
|
117
112
|
currencySymbol: (_f = line.outOfPocket.currencySymbol) !== null && _f !== void 0 ? _f : '$',
|
|
118
113
|
};
|
|
119
|
-
return Object.assign(Object.assign({},
|
|
114
|
+
return Object.assign(Object.assign({}, toReimbursementLineBasePayload(tempLine)), { merchant: (0, merchantPayload_1.toMerchantBasePayload)(line.outOfPocket.merchant) });
|
|
120
115
|
};
|
|
121
|
-
exports.toOutofPocketReimbursementLinePayload = toOutofPocketReimbursementLinePayload;
|
|
122
116
|
const toReimbursementLine = (payload) => {
|
|
123
117
|
const remiType = payload.reimbursement_type.code;
|
|
124
118
|
if (remiType === 'mileage') {
|
|
125
|
-
return
|
|
119
|
+
return toMilageReimbursementLine(payload);
|
|
126
120
|
}
|
|
127
121
|
else {
|
|
128
|
-
return
|
|
122
|
+
return toOutofPocketReimbursementLine(payload);
|
|
129
123
|
}
|
|
130
124
|
};
|
|
131
|
-
|
|
132
|
-
const
|
|
133
|
-
exports.toMilageReimbursementLine = toMilageReimbursementLine;
|
|
134
|
-
const toOutofPocketReimbursementLine = (payload) => (Object.assign(Object.assign({}, (0, exports.toReimbursementLineBase)(payload)), { merchant: (0, merchantPayload_1.mapMerchantBasePayloadToMerchantBase)(payload.merchant) }));
|
|
135
|
-
exports.toOutofPocketReimbursementLine = toOutofPocketReimbursementLine;
|
|
125
|
+
const toMilageReimbursementLine = (payload) => (Object.assign(Object.assign({}, toReimbursementLineBase(payload)), { distanceMileage: toDistanceMilage(payload.distance_mileage) }));
|
|
126
|
+
const toOutofPocketReimbursementLine = (payload) => (Object.assign(Object.assign({}, toReimbursementLineBase(payload)), { merchant: (0, merchantPayload_1.mapMerchantBasePayloadToMerchantBase)(payload.merchant) }));
|
|
136
127
|
const toReimbursementLineBase = (payload) => {
|
|
137
128
|
var _a;
|
|
138
|
-
return (Object.assign(Object.assign({}, (0, amount_1.toAmount)(payload.amount, payload.currency_code, payload.currency_symbol)), { fileId: (_a = payload.file_id) !== null && _a !== void 0 ? _a : '', homeCurrencyConversions: (0, amount_1.toAmount)(payload.home_currency_conversions.amount, payload.home_currency_conversions.currency_code, payload.home_currency_conversions.currency_symbol), description: payload.line_description, lineDetail:
|
|
129
|
+
return (Object.assign(Object.assign({}, (0, amount_1.toAmount)(payload.amount, payload.currency_code, payload.currency_symbol)), { fileId: (_a = payload.file_id) !== null && _a !== void 0 ? _a : '', homeCurrencyConversions: (0, amount_1.toAmount)(payload.home_currency_conversions.amount, payload.home_currency_conversions.currency_code, payload.home_currency_conversions.currency_symbol), description: payload.line_description, lineDetail: toLineDetail(payload.line_detail), lineId: payload.line_id, type: payload.reimbursement_type.code, transactionDate: (0, zeniDayJS_1.date)(payload.transaction_date) }));
|
|
139
130
|
};
|
|
140
|
-
exports.toReimbursementLineBase = toReimbursementLineBase;
|
|
141
131
|
const toReimbursementLineBasePayload = (line) => {
|
|
142
132
|
var _a, _b;
|
|
143
133
|
return ({
|
|
@@ -156,18 +146,16 @@ const toReimbursementLineBasePayload = (line) => {
|
|
|
156
146
|
line_description: line.description,
|
|
157
147
|
line_detail: (0, exports.toLineDetailPayload)(line.lineDetail),
|
|
158
148
|
line_id: line.lineId,
|
|
159
|
-
reimbursement_type:
|
|
149
|
+
reimbursement_type: toReimbursementTypePayloadPayload(line.type),
|
|
160
150
|
transaction_date: (_b = line.transactionDate) === null || _b === void 0 ? void 0 : _b.format('YYYY-MM-DD'),
|
|
161
151
|
amount: line.amount,
|
|
162
152
|
currency_code: line.currencyCode,
|
|
163
153
|
currency_symbol: line.currencySymbol,
|
|
164
154
|
});
|
|
165
155
|
};
|
|
166
|
-
exports.toReimbursementLineBasePayload = toReimbursementLineBasePayload;
|
|
167
156
|
const toReimbursementTypePayloadPayload = (reimbursementTypeCode) => ({
|
|
168
157
|
code: reimbursementTypeCode,
|
|
169
158
|
});
|
|
170
|
-
exports.toReimbursementTypePayloadPayload = toReimbursementTypePayloadPayload;
|
|
171
159
|
const toLineDetailPayload = (lineDetail) => ({
|
|
172
160
|
class: (0, classPayload_1.toClassBasePayload)(lineDetail.class),
|
|
173
161
|
account: lineDetail.account != null
|
|
@@ -186,17 +174,14 @@ const toLineDetail = (payload) => {
|
|
|
186
174
|
: undefined,
|
|
187
175
|
});
|
|
188
176
|
};
|
|
189
|
-
exports.toLineDetail = toLineDetail;
|
|
190
177
|
const toDistanceMilage = (payload) => ({
|
|
191
178
|
unit: payload.unit,
|
|
192
179
|
value: payload.value,
|
|
193
180
|
});
|
|
194
|
-
exports.toDistanceMilage = toDistanceMilage;
|
|
195
181
|
const toDistanceMilagePayload = (distanceMilage) => ({
|
|
196
182
|
unit: distanceMilage.unit,
|
|
197
183
|
value: distanceMilage.value,
|
|
198
184
|
});
|
|
199
|
-
exports.toDistanceMilagePayload = toDistanceMilagePayload;
|
|
200
185
|
const toRemiBillAccount = (payload) => ({
|
|
201
186
|
billAccountId: payload.account_id != null
|
|
202
187
|
? payload.account_id
|
|
@@ -205,4 +190,3 @@ const toRemiBillAccount = (payload) => ({
|
|
|
205
190
|
: undefined,
|
|
206
191
|
billAccountType: payload.account_type != null ? payload.account_type : '',
|
|
207
192
|
});
|
|
208
|
-
exports.toRemiBillAccount = toRemiBillAccount;
|
|
@@ -82,8 +82,9 @@ export interface ReimbursementState {
|
|
|
82
82
|
}
|
|
83
83
|
export declare type ReimbursementTypeCode = 'mileage' | 'out_of_pocket';
|
|
84
84
|
export declare type DistanceUnitType = 'miles' | 'kilometers';
|
|
85
|
-
|
|
85
|
+
interface RemiPaymentMethod {
|
|
86
86
|
code: BillPaymentConfigCodeType;
|
|
87
87
|
name: string;
|
|
88
88
|
subCode: BillPaymentSubConfigCodeType;
|
|
89
89
|
}
|
|
90
|
+
export {};
|
|
@@ -6,4 +6,3 @@ export interface SubscriptionAddOnWithSchema {
|
|
|
6
6
|
schema: Record<SchemaKeys, AllowedValue[]>;
|
|
7
7
|
}
|
|
8
8
|
export declare function getSubscriptionAddOnsByIds(subscriptionAddOnState: SubscriptionAddOnState, subscriptionAddOnIds: ID[]): SubscriptionAddOnWithSchema[];
|
|
9
|
-
export declare function getSubscriptionAddOnById(subscriptionAddOnState: SubscriptionAddOnState, subscriptionAddOnId: ID): SubscriptionAddOnWithSchema | undefined;
|
|
@@ -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.getSubscriptionAddOnsByIds = void 0;
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
8
|
function getSubscriptionAddOnsByIds(subscriptionAddOnState, subscriptionAddOnIds) {
|
|
9
9
|
const subscriptionAddOns = subscriptionAddOnIds
|
|
@@ -24,4 +24,3 @@ function getSubscriptionAddOnById(subscriptionAddOnState, subscriptionAddOnId) {
|
|
|
24
24
|
return undefined;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
exports.getSubscriptionAddOnById = getSubscriptionAddOnById;
|
|
@@ -6,4 +6,3 @@ export interface SubscriptionCouponWithSchema {
|
|
|
6
6
|
schema: Record<SchemaKeys, AllowedValue[]>;
|
|
7
7
|
}
|
|
8
8
|
export declare function getSubscriptionCouponsByIds(subscriptionCouponState: SubscriptionCouponState, subscriptionCouponIds: ID[]): SubscriptionCouponWithSchema[];
|
|
9
|
-
export declare function getSubscriptionCouponById(subscriptionCouponState: SubscriptionCouponState, subscriptionCouponId: ID): SubscriptionCouponWithSchema | undefined;
|
|
@@ -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.getSubscriptionCouponsByIds = void 0;
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
8
|
function getSubscriptionCouponsByIds(subscriptionCouponState, subscriptionCouponIds) {
|
|
9
9
|
const subscriptionCouponsWithSchema = subscriptionCouponIds
|
|
@@ -24,4 +24,3 @@ function getSubscriptionCouponById(subscriptionCouponState, subscriptionCouponId
|
|
|
24
24
|
return undefined;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
exports.getSubscriptionCouponById = getSubscriptionCouponById;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SubscriptionPlanState } from './subscriptionPlanState';
|
|
2
2
|
import { SubscriptionPlanPayload, SubscriptionPlanSchemaPayload } from './subscriptionPlanPayload';
|
|
3
3
|
export declare const initialState: SubscriptionPlanState;
|
|
4
4
|
export declare const updateSubscriptionPlans: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -7,7 +7,3 @@ export declare const updateSubscriptionPlans: import("@reduxjs/toolkit").ActionC
|
|
|
7
7
|
}, string>, removeSubscriptionPlan: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, clearAllSubscriptionPlans: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
8
8
|
declare const _default: import("@reduxjs/toolkit").Reducer<SubscriptionPlanState, import("@reduxjs/toolkit").AnyAction>;
|
|
9
9
|
export default _default;
|
|
10
|
-
/**
|
|
11
|
-
* Helper functions.
|
|
12
|
-
*/
|
|
13
|
-
export declare function toSubscriptionPlan(payload: SubscriptionPlanPayload): SubscriptionPlan;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.clearAllSubscriptionPlans = exports.removeSubscriptionPlan = exports.updateSubscriptionPlans = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const amount_1 = require("../../../commonStateTypes/amount");
|
|
7
7
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
@@ -65,4 +65,3 @@ function toSubscriptionPlan(payload) {
|
|
|
65
65
|
chargebeePlanId: payload.chargebee_plan_id,
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
exports.toSubscriptionPlan = toSubscriptionPlan;
|
|
@@ -6,5 +6,4 @@ export interface SubscriptionSummaryWithSchema {
|
|
|
6
6
|
schema: Record<SchemaKeys, AllowedValue[]>;
|
|
7
7
|
}
|
|
8
8
|
export declare function getSubscriptionSummariesByIds(state: SubscriptionSummaryState, subscriptionSummaryIds: ID[]): SubscriptionSummaryWithSchema[];
|
|
9
|
-
export declare function getSubscriptionSummaryById(state: SubscriptionSummaryState, subscriptionSummaryId: ID): SubscriptionSummaryWithSchema | undefined;
|
|
10
9
|
export declare function getSubscriptionSummaryByCompanyId(state: SubscriptionSummaryState, companyId: ID): SubscriptionSummaryWithSchema | undefined;
|
|
@@ -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.getSubscriptionSummaryByCompanyId = exports.
|
|
6
|
+
exports.getSubscriptionSummaryByCompanyId = exports.getSubscriptionSummariesByIds = void 0;
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
8
|
function getSubscriptionSummariesByIds(state, subscriptionSummaryIds) {
|
|
9
9
|
const subscriptionSummaries = subscriptionSummaryIds
|
|
@@ -24,7 +24,6 @@ function getSubscriptionSummaryById(state, subscriptionSummaryId) {
|
|
|
24
24
|
return undefined;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
exports.getSubscriptionSummaryById = getSubscriptionSummaryById;
|
|
28
27
|
function getSubscriptionSummaryByCompanyId(state, companyId) {
|
|
29
28
|
const summary = (0, get_1.default)(state.subscriptionSummaryByCompanyId, companyId, undefined);
|
|
30
29
|
if (summary != null) {
|
|
@@ -35,9 +35,7 @@ export interface TaskStatus {
|
|
|
35
35
|
code: TaskStatusCodeType;
|
|
36
36
|
name: string;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
export declare const toTaskTagCodeType: (v: string) => "invoices" | "receipts" | "tax_equity" | "payroll_statements" | "accrual" | "ar" | "ap" | "loan" | "uncategorized_transactions" | "access";
|
|
40
|
-
export declare const toTaskTagCodeTypeStrict: (v?: string | undefined) => "invoices" | "receipts" | "tax_equity" | "payroll_statements" | "accrual" | "ar" | "ap" | "loan" | "uncategorized_transactions" | "access" | undefined;
|
|
38
|
+
declare const toTaskTagCodeType: (v: string) => "invoices" | "receipts" | "tax_equity" | "payroll_statements" | "accrual" | "ar" | "ap" | "loan" | "uncategorized_transactions" | "access";
|
|
41
39
|
export declare type TaskTagCodeType = ReturnType<typeof toTaskTagCodeType>;
|
|
42
40
|
export declare const ALL_PRIORITY_CODE: readonly ["urgent", "high", "medium", "low"];
|
|
43
41
|
export declare const toPriorityCodeType: (v: string) => "high" | "low" | "medium" | "urgent";
|
|
@@ -45,12 +43,11 @@ export declare const toPriorityCodeTypeStrict: (v?: string | undefined) => "high
|
|
|
45
43
|
export declare type PriorityCodeType = ReturnType<typeof toPriorityCodeType>;
|
|
46
44
|
export declare const ALL_TASK_STATUS_CODE: readonly ["todo", "in_progress", "on_hold", "done", "resolved"];
|
|
47
45
|
export declare const toTaskStatusCodeType: (v: string) => "done" | "todo" | "in_progress" | "on_hold" | "resolved";
|
|
48
|
-
export declare const toTaskStatusCodeTypeStrict: (v?: string | undefined) => "done" | "todo" | "in_progress" | "on_hold" | "resolved" | undefined;
|
|
49
46
|
export declare type TaskStatusCodeType = ReturnType<typeof toTaskStatusCodeType>;
|
|
50
47
|
export declare const toTaskCodeType: (v: string) => "recurring" | "one_time";
|
|
51
|
-
export declare const toTaskCodeTypeStrict: (v?: string | undefined) => "recurring" | "one_time" | undefined;
|
|
52
48
|
export declare type TaskCodeType = NonNullable<ReturnType<typeof toTaskCodeType>>;
|
|
53
49
|
export interface TaskType {
|
|
54
50
|
code: TaskCodeType;
|
|
55
51
|
name: string;
|
|
56
52
|
}
|
|
53
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toTaskCodeType = exports.toTaskStatusCodeType = exports.ALL_TASK_STATUS_CODE = exports.toPriorityCodeTypeStrict = exports.toPriorityCodeType = exports.ALL_PRIORITY_CODE = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
|
-
|
|
5
|
+
const ALL_TASK_TAG_CODE = [
|
|
6
6
|
'invoices',
|
|
7
7
|
'receipts',
|
|
8
8
|
'tax_equity',
|
|
@@ -14,10 +14,7 @@ exports.ALL_TASK_TAG_CODE = [
|
|
|
14
14
|
'uncategorized_transactions',
|
|
15
15
|
'access',
|
|
16
16
|
];
|
|
17
|
-
const toTaskTagCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
18
|
-
exports.toTaskTagCodeType = toTaskTagCodeType;
|
|
19
|
-
const toTaskTagCodeTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', exports.ALL_TASK_TAG_CODE);
|
|
20
|
-
exports.toTaskTagCodeTypeStrict = toTaskTagCodeTypeStrict;
|
|
17
|
+
const toTaskTagCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_TASK_TAG_CODE);
|
|
21
18
|
exports.ALL_PRIORITY_CODE = ['urgent', 'high', 'medium', 'low'];
|
|
22
19
|
const toPriorityCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_PRIORITY_CODE);
|
|
23
20
|
exports.toPriorityCodeType = toPriorityCodeType;
|
|
@@ -32,10 +29,6 @@ exports.ALL_TASK_STATUS_CODE = [
|
|
|
32
29
|
];
|
|
33
30
|
const toTaskStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_TASK_STATUS_CODE);
|
|
34
31
|
exports.toTaskStatusCodeType = toTaskStatusCodeType;
|
|
35
|
-
const toTaskStatusCodeTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', exports.ALL_TASK_STATUS_CODE);
|
|
36
|
-
exports.toTaskStatusCodeTypeStrict = toTaskStatusCodeTypeStrict;
|
|
37
32
|
const ALL_TASK_CODE_TYPE = ['one_time', 'recurring'];
|
|
38
33
|
const toTaskCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_TASK_CODE_TYPE);
|
|
39
34
|
exports.toTaskCodeType = toTaskCodeType;
|
|
40
|
-
const toTaskCodeTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_TASK_CODE_TYPE);
|
|
41
|
-
exports.toTaskCodeTypeStrict = toTaskCodeTypeStrict;
|
|
@@ -20,7 +20,7 @@ export interface TenantBaseView extends TenantCoreDetailsView {
|
|
|
20
20
|
companyLocaleInfo?: CompanyLocaleInfo;
|
|
21
21
|
}
|
|
22
22
|
export declare function getTenant(tenantState: TenantState, companyState: CompanyState, tenantId: ID): TenantView | undefined;
|
|
23
|
-
|
|
23
|
+
declare function getTenantsByCheckInDate(tenantState: TenantState, companyState: CompanyState): {
|
|
24
24
|
order: "descending_last_check_in";
|
|
25
25
|
tenantsInOrder: TenantView[];
|
|
26
26
|
};
|
|
@@ -30,7 +30,7 @@ export declare type TenantsBaseOrdered = {
|
|
|
30
30
|
order: 'descending_last_check_in';
|
|
31
31
|
tenantsBaseInOrder: TenantBaseView[];
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
declare type TenantsCoreDetailsOrdered = {
|
|
34
34
|
order: 'descending_last_check_in';
|
|
35
35
|
tenantsCoreDetailsInOrder: TenantCoreDetailsView[];
|
|
36
36
|
};
|
|
@@ -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.isOtherProductsEnabledForTenant = exports.isTenantBookkeepingEnabled = exports.isTenantCardsOnly = exports.isTenantBankingOnly = exports.toTenantCoreDetailsView = exports.getCurrentTenantExternalConnections = exports.isTenantUsingZeniCOA = exports.isZeniDomainTenant = exports.getTenantBaseViewForTenantView = exports.getTenantsCoreDetailsByCheckInDateSelector = exports.getTenantsBaseByCheckInDateSelector = exports.getTenantBaseById = exports.getOnboardingTenantByTenantId = exports.getTenantsByCheckInDateSelector = exports.getCurrentTenant = exports.getTenantBaseViewForTenantId = exports.
|
|
6
|
+
exports.isOtherProductsEnabledForTenant = exports.isTenantBookkeepingEnabled = exports.isTenantCardsOnly = exports.isTenantBankingOnly = exports.toTenantCoreDetailsView = exports.getCurrentTenantExternalConnections = exports.isTenantUsingZeniCOA = exports.isZeniDomainTenant = exports.getTenantBaseViewForTenantView = exports.getTenantsCoreDetailsByCheckInDateSelector = exports.getTenantsBaseByCheckInDateSelector = exports.getTenantBaseById = exports.getOnboardingTenantByTenantId = exports.getTenantsByCheckInDateSelector = exports.getCurrentTenant = exports.getTenantBaseViewForTenantId = exports.getTenant = void 0;
|
|
7
7
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
8
8
|
const orderBy_1 = __importDefault(require("lodash/orderBy"));
|
|
9
9
|
const companySelector_1 = require("../company/companySelector");
|
|
@@ -29,7 +29,6 @@ function getTenantsByCheckInDate(tenantState, companyState) {
|
|
|
29
29
|
tenantsInOrder: tenantsOrdered,
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
exports.getTenantsByCheckInDate = getTenantsByCheckInDate;
|
|
33
32
|
exports.getTenantBaseViewForTenantId = (0, toolkit_1.createSelector)((state) => state.tenantState, (state) => state.companyState, (_state, tenantId) => tenantId, (tenantState, companyState, tenantId) => {
|
|
34
33
|
var _a, _b, _c;
|
|
35
34
|
const tenant = tenantState.tenantsById[tenantId];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ID } from '../../commonStateTypes/common';
|
|
2
2
|
import { ZeniDate } from '../../zeniDayJS';
|
|
3
|
-
import {
|
|
3
|
+
import { NotificationGroup, NotificationIdentifierType } from '../notification/types/notificationTypes';
|
|
4
4
|
import { SnackbarMessageSections, SnackbarMessageSectionTexts, SnackbarMessageType, SnackbarVariablesType } from '../snackbar/snackbarTypes';
|
|
5
5
|
export interface ToastNotification {
|
|
6
6
|
notificationId: ID;
|
|
@@ -16,15 +16,12 @@ export interface ToastNotificationState {
|
|
|
16
16
|
lastNotificationTime: number;
|
|
17
17
|
notificationTimeoutId: number | null;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
interface ToastNotificationConfig {
|
|
20
20
|
messageSection: SnackbarMessageSections;
|
|
21
21
|
messageText: SnackbarMessageSectionTexts;
|
|
22
22
|
type: SnackbarMessageType;
|
|
23
23
|
showStatusIcon?: boolean;
|
|
24
24
|
variables: SnackbarVariablesType[];
|
|
25
25
|
}
|
|
26
|
-
export interface ToastNotificationConfigMap extends Omit<ToastNotificationConfig, 'variables'> {
|
|
27
|
-
variables: string[];
|
|
28
|
-
}
|
|
29
|
-
export declare const toastNotificationMapper: Record<NotificationActivityType, ToastNotificationConfigMap>;
|
|
30
26
|
export declare const getToastNotificationFromIdentifier: (payload: ToastNotification) => ToastNotificationConfig;
|
|
27
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getToastNotificationFromIdentifier =
|
|
3
|
+
exports.getToastNotificationFromIdentifier = void 0;
|
|
4
4
|
const notificationTypes_1 = require("../notification/types/notificationTypes");
|
|
5
5
|
const snackbarTypes_1 = require("../snackbar/snackbarTypes");
|
|
6
|
-
|
|
6
|
+
const toastNotificationMapper = {
|
|
7
7
|
task_assigned: {
|
|
8
8
|
messageSection: 'task_assigned_toast_notification',
|
|
9
9
|
messageText: 'notification',
|
|
@@ -55,7 +55,7 @@ exports.toastNotificationMapper = {
|
|
|
55
55
|
};
|
|
56
56
|
const getToastNotificationFromIdentifier = (payload) => {
|
|
57
57
|
const toastIdentifier = (0, notificationTypes_1.toNotificationActivityType)(payload.notificationIdentifier.split('.')[1]);
|
|
58
|
-
const toastConfig =
|
|
58
|
+
const toastConfig = toastNotificationMapper[toastIdentifier];
|
|
59
59
|
const variables = toastConfig.variables.map((variableName) => {
|
|
60
60
|
var _a;
|
|
61
61
|
let variableValue = (_a = payload.variables.find((variable) => variable.variableName === variableName)) === null || _a === void 0 ? void 0 : _a.variableValue;
|