@zeniai/client-epic-state 4.19.57 → 4.19.59-betaJK1
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.
Potentially problematic release.
This version of @zeniai/client-epic-state might be problematic. Click here for more details.
- package/lib/entity/company/companyPayload.d.ts +12 -0
- package/lib/entity/company/companyPayload.js +20 -0
- package/lib/entity/company/companyStateTypes.d.ts +12 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogPayload.d.ts +31 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogPayload.js +45 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogReducer.d.ts +6 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogReducer.js +27 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogSelector.d.ts +4 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogSelector.js +17 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogState.d.ts +34 -0
- package/lib/entity/transactionActivityLog/transactionActivityLogState.js +13 -0
- package/lib/epic.d.ts +2 -1
- package/lib/epic.js +2 -1
- package/lib/esm/entity/chargeCardTransaction/chargeCardTransactionPayload.js +2 -2
- package/lib/esm/entity/company/companyPayload.js +20 -0
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogPayload.js +40 -0
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogReducer.js +23 -0
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogSelector.js +10 -0
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogState.js +9 -0
- package/lib/esm/epic.js +2 -1
- package/lib/esm/index.js +7 -5
- package/lib/esm/reducer.js +6 -0
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +2 -3
- package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewSelector.js +20 -2
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +2 -1
- package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector.js +2 -2
- package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector.js +2 -2
- package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector.js +4 -1
- package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/fetchChargeCardRepaymentDetailEpic.js +2 -1
- package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.js +1 -1
- package/lib/esm/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +64 -1
- package/lib/esm/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +14 -1
- package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +14 -1
- package/lib/esm/view/transactionActivityLogView/fetchTransactionActivityLogEpic.js +35 -0
- package/lib/esm/view/transactionActivityLogView/transactionActivityLogViewPayload.js +1 -0
- package/lib/esm/view/transactionActivityLogView/transactionActivityLogViewReducer.js +46 -0
- package/lib/esm/view/transactionActivityLogView/transactionActivityLogViewSelector.js +16 -0
- package/lib/esm/view/transactionActivityLogView/transactionActivityLogViewState.js +1 -0
- package/lib/index.d.ts +8 -5
- package/lib/index.js +18 -14
- package/lib/reducer.d.ts +6 -0
- package/lib/reducer.js +6 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +2 -3
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +20 -2
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +2 -1
- package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector.js +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector.js +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector.js +4 -1
- package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/fetchChargeCardRepaymentDetailEpic.js +2 -1
- package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.js +1 -1
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +64 -1
- package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +14 -1
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +13 -0
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +14 -1
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +13 -0
- package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +13 -0
- package/lib/view/transactionActivityLogView/fetchTransactionActivityLogEpic.d.ts +8 -0
- package/lib/view/transactionActivityLogView/fetchTransactionActivityLogEpic.js +39 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewPayload.d.ts +6 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewPayload.js +2 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewReducer.d.ts +17 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewReducer.js +50 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewSelector.d.ts +8 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewSelector.js +19 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewState.d.ts +5 -0
- package/lib/view/transactionActivityLogView/transactionActivityLogViewState.js +2 -0
- package/package.json +1 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createSelector } from '@reduxjs/toolkit';
|
|
2
|
+
import { reduceFetchState } from '../../commonStateTypes/reduceFetchState';
|
|
3
|
+
import { getTransactionActivityLogsByIds } from '../../entity/transactionActivityLog/transactionActivityLogSelector';
|
|
4
|
+
export const getTransactionActivityLogView = createSelector((state) => state.transactionActivityLogViewState, (state) => state.transactionActivityLogState, (_state, qboId) => qboId, (transactionActivityLogViewState, transactionActivityLogState, qboId) => {
|
|
5
|
+
const fetchStateAndError = transactionActivityLogViewState
|
|
6
|
+
.transactionActivityLogFetchStateByQboId[qboId] ?? {
|
|
7
|
+
fetchState: 'Not-Started',
|
|
8
|
+
error: undefined,
|
|
9
|
+
};
|
|
10
|
+
const transactionActivityLogIds = transactionActivityLogViewState.transactionActivityLogIdsByQboId[qboId] ?? [];
|
|
11
|
+
const transactionActivityLogs = getTransactionActivityLogsByIds(transactionActivityLogState, transactionActivityLogIds);
|
|
12
|
+
return {
|
|
13
|
+
...reduceFetchState([fetchStateAndError]),
|
|
14
|
+
transactionActivityLogs,
|
|
15
|
+
};
|
|
16
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -434,14 +434,14 @@ import { ChargeCardCVVActivateSelectorView, ChargeCardControlDetailView, ChargeC
|
|
|
434
434
|
import { ChargeCardListUIState, ChargeCardViewSortKey, CreditAccount, CreditAccountRepayment, DebitCardSummaries, toChargeCardSortKeyType } from './view/spendManagement/chargeCards/chargeCardList/chargeCardList';
|
|
435
435
|
import { closeChargeCards, fetchChargeCardList, fetchChargeCardListPage, fetchCreditAccount, fetchCreditAccountRepayment, fetchDebitCardSummary, lockChargeCards, resendCardInvite, revokeCardInvite, revokeChargeCardsInvite, unlockChargeCards, updateBulkActionCardIds, updateSearchText as updateChargeCardListSearchText, updateChargeCardListUIState, updateChargeCardsSpendLimit, updateRowActionCardId } from './view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer';
|
|
436
436
|
import { ChargeCardBulkActionView, ChargeCardListSelectorView, ChargeCardListWithShippingAddressSelectorView, ChargeCardRecurringExpensesByCardIds, ChargeCardRowActionView, ChargeCardWithUser, ChargeCardWithUserAndShippingAddress, DebitCardListSelectorView, DepositAccountListWithDebitCardIssued, MyPendingActivationChargeCardListSelectorView, anyCardOnHold, getChargeCardBulkActionView, getChargeCardListView, getChargeCardRecurringExpensesByCardIds, getChargeCardRowActionView, getCreditAccountDetails, getDebitCardList, getDebitCardSummary, getDepositAccountListWithDebitCardIssued, getMyPendingActivationChargeCardListView, getMyRequestOnHoldChargeCardListWithShippingAddress } from './view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector';
|
|
437
|
+
import { PAYMENT_HISTORY_FILTER_CATEGORIES, PaymentHistoryAccountInfo, PaymentHistoryFilterCategory, PaymentHistoryFilterCategoryDropdownOption, PaymentHistoryFilterCategoryField, PaymentHistoryFilters } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistory';
|
|
438
|
+
import { ChargeCardPaymentHistoryDownloadReport, getChargeCardPaymentHistoryDownloadReport } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector';
|
|
439
|
+
import { getPaymentHistorySourceAccountName, getPaymentStatusDisplayText } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryHelpers';
|
|
440
|
+
import { fetchChargeCardPaymentHistory, fetchChargeCardPaymentPage, updatePaymentHistoryDownloadUIState, updatePaymentHistoryFilters, updatePaymentHistorySearchText, updatePaymentHistoryUIState } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer';
|
|
441
|
+
import { ChargeCardPaymentHistorySelectorView, ChargeCardRepaymentWithUser, getChargeCardPaymentHistoryView } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector';
|
|
437
442
|
import { clearChargeCardRepaymentDetail, fetchChargeCardRepaymentDetail, initiateChargeCardRepayment, updateChargeCardRepaymentLocalStore } from './view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailReducer';
|
|
438
443
|
import { ChargeCardRepaymentDetailSelectorView, getChargeCardRepaymentDetail } from './view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector';
|
|
439
444
|
import { ChargeCardRepaymentDetailLocalData } from './view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailState';
|
|
440
|
-
import { ChargeCardPaymentHistoryDownloadReport, getChargeCardPaymentHistoryDownloadReport } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector';
|
|
441
|
-
import { fetchChargeCardPaymentPage, fetchChargeCardPaymentHistory, updatePaymentHistoryDownloadUIState, updatePaymentHistoryFilters, updatePaymentHistorySearchText, updatePaymentHistoryUIState } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer';
|
|
442
|
-
import { ChargeCardPaymentHistorySelectorView, ChargeCardRepaymentWithUser, getChargeCardPaymentHistoryView } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector';
|
|
443
|
-
import { PAYMENT_HISTORY_FILTER_CATEGORIES, PaymentHistoryAccountInfo, PaymentHistoryFilterCategory, PaymentHistoryFilterCategoryDropdownOption, PaymentHistoryFilterCategoryField, PaymentHistoryFilters } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistory';
|
|
444
|
-
import { getPaymentHistorySourceAccountName, getPaymentStatusDisplayText } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryHelpers';
|
|
445
445
|
import { acceptChargeCardTerms, enableChargeCardAutoPay, expressInterestInChargeCard, fetchChargeCardSetupView } from './view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer';
|
|
446
446
|
import { ChargeCardBusinessVerificationDetails, ChargeCardSetupView, getChargeCardBusinessVerificationDetails, getChargeCardSetupViewDetails } from './view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector';
|
|
447
447
|
import { ChargeCardStatement } from './view/spendManagement/chargeCards/chargeCardStatementList/chargeCardStatementList';
|
|
@@ -863,3 +863,6 @@ export { TreasuryStatementsSelectorView, getTreasuryStatements, } from './view/s
|
|
|
863
863
|
export { fetchTreasuryTaxLetterList } from './view/spendManagement/treasury/treasuryTaxLetterList/treasuryTaxLetterListReducer';
|
|
864
864
|
export { TreasuryTaxLettersSelectorView, getTreasuryTaxLetters, } from './view/spendManagement/treasury/treasuryTaxLetterList/treasuryTaxLetterListSelector';
|
|
865
865
|
export { TreasuryTransactionStatus } from './view/spendManagement/treasury/treasuryList/treasuryDetailPayload';
|
|
866
|
+
export type { TransactionActivityLog } from './entity/transactionActivityLog/transactionActivityLogState';
|
|
867
|
+
export { fetchTransactionActivityLog } from './view/transactionActivityLogView/transactionActivityLogViewReducer';
|
|
868
|
+
export { TransactionActivityLogViewSelectorView, getTransactionActivityLogView, } from './view/transactionActivityLogView/transactionActivityLogViewSelector';
|
package/lib/index.js
CHANGED
|
@@ -67,7 +67,7 @@ exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = ex
|
|
|
67
67
|
exports.toNotificationTabTypeStrict = exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.saveReasonForAuditRule = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getUserFromAllUsers = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.clearCardPaymentView = exports.resetCardPaymentErrorStatuses = exports.fetchPaymentSources = exports.addCardPaymentSource = exports.confirmCardSetupIntent = exports.createCardSetupIntent = exports.getAllCardsAndBankPaymentMethods = exports.deleteTag = exports.createTag = exports.fetchTagList = exports.getAllTags = exports.initialTaskDetailLocalData = exports.convertHHMMStrToMinutes = exports.updateTaskFromListView = exports.toDueDateGroupKeyType = exports.toTaskStatusCodeType = exports.toPriorityCodeType = exports.getDueDateValueFromDueDateGroupId = exports.initialTaskDetail = exports.fetchAllTaskGroups = exports.getTaskUpdates = exports.toTaskListGroupByKeyTypeStrict = exports.toTaskListGroupByKeyType = exports.updateTaskGroupName = exports.dragNDropTasks = exports.updateTaskListLocalData = exports.deleteTaskGroup = exports.initiateTaskListLocalData = exports.createNewTaskGroup = exports.bulkUpdateTaskList = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_GROUP_BY_CATEGORIES = exports.TASK_LIST_FILTER_CATEGORIES = void 0;
|
|
68
68
|
exports.fetchPortfolioAllocation = exports.updatePortfolioAllocation = exports.fetchTreasuryFunds = exports.clearTreasurySetupView = exports.fetchTreasurySetupView = exports.acceptTreasuryTerms = exports.getExpressPayView = exports.resetExpressPayLocalData = exports.submitExpressPay = exports.updateExpressPayFormLocalData = exports.fetchExpressPayInitialDetails = exports.getIntlWireVerificationView = exports.updateVerificationFormLocalData = exports.submitInternationalVerificationForm = exports.fetchInternationalVerificationForm = exports.createTaskFromTaskGroupTemplate = exports.getCompanyTaskManagerView = exports.fetchCompanyTaskManagerView = exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = exports.updateReferViewed = exports.getRewardsPlanCard = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.getNotifications = exports.getLastNotificationTime = exports.pushToastNotification = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = exports.updateNotificationViewAllNotificationsStatus = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = void 0;
|
|
69
69
|
exports.fetchTreasuryOverviewDetail = exports.toMessageType = exports.toMessageSender = exports.toAiCfoAnswerResponseTypeStrict = exports.toAiCfoAnswerResponseType = exports.toAiCfoAnswerStateTypeStrict = exports.toAiCfoAnswerStateType = exports.toAiCfoChartTypeStrict = exports.toAiCfoChartType = exports.toAiCfoVisualizationTypeStrict = exports.toAiCfoVisualizationType = exports.ALL_AI_CFO_ANSWER_RESPONSE_TYPES = exports.ALL_AI_CFO_ANSWER_STATE_TYPES = exports.ALL_AI_CFO_VISUALIZATION_TYPES = exports.ALL_AI_CFO_CHARTS_TYPES = exports.getAiCfoSelectorView = exports.getAllQuestionsForChatSession = exports.getQuestionAnswerByIdForChatSession = exports.getAllQuestionAnswersForChatSession = exports.toAiCfoVisualization = exports.clearAiCfo = exports.clearSession = exports.addQuestionPayload = exports.upsertOrAddQuestionAnswerPayload = exports.upsertAnswerPayload = exports.setSessions = exports.setNewSession = exports.getAiCfoView = exports.updateResponseState = exports.deleteChatSession = exports.acceptMasterTOS = exports.fetchChatHistory = exports.stopSubmitQuestion = exports.stopSubmit = exports.createSessionAndSubmit = exports.clearLastContextMessage = exports.clearCurrentSessionId = exports.clearAiCfoView = exports.setSession = exports.clearInput = exports.updateCotCollapsedState = exports.updateCurrentInput = exports.updateAiCfoViewScrollPosition = exports.submitQuestion = exports.createSession = exports.fetchChatSessionsForUser = exports.getTreasuryFundsMaximumYield = exports.getTreasurySetupViewDetails = exports.updateTreasuryVideoViewed = exports.updateFundAllocationLocalData = void 0;
|
|
70
|
-
exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = void 0;
|
|
70
|
+
exports.getTransactionActivityLogView = exports.fetchTransactionActivityLog = exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = void 0;
|
|
71
71
|
const allowedValue_1 = require("./commonStateTypes/allowedValue");
|
|
72
72
|
Object.defineProperty(exports, "isAllowedValueWithCode", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithCode; } });
|
|
73
73
|
Object.defineProperty(exports, "isAllowedValueWithID", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithID; } });
|
|
@@ -1424,29 +1424,29 @@ Object.defineProperty(exports, "getDebitCardSummary", { enumerable: true, get: f
|
|
|
1424
1424
|
Object.defineProperty(exports, "getDepositAccountListWithDebitCardIssued", { enumerable: true, get: function () { return chargeCardListSelector_1.getDepositAccountListWithDebitCardIssued; } });
|
|
1425
1425
|
Object.defineProperty(exports, "getMyPendingActivationChargeCardListView", { enumerable: true, get: function () { return chargeCardListSelector_1.getMyPendingActivationChargeCardListView; } });
|
|
1426
1426
|
Object.defineProperty(exports, "getMyRequestOnHoldChargeCardListWithShippingAddress", { enumerable: true, get: function () { return chargeCardListSelector_1.getMyRequestOnHoldChargeCardListWithShippingAddress; } });
|
|
1427
|
-
const
|
|
1428
|
-
Object.defineProperty(exports, "
|
|
1429
|
-
Object.defineProperty(exports, "fetchChargeCardRepaymentDetail", { enumerable: true, get: function () { return chargeCardRepaymentDetailReducer_1.fetchChargeCardRepaymentDetail; } });
|
|
1430
|
-
Object.defineProperty(exports, "initiateChargeCardRepayment", { enumerable: true, get: function () { return chargeCardRepaymentDetailReducer_1.initiateChargeCardRepayment; } });
|
|
1431
|
-
Object.defineProperty(exports, "updateChargeCardRepaymentLocalStore", { enumerable: true, get: function () { return chargeCardRepaymentDetailReducer_1.updateChargeCardRepaymentLocalStore; } });
|
|
1432
|
-
const chargeCardRepaymentDetailSelector_1 = require("./view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector");
|
|
1433
|
-
Object.defineProperty(exports, "getChargeCardRepaymentDetail", { enumerable: true, get: function () { return chargeCardRepaymentDetailSelector_1.getChargeCardRepaymentDetail; } });
|
|
1427
|
+
const chargeCardPaymentHistory_1 = require("./view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistory");
|
|
1428
|
+
Object.defineProperty(exports, "PAYMENT_HISTORY_FILTER_CATEGORIES", { enumerable: true, get: function () { return chargeCardPaymentHistory_1.PAYMENT_HISTORY_FILTER_CATEGORIES; } });
|
|
1434
1429
|
const chargeCardPaymentHistoryDownloadSelector_1 = require("./view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector");
|
|
1435
1430
|
Object.defineProperty(exports, "getChargeCardPaymentHistoryDownloadReport", { enumerable: true, get: function () { return chargeCardPaymentHistoryDownloadSelector_1.getChargeCardPaymentHistoryDownloadReport; } });
|
|
1431
|
+
const chargeCardPaymentHistoryHelpers_1 = require("./view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryHelpers");
|
|
1432
|
+
Object.defineProperty(exports, "getPaymentHistorySourceAccountName", { enumerable: true, get: function () { return chargeCardPaymentHistoryHelpers_1.getPaymentHistorySourceAccountName; } });
|
|
1433
|
+
Object.defineProperty(exports, "getPaymentStatusDisplayText", { enumerable: true, get: function () { return chargeCardPaymentHistoryHelpers_1.getPaymentStatusDisplayText; } });
|
|
1436
1434
|
const chargeCardPaymentHistoryReducer_1 = require("./view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer");
|
|
1437
|
-
Object.defineProperty(exports, "fetchChargeCardPaymentPage", { enumerable: true, get: function () { return chargeCardPaymentHistoryReducer_1.fetchChargeCardPaymentPage; } });
|
|
1438
1435
|
Object.defineProperty(exports, "fetchChargeCardPaymentHistory", { enumerable: true, get: function () { return chargeCardPaymentHistoryReducer_1.fetchChargeCardPaymentHistory; } });
|
|
1436
|
+
Object.defineProperty(exports, "fetchChargeCardPaymentPage", { enumerable: true, get: function () { return chargeCardPaymentHistoryReducer_1.fetchChargeCardPaymentPage; } });
|
|
1439
1437
|
Object.defineProperty(exports, "updatePaymentHistoryDownloadUIState", { enumerable: true, get: function () { return chargeCardPaymentHistoryReducer_1.updatePaymentHistoryDownloadUIState; } });
|
|
1440
1438
|
Object.defineProperty(exports, "updatePaymentHistoryFilters", { enumerable: true, get: function () { return chargeCardPaymentHistoryReducer_1.updatePaymentHistoryFilters; } });
|
|
1441
1439
|
Object.defineProperty(exports, "updatePaymentHistorySearchText", { enumerable: true, get: function () { return chargeCardPaymentHistoryReducer_1.updatePaymentHistorySearchText; } });
|
|
1442
1440
|
Object.defineProperty(exports, "updatePaymentHistoryUIState", { enumerable: true, get: function () { return chargeCardPaymentHistoryReducer_1.updatePaymentHistoryUIState; } });
|
|
1443
1441
|
const chargeCardPaymentHistorySelector_1 = require("./view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector");
|
|
1444
1442
|
Object.defineProperty(exports, "getChargeCardPaymentHistoryView", { enumerable: true, get: function () { return chargeCardPaymentHistorySelector_1.getChargeCardPaymentHistoryView; } });
|
|
1445
|
-
const
|
|
1446
|
-
Object.defineProperty(exports, "
|
|
1447
|
-
|
|
1448
|
-
Object.defineProperty(exports, "
|
|
1449
|
-
Object.defineProperty(exports, "
|
|
1443
|
+
const chargeCardRepaymentDetailReducer_1 = require("./view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailReducer");
|
|
1444
|
+
Object.defineProperty(exports, "clearChargeCardRepaymentDetail", { enumerable: true, get: function () { return chargeCardRepaymentDetailReducer_1.clearChargeCardRepaymentDetail; } });
|
|
1445
|
+
Object.defineProperty(exports, "fetchChargeCardRepaymentDetail", { enumerable: true, get: function () { return chargeCardRepaymentDetailReducer_1.fetchChargeCardRepaymentDetail; } });
|
|
1446
|
+
Object.defineProperty(exports, "initiateChargeCardRepayment", { enumerable: true, get: function () { return chargeCardRepaymentDetailReducer_1.initiateChargeCardRepayment; } });
|
|
1447
|
+
Object.defineProperty(exports, "updateChargeCardRepaymentLocalStore", { enumerable: true, get: function () { return chargeCardRepaymentDetailReducer_1.updateChargeCardRepaymentLocalStore; } });
|
|
1448
|
+
const chargeCardRepaymentDetailSelector_1 = require("./view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector");
|
|
1449
|
+
Object.defineProperty(exports, "getChargeCardRepaymentDetail", { enumerable: true, get: function () { return chargeCardRepaymentDetailSelector_1.getChargeCardRepaymentDetail; } });
|
|
1450
1450
|
const chargeCardSetUpViewReducer_1 = require("./view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer");
|
|
1451
1451
|
Object.defineProperty(exports, "acceptChargeCardTerms", { enumerable: true, get: function () { return chargeCardSetUpViewReducer_1.acceptChargeCardTerms; } });
|
|
1452
1452
|
Object.defineProperty(exports, "enableChargeCardAutoPay", { enumerable: true, get: function () { return chargeCardSetUpViewReducer_1.enableChargeCardAutoPay; } });
|
|
@@ -2056,3 +2056,7 @@ var treasuryTaxLetterListReducer_1 = require("./view/spendManagement/treasury/tr
|
|
|
2056
2056
|
Object.defineProperty(exports, "fetchTreasuryTaxLetterList", { enumerable: true, get: function () { return treasuryTaxLetterListReducer_1.fetchTreasuryTaxLetterList; } });
|
|
2057
2057
|
var treasuryTaxLetterListSelector_1 = require("./view/spendManagement/treasury/treasuryTaxLetterList/treasuryTaxLetterListSelector");
|
|
2058
2058
|
Object.defineProperty(exports, "getTreasuryTaxLetters", { enumerable: true, get: function () { return treasuryTaxLetterListSelector_1.getTreasuryTaxLetters; } });
|
|
2059
|
+
var transactionActivityLogViewReducer_1 = require("./view/transactionActivityLogView/transactionActivityLogViewReducer");
|
|
2060
|
+
Object.defineProperty(exports, "fetchTransactionActivityLog", { enumerable: true, get: function () { return transactionActivityLogViewReducer_1.fetchTransactionActivityLog; } });
|
|
2061
|
+
var transactionActivityLogViewSelector_1 = require("./view/transactionActivityLogView/transactionActivityLogViewSelector");
|
|
2062
|
+
Object.defineProperty(exports, "getTransactionActivityLogView", { enumerable: true, get: function () { return transactionActivityLogViewSelector_1.getTransactionActivityLogView; } });
|
package/lib/reducer.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ import { TaskSummaryState } from './entity/taskSummary/taskSummaryState';
|
|
|
55
55
|
import { TenantState } from './entity/tenant/tenantState';
|
|
56
56
|
import { ToastNotificationState } from './entity/toastNotification/toastNotificationState';
|
|
57
57
|
import { TransactionState } from './entity/transaction/transactionState';
|
|
58
|
+
import { TransactionActivityLogState } from './entity/transactionActivityLog/transactionActivityLogState';
|
|
58
59
|
import { UserState } from './entity/user/userState';
|
|
59
60
|
import { UserRoleState } from './entity/userRole/userRoleState';
|
|
60
61
|
import { VendorState } from './entity/vendor/vendorState';
|
|
@@ -188,6 +189,7 @@ import { TaskGroupViewState } from './view/taskManager/taskGroupView/taskGroupVi
|
|
|
188
189
|
import { TaskListState } from './view/taskManager/taskListView/taskList';
|
|
189
190
|
import { TasksCardState } from './view/tasksCard/tasksCardState';
|
|
190
191
|
import { TopExState } from './view/topEx/topExState';
|
|
192
|
+
import { TransactionActivityLogViewState } from './view/transactionActivityLogView/transactionActivityLogViewState';
|
|
191
193
|
import { TransactionDetailState } from './view/transactionDetail/transactionDetailState';
|
|
192
194
|
import { TransactionListState } from './view/transactionList/transactionListState';
|
|
193
195
|
import { TrendState } from './view/trend/trendState';
|
|
@@ -263,6 +265,7 @@ type EntitiesState = {
|
|
|
263
265
|
taskSummaryState: TaskSummaryState;
|
|
264
266
|
tenantState: TenantState;
|
|
265
267
|
toastNotificationState: ToastNotificationState;
|
|
268
|
+
transactionActivityLogState: TransactionActivityLogState;
|
|
266
269
|
transactionState: TransactionState;
|
|
267
270
|
userRoleState: UserRoleState;
|
|
268
271
|
userState: UserState;
|
|
@@ -387,6 +390,7 @@ type ViewsState = {
|
|
|
387
390
|
taskListState: TaskListState;
|
|
388
391
|
tasksCardState: TasksCardState;
|
|
389
392
|
topExState: TopExState;
|
|
393
|
+
transactionActivityLogViewState: TransactionActivityLogViewState;
|
|
390
394
|
transactionDetailState: TransactionDetailState;
|
|
391
395
|
transactionListState: TransactionListState;
|
|
392
396
|
transactionVendorViewState: TransactionVendorViewState;
|
|
@@ -538,6 +542,7 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
538
542
|
tagViewState: TagViewState;
|
|
539
543
|
tasksCardState: TasksCardState;
|
|
540
544
|
topExState: TopExState;
|
|
545
|
+
transactionActivityLogViewState: TransactionActivityLogViewState;
|
|
541
546
|
transactionDetailState: TransactionDetailState;
|
|
542
547
|
transactionListState: TransactionListState;
|
|
543
548
|
transactionVendorViewState: TransactionVendorViewState;
|
|
@@ -624,6 +629,7 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
624
629
|
taskSummaryState: TaskSummaryState;
|
|
625
630
|
tenantState: TenantState;
|
|
626
631
|
toastNotificationState: ToastNotificationState;
|
|
632
|
+
transactionActivityLogState: TransactionActivityLogState;
|
|
627
633
|
transactionState: TransactionState;
|
|
628
634
|
userRoleState: UserRoleState;
|
|
629
635
|
userState: UserState;
|
package/lib/reducer.js
CHANGED
|
@@ -95,6 +95,7 @@ const taskSummaryReducer_1 = __importStar(require("./entity/taskSummary/taskSumm
|
|
|
95
95
|
const tenantReducer_1 = __importStar(require("./entity/tenant/tenantReducer"));
|
|
96
96
|
const toastNotificationReducer_1 = __importStar(require("./entity/toastNotification/toastNotificationReducer"));
|
|
97
97
|
const transactionReducer_1 = __importStar(require("./entity/transaction/transactionReducer"));
|
|
98
|
+
const transactionActivityLogReducer_1 = __importStar(require("./entity/transactionActivityLog/transactionActivityLogReducer"));
|
|
98
99
|
const userReducer_1 = __importStar(require("./entity/user/userReducer"));
|
|
99
100
|
const userRoleReducer_1 = __importStar(require("./entity/userRole/userRoleReducer"));
|
|
100
101
|
const vendorReducer_1 = __importStar(require("./entity/vendor/vendorReducer"));
|
|
@@ -229,6 +230,7 @@ const taskGroupViewReducer_1 = __importStar(require("./view/taskManager/taskGrou
|
|
|
229
230
|
const taskListReducer_1 = __importStar(require("./view/taskManager/taskListView/taskListReducer"));
|
|
230
231
|
const tasksCardReducer_1 = __importStar(require("./view/tasksCard/tasksCardReducer"));
|
|
231
232
|
const topExReducer_1 = __importStar(require("./view/topEx/topExReducer"));
|
|
233
|
+
const transactionActivityLogViewReducer_1 = __importStar(require("./view/transactionActivityLogView/transactionActivityLogViewReducer"));
|
|
232
234
|
const transactionDetailReducer_1 = __importStar(require("./view/transactionDetail/transactionDetailReducer"));
|
|
233
235
|
const transactionListReducer_1 = __importStar(require("./view/transactionList/transactionListReducer"));
|
|
234
236
|
const trendReducer_1 = __importStar(require("./view/trend/trendReducer"));
|
|
@@ -305,6 +307,7 @@ const initialEntitiesState = {
|
|
|
305
307
|
taskSummaryState: taskSummaryReducer_1.initialState,
|
|
306
308
|
tenantState: tenantReducer_1.initialState,
|
|
307
309
|
toastNotificationState: toastNotificationReducer_1.initialState,
|
|
310
|
+
transactionActivityLogState: transactionActivityLogReducer_1.initialState,
|
|
308
311
|
transactionState: transactionReducer_1.initialState,
|
|
309
312
|
userRoleState: userRoleReducer_1.initialState,
|
|
310
313
|
userState: userReducer_1.initialState,
|
|
@@ -430,6 +433,7 @@ const initialViewsState = {
|
|
|
430
433
|
taskListState: taskListReducer_1.initialState,
|
|
431
434
|
tasksCardState: tasksCardReducer_1.initialState,
|
|
432
435
|
topExState: topExReducer_1.initialState,
|
|
436
|
+
transactionActivityLogViewState: transactionActivityLogViewReducer_1.initialState,
|
|
433
437
|
transactionDetailState: transactionDetailReducer_1.initialState,
|
|
434
438
|
transactionListState: transactionListReducer_1.initialState,
|
|
435
439
|
transactionVendorViewState: transactionVendorViewReducer_1.initialState,
|
|
@@ -525,6 +529,7 @@ const entityReducers = {
|
|
|
525
529
|
taskSummaryState: taskSummaryReducer_1.default,
|
|
526
530
|
tenantState: tenantReducer_1.default,
|
|
527
531
|
toastNotificationState: toastNotificationReducer_1.default,
|
|
532
|
+
transactionActivityLogState: transactionActivityLogReducer_1.default,
|
|
528
533
|
transactionState: transactionReducer_1.default,
|
|
529
534
|
userRoleState: userRoleReducer_1.default,
|
|
530
535
|
userState: userReducer_1.default,
|
|
@@ -650,6 +655,7 @@ const viewReducers = {
|
|
|
650
655
|
tagViewState: tagViewReducer_1.default,
|
|
651
656
|
tasksCardState: tasksCardReducer_1.default,
|
|
652
657
|
topExState: topExReducer_1.default,
|
|
658
|
+
transactionActivityLogViewState: transactionActivityLogViewReducer_1.default,
|
|
653
659
|
transactionDetailState: transactionDetailReducer_1.default,
|
|
654
660
|
transactionListState: transactionListReducer_1.default,
|
|
655
661
|
transactionVendorViewState: transactionVendorViewReducer_1.default,
|
|
@@ -7,15 +7,14 @@ const timePeriod_1 = require("../../../../commonStateTypes/timePeriod");
|
|
|
7
7
|
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
8
8
|
const transactionsViewReducer_1 = require("../../reducers/transactionsViewReducer");
|
|
9
9
|
const triggerReviewTabRefetchEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(transactionsViewReducer_1.syncTransactionCategorizationFromDetailSave.match), (0, operators_1.mergeMap)((action) => {
|
|
10
|
-
const { pendingReviewLineIds, transactionId, isUncategorizedExpenseCategoryEnabled } = action.payload;
|
|
10
|
+
const { pendingReviewLineIds, transactionId, isUncategorizedExpenseCategoryEnabled, } = action.payload;
|
|
11
11
|
if (pendingReviewLineIds.length === 0) {
|
|
12
12
|
return rxjs_1.EMPTY;
|
|
13
13
|
}
|
|
14
14
|
const state = state$.value;
|
|
15
15
|
// Only trigger when the transaction was auto-only (not in review tab after reducer ran)
|
|
16
16
|
const reviewLocalData = state.expenseAutomationTransactionsViewState
|
|
17
|
-
.transactionCategorizationView.review
|
|
18
|
-
.transactionReviewLocalDataById[transactionId.id];
|
|
17
|
+
.transactionCategorizationView.review.transactionReviewLocalDataById[transactionId.id];
|
|
19
18
|
if (reviewLocalData != null) {
|
|
20
19
|
return rxjs_1.EMPTY;
|
|
21
20
|
}
|
|
@@ -46,8 +46,8 @@ const filterAutoTabLineItems = (tabView, transactionId, updatedTransaction) => {
|
|
|
46
46
|
if (localData == null) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
const currentAutoLineIds = localData.transactionReviewLocalData.tabSpecificLineItems
|
|
50
|
-
|
|
49
|
+
const currentAutoLineIds = localData.transactionReviewLocalData.tabSpecificLineItems.autoCategorized ??
|
|
50
|
+
[];
|
|
51
51
|
const linesById = new Map(updatedTransaction.lines?.map((l) => [l.id, l]));
|
|
52
52
|
const retainedLineIds = currentAutoLineIds.filter((lineId) => {
|
|
53
53
|
const line = linesById.get(lineId);
|
|
@@ -230,11 +230,11 @@ function isCompanyDetailsSavePending(fileState, company, primaryContact, company
|
|
|
230
230
|
}
|
|
231
231
|
const { companyInfo, incInfo, taxInfo, questionaire } = company.company.company;
|
|
232
232
|
const { companyDescription, companyLegalName, companyUrl, phone } = companyInfo;
|
|
233
|
-
const { fileIds, companyIncDate: incDate, companyIncType } = incInfo;
|
|
233
|
+
const { fileIds, companyIncDate: incDate, companyIncState, companyIncType, companySourceOfFunds, companySourceOfFundsDescription, companySubIndustry, countriesOfOperations, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, usNexus, usNexusTypes, } = incInfo;
|
|
234
234
|
const { companyIndustry } = questionaire;
|
|
235
235
|
const { taxId } = taxInfo;
|
|
236
236
|
const companyFileIds = (0, fileSelector_1.getFilesByFileIds)(fileState, fileIds).map((file) => file.fileId);
|
|
237
|
-
const { companyDescription: companyDescriptionLocalData, companyIndustry: companyIndustryLocalData, companyLegalName: companyLegalNameLocalData, taxIdOrEIN: taxIdLocalData, incDate: incDateLocalData, phone: companyPhoneLocalData, website: companyUrlLocalData, companyFiles: companyFilesLocalData, typeOfIncorporation: companyIncTypeLocalData, primaryContactLocalData, } = companyDetailsLocalData;
|
|
237
|
+
const { companyDescription: companyDescriptionLocalData, companyIndustry: companyIndustryLocalData, companyLegalName: companyLegalNameLocalData, taxIdOrEIN: taxIdLocalData, incDate: incDateLocalData, phone: companyPhoneLocalData, website: companyUrlLocalData, companyFiles: companyFilesLocalData, stateOfIncorporation: stateOfIncorporationLocalData, typeOfIncorporation: companyIncTypeLocalData, companySourceOfFunds: companySourceOfFundsLocalData, companySourceOfFundsDescription: companySourceOfFundsDescriptionLocalData, countriesOfOperations: countriesOfOperationsLocalData, companySubIndustry: companySubIndustryLocalData, transactionVolume: transactionVolumeLocalData, transactionVolumeDescription: transactionVolumeDescriptionLocalData, purposeOfAccount: purposeOfAccountLocalData, purposeOfAccountDescription: purposeOfAccountDescriptionLocalData, regulatedStatus: regulatedStatusLocalData, regulatedStatusDescription: regulatedStatusDescriptionLocalData, usNexus: usNexusLocalData, usNexusTypes: usNexusTypesLocalData, primaryContactLocalData, } = companyDetailsLocalData;
|
|
238
238
|
const fileIdsLocalData = companyFilesLocalData.map((file) => file.fileId);
|
|
239
239
|
if (primaryContact != null) {
|
|
240
240
|
const { firstName, lastName, email } = primaryContact;
|
|
@@ -244,6 +244,10 @@ function isCompanyDetailsSavePending(fileState, company, primaryContact, company
|
|
|
244
244
|
return true;
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
+
const countriesOfOperationsMatch = JSON.stringify(countriesOfOperations ?? []) ===
|
|
248
|
+
JSON.stringify(countriesOfOperationsLocalData ?? []);
|
|
249
|
+
const usNexusTypesMatch = JSON.stringify(usNexusTypes ?? []) ===
|
|
250
|
+
JSON.stringify(usNexusTypesLocalData ?? []);
|
|
247
251
|
return (companyDescription != companyDescriptionLocalData ||
|
|
248
252
|
companyIndustry != companyIndustryLocalData ||
|
|
249
253
|
companyLegalName != companyLegalNameLocalData ||
|
|
@@ -251,7 +255,21 @@ function isCompanyDetailsSavePending(fileState, company, primaryContact, company
|
|
|
251
255
|
incDate?.toString() != incDateLocalData?.toString() ||
|
|
252
256
|
phone != companyPhoneLocalData ||
|
|
253
257
|
companyUrl?.toString() != companyUrlLocalData?.toString() ||
|
|
258
|
+
companyIncState != stateOfIncorporationLocalData ||
|
|
259
|
+
companySourceOfFunds != companySourceOfFundsLocalData ||
|
|
260
|
+
companySourceOfFundsDescription !=
|
|
261
|
+
companySourceOfFundsDescriptionLocalData ||
|
|
262
|
+
!countriesOfOperationsMatch ||
|
|
254
263
|
companyIncType != companyIncTypeLocalData ||
|
|
264
|
+
transactionVolume != transactionVolumeLocalData ||
|
|
265
|
+
transactionVolumeDescription != transactionVolumeDescriptionLocalData ||
|
|
266
|
+
purposeOfAccount != purposeOfAccountLocalData ||
|
|
267
|
+
purposeOfAccountDescription != purposeOfAccountDescriptionLocalData ||
|
|
268
|
+
regulatedStatus != regulatedStatusLocalData ||
|
|
269
|
+
regulatedStatusDescription != regulatedStatusDescriptionLocalData ||
|
|
270
|
+
usNexus != usNexusLocalData ||
|
|
271
|
+
!usNexusTypesMatch ||
|
|
272
|
+
companySubIndustry != companySubIndustryLocalData ||
|
|
255
273
|
!(fileIdsLocalData.length === companyFileIds.length &&
|
|
256
274
|
companyFileIds.every((fileId) => fileIdsLocalData.includes(fileId))));
|
|
257
275
|
}
|
package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js
CHANGED
|
@@ -159,7 +159,8 @@ const billPaySetupApproverView = (0, toolkit_1.createSlice)({
|
|
|
159
159
|
reducer(draft, action) {
|
|
160
160
|
const { approvalRuleIds } = action.payload;
|
|
161
161
|
if (draft.billPaySetupApproverViewUpdateData != null) {
|
|
162
|
-
if (draft.billPaySetupApproverViewUpdateData.type ===
|
|
162
|
+
if (draft.billPaySetupApproverViewUpdateData.type ===
|
|
163
|
+
'approval_update' &&
|
|
163
164
|
draft.billPaySetupApproverViewUpdateData.data
|
|
164
165
|
?.isApplicableOnPendingApprovalEntity === true) {
|
|
165
166
|
draft.listeningToPusherEvent = true;
|
|
@@ -5,8 +5,8 @@ const chargeCardRepaymentSelector_1 = require("../../../../entity/chargeCardRepa
|
|
|
5
5
|
const userSelector_1 = require("../../../../entity/user/userSelector");
|
|
6
6
|
const chargeCardPaymentHistoryHelpers_1 = require("./chargeCardPaymentHistoryHelpers");
|
|
7
7
|
const getChargeCardPaymentHistoryDownloadReport = (state) => {
|
|
8
|
-
const { chargeCardPaymentHistoryState, chargeCardRepaymentState, userState
|
|
9
|
-
const { filters, repaymentHistoryIds, searchText, uiState, fetchState, error
|
|
8
|
+
const { chargeCardPaymentHistoryState, chargeCardRepaymentState, userState } = state;
|
|
9
|
+
const { filters, repaymentHistoryIds, searchText, uiState, fetchState, error } = chargeCardPaymentHistoryState;
|
|
10
10
|
const repaymentHistory = (0, chargeCardRepaymentSelector_1.getChargeCardRepaymentByIds)(chargeCardRepaymentState, repaymentHistoryIds);
|
|
11
11
|
const repaymentHistoryUserIds = Array.from(new Set(repaymentHistory.map((r) => r.paidById)));
|
|
12
12
|
const repaymentHistoryUsers = (0, userSelector_1.getUsersByUserIds)(userState, repaymentHistoryUserIds);
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getChargeCardPaymentHistoryView = void 0;
|
|
4
4
|
const reduceFetchState_1 = require("../../../../commonStateTypes/reduceFetchState");
|
|
5
5
|
const chargeCardRepaymentSelector_1 = require("../../../../entity/chargeCardRepayment/chargeCardRepaymentSelector");
|
|
6
|
-
const userSelector_1 = require("../../../../entity/user/userSelector");
|
|
7
|
-
const setupViewSelector_1 = require("../../commonSetup/setupViewSelector");
|
|
8
6
|
const depositAccountSelector_1 = require("../../../../entity/depositAccount/depositAccountSelector");
|
|
9
7
|
const paymentAccountSelector_1 = require("../../../../entity/paymentAccount/paymentAccountSelector");
|
|
8
|
+
const userSelector_1 = require("../../../../entity/user/userSelector");
|
|
9
|
+
const setupViewSelector_1 = require("../../commonSetup/setupViewSelector");
|
|
10
10
|
const depositAccountListSelector_1 = require("../../zeniAccounts/depositAccountList/depositAccountListSelector");
|
|
11
11
|
const paymentAccountListSelector_1 = require("../../zeniAccounts/paymentAccountList/paymentAccountListSelector");
|
|
12
12
|
const chargeCardPaymentHistoryHelpers_1 = require("./chargeCardPaymentHistoryHelpers");
|
|
@@ -18,7 +18,10 @@ const getChargeCardRepaymentDetail = (state) => {
|
|
|
18
18
|
else {
|
|
19
19
|
const depositFundingFromLimit = Object.values(depositAccountState.depositAccountLimitForChargeCardByID ?? {}).map(setupViewSelector_1.mapDepositAccountWithLimitToFundingAccount);
|
|
20
20
|
const paymentFundingAccounts = (0, setupViewSelector_1.getAllFundingAccounts)([], paymentAccountsView.paymentAccounts, paymentAccountListState.paymentAccountBalanceFetchStatus);
|
|
21
|
-
transferFromAccounts = [
|
|
21
|
+
transferFromAccounts = [
|
|
22
|
+
...depositFundingFromLimit,
|
|
23
|
+
...paymentFundingAccounts,
|
|
24
|
+
];
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
const reducedFetchState = (0, reduceFetchState_1.reduceAnyCompletedFetchState)([
|
|
@@ -10,7 +10,8 @@ const fetchChargeCardRepaymentDetailEpic = (actions$, state$) => actions$.pipe((
|
|
|
10
10
|
const fetchChargeCardRepaymentDetailActions = [];
|
|
11
11
|
const state = state$.value;
|
|
12
12
|
const depositAccounts = state.depositAccountListState;
|
|
13
|
-
const willFetchDeposit = depositAccounts.fetchState !== 'In-Progress' &&
|
|
13
|
+
const willFetchDeposit = depositAccounts.fetchState !== 'In-Progress' &&
|
|
14
|
+
depositAccounts.fetchState !== 'Completed';
|
|
14
15
|
if (willFetchDeposit) {
|
|
15
16
|
fetchChargeCardRepaymentDetailActions.push((0, depositAccountListReducer_1.fetchDepositAccountList)());
|
|
16
17
|
}
|
|
@@ -4,8 +4,8 @@ import { updateChargeCardRepayment } from '../../../../entity/chargeCardRepaymen
|
|
|
4
4
|
import { updateCompanyPrimaryAccount, updateEnableAutoPayForChargeCard } from '../../../../entity/company/companyReducer';
|
|
5
5
|
import { RootState } from '../../../../reducer';
|
|
6
6
|
import { ZeniAPI } from '../../../../zeniAPI';
|
|
7
|
-
import { addRepaymentToChargeCardPaymentHistory } from '../chargeCardPaymentHistory/chargeCardPaymentHistoryReducer';
|
|
8
7
|
import { updateCreditAccountRepaymentAmountAndDate } from '../chargeCardList/chargeCardListReducer';
|
|
8
|
+
import { addRepaymentToChargeCardPaymentHistory } from '../chargeCardPaymentHistory/chargeCardPaymentHistoryReducer';
|
|
9
9
|
import { initiateChargeCardRepayment, updateChargeCardRepaymentStatus } from './chargeCardRepaymentDetailReducer';
|
|
10
10
|
export type ActionType = ReturnType<typeof addRepaymentToChargeCardPaymentHistory> | ReturnType<typeof initiateChargeCardRepayment> | ReturnType<typeof updateChargeCardRepayment> | ReturnType<typeof updateCreditAccountRepaymentAmountAndDate> | ReturnType<typeof updateChargeCardRepaymentStatus> | ReturnType<typeof updateCompanyPrimaryAccount> | ReturnType<typeof updateEnableAutoPayForChargeCard>;
|
|
11
11
|
export declare const initiateChargeCardRepaymentEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -12,8 +12,8 @@ const setupViewSelector_1 = require("../../commonSetup/setupViewSelector");
|
|
|
12
12
|
const helpers_1 = require("../../helpers");
|
|
13
13
|
const depositAccountListSelector_1 = require("../../zeniAccounts/depositAccountList/depositAccountListSelector");
|
|
14
14
|
const paymentAccountListSelector_1 = require("../../zeniAccounts/paymentAccountList/paymentAccountListSelector");
|
|
15
|
-
const chargeCardPaymentHistoryReducer_1 = require("../chargeCardPaymentHistory/chargeCardPaymentHistoryReducer");
|
|
16
15
|
const chargeCardListReducer_1 = require("../chargeCardList/chargeCardListReducer");
|
|
16
|
+
const chargeCardPaymentHistoryReducer_1 = require("../chargeCardPaymentHistory/chargeCardPaymentHistoryReducer");
|
|
17
17
|
const chargeCardRepaymentDetailReducer_1 = require("./chargeCardRepaymentDetailReducer");
|
|
18
18
|
const initiateChargeCardRepaymentEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(chargeCardRepaymentDetailReducer_1.initiateChargeCardRepayment.match), (0, operators_1.switchMap)((action) => {
|
|
19
19
|
const state = state$.value;
|
package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js
CHANGED
|
@@ -122,8 +122,28 @@ const updateBusinessVerificationDetailsEpic = (actions$, state$, zeniAPI) => act
|
|
|
122
122
|
}
|
|
123
123
|
}));
|
|
124
124
|
exports.updateBusinessVerificationDetailsEpic = updateBusinessVerificationDetailsEpic;
|
|
125
|
+
/** US Nexus API keys. Form may submit these or display labels; we send keys to API. */
|
|
126
|
+
const US_NEXUS_KEYS = new Set([
|
|
127
|
+
'employees',
|
|
128
|
+
'customers',
|
|
129
|
+
'physical_office',
|
|
130
|
+
'banking_relationships',
|
|
131
|
+
]);
|
|
132
|
+
/** Maps display label → API key for US nexus types (English labels from strings). */
|
|
133
|
+
const US_NEXUS_LABEL_TO_KEY = {
|
|
134
|
+
Employees: 'employees',
|
|
135
|
+
Customers: 'customers',
|
|
136
|
+
'Physical office or facility': 'physical_office',
|
|
137
|
+
'Banking relationships': 'banking_relationships',
|
|
138
|
+
};
|
|
139
|
+
function toUsNexusTypeKey(value) {
|
|
140
|
+
if (US_NEXUS_KEYS.has(value)) {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
return US_NEXUS_LABEL_TO_KEY[value] ?? value;
|
|
144
|
+
}
|
|
125
145
|
const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendForVerification, companyAddressData, registeredAddressData, setupViewType) => {
|
|
126
|
-
const { companyDescription, companyLegalName, companyIndustry, website, incDate, taxIdOrEIN, phone, syncToken, fileIds, typeOfIncorporation, sourceOfFunds, } = companyLocalData;
|
|
146
|
+
const { companyDescription, companyLegalName, companyIndustry, companySubIndustry, countriesOfOperations, companySourceOfFunds, companySourceOfFundsDescription, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, usNexus, usNexusTypes, website, incDate, taxIdOrEIN, phone, syncToken, fileIds, typeOfIncorporation, stateOfIncorporation, sourceOfFunds, } = companyLocalData;
|
|
127
147
|
const company = {
|
|
128
148
|
is_ready_for_verification: sendForVerification,
|
|
129
149
|
file_ids: fileIds,
|
|
@@ -174,9 +194,52 @@ const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendForVerif
|
|
|
174
194
|
if (typeOfIncorporation != null) {
|
|
175
195
|
company['company_inc_type'] = typeOfIncorporation;
|
|
176
196
|
}
|
|
197
|
+
if (stateOfIncorporation != null) {
|
|
198
|
+
company['company_inc_state'] = stateOfIncorporation;
|
|
199
|
+
}
|
|
177
200
|
if (companyIndustry != null) {
|
|
178
201
|
company['company_industry'] = companyIndustry;
|
|
179
202
|
}
|
|
203
|
+
Object.assign(company, {
|
|
204
|
+
...(companySubIndustry != null && {
|
|
205
|
+
company_industry_sub_type: companySubIndustry,
|
|
206
|
+
}),
|
|
207
|
+
...(countriesOfOperations != null &&
|
|
208
|
+
countriesOfOperations.length > 0 && {
|
|
209
|
+
company_countries_of_operations: countriesOfOperations,
|
|
210
|
+
}),
|
|
211
|
+
...(companySourceOfFunds != null && {
|
|
212
|
+
company_source_of_funds: companySourceOfFunds,
|
|
213
|
+
}),
|
|
214
|
+
...(companySourceOfFundsDescription != null && {
|
|
215
|
+
company_source_of_funds_desc: companySourceOfFundsDescription,
|
|
216
|
+
}),
|
|
217
|
+
...(transactionVolume != null && {
|
|
218
|
+
company_transaction_vol_expectations: transactionVolume,
|
|
219
|
+
}),
|
|
220
|
+
...(transactionVolumeDescription != null && {
|
|
221
|
+
company_transaction_vol_expectations_desc: transactionVolumeDescription,
|
|
222
|
+
}),
|
|
223
|
+
...(purposeOfAccount != null && {
|
|
224
|
+
company_purpose_of_account: purposeOfAccount,
|
|
225
|
+
}),
|
|
226
|
+
...(purposeOfAccountDescription != null && {
|
|
227
|
+
company_purpose_of_account_desc: purposeOfAccountDescription,
|
|
228
|
+
}),
|
|
229
|
+
...(regulatedStatus != null && {
|
|
230
|
+
company_regulated_states: regulatedStatus === 'yes',
|
|
231
|
+
}),
|
|
232
|
+
...(regulatedStatusDescription != null && {
|
|
233
|
+
company_regulated_states_desc: regulatedStatusDescription,
|
|
234
|
+
}),
|
|
235
|
+
...(usNexus != null && {
|
|
236
|
+
company_us_nexus: usNexus === 'yes',
|
|
237
|
+
}),
|
|
238
|
+
...(usNexusTypes != null &&
|
|
239
|
+
usNexusTypes.length > 0 && {
|
|
240
|
+
company_us_nexus_desc: usNexusTypes.map(toUsNexusTypeKey),
|
|
241
|
+
}),
|
|
242
|
+
});
|
|
180
243
|
if (setupViewType === 'zeni_treasury' && sourceOfFunds != null) {
|
|
181
244
|
company['source_of_funds'] = sourceOfFunds;
|
|
182
245
|
}
|
package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js
CHANGED
|
@@ -53,7 +53,7 @@ function toSetupViewLocalData(company, users, userRoles, primaryContact) {
|
|
|
53
53
|
const { companyInfo, incInfo, taxInfo, questionaire, companyBillPayInfo } = company;
|
|
54
54
|
const { companyId, companyDescription, companyLegalName, companyUrl, phone, syncToken, sourceOfFunds, } = companyInfo;
|
|
55
55
|
const { usersSelectedForVerification: usersSelected } = companyBillPayInfo;
|
|
56
|
-
const { fileIds, companyIncDate: incDate, companyIncType } = incInfo;
|
|
56
|
+
const { fileIds, companyIncDate: incDate, companyIncType, companyIncState, companySubIndustry, countriesOfOperations, companySourceOfFunds: incCompanySourceOfFunds, companySourceOfFundsDescription, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, usNexus, usNexusTypes, } = incInfo;
|
|
57
57
|
const { companyIndustry } = questionaire;
|
|
58
58
|
const { taxId } = taxInfo;
|
|
59
59
|
const companyDetails = {
|
|
@@ -61,6 +61,10 @@ function toSetupViewLocalData(company, users, userRoles, primaryContact) {
|
|
|
61
61
|
companyDescription,
|
|
62
62
|
companyIndustry,
|
|
63
63
|
companyLegalName,
|
|
64
|
+
companySubIndustry,
|
|
65
|
+
companySourceOfFunds: incCompanySourceOfFunds,
|
|
66
|
+
companySourceOfFundsDescription,
|
|
67
|
+
countriesOfOperations,
|
|
64
68
|
taxIdOrEIN: taxId,
|
|
65
69
|
incDate,
|
|
66
70
|
phone,
|
|
@@ -69,6 +73,15 @@ function toSetupViewLocalData(company, users, userRoles, primaryContact) {
|
|
|
69
73
|
syncToken,
|
|
70
74
|
typeOfIncorporation: companyIncType,
|
|
71
75
|
sourceOfFunds,
|
|
76
|
+
stateOfIncorporation: companyIncState,
|
|
77
|
+
transactionVolume,
|
|
78
|
+
transactionVolumeDescription,
|
|
79
|
+
purposeOfAccount,
|
|
80
|
+
purposeOfAccountDescription,
|
|
81
|
+
regulatedStatus,
|
|
82
|
+
regulatedStatusDescription,
|
|
83
|
+
usNexus,
|
|
84
|
+
usNexusTypes,
|
|
72
85
|
};
|
|
73
86
|
let primaryContactDetails = undefined;
|
|
74
87
|
if (primaryContact != null) {
|
|
@@ -70,14 +70,27 @@ export interface CompanyDetails {
|
|
|
70
70
|
companyDescription?: string;
|
|
71
71
|
companyIndustry?: string;
|
|
72
72
|
companyLegalName?: string;
|
|
73
|
+
companySourceOfFunds?: string;
|
|
74
|
+
companySourceOfFundsDescription?: string;
|
|
75
|
+
companySubIndustry?: string;
|
|
76
|
+
countriesOfOperations?: string[];
|
|
73
77
|
incDate?: ZeniDate;
|
|
74
78
|
phone?: string;
|
|
75
79
|
primaryContactLocalData?: PrimaryContactLocalData;
|
|
80
|
+
purposeOfAccount?: string;
|
|
81
|
+
purposeOfAccountDescription?: string;
|
|
76
82
|
registeredAddressStatus?: NewAddressData;
|
|
83
|
+
regulatedStatus?: string;
|
|
84
|
+
regulatedStatusDescription?: string;
|
|
77
85
|
sourceOfFunds?: string;
|
|
86
|
+
stateOfIncorporation?: string;
|
|
78
87
|
syncToken?: string;
|
|
79
88
|
taxIdOrEIN?: string;
|
|
89
|
+
transactionVolume?: string;
|
|
90
|
+
transactionVolumeDescription?: string;
|
|
80
91
|
typeOfIncorporation?: string;
|
|
92
|
+
usNexus?: string;
|
|
93
|
+
usNexusTypes?: string[];
|
|
81
94
|
website?: ZeniUrl;
|
|
82
95
|
}
|
|
83
96
|
interface CompanyAndOfficerLocalData {
|
|
@@ -114,7 +114,7 @@ const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentityDetail
|
|
|
114
114
|
if (companyDetails.localData != null) {
|
|
115
115
|
const deleteFileStatusById = {};
|
|
116
116
|
const updateFileStatusById = {};
|
|
117
|
-
const { syncToken, companyDescription, companyLegalName, website, companyIndustry, phone, taxIdOrEIN, incDate, fileIds, typeOfIncorporation, sourceOfFunds, } = companyDetails.localData;
|
|
117
|
+
const { syncToken, companyDescription, companyLegalName, website, companyIndustry, companySubIndustry, companySourceOfFunds, companySourceOfFundsDescription, countriesOfOperations, phone, taxIdOrEIN, incDate, fileIds, typeOfIncorporation, sourceOfFunds, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, stateOfIncorporation, usNexus, usNexusTypes, } = companyDetails.localData;
|
|
118
118
|
fileIds.forEach((fileId) => {
|
|
119
119
|
deleteFileStatusById[fileId] = (0, fileViewSelector_1.getFileDeleteStatusById)(state, fileId);
|
|
120
120
|
});
|
|
@@ -128,6 +128,10 @@ const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentityDetail
|
|
|
128
128
|
companyDescription,
|
|
129
129
|
companyLegalName,
|
|
130
130
|
companyIndustry,
|
|
131
|
+
companySubIndustry,
|
|
132
|
+
companySourceOfFunds,
|
|
133
|
+
companySourceOfFundsDescription,
|
|
134
|
+
countriesOfOperations,
|
|
131
135
|
website,
|
|
132
136
|
phone,
|
|
133
137
|
taxIdOrEIN,
|
|
@@ -141,6 +145,15 @@ const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentityDetail
|
|
|
141
145
|
primaryContactLocalData,
|
|
142
146
|
typeOfIncorporation,
|
|
143
147
|
sourceOfFunds,
|
|
148
|
+
transactionVolume,
|
|
149
|
+
transactionVolumeDescription,
|
|
150
|
+
purposeOfAccount,
|
|
151
|
+
purposeOfAccountDescription,
|
|
152
|
+
regulatedStatus,
|
|
153
|
+
regulatedStatusDescription,
|
|
154
|
+
stateOfIncorporation,
|
|
155
|
+
usNexus,
|
|
156
|
+
usNexusTypes,
|
|
144
157
|
};
|
|
145
158
|
}
|
|
146
159
|
const companyOfficerLocalData = {
|
|
@@ -17,12 +17,25 @@ export interface CompanyDetailsLocalData {
|
|
|
17
17
|
companyDescription?: string;
|
|
18
18
|
companyIndustry?: string;
|
|
19
19
|
companyLegalName?: string;
|
|
20
|
+
companySourceOfFunds?: string;
|
|
21
|
+
companySourceOfFundsDescription?: string;
|
|
22
|
+
companySubIndustry?: string;
|
|
23
|
+
countriesOfOperations?: string[];
|
|
20
24
|
incDate?: ZeniDate;
|
|
21
25
|
phone?: string;
|
|
26
|
+
purposeOfAccount?: string;
|
|
27
|
+
purposeOfAccountDescription?: string;
|
|
28
|
+
regulatedStatus?: string;
|
|
29
|
+
regulatedStatusDescription?: string;
|
|
22
30
|
sourceOfFunds?: string;
|
|
31
|
+
stateOfIncorporation?: string;
|
|
23
32
|
syncToken?: string;
|
|
24
33
|
taxIdOrEIN?: string;
|
|
34
|
+
transactionVolume?: string;
|
|
35
|
+
transactionVolumeDescription?: string;
|
|
25
36
|
typeOfIncorporation?: string;
|
|
37
|
+
usNexus?: string;
|
|
38
|
+
usNexusTypes?: string[];
|
|
26
39
|
website?: ZeniUrl;
|
|
27
40
|
}
|
|
28
41
|
export interface PrimaryContactLocalData {
|