@zeniai/client-epic-state 5.0.67-beta0ND → 5.0.68
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/cacheOverrideFetchReducer.d.ts +1 -1
- package/lib/commonStateTypes/pusherActions.d.ts +1 -1
- package/lib/coreEpics.js +1 -1
- package/lib/entity/account/accountSelector.d.ts +1 -1
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/account/subAccountSelector.d.ts +1 -1
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerPayload.js +1 -3
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerReducer.js +1 -2
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerSelector.d.ts +1 -1
- package/lib/entity/chargeCardRepayment/chargeCardRepayment.d.ts +1 -1
- package/lib/entity/chargeCardTransaction/chargeCardTransactionReducer.js +1 -1
- package/lib/entity/creditAgent/creditAgentState.d.ts +1 -1
- package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +1 -1
- package/lib/entity/sectionProjectView/sectionProjectViewSelector.js +1 -1
- package/lib/entity/tenant/SessionManager.js +6 -3
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -2
- package/lib/entity/tenant/clearAllEpic.js +2 -2
- package/lib/entity/tenant/epic/saveAPIKeyConnectionEpic.js +6 -2
- package/lib/entity/tenant/epic/saveOAuthConnectionEpic.js +6 -2
- package/lib/entity/tenant/tenantReducer.js +6 -1
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +3 -1
- package/lib/epic.d.ts +1 -2
- package/lib/epic.js +1 -2
- package/lib/esm/coreEpics.js +1 -1
- package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerPayload.js +1 -3
- package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerReducer.js +1 -2
- package/lib/esm/entity/chargeCardTransaction/chargeCardTransactionReducer.js +1 -1
- package/lib/esm/entity/sectionProjectView/sectionProjectViewSelector.js +1 -1
- package/lib/esm/entity/tenant/SessionManager.js +4 -1
- package/lib/esm/entity/tenant/clearAllEpic.js +2 -2
- package/lib/esm/entity/tenant/epic/saveAPIKeyConnectionEpic.js +6 -2
- package/lib/esm/entity/tenant/epic/saveOAuthConnectionEpic.js +6 -2
- package/lib/esm/entity/tenant/tenantReducer.js +6 -1
- package/lib/esm/entity/transaction/payloadTypes/transactionLinePayload.js +3 -1
- package/lib/esm/epic.js +1 -2
- package/lib/esm/index.js +0 -2
- package/lib/esm/reducer.js +0 -6
- package/lib/esm/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.js +2 -5
- package/lib/esm/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.js +2 -5
- package/lib/esm/view/aiAccountantView/epics/triggerAiAccountantJobEpic.js +4 -1
- package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewSelector.js +1 -1
- package/lib/esm/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.js +1 -1
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.js +8 -6
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +1 -1
- package/lib/esm/view/financeStatement/financeStatementSelector.js +1 -1
- package/lib/esm/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +0 -4
- package/lib/esm/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +1 -1
- package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +1 -3
- package/lib/esm/view/taskManager/cannedResponsesView/epics/fetchCannedResponsesEpic.js +1 -1
- package/lib/esm/view/taskManager/cannedResponsesView/epics/saveCannedResponseEpic.js +1 -1
- package/lib/esm/view/taskManager/taskDetailView/epics/unsnoozeTaskEpic.js +1 -1
- package/lib/esm/view/transactionDetail/transactionDetailSelector.js +7 -1
- package/lib/index.d.ts +0 -3
- package/lib/index.js +1 -6
- package/lib/reducer.d.ts +0 -6
- package/lib/reducer.js +0 -6
- package/lib/view/aiAccountantView/aiAccountantViewPayload.d.ts +2 -2
- package/lib/view/aiAccountantView/aiAccountantViewReducer.d.ts +1 -1
- package/lib/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.js +2 -5
- package/lib/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.js +2 -5
- package/lib/view/aiAccountantView/epics/triggerAiAccountantJobEpic.js +4 -1
- package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.d.ts +1 -1
- package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.js +1 -1
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +2 -2
- package/lib/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.js +8 -6
- package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +1 -1
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -1
- package/lib/view/financeStatement/financeStatementSelector.js +1 -1
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.d.ts +1 -1
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.d.ts +1 -2
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +0 -4
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +1 -3
- package/lib/view/transactionDetail/transactionDetailSelector.js +7 -1
- package/lib/view/zeniOAuthView/zeniOAuthSelector.d.ts +1 -1
- package/package.json +9 -4
- package/lib/entity/scheduleActivityLog/scheduleActivityLogPayload.d.ts +0 -36
- package/lib/entity/scheduleActivityLog/scheduleActivityLogPayload.js +0 -55
- package/lib/entity/scheduleActivityLog/scheduleActivityLogReducer.d.ts +0 -6
- package/lib/entity/scheduleActivityLog/scheduleActivityLogReducer.js +0 -27
- package/lib/entity/scheduleActivityLog/scheduleActivityLogSelector.d.ts +0 -4
- package/lib/entity/scheduleActivityLog/scheduleActivityLogSelector.js +0 -17
- package/lib/entity/scheduleActivityLog/scheduleActivityLogState.d.ts +0 -51
- package/lib/entity/scheduleActivityLog/scheduleActivityLogState.js +0 -23
- package/lib/esm/entity/scheduleActivityLog/scheduleActivityLogPayload.js +0 -49
- package/lib/esm/entity/scheduleActivityLog/scheduleActivityLogReducer.js +0 -23
- package/lib/esm/entity/scheduleActivityLog/scheduleActivityLogSelector.js +0 -10
- package/lib/esm/entity/scheduleActivityLog/scheduleActivityLogState.js +0 -19
- package/lib/esm/view/scheduleActivityLogView/fetchScheduleActivityLogEpic.js +0 -43
- package/lib/esm/view/scheduleActivityLogView/scheduleActivityLogViewPayload.js +0 -1
- package/lib/esm/view/scheduleActivityLogView/scheduleActivityLogViewReducer.js +0 -47
- package/lib/esm/view/scheduleActivityLogView/scheduleActivityLogViewSelector.js +0 -33
- package/lib/esm/view/scheduleActivityLogView/scheduleActivityLogViewState.js +0 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
- package/lib/view/scheduleActivityLogView/fetchScheduleActivityLogEpic.d.ts +0 -9
- package/lib/view/scheduleActivityLogView/fetchScheduleActivityLogEpic.js +0 -47
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewPayload.d.ts +0 -8
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewPayload.js +0 -2
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewReducer.d.ts +0 -17
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewReducer.js +0 -51
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewSelector.d.ts +0 -8
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewSelector.js +0 -36
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewState.d.ts +0 -5
- package/lib/view/scheduleActivityLogView/scheduleActivityLogViewState.js +0 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EMPTY, concat, from, of } from 'rxjs';
|
|
2
2
|
import { catchError, concatMap, filter, mergeMap, take } from 'rxjs/operators';
|
|
3
|
+
import { toMonthYearPeriodId } from '../../../../commonStateTypes/timePeriod';
|
|
4
|
+
import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
|
|
3
5
|
import { isSuccessResponse } from '../../../../responsePayload';
|
|
4
|
-
import { isBatchDetailsStatusPendingOrProcessing, toBatchListItem, } from '../../payload/missingReceiptsPayload';
|
|
5
|
-
import { fetchBulkUploadBatchesSuccess, restoreBulkUploadAutomatchingOnMount, restoreBulkUploadMatchingState, } from '../../reducers/missingReceiptsViewReducer';
|
|
6
6
|
import { BULK_UPLOAD_BATCH_LIST_DATE_RANGE_DAYS } from '../../helpers/bulkUploadTiming';
|
|
7
7
|
import { rollingCalendarDateRangeInclusive } from '../../helpers/rollingCalendarDateRangeInclusive';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { isBatchDetailsStatusPendingOrProcessing, toBatchListItem, } from '../../payload/missingReceiptsPayload';
|
|
9
|
+
import { fetchBulkUploadBatchesSuccess, restoreBulkUploadAutomatchingOnMount, restoreBulkUploadMatchingState, } from '../../reducers/missingReceiptsViewReducer';
|
|
10
10
|
/**
|
|
11
11
|
* On missing-receipts entry / period switch, hydrate the automatching banner for the logged-in
|
|
12
12
|
* user without relying on UI-driven list fetches (the Missing tab does not fetch the batch list
|
|
@@ -49,10 +49,12 @@ export const restoreBulkUploadAutomatchingOnMountEpic = (actions$, state$, zeniA
|
|
|
49
49
|
bulkUpload.batchListFetchState.fetchState === 'Completed';
|
|
50
50
|
const listSource = alreadyCached
|
|
51
51
|
? of(null)
|
|
52
|
-
: zeniAPI
|
|
52
|
+
: zeniAPI
|
|
53
|
+
.getJSON(listUrl)
|
|
54
|
+
.pipe(catchError(() => of(null)));
|
|
53
55
|
return listSource.pipe(mergeMap((listResponse) => {
|
|
54
56
|
const batchList = alreadyCached
|
|
55
|
-
? bulkUpload.batchListByPeriod[periodId] ?? []
|
|
57
|
+
? (bulkUpload.batchListByPeriod[periodId] ?? [])
|
|
56
58
|
: listResponse != null &&
|
|
57
59
|
isSuccessResponse(listResponse) &&
|
|
58
60
|
listResponse.data != null
|
|
@@ -2,11 +2,11 @@ import { EMPTY, from, merge, of } from 'rxjs';
|
|
|
2
2
|
import { catchError, debounceTime, filter, mergeMap, switchMap, } from 'rxjs/operators';
|
|
3
3
|
import { updateTransactions } from '../../../../entity/transaction/transactionReducer';
|
|
4
4
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
|
|
5
|
+
import { rollingCalendarDateRangeInclusive } from '../../helpers/rollingCalendarDateRangeInclusive';
|
|
5
6
|
import { supportedTransactionPayloadToManualSearchResult } from '../../payload/missingReceiptsPayload';
|
|
6
7
|
import { searchTransactionsForManualMatch, searchTransactionsForManualMatchFailure, searchTransactionsForManualMatchSuccess, } from '../../reducers/missingReceiptsViewReducer';
|
|
7
8
|
import { DEFAULT_COMPLETED_SUB_TAB } from '../../types/completedSubTab';
|
|
8
9
|
import { toTransactionsSortKey } from '../../types/transactionsViewState';
|
|
9
|
-
import { rollingCalendarDateRangeInclusive } from '../../helpers/rollingCalendarDateRangeInclusive';
|
|
10
10
|
/**
|
|
11
11
|
* `auto_categorized` for manual transaction search (Unmatched).
|
|
12
12
|
* Backend contract TBD — align with `fetchTransactionCategorizationEpic` (`selectedTab === 'autoCategorized'`)
|
|
@@ -2,6 +2,7 @@ import { createSelector } from '@reduxjs/toolkit';
|
|
|
2
2
|
import { stripCompareAdditionalBalanceTypes } from '../../commonStateTypes/coaBalance/coaBalanceType';
|
|
3
3
|
import { newBalancesFilter, newBalancesFilterForDateRange, } from '../../commonStateTypes/coaBalance/coaBalancesFilter';
|
|
4
4
|
import { newBalancesFilterClassesView } from '../../commonStateTypes/coaBalance/coaBalancesFilterClassesView';
|
|
5
|
+
import { newBalancesFilterProjectView } from '../../commonStateTypes/coaBalance/coaBalancesFilterProjectView';
|
|
5
6
|
import { getNumberOfPeriods, } from '../../commonStateTypes/dataAvailable';
|
|
6
7
|
import { reduceAnyCompletedFetchState } from '../../commonStateTypes/reduceFetchState';
|
|
7
8
|
import { toTimeframeTick, } from '../../commonStateTypes/timeframeTick';
|
|
@@ -9,7 +10,6 @@ import { extractThisPeriod } from '../../commonStateTypes/viewAndReport/thisPeri
|
|
|
9
10
|
import { getBalanceSheet } from '../balanceSheet/balanceSheetSelector';
|
|
10
11
|
import { getCashFlow } from '../cashFlow/cashFlowSelector';
|
|
11
12
|
import { getProfitAndLossReport, } from '../profitAndLoss/profitAndLossSelector';
|
|
12
|
-
import { newBalancesFilterProjectView } from '../../commonStateTypes/coaBalance/coaBalancesFilterProjectView';
|
|
13
13
|
import { getProfitAndLossClassesHorizontalView } from '../profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector';
|
|
14
14
|
import { getProfitAndLossClassesView } from '../profitAndLossClassesView/profitAndLossClassesViewSelector';
|
|
15
15
|
import { getProfitAndLossProjectView } from '../profitAndLossProjectView/profitAndLossProjectViewSelector';
|
|
@@ -2,7 +2,6 @@ import { concat, from } from 'rxjs';
|
|
|
2
2
|
import { filter, mergeMap } from 'rxjs/operators';
|
|
3
3
|
import { fetchAccountList } from '../../../accountList/accountListReducer';
|
|
4
4
|
import { fetchClassList } from '../../../classList/classListReducer';
|
|
5
|
-
import { fetchScheduleActivityLog } from '../../../scheduleActivityLogView/scheduleActivityLogViewReducer';
|
|
6
5
|
import { getAccountsTypesForScheduleEpics } from '../../scheduleListView/scheduleListHelper';
|
|
7
6
|
import { fetchScheduleDetails, fetchScheduleDetailsPage, } from '../scheduleDetailReducer';
|
|
8
7
|
export const fetchScheduleDetailsPageEpic = (actions$, state$) => actions$.pipe(filter(fetchScheduleDetailsPage.match), mergeMap((action) => {
|
|
@@ -20,9 +19,6 @@ export const fetchScheduleDetailsPageEpic = (actions$, state$) => actions$.pipe(
|
|
|
20
19
|
}
|
|
21
20
|
if (action.payload.selectedJeScheduleDetailId != null) {
|
|
22
21
|
scheduleDetailsActions.push(fetchScheduleDetails(action.payload.scheduleType, action.payload.selectedJeScheduleDetailId, action.payload.cacheOverride));
|
|
23
|
-
// Prefetch the schedule activity log alongside the detail page so the
|
|
24
|
-
// side panel renders instantly when the user taps the navbar icon.
|
|
25
|
-
scheduleDetailsActions.push(fetchScheduleActivityLog(action.payload.selectedJeScheduleDetailId));
|
|
26
22
|
}
|
|
27
23
|
return concat(from(scheduleDetailsActions));
|
|
28
24
|
}));
|
package/lib/esm/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createSlice } from '@reduxjs/toolkit';
|
|
2
2
|
import { mapSortOrderPayloadToSortOrder, } from '../../../../commonPayloadTypes/sortOrderPayload';
|
|
3
|
+
import { addChargeCardTransactionFromPusher, addDeclinedChargeCardTransactionFromPusher, } from '../../../../commonStateTypes/pusherActions';
|
|
3
4
|
import { toAttachment, } from '../../../../entity/transaction/payloadTypes/attachmentPayload';
|
|
4
5
|
import { emptyChargeCardDetail, mapChargeCardTransactionStatisticsPayloadToChargeCardTransactionStatistics, toChargeCardTransactionSortKeyType, } from './chargeCardDetail';
|
|
5
|
-
import { addChargeCardTransactionFromPusher, addDeclinedChargeCardTransactionFromPusher, } from '../../../../commonStateTypes/pusherActions';
|
|
6
6
|
export const initialState = {
|
|
7
7
|
detailById: {},
|
|
8
8
|
recurringExpensesByChargeCardId: {},
|
|
@@ -159,9 +159,7 @@ const chargeCardList = createSlice({
|
|
|
159
159
|
},
|
|
160
160
|
updateCreditAccountBalanceFromPusher(draft, action) {
|
|
161
161
|
const { currencyCode, currencySymbol } = action.payload;
|
|
162
|
-
const amt = (v) => v !== undefined
|
|
163
|
-
? toAmount(v, currencyCode, currencySymbol)
|
|
164
|
-
: undefined;
|
|
162
|
+
const amt = (v) => v !== undefined ? toAmount(v, currencyCode, currencySymbol) : undefined;
|
|
165
163
|
draft.creditAccount.available =
|
|
166
164
|
amt(action.payload.available) ?? draft.creditAccount.available;
|
|
167
165
|
draft.creditAccount.balance =
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { of } from 'rxjs';
|
|
2
|
-
import { catchError, filter,
|
|
2
|
+
import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
|
|
3
3
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
|
|
4
4
|
import { mapCannedResponsePayloadToCannedResponse, } from '../cannedResponsesPayload';
|
|
5
5
|
import { fetchCannedResponses, updateCannedResponses, updateCannedResponsesFetchStatus, } from '../cannedResponsesReducer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { of } from 'rxjs';
|
|
2
|
-
import { catchError, filter,
|
|
2
|
+
import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
|
|
3
3
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
|
|
4
4
|
import { fetchCannedResponses, saveCannedResponse, saveCannedResponseFailure, saveCannedResponseSuccess, } from '../cannedResponsesReducer';
|
|
5
5
|
export const saveCannedResponseEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(saveCannedResponse.match), switchMap((action) => {
|
|
@@ -4,7 +4,7 @@ import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
|
4
4
|
import { updateTasks } from '../../../../entity/task/taskReducer';
|
|
5
5
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
|
|
6
6
|
import { fetchTaskList, removeTaskFromList, } from '../../taskListView/taskListReducer';
|
|
7
|
-
import { snoozeTaskSuccessOrFailure, unsnoozeTask
|
|
7
|
+
import { snoozeTaskSuccessOrFailure, unsnoozeTask } from '../taskDetailReducer';
|
|
8
8
|
export const unsnoozeTaskEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(unsnoozeTask.match), mergeMap((action) => handleUnsnoozeTask(action.payload.taskId, zeniAPI)));
|
|
9
9
|
const handleUnsnoozeTask = (taskId, zeniAPI) => {
|
|
10
10
|
const unsnoozeTaskApi$ = zeniAPI.deleteAndGetJSON(`${zeniAPI.apiEndPoints.taskMicroServiceBaseUrl}/1.0/task-manager/tasks/${taskId}/snooze`);
|
|
@@ -56,7 +56,13 @@ export const getTransactionDetail = (state, transactionId, fetchLinkedTransactio
|
|
|
56
56
|
const isAccountingClassesEnabled = getIsAccountingClassesEnabled(state);
|
|
57
57
|
const classList = isAccountingClassesEnabled
|
|
58
58
|
? getClassList(classState, classListState)
|
|
59
|
-
: {
|
|
59
|
+
: {
|
|
60
|
+
classes: [],
|
|
61
|
+
nestedClassHierarchy: [],
|
|
62
|
+
fetchState: 'Completed',
|
|
63
|
+
error: undefined,
|
|
64
|
+
version: 0,
|
|
65
|
+
};
|
|
60
66
|
const isAccountingProjectsEnabled = getIsAccountingProjectsEnabled(state);
|
|
61
67
|
const projectList = isAccountingProjectsEnabled
|
|
62
68
|
? getProjectList(projectState, projectListState)
|
package/lib/index.d.ts
CHANGED
|
@@ -929,9 +929,6 @@ export type { TransactionActivityLog } from './entity/transactionActivityLog/tra
|
|
|
929
929
|
export { BULK_UPLOAD_AUTOMATCHING_TIMEOUT_MS, BULK_UPLOAD_BAR_COMPLETE_HOLD_MS, } from './view/expenseAutomationView/helpers/bulkUploadTiming';
|
|
930
930
|
export { fetchTransactionActivityLog } from './view/transactionActivityLogView/transactionActivityLogViewReducer';
|
|
931
931
|
export { TransactionActivityLogViewSelectorView, getTransactionActivityLogView, } from './view/transactionActivityLogView/transactionActivityLogViewSelector';
|
|
932
|
-
export type { ScheduleActivityLog } from './entity/scheduleActivityLog/scheduleActivityLogState';
|
|
933
|
-
export { fetchScheduleActivityLog, clearScheduleActivityLogView, } from './view/scheduleActivityLogView/scheduleActivityLogViewReducer';
|
|
934
|
-
export { ScheduleActivityLogViewSelectorView, getScheduleActivityLogView, } from './view/scheduleActivityLogView/scheduleActivityLogViewSelector';
|
|
935
932
|
export { UserGroup } from './entity/userGroups/userGroupsState';
|
|
936
933
|
export { SessionManager } from './entity/tenant/SessionManager';
|
|
937
934
|
export type { SessionCallbacks, SessionConfig, } from './entity/tenant/sessionTypes';
|
package/lib/index.js
CHANGED
|
@@ -71,7 +71,7 @@ exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCou
|
|
|
71
71
|
exports.submitExpressPay = exports.updateExpressPayFormLocalData = exports.fetchExpressPayInitialDetails = exports.getIntlWireVerificationView = exports.updateVerificationFormLocalData = exports.submitInternationalVerificationForm = exports.fetchInternationalVerificationForm = exports.createTaskFromTaskGroupTemplate = exports.getCompanyTaskManagerView = exports.fetchTaskManagerMetrics = exports.fetchCompanyTaskManagerView = exports.toRecurringFrequency = exports.toDayOfWeek = exports.getRecurringEndDateFromCount = exports.getMinAllowedEndDate = exports.SEMI_WEEKLY_REQUIRED_DAYS_COUNT = exports.ALL_WEEK_DAYS = 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.isFeatureInterestRegistered = exports.getRegisteredInterestsByFeature = exports.getRegisteredInterests = exports.getFeatureNotificationView = exports.notifyMeForFeature = exports.fetchRegisteredInterests = exports.clearFeatureNotificationView = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = exports.updateNotificationViewAllNotificationsStatus = void 0;
|
|
72
72
|
exports.acceptMasterTOS = exports.fetchChatHistory = exports.stopSubmitQuestion = exports.stopSubmit = exports.createSessionAndSubmit = exports.clearLastContextMessage = exports.clearDeleteChatSessionStatus = exports.clearCurrentSessionId = exports.clearAiCfoView = exports.setSession = exports.clearInput = exports.updateCotCollapsedState = exports.updateCurrentInput = exports.updateAiCfoViewScrollPosition = exports.submitQuestion = exports.createSession = exports.fetchChatSessionsForUser = exports.getAiAccountantCockpitView = exports.updateAiAccountantUIState = exports.triggerAiAccountantJob = exports.setSelectedTenantIdsForJobTrigger = exports.fetchAiAccountantJobs = exports.fetchAiAccountantCustomers = exports.clearAiAccountantView = exports.cancelAiAccountantOnboarding = exports.getAiAccountantJobsByTenantId = exports.getAiAccountantCustomers = exports.updateAiAccountantJobs = exports.updateAiAccountantCustomer = exports.updateAiAccountantCustomers = exports.clearAllAiAccountantCustomers = exports.toAiAccountantJob = exports.toAiAccountantEnrollment = exports.toAiAccountantCustomer = exports.toAiAccountantOperationType = exports.toAiAccountantJobStatus = exports.toAiAccountantEnrollmentStatus = exports.getAllowedOperationsForStatus = exports.getTreasuryFundsMaximumYield = exports.getTreasurySetupViewDetails = exports.updateTreasuryVideoViewed = exports.updateFundAllocationLocalData = exports.fetchPortfolioAllocation = exports.updatePortfolioAllocation = exports.fetchTreasuryFunds = exports.clearTreasurySetupView = exports.fetchTreasurySetupView = exports.acceptTreasuryTerms = exports.getExpressPayView = exports.resetExpressPayLocalData = void 0;
|
|
73
73
|
exports.updateAutoTransferRule = exports.createAutoTransferRule = exports.fetchAutoTransferRules = exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = 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.getSuggestedQuestionsForPageContext = exports.getAiCfoView = exports.clearAiCfoSidePanelHostPageContext = exports.applyAiCfoSidePanelHostPageTransition = exports.fetchSuggestedQuestionsFailure = exports.fetchSuggestedQuestionsSuccess = exports.fetchSuggestedQuestions = exports.updateResponseState = exports.deleteChatSession = void 0;
|
|
74
|
-
exports.DEFAULT_SESSION_CONFIG = exports.SessionManager = exports.
|
|
74
|
+
exports.DEFAULT_SESSION_CONFIG = exports.SessionManager = exports.getTransactionActivityLogView = exports.fetchTransactionActivityLog = exports.BULK_UPLOAD_BAR_COMPLETE_HOLD_MS = exports.BULK_UPLOAD_AUTOMATCHING_TIMEOUT_MS = exports.getAutoTransferRuleHistory = exports.getAutoTransferRuleById = exports.getAutoTransferRules = exports.clearRuleUpdateLocalData = exports.updateRuleLocalData = exports.fetchAutoTransferReviewDetail = exports.fetchAutoTransferRuleHistory = exports.deleteAutoTransferRule = void 0;
|
|
75
75
|
const allowedValue_1 = require("./commonStateTypes/allowedValue");
|
|
76
76
|
Object.defineProperty(exports, "isAllowedValueWithCode", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithCode; } });
|
|
77
77
|
Object.defineProperty(exports, "isAllowedValueWithID", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithID; } });
|
|
@@ -2303,11 +2303,6 @@ var transactionActivityLogViewReducer_1 = require("./view/transactionActivityLog
|
|
|
2303
2303
|
Object.defineProperty(exports, "fetchTransactionActivityLog", { enumerable: true, get: function () { return transactionActivityLogViewReducer_1.fetchTransactionActivityLog; } });
|
|
2304
2304
|
var transactionActivityLogViewSelector_1 = require("./view/transactionActivityLogView/transactionActivityLogViewSelector");
|
|
2305
2305
|
Object.defineProperty(exports, "getTransactionActivityLogView", { enumerable: true, get: function () { return transactionActivityLogViewSelector_1.getTransactionActivityLogView; } });
|
|
2306
|
-
var scheduleActivityLogViewReducer_1 = require("./view/scheduleActivityLogView/scheduleActivityLogViewReducer");
|
|
2307
|
-
Object.defineProperty(exports, "fetchScheduleActivityLog", { enumerable: true, get: function () { return scheduleActivityLogViewReducer_1.fetchScheduleActivityLog; } });
|
|
2308
|
-
Object.defineProperty(exports, "clearScheduleActivityLogView", { enumerable: true, get: function () { return scheduleActivityLogViewReducer_1.clearScheduleActivityLogView; } });
|
|
2309
|
-
var scheduleActivityLogViewSelector_1 = require("./view/scheduleActivityLogView/scheduleActivityLogViewSelector");
|
|
2310
|
-
Object.defineProperty(exports, "getScheduleActivityLogView", { enumerable: true, get: function () { return scheduleActivityLogViewSelector_1.getScheduleActivityLogView; } });
|
|
2311
2306
|
// ── Session Management ──────────────────────────────────────────────
|
|
2312
2307
|
var SessionManager_1 = require("./entity/tenant/SessionManager");
|
|
2313
2308
|
Object.defineProperty(exports, "SessionManager", { enumerable: true, get: function () { return SessionManager_1.SessionManager; } });
|
package/lib/reducer.d.ts
CHANGED
|
@@ -41,7 +41,6 @@ import { PaymentInstrumentState } from './entity/paymentInstrument/paymentInstru
|
|
|
41
41
|
import { AccountingSummaryState } from './entity/portfolio/accountingSummary/accountingSummaryState';
|
|
42
42
|
import { ProjectState } from './entity/project/projectReducer';
|
|
43
43
|
import { ReimbursementState } from './entity/reimbursement/reimbursementState';
|
|
44
|
-
import { ScheduleActivityLogState } from './entity/scheduleActivityLog/scheduleActivityLogState';
|
|
45
44
|
import { SectionAccountsViewState } from './entity/sectionAccountsView/sectionAccountsViewState';
|
|
46
45
|
import { SectionClassesViewStateV2 } from './entity/sectionClassesViewV2/sectionClassesViewState';
|
|
47
46
|
import { SectionProjectViewState } from './entity/sectionProjectView/sectionProjectViewState';
|
|
@@ -138,7 +137,6 @@ import { ReportsResyncState } from './view/reportsResync/reportsResyncState';
|
|
|
138
137
|
import { RevenueWithForecastState } from './view/revenue/revenueState';
|
|
139
138
|
import { RevenueClassesViewState } from './view/revenueClassesView/revenueClassesViewState';
|
|
140
139
|
import { ReviewCompanyViewState } from './view/reviewCompanyView/reviewCompanyViewState';
|
|
141
|
-
import { ScheduleActivityLogViewState } from './view/scheduleActivityLogView/scheduleActivityLogViewState';
|
|
142
140
|
import { ScheduleAccruedDetailViewState } from './view/scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailState';
|
|
143
141
|
import { ScheduleDetailViewState } from './view/scheduleView/scheduleDetailView/scheduleDetailState';
|
|
144
142
|
import { ScheduleListViewState } from './view/scheduleView/scheduleListView/scheduleListState';
|
|
@@ -267,7 +265,6 @@ type EntitiesState = {
|
|
|
267
265
|
recurringBillState: RecurringBillState;
|
|
268
266
|
reimbursementConfigState: ReimbursementConfigState;
|
|
269
267
|
reimbursementState: ReimbursementState;
|
|
270
|
-
scheduleActivityLogState: ScheduleActivityLogState;
|
|
271
268
|
sectionAccountsViewState: SectionAccountsViewState;
|
|
272
269
|
sectionClassesViewStateV2: SectionClassesViewStateV2;
|
|
273
270
|
sectionProjectViewState: SectionProjectViewState;
|
|
@@ -407,7 +404,6 @@ type ViewsState = {
|
|
|
407
404
|
revenueState: RevenueWithForecastState;
|
|
408
405
|
reviewCompanyViewState: ReviewCompanyViewState;
|
|
409
406
|
scheduleAccruedDetailState: ScheduleAccruedDetailViewState;
|
|
410
|
-
scheduleActivityLogViewState: ScheduleActivityLogViewState;
|
|
411
407
|
scheduleDetailState: ScheduleDetailViewState;
|
|
412
408
|
scheduleListState: ScheduleListViewState;
|
|
413
409
|
settingsViewState: SettingsViewState;
|
|
@@ -568,7 +564,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
568
564
|
revenueClassesViewState: RevenueClassesViewState;
|
|
569
565
|
revenueState: RevenueWithForecastState;
|
|
570
566
|
reviewCompanyViewState: ReviewCompanyViewState;
|
|
571
|
-
scheduleActivityLogViewState: ScheduleActivityLogViewState;
|
|
572
567
|
scheduleAccruedDetailState: ScheduleAccruedDetailViewState;
|
|
573
568
|
scheduleDetailState: ScheduleDetailViewState;
|
|
574
569
|
scheduleListState: ScheduleListViewState;
|
|
@@ -658,7 +653,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
658
653
|
paymentInstrumentState: PaymentInstrumentState;
|
|
659
654
|
recurringBillState: RecurringBillState;
|
|
660
655
|
reimbursementState: ReimbursementState;
|
|
661
|
-
scheduleActivityLogState: ScheduleActivityLogState;
|
|
662
656
|
sectionAccountsViewState: SectionAccountsViewState;
|
|
663
657
|
sectionClassesViewStateV2: SectionClassesViewStateV2;
|
|
664
658
|
sectionProjectViewState: SectionProjectViewState;
|
package/lib/reducer.js
CHANGED
|
@@ -81,7 +81,6 @@ const paymentInstrumentReducer_1 = __importStar(require("./entity/paymentInstrum
|
|
|
81
81
|
const accountingSummaryReducer_1 = __importStar(require("./entity/portfolio/accountingSummary/accountingSummaryReducer"));
|
|
82
82
|
const projectReducer_1 = __importStar(require("./entity/project/projectReducer"));
|
|
83
83
|
const reimbursementReducer_1 = __importStar(require("./entity/reimbursement/reimbursementReducer"));
|
|
84
|
-
const scheduleActivityLogReducer_1 = __importStar(require("./entity/scheduleActivityLog/scheduleActivityLogReducer"));
|
|
85
84
|
const sectionAccountsViewReducer_1 = __importStar(require("./entity/sectionAccountsView/sectionAccountsViewReducer"));
|
|
86
85
|
const sectionClassesViewReducer_1 = __importStar(require("./entity/sectionClassesViewV2/sectionClassesViewReducer"));
|
|
87
86
|
const sectionProjectViewReducer_1 = __importStar(require("./entity/sectionProjectView/sectionProjectViewReducer"));
|
|
@@ -179,7 +178,6 @@ const reportsResyncReducer_1 = __importStar(require("./view/reportsResync/report
|
|
|
179
178
|
const revenueReducer_1 = __importStar(require("./view/revenue/revenueReducer"));
|
|
180
179
|
const revenueClassesViewReducer_1 = __importStar(require("./view/revenueClassesView/revenueClassesViewReducer"));
|
|
181
180
|
const reviewCompanyViewReducer_1 = __importStar(require("./view/reviewCompanyView/reviewCompanyViewReducer"));
|
|
182
|
-
const scheduleActivityLogViewReducer_1 = __importStar(require("./view/scheduleActivityLogView/scheduleActivityLogViewReducer"));
|
|
183
181
|
const scheduleAccruedDetailReducer_1 = __importStar(require("./view/scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailReducer"));
|
|
184
182
|
const scheduleDetailReducer_1 = __importStar(require("./view/scheduleView/scheduleDetailView/scheduleDetailReducer"));
|
|
185
183
|
const scheduleListReducer_1 = __importStar(require("./view/scheduleView/scheduleListView/scheduleListReducer"));
|
|
@@ -309,7 +307,6 @@ const initialEntitiesState = {
|
|
|
309
307
|
recurringBillState: recurringBillsReducer_1.initialState,
|
|
310
308
|
reimbursementConfigState: reimbursementConfigReducer_1.initialState,
|
|
311
309
|
reimbursementState: reimbursementReducer_1.initialState,
|
|
312
|
-
scheduleActivityLogState: scheduleActivityLogReducer_1.initialState,
|
|
313
310
|
sectionAccountsViewState: sectionAccountsViewReducer_1.initialState,
|
|
314
311
|
sectionClassesViewStateV2: sectionClassesViewReducer_1.initialState,
|
|
315
312
|
sectionProjectViewState: sectionProjectViewReducer_1.initialState,
|
|
@@ -448,7 +445,6 @@ const initialViewsState = {
|
|
|
448
445
|
revenueClassesViewState: revenueClassesViewReducer_1.initialState,
|
|
449
446
|
revenueState: revenueReducer_1.initialState,
|
|
450
447
|
reviewCompanyViewState: reviewCompanyViewReducer_1.initialState,
|
|
451
|
-
scheduleActivityLogViewState: scheduleActivityLogViewReducer_1.initialState,
|
|
452
448
|
scheduleAccruedDetailState: scheduleAccruedDetailReducer_1.initialState,
|
|
453
449
|
scheduleDetailState: scheduleDetailReducer_1.initialState,
|
|
454
450
|
scheduleListState: scheduleListReducer_1.initialState,
|
|
@@ -547,7 +543,6 @@ const entityReducers = {
|
|
|
547
543
|
recurringBillState: recurringBillsReducer_1.default,
|
|
548
544
|
reimbursementConfigState: reimbursementConfigReducer_1.default,
|
|
549
545
|
reimbursementState: reimbursementReducer_1.default,
|
|
550
|
-
scheduleActivityLogState: scheduleActivityLogReducer_1.default,
|
|
551
546
|
sectionAccountsViewState: sectionAccountsViewReducer_1.default,
|
|
552
547
|
sectionClassesViewStateV2: sectionClassesViewReducer_1.default,
|
|
553
548
|
sectionProjectViewState: sectionProjectViewReducer_1.default,
|
|
@@ -686,7 +681,6 @@ const viewReducers = {
|
|
|
686
681
|
revenueClassesViewState: revenueClassesViewReducer_1.default,
|
|
687
682
|
revenueState: revenueReducer_1.default,
|
|
688
683
|
reviewCompanyViewState: reviewCompanyViewReducer_1.default,
|
|
689
|
-
scheduleActivityLogViewState: scheduleActivityLogViewReducer_1.default,
|
|
690
684
|
scheduleAccruedDetailState: scheduleAccruedDetailReducer_1.default,
|
|
691
685
|
scheduleDetailState: scheduleDetailReducer_1.default,
|
|
692
686
|
scheduleListState: scheduleListReducer_1.default,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ZeniAPIResponse } from '../../responsePayload';
|
|
2
|
-
export { AiAccountantCustomerPayload, AiAccountantEnrollmentPayload, AiAccountantJobPayload, toAiAccountantCustomer, toAiAccountantEnrollment, toAiAccountantJob, } from '../../entity/aiAccountantCustomer/aiAccountantCustomerPayload';
|
|
3
1
|
import type { AiAccountantCustomerPayload, AiAccountantJobPayload } from '../../entity/aiAccountantCustomer/aiAccountantCustomerPayload';
|
|
4
2
|
import { UserPayload } from '../../entity/user/userPayload';
|
|
3
|
+
import { ZeniAPIResponse } from '../../responsePayload';
|
|
4
|
+
export { AiAccountantCustomerPayload, AiAccountantEnrollmentPayload, AiAccountantJobPayload, toAiAccountantCustomer, toAiAccountantEnrollment, toAiAccountantJob, } from '../../entity/aiAccountantCustomer/aiAccountantCustomerPayload';
|
|
5
5
|
export interface AiAccountantCustomersResponseData {
|
|
6
6
|
customers: AiAccountantCustomerPayload[];
|
|
7
7
|
users: UserPayload[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AiAccountantCustomerPayload } from '../../entity/aiAccountantCustomer/aiAccountantCustomerPayload';
|
|
2
1
|
import { ID } from '../../commonStateTypes/common';
|
|
2
|
+
import { AiAccountantCustomerPayload } from '../../entity/aiAccountantCustomer/aiAccountantCustomerPayload';
|
|
3
3
|
import { ZeniAPIStatus } from '../../responsePayload';
|
|
4
4
|
import { AiAccountantUIState, AiAccountantViewState } from './aiAccountantViewState';
|
|
5
5
|
export declare const initialAiAccountantViewState: AiAccountantViewState;
|
|
@@ -10,9 +10,7 @@ const aiAccountantViewReducer_1 = require("../aiAccountantViewReducer");
|
|
|
10
10
|
const fetchAiAccountantCustomersEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators_1.filter)(aiAccountantViewReducer_1.fetchAiAccountantCustomers.match), (0, operators_1.switchMap)(() => {
|
|
11
11
|
const base = `${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/cockpit-panels`;
|
|
12
12
|
const url = `${base}/ai-accountant/customers`;
|
|
13
|
-
return zeniAPI
|
|
14
|
-
.getJSON(url)
|
|
15
|
-
.pipe((0, operators_1.mergeMap)((response) => {
|
|
13
|
+
return zeniAPI.getJSON(url).pipe((0, operators_1.mergeMap)((response) => {
|
|
16
14
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
17
15
|
const customers = response.data?.customers ?? [];
|
|
18
16
|
const users = response.data?.users ?? [];
|
|
@@ -25,7 +23,6 @@ const fetchAiAccountantCustomersEpic = (actions$, _, zeniAPI) => actions$.pipe((
|
|
|
25
23
|
else {
|
|
26
24
|
return (0, rxjs_1.of)((0, aiAccountantViewReducer_1.updateAiAccountantCustomersFailure)(response.status));
|
|
27
25
|
}
|
|
28
|
-
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, aiAccountantViewReducer_1.updateAiAccountantCustomersFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'AI Accountant customers fetch failed: ' +
|
|
29
|
-
JSON.stringify(error))))));
|
|
26
|
+
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, aiAccountantViewReducer_1.updateAiAccountantCustomersFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'AI Accountant customers fetch failed: ' + JSON.stringify(error))))));
|
|
30
27
|
}));
|
|
31
28
|
exports.fetchAiAccountantCustomersEpic = fetchAiAccountantCustomersEpic;
|
|
@@ -23,9 +23,7 @@ const fetchAiAccountantJobsEpic = (actions$, state$, zeniAPI) => actions$.pipe((
|
|
|
23
23
|
}
|
|
24
24
|
const base = `${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/cockpit-panels`;
|
|
25
25
|
const url = `${base}/ai-accountant/jobs?${params.toString()}`;
|
|
26
|
-
return zeniAPI
|
|
27
|
-
.getJSON(url)
|
|
28
|
-
.pipe((0, operators_1.mergeMap)((response) => {
|
|
26
|
+
return zeniAPI.getJSON(url).pipe((0, operators_1.mergeMap)((response) => {
|
|
29
27
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
30
28
|
const jobs = response.data?.jobs ?? [];
|
|
31
29
|
const users = response.data?.users ?? [];
|
|
@@ -44,8 +42,7 @@ const fetchAiAccountantJobsEpic = (actions$, state$, zeniAPI) => actions$.pipe((
|
|
|
44
42
|
}
|
|
45
43
|
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, aiAccountantViewReducer_1.updateAiAccountantJobsFailure)({
|
|
46
44
|
tenantId,
|
|
47
|
-
error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'AI Accountant jobs fetch failed: ' +
|
|
48
|
-
JSON.stringify(error)),
|
|
45
|
+
error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'AI Accountant jobs fetch failed: ' + JSON.stringify(error)),
|
|
49
46
|
}))));
|
|
50
47
|
}));
|
|
51
48
|
exports.fetchAiAccountantJobsEpic = fetchAiAccountantJobsEpic;
|
|
@@ -54,7 +54,10 @@ const triggerAiAccountantJobEpic = (actions$, state$, zeniAPI) => actions$.pipe(
|
|
|
54
54
|
messageText: 'failed',
|
|
55
55
|
type: 'error',
|
|
56
56
|
variables: [
|
|
57
|
-
{
|
|
57
|
+
{
|
|
58
|
+
variableName: '__reason__',
|
|
59
|
+
variableValue: 'Unexpected error',
|
|
60
|
+
},
|
|
58
61
|
],
|
|
59
62
|
}),
|
|
60
63
|
])));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FetchState } from '../../commonStateTypes/common';
|
|
1
2
|
import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
2
3
|
import { Company } from '../../entity/company/companyStateTypes';
|
|
3
4
|
import { Tag } from '../../entity/tag/tagState';
|
|
@@ -5,7 +6,6 @@ import { Task } from '../../entity/task/taskState';
|
|
|
5
6
|
import { User } from '../../entity/user/userState';
|
|
6
7
|
import { RootState } from '../../reducer';
|
|
7
8
|
import { CompanyTaskManagerViewUIState, TaskManagerMetrics } from './companyTaskManagerViewState';
|
|
8
|
-
import { FetchState } from '../../commonStateTypes/common';
|
|
9
9
|
export interface TaskWithCompanyDetail {
|
|
10
10
|
assignees: User[];
|
|
11
11
|
company: Company;
|
|
@@ -7,7 +7,7 @@ const tagSelector_1 = require("../../entity/tag/tagSelector");
|
|
|
7
7
|
const taskSelector_1 = require("../../entity/task/taskSelector");
|
|
8
8
|
const userSelector_1 = require("../../entity/user/userSelector");
|
|
9
9
|
exports.getCompanyTaskManagerView = (0, toolkit_1.createSelector)((state) => state.companyTaskManagerViewState, (state) => state.companyState, (state) => state.userState, (state) => state.taskState, (state) => state.tagState, (companyTaskManagerViewState, companyState, userState, taskState, tagState) => {
|
|
10
|
-
const { taskIds, uiState, fetchState, error, totalTaskCount, metrics, metricsFetchState } = companyTaskManagerViewState;
|
|
10
|
+
const { taskIds, uiState, fetchState, error, totalTaskCount, metrics, metricsFetchState, } = companyTaskManagerViewState;
|
|
11
11
|
const tasksList = [];
|
|
12
12
|
taskIds.forEach((taskId) => {
|
|
13
13
|
const task = (0, taskSelector_1.getTaskById)(taskState, taskId);
|
|
@@ -6,10 +6,10 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const timePeriod_1 = require("../../../../commonStateTypes/timePeriod");
|
|
7
7
|
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
8
8
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
9
|
-
const missingReceiptsPayload_1 = require("../../payload/missingReceiptsPayload");
|
|
10
|
-
const missingReceiptsViewReducer_1 = require("../../reducers/missingReceiptsViewReducer");
|
|
11
9
|
const bulkUploadTiming_1 = require("../../helpers/bulkUploadTiming");
|
|
12
10
|
const rollingCalendarDateRangeInclusive_1 = require("../../helpers/rollingCalendarDateRangeInclusive");
|
|
11
|
+
const missingReceiptsPayload_1 = require("../../payload/missingReceiptsPayload");
|
|
12
|
+
const missingReceiptsViewReducer_1 = require("../../reducers/missingReceiptsViewReducer");
|
|
13
13
|
const fetchBulkUploadBatchesEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(missingReceiptsViewReducer_1.fetchBulkUploadBatches.match), (0, operators_1.switchMap)((action) => {
|
|
14
14
|
const { cacheOverride } = action.payload;
|
|
15
15
|
const state = state$.value;
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.restoreBulkUploadAutomatchingOnMountEpic = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const timePeriod_1 = require("../../../../commonStateTypes/timePeriod");
|
|
7
|
+
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
6
8
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
7
|
-
const missingReceiptsPayload_1 = require("../../payload/missingReceiptsPayload");
|
|
8
|
-
const missingReceiptsViewReducer_1 = require("../../reducers/missingReceiptsViewReducer");
|
|
9
9
|
const bulkUploadTiming_1 = require("../../helpers/bulkUploadTiming");
|
|
10
10
|
const rollingCalendarDateRangeInclusive_1 = require("../../helpers/rollingCalendarDateRangeInclusive");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const missingReceiptsPayload_1 = require("../../payload/missingReceiptsPayload");
|
|
12
|
+
const missingReceiptsViewReducer_1 = require("../../reducers/missingReceiptsViewReducer");
|
|
13
13
|
/**
|
|
14
14
|
* On missing-receipts entry / period switch, hydrate the automatching banner for the logged-in
|
|
15
15
|
* user without relying on UI-driven list fetches (the Missing tab does not fetch the batch list
|
|
@@ -52,10 +52,12 @@ const restoreBulkUploadAutomatchingOnMountEpic = (actions$, state$, zeniAPI) =>
|
|
|
52
52
|
bulkUpload.batchListFetchState.fetchState === 'Completed';
|
|
53
53
|
const listSource = alreadyCached
|
|
54
54
|
? (0, rxjs_1.of)(null)
|
|
55
|
-
: zeniAPI
|
|
55
|
+
: zeniAPI
|
|
56
|
+
.getJSON(listUrl)
|
|
57
|
+
.pipe((0, operators_1.catchError)(() => (0, rxjs_1.of)(null)));
|
|
56
58
|
return listSource.pipe((0, operators_1.mergeMap)((listResponse) => {
|
|
57
59
|
const batchList = alreadyCached
|
|
58
|
-
? bulkUpload.batchListByPeriod[periodId] ?? []
|
|
60
|
+
? (bulkUpload.batchListByPeriod[periodId] ?? [])
|
|
59
61
|
: listResponse != null &&
|
|
60
62
|
(0, responsePayload_1.isSuccessResponse)(listResponse) &&
|
|
61
63
|
listResponse.data != null
|
package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js
CHANGED
|
@@ -5,11 +5,11 @@ const rxjs_1 = require("rxjs");
|
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const transactionReducer_1 = require("../../../../entity/transaction/transactionReducer");
|
|
7
7
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
8
|
+
const rollingCalendarDateRangeInclusive_1 = require("../../helpers/rollingCalendarDateRangeInclusive");
|
|
8
9
|
const missingReceiptsPayload_1 = require("../../payload/missingReceiptsPayload");
|
|
9
10
|
const missingReceiptsViewReducer_1 = require("../../reducers/missingReceiptsViewReducer");
|
|
10
11
|
const completedSubTab_1 = require("../../types/completedSubTab");
|
|
11
12
|
const transactionsViewState_1 = require("../../types/transactionsViewState");
|
|
12
|
-
const rollingCalendarDateRangeInclusive_1 = require("../../helpers/rollingCalendarDateRangeInclusive");
|
|
13
13
|
/**
|
|
14
14
|
* `auto_categorized` for manual transaction search (Unmatched).
|
|
15
15
|
* Backend contract TBD — align with `fetchTransactionCategorizationEpic` (`selectedTab === 'autoCategorized'`)
|
package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { ID } from '../../../commonStateTypes/common';
|
|
|
2
2
|
import { AccountBase } from '../../../entity/account/accountState';
|
|
3
3
|
import { UncategorizedAccountTypes } from '../../../entity/account/accountState';
|
|
4
4
|
import { ClassBase } from '../../../entity/class/classState';
|
|
5
|
-
import { ProjectBase } from '../../../entity/project/projectState';
|
|
6
5
|
import { Entity } from '../../../entity/genericEntity/entity';
|
|
6
|
+
import { ProjectBase } from '../../../entity/project/projectState';
|
|
7
7
|
import { RecommendationWithCOTByLineId } from '../../../entity/transaction/stateTypes/transaction';
|
|
8
8
|
import { SupportedTransactionPayload, SupportedTransactionWithCOT } from '../../../entity/transaction/transactionState';
|
|
9
9
|
import { UncategorizedAccounts } from '../../accountList/accountListSelector';
|
|
@@ -4,9 +4,9 @@ import { MonthYearPeriod, TimePeriod } from '../../../commonStateTypes/timePerio
|
|
|
4
4
|
import { PageToken } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
5
5
|
import { AccountBase } from '../../../entity/account/accountState';
|
|
6
6
|
import { ClassBase } from '../../../entity/class/classState';
|
|
7
|
-
import { ProjectBase } from '../../../entity/project/projectState';
|
|
8
7
|
import { CustomerBase } from '../../../entity/customer/customerState';
|
|
9
8
|
import { Entity } from '../../../entity/genericEntity/entity';
|
|
9
|
+
import { ProjectBase } from '../../../entity/project/projectState';
|
|
10
10
|
import { RecommendationWithCOTByLineId, TransactionID } from '../../../entity/transaction/stateTypes/transaction';
|
|
11
11
|
import { SupportedTransaction, SupportedTransactionPayload, SupportedTransactionWithCOT } from '../../../entity/transaction/transactionState';
|
|
12
12
|
import { VendorBase } from '../../../entity/vendor/vendorState';
|
|
@@ -7,8 +7,8 @@ import { PageToken } from '../../../commonStateTypes/viewAndReport/viewAndReport
|
|
|
7
7
|
import { AccountBase } from '../../../entity/account/accountState';
|
|
8
8
|
import { ClassBase } from '../../../entity/class/classState';
|
|
9
9
|
import { CustomerBase } from '../../../entity/customer/customerState';
|
|
10
|
-
import { ProjectBase } from '../../../entity/project/projectState';
|
|
11
10
|
import { Entity, EntityType } from '../../../entity/genericEntity/entity';
|
|
11
|
+
import { ProjectBase } from '../../../entity/project/projectState';
|
|
12
12
|
import { TransactionID } from '../../../entity/transaction/stateTypes/transaction';
|
|
13
13
|
import { BillableStatus, CategorizationStatusType, PlatformLineDetailType, ProductOrService, TransactionLineBase } from '../../../entity/transaction/stateTypes/transactionLine';
|
|
14
14
|
import { TransactionCategory, TransactionType } from '../../../entity/transaction/stateTypes/transactionType';
|
|
@@ -5,6 +5,7 @@ const toolkit_1 = require("@reduxjs/toolkit");
|
|
|
5
5
|
const coaBalanceType_1 = require("../../commonStateTypes/coaBalance/coaBalanceType");
|
|
6
6
|
const coaBalancesFilter_1 = require("../../commonStateTypes/coaBalance/coaBalancesFilter");
|
|
7
7
|
const coaBalancesFilterClassesView_1 = require("../../commonStateTypes/coaBalance/coaBalancesFilterClassesView");
|
|
8
|
+
const coaBalancesFilterProjectView_1 = require("../../commonStateTypes/coaBalance/coaBalancesFilterProjectView");
|
|
8
9
|
const dataAvailable_1 = require("../../commonStateTypes/dataAvailable");
|
|
9
10
|
const reduceFetchState_1 = require("../../commonStateTypes/reduceFetchState");
|
|
10
11
|
const timeframeTick_1 = require("../../commonStateTypes/timeframeTick");
|
|
@@ -12,7 +13,6 @@ const thisPeriodHelpers_1 = require("../../commonStateTypes/viewAndReport/thisPe
|
|
|
12
13
|
const balanceSheetSelector_1 = require("../balanceSheet/balanceSheetSelector");
|
|
13
14
|
const cashFlowSelector_1 = require("../cashFlow/cashFlowSelector");
|
|
14
15
|
const profitAndLossSelector_1 = require("../profitAndLoss/profitAndLossSelector");
|
|
15
|
-
const coaBalancesFilterProjectView_1 = require("../../commonStateTypes/coaBalance/coaBalancesFilterProjectView");
|
|
16
16
|
const profitAndLossClassesByClassHorizontalSelector_1 = require("../profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector");
|
|
17
17
|
const profitAndLossClassesViewSelector_1 = require("../profitAndLossClassesView/profitAndLossClassesViewSelector");
|
|
18
18
|
const profitAndLossProjectViewSelector_1 = require("../profitAndLossProjectView/profitAndLossProjectViewSelector");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SectionProjectViewReport } from '../../entity/sectionProjectView/sectionProjectViewSelectorTypes';
|
|
2
1
|
import { COABalancesFilterProjectView } from '../../commonStateTypes/coaBalance/coaBalancesFilterProjectView';
|
|
3
2
|
import { ID } from '../../commonStateTypes/common';
|
|
4
3
|
import { DataAvailable } from '../../commonStateTypes/dataAvailable';
|
|
5
4
|
import { CalculatedSection } from '../../commonStateTypes/selectorTypes/selectorTypes';
|
|
6
5
|
import { SelectorReport } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
7
6
|
import { Project } from '../../entity/project/projectState';
|
|
7
|
+
import { SectionProjectViewReport } from '../../entity/sectionProjectView/sectionProjectViewSelectorTypes';
|
|
8
8
|
import { PandLReportViewCalculatedSectionID, PandLReportViewSectionID } from '../profitAndLossClassesView/profitAndLossClassesViewSelectorTypes';
|
|
9
9
|
import { ProfitAndLossProjectViewUIState } from './profitAndLossProjectViewState';
|
|
10
10
|
export interface ProfitAndLossProjectViewReport extends SelectorReport {
|
|
@@ -3,7 +3,6 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { RootState } from '../../../../reducer';
|
|
4
4
|
import { fetchAccountList } from '../../../accountList/accountListReducer';
|
|
5
5
|
import { fetchClassList } from '../../../classList/classListReducer';
|
|
6
|
-
import { fetchScheduleActivityLog } from '../../../scheduleActivityLogView/scheduleActivityLogViewReducer';
|
|
7
6
|
import { fetchScheduleDetails, fetchScheduleDetailsPage } from '../scheduleDetailReducer';
|
|
8
|
-
export type ActionType = ReturnType<typeof fetchScheduleDetails> | ReturnType<typeof fetchClassList> | ReturnType<typeof fetchAccountList> | ReturnType<typeof
|
|
7
|
+
export type ActionType = ReturnType<typeof fetchScheduleDetails> | ReturnType<typeof fetchClassList> | ReturnType<typeof fetchAccountList> | ReturnType<typeof fetchScheduleDetailsPage>;
|
|
9
8
|
export declare const fetchScheduleDetailsPageEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
|
@@ -5,7 +5,6 @@ const rxjs_1 = require("rxjs");
|
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const accountListReducer_1 = require("../../../accountList/accountListReducer");
|
|
7
7
|
const classListReducer_1 = require("../../../classList/classListReducer");
|
|
8
|
-
const scheduleActivityLogViewReducer_1 = require("../../../scheduleActivityLogView/scheduleActivityLogViewReducer");
|
|
9
8
|
const scheduleListHelper_1 = require("../../scheduleListView/scheduleListHelper");
|
|
10
9
|
const scheduleDetailReducer_1 = require("../scheduleDetailReducer");
|
|
11
10
|
const fetchScheduleDetailsPageEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(scheduleDetailReducer_1.fetchScheduleDetailsPage.match), (0, operators_1.mergeMap)((action) => {
|
|
@@ -23,9 +22,6 @@ const fetchScheduleDetailsPageEpic = (actions$, state$) => actions$.pipe((0, ope
|
|
|
23
22
|
}
|
|
24
23
|
if (action.payload.selectedJeScheduleDetailId != null) {
|
|
25
24
|
scheduleDetailsActions.push((0, scheduleDetailReducer_1.fetchScheduleDetails)(action.payload.scheduleType, action.payload.selectedJeScheduleDetailId, action.payload.cacheOverride));
|
|
26
|
-
// Prefetch the schedule activity log alongside the detail page so the
|
|
27
|
-
// side panel renders instantly when the user taps the navbar icon.
|
|
28
|
-
scheduleDetailsActions.push((0, scheduleActivityLogViewReducer_1.fetchScheduleActivityLog)(action.payload.selectedJeScheduleDetailId));
|
|
29
25
|
}
|
|
30
26
|
return (0, rxjs_1.concat)((0, rxjs_1.from)(scheduleDetailsActions));
|
|
31
27
|
}));
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.clearChargeCardDetail = exports.verifyOtpCardHolderFailure = exports.verifyOtpCardHolderSuccess = exports.verifyOtpCardHolder = exports.sendOtpCardHolderFailure = exports.sendOtpCardHolderSuccess = exports.resendOtpCardHolder = exports.sendOtpCardHolder = exports.updateChargeCardsRecurringExpensesFetchState = exports.updateChargeCardsRecurringExpenses = exports.fetchChargeCardsRecurringExpenses = exports.updateChargeCardTransactionStatisticsFetchState = exports.updateChargeCardTransactionStatistics = exports.fetchChargeCardTransactionStatistics = exports.updateDepositAccountLimitFetchStatus = exports.fetchDepositAccountLimit = exports.closeChargeCardSuccessOrFailure = exports.closeChargeCard = exports.unlockChargeCardSuccessOrFailure = exports.unlockChargeCard = exports.lockChargeCardSuccessOrFailure = exports.lockChargeCard = exports.updateChargeCardNameSuccessOrFailure = exports.updateChargeCardName = exports.updateChargeCardSpendLimitSuccessOrFailure = exports.updateChargeCardSpendLimit = exports.updateChargeCardDetailUpdateStatus = exports.completeDebitCardSetPinWait = exports.startDebitCardSetPinWait = exports.completeCVVActivationWait = exports.startCVVActivationWait = exports.updateChargeCardDetail = exports.updateChargeCardTransactionListFailure = exports.updateChargeCardTransactionAttachmentsInCardDetail = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = exports.updateDebitCardPinAttemptSuccessOrFailure = exports.updateDebitCardPinAttempt = exports.updatePhysicalChargeCardAttempt = exports.updatePhysicalChargeCardAttemptSuccessOrFailure = exports.updateChargeCardTransactionAttachmentsFailure = exports.updateChargeCardTransactionIsViewReceiptClicked = exports.fetchChargeCardTransactionAttachments = exports.updateChargeCardTransactionUploadReceiptsFetchStatus = exports.updateChargeCardTransactionList = exports.updateChargeCardDetailUIState = exports.fetchChargeCardTransactionList = exports.updateChargeCardDetailFetchState = exports.fetchChargeCardDetail = exports.fetchChargeCardDetailPage = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const sortOrderPayload_1 = require("../../../../commonPayloadTypes/sortOrderPayload");
|
|
7
|
+
const pusherActions_1 = require("../../../../commonStateTypes/pusherActions");
|
|
7
8
|
const attachmentPayload_1 = require("../../../../entity/transaction/payloadTypes/attachmentPayload");
|
|
8
9
|
const chargeCardDetail_1 = require("./chargeCardDetail");
|
|
9
|
-
const pusherActions_1 = require("../../../../commonStateTypes/pusherActions");
|
|
10
10
|
exports.initialState = {
|
|
11
11
|
detailById: {},
|
|
12
12
|
recurringExpensesByChargeCardId: {},
|
|
@@ -163,9 +163,7 @@ const chargeCardList = (0, toolkit_1.createSlice)({
|
|
|
163
163
|
},
|
|
164
164
|
updateCreditAccountBalanceFromPusher(draft, action) {
|
|
165
165
|
const { currencyCode, currencySymbol } = action.payload;
|
|
166
|
-
const amt = (v) => v !== undefined
|
|
167
|
-
? (0, amount_1.toAmount)(v, currencyCode, currencySymbol)
|
|
168
|
-
: undefined;
|
|
166
|
+
const amt = (v) => v !== undefined ? (0, amount_1.toAmount)(v, currencyCode, currencySymbol) : undefined;
|
|
169
167
|
draft.creditAccount.available =
|
|
170
168
|
amt(action.payload.available) ?? draft.creditAccount.available;
|
|
171
169
|
draft.creditAccount.balance =
|