@zeniai/client-epic-state 4.11.98 → 4.11.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonPayloadTypes/balanceChangePayload.d.ts +3 -3
- package/lib/commonPayloadTypes/balanceChangePayload.js +2 -3
- package/lib/commonPayloadTypes/classesView/reportByClassPayloadV2.d.ts +2 -3
- package/lib/commonPayloadTypes/classesView/reportByClassPayloadV2.js +1 -1
- package/lib/commonPayloadTypes/coaBalancePayload.d.ts +3 -9
- package/lib/commonPayloadTypes/coaBalancePayload.js +1 -29
- package/lib/commonPayloadTypes/subAccountView/reportBySubAccountPayload.d.ts +3 -2
- package/lib/commonPayloadTypes/v2/coaBalancePayload.d.ts +2 -1
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -8
- package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +0 -83
- package/lib/commonStateTypes/accountView/nestedAccountID.d.ts +9 -8
- package/lib/commonStateTypes/accountView/nestedAccountID.js +4 -10
- package/lib/commonStateTypes/animations.d.ts +2 -0
- package/lib/commonStateTypes/animations.js +32 -0
- package/lib/commonStateTypes/classesView/nestedClassID.d.ts +6 -8
- package/lib/commonStateTypes/classesView/nestedClassID.js +1 -10
- package/lib/commonStateTypes/coaBalance/additionalBalances/getSamePeriodLastYearBalance.d.ts +0 -1
- package/lib/commonStateTypes/coaBalance/additionalBalances/getSamePeriodLastYearBalance.js +1 -27
- package/lib/commonStateTypes/coaBalance/pickAndMergeForecast.d.ts +0 -2
- package/lib/commonStateTypes/coaBalance/pickAndMergeForecast.js +1 -2
- package/lib/commonStateTypes/customerView/nestedCustomerID.d.ts +6 -8
- package/lib/commonStateTypes/customerView/nestedCustomerID.js +0 -7
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +0 -3
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +2 -5
- package/lib/commonStateTypes/reduceFetchState.d.ts +0 -18
- package/lib/commonStateTypes/reduceFetchState.js +7 -10
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSection.d.ts +0 -2
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSection.js +0 -12
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -2
- package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +0 -10
- package/lib/commonStateTypes/selectorTypes/sortOrderTypes.d.ts +2 -2
- package/lib/commonStateTypes/selectorTypes/sortOrderTypes.js +2 -4
- package/lib/commonStateTypes/timePeriod.d.ts +2 -3
- package/lib/commonStateTypes/timePeriod.js +1 -6
- package/lib/commonStateTypes/v2/viewAndReport.d.ts +0 -5
- package/lib/commonStateTypes/v2/viewAndReport.js +3 -0
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +3 -4
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +0 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +3 -3
- package/lib/commonStateTypes/workingDayHelper.d.ts +0 -1
- package/lib/commonStateTypes/workingDayHelper.js +6 -6
- package/lib/entity/account/accountPayload.d.ts +1 -6
- package/lib/entity/account/accountPayload.js +3 -19
- package/lib/entity/account/accountReducer.d.ts +1 -3
- package/lib/entity/account/accountReducer.js +2 -3
- package/lib/entity/account/accountState.d.ts +2 -1
- package/lib/entity/account/accountState.js +1 -2
- package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +0 -6
- package/lib/entity/account/pickAndMergeForecastAccountReport.js +1 -2
- package/lib/entity/accountGroup/accountGroupSelector.d.ts +2 -1
- package/lib/entity/accountGroup/accountGroupSelector.js +2 -3
- package/lib/entity/address/addressReducer.d.ts +1 -2
- package/lib/entity/address/addressReducer.js +1 -2
- package/lib/entity/approvalRule/approvalRulePayload.d.ts +1 -3
- package/lib/entity/approvalRule/approvalRulePayload.js +3 -5
- package/lib/entity/approvalRule/approvalRuleState.d.ts +3 -7
- package/lib/entity/approvalRule/approvalRuleState.js +1 -13
- package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +3 -5
- package/lib/entity/billPay/billTransaction/billTransactionPayload.js +4 -7
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +9 -8
- package/lib/entity/billPay/billTransaction/billTransactionState.js +1 -7
- package/lib/entity/billPay/recurringBills/recurringBillsPayload.d.ts +2 -4
- package/lib/entity/billPay/recurringBills/recurringBillsPayload.js +3 -5
- package/lib/entity/chargeCard/chargeCard.d.ts +6 -7
- package/lib/entity/chargeCard/chargeCard.js +2 -7
- package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +3 -3
- package/lib/entity/chargeCardTransaction/chargeCardTransaction.js +1 -3
- package/lib/entity/chargeCardTransaction/chargeCardTransactionPayload.d.ts +2 -1
- package/lib/entity/chargeCardTransaction/chargeCardTransactionSelector.d.ts +0 -1
- package/lib/entity/chargeCardTransaction/chargeCardTransactionSelector.js +1 -2
- package/lib/entity/class/classPayload.d.ts +0 -4
- package/lib/entity/class/classPayload.js +1 -16
- package/lib/entity/class/classSelectorV2.d.ts +1 -8
- package/lib/entity/class/classSelectorV2.js +1 -2
- package/lib/entity/company/companyHelper.d.ts +0 -2
- package/lib/entity/company/companyHelper.js +2 -7
- package/lib/entity/company/companyPayload.d.ts +17 -32
- package/lib/entity/company/companyPayload.js +9 -19
- package/lib/entity/company/companyStateTypes.d.ts +6 -9
- package/lib/entity/company/companyStateTypes.js +3 -6
- package/lib/entity/companyHealthMetric/companyHealthMetricPayload.d.ts +5 -6
- package/lib/entity/companyHealthMetric/companyHealthMetricPayload.js +3 -5
- package/lib/entity/currency/currencySelector.d.ts +0 -3
- package/lib/entity/currency/currencySelector.js +1 -3
- package/lib/entity/customer/customerSelector.d.ts +2 -3
- package/lib/entity/customer/customerSelector.js +1 -8
- package/lib/entity/customerSatisfaction/customerSatisfactionReducerHelpers.d.ts +2 -4
- package/lib/entity/customerSatisfaction/customerSatisfactionReducerHelpers.js +3 -5
- package/lib/entity/customerSatisfaction/customerSatisfactionState.d.ts +1 -1
- package/lib/entity/customerSatisfaction/customerSatisfactionState.js +1 -2
- package/lib/entity/depositAccount/depositAccount.d.ts +3 -4
- package/lib/entity/depositAccount/depositAccount.js +1 -5
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +2 -2
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.js +3 -3
- package/lib/entity/depositAccountTransaction/depositAccountTransactionPayload.d.ts +2 -1
- package/lib/entity/depositAccountTransaction/depositAccountTransactionSelector.d.ts +0 -1
- package/lib/entity/depositAccountTransaction/depositAccountTransactionSelector.js +1 -2
- package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.d.ts +2 -6
- package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.js +3 -5
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +3 -4
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.js +1 -6
- package/lib/entity/file/filePayload.d.ts +2 -1
- package/lib/entity/file/fileState.d.ts +7 -21
- package/lib/entity/file/fileState.js +15 -34
- package/lib/entity/genericEntity/entity.d.ts +2 -1
- package/lib/entity/globalMerchant/globalMerchantPayload.d.ts +1 -4
- package/lib/entity/globalMerchant/globalMerchantPayload.js +2 -32
- package/lib/entity/globalMerchant/globalMerchantState.d.ts +2 -1
- package/lib/entity/insights/insightReducer.d.ts +1 -2
- package/lib/entity/insights/insightReducer.js +2 -3
- package/lib/entity/insights/insightState.d.ts +2 -1
- package/lib/entity/insights/insightState.js +0 -2
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -2
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +1 -2
- package/lib/entity/notification/types/notificationSelectorTypes.d.ts +2 -1
- package/lib/entity/notification/types/notificationTypes.d.ts +2 -11
- package/lib/entity/notification/types/notificationTypes.js +15 -24
- package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +3 -3
- package/lib/entity/paymentAccount/paymentAccountPayload.js +2 -3
- package/lib/entity/portfolio/accountingSummary/accountingSummaryPayload.d.ts +3 -2
- package/lib/entity/reimbursement/reimbursementPayload.d.ts +9 -22
- package/lib/entity/reimbursement/reimbursementPayload.js +16 -32
- package/lib/entity/reimbursement/reimbursementState.d.ts +2 -1
- package/lib/entity/subscription/subscriptionAddOn/subscriptionAddOnSelector.d.ts +0 -1
- package/lib/entity/subscription/subscriptionAddOn/subscriptionAddOnSelector.js +1 -2
- package/lib/entity/subscription/subscriptionCoupon/subscriptionCouponSelector.d.ts +0 -1
- package/lib/entity/subscription/subscriptionCoupon/subscriptionCouponSelector.js +1 -2
- package/lib/entity/subscription/subscriptionPlan/subscriptionPlanReducer.d.ts +1 -5
- package/lib/entity/subscription/subscriptionPlan/subscriptionPlanReducer.js +1 -2
- package/lib/entity/subscription/subscriptionSummary/subscriptionSummarySelector.d.ts +0 -1
- package/lib/entity/subscription/subscriptionSummary/subscriptionSummarySelector.js +1 -2
- package/lib/entity/task/taskState.d.ts +2 -5
- package/lib/entity/task/taskState.js +3 -10
- package/lib/entity/tenant/tenantSelector.d.ts +2 -2
- package/lib/entity/tenant/tenantSelector.js +1 -2
- package/lib/entity/toastNotification/toastNotificationState.d.ts +3 -6
- package/lib/entity/toastNotification/toastNotificationState.js +3 -3
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.d.ts +11 -21
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +10 -17
- package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -1
- package/lib/entity/transaction/stateTypes/paymentType.d.ts +2 -1
- package/lib/entity/transaction/stateTypes/paymentType.js +1 -2
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +6 -10
- package/lib/entity/transaction/stateTypes/transactionType.js +1 -14
- package/lib/entity/user/userReducer.d.ts +1 -3
- package/lib/entity/user/userReducer.js +2 -3
- package/lib/entity/user/userState.d.ts +2 -1
- package/lib/entity/userRole/userRoleState.d.ts +2 -2
- package/lib/entity/userRole/userRoleState.js +2 -4
- package/lib/entity/userRole/userRoleType.d.ts +0 -6
- package/lib/entity/userRole/userRoleType.js +9 -27
- package/lib/entity/vendor/vendorPayload.d.ts +2 -1
- package/lib/entity/vendorExpense/vendorExpenseReducer.d.ts +1 -2
- package/lib/entity/vendorExpense/vendorExpenseReducer.js +7 -7
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -1
- package/lib/entity/vendorExpense/vendorExpenseSelector.js +1 -2
- package/lib/entity/vendorExpense/vendorExpenseTrend.d.ts +2 -1
- package/lib/index.d.ts +58 -56
- package/lib/index.js +9 -9
- package/lib/responsePayload.d.ts +2 -1
- package/lib/view/accountList/accountListPayload.d.ts +2 -1
- package/lib/view/accountMappingView/accountMappingPayload.d.ts +0 -3
- package/lib/view/accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload.d.ts +8 -7
- package/lib/view/addressView/addressViewPayload.d.ts +2 -1
- package/lib/view/apAgingView/apAgingDetail/apAgingDetailState.d.ts +2 -1
- package/lib/view/arAgingView/arAgingDetail/arAgingDetailState.d.ts +2 -1
- package/lib/view/arAgingView/arAgingReport/arAgingPayload.d.ts +1 -1
- package/lib/view/auditReportView/auditReportViewPayload.d.ts +2 -1
- package/lib/view/auditReportView/auditReportViewState.d.ts +3 -5
- package/lib/view/auditReportView/auditReportViewState.js +5 -6
- package/lib/view/autoComplete/entityAutoCompleteReducer.d.ts +1 -1
- package/lib/view/balanceSheet/balanceSheetPayload.d.ts +14 -17
- package/lib/view/balanceSheet/balanceSheetPayload.js +1 -13
- package/lib/view/balanceSheet/balanceSheetSelectorTypes.d.ts +19 -25
- package/lib/view/balanceSheet/balanceSheetSelectorTypes.js +27 -36
- package/lib/view/bankAccountView/bankAccountViewPayload.d.ts +5 -4
- package/lib/view/billPayCard/billPayCardPayload.d.ts +3 -3
- package/lib/view/billPayCard/billPayCardState.d.ts +3 -2
- package/lib/view/billPayCard/billPayCardState.js +0 -2
- package/lib/view/billPayCard/fetchBillPayCardEpic.js +1 -1
- package/lib/view/cardPayment/cardPaymentViewPayload.d.ts +3 -3
- package/lib/view/cardPayment/cardPaymentViewTypes.d.ts +2 -3
- package/lib/view/cardPayment/cardPaymentViewTypes.js +4 -6
- package/lib/view/cashFlow/cashFlowPayload.d.ts +7 -8
- package/lib/view/cashFlow/cashFlowPayload.js +5 -8
- package/lib/view/cashFlow/cashFlowSelectorTypes.d.ts +17 -23
- package/lib/view/cashFlow/cashFlowSelectorTypes.js +21 -28
- package/lib/view/cashInCashOut/cashInCashOutSelectorTypes.d.ts +3 -4
- package/lib/view/cashInCashOut/cashInCashOutSelectorTypes.js +3 -12
- package/lib/view/classList/classListPayload.d.ts +2 -1
- package/lib/view/common/recurringViewHelper.d.ts +2 -2
- package/lib/view/common/recurringViewHelper.js +1 -4
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewPayload.d.ts +2 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +0 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +1 -3
- package/lib/view/companyConfigView/companyConfigPayload.d.ts +2 -1
- package/lib/view/companyHealthMetricView/companyHealthMetricViewPayload.d.ts +2 -1
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.d.ts +6 -11
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +8 -13
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewPayload.d.ts +3 -2
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewSelector.d.ts +0 -4
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewSelector.js +2 -3
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewState.d.ts +2 -2
- package/lib/view/companyView/companyViewPayload.d.ts +10 -9
- package/lib/view/companyView/helpers/cockpitHelpers.d.ts +0 -1
- package/lib/view/companyView/helpers/cockpitHelpers.js +3 -3
- package/lib/view/companyView/selector/companyManagementViewSelector.d.ts +0 -2
- package/lib/view/companyView/selector/companyManagementViewSelector.js +4 -5
- package/lib/view/companyView/types/cockpitTypes.d.ts +0 -7
- package/lib/view/companyView/types/cockpitTypes.js +11 -19
- package/lib/view/companyView/types/companyMetaDataViewState.d.ts +2 -1
- package/lib/view/companyView/types/companyPassportViewPayload.d.ts +6 -5
- package/lib/view/fileView/fileViewPayload.d.ts +2 -1
- package/lib/view/fileView/fileViewState.d.ts +2 -1
- package/lib/view/forecastList/forecastListPayload.d.ts +2 -1
- package/lib/view/globalMerchantView/epics/createGlobalMerchantEpic.d.ts +0 -7
- package/lib/view/globalMerchantView/epics/createGlobalMerchantEpic.js +2 -3
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState.d.ts +0 -1
- package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState.js +1 -3
- package/lib/view/globalMerchantView/globalMerchantViewPayload.d.ts +1 -1
- package/lib/view/netBurnOrIncome/netBurnOrIncomeSelector.d.ts +0 -1
- package/lib/view/netBurnOrIncome/netBurnOrIncomeSelector.js +1 -2
- package/lib/view/netBurnOrIncome/netBurnOrIncomeSelectorTypes.d.ts +4 -6
- package/lib/view/netBurnOrIncome/netBurnOrIncomeSelectorTypes.js +1 -3
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelectorTypes.d.ts +3 -3
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelectorTypes.js +4 -6
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardPayload.d.ts +9 -11
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardPayload.js +3 -4
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelectorTypes.d.ts +0 -1
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelectorTypes.js +1 -3
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +0 -2
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.js +1 -5
- package/lib/view/notificationView/notificationViewPayload.d.ts +3 -17
- package/lib/view/notificationView/notificationViewState.d.ts +3 -4
- package/lib/view/notificationView/notificationViewState.js +7 -9
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.d.ts +1 -15
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewState.d.ts +2 -1
- package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +2 -4
- package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.js +6 -9
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.d.ts +0 -6
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +2 -3
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.d.ts +0 -8
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +1 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +3 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -6
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +1 -4
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +1 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.js +5 -7
- package/lib/view/opEx/opExSelector.d.ts +0 -13
- package/lib/view/opEx/opExSelector.js +3 -4
- package/lib/view/opExByVendor/opExByVendorPayload.d.ts +4 -3
- package/lib/view/opExByVendor/opExByVendorState.d.ts +0 -1
- package/lib/view/opExByVendor/opExByVendorState.js +3 -3
- package/lib/view/opExClassesView/opExClassesViewSelectorTypes.d.ts +3 -3
- package/lib/view/opExClassesView/opExClassesViewSelectorTypes.js +4 -6
- package/lib/view/people/peopleTypes.d.ts +2 -2
- package/lib/view/people/peopleTypes.js +2 -4
- package/lib/view/profitAndLoss/profitAndLossSelector.d.ts +1 -1
- package/lib/view/profitAndLoss/profitAndLossSelector.js +2 -6
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes.d.ts +3 -2
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes.js +1 -3
- package/lib/view/recommendation/recommendationPayload.d.ts +3 -2
- package/lib/view/referralView/referralPayload.d.ts +4 -3
- package/lib/view/referralView/referralState.d.ts +3 -4
- package/lib/view/referralView/referralState.js +5 -10
- package/lib/view/reimbursementCard/fetchReimbursementCardEpic.js +1 -1
- package/lib/view/reimbursementCard/reimbursementCardPayload.d.ts +4 -4
- package/lib/view/reimbursementCard/reimbursementCardState.d.ts +3 -2
- package/lib/view/reimbursementCard/reimbursementCardState.js +0 -2
- package/lib/view/revenue/revenueSelector.d.ts +0 -15
- package/lib/view/revenue/revenueSelector.js +1 -2
- package/lib/view/revenue/revenueSelectorTypes.d.ts +4 -6
- package/lib/view/revenue/revenueSelectorTypes.js +1 -3
- package/lib/view/revenueClassesView/revenueClassesViewSelectorTypes.d.ts +3 -3
- package/lib/view/revenueClassesView/revenueClassesViewSelectorTypes.js +4 -6
- package/lib/view/reviewCompanyView/reviewCompanyPayload.d.ts +2 -1
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +0 -1
- package/lib/view/reviewCompanyView/reviewCompanyViewState.js +3 -3
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.d.ts +0 -1
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +3 -3
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +7 -14
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +8 -13
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailTypes.d.ts +2 -2
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailTypes.js +2 -4
- package/lib/view/scheduleView/scheduleListView/scheduleListHelper.d.ts +2 -28
- package/lib/view/scheduleView/scheduleListView/scheduleListHelper.js +4 -24
- package/lib/view/scheduleView/scheduleListView/scheduleListPayload.d.ts +2 -1
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -4
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.js +7 -8
- package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +0 -6
- package/lib/view/settingsView/epic/fetchMyProfileEpic.js +1 -3
- package/lib/view/settingsView/settingsViewPayload.d.ts +3 -2
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/approveOrRejectBillEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +3 -4
- package/lib/view/spendManagement/billPay/billList/billListSelector.js +3 -5
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +4 -4
- package/lib/view/spendManagement/billPay/billList/billListState.js +3 -6
- package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +15 -35
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.js +7 -13
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigSelector.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +10 -15
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +15 -21
- package/lib/view/spendManagement/billPay/billPayConfig/fetchBillPayConfigEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewPayload.d.ts +3 -2
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewPayload.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewPayload.d.ts +3 -4
- package/lib/view/spendManagement/billPay/billPaySetupView/types/billPayTerms.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.d.ts +4 -3
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.d.ts +0 -2
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.js +5 -5
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/approveOrRejectBillsBulkActionEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/cancelOrDeleteBillsBulkActionEpic.js +1 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/reviewDraftBillsBulkActionEpic.ts.js +1 -1
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.js +1 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.d.ts +3 -30
- package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.js +1 -25
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +2 -4
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +2 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.js +3 -4
- package/lib/view/spendManagement/billPay/editBillView/epics/convertAmountToHomeCurrencyEpic.js +1 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +0 -8
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +4 -5
- package/lib/view/spendManagement/billPay/internationalWire/internationalWire.d.ts +2 -1
- package/lib/view/spendManagement/billPay/internationalWire/internationalWirePayload.d.ts +5 -10
- package/lib/view/spendManagement/billPay/internationalWire/internationalWirePayload.js +3 -5
- package/lib/view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkBillEpic.js +1 -1
- package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewPayload.d.ts +7 -6
- package/lib/view/spendManagement/billPay/previousBills/fetchPreviousBillsEpic.js +1 -1
- package/lib/view/spendManagement/billPay/previousBills/previousBillsState.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailPayload.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.d.ts +0 -11
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +3 -5
- package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigPayload.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailPayload.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +0 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +5 -5
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListPayload.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +1 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +2 -3
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewPayload.d.ts +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewState.d.ts +0 -2
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/types/chargeCardTerms.d.ts +2 -1
- package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +4 -3
- package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.d.ts +5 -5
- package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.js +2 -3
- package/lib/view/spendManagement/commonHistoryView/fetchEntityHistoryEpic.js +1 -1
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -5
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -13
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +2 -5
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -2
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +2 -3
- package/lib/view/spendManagement/commonSetup/setupViewState.js +2 -6
- package/lib/view/spendManagement/helpers.d.ts +1 -3
- package/lib/view/spendManagement/helpers.js +3 -5
- package/lib/view/spendManagement/merchantList/merchantListPayload.d.ts +2 -1
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updateMappedCashAccountEpic.js +1 -1
- package/lib/view/spendManagement/plaidAccount/types/plaidConnection.d.ts +2 -1
- package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalPayload.d.ts +2 -1
- package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalState.d.ts +3 -2
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewPayload.d.ts +2 -2
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.d.ts +2 -3
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +1 -22
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewState.d.ts +2 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchCurrencyConversionValueEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.d.ts +0 -6
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +2 -12
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/saveRemiDetailEpic.js +2 -2
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/fetchReimbursementConfigEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigPayload.d.ts +2 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigSelector.d.ts +0 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigSelector.js +1 -8
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState.d.ts +2 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState.js +1 -2
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/approveOrRejectRemiEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/cancelAndDeleteRemiEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/deleteRemiEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchDuplicateReimbursementEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewPayload.d.ts +4 -3
- package/lib/view/spendManagement/reimbursement/remiListView/fetchRemiListPerTabEpic.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +2 -2
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.js +3 -4
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewPayload.d.ts +2 -1
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateRemiSetupViewLocalStoreDataEpic.d.ts +0 -8
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateRemiSetupViewLocalStoreDataEpic.js +1 -2
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewPayload.d.ts +3 -2
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewState.d.ts +1 -2
- package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewState.js +1 -3
- package/lib/view/spendManagement/reimbursement/remiSetupView/types/remiTerms.d.ts +3 -2
- package/lib/view/spendManagement/spendManagementFilterHelpers.d.ts +3 -7
- package/lib/view/spendManagement/spendManagementFilterHelpers.js +4 -7
- package/lib/view/spendManagement/zeniAccounts/checkDeposit/checkDepositEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailPayload.d.ts +3 -2
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountHistoryEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/updateDepositAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListPayload.d.ts +3 -2
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListState.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/fetchDepositAccountTransactionListEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/transferDetail/fetchReviewTransferDetailEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailPayload.d.ts +3 -2
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailState.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferMoneyEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/createCheckingAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.d.ts +1 -4
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +1 -5
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.js +1 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/types/zeniAccountTerms.d.ts +2 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewPayload.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/fetchZeniAccountsConfigEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +4 -4
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +2 -3
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +2 -1
- package/lib/view/subscriptionView/subscriptionEstmiatePayload.d.ts +1 -1
- package/lib/view/subscriptionView/subscriptionViewPayload.d.ts +9 -8
- package/lib/view/subscriptionView/subscriptionViewState.d.ts +3 -2
- package/lib/view/subscriptionView/types/subscriptionEstmiate.d.ts +4 -3
- package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +2 -2
- package/lib/view/subscriptionView/types/subscriptionTypes.js +3 -4
- package/lib/view/tagView/tagViewPayload.d.ts +2 -2
- package/lib/view/taskManager/taskDetailView/epics/archiveTaskEpic.d.ts +0 -7
- package/lib/view/taskManager/taskGroupView/taskGroupViewPayload.d.ts +2 -1
- package/lib/view/taskManager/taskListView/taskList.d.ts +2 -7
- package/lib/view/taskManager/taskListView/taskList.js +3 -4
- package/lib/view/taskManager/taskListView/taskListPayload.d.ts +2 -1
- package/lib/view/transactionDetail/transactionDetailPayload.d.ts +1 -1
- package/lib/view/transactionList/parallelFetchEntityTransactionListEpic.d.ts +0 -8
- package/lib/view/transactionList/parallelFetchEntityTransactionListEpic.js +1 -2
- package/lib/view/transactionList/transactionListByEntitySelector.d.ts +0 -2
- package/lib/view/transactionList/transactionListByEntitySelector.js +1 -2
- package/lib/view/transactionList/transactionListPayload.d.ts +5 -4
- package/lib/view/transactionList/transactionListState.d.ts +5 -4
- package/lib/view/trend/trendPayload.d.ts +4 -3
- package/lib/view/trendWithTransactions/trendWithTransactionsState.d.ts +2 -1
- package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.d.ts +3 -2
- package/lib/view/userFinancialAccount/fetchUserFinancialAccountEpic.d.ts +0 -2
- package/lib/view/userFinancialAccount/fetchUserFinancialAccountEpic.js +2 -3
- package/lib/view/userFinancialAccount/userFinancialAccountSelector.d.ts +0 -1
- package/lib/view/userFinancialAccount/userFinancialAccountSelector.js +2 -3
- package/lib/view/userListView/userListViewPayload.d.ts +2 -1
- package/lib/view/userRoleConfigView/userRoleConfigPayload.d.ts +2 -1
- package/lib/view/vendorList/vendorListPayload.d.ts +2 -5
- package/lib/view/vendorList/vendorListSelector.d.ts +0 -1
- package/lib/view/vendorList/vendorListSelector.js +1 -3
- package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +3 -5
- package/lib/view/vendorReviewView/common/state/commonTypes.js +4 -26
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewAttachmentsEpic.d.ts +0 -3
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewPayload.d.ts +3 -3
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.d.ts +2 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +2 -2
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.js +3 -3
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewPayload.d.ts +2 -3
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewPayload.js +3 -5
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +0 -2
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.js +3 -5
- package/lib/view/vendorTypeList/vendorTypeListPayload.d.ts +2 -1
- package/lib/view/vendorTypeList/vendorTypeSelector.d.ts +0 -12
- package/lib/view/vendorTypeList/vendorTypeSelector.js +0 -11
- package/lib/view/zeniAccStatementList/fetchZeniAccStatementListEpic.js +2 -2
- package/lib/view/zeniAccStatementList/zeniAccStatementListPayload.d.ts +2 -1
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.js +1 -1
- package/lib/zeniAPI.d.ts +2 -0
- package/package.json +5 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FetchedState, FetchStateAndError, ID } from '../../../../commonStateTypes/common';
|
|
2
2
|
export declare const getSupportedAccountKey: (currencyCode: string, amount: number, vendorType: string) => string;
|
|
3
|
-
|
|
3
|
+
declare type SupportedAccountKey = ReturnType<typeof getSupportedAccountKey>;
|
|
4
4
|
export interface InternationalWireState {
|
|
5
5
|
createInternationalWireDetails: CreateInternationalWireDetails;
|
|
6
6
|
dynamicFormDetailsbyKey: Record<SupportedAccountKey, DynamicFormDetails>;
|
|
@@ -49,3 +49,4 @@ export interface InternationalWireFormFieldGroupAllowedValue {
|
|
|
49
49
|
}
|
|
50
50
|
export declare type FieldType = 'text' | 'select' | 'radio' | 'number';
|
|
51
51
|
export declare const intialDynamicFormDetails: DynamicFormDetails;
|
|
52
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
2
|
-
import { CreateInternationalWireDetailsLocalData,
|
|
2
|
+
import { CreateInternationalWireDetailsLocalData, DynamicFormField, SupportedAccountType } from './internationalWire';
|
|
3
3
|
import { PaymentInstrumentPayload } from '../../../../entity/paymentInstrument/paymentInstrumentPayload';
|
|
4
4
|
export interface InternationalWireFormPayload {
|
|
5
5
|
pi_types: InternationalAccountTypePayload[];
|
|
@@ -25,25 +25,20 @@ export interface InternationalWireFormFieldPayload {
|
|
|
25
25
|
validation_regex: null | string;
|
|
26
26
|
values_allowed: null | InternationalWireFormFieldGroupAllowedValuePayload[];
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
interface AsyncValidationPayload {
|
|
29
29
|
url: string;
|
|
30
30
|
params: string[];
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
interface InternationalWireFormFieldGroupAllowedValuePayload {
|
|
33
33
|
value: string;
|
|
34
34
|
display_text: string;
|
|
35
35
|
}
|
|
36
36
|
export declare type InternationalWireDynamicFormResponse = ZeniAPIResponse<InternationalWireFormPayload>;
|
|
37
37
|
export declare const toSupportedAccountPayload: (payload: InternationalAccountTypePayload) => SupportedAccountType;
|
|
38
38
|
export declare const toDynamicFormFields: (payload: InternationalWireFormFieldPayload) => DynamicFormField;
|
|
39
|
-
|
|
40
|
-
export declare const toInternationalWireFormFieldGroupAllowedValue: (payload: InternationalWireFormFieldGroupAllowedValuePayload) => InternationalWireFormFieldGroupAllowedValue;
|
|
41
|
-
export interface CreatePaymentInstrumentPayload {
|
|
39
|
+
interface CreatePaymentInstrumentPayload {
|
|
42
40
|
payment_instruments: PaymentInstrumentPayload[];
|
|
43
41
|
}
|
|
44
42
|
export declare type CreatePaymentInstrumentResponse = ZeniAPIResponse<CreatePaymentInstrumentPayload>;
|
|
45
|
-
export declare type CreateInternationalWirePayload = Record<string, string> & {
|
|
46
|
-
pi_type: string;
|
|
47
|
-
account_source: string;
|
|
48
|
-
};
|
|
49
43
|
export declare const toPaymentInstrumentPayload: (paymentInstrumentLocalData: CreateInternationalWireDetailsLocalData) => Record<string, string>;
|
|
44
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toPaymentInstrumentPayload = exports.
|
|
3
|
+
exports.toPaymentInstrumentPayload = exports.toDynamicFormFields = exports.toSupportedAccountPayload = void 0;
|
|
4
4
|
const toSupportedAccountPayload = (payload) => ({
|
|
5
5
|
title: payload.pi_title,
|
|
6
6
|
type: payload.pi_type,
|
|
@@ -16,7 +16,7 @@ const toDynamicFormFields = (payload) => {
|
|
|
16
16
|
refreshOnChange: payload.refresh_on_change,
|
|
17
17
|
required: payload.required,
|
|
18
18
|
asyncValidation: payload.async_validation != null
|
|
19
|
-
?
|
|
19
|
+
? toDynamicAsyncValidation(payload.async_validation)
|
|
20
20
|
: undefined,
|
|
21
21
|
minLength: (_a = payload.min_length) !== null && _a !== void 0 ? _a : undefined,
|
|
22
22
|
maxLength: (_b = payload.max_length) !== null && _b !== void 0 ? _b : undefined,
|
|
@@ -24,7 +24,7 @@ const toDynamicFormFields = (payload) => {
|
|
|
24
24
|
? new RegExp(payload.validation_regex)
|
|
25
25
|
: undefined,
|
|
26
26
|
valuesAllowed: payload.values_allowed != null
|
|
27
|
-
? payload.values_allowed.map((valuePayload) =>
|
|
27
|
+
? payload.values_allowed.map((valuePayload) => toInternationalWireFormFieldGroupAllowedValue(valuePayload))
|
|
28
28
|
: undefined,
|
|
29
29
|
});
|
|
30
30
|
};
|
|
@@ -33,12 +33,10 @@ const toDynamicAsyncValidation = (payload) => ({
|
|
|
33
33
|
url: payload.url,
|
|
34
34
|
params: payload.params,
|
|
35
35
|
});
|
|
36
|
-
exports.toDynamicAsyncValidation = toDynamicAsyncValidation;
|
|
37
36
|
const toInternationalWireFormFieldGroupAllowedValue = (payload) => ({
|
|
38
37
|
value: payload.value,
|
|
39
38
|
label: payload.display_text,
|
|
40
39
|
});
|
|
41
|
-
exports.toInternationalWireFormFieldGroupAllowedValue = toInternationalWireFormFieldGroupAllowedValue;
|
|
42
40
|
const toPaymentInstrumentPayload = (paymentInstrumentLocalData) => {
|
|
43
41
|
var _a, _b, _c, _d;
|
|
44
42
|
const accountType = (_a = paymentInstrumentLocalData.accountType) === null || _a === void 0 ? void 0 : _a.type;
|
|
@@ -8,7 +8,7 @@ const responsePayload_1 = require("../../../../../responsePayload");
|
|
|
8
8
|
const attachmentPayload_1 = require("../../../../../entity/transaction/payloadTypes/attachmentPayload");
|
|
9
9
|
const fetchMagicLinkBillEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators_1.filter)(magicLinkViewReducer_1.fetchBillAttachment.match), (0, operators_1.mergeMap)((action) => {
|
|
10
10
|
const { billId } = action.payload;
|
|
11
|
-
let apiUrl = `${zeniAPI.apiEndPoints.
|
|
11
|
+
let apiUrl = `${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bills/transactions/${billId}`;
|
|
12
12
|
const queryParam = {
|
|
13
13
|
transaction_type: 'bill',
|
|
14
14
|
bill_pay_provider: 'zeni',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ID } from '../../../../commonStateTypes/common';
|
|
2
2
|
import { AttachmentPayload } from '../../../../entity/transaction/payloadTypes/attachmentPayload';
|
|
3
3
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
4
|
-
|
|
4
|
+
interface MagicLinkCompanyInfoPayload {
|
|
5
5
|
company_id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
company_url: string | null;
|
|
@@ -9,21 +9,21 @@ export interface MagicLinkCompanyInfoPayload {
|
|
|
9
9
|
currency_symbol: string | null;
|
|
10
10
|
currency_code: string;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
interface MagicLinkTenant {
|
|
13
13
|
company_id: ID;
|
|
14
14
|
tenant_id: ID;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
interface MagicLinkSessionInfo {
|
|
17
17
|
user_id: ID;
|
|
18
18
|
session_id: ID;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
interface MagicLinkTenantPayload {
|
|
21
21
|
companies: MagicLinkCompanyInfoPayload[];
|
|
22
22
|
tenants: MagicLinkTenant[];
|
|
23
23
|
session_info: MagicLinkSessionInfo;
|
|
24
24
|
}
|
|
25
25
|
export declare type MagicLinkTenantResponse = ZeniAPIResponse<MagicLinkTenantPayload>;
|
|
26
|
-
|
|
26
|
+
interface MagicLinkBill {
|
|
27
27
|
attachments: AttachmentPayload[];
|
|
28
28
|
transaction_date: string;
|
|
29
29
|
due_date: string;
|
|
@@ -34,8 +34,9 @@ export interface MagicLinkBill {
|
|
|
34
34
|
currency_symbol: string;
|
|
35
35
|
currency_code: string;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
interface MagicLinkBillPayload {
|
|
38
38
|
query: Record<string, unknown>;
|
|
39
39
|
transaction: MagicLinkBill;
|
|
40
40
|
}
|
|
41
41
|
export declare type MagicLinkBillResponse = ZeniAPIResponse<MagicLinkBillPayload>;
|
|
42
|
+
export {};
|
|
@@ -34,7 +34,7 @@ const fetchPreviousBillsEpic = (actions$, state$, zeniAPI) => actions$.pipe((0,
|
|
|
34
34
|
limit: 3,
|
|
35
35
|
};
|
|
36
36
|
return zeniAPI
|
|
37
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
37
|
+
.getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bills/transactions?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
|
|
38
38
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
39
39
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
40
40
|
const updateActions = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FetchedState, ID } from '../../../../commonStateTypes/common';
|
|
2
2
|
export declare const getPreviousBillsKey: (entityId: ID) => string;
|
|
3
|
-
|
|
3
|
+
declare type PreviousBillsKey = ReturnType<typeof getPreviousBillsKey>;
|
|
4
4
|
export interface PreviousBills extends FetchedState {
|
|
5
5
|
billTransactionIDs: ID[];
|
|
6
6
|
}
|
|
@@ -8,3 +8,4 @@ export declare const initialPreviousBillsState: PreviousBills;
|
|
|
8
8
|
export interface PreviousBillsState {
|
|
9
9
|
byEntityKey: Record<PreviousBillsKey, PreviousBills>;
|
|
10
10
|
}
|
|
11
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CurrencyPayload } from '../../../../commonPayloadTypes/v2/viewAndReportPayloadv2';
|
|
2
2
|
import { InsightPayload } from '../../../../entity/insights/insightPayload';
|
|
3
3
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
4
|
-
|
|
4
|
+
interface CashbackPeriodPayload {
|
|
5
5
|
amount: number;
|
|
6
6
|
period: string;
|
|
7
7
|
}
|
|
@@ -21,3 +21,4 @@ export interface ChargeCardCashbackPayload extends CurrencyPayload {
|
|
|
21
21
|
insights: InsightPayload;
|
|
22
22
|
}
|
|
23
23
|
export declare type FetchCashbackDetailEpicResponse = ZeniAPIResponse<ChargeCardCashbackPayload>;
|
|
24
|
+
export {};
|
|
@@ -7,14 +7,3 @@ export declare const fetchCashbackDetail: import("@reduxjs/toolkit").ActionCreat
|
|
|
7
7
|
}, string>, clearCashbackDetail: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
8
8
|
declare const _default: import("@reduxjs/toolkit").Reducer<CashbackDetailState, import("@reduxjs/toolkit").AnyAction>;
|
|
9
9
|
export default _default;
|
|
10
|
-
export declare const toCashbackByPeriod: (payload: ChargeCardCashbackPayload) => {
|
|
11
|
-
currencyCode: string;
|
|
12
|
-
currencySymbol: string;
|
|
13
|
-
period: string;
|
|
14
|
-
amount: number;
|
|
15
|
-
}[];
|
|
16
|
-
export declare const toCashbackSummary: (payload: ChargeCardCashbackPayload) => {
|
|
17
|
-
cashbackEarned: import("../../../../commonStateTypes/amount").Amount;
|
|
18
|
-
cashbackRedeemed: import("../../../../commonStateTypes/amount").Amount;
|
|
19
|
-
cashbackAvailable: import("../../../../commonStateTypes/amount").Amount;
|
|
20
|
-
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.clearCashbackDetail = exports.updateCashbackDetailUIState = exports.updateCashbackDetailFailure = exports.updateCashbackDetail = exports.fetchCashbackDetail = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const amount_1 = require("../../../../commonStateTypes/amount");
|
|
7
7
|
const viewAndReportPayloadv2_1 = require("../../../../commonPayloadTypes/v2/viewAndReportPayloadv2");
|
|
@@ -32,8 +32,8 @@ const cashbackDetail = (0, toolkit_1.createSlice)({
|
|
|
32
32
|
draft.error = undefined;
|
|
33
33
|
},
|
|
34
34
|
updateCashbackDetail(draft, action) {
|
|
35
|
-
draft.cashbackByPeriod =
|
|
36
|
-
draft.cashbackSummary =
|
|
35
|
+
draft.cashbackByPeriod = toCashbackByPeriod(action.payload);
|
|
36
|
+
draft.cashbackSummary = toCashbackSummary(action.payload);
|
|
37
37
|
draft.insightId = action.payload.insights.insight_id;
|
|
38
38
|
draft.fetchState = 'Completed';
|
|
39
39
|
},
|
|
@@ -60,7 +60,6 @@ exports.default = cashbackDetail.reducer;
|
|
|
60
60
|
const toCashbackByPeriod = (payload) => {
|
|
61
61
|
return payload.cashback_by_period.map((cashbackPeriod) => (Object.assign({ period: cashbackPeriod.period, amount: cashbackPeriod.amount }, (0, viewAndReportPayloadv2_1.mapCurrencyPayloadToCurrency)(payload))));
|
|
62
62
|
};
|
|
63
|
-
exports.toCashbackByPeriod = toCashbackByPeriod;
|
|
64
63
|
const toCashbackSummary = (payload) => {
|
|
65
64
|
return {
|
|
66
65
|
cashbackEarned: (0, amount_1.toAmount)(payload.cashback_summary.cashback_earned.amount, payload.currency_code, payload.currency_symbol),
|
|
@@ -68,4 +67,3 @@ const toCashbackSummary = (payload) => {
|
|
|
68
67
|
cashbackAvailable: (0, amount_1.toAmount)(payload.cashback_summary.cashback_available.amount, payload.currency_code, payload.currency_symbol),
|
|
69
68
|
};
|
|
70
69
|
};
|
|
71
|
-
exports.toCashbackSummary = toCashbackSummary;
|
|
@@ -7,12 +7,12 @@ export interface ChargeCardConfigPayload {
|
|
|
7
7
|
repayment_info: RePaymentInfoPayload;
|
|
8
8
|
is_ai_categorization_enabled_for_cards_transactions: boolean;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
interface CreditTermsPayload {
|
|
11
11
|
credit_terms_id: string;
|
|
12
12
|
credit_terms_name: string;
|
|
13
13
|
max_number_of_virtual_cards_per_user: number;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
interface RePaymentInfoPayload {
|
|
16
16
|
current_statement_period_end_date: string;
|
|
17
17
|
current_statement_period_start_date: string;
|
|
18
18
|
next_repayment_due_date: string;
|
|
@@ -21,3 +21,4 @@ export interface RePaymentInfoPayload {
|
|
|
21
21
|
export declare type ChargeCardConfigResponse = ZeniAPIResponse<ChargeCardConfigPayload>;
|
|
22
22
|
export declare const toCreditTerm: (payload: CreditTermsPayload) => CreditTerm;
|
|
23
23
|
export declare const toRePaymentInfo: (payload: RePaymentInfoPayload) => RePaymentInfo;
|
|
24
|
+
export {};
|
|
@@ -4,12 +4,12 @@ import { PageToken } from '../../../../commonStateTypes/viewAndReport/viewAndRep
|
|
|
4
4
|
export interface ChargeCardDetailState {
|
|
5
5
|
detailById: Record<ID, ChargeCardDetail>;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
interface ChargeCardDetail extends FetchedState {
|
|
8
8
|
id: ID;
|
|
9
9
|
transactionList: ChargeCardDetailTransactionList;
|
|
10
10
|
updateStatus: FetchStateAndError;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
interface ChargeCardDetailTransactionList extends FetchStateAndError {
|
|
13
13
|
transactionIds: ID[];
|
|
14
14
|
uiState: ChargeCardDetailUiState;
|
|
15
15
|
}
|
|
@@ -22,3 +22,4 @@ export interface ChargeCardDetailUiState {
|
|
|
22
22
|
limit: number;
|
|
23
23
|
}
|
|
24
24
|
export declare const emptyChargeCardDetail: ChargeCardDetail;
|
|
25
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import { ChargeCardTransactionPayload } from '../../../../entity/chargeCardTrans
|
|
|
3
3
|
import { UserPayload } from '../../../../entity/user/userPayload';
|
|
4
4
|
import { UserRolePayload } from '../../../../entity/userRole/userRolePayload';
|
|
5
5
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
6
|
-
|
|
6
|
+
interface ChargeCardDetailPayload {
|
|
7
7
|
card: ChargeCardPayload;
|
|
8
8
|
users: UserPayload[];
|
|
9
9
|
user_roles: UserRolePayload[];
|
|
@@ -14,7 +14,7 @@ export interface ChargeCardTransactionListPayload {
|
|
|
14
14
|
query: ChargeCardTrasactionQuery;
|
|
15
15
|
total_count: number;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
interface ChargeCardTrasactionQuery {
|
|
18
18
|
page_token_type: string | null;
|
|
19
19
|
sort_by: string;
|
|
20
20
|
sort_order: string;
|
|
@@ -22,3 +22,4 @@ export interface ChargeCardTrasactionQuery {
|
|
|
22
22
|
page_token: null | string;
|
|
23
23
|
}
|
|
24
24
|
export declare type FetchChargeCardTransactionListResponse = ZeniAPIResponse<ChargeCardTransactionListPayload>;
|
|
25
|
+
export {};
|
|
@@ -34,12 +34,10 @@ export interface CreditAccount extends FetchStateAndError {
|
|
|
34
34
|
}
|
|
35
35
|
export declare const initialCreditAcc: CreditAccount;
|
|
36
36
|
export declare const initialIssueChargeCard: IssueChargeCard;
|
|
37
|
-
export declare const ALL_CHARGE_CARD_SORT_KEYS: readonly ["owner", "cardName", "department", "utilisation", "limit"];
|
|
38
37
|
export declare const toChargeCardSortKeyType: (v: string) => "owner" | "department" | "cardName" | "utilisation" | "limit";
|
|
39
38
|
export declare type ChargeCardViewSortKey = ReturnType<typeof toChargeCardSortKeyType>;
|
|
40
39
|
export declare const ALL_CASHBACK_SORT_KEYS: readonly ["month", "cashback"];
|
|
41
40
|
export declare const toCashbackSortKeyType: (v: string) => "month" | "cashback";
|
|
42
41
|
export declare type CashbackViewSortKey = ReturnType<typeof toCashbackSortKeyType>;
|
|
43
|
-
export declare const ALL_CREDIT_ACCOUNT_STATUS: readonly ["open", "close"];
|
|
44
42
|
export declare const toCreditAccountStatusType: (v: string) => "open" | "close";
|
|
45
43
|
export declare type CreditAccountStatusType = ReturnType<typeof toCreditAccountStatusType>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toCreditAccountStatusType = exports.
|
|
3
|
+
exports.toCreditAccountStatusType = exports.toCashbackSortKeyType = exports.ALL_CASHBACK_SORT_KEYS = exports.toChargeCardSortKeyType = exports.initialIssueChargeCard = exports.initialCreditAcc = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../../commonStateTypes/stringToUnion");
|
|
5
5
|
exports.initialCreditAcc = {
|
|
6
6
|
fetchState: 'Not-Started',
|
|
@@ -45,18 +45,18 @@ exports.initialIssueChargeCard = {
|
|
|
45
45
|
error: undefined,
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
const ALL_CHARGE_CARD_SORT_KEYS = [
|
|
49
49
|
'owner',
|
|
50
50
|
'cardName',
|
|
51
51
|
'department',
|
|
52
52
|
'utilisation',
|
|
53
53
|
'limit',
|
|
54
54
|
];
|
|
55
|
-
const toChargeCardSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
55
|
+
const toChargeCardSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_CHARGE_CARD_SORT_KEYS);
|
|
56
56
|
exports.toChargeCardSortKeyType = toChargeCardSortKeyType;
|
|
57
57
|
exports.ALL_CASHBACK_SORT_KEYS = ['month', 'cashback'];
|
|
58
58
|
const toCashbackSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_CASHBACK_SORT_KEYS);
|
|
59
59
|
exports.toCashbackSortKeyType = toCashbackSortKeyType;
|
|
60
|
-
|
|
61
|
-
const toCreditAccountStatusType = (v) => (0, stringToUnion_1.stringToUnion)(v,
|
|
60
|
+
const ALL_CREDIT_ACCOUNT_STATUS = ['open', 'close'];
|
|
61
|
+
const toCreditAccountStatusType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_CREDIT_ACCOUNT_STATUS);
|
|
62
62
|
exports.toCreditAccountStatusType = toCreditAccountStatusType;
|
|
@@ -27,7 +27,8 @@ export interface CreditAccountPayload {
|
|
|
27
27
|
update_time: string;
|
|
28
28
|
cashback_amount?: number | null;
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
interface CreditAccountListPayload {
|
|
31
31
|
credit_accounts: CreditAccountPayload[];
|
|
32
32
|
}
|
|
33
33
|
export declare type FetchCreditAccountResponse = ZeniAPIResponse<CreditAccountListPayload>;
|
|
34
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ZeniAPIStatus } from '../../../../responsePayload';
|
|
2
2
|
import { ChargeCardListPayload, CreditAccountPayload } from './chargeCardListPayload';
|
|
3
|
-
import { ChargeCardListState, ChargeCardListUIState, ChargeCardLocalData
|
|
3
|
+
import { ChargeCardListState, ChargeCardListUIState, ChargeCardLocalData } from './chargeCardList';
|
|
4
4
|
import { FetchState } from '../../../../commonStateTypes/common';
|
|
5
5
|
export declare const initialState: ChargeCardListState;
|
|
6
6
|
export declare const fetchChargeCardListPage: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[doFetchCreditAccountsAndCashback: boolean, cacheOverride?: any], {
|
|
@@ -17,4 +17,3 @@ export declare const fetchChargeCardListPage: import("@reduxjs/toolkit").ActionC
|
|
|
17
17
|
}, string>, clearChargeCardList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
18
18
|
declare const _default: import("@reduxjs/toolkit").Reducer<ChargeCardListState, import("@reduxjs/toolkit").AnyAction>;
|
|
19
19
|
export default _default;
|
|
20
|
-
export declare const toCreditAccount: (payload: CreditAccountPayload) => CreditAccount;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.clearChargeCardList = exports.updateChargeCardListUIState = exports.updateSearchText = exports.resetIssueChargeCardForm = exports.issueChargeCardSuccessOrFailure = exports.updateChargeCardLocalStore = exports.issueChargeCard = exports.updateChargeCardListFailure = exports.updateChargeCardList = exports.fetchChargeCardList = exports.updateCreditAccountFailure = exports.updateCreditAccount = exports.fetchCreditAccount = exports.fetchChargeCardListPage = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const chargeCardList_1 = require("./chargeCardList");
|
|
7
7
|
const amount_1 = require("../../../../commonStateTypes/amount");
|
|
@@ -41,7 +41,7 @@ const chargeCardList = (0, toolkit_1.createSlice)({
|
|
|
41
41
|
},
|
|
42
42
|
updateCreditAccount(draft, action) {
|
|
43
43
|
if (action.payload.length > 0) {
|
|
44
|
-
draft.creditAccount =
|
|
44
|
+
draft.creditAccount = toCreditAccount(action.payload[0]);
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
updateCreditAccountFailure(draft, action) {
|
|
@@ -118,4 +118,3 @@ const toCreditAccount = (payload) => ({
|
|
|
118
118
|
fetchState: 'Completed',
|
|
119
119
|
error: undefined,
|
|
120
120
|
});
|
|
121
|
-
exports.toCreditAccount = toCreditAccount;
|
package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewPayload.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
2
2
|
import { EnableSetupViewPayload, SetupViewPayload } from '../../commonSetup/setupViewPayload';
|
|
3
3
|
export declare type EnableZeniAccountSetupViewPayload = EnableSetupViewPayload;
|
|
4
|
-
|
|
4
|
+
declare type ChargeCardSetupViewPayload = SetupViewPayload;
|
|
5
5
|
export declare type ChargeCardSetupViewResponse = ZeniAPIResponse<ChargeCardSetupViewPayload>;
|
|
6
|
-
export
|
|
6
|
+
export {};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { FetchedState, FetchStateAndError } from '../../../../commonStateTypes/common';
|
|
2
|
-
import { SetupViewLocalData } from '../../commonSetup/setupViewState';
|
|
3
|
-
export declare type ChargeCardSetupViewLocalData = SetupViewLocalData;
|
|
4
2
|
export interface ChargeCardSetupViewState extends FetchedState {
|
|
5
3
|
chargeCardTermsDetails?: {
|
|
6
4
|
fetchStatus: FetchStateAndError;
|
|
@@ -2,9 +2,10 @@ import { ZeniAPIResponse } from '../../../../../responsePayload';
|
|
|
2
2
|
import { CompanyPayload } from '../../../../../entity/company/companyPayload';
|
|
3
3
|
import { UserPayload } from '../../../../../entity/user/userPayload';
|
|
4
4
|
import { UserRolePayload } from '../../../../../entity/userRole/userRolePayload';
|
|
5
|
-
|
|
5
|
+
interface AcceptChargeCardTermsPayload {
|
|
6
6
|
companies: CompanyPayload[];
|
|
7
7
|
users: UserPayload[];
|
|
8
8
|
user_roles: UserRolePayload[];
|
|
9
9
|
}
|
|
10
10
|
export declare type AcceptChargeCardTermsResponse = ZeniAPIResponse<AcceptChargeCardTermsPayload>;
|
|
11
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import { FetchedState, ID } from '../../../commonStateTypes/common';
|
|
|
2
2
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
3
3
|
import { EntityType as SpendManagementEntityType } from '../../../entity/entityApprovalStatus/entityApprovalStatusState';
|
|
4
4
|
export declare const getEntityHistoryDetailKey: (entityId: ID, entityType: SpendManagementEntityType) => string;
|
|
5
|
-
|
|
5
|
+
declare type EntityHistoryDetailKey = ReturnType<typeof getEntityHistoryDetailKey>;
|
|
6
6
|
export interface CommonHistoryView extends FetchedState {
|
|
7
7
|
historicEvents: HistoricEvent[];
|
|
8
8
|
}
|
|
@@ -23,6 +23,7 @@ export interface CommonHistoryState {
|
|
|
23
23
|
historyById: Record<EntityHistoryDetailKey, CommonHistoryView>;
|
|
24
24
|
}
|
|
25
25
|
export declare const toHistoricEventUpdateType: (v: string) => "created" | "updated" | "deleted";
|
|
26
|
-
|
|
26
|
+
declare type HistoricEventUpdateType = ReturnType<typeof toHistoricEventUpdateType>;
|
|
27
27
|
export declare const toHistoricEventUpdateDisplayType: (v: string) => "inline" | "list" | "sentence";
|
|
28
|
-
|
|
28
|
+
declare type HistoricEventUpdateDisplayType = ReturnType<typeof toHistoricEventUpdateDisplayType>;
|
|
29
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
2
|
-
import { HistoricEvent
|
|
3
|
-
|
|
2
|
+
import { HistoricEvent } from './commonHistory';
|
|
3
|
+
interface HistoryPayload {
|
|
4
4
|
activities: HistoricEventPayload[];
|
|
5
5
|
}
|
|
6
6
|
export interface HistoricEventPayload {
|
|
@@ -10,17 +10,17 @@ export interface HistoricEventPayload {
|
|
|
10
10
|
updates: HistoricEventUpdatePayload[];
|
|
11
11
|
metadata: HistoricEventMetaDataPayload;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
interface HistoricEventUpdatePayload {
|
|
14
14
|
title: string;
|
|
15
15
|
type: string;
|
|
16
16
|
display_type: string;
|
|
17
17
|
description: string[];
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
interface HistoricEventMetaDataPayload {
|
|
20
20
|
actor_id: string;
|
|
21
21
|
actor_name: string;
|
|
22
22
|
activity_title: string;
|
|
23
23
|
}
|
|
24
24
|
export declare const toHistoricEvent: (payload: HistoricEventPayload) => HistoricEvent;
|
|
25
|
-
export declare const toHistoricEventUpdate: (payload: HistoricEventUpdatePayload) => HistoricEventUpdate;
|
|
26
25
|
export declare type FetchEntityHistoryResponse = ZeniAPIResponse<HistoryPayload>;
|
|
26
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toHistoricEvent = void 0;
|
|
4
4
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
5
5
|
const commonHistory_1 = require("./commonHistory");
|
|
6
6
|
const toHistoricEvent = (payload) => {
|
|
@@ -9,7 +9,7 @@ const toHistoricEvent = (payload) => {
|
|
|
9
9
|
eventText: payload.event_text,
|
|
10
10
|
eventSubText: (_a = payload.event_sub_text) !== null && _a !== void 0 ? _a : [],
|
|
11
11
|
timestamp: payload.timestamp != null ? (0, zeniDayJS_1.dateLocal)(payload.timestamp) : undefined,
|
|
12
|
-
updates: payload.updates.map((eventUpdatePayload) =>
|
|
12
|
+
updates: payload.updates.map((eventUpdatePayload) => toHistoricEventUpdate(eventUpdatePayload)),
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
exports.toHistoricEvent = toHistoricEvent;
|
|
@@ -19,4 +19,3 @@ const toHistoricEventUpdate = (payload) => ({
|
|
|
19
19
|
displayType: (0, commonHistory_1.toHistoricEventUpdateDisplayType)(payload.display_type),
|
|
20
20
|
description: payload.description,
|
|
21
21
|
});
|
|
22
|
-
exports.toHistoricEventUpdate = toHistoricEventUpdate;
|
|
@@ -26,7 +26,7 @@ const fetchEntityHistoryEpic = (actions$, state$, zeniAPI) => actions$.pipe((0,
|
|
|
26
26
|
}));
|
|
27
27
|
const entityTypeInUrl = entityType === 'bill_pay' ? 'bill' : entityType;
|
|
28
28
|
const getHistoryDetail$ = zeniAPI
|
|
29
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
29
|
+
.getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/${entityTypeInUrl}s/transactions/${entityId}/history`)
|
|
30
30
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
31
31
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
32
32
|
return (0, rxjs_1.of)((0, commonHistoryReducer_1.updateCommonHistory)({
|
package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts
CHANGED
|
@@ -12,14 +12,10 @@ import { updateAccounts } from '../../../../../entity/account/accountReducer';
|
|
|
12
12
|
import { updatePaymentAccounts } from '../../../../../entity/paymentAccount/paymentAccountReducer';
|
|
13
13
|
import { AddressUpdatableInfo } from '../../../../addressView/addressViewState';
|
|
14
14
|
import { updateBusinessVerificationDetails, updateBusinessVerificationDetailsSuccess, updateBusinessVerificationDetailsFailure, updateSetupViewLocalStoreData, updateSelectedCompanyOfficer } from '../../setupViewReducer';
|
|
15
|
-
import {
|
|
15
|
+
import { CompanyDetailsVerificationPayload, CompanyOfficerVerificationPayload, NewCompanyOfficerVerificationPayload, PrimaryContactVerificationPayload } from '../../types/businessVerification';
|
|
16
16
|
import { CompanyDetailsLocalData, CompanyOfficerLocalData, PrimaryContactLocalData } from '../../setupViewState';
|
|
17
17
|
export declare type ActionType = ReturnType<typeof updateBusinessVerificationDetails> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateUserRoles> | ReturnType<typeof updateCompanies> | ReturnType<typeof updateAddresses> | ReturnType<typeof updateFiles> | ReturnType<typeof updateAccounts> | ReturnType<typeof updatePaymentAccounts> | ReturnType<typeof updateSetupViewLocalStoreData> | ReturnType<typeof updateSelectedCompanyOfficer> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateBusinessVerificationDetailsSuccess> | ReturnType<typeof updateBusinessVerificationDetailsFailure>;
|
|
18
18
|
export declare const updateBusinessVerificationDetailsEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
19
|
-
/**
|
|
20
|
-
* Helpers
|
|
21
|
-
*/
|
|
22
|
-
export declare const toBusinessVerificationDataPayload: (companyLocalData: CompanyDetailsLocalData, primaryContact: PrimaryContactLocalData, companyOfficer: CompanyOfficerLocalData, isNewPrimaryContactUser: boolean, sendForVerification: boolean, companyAddressData?: AddressUpdatableInfo | undefined, companyOfficerAddressData?: AddressUpdatableInfo | undefined) => Partial<BusinessVerificationDataPayload>;
|
|
23
19
|
export declare const toBusinessVerificationCompanyDataPayload: (companyLocalData: CompanyDetailsLocalData, sendForVerification: boolean, companyAddressData?: AddressUpdatableInfo | undefined) => Partial<CompanyDetailsVerificationPayload>;
|
|
24
20
|
export declare const toBusinessVerificationPrimaryContactDataPayload: (primaryContact: PrimaryContactLocalData, isNewPrimaryContactUser: boolean) => Partial<PrimaryContactVerificationPayload>;
|
|
25
21
|
export declare const toBusinessVerificationOfficerDataPayload: (companyOfficer: CompanyOfficerLocalData, isSubmittingAdditionalDocuments: boolean, companyOfficerAddressData?: AddressUpdatableInfo | undefined) => Partial<CompanyOfficerVerificationPayload> | Partial<NewCompanyOfficerVerificationPayload>;
|
package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toBusinessVerificationOfficerDataPayload = exports.toBusinessVerificationPrimaryContactDataPayload = exports.toBusinessVerificationCompanyDataPayload = exports.
|
|
3
|
+
exports.toBusinessVerificationOfficerDataPayload = exports.toBusinessVerificationPrimaryContactDataPayload = exports.toBusinessVerificationCompanyDataPayload = exports.updateBusinessVerificationDetailsEpic = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const responsePayload_1 = require("../../../../../responsePayload");
|
|
@@ -104,18 +104,6 @@ const updateBusinessVerificationDetailsEpic = (actions$, state$, zeniAPI) => act
|
|
|
104
104
|
}
|
|
105
105
|
}));
|
|
106
106
|
exports.updateBusinessVerificationDetailsEpic = updateBusinessVerificationDetailsEpic;
|
|
107
|
-
/**
|
|
108
|
-
* Helpers
|
|
109
|
-
*/
|
|
110
|
-
const toBusinessVerificationDataPayload = (companyLocalData, primaryContact, companyOfficer, isNewPrimaryContactUser, sendForVerification, companyAddressData, companyOfficerAddressData) => {
|
|
111
|
-
const payload = {
|
|
112
|
-
company: (0, exports.toBusinessVerificationCompanyDataPayload)(companyLocalData, sendForVerification, companyAddressData),
|
|
113
|
-
company_officer: (0, exports.toBusinessVerificationOfficerDataPayload)(companyOfficer, false, companyOfficerAddressData),
|
|
114
|
-
primary_contact_user: (0, exports.toBusinessVerificationPrimaryContactDataPayload)(primaryContact, isNewPrimaryContactUser),
|
|
115
|
-
};
|
|
116
|
-
return payload;
|
|
117
|
-
};
|
|
118
|
-
exports.toBusinessVerificationDataPayload = toBusinessVerificationDataPayload;
|
|
119
107
|
const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendForVerification, companyAddressData) => {
|
|
120
108
|
const { companyDescription, companyLegalName, companyIndustry, website, incDate, taxIdOrEIN, phone, syncToken, fileIds, typeOfIncorporation, } = companyLocalData;
|
|
121
109
|
const company = {
|
|
@@ -68,7 +68,7 @@ export interface CompanyDetails {
|
|
|
68
68
|
primaryContactLocalData?: PrimaryContactLocalData;
|
|
69
69
|
typeOfIncorporation?: string;
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
interface CompanyAndOfficerLocalData {
|
|
72
72
|
companyDetailsLocalData?: CompanyDetails;
|
|
73
73
|
companyOfficerLocalData: Record<CompanyOfficerType, CompanyOfficersDetails | undefined>;
|
|
74
74
|
}
|
|
@@ -77,12 +77,9 @@ export interface BusinessVerificationDetails extends CompanyAndOfficerLocalData
|
|
|
77
77
|
updateStatus: FetchStateAndError;
|
|
78
78
|
}
|
|
79
79
|
export declare function getCommonSetupViewDetails(state: RootState, companyId: ID, setupViewType: SetupViewType, plaidAccountKeyType: PlaidAccountKeyType): SetupView;
|
|
80
|
-
export declare function getPrimaryAccountForTheProduct(state: RootState, companyId: ID, setupViewType: SetupViewType): {
|
|
81
|
-
accountId: ID;
|
|
82
|
-
accountType: AccountTypeSubConfigCodeKeyType;
|
|
83
|
-
} | undefined;
|
|
84
80
|
export declare function getBusinessVerificationDetails(state: RootState, companyId: ID): BusinessVerificationDetails;
|
|
85
81
|
export declare const getCompanyAndIdentityDetails: (state: RootState, companyId: ID, companyAndIdentityDetails: CompanyAndIdentityDetails) => CompanyAndOfficerLocalData;
|
|
86
82
|
export declare const getAllFundingAccounts: (depositAccounts: DepositAccount[], paymentAccounts: PaymentAccount[], includeOnlyVerifiedAccounts?: boolean) => FundingAccount[];
|
|
87
83
|
export declare const mapDepositAccToFundingAccount: (depositAcc: DepositAccount) => FundingAccount;
|
|
88
84
|
export declare const mapPaymentAccToFundingAccount: (paymentAcc: PaymentAccount) => FundingAccount;
|
|
85
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapPaymentAccToFundingAccount = exports.mapDepositAccToFundingAccount = exports.getAllFundingAccounts = exports.getCompanyAndIdentityDetails = exports.getBusinessVerificationDetails = exports.
|
|
3
|
+
exports.mapPaymentAccToFundingAccount = exports.mapDepositAccToFundingAccount = exports.getAllFundingAccounts = exports.getCompanyAndIdentityDetails = exports.getBusinessVerificationDetails = exports.getCommonSetupViewDetails = void 0;
|
|
4
4
|
const accountSelector_1 = require("../../../entity/account/accountSelector");
|
|
5
5
|
const fileSelector_1 = require("../../../entity/file/fileSelector");
|
|
6
6
|
const fileViewSelector_1 = require("../../fileView/fileViewSelector");
|
|
@@ -81,7 +81,6 @@ function getPrimaryAccountForTheProduct(state, companyId, setupViewType) {
|
|
|
81
81
|
}
|
|
82
82
|
return primaryFundingAccount;
|
|
83
83
|
}
|
|
84
|
-
exports.getPrimaryAccountForTheProduct = getPrimaryAccountForTheProduct;
|
|
85
84
|
function getBusinessVerificationDetails(state, companyId) {
|
|
86
85
|
const { setupViewState } = state;
|
|
87
86
|
const { companyDetails, companyOfficerUpdateStatus, primaryContactDetails, updateStatus, } = setupViewState;
|
|
@@ -4,10 +4,8 @@ import { AllowedValueWithCode } from '../../../commonStateTypes/allowedValue';
|
|
|
4
4
|
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
5
5
|
import { AllowedDocumentType } from '../../../entity/file/fileState';
|
|
6
6
|
import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
|
|
7
|
-
|
|
8
|
-
export declare const toSetupViewType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
7
|
+
declare const toSetupViewType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
9
8
|
export declare type SetupViewType = ReturnType<typeof toSetupViewType>;
|
|
10
|
-
export declare const toSetupViewTypeStrict: (v: string | null) => SetupViewType | undefined;
|
|
11
9
|
/**
|
|
12
10
|
* Setup View Local Data - Intefaces
|
|
13
11
|
*/
|
|
@@ -78,3 +76,4 @@ export interface CompanyAndIdentityDetails {
|
|
|
78
76
|
export interface SetupViewState extends CompanyAndIdentityDetails {
|
|
79
77
|
updateStatus: FetchStateAndError;
|
|
80
78
|
}
|
|
79
|
+
export {};
|