@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,7 +1,7 @@
|
|
|
1
1
|
import { StatusPayload } from '../../commonPayloadTypes/statusPayload';
|
|
2
2
|
import { VendorPayload } from '../../entity/vendor/vendorPayload';
|
|
3
3
|
import { ZeniAPIResponse } from '../../responsePayload';
|
|
4
|
-
|
|
4
|
+
interface VendorsListQuery {
|
|
5
5
|
search_text?: string;
|
|
6
6
|
entity_type?: string;
|
|
7
7
|
page_token?: string;
|
|
@@ -9,10 +9,6 @@ export interface VendorsListQuery {
|
|
|
9
9
|
sort_order?: string;
|
|
10
10
|
limit?: number;
|
|
11
11
|
}
|
|
12
|
-
export interface RecommendedNonExistingVendorPayload extends Partial<VendorPayload> {
|
|
13
|
-
vendor_name: string;
|
|
14
|
-
vendor_description?: string;
|
|
15
|
-
}
|
|
16
12
|
export interface FetchAllVendorsPayload {
|
|
17
13
|
vendors: VendorPayload[];
|
|
18
14
|
query?: VendorsListQuery;
|
|
@@ -21,3 +17,4 @@ export interface FetchAllVendorsPayload {
|
|
|
21
17
|
error_code?: number;
|
|
22
18
|
}
|
|
23
19
|
export declare type VendorListResponse = ZeniAPIResponse<FetchAllVendorsPayload>;
|
|
20
|
+
export {};
|
|
@@ -9,7 +9,6 @@ import { RootState } from '../../reducer';
|
|
|
9
9
|
import { ZeniDate } from '../../zeniDayJS';
|
|
10
10
|
import { VendorListViewSortKey, VendorListViewYTDSpendSortKey, VendorViewUIState } from './vendorListState';
|
|
11
11
|
export declare const toVendorReportIDType: (v: string) => "operating_expenses_by_vendor" | "vendors_tab" | "prepaid_expenses" | "fixed_assets";
|
|
12
|
-
export declare const toVendorReportIDTypeStrict: (v?: string | undefined) => "operating_expenses_by_vendor" | "vendors_tab" | "prepaid_expenses" | "fixed_assets" | undefined;
|
|
13
12
|
export declare type VendorReportIDType = ReturnType<typeof toVendorReportIDType>;
|
|
14
13
|
export interface VendorListSelectorView extends SelectorView {
|
|
15
14
|
vendors: VendorListView[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isVendorsTabVisible = exports.isColumnYTDSpend = exports.getVendorList = exports.
|
|
3
|
+
exports.isVendorsTabVisible = exports.isColumnYTDSpend = exports.getVendorList = exports.toVendorReportIDType = void 0;
|
|
4
4
|
const accountSelector_1 = require("../../entity/account/accountSelector");
|
|
5
5
|
const classSelector_1 = require("../../entity/class/classSelector");
|
|
6
6
|
const userSelector_1 = require("../../entity/user/userSelector");
|
|
@@ -14,8 +14,6 @@ const ALL_VENDOR_REPORT_ID_TYPES = [
|
|
|
14
14
|
];
|
|
15
15
|
const toVendorReportIDType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_VENDOR_REPORT_ID_TYPES);
|
|
16
16
|
exports.toVendorReportIDType = toVendorReportIDType;
|
|
17
|
-
const toVendorReportIDTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_VENDOR_REPORT_ID_TYPES);
|
|
18
|
-
exports.toVendorReportIDTypeStrict = toVendorReportIDTypeStrict;
|
|
19
17
|
const getVendorList = (state, view) => {
|
|
20
18
|
var _a;
|
|
21
19
|
const { vendorListState, vendorState, accountState, classState, userState } = state;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { GlobalMerchantBase } from '../../../../entity/globalMerchant/globalMerchantState';
|
|
2
|
-
import { RecommendedNonExistingGlobalMerchantBasePayload, VendorReviewViewAllRecommendationsPayload, VendorReviewViewNonExistingRecommendationsPayload, VendorReviewViewRecommendationsPayload } from '../payload/commonTypes';
|
|
3
2
|
import { ID } from '../../../../commonStateTypes/common';
|
|
4
3
|
import { RecommendedNonExistingGlobalMerchant } from '../../vendorFirstReviewView/vendorFirstReviewViewState';
|
|
5
|
-
|
|
4
|
+
import { RecommendedNonExistingGlobalMerchantBasePayload, VendorReviewViewAllRecommendationsPayload } from '../payload/commonTypes';
|
|
6
5
|
export declare const toVendorFirstReviewViewStatusesTypeStrict: (v: string) => "pending" | "under_review" | "merge_in_qbo" | "reviewed" | "review_rejected" | undefined;
|
|
7
|
-
|
|
6
|
+
declare type VendorFirstReviewViewStatusesKey = ReturnType<typeof toVendorFirstReviewViewStatusesTypeStrict>;
|
|
8
7
|
export declare type ReviewStatus = {
|
|
9
8
|
code: VendorFirstReviewViewStatusesKey;
|
|
10
9
|
name: string;
|
|
@@ -19,10 +18,9 @@ export declare type VendorReviewRowCurrentSelection = 'retain' | 'update' | 'cus
|
|
|
19
18
|
/**
|
|
20
19
|
* Helpers
|
|
21
20
|
*/
|
|
22
|
-
export declare const toRecommendationsFromPayload: (recommendationsPayload: VendorReviewViewRecommendationsPayload[]) => GlobalMerchantBase[];
|
|
23
|
-
export declare const toNonExistingRecommendationsFromPayload: (recommendationsPayload: VendorReviewViewNonExistingRecommendationsPayload[]) => RecommendedNonExistingGlobalMerchant[];
|
|
24
21
|
export declare const toNonExistingGlobalMerchantBase: (globalMerchantPayload: RecommendedNonExistingGlobalMerchantBasePayload) => RecommendedNonExistingGlobalMerchant;
|
|
25
22
|
export declare const toAllRecommendationsFromPayload: (recommendationsPayload: VendorReviewViewAllRecommendationsPayload) => {
|
|
26
23
|
recommendationIds: ID[];
|
|
27
24
|
nonExistingRecommendations: RecommendedNonExistingGlobalMerchant[];
|
|
28
25
|
};
|
|
26
|
+
export {};
|
|
@@ -1,45 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toAllRecommendationsFromPayload = exports.toNonExistingGlobalMerchantBase = exports.
|
|
3
|
+
exports.toAllRecommendationsFromPayload = exports.toNonExistingGlobalMerchantBase = exports.toVendorFirstReviewViewStatusesTypeStrict = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../../commonStateTypes/stringToUnion");
|
|
5
5
|
const globalMerchantPayload_1 = require("../../../../entity/globalMerchant/globalMerchantPayload");
|
|
6
|
-
const zeniUrl_1 = require("../../../../zeniUrl");
|
|
7
6
|
const zeniDayJS_1 = require("../../../../zeniDayJS");
|
|
7
|
+
const zeniUrl_1 = require("../../../../zeniUrl");
|
|
8
8
|
const globalMerchantAutoCompleteViewState_1 = require("../../../globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState");
|
|
9
|
-
|
|
9
|
+
const VENDOR_FIRST_REVIEW_VIEW_STATUSES = [
|
|
10
10
|
'pending',
|
|
11
11
|
'under_review',
|
|
12
12
|
'merge_in_qbo',
|
|
13
13
|
'reviewed',
|
|
14
14
|
'review_rejected',
|
|
15
15
|
];
|
|
16
|
-
const toVendorFirstReviewViewStatusesTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v,
|
|
16
|
+
const toVendorFirstReviewViewStatusesTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, VENDOR_FIRST_REVIEW_VIEW_STATUSES);
|
|
17
17
|
exports.toVendorFirstReviewViewStatusesTypeStrict = toVendorFirstReviewViewStatusesTypeStrict;
|
|
18
18
|
/**
|
|
19
19
|
* Helpers
|
|
20
20
|
*/
|
|
21
|
-
const toRecommendationsFromPayload = (recommendationsPayload) => {
|
|
22
|
-
const recommendations = [];
|
|
23
|
-
recommendationsPayload.forEach((recommendation) => {
|
|
24
|
-
recommendation.global_merchants.forEach((recommendationMerchant) => {
|
|
25
|
-
const recommendation = (0, globalMerchantPayload_1.toGlobalMerchantBase)(recommendationMerchant);
|
|
26
|
-
recommendations.push(recommendation);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
return recommendations;
|
|
30
|
-
};
|
|
31
|
-
exports.toRecommendationsFromPayload = toRecommendationsFromPayload;
|
|
32
|
-
const toNonExistingRecommendationsFromPayload = (recommendationsPayload) => {
|
|
33
|
-
const recommendations = [];
|
|
34
|
-
recommendationsPayload.forEach((recommendation) => {
|
|
35
|
-
recommendation.global_merchants.forEach((recommendationMerchant) => {
|
|
36
|
-
const recommendation = (0, exports.toNonExistingGlobalMerchantBase)(recommendationMerchant);
|
|
37
|
-
recommendations.push(recommendation);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
return recommendations;
|
|
41
|
-
};
|
|
42
|
-
exports.toNonExistingRecommendationsFromPayload = toNonExistingRecommendationsFromPayload;
|
|
43
21
|
const toNonExistingGlobalMerchantBase = (globalMerchantPayload) => {
|
|
44
22
|
var _a, _b, _c, _d, _e;
|
|
45
23
|
return {
|
|
@@ -5,6 +5,3 @@ import { ZeniAPI } from '../../../../zeniAPI';
|
|
|
5
5
|
import { fetchVendorFirstReviewAttachments, updateVendorFirstReviewViewTransactionAttachments, updateVendorFirstReviewViewTransactionAttachmentsFailure } from '../vendorFirstReviewViewReducer';
|
|
6
6
|
export declare type ActionType = ReturnType<typeof fetchVendorFirstReviewAttachments> | ReturnType<typeof updateVendorFirstReviewViewTransactionAttachments> | ReturnType<typeof updateVendorFirstReviewViewTransactionAttachmentsFailure>;
|
|
7
7
|
export declare const fetchVendorFirstReviewAttachmentsEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
8
|
-
export interface VendorFirstReviewAttachementQueryPayload {
|
|
9
|
-
attachment_ids: string[];
|
|
10
|
-
}
|
|
@@ -21,7 +21,7 @@ export interface VendorFirstReviewViewPayload extends VendorPayload {
|
|
|
21
21
|
merge_vendor_name: string | null;
|
|
22
22
|
transaction_attachments?: AttachmentPayload[] | null;
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
interface FetchVendorFirstReviewViewQuery {
|
|
25
25
|
search_text: string;
|
|
26
26
|
page_token: string;
|
|
27
27
|
sort_by: string;
|
|
@@ -41,7 +41,6 @@ export interface VendorFirstReviewPayload {
|
|
|
41
41
|
query?: FetchVendorFirstReviewViewQuery;
|
|
42
42
|
}
|
|
43
43
|
export declare type VendorFirstReviewViewResponse = ZeniAPIResponse<VendorFirstReviewPayload>;
|
|
44
|
-
export declare type VendorFirstReviewAttachmentResponse = ZeniAPIResponse<VendorFirstReviewPayload>;
|
|
45
44
|
export declare type ReviewStatusPayload = {
|
|
46
45
|
code: string;
|
|
47
46
|
name: string;
|
|
@@ -53,7 +52,7 @@ export interface SaveVendorFirstReviewViewPayload extends VendorPayload {
|
|
|
53
52
|
merge_vendor_name: string | null;
|
|
54
53
|
transaction_attachments: AttachmentPayload[];
|
|
55
54
|
}
|
|
56
|
-
|
|
55
|
+
interface SaveVendorFirstReviewView {
|
|
57
56
|
vendors?: SaveVendorFirstReviewViewPayload[];
|
|
58
57
|
}
|
|
59
58
|
export interface SaveVendorFirstReviewViewQuery {
|
|
@@ -72,3 +71,4 @@ export declare type SaveVendorFirstReviewResponse = ZeniAPIResponse<SaveVendorFi
|
|
|
72
71
|
* helpers
|
|
73
72
|
*/
|
|
74
73
|
export declare const toVendorFirstReviewViewColumnKeyPayload: (key: VendorFirstReviewViewColumnKey) => string;
|
|
74
|
+
export {};
|
|
@@ -33,7 +33,7 @@ export interface VendorFirstReviewSelectorView {
|
|
|
33
33
|
currentSelection: VendorReviewRowCurrentSelection;
|
|
34
34
|
transactionAttachments: Attachment[];
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
interface RecentlySavedErroredVendorView {
|
|
37
37
|
vendorId: ID;
|
|
38
38
|
vendorName: string;
|
|
39
39
|
oldRecommendedVendor?: RecommendedNonExistingGlobalMerchant;
|
|
@@ -45,3 +45,4 @@ export interface VendorFirstReviewSelectorAttachmentView {
|
|
|
45
45
|
transactionAttachments: Attachment[];
|
|
46
46
|
}
|
|
47
47
|
export declare const getVendorFirstReviewAttachmentView: (state: RootState, vendorId: ID) => VendorFirstReviewSelectorAttachmentView | undefined;
|
|
48
|
+
export {};
|
|
@@ -4,7 +4,6 @@ import { PageToken } from '../../../commonStateTypes/viewAndReport/viewAndReport
|
|
|
4
4
|
import { GlobalMerchant } from '../../../entity/globalMerchant/globalMerchantState';
|
|
5
5
|
import { Attachment } from '../../../entity/transaction/stateTypes/attachment';
|
|
6
6
|
import { VendorReviewRowCurrentSelection, ReviewStatus } from '../common/state/commonTypes';
|
|
7
|
-
export declare const VENDOR_FIRST_REVIEW_VIEW_COLUMN_KEYS: readonly ["vendor", "updateTo", "retain", "status", "action", "ytd", "viewTenantInvoice"];
|
|
8
7
|
export interface CurrentSelectionByColumn {
|
|
9
8
|
retain: boolean;
|
|
10
9
|
update: boolean;
|
|
@@ -34,7 +33,7 @@ export interface VendorFirstReviewViewLocalData {
|
|
|
34
33
|
mergeVendorName: string | undefined;
|
|
35
34
|
transactionAttachments: Attachment[];
|
|
36
35
|
}
|
|
37
|
-
|
|
36
|
+
interface RecentlySavedErroredVendorData {
|
|
38
37
|
vendorId: ID;
|
|
39
38
|
vendorNameSentForReview: string;
|
|
40
39
|
oldRecommendation?: RecommendedNonExistingGlobalMerchant;
|
|
@@ -51,3 +50,4 @@ export interface VendorFirstReviewViewState extends FetchedState {
|
|
|
51
50
|
attachmentFetchStatus: FetchStateAndError;
|
|
52
51
|
transactionAttachmentsByVendorId: Record<ID, Attachment[]>;
|
|
53
52
|
}
|
|
53
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toVendorFirstReviewViewColumnKeyType =
|
|
3
|
+
exports.toVendorFirstReviewViewColumnKeyType = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
|
-
|
|
5
|
+
const VENDOR_FIRST_REVIEW_VIEW_COLUMN_KEYS = [
|
|
6
6
|
'vendor',
|
|
7
7
|
'updateTo',
|
|
8
8
|
'retain',
|
|
@@ -11,5 +11,5 @@ exports.VENDOR_FIRST_REVIEW_VIEW_COLUMN_KEYS = [
|
|
|
11
11
|
'ytd',
|
|
12
12
|
'viewTenantInvoice',
|
|
13
13
|
];
|
|
14
|
-
const toVendorFirstReviewViewColumnKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
14
|
+
const toVendorFirstReviewViewColumnKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, VENDOR_FIRST_REVIEW_VIEW_COLUMN_KEYS);
|
|
15
15
|
exports.toVendorFirstReviewViewColumnKeyType = toVendorFirstReviewViewColumnKeyType;
|
|
@@ -4,9 +4,7 @@ import { VendorReviewViewAllRecommendationsPayload } from '../common/payload/com
|
|
|
4
4
|
export interface VendorGlobalReviewPayload extends TenantMerchantPayload {
|
|
5
5
|
recommendations: VendorReviewViewAllRecommendationsPayload;
|
|
6
6
|
}
|
|
7
|
-
export declare const VENDOR_GLOBAL_REVIEW_SORT_BY_KEYS: readonly ["old_merchant_name", "merchant_name", "tenant_name", "recommended_global_merchant_name"];
|
|
8
7
|
export declare const toVendorGlobalReviewSortByKeyType: (v: string) => "recommended_global_merchant_name" | "old_merchant_name" | "merchant_name" | "tenant_name";
|
|
9
|
-
export declare const toVendorGlobalReviewSortByKeyTypeStrict: (v: string) => "recommended_global_merchant_name" | "old_merchant_name" | "merchant_name" | "tenant_name" | undefined;
|
|
10
8
|
export declare type VendorGlobalReviewViewSortByKey = ReturnType<typeof toVendorGlobalReviewSortByKeyType>;
|
|
11
9
|
export interface VendorGlobalReviewViewQueryPayload {
|
|
12
10
|
entity_type: string;
|
|
@@ -47,7 +45,8 @@ export interface RejectVendorGlobalReviewQueryPayload {
|
|
|
47
45
|
}
|
|
48
46
|
export declare type ApproveVendorGlobalReviewResponse = ZeniAPIResponse;
|
|
49
47
|
export declare type RejectVendorGlobalReviewResponse = ZeniAPIResponse;
|
|
50
|
-
|
|
48
|
+
interface CreateAndApproveGlobalMerchantPayload {
|
|
51
49
|
global_merchants: GlobalMerchantBasePayload[];
|
|
52
50
|
}
|
|
53
51
|
export declare type CreateAndApproveGlobalMerchantResponse = ZeniAPIResponse<CreateAndApproveGlobalMerchantPayload>;
|
|
52
|
+
export {};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toVendorGlobalReviewSortByKeyType = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
|
-
|
|
5
|
+
const VENDOR_GLOBAL_REVIEW_SORT_BY_KEYS = [
|
|
6
6
|
'old_merchant_name',
|
|
7
7
|
'merchant_name',
|
|
8
8
|
'tenant_name',
|
|
9
9
|
'recommended_global_merchant_name',
|
|
10
10
|
];
|
|
11
|
-
const toVendorGlobalReviewSortByKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
11
|
+
const toVendorGlobalReviewSortByKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, VENDOR_GLOBAL_REVIEW_SORT_BY_KEYS);
|
|
12
12
|
exports.toVendorGlobalReviewSortByKeyType = toVendorGlobalReviewSortByKeyType;
|
|
13
|
-
const toVendorGlobalReviewSortByKeyTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.VENDOR_GLOBAL_REVIEW_SORT_BY_KEYS);
|
|
14
|
-
exports.toVendorGlobalReviewSortByKeyTypeStrict = toVendorGlobalReviewSortByKeyTypeStrict;
|
|
@@ -2,9 +2,7 @@ import { FetchStateAndError, FetchedState, ID } from '../../../commonStateTypes/
|
|
|
2
2
|
import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
3
3
|
import { PageToken } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
4
|
import { RecommendedNonExistingGlobalMerchant } from '../vendorFirstReviewView/vendorFirstReviewViewState';
|
|
5
|
-
export declare const VENDOR_GLOBAL_REVIEW_COLUMN_SORT_KEYS: readonly ["tenants", "vendors", "updatedFrom", "recommended"];
|
|
6
5
|
export declare const toVendorGlobalReviewColumnSortKeyType: (v: string) => "vendors" | "recommended" | "tenants" | "updatedFrom";
|
|
7
|
-
export declare const toVendorGlobalReviewColumnSortKeyTypeStrict: (v: string) => "vendors" | "recommended" | "tenants" | "updatedFrom" | undefined;
|
|
8
6
|
export declare type VendorGlobalReviewViewColumnSortKey = ReturnType<typeof toVendorGlobalReviewColumnSortKeyType>;
|
|
9
7
|
export interface VendorGlobalReviewViewUIState {
|
|
10
8
|
searchText: string;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toVendorGlobalReviewColumnSortKeyType = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
|
-
|
|
5
|
+
const VENDOR_GLOBAL_REVIEW_COLUMN_SORT_KEYS = [
|
|
6
6
|
'tenants',
|
|
7
7
|
'vendors',
|
|
8
8
|
'updatedFrom',
|
|
9
9
|
'recommended',
|
|
10
10
|
];
|
|
11
|
-
const toVendorGlobalReviewColumnSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
11
|
+
const toVendorGlobalReviewColumnSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, VENDOR_GLOBAL_REVIEW_COLUMN_SORT_KEYS);
|
|
12
12
|
exports.toVendorGlobalReviewColumnSortKeyType = toVendorGlobalReviewColumnSortKeyType;
|
|
13
|
-
const toVendorGlobalReviewColumnSortKeyTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.VENDOR_GLOBAL_REVIEW_COLUMN_SORT_KEYS);
|
|
14
|
-
exports.toVendorGlobalReviewColumnSortKeyTypeStrict = toVendorGlobalReviewColumnSortKeyTypeStrict;
|
|
@@ -3,7 +3,8 @@ export interface VendorType {
|
|
|
3
3
|
code: string;
|
|
4
4
|
name: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
interface VendorTypePayload {
|
|
7
7
|
vendor_types: VendorType[];
|
|
8
8
|
}
|
|
9
9
|
export declare type VendorTypeListResponse = ZeniAPIResponse<VendorTypePayload>;
|
|
10
|
+
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
2
|
-
import { VendorType } from './vendorTypeListPayload';
|
|
3
|
-
import { VendorTypeListState } from './vendorTypeListState';
|
|
4
|
-
export interface VendorTypeListSelectorView extends SelectorView {
|
|
5
|
-
vendorTypes: VendorType[];
|
|
6
|
-
}
|
|
7
|
-
export declare const getVendorTypeList: (vendorTypeListState: VendorTypeListState) => {
|
|
8
|
-
vendorTypes: VendorType[];
|
|
9
|
-
fetchState: import("../..").FetchState;
|
|
10
|
-
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
11
|
-
version: number;
|
|
12
|
-
};
|
|
@@ -1,12 +1 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getVendorTypeList = void 0;
|
|
4
|
-
const getVendorTypeList = (vendorTypeListState) => {
|
|
5
|
-
return {
|
|
6
|
-
vendorTypes: vendorTypeListState.vendorTypes,
|
|
7
|
-
fetchState: vendorTypeListState.fetchState,
|
|
8
|
-
error: vendorTypeListState.error,
|
|
9
|
-
version: 0,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.getVendorTypeList = getVendorTypeList;
|
|
@@ -3,7 +3,8 @@ export interface StatementPayload {
|
|
|
3
3
|
statement_id: string;
|
|
4
4
|
period: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
interface FetchZeniAccStatementPayload {
|
|
7
7
|
statements: StatementPayload[];
|
|
8
8
|
}
|
|
9
9
|
export declare type FetchZeniAccStatementResponse = ZeniAPIResponse<FetchZeniAccStatementPayload>;
|
|
10
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.99",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"concurrently": "^6.3.0",
|
|
38
38
|
"eslint": "^7.9.0",
|
|
39
39
|
"eslint-config-prettier": "^8.3.0",
|
|
40
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
40
41
|
"jest": "^29.4.3",
|
|
41
42
|
"prettier": "^2.3.2",
|
|
42
43
|
"rimraf": "^3.0.2",
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
"scripts": {
|
|
80
81
|
"clean": "rimraf lib",
|
|
81
82
|
"test": "jest --config jest.config.json --detectOpenHandles",
|
|
82
|
-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
|
83
|
+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
|
|
83
84
|
"find-dead-code": "ts-prune | grep -v '(used in module)'",
|
|
84
85
|
"find-unused-exports": "ts-unused-exports ./tsconfig.json",
|
|
85
86
|
"build": "concurrently --kill-others-on-fail \"eslint . --ext .js,.jsx,.ts,.tsx\" \"tsc\" \"jest --config jest.config.json\"",
|
|
@@ -87,6 +88,7 @@
|
|
|
87
88
|
"format": "prettier --write --ignore-unknown \"src/**/*\"",
|
|
88
89
|
"check-version": "ts-node ./scripts/check-version.ts",
|
|
89
90
|
"version": "git add -A src",
|
|
90
|
-
"postversion": "git push && git push --tags"
|
|
91
|
+
"postversion": "git push && git push --tags",
|
|
92
|
+
"delete-unused-exports": "node detect_unused_imports.js"
|
|
91
93
|
}
|
|
92
94
|
}
|