@zeniai/client-epic-state 4.11.97 → 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/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 -24
- package/lib/entity/company/companyPayload.js +9 -17
- package/lib/entity/company/companyStateTypes.d.ts +6 -7
- 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 +56 -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/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/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/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/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/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/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/saveBillDetailEpic.d.ts +0 -8
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +3 -4
- 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/magicLinkViewPayload.d.ts +7 -6
- 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/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/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/fetchRemiAndInitializeLocalStoreEpic.d.ts +0 -6
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +2 -12
- 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/remiDetailViewPayload.d.ts +4 -3
- 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/depositAccountDetail/depositAccountDetailPayload.d.ts +3 -2
- 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/transferDetail/transferDetailPayload.d.ts +3 -2
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailState.d.ts +2 -1
- 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/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/zeniAccStatementListPayload.d.ts +2 -1
- package/package.json +5 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AllowedValueWithCode, AllowedValueWithID } from '../../commonStateTypes/allowedValue';
|
|
2
2
|
import { ID } from '../../commonStateTypes/common';
|
|
3
|
-
import { Company,
|
|
3
|
+
import { Company, ParentSubsidiaryInfo, OnboardingInfo } from './companyStateTypes';
|
|
4
4
|
import { CustomerRatingCodeType, TeamRatingCodeType } from '../customerSatisfaction/customerSatisfactionState';
|
|
5
5
|
export declare const defaultParentSubsidiaryObject: ParentSubsidiaryInfo;
|
|
6
6
|
export interface CompanyInfoPayload {
|
|
@@ -19,7 +19,7 @@ export interface CompanyInfoPayload {
|
|
|
19
19
|
phone: string | null;
|
|
20
20
|
first_month_of_fiscal_year?: string | undefined;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
interface CompanyLocaleInfoPayload {
|
|
23
23
|
company_inc_country_code: string | null;
|
|
24
24
|
language_code?: string | null;
|
|
25
25
|
currency_code?: string | null;
|
|
@@ -65,10 +65,10 @@ export interface CompanyQuestionairePayload {
|
|
|
65
65
|
referrer_type: string | null;
|
|
66
66
|
referrer_name: string | null;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
interface BillPayNowCutOffByMethodPayload {
|
|
69
69
|
ach: string;
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
interface CompanyBillPayInfoDataPayload {
|
|
72
72
|
bill_pay_tos_acceptance_user_id: string | null;
|
|
73
73
|
bill_pay_tos_acceptance_user_agent: string | null;
|
|
74
74
|
bill_pay_tos_acceptance_time: string | null;
|
|
@@ -101,7 +101,7 @@ export interface UserReimbursementInfoDataPayload {
|
|
|
101
101
|
is_reimbursement_tos_accepted: boolean;
|
|
102
102
|
reimbursement_tos_acceptance_ip: string | null;
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
interface CompanyReimbursementInfoDataPayload extends UserReimbursementInfoDataPayload {
|
|
105
105
|
is_reimbursement_enabled: boolean;
|
|
106
106
|
reimbursement_tos_acceptance_user_id: string | null;
|
|
107
107
|
primary_funding_account: {
|
|
@@ -109,7 +109,7 @@ export interface CompanyReimbursementInfoDataPayload extends UserReimbursementIn
|
|
|
109
109
|
account_type: string | null;
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
interface CompanyZeniAccountInfoDataPayload {
|
|
113
113
|
deposit_accounts_tos_acceptance_user_agent: string | null;
|
|
114
114
|
deposit_accounts_tos_acceptance_time: string | null;
|
|
115
115
|
is_deposit_accounts_tos_accepted: boolean;
|
|
@@ -121,7 +121,7 @@ export interface CompanyZeniAccountInfoDataPayload {
|
|
|
121
121
|
account_type: string | null;
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
interface CompanyChargeCardInfoDataPayload {
|
|
125
125
|
charge_cards_tos_acceptance_time: string | null;
|
|
126
126
|
charge_cards_tos_acceptance_user_id: string | null;
|
|
127
127
|
charge_cards_tos_acceptance_user_agent: string | null;
|
|
@@ -133,19 +133,19 @@ export interface CompanyChargeCardInfoDataPayload {
|
|
|
133
133
|
account_type: string | null;
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
interface CompanyBillPayInfoPayload {
|
|
137
137
|
bill_pay_info: CompanyBillPayInfoDataPayload;
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
interface CompanyReimbursementInfoPayload {
|
|
140
140
|
reimbursement_info: CompanyReimbursementInfoDataPayload;
|
|
141
141
|
}
|
|
142
|
-
|
|
142
|
+
interface CompanyZeniAccountInfoPayload {
|
|
143
143
|
deposit_accounts_info: CompanyZeniAccountInfoDataPayload;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
interface CompanyChargeCardInfoPayload {
|
|
146
146
|
charge_cards_info: CompanyChargeCardInfoDataPayload;
|
|
147
147
|
}
|
|
148
|
-
|
|
148
|
+
interface CompanyMileageConfigInfoPayload {
|
|
149
149
|
mileage_unit_amount: number | null;
|
|
150
150
|
default_mileage_unit_amount: number;
|
|
151
151
|
mileage_unit: string;
|
|
@@ -165,23 +165,15 @@ export interface CompanyConfigInfoPayload {
|
|
|
165
165
|
is_new_company_industry_verified: boolean;
|
|
166
166
|
is_unit_migration_required: boolean;
|
|
167
167
|
}
|
|
168
|
-
|
|
168
|
+
interface CompanyFeaturesActivationInfoPayload {
|
|
169
169
|
is_bill_pay_feature_enabled: boolean;
|
|
170
170
|
is_reimbursement_feature_enabled: boolean;
|
|
171
171
|
is_deposit_accounts_feature_enabled: boolean;
|
|
172
172
|
connected_account_provider: string;
|
|
173
173
|
is_feature_vendor_listing_enabled: boolean;
|
|
174
174
|
}
|
|
175
|
-
export declare const toCompanyFeaturesActivationInfo: (payload: CompanyFeaturesActivationInfoPayload) => CompanyFeaturesActivationInfo;
|
|
176
|
-
export declare const toCompanyBillPayInfo: (payload: CompanyBillPayInfoDataPayload) => CompanyBillPayInfo;
|
|
177
|
-
export declare const toCompanyReimbursementInfo: (payload: CompanyReimbursementInfoDataPayload) => CompanyReimbursementInfo;
|
|
178
|
-
export declare const toCompanyZeniAccountInfo: (payload: CompanyZeniAccountInfoDataPayload) => CompanyZeniAccountInfo;
|
|
179
|
-
export declare const toCompanyChargeCardInfo: (payload: CompanyChargeCardInfoDataPayload) => CompanyChargeCardInfo;
|
|
180
|
-
export declare const toCompanyMileageConfigInfo: (payload: CompanyMileageConfigInfoPayload) => CompanyMileageConfigInfo;
|
|
181
|
-
export declare const toPayNowCutOffByMethod: (payload: BillPayNowCutOffByMethodPayload) => BillPayNowCutOffByMethod;
|
|
182
175
|
export declare const toOnboardingInfo: (onboardingInfoPayload?: OnboardingInfoPayload | undefined) => OnboardingInfo | undefined;
|
|
183
|
-
|
|
184
|
-
export interface CompanyManagementUserRolePayload {
|
|
176
|
+
interface CompanyManagementUserRolePayload {
|
|
185
177
|
is_zeni: boolean;
|
|
186
178
|
user_id: string;
|
|
187
179
|
user_email?: null;
|
|
@@ -192,7 +184,7 @@ export interface CompanyManagementUserRolePayload {
|
|
|
192
184
|
is_reviewer?: boolean;
|
|
193
185
|
is_tax_lead?: boolean;
|
|
194
186
|
}
|
|
195
|
-
|
|
187
|
+
interface UpdateCustomerSatisfactionPayload {
|
|
196
188
|
customer_note?: string;
|
|
197
189
|
customer_rating_code?: CustomerRatingCodeType;
|
|
198
190
|
team_note?: string;
|
|
@@ -262,7 +254,7 @@ export interface OnboardingInfoPayload {
|
|
|
262
254
|
onboarding_identity_verification_status: string;
|
|
263
255
|
onboarding_business_verification_status: string;
|
|
264
256
|
}
|
|
265
|
-
|
|
257
|
+
interface CompanyOnboardingInfoPayload {
|
|
266
258
|
onboarding_user_ids: ID[];
|
|
267
259
|
is_subsidiary: boolean;
|
|
268
260
|
parent_company_id: ID | null;
|
|
@@ -288,3 +280,4 @@ export declare const toAllowedValueWithCode: (payload: {
|
|
|
288
280
|
code: string | null;
|
|
289
281
|
name: string | null;
|
|
290
282
|
}) => AllowedValueWithCode | undefined;
|
|
283
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toAllowedValueWithCode = exports.toCompany = exports.
|
|
3
|
+
exports.toAllowedValueWithCode = exports.toCompany = exports.toOnboardingInfo = exports.defaultParentSubsidiaryObject = void 0;
|
|
4
4
|
const companyStateTypes_1 = require("./companyStateTypes");
|
|
5
5
|
const amount_1 = require("../../commonStateTypes/amount");
|
|
6
6
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
@@ -120,7 +120,6 @@ const toCompanyFeaturesActivationInfo = (payload) => ({
|
|
|
120
120
|
connectedAccountProvider: payload.connected_account_provider,
|
|
121
121
|
isFeatureVendorListingEnabled: payload.is_feature_vendor_listing_enabled,
|
|
122
122
|
});
|
|
123
|
-
exports.toCompanyFeaturesActivationInfo = toCompanyFeaturesActivationInfo;
|
|
124
123
|
const toCompanyBillPayInfo = (payload) => {
|
|
125
124
|
var _a, _b, _c;
|
|
126
125
|
return ({
|
|
@@ -143,7 +142,7 @@ const toCompanyBillPayInfo = (payload) => {
|
|
|
143
142
|
usersSelectedForVerification: payload.users_for_verification,
|
|
144
143
|
businessVerificationStatus: (0, exports.toAllowedValueWithCode)(payload.business_verification_status),
|
|
145
144
|
companyVerificationStatus: (0, exports.toAllowedValueWithCode)(payload.company_verification_status),
|
|
146
|
-
payNowCutOffTimeByMethod:
|
|
145
|
+
payNowCutOffTimeByMethod: toPayNowCutOffByMethod(payload.schedule_pay_now_cutoff_time_by_payment_method),
|
|
147
146
|
primaryFundingAccount: payload.primary_funding_account.account_id != null &&
|
|
148
147
|
payload.primary_funding_account.account_type != null
|
|
149
148
|
? {
|
|
@@ -153,7 +152,6 @@ const toCompanyBillPayInfo = (payload) => {
|
|
|
153
152
|
: undefined,
|
|
154
153
|
});
|
|
155
154
|
};
|
|
156
|
-
exports.toCompanyBillPayInfo = toCompanyBillPayInfo;
|
|
157
155
|
const toCompanyReimbursementInfo = (payload) => {
|
|
158
156
|
var _a, _b, _c, _d;
|
|
159
157
|
return ({
|
|
@@ -174,7 +172,6 @@ const toCompanyReimbursementInfo = (payload) => {
|
|
|
174
172
|
: undefined,
|
|
175
173
|
});
|
|
176
174
|
};
|
|
177
|
-
exports.toCompanyReimbursementInfo = toCompanyReimbursementInfo;
|
|
178
175
|
const toCompanyZeniAccountInfo = (payload) => {
|
|
179
176
|
var _a, _b, _c, _d, _e;
|
|
180
177
|
return ({
|
|
@@ -195,7 +192,6 @@ const toCompanyZeniAccountInfo = (payload) => {
|
|
|
195
192
|
: undefined,
|
|
196
193
|
});
|
|
197
194
|
};
|
|
198
|
-
exports.toCompanyZeniAccountInfo = toCompanyZeniAccountInfo;
|
|
199
195
|
const toCompanyChargeCardInfo = (payload) => {
|
|
200
196
|
var _a, _b, _c, _d, _e;
|
|
201
197
|
return ({
|
|
@@ -216,7 +212,6 @@ const toCompanyChargeCardInfo = (payload) => {
|
|
|
216
212
|
: undefined,
|
|
217
213
|
});
|
|
218
214
|
};
|
|
219
|
-
exports.toCompanyChargeCardInfo = toCompanyChargeCardInfo;
|
|
220
215
|
const toCompanyMileageConfigInfo = (payload) => {
|
|
221
216
|
var _a, _b;
|
|
222
217
|
return ({
|
|
@@ -233,13 +228,11 @@ const toCompanyMileageConfigInfo = (payload) => {
|
|
|
233
228
|
},
|
|
234
229
|
});
|
|
235
230
|
};
|
|
236
|
-
exports.toCompanyMileageConfigInfo = toCompanyMileageConfigInfo;
|
|
237
231
|
const toPayNowCutOffByMethod = (payload) => {
|
|
238
232
|
return {
|
|
239
233
|
ach: (0, zeniDayJS_1.date)(payload.ach),
|
|
240
234
|
};
|
|
241
235
|
};
|
|
242
|
-
exports.toPayNowCutOffByMethod = toPayNowCutOffByMethod;
|
|
243
236
|
const toOnboardingInfo = (onboardingInfoPayload) => {
|
|
244
237
|
var _a, _b, _c, _d, _e, _f;
|
|
245
238
|
if (onboardingInfoPayload == null) {
|
|
@@ -298,7 +291,6 @@ const toCompanyOnboardingInfo = (payload) => ({
|
|
|
298
291
|
onboardingInfo: (0, exports.toOnboardingInfo)(payload.onboarding_info),
|
|
299
292
|
isOnboardingCompleted: payload.is_onboarding_completed,
|
|
300
293
|
});
|
|
301
|
-
exports.toCompanyOnboardingInfo = toCompanyOnboardingInfo;
|
|
302
294
|
const toCompanyManagementInfo = (payload) => {
|
|
303
295
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
304
296
|
return ({
|
|
@@ -378,17 +370,17 @@ const toCompany = (payload, companiesPayload, isUpdate, companyInStore, companyI
|
|
|
378
370
|
questionaire: toCompanyQuestionarie(payload, (_a = payload.currency_code) !== null && _a !== void 0 ? _a : '', (_b = payload.currency_symbol) !== null && _b !== void 0 ? _b : ''),
|
|
379
371
|
taxInfo: toCompanyTaxInfo(payload),
|
|
380
372
|
managegmentInfo: toCompanyManagementInfo(payload),
|
|
381
|
-
companyBillPayInfo:
|
|
382
|
-
companyReimbursementInfo:
|
|
383
|
-
companyZeniAccountInfo:
|
|
384
|
-
companyChargeCardInfo:
|
|
385
|
-
companyOnboardingInfo:
|
|
386
|
-
featuresActivationInfo:
|
|
373
|
+
companyBillPayInfo: toCompanyBillPayInfo(payload.bill_pay_info),
|
|
374
|
+
companyReimbursementInfo: toCompanyReimbursementInfo(payload.reimbursement_info),
|
|
375
|
+
companyZeniAccountInfo: toCompanyZeniAccountInfo(payload.deposit_accounts_info),
|
|
376
|
+
companyChargeCardInfo: toCompanyChargeCardInfo(payload.charge_cards_info),
|
|
377
|
+
companyOnboardingInfo: toCompanyOnboardingInfo(payload),
|
|
378
|
+
featuresActivationInfo: toCompanyFeaturesActivationInfo(payload),
|
|
387
379
|
parentSubsidiaryInfo: isUpdate === true && companyInStore
|
|
388
380
|
? companyInStore.parentSubsidiaryInfo
|
|
389
381
|
: toCompanyParentSubsidiaryInfo(payload, companiesPayload),
|
|
390
382
|
configInfo: {
|
|
391
|
-
mileageRateConfig:
|
|
383
|
+
mileageRateConfig: toCompanyMileageConfigInfo(payload.mileage_rate_config),
|
|
392
384
|
isMonthEndReportInDraft: payload.is_month_end_email_in_draft,
|
|
393
385
|
isUnitMigrationTOSRequired: payload.is_unit_migration_tos_required,
|
|
394
386
|
isNewCompanyIndustryVerified: payload.is_new_company_industry_verified,
|
|
@@ -9,12 +9,10 @@ import { CustomerSatisfactionInfo } from '../customerSatisfaction/customerSatisf
|
|
|
9
9
|
import { MileageDenomination } from '../../view/spendManagement/reimbursement/remiSetupView/remiSetupViewState';
|
|
10
10
|
import { OnboardingStepErrorDetails } from './companyPayload';
|
|
11
11
|
import { AccountTypeSubConfigCodeKeyType } from '../../view/spendManagement/billPay/billPayConfig/billPayConfigState';
|
|
12
|
-
export declare const ALL_ONBOARDING_IDENTITY_VERIFICATION_STATUS: readonly ["Not Initiated", "Complete", "Incomplete", "Error", "Pending Review"];
|
|
13
12
|
export declare const toOnboardingIdentityVerificationStatus: (v: string) => "Error" | "Not Initiated" | "Complete" | "Incomplete" | "Pending Review";
|
|
14
|
-
export declare const toOnboardingIdentityVerificationStatusStrict: (v: string | null) => "Error" | "Not Initiated" | "Complete" | "Incomplete" | "Pending Review" | undefined;
|
|
15
13
|
export declare type OnboardingIdentityVerficationStatus = NonNullable<ReturnType<typeof toOnboardingIdentityVerificationStatus>>;
|
|
16
14
|
export declare const ALL_ACCOUNTING_CONNECTION_CREATION_MODES: readonly ["zeni_user", "customer"];
|
|
17
|
-
|
|
15
|
+
declare const toAccountingConnectionCreationMode: (v: string) => "customer" | "zeni_user";
|
|
18
16
|
export declare const toAccountingConnectionCreationModeStrict: (v: string | null) => "customer" | "zeni_user" | undefined;
|
|
19
17
|
export declare type AccountingConnectionCreationMode = NonNullable<ReturnType<typeof toAccountingConnectionCreationMode>>;
|
|
20
18
|
export interface CompanyInfo {
|
|
@@ -119,10 +117,10 @@ export interface SubsidiaryCompany {
|
|
|
119
117
|
companyId: ID;
|
|
120
118
|
name: string;
|
|
121
119
|
}
|
|
122
|
-
|
|
120
|
+
interface ParentCompanyInfo {
|
|
123
121
|
subsidiaries: SubsidiaryCompany[];
|
|
124
122
|
}
|
|
125
|
-
|
|
123
|
+
interface SubsidiaryCompanyInfo {
|
|
126
124
|
siblings: SubsidiaryCompany[];
|
|
127
125
|
parentCompanyId: ID;
|
|
128
126
|
parentCompanyName: string;
|
|
@@ -184,7 +182,7 @@ export interface CompanyReimbursementInfo extends UserReimbursementInfo {
|
|
|
184
182
|
accountType: AccountTypeSubConfigCodeKeyType;
|
|
185
183
|
};
|
|
186
184
|
}
|
|
187
|
-
|
|
185
|
+
interface UserZeniAccountInfo {
|
|
188
186
|
isZeniAccountTOSAccepted: boolean;
|
|
189
187
|
zeniAccountTOSAcceptanceUserAgent?: string;
|
|
190
188
|
zeniAccountTOSAcceptanceTime?: ZeniDate;
|
|
@@ -198,7 +196,7 @@ export interface CompanyZeniAccountInfo extends UserZeniAccountInfo {
|
|
|
198
196
|
accountType: AccountTypeSubConfigCodeKeyType;
|
|
199
197
|
};
|
|
200
198
|
}
|
|
201
|
-
|
|
199
|
+
interface UserChargeCardInfo {
|
|
202
200
|
isChargeCardTOSAccepted: boolean;
|
|
203
201
|
chargeCardTOSAcceptanceUserAgent?: string;
|
|
204
202
|
chargeCardTOSAcceptanceTime?: ZeniDate;
|
|
@@ -272,3 +270,4 @@ export interface CompanyOnboardingInfo {
|
|
|
272
270
|
onboardingInfo?: OnboardingInfo;
|
|
273
271
|
isOnboardingCompleted: boolean;
|
|
274
272
|
}
|
|
273
|
+
export {};
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toAccountingConnectionCreationModeStrict = exports.
|
|
3
|
+
exports.toAccountingConnectionCreationModeStrict = exports.ALL_ACCOUNTING_CONNECTION_CREATION_MODES = exports.toOnboardingIdentityVerificationStatus = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
|
-
|
|
5
|
+
const ALL_ONBOARDING_IDENTITY_VERIFICATION_STATUS = [
|
|
6
6
|
'Not Initiated',
|
|
7
7
|
'Complete',
|
|
8
8
|
'Incomplete',
|
|
9
9
|
'Error',
|
|
10
10
|
'Pending Review',
|
|
11
11
|
];
|
|
12
|
-
const toOnboardingIdentityVerificationStatus = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
12
|
+
const toOnboardingIdentityVerificationStatus = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_ONBOARDING_IDENTITY_VERIFICATION_STATUS);
|
|
13
13
|
exports.toOnboardingIdentityVerificationStatus = toOnboardingIdentityVerificationStatus;
|
|
14
|
-
const toOnboardingIdentityVerificationStatusStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', exports.ALL_ONBOARDING_IDENTITY_VERIFICATION_STATUS);
|
|
15
|
-
exports.toOnboardingIdentityVerificationStatusStrict = toOnboardingIdentityVerificationStatusStrict;
|
|
16
14
|
exports.ALL_ACCOUNTING_CONNECTION_CREATION_MODES = [
|
|
17
15
|
'zeni_user',
|
|
18
16
|
'customer',
|
|
19
17
|
];
|
|
20
18
|
const toAccountingConnectionCreationMode = (v) => (0, stringToUnion_1.stringToUnion)(v.toLocaleLowerCase(), exports.ALL_ACCOUNTING_CONNECTION_CREATION_MODES);
|
|
21
|
-
exports.toAccountingConnectionCreationMode = toAccountingConnectionCreationMode;
|
|
22
19
|
const toAccountingConnectionCreationModeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', exports.ALL_ACCOUNTING_CONNECTION_CREATION_MODES);
|
|
23
20
|
exports.toAccountingConnectionCreationModeStrict = toAccountingConnectionCreationModeStrict;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CompanyHealthMetric
|
|
2
|
-
|
|
1
|
+
import { CompanyHealthMetric } from './companyHealthMetricState';
|
|
2
|
+
interface VerticalProductServicesPayload {
|
|
3
3
|
product_service_key: string;
|
|
4
4
|
is_enabled: boolean;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
interface ChurnProbabilityReasonPayload {
|
|
7
7
|
text: string;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
interface CompanyRunwayPayload {
|
|
10
10
|
runway_months: number | null;
|
|
11
11
|
}
|
|
12
12
|
export interface CompanyHealthMetricPayload {
|
|
@@ -31,5 +31,4 @@ export interface CompanyHealthMetricPayload {
|
|
|
31
31
|
} | null;
|
|
32
32
|
}
|
|
33
33
|
export declare const toCompanyHealthMetrics: (payload: CompanyHealthMetricPayload) => CompanyHealthMetric;
|
|
34
|
-
export
|
|
35
|
-
export declare const toVerticalProductServices: (payload: VerticalProductServicesPayload[]) => VerticalProductServices[];
|
|
34
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toCompanyHealthMetrics = void 0;
|
|
4
4
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
5
5
|
const companyPayload_1 = require("../company/companyPayload");
|
|
6
6
|
const toCompanyHealthMetrics = (payload) => {
|
|
@@ -17,8 +17,8 @@ const toCompanyHealthMetrics = (payload) => {
|
|
|
17
17
|
subscriptionStartDate: payload.subscription_start_date != null
|
|
18
18
|
? (0, zeniDayJS_1.date)(payload.subscription_start_date)
|
|
19
19
|
: undefined,
|
|
20
|
-
verticalProductServices:
|
|
21
|
-
churnProbabilityReason:
|
|
20
|
+
verticalProductServices: toVerticalProductServices(payload.vertical_product_services),
|
|
21
|
+
churnProbabilityReason: toChurnProbabilityReason(payload.churn_probability_reasons),
|
|
22
22
|
companyEngagementMetricsUpdatedAt: payload.company_engagement_metrics_update_time != null
|
|
23
23
|
? (0, zeniDayJS_1.dateInUTC)(payload.company_engagement_metrics_update_time)
|
|
24
24
|
: undefined,
|
|
@@ -51,7 +51,6 @@ const toChurnProbabilityReason = (payload) => {
|
|
|
51
51
|
});
|
|
52
52
|
return reasons;
|
|
53
53
|
};
|
|
54
|
-
exports.toChurnProbabilityReason = toChurnProbabilityReason;
|
|
55
54
|
const toVerticalProductServices = (payload) => {
|
|
56
55
|
const verticalProducts = payload.map((product) => {
|
|
57
56
|
return {
|
|
@@ -61,4 +60,3 @@ const toVerticalProductServices = (payload) => {
|
|
|
61
60
|
});
|
|
62
61
|
return verticalProducts;
|
|
63
62
|
};
|
|
64
|
-
exports.toVerticalProductServices = toVerticalProductServices;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import { ID } from '../../commonStateTypes/common';
|
|
2
1
|
import { CountryWithCurrency, CurrencyState } from './currency';
|
|
3
|
-
export declare function getCurrenciesByCurrencyIds(currencyState: CurrencyState, countryCodes: string[]): CountryWithCurrency[];
|
|
4
|
-
export declare function getCurrenciesByCountryCode(currencyState: CurrencyState, countryCode: ID): CountryWithCurrency | undefined;
|
|
5
2
|
export declare function getAllCurrencies(currencyState: CurrencyState): CountryWithCurrency[];
|
|
@@ -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.getAllCurrencies =
|
|
6
|
+
exports.getAllCurrencies = void 0;
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
8
|
function getCurrenciesByCurrencyIds(currencyState, countryCodes) {
|
|
9
9
|
const currencies = countryCodes
|
|
@@ -11,11 +11,9 @@ function getCurrenciesByCurrencyIds(currencyState, countryCodes) {
|
|
|
11
11
|
.filter((value) => value != null);
|
|
12
12
|
return currencies;
|
|
13
13
|
}
|
|
14
|
-
exports.getCurrenciesByCurrencyIds = getCurrenciesByCurrencyIds;
|
|
15
14
|
function getCurrenciesByCountryCode(currencyState, countryCode) {
|
|
16
15
|
return (0, get_1.default)(currencyState.currencyByCountryCode, countryCode, undefined);
|
|
17
16
|
}
|
|
18
|
-
exports.getCurrenciesByCountryCode = getCurrenciesByCountryCode;
|
|
19
17
|
function getAllCurrencies(currencyState) {
|
|
20
18
|
const allCountryCodes = Object.keys(currencyState.currencyByCountryCode);
|
|
21
19
|
return getCurrenciesByCurrencyIds(currencyState, allCountryCodes);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ID } from
|
|
2
|
-
import { Customer, CustomerState } from
|
|
1
|
+
import { ID } from "../../commonStateTypes/common";
|
|
2
|
+
import { Customer, CustomerState } from "./customerState";
|
|
3
3
|
export declare function getCustomer(customerState: CustomerState, cutomerId: ID): Customer | undefined;
|
|
4
|
-
export declare function getCustomers(customerState: CustomerState, cutomerIds: ID[]): Customer[];
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getCustomer = void 0;
|
|
4
4
|
function getCustomer(customerState, cutomerId) {
|
|
5
5
|
var _a;
|
|
6
6
|
return (_a = customerState.byCustomerId[cutomerId]) !== null && _a !== void 0 ? _a : undefined;
|
|
7
7
|
}
|
|
8
8
|
exports.getCustomer = getCustomer;
|
|
9
|
-
function getCustomers(customerState, cutomerIds) {
|
|
10
|
-
const customers = cutomerIds
|
|
11
|
-
.map((cutomerId) => getCustomer(customerState, cutomerId))
|
|
12
|
-
.filter((value) => value != null);
|
|
13
|
-
return customers;
|
|
14
|
-
}
|
|
15
|
-
exports.getCustomers = getCustomers;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { CustomerSatisfactionPayload
|
|
2
|
-
import { CustomerSatisfaction
|
|
3
|
-
export declare const toCustomerRating: (customerRatingPayload: SatisfactionRatingPayload) => CustomerSatisfactionRatingType;
|
|
4
|
-
export declare const toTeamRating: (teamRatingPayload: SatisfactionRatingPayload) => TeamSatisfactionRatingType;
|
|
1
|
+
import { CustomerSatisfactionPayload } from './customerSatisfactionPayload';
|
|
2
|
+
import { CustomerSatisfaction } from './customerSatisfactionState';
|
|
5
3
|
export declare const toCustomerSatisfaction: (customerSatisfactionPayload: CustomerSatisfactionPayload) => CustomerSatisfaction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toCustomerSatisfaction =
|
|
3
|
+
exports.toCustomerSatisfaction = void 0;
|
|
4
4
|
const customerSatisfactionState_1 = require("./customerSatisfactionState");
|
|
5
5
|
const toCustomerRating = (customerRatingPayload) => {
|
|
6
6
|
return {
|
|
@@ -12,7 +12,6 @@ const toCustomerRating = (customerRatingPayload) => {
|
|
|
12
12
|
noteLastUpdatedUserId: customerRatingPayload.note_last_updated_user_id,
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
exports.toCustomerRating = toCustomerRating;
|
|
16
15
|
const toTeamRating = (teamRatingPayload) => {
|
|
17
16
|
return {
|
|
18
17
|
name: teamRatingPayload.name,
|
|
@@ -23,16 +22,15 @@ const toTeamRating = (teamRatingPayload) => {
|
|
|
23
22
|
noteLastUpdatedUserId: teamRatingPayload.note_last_updated_user_id,
|
|
24
23
|
};
|
|
25
24
|
};
|
|
26
|
-
exports.toTeamRating = toTeamRating;
|
|
27
25
|
const toCustomerSatisfaction = (customerSatisfactionPayload) => {
|
|
28
26
|
const customerSatisfaction = {
|
|
29
27
|
customerSatisfactionId: customerSatisfactionPayload.customer_satisfaction_id,
|
|
30
28
|
companyId: customerSatisfactionPayload.company_id,
|
|
31
29
|
customerRating: customerSatisfactionPayload.customer_rating != null
|
|
32
|
-
?
|
|
30
|
+
? toCustomerRating(customerSatisfactionPayload.customer_rating)
|
|
33
31
|
: undefined,
|
|
34
32
|
teamRating: customerSatisfactionPayload.team_rating != null
|
|
35
|
-
?
|
|
33
|
+
? toTeamRating(customerSatisfactionPayload.team_rating)
|
|
36
34
|
: undefined,
|
|
37
35
|
};
|
|
38
36
|
return customerSatisfaction;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ID } from '../../commonStateTypes/common';
|
|
2
2
|
declare const toTeamRatingType: (code: string) => "exceeds_expectations" | "meets_expectations" | "improvement_needed" | "unsatisfactory";
|
|
3
3
|
export declare type TeamRatingCodeType = ReturnType<typeof toTeamRatingType>;
|
|
4
|
-
|
|
4
|
+
declare const toCustomerRatingType: (code: string) => "delighted" | "happy" | "complaining" | "looking_for_transition";
|
|
5
5
|
export declare type CustomerRatingCodeType = ReturnType<typeof toCustomerRatingType>;
|
|
6
6
|
export declare const customerRatingValues: Record<CustomerRatingCodeType, number>;
|
|
7
7
|
export declare const teamRatingValues: Record<TeamRatingCodeType, number>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.teamRatingValues = exports.customerRatingValues =
|
|
3
|
+
exports.teamRatingValues = exports.customerRatingValues = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
const ALL_TEAM_RATING_CODE = [
|
|
6
6
|
'exceeds_expectations',
|
|
@@ -16,7 +16,6 @@ const ALL_CUSTOMER_RATING_CODE = [
|
|
|
16
16
|
];
|
|
17
17
|
const toTeamRatingType = (code) => (0, stringToUnion_1.stringToUnion)(code, ALL_TEAM_RATING_CODE);
|
|
18
18
|
const toCustomerRatingType = (code) => (0, stringToUnion_1.stringToUnion)(code, ALL_CUSTOMER_RATING_CODE);
|
|
19
|
-
exports.toCustomerRatingType = toCustomerRatingType;
|
|
20
19
|
exports.customerRatingValues = {
|
|
21
20
|
delighted: 4,
|
|
22
21
|
happy: 3,
|
|
@@ -23,8 +23,7 @@ export interface DepositSubAccountType {
|
|
|
23
23
|
name: string;
|
|
24
24
|
}
|
|
25
25
|
export declare const toDepositSubAccounTypeCodeType: (v: string) => "checking" | "savings";
|
|
26
|
-
|
|
27
|
-
export declare type DepositSubAccountTypeCodeType = ReturnType<typeof toDepositSubAccounTypeCodeType>;
|
|
26
|
+
declare type DepositSubAccountTypeCodeType = ReturnType<typeof toDepositSubAccounTypeCodeType>;
|
|
28
27
|
export declare const toDepositAccountStatusType: (v: string) => "Closed" | "Open" | "Frozen";
|
|
29
|
-
|
|
30
|
-
export
|
|
28
|
+
declare type DepositAccountStatus = ReturnType<typeof toDepositAccountStatusType>;
|
|
29
|
+
export {};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toDepositAccountStatusType = exports.toDepositSubAccounTypeCodeType = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
const ALL_DEPOSIT_SUB_ACCOUNT_TYPE_CODE = ['checking', 'savings'];
|
|
6
6
|
const toDepositSubAccounTypeCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_DEPOSIT_SUB_ACCOUNT_TYPE_CODE);
|
|
7
7
|
exports.toDepositSubAccounTypeCodeType = toDepositSubAccounTypeCodeType;
|
|
8
|
-
const toDepositSubAccounTypeCodeTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_DEPOSIT_SUB_ACCOUNT_TYPE_CODE);
|
|
9
|
-
exports.toDepositSubAccounTypeCodeTypeStrict = toDepositSubAccounTypeCodeTypeStrict;
|
|
10
8
|
const ALL_DEPOSIT_ACCOUNT_STATUS_TYPE = ['Closed', 'Open', 'Frozen'];
|
|
11
9
|
const toDepositAccountStatusType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_DEPOSIT_ACCOUNT_STATUS_TYPE);
|
|
12
10
|
exports.toDepositAccountStatusType = toDepositAccountStatusType;
|
|
13
|
-
const toDepositAccountStatusTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_DEPOSIT_ACCOUNT_STATUS_TYPE);
|
|
14
|
-
exports.toDepositAccountStatusTypeStrict = toDepositAccountStatusTypeStrict;
|
|
@@ -26,7 +26,7 @@ export interface DepositAccountTransactionState {
|
|
|
26
26
|
byTransactionId: Record<ID, DepositAccountTransaction>;
|
|
27
27
|
}
|
|
28
28
|
export declare const toDepositAccountTransactionType: (v: string) => "wire" | "book" | "fee" | "originated_ach" | "ach_originating" | "received_ach" | "returned_ach" | "dishonored_ach" | "purchase" | "atm" | "reversal" | "card_transaction" | "batch_release" | "dispute" | "adjustment" | "interest" | "check_deposit" | "returned_check_deposit" | "payment_canceled";
|
|
29
|
-
|
|
30
|
-
export declare const DEPOSIT_TRANSACTION_STATUS_CODE: readonly ["pending", "pending_review", "rejected", "clearing", "failed", "sent", "canceled", "returned"];
|
|
29
|
+
declare type DepositAccountTransactionType = ReturnType<typeof toDepositAccountTransactionType>;
|
|
31
30
|
export declare const toDepositTransactionStatusCode: (v: string) => "failed" | "canceled" | "pending" | "rejected" | "returned" | "pending_review" | "clearing" | "sent" | undefined;
|
|
32
31
|
export declare type DepositTransactionStatusCode = ReturnType<typeof toDepositTransactionStatusCode>;
|
|
32
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toDepositTransactionStatusCode = exports.
|
|
3
|
+
exports.toDepositTransactionStatusCode = exports.toDepositAccountTransactionType = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
const DEPOSIT_ACCOUNT_TRANSACTION_TYPES = [
|
|
6
6
|
'originated_ach',
|
|
@@ -25,7 +25,7 @@ const DEPOSIT_ACCOUNT_TRANSACTION_TYPES = [
|
|
|
25
25
|
];
|
|
26
26
|
const toDepositAccountTransactionType = (v) => (0, stringToUnion_1.stringToUnion)(v, DEPOSIT_ACCOUNT_TRANSACTION_TYPES);
|
|
27
27
|
exports.toDepositAccountTransactionType = toDepositAccountTransactionType;
|
|
28
|
-
|
|
28
|
+
const DEPOSIT_TRANSACTION_STATUS_CODE = [
|
|
29
29
|
'pending',
|
|
30
30
|
'pending_review',
|
|
31
31
|
'rejected',
|
|
@@ -35,5 +35,5 @@ exports.DEPOSIT_TRANSACTION_STATUS_CODE = [
|
|
|
35
35
|
'canceled',
|
|
36
36
|
'returned',
|
|
37
37
|
];
|
|
38
|
-
const toDepositTransactionStatusCode = (v) => (0, stringToUnion_1.stringToUnionStrict)(v,
|
|
38
|
+
const toDepositTransactionStatusCode = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, DEPOSIT_TRANSACTION_STATUS_CODE);
|
|
39
39
|
exports.toDepositTransactionStatusCode = toDepositTransactionStatusCode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { URLPayload } from '../../commonPayloadTypes/urlPayload';
|
|
2
2
|
import { DepositAccountTransaction } from './depositAccountTransaction';
|
|
3
|
-
|
|
3
|
+
interface DepositTransactionStatusPayload {
|
|
4
4
|
code: string;
|
|
5
5
|
name: string;
|
|
6
6
|
}
|
|
@@ -22,3 +22,4 @@ export interface DepositAccountTransactionPayload {
|
|
|
22
22
|
status?: DepositTransactionStatusPayload;
|
|
23
23
|
}
|
|
24
24
|
export declare const toDepositAccountTransaction: (payload: DepositAccountTransactionPayload) => DepositAccountTransaction;
|
|
25
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ID } from '../../commonStateTypes/common';
|
|
2
2
|
import { DepositAccountTransaction, DepositAccountTransactionState } from './depositAccountTransaction';
|
|
3
3
|
export declare function getDepositAccountTransactionByIds(depositAccountTransactionState: DepositAccountTransactionState, transactionIds: ID[]): DepositAccountTransaction[];
|
|
4
|
-
export declare function getDepositAccountTransactionById(depositAccountTransactionState: DepositAccountTransactionState, transactionId: ID): DepositAccountTransaction | 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.getDepositAccountTransactionByIds = void 0;
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
8
|
function getDepositAccountTransactionByIds(depositAccountTransactionState, transactionIds) {
|
|
9
9
|
const depositAccountTransactions = transactionIds
|
|
@@ -15,4 +15,3 @@ exports.getDepositAccountTransactionByIds = getDepositAccountTransactionByIds;
|
|
|
15
15
|
function getDepositAccountTransactionById(depositAccountTransactionState, transactionId) {
|
|
16
16
|
return (0, get_1.default)(depositAccountTransactionState.byTransactionId, transactionId, undefined);
|
|
17
17
|
}
|
|
18
|
-
exports.getDepositAccountTransactionById = getDepositAccountTransactionById;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ID } from '../../commonStateTypes/common';
|
|
2
1
|
import { ActorPayload } from '../approvalRule/approvalRulePayload';
|
|
3
|
-
import {
|
|
4
|
-
import { EntityApprovalStatus, StepApprovalStatus } from './entityApprovalStatusState';
|
|
2
|
+
import { EntityApprovalStatus } from './entityApprovalStatusState';
|
|
5
3
|
interface StepApprovalActorPayload extends ActorPayload {
|
|
6
4
|
id: string;
|
|
7
5
|
}
|
|
@@ -11,7 +9,7 @@ interface ActorActivityPayload extends StepApprovalActorPayload {
|
|
|
11
9
|
description: string;
|
|
12
10
|
is_recurring_auto_approve?: boolean | null;
|
|
13
11
|
}
|
|
14
|
-
|
|
12
|
+
interface StepApprovalStatusPayload {
|
|
15
13
|
action: string;
|
|
16
14
|
operator: string;
|
|
17
15
|
actors: StepApprovalActorPayload[];
|
|
@@ -45,6 +43,4 @@ export interface EntityApprovalStatusPayload {
|
|
|
45
43
|
* Helpers
|
|
46
44
|
*/
|
|
47
45
|
export declare const toEntityApprovalStatus: (payload: EntityApprovalStatusPayload) => EntityApprovalStatus;
|
|
48
|
-
export declare const toEntityApprovalByUser: (payload: Record<string, string>) => Record<ID, ActorApprovalType>;
|
|
49
|
-
export declare const toStepApprovalStatus: (payload: StepApprovalStatusPayload[]) => StepApprovalStatus[];
|
|
50
46
|
export {};
|