@zeniai/client-epic-state 5.0.44-betaRD3 → 5.0.45
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/commonStateTypes/recommendationBase.d.ts +1 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/chargeCardRepayment/chargeCardRepayment.d.ts +1 -1
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/project/projectPayload.d.ts +0 -7
- package/lib/entity/project/projectPayload.js +1 -15
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/sectionProjectView/sectionProjectView.d.ts +1 -1
- package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -3
- package/lib/entity/tenant/clearAllEpic.d.ts +3 -6
- package/lib/entity/tenant/clearAllEpic.js +2 -8
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.d.ts +0 -2
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +0 -9
- package/lib/entity/transaction/stateTypes/transactionLine.d.ts +0 -2
- package/lib/epic.d.ts +1 -10
- package/lib/epic.js +1 -10
- package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
- package/lib/esm/entity/project/projectPayload.js +0 -12
- package/lib/esm/entity/snackbar/snackbarTypes.js +0 -3
- package/lib/esm/entity/tenant/clearAllEpic.js +2 -8
- package/lib/esm/entity/transaction/payloadTypes/transactionLinePayload.js +0 -9
- package/lib/esm/epic.js +1 -10
- package/lib/esm/index.js +10 -19
- package/lib/esm/reducer.js +3 -12
- package/lib/esm/view/transactionDetail/epics/saveTransactionHelper.js +0 -1
- package/lib/esm/view/transactionDetail/epics/transactionDetailEpic.js +0 -6
- package/lib/esm/view/transactionDetail/epics/updateTransactionDetailEpic.js +0 -3
- package/lib/esm/view/transactionDetail/transactionDetailSelector.js +2 -14
- package/lib/esm/view/transactionList/transactionListReducer.js +2 -83
- package/lib/esm/view/transactionList/transactionListState.js +0 -10
- package/lib/index.d.ts +14 -25
- package/lib/index.js +46 -86
- package/lib/reducer.d.ts +3 -12
- package/lib/reducer.js +3 -12
- package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
- package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/transactionDetail/epics/saveTransactionHelper.js +0 -1
- package/lib/view/transactionDetail/epics/transactionDetailEpic.d.ts +1 -2
- package/lib/view/transactionDetail/epics/transactionDetailEpic.js +0 -6
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +0 -3
- package/lib/view/transactionDetail/transactionDetailSelector.d.ts +0 -3
- package/lib/view/transactionDetail/transactionDetailSelector.js +1 -13
- package/lib/view/transactionDetail/transactionDetailState.d.ts +0 -2
- package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -2
- package/lib/view/transactionList/transactionListPayload.d.ts +0 -15
- package/lib/view/transactionList/transactionListReducer.d.ts +2 -25
- package/lib/view/transactionList/transactionListReducer.js +2 -83
- package/lib/view/transactionList/transactionListState.d.ts +0 -15
- package/lib/view/transactionList/transactionListState.js +1 -13
- package/package.json +1 -1
- package/lib/entity/creditAgent/creditAgentPayload.d.ts +0 -41
- package/lib/entity/creditAgent/creditAgentPayload.js +0 -40
- package/lib/entity/creditAgent/creditAgentReducer.d.ts +0 -9
- package/lib/entity/creditAgent/creditAgentReducer.js +0 -37
- package/lib/entity/creditAgent/creditAgentSelector.d.ts +0 -3
- package/lib/entity/creditAgent/creditAgentSelector.js +0 -10
- package/lib/entity/creditAgent/creditAgentState.d.ts +0 -39
- package/lib/entity/creditAgent/creditAgentState.js +0 -17
- package/lib/esm/entity/creditAgent/creditAgentPayload.js +0 -36
- package/lib/esm/entity/creditAgent/creditAgentReducer.js +0 -33
- package/lib/esm/entity/creditAgent/creditAgentSelector.js +0 -6
- package/lib/esm/entity/creditAgent/creditAgentState.js +0 -13
- package/lib/esm/view/creditAgentView/buildCreditReportCsv.js +0 -44
- package/lib/esm/view/creditAgentView/creditAgentViewPayload.js +0 -2
- package/lib/esm/view/creditAgentView/creditAgentViewReducer.js +0 -183
- package/lib/esm/view/creditAgentView/creditAgentViewSelector.js +0 -85
- package/lib/esm/view/creditAgentView/creditAgentViewState.js +0 -20
- package/lib/esm/view/creditAgentView/epics/fetchCardProfilesEpic.js +0 -20
- package/lib/esm/view/creditAgentView/epics/fetchCreditAgentAccessEpic.js +0 -13
- package/lib/esm/view/creditAgentView/epics/fetchCreditAgentMacroEpic.js +0 -19
- package/lib/esm/view/creditAgentView/epics/saveCreditAgentMacroEpic.js +0 -58
- package/lib/esm/view/creditAgentView/epics/scheduleTenantCreditScoreCronEpic.js +0 -39
- package/lib/esm/view/creditAgentView/epics/updateCardProfileEpic.js +0 -62
- package/lib/esm/view/projectList/fetchProjectListEpic.js +0 -38
- package/lib/esm/view/projectList/projectListPayload.js +0 -1
- package/lib/esm/view/projectList/projectListReducer.js +0 -39
- package/lib/esm/view/projectList/projectListSelector.js +0 -9
- package/lib/esm/view/projectList/projectListState.js +0 -1
- package/lib/esm/view/transactionList/fetchTransactionListByProjectEpic.js +0 -45
- package/lib/esm/view/transactionList/parallelFetchProjectTransactionListEpic.js +0 -32
- package/lib/esm/view/transactionList/transactionListByProjectSelector.js +0 -58
- package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
- package/lib/view/creditAgentView/buildCreditReportCsv.d.ts +0 -17
- package/lib/view/creditAgentView/buildCreditReportCsv.js +0 -47
- package/lib/view/creditAgentView/creditAgentViewPayload.d.ts +0 -9
- package/lib/view/creditAgentView/creditAgentViewPayload.js +0 -7
- package/lib/view/creditAgentView/creditAgentViewReducer.d.ts +0 -41
- package/lib/view/creditAgentView/creditAgentViewReducer.js +0 -187
- package/lib/view/creditAgentView/creditAgentViewSelector.d.ts +0 -20
- package/lib/view/creditAgentView/creditAgentViewSelector.js +0 -93
- package/lib/view/creditAgentView/creditAgentViewState.d.ts +0 -34
- package/lib/view/creditAgentView/creditAgentViewState.js +0 -22
- package/lib/view/creditAgentView/epics/fetchCardProfilesEpic.d.ts +0 -15
- package/lib/view/creditAgentView/epics/fetchCardProfilesEpic.js +0 -24
- package/lib/view/creditAgentView/epics/fetchCreditAgentAccessEpic.d.ts +0 -11
- package/lib/view/creditAgentView/epics/fetchCreditAgentAccessEpic.js +0 -17
- package/lib/view/creditAgentView/epics/fetchCreditAgentMacroEpic.d.ts +0 -15
- package/lib/view/creditAgentView/epics/fetchCreditAgentMacroEpic.js +0 -23
- package/lib/view/creditAgentView/epics/saveCreditAgentMacroEpic.d.ts +0 -29
- package/lib/view/creditAgentView/epics/saveCreditAgentMacroEpic.js +0 -62
- package/lib/view/creditAgentView/epics/scheduleTenantCreditScoreCronEpic.d.ts +0 -30
- package/lib/view/creditAgentView/epics/scheduleTenantCreditScoreCronEpic.js +0 -43
- package/lib/view/creditAgentView/epics/updateCardProfileEpic.d.ts +0 -37
- package/lib/view/creditAgentView/epics/updateCardProfileEpic.js +0 -66
- package/lib/view/projectList/fetchProjectListEpic.d.ts +0 -8
- package/lib/view/projectList/fetchProjectListEpic.js +0 -42
- package/lib/view/projectList/projectListPayload.d.ts +0 -7
- package/lib/view/projectList/projectListPayload.js +0 -2
- package/lib/view/projectList/projectListReducer.d.ts +0 -9
- package/lib/view/projectList/projectListReducer.js +0 -43
- package/lib/view/projectList/projectListSelector.d.ts +0 -8
- package/lib/view/projectList/projectListSelector.js +0 -13
- package/lib/view/projectList/projectListState.d.ts +0 -4
- package/lib/view/projectList/projectListState.js +0 -2
- package/lib/view/transactionList/fetchTransactionListByProjectEpic.d.ts +0 -8
- package/lib/view/transactionList/fetchTransactionListByProjectEpic.js +0 -52
- package/lib/view/transactionList/parallelFetchProjectTransactionListEpic.d.ts +0 -6
- package/lib/view/transactionList/parallelFetchProjectTransactionListEpic.js +0 -36
- package/lib/view/transactionList/transactionListByProjectSelector.d.ts +0 -22
- package/lib/view/transactionList/transactionListByProjectSelector.js +0 -66
package/lib/esm/reducer.js
CHANGED
|
@@ -3,8 +3,6 @@ import account, { initialState as initialAccountState, } from './entity/account/
|
|
|
3
3
|
import accountGroup, { initialState as initialAccountGroupState, } from './entity/accountGroup/accountGroupReducer';
|
|
4
4
|
import accountRecon, { initialState as initialAccountReconState, } from './entity/accountRecon/accountReconReducer';
|
|
5
5
|
import address, { initialState as initialAddressState, } from './entity/address/addressReducer';
|
|
6
|
-
import aiAccountantCustomer, { initialAiAccountantCustomerState, } from './entity/aiAccountantCustomer/aiAccountantCustomerReducer';
|
|
7
|
-
import creditAgentEntity, { initialCreditAgentEntityState, } from './entity/creditAgent/creditAgentReducer';
|
|
8
6
|
import aiCfo, { initialAiCfoState } from './entity/aiCfo/aiCfoReducer';
|
|
9
7
|
import approvalRule, { initialState as initialApprovalRuleState, } from './entity/approvalRule/approvalRuleReducer';
|
|
10
8
|
import bankAccount, { initialState as initialBankAccountState, } from './entity/bankAccount/bankAccountReducer';
|
|
@@ -16,6 +14,7 @@ import chargeCard, { initialState as initialChargeCardState, } from './entity/ch
|
|
|
16
14
|
import chargeCardRepayment, { initialState as initialChargeCardRepaymentState, } from './entity/chargeCardRepayment/chargeCardRepaymentReducer';
|
|
17
15
|
import chargeCardTransaction, { initialState as initialChargeCardTransactionState, } from './entity/chargeCardTransaction/chargeCardTransactionReducer';
|
|
18
16
|
import classes, { initialState as initialClassState, } from './entity/class/classReducer';
|
|
17
|
+
import project, { initialState as initialProjectState, } from './entity/project/projectReducer';
|
|
19
18
|
import company, { initialState as initialCompanyState, } from './entity/company/companyReducer';
|
|
20
19
|
import companyHealthMetric, { initialState as initialCompanyHealthMetricState, } from './entity/companyHealthMetric/companyHealthMetricReducer';
|
|
21
20
|
import connectedAccount, { initialState as initialConnectedAccountState, } from './entity/connectedAccount/connectedAccountReducer';
|
|
@@ -40,7 +39,6 @@ import onboardingCustomer, { initialState as initialOnboardingCustomerState, } f
|
|
|
40
39
|
import paymentAccount, { initialState as initialPaymentAccountState, } from './entity/paymentAccount/paymentAccountReducer';
|
|
41
40
|
import paymentInstrument, { initialState as initialPaymentInstrumentState, } from './entity/paymentInstrument/paymentInstrumentReducer';
|
|
42
41
|
import accountingSummary, { initialState as initialAccountingSummaryState, } from './entity/portfolio/accountingSummary/accountingSummaryReducer';
|
|
43
|
-
import project, { initialState as initialProjectState, } from './entity/project/projectReducer';
|
|
44
42
|
import reimbursement, { initialState as initialReimbursementState, } from './entity/reimbursement/reimbursementReducer';
|
|
45
43
|
import sectionAccountsView, { initialState as initialSectionAccountsViewState, } from './entity/sectionAccountsView/sectionAccountsViewReducer';
|
|
46
44
|
import sectionClassesViewV2, { initialState as initialSectionClassesViewStateV2, } from './entity/sectionClassesViewV2/sectionClassesViewReducer';
|
|
@@ -69,9 +67,10 @@ import vendorExpense, { initialState as initialVendorExpenseState, } from './ent
|
|
|
69
67
|
import accountList, { initialState as initialAccountListState, } from './view/accountList/accountListReducer';
|
|
70
68
|
import accountMapping, { initialState as initialAccountMappingState, } from './view/accountMappingView/accountMappingReducer';
|
|
71
69
|
import addressView, { initialState as initialAddressViewState, } from './view/addressView/addressViewReducer';
|
|
72
|
-
import aiAccountantView, { initialAiAccountantViewState, } from './view/aiAccountantView/aiAccountantViewReducer';
|
|
73
70
|
import aggregatedReport, { initialState as initialAggregatedReportViewState, } from './view/aiAgentPerformance/aggregatedReportViewReducer';
|
|
74
71
|
import aiCfoView, { initialAiCfoViewState, } from './view/aiCfoView/aiCfoViewReducer';
|
|
72
|
+
import aiAccountantCustomer, { initialAiAccountantCustomerState, } from './entity/aiAccountantCustomer/aiAccountantCustomerReducer';
|
|
73
|
+
import aiAccountantView, { initialAiAccountantViewState, } from './view/aiAccountantView/aiAccountantViewReducer';
|
|
75
74
|
import apAgingDetail, { initialState as initialApAgingDetailState, } from './view/apAgingView/apAgingDetail/apAgingDetailReducer';
|
|
76
75
|
import apAging, { initialState as initialApAgingState, } from './view/apAgingView/apAgingReport/apAgingReducer';
|
|
77
76
|
import arAgingDetail, { initialState as initialArAgingDetailState, } from './view/arAgingView/arAgingDetail/arAgingDetailReducer';
|
|
@@ -98,7 +97,6 @@ import companyHealthMetricView, { initialState as initialCompanyHealthMetricView
|
|
|
98
97
|
import companyMonthEndReportView, { initialState as initialCompanyMonthEndReportViewState, } from './view/companyMonthEndReportView/companyMonthEndReportViewReducer';
|
|
99
98
|
import companyTaskManagerView, { initialState as initialCompanyTaskManagerViewState, } from './view/companyTaskManagerView/companyTaskManagerViewReducer';
|
|
100
99
|
import companyView, { initialState as initialCompanyViewState, } from './view/companyView/companyViewReducer';
|
|
101
|
-
import creditAgentView, { initialState as initialCreditAgentViewState, } from './view/creditAgentView/creditAgentViewReducer';
|
|
102
100
|
import dashboard, { initialState as initialDashboardState, } from './view/dashboard/dashboardReducer';
|
|
103
101
|
import dashboardLayout, { initialState as initialDashboardLayoutState, } from './view/dashboardLayout/dashboardLayoutReducer';
|
|
104
102
|
import expenseAutomationView, { initialState as initialExpenseAutomationViewState, } from './view/expenseAutomationView/expenseAutomationViewReducer';
|
|
@@ -130,7 +128,6 @@ import people, { initialState as initialPeopleState, } from './view/people/peopl
|
|
|
130
128
|
import profitAndLoss, { initialState as initialProfitAndLossState, } from './view/profitAndLoss/profitAndLossReducer';
|
|
131
129
|
import profitAndLossClassesView, { initialState as initialProfitAndLossClassesViewState, } from './view/profitAndLossClassesView/profitAndLossClassesViewReducer';
|
|
132
130
|
import profitAndLossProjectView, { initialState as initialProfitAndLossProjectViewState, } from './view/profitAndLossProjectView/profitAndLossProjectViewReducer';
|
|
133
|
-
import projectList, { initialState as initialProjectListState, } from './view/projectList/projectListReducer';
|
|
134
131
|
import recommendation, { initialState as initialEntityRecommendationState, } from './view/recommendation/recommendationReducer';
|
|
135
132
|
import referralView, { initialState as initialReferralViewState, } from './view/referralView/referralReducer';
|
|
136
133
|
import reimbursementCard, { initialState as initialReimbursementCardState, } from './view/reimbursementCard/reimbursementCardReducer';
|
|
@@ -344,8 +341,6 @@ const initialViewsState = {
|
|
|
344
341
|
companyTaskManagerViewState: initialCompanyTaskManagerViewState,
|
|
345
342
|
companyViewState: initialCompanyViewState,
|
|
346
343
|
countryListState: initialCountryListState,
|
|
347
|
-
creditAgentEntityState: initialCreditAgentEntityState,
|
|
348
|
-
creditAgentViewState: initialCreditAgentViewState,
|
|
349
344
|
dashboardLayoutState: initialDashboardLayoutState,
|
|
350
345
|
dashboardState: initialDashboardState,
|
|
351
346
|
depositAccountListState: initialDepositAccountListState,
|
|
@@ -391,7 +386,6 @@ const initialViewsState = {
|
|
|
391
386
|
profitAndLossClassesViewState: initialProfitAndLossClassesViewState,
|
|
392
387
|
profitAndLossProjectViewState: initialProfitAndLossProjectViewState,
|
|
393
388
|
profitAndLossState: initialProfitAndLossState,
|
|
394
|
-
projectListState: initialProjectListState,
|
|
395
389
|
realTimeApprovalState: initialRealTimeApprovalState,
|
|
396
390
|
referralViewState: initialReferralViewState,
|
|
397
391
|
reimbursementCardState: initialReimbursementCardState,
|
|
@@ -579,8 +573,6 @@ const viewReducers = {
|
|
|
579
573
|
companyTaskManagerViewState: companyTaskManagerView,
|
|
580
574
|
companyViewState: companyView,
|
|
581
575
|
countryListState: countryList,
|
|
582
|
-
creditAgentEntityState: creditAgentEntity,
|
|
583
|
-
creditAgentViewState: creditAgentView,
|
|
584
576
|
dashboardState: dashboard,
|
|
585
577
|
dashboardLayoutState: dashboardLayout,
|
|
586
578
|
depositAccountListState: depositAccountList,
|
|
@@ -627,7 +619,6 @@ const viewReducers = {
|
|
|
627
619
|
profitAndLossClassesViewState: profitAndLossClassesView,
|
|
628
620
|
profitAndLossProjectViewState: profitAndLossProjectView,
|
|
629
621
|
profitAndLossState: profitAndLoss,
|
|
630
|
-
projectListState: projectList,
|
|
631
622
|
realTimeApprovalState: realTimeApproval,
|
|
632
623
|
referralViewState: referralView,
|
|
633
624
|
reimbursementCardState: reimbursementCard,
|
|
@@ -51,7 +51,6 @@ export const toTransactionUpdatesFromTransactionDetailLocalData = (transactionDe
|
|
|
51
51
|
lineDescription: lineItem.lineDescription,
|
|
52
52
|
class: lineItem.class,
|
|
53
53
|
account: lineItem.account,
|
|
54
|
-
project: lineItem.project,
|
|
55
54
|
recommendation: convertCOTRecommendationsToRegular(lineItem.recommendationsWithCOT),
|
|
56
55
|
};
|
|
57
56
|
if (line.type === 'journal_entry_transaction_line' ||
|
|
@@ -14,7 +14,6 @@ import { fetchClassList } from '../../classList/classListReducer';
|
|
|
14
14
|
import { getInitializedTransactionVendorLocalData } from '../../commonVendorView/transactionVendorView/transactionVendorLocalDataHelper';
|
|
15
15
|
import { updateTransactionVendorLocalData } from '../../commonVendorView/transactionVendorView/transactionVendorViewReducer';
|
|
16
16
|
import { fetchOwnerList } from '../../ownerList/ownerListReducer';
|
|
17
|
-
import { fetchProjectList } from '../../projectList/projectListReducer';
|
|
18
17
|
import { fetchTransactionDetail, initializeTransactionDetailLocalData, removeTransactionDetail, updateTransactionDetailFetchState, } from '../transactionDetailReducer';
|
|
19
18
|
import { getAllLinkedTransactions, getTransactionDetailKey, } from '../transactionDetailState';
|
|
20
19
|
export const fetchTransactionDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(fetchTransactionDetail.match), mergeMap((action) => {
|
|
@@ -40,11 +39,6 @@ export const fetchTransactionDetailEpic = (actions$, state$, zeniAPI) => actions
|
|
|
40
39
|
classList.fetchState !== 'In-Progress') {
|
|
41
40
|
transactionActions.push(fetchClassList());
|
|
42
41
|
}
|
|
43
|
-
const projectList = state$.value.projectListState;
|
|
44
|
-
if (projectList.hasValidState() === false &&
|
|
45
|
-
projectList.fetchState !== 'In-Progress') {
|
|
46
|
-
transactionActions.push(fetchProjectList());
|
|
47
|
-
}
|
|
48
42
|
transactionActions.push(updateTransactionDetailFetchState(transactionId, 'In-Progress'));
|
|
49
43
|
const query = { transaction_type: transactionId.type };
|
|
50
44
|
const getTransactionDetail$ = zeniAPI
|
|
@@ -181,9 +181,6 @@ const toTransactionUpdatePayload = (updates, detail, cotTransactionTracking, ven
|
|
|
181
181
|
if (lineUpdates.account != null) {
|
|
182
182
|
lineTobeUpdated.account = lineUpdates.account;
|
|
183
183
|
}
|
|
184
|
-
if (lineUpdates.project != null) {
|
|
185
|
-
lineTobeUpdated.project = lineUpdates.project;
|
|
186
|
-
}
|
|
187
184
|
if (lineUpdates.customer != null) {
|
|
188
185
|
lineTobeUpdated.customer = lineUpdates.customer;
|
|
189
186
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import recordGet from 'lodash/get';
|
|
2
2
|
import { reduceFetchState } from '../../commonStateTypes/reduceFetchState';
|
|
3
|
-
import { getIsAccountingClassesEnabled
|
|
3
|
+
import { getIsAccountingClassesEnabled } from '../../entity/tenant/tenantSelector';
|
|
4
4
|
import { toTransactionTypeStrict } from '../../entity/transaction/stateTypes/transactionType';
|
|
5
5
|
import { getTransactionWithCOT } from '../../entity/transaction/transactionHelper';
|
|
6
6
|
import { getSupportedTransactionById } from '../../entity/transaction/transactionSelector';
|
|
@@ -8,10 +8,9 @@ import { getVendorsByVendorIds } from '../../entity/vendor/vendorSelector';
|
|
|
8
8
|
import { dateNow } from '../../zeniDayJS';
|
|
9
9
|
import { getAccountList, getNestedAccountListHierarchy, } from '../accountList/accountListSelector';
|
|
10
10
|
import { getClassList, getNestedClassListHierarchy, } from '../classList/classListSelector';
|
|
11
|
-
import { getProjectList, } from '../projectList/projectListSelector';
|
|
12
11
|
import { getAllLinkedTransactions, getTransactionDetailKey, initialSupportedTransactionDetail, } from './transactionDetailState';
|
|
13
12
|
export const getTransactionDetail = (state, transactionId, fetchLinkedTransactions = true) => {
|
|
14
|
-
const { transactionDetailState, transactionState, vendorState, vendorListState, accountState, classState, classListState, accountListState,
|
|
13
|
+
const { transactionDetailState, transactionState, vendorState, vendorListState, accountState, classState, classListState, accountListState, } = state;
|
|
15
14
|
const detailKey = getTransactionDetailKey(transactionId);
|
|
16
15
|
const transactionDetail = recordGet(transactionDetailState.transactionDetailById, detailKey);
|
|
17
16
|
let fetchState = {
|
|
@@ -57,15 +56,6 @@ export const getTransactionDetail = (state, transactionId, fetchLinkedTransactio
|
|
|
57
56
|
const classList = isAccountingClassesEnabled
|
|
58
57
|
? getClassList(classState, classListState)
|
|
59
58
|
: { classes: [], nestedClassHierarchy: [], fetchState: 'Completed', error: undefined, version: 0 };
|
|
60
|
-
const isAccountingProjectsEnabled = getIsAccountingProjectsEnabled(state);
|
|
61
|
-
const projectList = isAccountingProjectsEnabled
|
|
62
|
-
? getProjectList(projectState, projectListState)
|
|
63
|
-
: {
|
|
64
|
-
projects: [],
|
|
65
|
-
fetchState: 'Completed',
|
|
66
|
-
error: undefined,
|
|
67
|
-
version: 0,
|
|
68
|
-
};
|
|
69
59
|
const accountsHierarchyList = getNestedAccountListHierarchy(accountListState, 'accountList');
|
|
70
60
|
const classHierarchyList = isAccountingClassesEnabled
|
|
71
61
|
? getNestedClassListHierarchy(classListState)
|
|
@@ -88,8 +78,6 @@ export const getTransactionDetail = (state, transactionId, fetchLinkedTransactio
|
|
|
88
78
|
accountsHierarchyList,
|
|
89
79
|
classList: classList,
|
|
90
80
|
isAccountingClassesEnabled,
|
|
91
|
-
isAccountingProjectsEnabled,
|
|
92
|
-
projectList,
|
|
93
81
|
isUpdateNotAllowed: transactionDetail?.isUpdateNotAllowed,
|
|
94
82
|
transactionDetailLocalData: transactionDetail?.transactionDetailLocalData ??
|
|
95
83
|
initialSupportedTransactionDetail.transactionDetailLocalData,
|
|
@@ -2,7 +2,7 @@ import { createSlice } from '@reduxjs/toolkit';
|
|
|
2
2
|
import { toAbsoluteDay } from '../../commonStateTypes/timePeriod';
|
|
3
3
|
import { mapAccountBasePayloadToAccountBase } from '../../entity/account/accountPayload';
|
|
4
4
|
import { toEntityType } from '../../entity/genericEntity/entity';
|
|
5
|
-
import { accountTransactionsInitialState, getAcKey, getAcTranKey, getCategoryTypeTranKey, getClassAcKey, getClassAcTranKey, getEntityTranKey,
|
|
5
|
+
import { accountTransactionsInitialState, getAcKey, getAcTranKey, getCategoryTypeTranKey, getClassAcKey, getClassAcTranKey, getEntityTranKey, initialClassTransactionState, initialEntityTransactionState, initialTransactionsStateByCategoryType, } from './transactionListState';
|
|
6
6
|
export const initialState = {
|
|
7
7
|
byAccount: {
|
|
8
8
|
transactionListByAccountKey: {},
|
|
@@ -37,10 +37,6 @@ export const initialState = {
|
|
|
37
37
|
transactionListByClassKey: {},
|
|
38
38
|
transactionListUIStateByClassKey: {},
|
|
39
39
|
},
|
|
40
|
-
byProject: {
|
|
41
|
-
transactionListByProjectKey: {},
|
|
42
|
-
transactionListUIStateByProjectKey: {},
|
|
43
|
-
},
|
|
44
40
|
};
|
|
45
41
|
const transactionList = createSlice({
|
|
46
42
|
name: 'transactionList',
|
|
@@ -250,64 +246,6 @@ const transactionList = createSlice({
|
|
|
250
246
|
return { payload: { accountId, accountType, classId, period, error } };
|
|
251
247
|
},
|
|
252
248
|
},
|
|
253
|
-
// Transaction list by project related reducers
|
|
254
|
-
//
|
|
255
|
-
// Mirrors the by-class set; the only behavioural difference is that the
|
|
256
|
-
// server query param is `zeni_project_id` (post-Ayon's accounting #3984
|
|
257
|
-
// rename) and there's no equivalent of `include_sub_class_transactions`
|
|
258
|
-
// — projects don't have a sub-project hierarchy in this layout yet.
|
|
259
|
-
parallelFetchProjectTransactionList: {
|
|
260
|
-
reducer() {
|
|
261
|
-
// Do nothing..
|
|
262
|
-
},
|
|
263
|
-
prepare(accountId, accountType, projectId, period, cacheOverride = false) {
|
|
264
|
-
return {
|
|
265
|
-
payload: { accountId, accountType, projectId, period, cacheOverride },
|
|
266
|
-
};
|
|
267
|
-
},
|
|
268
|
-
},
|
|
269
|
-
fetchProjectTransactionList: {
|
|
270
|
-
reducer(draft, action) {
|
|
271
|
-
const key = getProjectAcTranKey(action.payload.accountId, action.payload.accountType, action.payload.projectId, action.payload.period);
|
|
272
|
-
if (action.payload.cacheOverride === true ||
|
|
273
|
-
draft.byProject.transactionListByProjectKey[key] == null ||
|
|
274
|
-
(draft.byProject.transactionListByProjectKey[key]?.hasValidState() ===
|
|
275
|
-
false &&
|
|
276
|
-
draft.byProject.transactionListByProjectKey[key]?.fetchState !=
|
|
277
|
-
'In-Progress')) {
|
|
278
|
-
draft.byProject.transactionListByProjectKey[key] = {
|
|
279
|
-
...initialProjectTransactionState,
|
|
280
|
-
fetchState: 'In-Progress',
|
|
281
|
-
error: undefined,
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
prepare(accountId, accountType, projectId, period, cacheOverride = false) {
|
|
286
|
-
return {
|
|
287
|
-
payload: { accountId, accountType, projectId, period, cacheOverride },
|
|
288
|
-
};
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
updateTransactionListByProject(draft, action) {
|
|
292
|
-
doUpdateTransactionListByProject(draft.byProject.transactionListByProjectKey, action.payload);
|
|
293
|
-
},
|
|
294
|
-
updateTransactionListByProjectUIState(draft, action) {
|
|
295
|
-
const key = getProjectAcKey(action.payload.accountId, action.payload.accountType, action.payload.projectId);
|
|
296
|
-
draft.byProject.transactionListUIStateByProjectKey[key] = Object.assign({}, draft.byProject.transactionListUIStateByProjectKey[key], action.payload.uiState);
|
|
297
|
-
},
|
|
298
|
-
updateTransactionListByProjectFailure: {
|
|
299
|
-
reducer(draft, action) {
|
|
300
|
-
const key = getProjectAcTranKey(action.payload.accountId, action.payload.accountType, action.payload.projectId, action.payload.period);
|
|
301
|
-
draft.byProject.transactionListByProjectKey[key] = {
|
|
302
|
-
...initialProjectTransactionState,
|
|
303
|
-
fetchState: 'Error',
|
|
304
|
-
error: action.payload.error,
|
|
305
|
-
};
|
|
306
|
-
},
|
|
307
|
-
prepare(accountId, accountType, projectId, period, error) {
|
|
308
|
-
return { payload: { accountId, accountType, projectId, period, error } };
|
|
309
|
-
},
|
|
310
|
-
},
|
|
311
249
|
parallelFetchTransactionListByCategoryType: {
|
|
312
250
|
reducer() {
|
|
313
251
|
// Do nothing..
|
|
@@ -402,7 +340,7 @@ const transactionList = createSlice({
|
|
|
402
340
|
},
|
|
403
341
|
},
|
|
404
342
|
});
|
|
405
|
-
export const { parallelFetchAccountTransactionList, fetchAccountTransactionList, updateTransactionListByAccount, updateTransactionListByAccountFailure, parallelFetchEntityTransactionList, fetchEntityTransactionList, updateTransactionListByEntity, updateTransactionListByEntityFailure, updateTransactionListByAccountUIState, parallelFetchClassTransactionList, fetchClassTransactionList, updateTransactionListByClass, updateTransactionListByClassUIState, updateTransactionListByClassFailure,
|
|
343
|
+
export const { parallelFetchAccountTransactionList, fetchAccountTransactionList, updateTransactionListByAccount, updateTransactionListByAccountFailure, parallelFetchEntityTransactionList, fetchEntityTransactionList, updateTransactionListByEntity, updateTransactionListByEntityFailure, updateTransactionListByAccountUIState, parallelFetchClassTransactionList, fetchClassTransactionList, updateTransactionListByClass, updateTransactionListByClassUIState, updateTransactionListByClassFailure, parallelFetchTransactionListByCategoryType, fetchTransactionsListByCategoryType, updateTransactionListByCategoryType, updateTransactionsListByCategoryTypeFailure, updateTransactionListUIStateByCategoryType, clearTransactionList, updateLatestTransactionId, } = transactionList.actions;
|
|
406
344
|
export default transactionList.reducer;
|
|
407
345
|
/**
|
|
408
346
|
* Helper functions
|
|
@@ -452,22 +390,3 @@ function doUpdateTransactionListByClass(draft, payload) {
|
|
|
452
390
|
transactionIDs,
|
|
453
391
|
};
|
|
454
392
|
}
|
|
455
|
-
function doUpdateTransactionListByProject(draft, payload) {
|
|
456
|
-
const transactionIDs = payload.account.transactions.map((transactionPaylod) => transactionPaylod.transaction_id);
|
|
457
|
-
const account = mapAccountBasePayloadToAccountBase(payload.account);
|
|
458
|
-
const projectId = payload.query.zeni_project_id;
|
|
459
|
-
const start = toAbsoluteDay(payload.query.start_date);
|
|
460
|
-
const end = toAbsoluteDay(payload.query.end_date);
|
|
461
|
-
const key = getProjectAcTranKey(account.accountId, account.accountType, projectId, {
|
|
462
|
-
start,
|
|
463
|
-
end,
|
|
464
|
-
});
|
|
465
|
-
draft[key] = {
|
|
466
|
-
...initialProjectTransactionState,
|
|
467
|
-
fetchState: 'Completed',
|
|
468
|
-
error: undefined,
|
|
469
|
-
account: account,
|
|
470
|
-
projectId: projectId,
|
|
471
|
-
transactionIDs,
|
|
472
|
-
};
|
|
473
|
-
}
|
|
@@ -30,16 +30,6 @@ export const initialClassTransactionState = {
|
|
|
30
30
|
return this.fetchState == 'Completed';
|
|
31
31
|
},
|
|
32
32
|
};
|
|
33
|
-
export const getProjectAcTranKey = (accountId, accountType, projectId, period) => `${accountId}-${accountType}-${projectId}-${period.start.day}_${period.start.month}_${period.start.year}_${period.end.day}_${period.end.month}_${period.end.year}`;
|
|
34
|
-
export const getProjectAcKey = (accountId, accountType, projectId) => `${accountId}-${accountType}-${projectId}`;
|
|
35
|
-
export const initialProjectTransactionState = {
|
|
36
|
-
transactionIDs: [],
|
|
37
|
-
fetchState: 'Not-Started',
|
|
38
|
-
error: undefined,
|
|
39
|
-
hasValidState() {
|
|
40
|
-
return this.fetchState == 'Completed';
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
33
|
export const getCategoryTypeTranKey = (categoryType, period) => `${categoryType}_${period.start.day}_${period.start.month}_${period.start.year}_${period.end.day}_${period.end.month}_${period.end.year}`;
|
|
44
34
|
export const initialTransactionsStateByCategoryType = {
|
|
45
35
|
transactionIDs: [],
|
package/lib/index.d.ts
CHANGED
|
@@ -103,12 +103,10 @@ import { ExternalNotificationData, NotificationActivityType, NotificationGroup,
|
|
|
103
103
|
import { Logo, PaymentAccount, VERIFIED_PAYMENT_ACCOUNT_PROVIDER_VERIFICATION_STATUS } from './entity/paymentAccount/paymentAccountState';
|
|
104
104
|
import { PaymentInstrument } from './entity/paymentInstrument/paymentInstrument';
|
|
105
105
|
import { AccountingSummary, Runway } from './entity/portfolio/accountingSummary/accountingSummaryState';
|
|
106
|
-
import { Project } from './entity/project/projectState';
|
|
107
106
|
import { MilageReimbursementLine, OutofPocketReimbursementLine, Reimbursement, ReimbursementLine, ReimbursementTypeCode } from './entity/reimbursement/reimbursementState';
|
|
108
107
|
import { SectionAccountsViewReport } from './entity/sectionAccountsView/sectionAccountsViewSelector';
|
|
109
108
|
import { SectionClassesView as SectionClassesViewV2 } from './entity/sectionClassesViewV2/sectionClassesView';
|
|
110
109
|
import { NestedClassReportV2, SectionClassesViewReportV2 } from './entity/sectionClassesViewV2/sectionClassesViewSelectorTypes';
|
|
111
|
-
import { ProjectReportWithBalances, SectionProjectViewReport } from './entity/sectionProjectView/sectionProjectViewSelectorTypes';
|
|
112
110
|
import { closeSnackbar, openSnackbar } from './entity/snackbar/snackbarReducer';
|
|
113
111
|
import { getSnackbar } from './entity/snackbar/snackbarSelector';
|
|
114
112
|
import { SnackbarMessageConfig } from './entity/snackbar/snackbarState';
|
|
@@ -125,7 +123,7 @@ import { ALL_WEEK_DAYS, DayOfWeek, PriorityCodeType, Task, TaskCodeType, TaskPri
|
|
|
125
123
|
import { getTaskGroupById } from './entity/taskGroup/taskGroupSelector';
|
|
126
124
|
import { TaskGroupState } from './entity/taskGroup/taskGroupState';
|
|
127
125
|
import { TaskGroupTemplate } from './entity/taskGroupTemplate/taskGroupTemplateState';
|
|
128
|
-
import { DoSignInPayload, clearAll, doMagicLinkSignIn, doSignIn, doSignOut, fetchActiveTenant, fetchAllTenants, fetchExcludedResources as fetchExcludedResourcesForTenant, fetchExternalConnections as fetchExternalConnectionsForTenant, fetchSubscriptionSummaryForTenant, resendVerifyDeviceOTP, resetSignInState, deleteConnection, saveAPIKeyConnection, saveExternalConnection as saveExternalConnectionForTenant, saveOAuthConnection, sendEmailMagicLinkToUser,
|
|
126
|
+
import { DoSignInPayload, clearAll, doMagicLinkSignIn, doSignIn, doSignOut, sendSessionHeartbeat, fetchActiveTenant, fetchAllTenants, fetchExcludedResources as fetchExcludedResourcesForTenant, fetchExternalConnections as fetchExternalConnectionsForTenant, fetchSubscriptionSummaryForTenant, resendVerifyDeviceOTP, resetSignInState, deleteConnection, saveAPIKeyConnection, saveExternalConnection as saveExternalConnectionForTenant, saveOAuthConnection, sendEmailMagicLinkToUser, toExternalIntegrationType, toExternalSupportedTool, updateCurrentTenant, updateSignInState, verifyDeviceWithTwoFA } from './entity/tenant/tenantReducer';
|
|
129
127
|
import { CurrentTenant, TenantBaseView, TenantCoreDetailsView, TenantView, TenantsBaseOrdered, TenantsOrdered, getCurrentTenant, getIsAccountingClassesEnabled, getIsAccountingProjectsEnabled, getTenantBaseById, getTenantBaseViewForTenantId, getTenantBaseViewForTenantView, getTenantsBaseByCheckInDateSelector, getTenantsByCheckInDateSelector, getTenantsCoreDetailsByCheckInDateSelector, isOtherProductsEnabledForTenant, isTenantBankingOnly, isTenantBookkeepingEnabled, isTenantCardsOnly, isTenantUsingZeniCOA, isZeniDomainTenant, toTenantCoreDetailsView } from './entity/tenant/tenantSelector';
|
|
130
128
|
import { Connection, LoggedInUser, RoleResource, Tenant, TenantProductSettings } from './entity/tenant/tenantState';
|
|
131
129
|
import { ToastNotificationPayload } from './entity/toastNotification/toastNotificationPayload';
|
|
@@ -215,8 +213,6 @@ import { getCashPosition, getCashPositionForHighlightedRange, getCashPositionFor
|
|
|
215
213
|
import { CashPositionReport, CashPositionUIStateSelectorView } from './view/cashPosition/cashPositionSelectorTypes';
|
|
216
214
|
import { fetchClassList } from './view/classList/classListReducer';
|
|
217
215
|
import { ClassListSelectorView, getClassList } from './view/classList/classListSelector';
|
|
218
|
-
import { fetchProjectList } from './view/projectList/projectListReducer';
|
|
219
|
-
import { ProjectListSelectorView, getProjectList } from './view/projectList/projectListSelector';
|
|
220
216
|
import { RecurringDatePickerOptions, RecurringFrequencyType, SEMI_WEEKLY_REQUIRED_DAYS_COUNT, getMinAllowedEndDate, getRecurringEndDateFromCount, toRecurringFrequency } from './view/common/recurringViewHelper';
|
|
221
217
|
import { ZENI_CLEARING_ACCOUNT, isZeniClearingAccount, isZeniClearingAccountReport } from './view/common/zeniClearingAccountHelper';
|
|
222
218
|
import { clearTransactionVendorSaveStatus, resetTransactionVendorLocalData, saveTransactionVendor, saveTransactionVendorSuccessOrFailure, updateTransactionVendorLocalData } from './view/commonVendorView/transactionVendorView/transactionVendorViewReducer';
|
|
@@ -362,10 +358,12 @@ import { fetchProfitAndLossClassesView, resetProfitAndLossClassesNodeCollapseSta
|
|
|
362
358
|
import { getProfitAndLossClassesView } from './view/profitAndLossClassesView/profitAndLossClassesViewSelector';
|
|
363
359
|
import { PandLReportViewCalculatedSectionID, PandLReportViewSectionID, ProfitAndLossClassesViewReport, isPandLReportViewCalculatedSectionID, isPandLReportViewSectionID } from './view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes';
|
|
364
360
|
import { ClassViewLayout, ProfitAndLossClassesViewUIState } from './view/profitAndLossClassesView/profitAndLossClassesViewState';
|
|
365
|
-
import { clearProfitAndLossProjectView, fetchProfitAndLossForTimeframeProjectView, fetchProfitAndLossProjectView, resetProfitAndLossProjectNodeCollapseState,
|
|
361
|
+
import { clearProfitAndLossProjectView, fetchProfitAndLossForTimeframeProjectView, fetchProfitAndLossProjectView, resetProfitAndLossProjectNodeCollapseState, updateProjectViewAccountViewMode, updateProjectsToFilterOut, updateProfitAndLossProjectViewUIState } from './view/profitAndLossProjectView/profitAndLossProjectViewReducer';
|
|
362
|
+
import { ProfitAndLossProjectViewUIState } from './view/profitAndLossProjectView/profitAndLossProjectViewState';
|
|
363
|
+
import { Project } from './entity/project/projectState';
|
|
366
364
|
import { getProfitAndLossProjectView } from './view/profitAndLossProjectView/profitAndLossProjectViewSelector';
|
|
367
365
|
import { ProfitAndLossProjectViewReport } from './view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes';
|
|
368
|
-
import {
|
|
366
|
+
import { ProjectReportWithBalances, SectionProjectViewReport } from './entity/sectionProjectView/sectionProjectViewSelectorTypes';
|
|
369
367
|
import { fetchEntityRecommendationsByTransactionId, fetchRecommendationByEntityId, fetchRecommendationByEntityName } from './view/recommendation/recommendationReducer';
|
|
370
368
|
import { clearReferrals, fetchReferrals, fetchRewardsPlan, resendReferralInvite, saveReferralFormDataInLocalStore, sendReferralInvite, updateReferViewed, updateReferralListSortUiState } from './view/referralView/referralReducer';
|
|
371
369
|
import { ReferralListSelectorView, RewardsPlanCardReport, getInviteFormView, getReferralListView, getRewardsPlanCard } from './view/referralView/referralSelector';
|
|
@@ -541,15 +539,15 @@ import { SubscriptionView } from './view/subscriptionView/types/subscriptionView
|
|
|
541
539
|
import { createTag, deleteTag, fetchTagList } from './view/tagView/tagViewReducer';
|
|
542
540
|
import { TagViewSelectorView, getAllTags } from './view/tagView/tagViewSelector';
|
|
543
541
|
import { TagViewState } from './view/tagView/tagViewState';
|
|
542
|
+
import { EditTaskLocalData, initialTaskDetail, initialTaskDetailLocalData } from './view/taskManager/taskDetailView/taskDetail';
|
|
543
|
+
import { archiveTask, deleteTask, discardTaskUpdatesInLocalStore, fetchTaskDetailPage, saveTaskDetail, saveTaskUpdatesToLocalStore, snoozeTask, unsnoozeTask } from './view/taskManager/taskDetailView/taskDetailReducer';
|
|
544
544
|
import { CannedResponse, CannedResponsesViewState } from './view/taskManager/cannedResponsesView/cannedResponses';
|
|
545
545
|
import { deleteCannedResponse, fetchCannedResponses, saveCannedResponse } from './view/taskManager/cannedResponsesView/cannedResponsesReducer';
|
|
546
546
|
import { getCannedResponsesView } from './view/taskManager/cannedResponsesView/cannedResponsesSelector';
|
|
547
|
-
import { EditTaskLocalData, initialTaskDetail, initialTaskDetailLocalData } from './view/taskManager/taskDetailView/taskDetail';
|
|
548
|
-
import { archiveTask, deleteTask, discardTaskUpdatesInLocalStore, fetchTaskDetailPage, saveTaskDetail, saveTaskUpdatesToLocalStore, snoozeTask, unsnoozeTask } from './view/taskManager/taskDetailView/taskDetailReducer';
|
|
549
547
|
import { TaskDetailSelectorView, allTaskPriority, allTaskStatus, getTaskDetail } from './view/taskManager/taskDetailView/taskDetailSelector';
|
|
550
548
|
import { createTaskFromTaskGroupTemplate } from './view/taskManager/taskGroupTemplateView/taskGroupTemplateViewReducer';
|
|
551
549
|
import { createNewTaskGroup, deleteTaskGroup, fetchAllTaskGroups, updateTaskGroupName } from './view/taskManager/taskGroupView/taskGroupViewReducer';
|
|
552
|
-
import {
|
|
550
|
+
import { DueDateGroupKey, TASK_LIST_FILTER_CATEGORIES, TASK_LIST_GROUP_BY_CATEGORIES, TaskFilterCategory, TaskGroupKey, TaskListFilterCategoryField, TaskListFilters, TaskListLocalData, TaskListUIState, TaskListViewSortKey, toDueDateGroupKeyType, toTaskListGroupByKeyType, toTaskListGroupByKeyTypeStrict, ALL_TASK_LIST_TABS, TaskListTab } from './view/taskManager/taskListView/taskList';
|
|
553
551
|
import { bulkUpdateTaskList, dragNDropTasks, fetchTaskListPage, initiateTaskListLocalData, removeTaskFromList, updateTaskFilters, updateTaskFromListView, updateTaskListLocalData, updateTaskListSearchText, updateTaskListTab, updateTaskListUIState } from './view/taskManager/taskListView/taskListReducer';
|
|
554
552
|
import { TaskGroupWithTasksList, TaskListSelectorView, TaskWithUserDetails, getAllTasks } from './view/taskManager/taskListView/taskListSelector';
|
|
555
553
|
import { getDueDateValueFromDueDateGroupId, getTaskUpdates } from './view/taskManager/taskListView/taskListViewHelpers';
|
|
@@ -571,9 +569,8 @@ import { TransactionDetailLineItemData, TransactionDetailLocalData, TransactionV
|
|
|
571
569
|
import { TransactionListByAccountReport, getTransactionListByAccount, getTransactionListUIStateByAccountKey } from './view/transactionList/transactionListByAccountSelector';
|
|
572
570
|
import { TransactionListByCategoryType, getTransactionListUIStateByCategoryType, getTransactionsListByCategoryType } from './view/transactionList/transactionListByCategoryTypeSelector';
|
|
573
571
|
import { TransactionListByClassReport, getTransactionListByClass, getTransactionListUIStateByClassKey } from './view/transactionList/transactionListByClassSelector';
|
|
574
|
-
import { TransactionListByProjectReport, getTransactionListByProject, getTransactionListUIStateByProjectKey } from './view/transactionList/transactionListByProjectSelector';
|
|
575
572
|
import { TransactionListByEntityView, getTransactionListByEntity, getTransactionListByEntityForSinglePeriod } from './view/transactionList/transactionListByEntitySelector';
|
|
576
|
-
import { clearTransactionList, fetchAccountTransactionList, fetchEntityTransactionList, parallelFetchAccountTransactionList, parallelFetchClassTransactionList,
|
|
573
|
+
import { clearTransactionList, fetchAccountTransactionList, fetchEntityTransactionList, parallelFetchAccountTransactionList, parallelFetchClassTransactionList, parallelFetchEntityTransactionList, parallelFetchTransactionListByCategoryType, updateLatestTransactionId, updateTransactionListByAccount, updateTransactionListByAccountFailure, updateTransactionListByAccountUIState, updateTransactionListByClass, updateTransactionListByClassUIState, updateTransactionListByEntity, updateTransactionListByEntityFailure, updateTransactionListUIStateByCategoryType } from './view/transactionList/transactionListReducer';
|
|
577
574
|
import { TransactionCategoryType } from './view/transactionList/transactionListState';
|
|
578
575
|
import { clearTrendData, fetchExpenseTrend, fetchIncomeTrend } from './view/trend/trendReducer';
|
|
579
576
|
import { TrendView, getCurrentFiscalQuarterDateRange, getTrendForEntity } from './view/trend/trendSelector';
|
|
@@ -617,21 +614,13 @@ import { ZeniAccStatementsSelectorView, getZeniAccStatements } from './view/zeni
|
|
|
617
614
|
import { fetchZeniAccountsPromoCard } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer';
|
|
618
615
|
import { ZeniAccountsPromoCardReport, getZeniAccountsPromoCard } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector';
|
|
619
616
|
import { ZeniAccountsPromoCardState } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardState';
|
|
620
|
-
import { OAuthParams, ParseOAuthParamsResult, parseOAuthParams } from './view/zeniOAuthView/zeniOAuthParamsParser';
|
|
621
617
|
import { ApproveOAuthConsentPayload, approveOAuthConsent, approveOAuthConsentFailure, approveOAuthConsentSuccess, clearZeniOAuthView } from './view/zeniOAuthView/zeniOAuthReducer';
|
|
618
|
+
import { OAuthParams, ParseOAuthParamsResult, parseOAuthParams } from './view/zeniOAuthView/zeniOAuthParamsParser';
|
|
622
619
|
import { getZeniOAuthApproveError, getZeniOAuthApproveFetchState, getZeniOAuthApproveRedirectUrl } from './view/zeniOAuthView/zeniOAuthSelector';
|
|
623
620
|
import { ZeniOAuthViewState } from './view/zeniOAuthView/zeniOAuthState';
|
|
624
621
|
import { RESTAPIEndpoints } from './zeniAPI';
|
|
625
622
|
import { Dayjs, ZeniDate, date, dateFromYearMonthDate, dateInLocal, dateLocal, dateNow, getBusinessDayOfDate, getLocalTimezone, getMinDate, getMonthIndex, setLocalTimezone, updateZeniDateLocaleID } from './zeniDayJS';
|
|
626
623
|
import { ZeniUrl, toZeniUrl, toZeniUrlWithoutBaseURL } from './zeniUrl';
|
|
627
|
-
export { fetchCreditAgentAccess, fetchCreditAgentAccessSuccess, scheduleTenantCreditScoreCron, fetchCreditAgentMacro, saveCreditAgentMacro, resetSaveMacroState, fetchCardProfiles, updateCardProfile, updateCreditAgentUIState, clearCreditAgentView, } from './view/creditAgentView/creditAgentViewReducer';
|
|
628
|
-
export { toCardTenantProfileRow, toMacro, } from './entity/creditAgent/creditAgentPayload';
|
|
629
|
-
export { getCreditAgentView, getCreditAgentEntity, getCreditAgentMacro, getCardProfilesData, } from './view/creditAgentView/creditAgentViewSelector';
|
|
630
|
-
export { getCreditReportDownloadPayload } from './view/creditAgentView/buildCreditReportCsv';
|
|
631
|
-
export { clearAllCreditAgent, updateCreditAgentMacro, updateCreditAgentRow, updateCreditAgentRows, } from './entity/creditAgent/creditAgentReducer';
|
|
632
|
-
export { getCreditAgentRows, getCreditAgentMacroEntity, } from './entity/creditAgent/creditAgentSelector';
|
|
633
|
-
export type { CardTenantProfileRow, CardStatus, CreditAgentEntityState, CreditAgentMacro, } from './entity/creditAgent/creditAgentState';
|
|
634
|
-
export type { CreditAgentFocusFilter, CreditAgentSortDir, CreditAgentSortKey, CreditAgentUIState, CreditAgentViewState, } from './view/creditAgentView/creditAgentViewState';
|
|
635
624
|
export { AccountSettingsLocalData };
|
|
636
625
|
export { saveJeAccountSettings, saveJeAccountSettingsLocalData };
|
|
637
626
|
export default initialize;
|
|
@@ -720,12 +709,12 @@ export { VendorTransaction, VendorTransactionWithCOT, isVendorTransaction, Vendo
|
|
|
720
709
|
export { TransferTransaction, isTransferTransaction };
|
|
721
710
|
export { MatchedTransaction };
|
|
722
711
|
export { SupportedTransaction, SupportedTransactionWithCOT, SupportedTransactionPayload, getSupportedTransactionById, };
|
|
723
|
-
export { clearTransactionList, updateLatestTransactionId, parallelFetchAccountTransactionList, parallelFetchEntityTransactionList, fetchAccountTransactionList, updateTransactionListByAccount, updateTransactionListByAccountFailure, updateTransactionListByAccountUIState, parallelFetchClassTransactionList, updateTransactionListByClassUIState, updateTransactionListByClass,
|
|
712
|
+
export { clearTransactionList, updateLatestTransactionId, parallelFetchAccountTransactionList, parallelFetchEntityTransactionList, fetchAccountTransactionList, updateTransactionListByAccount, updateTransactionListByAccountFailure, updateTransactionListByAccountUIState, parallelFetchClassTransactionList, updateTransactionListByClassUIState, updateTransactionListByClass, updateTransactionListUIStateByCategoryType, parallelFetchTransactionListByCategoryType, };
|
|
724
713
|
export { TransactionListByAccountReport, getTransactionListByAccount, getTransactionListUIStateByAccountKey, };
|
|
725
714
|
export { fetchEntityTransactionList, updateTransactionListByEntity, saveTransactionDetailLocalData, clearTransactionDetailSaveStatus, updateTransactionListByEntityFailure, resetLineItemsCategoryClassInLocalData, setAllLineItemsToCategoryClassInLocalData, saveTransactionDetail, setAllLineItemsLocalDataIsUpdateAllChecked, initializeTransactionDetailLocalData, removeEntityRecommendationForLineIdForTransactionDetail, updateSelectedVendor, updateSelectedCustomer, resetSelectedCustomer, resetVendor, updateLocalDataWithTransactionsUpdateWithVendorCheckbox, updateVendorToAllLineItems, resetAllLineItemsToVendor, updateLatestSelectedEntity, updateVendorBulkRecommendationsFetchStatus, setIsVendorUpdateAllChecked, };
|
|
726
715
|
export { TransactionUpdates, downloadAccountingProviderAttachment, downloadAccountingProviderAttachmentSuccess, downloadAccountingProviderAttachmentFailure, fetchTransactionDetail, updateTransactionDetail, uploadMissingAttachmentSuccess, deleteTransactionAttachment, getThirdPartyIdFromTransactionId, };
|
|
727
716
|
export { TransactionListByEntityView, getTransactionListByEntity };
|
|
728
|
-
export { TransactionListByClassReport, getTransactionListByClass, getTransactionListUIStateByClassKey,
|
|
717
|
+
export { TransactionListByClassReport, getTransactionListByClass, getTransactionListUIStateByClassKey, getTransactionListByEntityForSinglePeriod, };
|
|
729
718
|
export { TransactionDetailReport, getTransactionDetail, getTransactionDetailForTransaction, VendorDetailsView, getInitialUpdatablePeriodsForTransactionRecommendations as getUpdatablePeriodsForTransactionRecommendations, };
|
|
730
719
|
export { getInsights, fetchInsightsCard, updateSelectedInsightIndex, InsightsView, };
|
|
731
720
|
export { fetchForecastList } from './view/forecastList/forecastListReducer';
|
|
@@ -789,7 +778,7 @@ export { fetchVendorsList, updateScrollYOffset, fetchVendorsFiling1099All, fetch
|
|
|
789
778
|
export { W9FormProcessingPayload, W9Form, updateW9FormUploadFetchState, updateW9FormUploadFile, getVendorUploadDetailsByVendorId, VendorFiling1099UploadDetailsSelectorView, VendorFiling1099UploadDetailsState, vendorFiling1099UploadDetailsSave, vendorFiling1099UploadDetailsResetFormStatus, vendorFiling1099UploadDetailsResetLocalData, initializeVendorFiling1099UploadDetailsLocalState, updateVendor1099DetailsLocalData, updateW9FormOCRDataToLocalData, VendorsFiling1099UploadDetailsLocalData, };
|
|
790
779
|
export { BillTransaction, BillPayInfo, BillStage, BillStageCodeType, BillTransactionView, InternationalTransferFeeBearerPaymentMethod, DeletionSourceType, BillBulkSelectExceptionInfoType, toOutsideZeniPaymentModeType, checkShowMarkAsPaidButton, };
|
|
791
780
|
export { MilageReimbursementLine, OutofPocketReimbursementLine, ReimbursementLine, ReimbursementTypeCode, Reimbursement, RemiTabType, toRemiSubTabType, toRemiSubTabTypeStrict, toRemiTabType, toRemiTabTypeStrict, toReimbursementTypeCode, RemiSubTabType, ReimbursementViewSortKey, RemiListUIState, RemiListReport, RemiListDownloadReport, ReimbursementView, ReimbursementFilters, ReimbursementFilterCategory, RemiListViewFilterCategoryField, getRemiList, getRemiDownloadList, fetchRemiList, fetchRemiListPerTab, updateRemiListTab, updateRemiListSubTab, updateRemiDetailSaveRemiCode, updateRemiListUIState, updateRemiListSearchResult, updateBillListFilterResult, updateRemiListFilterResult, REIMBURSEMENT_FILTER_CATEGORIES, REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED, updateRemiListDownloadUIState, updateBillListDownloadUIState, updateBillsBulkActionList, removeBillFromBulkActionList, clearAllBillsFromBulkActionList, getBillsBulkReviewView, BillsBulkReviewView, validateBillsBulkAction, approveOrRejectBillsBulkAction, cancelOrDeleteBillsBulkAction, submitDraftBillsBulkAction, autoReviewPendingApprovalBills, incrementBulkActionProcessedCount, getBillsBulkOperationProgress, BulkOperationProgress, clearBillPayBulkActionView, isBillConditionallyValid, getRemisBulkReviewView, RemisBulkReviewView, getRemisBulkOperationProgress, updateRemisBulkActionList, removeRemiFromBulkActionList, clearAllRemisFromBulkActionList, reviewDraftRemisBulkAction, approveOrRejectRemisBulkAction, cancelOrDeleteRemisBulkAction, submitDraftRemisBulkAction, autoReviewPendingApprovalRemis, clearRemiBulkActionView, incrementRemiBulkActionProcessedCount, RemiBulkSelectExceptionInfoType, OutsideZeniPaymentLocalData, updateOutsideZeniPaymentLocalData, discardOutsideZeniPaymentLocalData, checkIfCreatorIsApprover, };
|
|
792
|
-
export { AccountListSelectorView, ClassListSelectorView, getClassList, fetchClassList,
|
|
781
|
+
export { AccountListSelectorView, ClassListSelectorView, getClassList, fetchClassList, };
|
|
793
782
|
export { BillTab, BillsSubTabType, SaveBillStageCode, BillPayReviewSelectorView, DuplicateBillsSelectorView, EditBillDetailSelectorView, LineItemRecommendationsLocalData, EditBillInitialDetails, BillableStatus, PaymentDetailsSection, BillListReport, BillListDownloadReport, WhatForSection, fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, fetchVendorByNameAndParseInvoice, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, approveOrRejectBill, updateApprovalStatusOnSuccess, deleteBill, cancelAndDeleteBill, retryOrRefundBill, getBillList, getBillDownloadList, BillDetailViewSelector, ActorActivityWithUser, BillActivity, StepWithStatus, getBillDetailView, checkApproveRejectBtnShowForBill, BillDetailView, getBillTransactionDetailKey, fetchBillDetail, fetchEditBillDetailPage, fetchAndUpdateVendorRecommendations, fetchDuplicateBill, clearBillPayReview, EditBillDetail, EditBillDetailViewState, getEditBillDetail, getReviewPageBillDetail, BillDetailLocalData, PaymentDetailsSectionView, fetchBillAndInitializeLocalStore, updateShowAutofill, saveVendorSuccessOrFailure, BillPaymentStatus, BillPaymentStatusCodeType, BillPaymentRefundStatus, BillPaymentRefundStatusCodeType, BillStatus, BillStatusCodeType, BillApprovalType, updateBillListUIState, BillListUIState, BillPayViewSortKey, BillPayFilters, BillPayFilterCategory, BillListViewFilterCategoryField, BILL_PAY_FILTER_CATEGORIES, updateVendorDetailLocalData, resetVendorDetailLocalData, resetVendorSaveStatus, updateContactsInVendorDetailLocalData, updateVendorTabDetailUIState, updateContactsInVendorTabDetailLocalData, updateBillUploadFetchState, updateBillListSearchResult, fetchUserDetails, verifyUser, updateVendorContact, PaymentToOption, toPaymentToOption, convertAmountToHomeCurrency, RecurringBillInstance, RecurringBillConfigLocalData, EditRecurringBillType, fetchVendorAndUpdateBillLocalData, markBillForRetry, updateWithdrawFromAccountId, removeBillFileFromLocalStore, replaceBillFileInLocalStore, updateShouldReplaceBillData, };
|
|
794
783
|
export { SpendManagementFiltersType, SpendManagementFilterEntityType, FilterCategoryType, BillPayFilterCategoryDropdownOption, ReimbursementFilterCategoryDropdownOption, TaskFilterCategoryDropdownOption, SpendManagementFilterCategoryDropdownOption, MatchingOperatorDropdownOption, CategoryCombinationOperator, hideCreatedByFilter, };
|
|
795
784
|
export { BillPaySetupViewState, ZeniAccountSetupViewState, BillPaySetupViewLocalData, ZeniAccountSetupViewLocalData, PlaidAccountState, fetchBillPaySetupView, fetchZeniAccountSetupView, enableSetup, getPaymentAccounts, getPlaidLinkToken, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, updateBusinessVerificationDetails, updatePaymentAccount, updatePaymentAccountLoginStatus, updatePaymentAccountStatus, establishPlaidConnection, updateMappedCashAccount, updatePrimaryFundingAccount, acceptBillPayTerms, acceptZeniAccountTerms, acceptBillPayUpdatedTerms, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearBillPaySetupView, clearZeniAccountSetupView, sendOtp, resendOtp, verifyOtp, CompanyDetails, CompanyOfficersDetails, BillPaySetupView, ZeniAccountSetupView, BillPayBusinessVerificationDetails, ZeniAccountBusinessVerificationDetails, TreasuryBusinessVerificationDetails, SetupViewState, SetupViewLocalData, SetupView, BusinessVerificationDetails, getBillPaySetupViewDetails, getPlaidAccountDetails, getZeniAccountSetupViewDetails, getBusinessVerificationDetails, getBillPayBusinessVerificationDetails, getZeniAccountBusinessVerificationDetails, getTreasuryBusinessVerificationDetails, getCommonSetupViewDetails, PlaidConnectionDetails, PlaidLinkTokenType, PlaidAccountKeyType, Token, FundingAccount, getTwoFactorAuthenticationView, getTwoFactorAuthenticationViewForCardUserOnboarding, getTwoFactorAuthenticationViewForChargeCardHolder, TwoFactorAuthenticationView, };
|
|
@@ -925,5 +914,5 @@ export { fetchTransactionActivityLog } from './view/transactionActivityLogView/t
|
|
|
925
914
|
export { TransactionActivityLogViewSelectorView, getTransactionActivityLogView, } from './view/transactionActivityLogView/transactionActivityLogViewSelector';
|
|
926
915
|
export { UserGroup } from './entity/userGroups/userGroupsState';
|
|
927
916
|
export { SessionManager } from './entity/tenant/SessionManager';
|
|
928
|
-
export type { SessionCallbacks, SessionConfig
|
|
917
|
+
export type { SessionCallbacks, SessionConfig } from './entity/tenant/sessionTypes';
|
|
929
918
|
export { DEFAULT_SESSION_CONFIG } from './entity/tenant/sessionTypes';
|