@zeniai/client-epic-state 5.0.49 → 5.0.50-betaAR1

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.
Files changed (57) hide show
  1. package/lib/entity/approvalRule/approvalRulePayload.d.ts +27 -5
  2. package/lib/entity/approvalRule/approvalRulePayload.js +87 -10
  3. package/lib/entity/approvalRule/approvalRuleSelector.d.ts +25 -1
  4. package/lib/entity/approvalRule/approvalRuleSelector.js +40 -0
  5. package/lib/entity/approvalRule/approvalRuleState.d.ts +48 -7
  6. package/lib/entity/project/projectPayload.d.ts +3 -3
  7. package/lib/entity/project/projectPayload.js +3 -3
  8. package/lib/entity/project/projectState.d.ts +4 -2
  9. package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +1 -1
  10. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +2 -0
  11. package/lib/entity/transaction/payloadTypes/transactionPayload.js +6 -0
  12. package/lib/entity/transaction/stateTypes/transaction.d.ts +2 -0
  13. package/lib/entity/transaction/stateTypes/transactionLine.d.ts +2 -2
  14. package/lib/esm/entity/approvalRule/approvalRulePayload.js +87 -10
  15. package/lib/esm/entity/approvalRule/approvalRuleSelector.js +35 -0
  16. package/lib/esm/entity/project/projectPayload.js +1 -1
  17. package/lib/esm/entity/transaction/payloadTypes/transactionLinePayload.js +2 -2
  18. package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +6 -0
  19. package/lib/esm/index.js +2 -1
  20. package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +8 -0
  21. package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +3 -0
  22. package/lib/esm/view/expenseAutomationView/helpers/saveTransactionHelper.js +1 -0
  23. package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +11 -2
  24. package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +13 -4
  25. package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +7 -2
  26. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +5 -7
  27. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +46 -16
  28. package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +7 -2
  29. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +5 -7
  30. package/lib/index.d.ts +5 -4
  31. package/lib/index.js +22 -16
  32. package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
  33. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
  34. package/lib/view/companyView/types/cockpitTypes.d.ts +1 -1
  35. package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.d.ts +2 -1
  36. package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +8 -0
  37. package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +3 -0
  38. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +1 -0
  39. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +2 -1
  40. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +11 -2
  41. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +3 -1
  42. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +13 -4
  43. package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +3 -0
  44. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +6 -1
  45. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +3 -0
  46. package/lib/view/people/peopleTypes.d.ts +1 -1
  47. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +4 -6
  48. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +1 -1
  49. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +46 -16
  50. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonState.d.ts +15 -3
  51. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +7 -2
  52. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
  53. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +4 -6
  54. package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
  55. package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
  56. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +2 -2
  57. package/package.json +1 -1
@@ -4,10 +4,10 @@ import { CompanyTaskManagerViewPayload } from './companyTaskManagerViewPayload';
4
4
  import { CompanyTaskManagerViewState, CompanyTaskManagerViewUIState, TaskManagerMetrics } from './companyTaskManagerViewState';
5
5
  export declare const initialUIState: CompanyTaskManagerViewUIState;
6
6
  export declare const initialState: CompanyTaskManagerViewState;
7
- export declare const fetchCompanyTaskManagerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pageToken: PageToken, sortKey: "status" | "name" | "tags" | "createdBy" | "dueDate" | "priority" | "assignee" | "taskName", sortOrder: "ascending" | "descending", keepExistingListItems?: any, searchString?: string | undefined], {
7
+ export declare const fetchCompanyTaskManagerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pageToken: PageToken, sortKey: "status" | "name" | "priority" | "tags" | "createdBy" | "dueDate" | "assignee" | "taskName", sortOrder: "ascending" | "descending", keepExistingListItems?: any, searchString?: string | undefined], {
8
8
  pageToken: PageToken;
9
9
  searchString: string | undefined;
10
- sortKey: "status" | "name" | "tags" | "createdBy" | "dueDate" | "priority" | "assignee" | "taskName";
10
+ sortKey: "status" | "name" | "priority" | "tags" | "createdBy" | "dueDate" | "assignee" | "taskName";
11
11
  sortOrder: "ascending" | "descending";
12
12
  keepExistingListItems: any;
13
13
  }, "companyTaskManagerView/fetchCompanyTaskManagerView", never, never>, updateCompanyTaskManagerViewOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -7,7 +7,7 @@ export declare const toPortfolioSortKeyType: (v: string) => "companyName" | "exp
7
7
  export declare const toManagementSortKeyType: (v: string) => "status" | "bookCloseDate" | "companyName" | "group" | "controller" | "plans" | "monthlyRecurringRevenue" | "notes" | "taxStatus" | "preparer" | "reviewer" | "annualRecurringRevenue" | "task" | "customerSuccessManager" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
8
8
  export declare const toOnboardingSortKeyType: (v: string) => "companyName" | "notes" | "businessVerified" | "identityVerified" | "bankAccountLinked" | "customerCreated" | "groupCreated" | "qboLinked" | "enroller" | "invite" | "latestCreated";
9
9
  export declare const toHealthSortKeyType: (v: string) => "companyName" | "group" | "controller" | "monthlyRecurringRevenue" | "runway" | "companyEngagementMetricsUpdatedAt" | "customerSatisfactionScore" | "externalProductServiceExposure" | "netPromoterScore" | "customerSuccessManager" | "issues" | "productVerticals" | "churnProbability" | "lastReportSent" | "subscriptionDate" | "renewalDate" | "dashboardLastSeen" | "lastEngagement";
10
- export declare const toTaskManagerSortKeyType: (v: string) => "status" | "name" | "tags" | "createdBy" | "dueDate" | "priority" | "assignee" | "taskName";
10
+ export declare const toTaskManagerSortKeyType: (v: string) => "status" | "name" | "priority" | "tags" | "createdBy" | "dueDate" | "assignee" | "taskName";
11
11
  export type PortfolioViewSortKey = ReturnType<typeof toPortfolioSortKeyType>;
12
12
  export type ManagementViewSortKey = ReturnType<typeof toManagementSortKeyType>;
13
13
  export type OnboardingViewSortKey = ReturnType<typeof toOnboardingSortKeyType>;
@@ -4,6 +4,7 @@ import { RootState } from '../../../../reducer';
4
4
  import { fetchAccountList } from '../../../accountList/accountListReducer';
5
5
  import { fetchClassList } from '../../../classList/classListReducer';
6
6
  import { fetchOwnerList } from '../../../ownerList/ownerListReducer';
7
+ import { fetchProjectList } from '../../../projectList/projectListReducer';
7
8
  import { fetchTransactionCategorization, fetchTransactionCategorizationView } from '../../reducers/transactionsViewReducer';
8
- export type ActionType = ReturnType<typeof fetchTransactionCategorizationView> | ReturnType<typeof fetchTransactionCategorization> | ReturnType<typeof fetchAccountList> | ReturnType<typeof fetchClassList> | ReturnType<typeof fetchOwnerList>;
9
+ export type ActionType = ReturnType<typeof fetchTransactionCategorizationView> | ReturnType<typeof fetchTransactionCategorization> | ReturnType<typeof fetchAccountList> | ReturnType<typeof fetchClassList> | ReturnType<typeof fetchOwnerList> | ReturnType<typeof fetchProjectList>;
9
10
  export declare const fetchTransactionCategorizationViewEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
@@ -4,9 +4,11 @@ exports.fetchTransactionCategorizationViewEpic = void 0;
4
4
  const rxjs_1 = require("rxjs");
5
5
  const operators_1 = require("rxjs/operators");
6
6
  const timePeriod_1 = require("../../../../commonStateTypes/timePeriod");
7
+ const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
7
8
  const accountListReducer_1 = require("../../../accountList/accountListReducer");
8
9
  const classListReducer_1 = require("../../../classList/classListReducer");
9
10
  const ownerListReducer_1 = require("../../../ownerList/ownerListReducer");
11
+ const projectListReducer_1 = require("../../../projectList/projectListReducer");
10
12
  const transactionsViewReducer_1 = require("../../reducers/transactionsViewReducer");
11
13
  const fetchTransactionCategorizationViewEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(transactionsViewReducer_1.fetchTransactionCategorizationView.match), (0, operators_1.mergeMap)((action) => {
12
14
  const { selectedTab, cacheOverride, keepExistingListItems, pageToken, period, refreshViewInBackground, searchString, resetListItems, isUncategorizedExpenseCategoryEnabled, } = action.payload;
@@ -29,6 +31,12 @@ const fetchTransactionCategorizationViewEpic = (actions$, state$) => actions$.pi
29
31
  classList.fetchState === 'Not-Started') {
30
32
  updateActions.push((0, classListReducer_1.fetchClassList)());
31
33
  }
34
+ const projectList = state$.value.projectListState;
35
+ if ((0, tenantSelector_1.getIsAccountingProjectsEnabled)(state$.value) &&
36
+ projectList.hasValidState() === false &&
37
+ projectList.fetchState === 'Not-Started') {
38
+ updateActions.push((0, projectListReducer_1.fetchProjectList)());
39
+ }
32
40
  const vendorOwnerList = state$.value.ownerListState;
33
41
  if (vendorOwnerList.hasValidState() === false &&
34
42
  vendorOwnerList.fetchState === 'Not-Started') {
@@ -117,6 +117,9 @@ const toTransactionUpdatePayload = (updates, detail, transactionId, cotTrackingB
117
117
  if (lineUpdates.class != null) {
118
118
  lineToBeUpdated.class = lineUpdates.class;
119
119
  }
120
+ if (lineUpdates.project != null) {
121
+ lineToBeUpdated.project = lineUpdates.project;
122
+ }
120
123
  if (lineUpdates.account != null) {
121
124
  lineToBeUpdated.account = lineUpdates.account;
122
125
  }
@@ -44,6 +44,7 @@ const toTransactionUpdatesFromTransactionCategorizationLocalData = (transactionC
44
44
  lineDescription: lineItem.lineDescription,
45
45
  class: lineItem.class,
46
46
  account: lineItem.account,
47
+ project: lineItem.project,
47
48
  recommendation: (0, transactionHelper_1.convertCOTRecommendationsToRegular)(lineItem.recommendationsWithCOT),
48
49
  };
49
50
  if (line.type === 'journal_entry_transaction_line' ||
@@ -2,6 +2,7 @@ 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';
5
6
  import { Entity } from '../../../entity/genericEntity/entity';
6
7
  import { RecommendationWithCOTByLineId } from '../../../entity/transaction/stateTypes/transaction';
7
8
  import { SupportedTransactionPayload, SupportedTransactionWithCOT } from '../../../entity/transaction/transactionState';
@@ -27,7 +28,7 @@ export declare const removeTransactionFromTabView: (tabView: TransactionsTabView
27
28
  export declare const filterAutoTabLineItems: (tabView: TransactionsTabViewState, transactionId: ID, updatedTransaction: SupportedTransactionWithCOT) => void;
28
29
  export declare const MAX_SELECTION_LIMIT = 5;
29
30
  export declare const toTransactionDetailLocalData: (transaction: SupportedTransactionWithCOT, selectedTab: TransactionsTab, lineItemsByTransactionIds: string[], uncategorizedIncomeExpense: UncategorizedAccounts, isUncategorizedExpenseCategoryEnabled?: boolean) => TransactionReviewLocalData;
30
- export declare const toSetAllLineItemsToCategoryClass: (draft: TransactionsTabViewState, transaction: SupportedTransactionWithCOT, transactionId: ID, transactionLineId: ID, transactionDetailLocalData: TransactionReviewLocalData, updatedItem: "category" | "class", uncategorizedAccounts: UncategorizedAccounts, selectedTab: TransactionsTab, vendorId?: ID, customerId?: ID, selectedAccount?: AccountBase, selectedClassBase?: ClassBase, isUncategorizedExpenseCategoryEnabled?: boolean, isAccountingClassesEnabled?: boolean) => {
31
+ export declare const toSetAllLineItemsToCategoryClass: (draft: TransactionsTabViewState, transaction: SupportedTransactionWithCOT, transactionId: ID, transactionLineId: ID, transactionDetailLocalData: TransactionReviewLocalData, updatedItem: "category" | "class" | "project", uncategorizedAccounts: UncategorizedAccounts, selectedTab: TransactionsTab, vendorId?: ID, customerId?: ID, selectedAccount?: AccountBase, selectedClassBase?: ClassBase, selectedProjectBase?: ProjectBase, isUncategorizedExpenseCategoryEnabled?: boolean, isAccountingClassesEnabled?: boolean) => {
31
32
  localData: TransactionReviewLocalData;
32
33
  similarTransactionUpdated: boolean;
33
34
  };
@@ -190,6 +190,7 @@ const buildLineItemById = (transaction, uncategorizedIncomeExpense, recommendati
190
190
  const lineId = line.id;
191
191
  record.account = accountLine.account;
192
192
  record.class = accountLine.class;
193
+ record.project = accountLine.project;
193
194
  record.vendor =
194
195
  accountLine.vendor != null
195
196
  ? {
@@ -312,7 +313,7 @@ const buildLineItemById = (transaction, uncategorizedIncomeExpense, recommendati
312
313
  });
313
314
  return lineItemData;
314
315
  };
315
- const toSetAllLineItemsToCategoryClass = (draft, transaction, transactionId, transactionLineId, transactionDetailLocalData, updatedItem, uncategorizedAccounts, selectedTab, vendorId, customerId, selectedAccount, selectedClassBase, isUncategorizedExpenseCategoryEnabled, isAccountingClassesEnabled) => {
316
+ const toSetAllLineItemsToCategoryClass = (draft, transaction, transactionId, transactionLineId, transactionDetailLocalData, updatedItem, uncategorizedAccounts, selectedTab, vendorId, customerId, selectedAccount, selectedClassBase, selectedProjectBase, isUncategorizedExpenseCategoryEnabled, isAccountingClassesEnabled) => {
316
317
  let newLineItems = {};
317
318
  let selectedCheckBoxTransactionIds = draft.selectedCheckBoxTransactionIds;
318
319
  let similarTransactionUpdated = false;
@@ -332,7 +333,7 @@ const toSetAllLineItemsToCategoryClass = (draft, transaction, transactionId, tra
332
333
  const record = {
333
334
  ...transactionDetailLocalData.lineItemById[lineId],
334
335
  };
335
- // if the line is the one that is being updated, then set the account and class
336
+ // if the line is the one that is being updated, then set the account, class, and project
336
337
  if (transactionId === record.transactionId &&
337
338
  transactionLineId === lineId) {
338
339
  if (selectedAccount != null) {
@@ -341,6 +342,9 @@ const toSetAllLineItemsToCategoryClass = (draft, transaction, transactionId, tra
341
342
  if (selectedClassBase != null) {
342
343
  record.class = selectedClassBase;
343
344
  }
345
+ if (selectedProjectBase != null) {
346
+ record.project = selectedProjectBase;
347
+ }
344
348
  const isClassSatisfied = isAccountingClassesEnabled === false || record.class != null;
345
349
  if (isClassSatisfied && record.account != null) {
346
350
  if (selectedCheckBoxTransactionIds.length < exports.MAX_SELECTION_LIMIT &&
@@ -392,6 +396,10 @@ const toSetAllLineItemsToCategoryClass = (draft, transaction, transactionId, tra
392
396
  selectedCheckBoxTransactionIds.push(transaction.id);
393
397
  }
394
398
  }
399
+ // Project intentionally does NOT propagate to other rows of
400
+ // the same vendor: each line can carry a different project,
401
+ // and auto-filling siblings (the way class does) leads to
402
+ // unexpected bulk selection.
395
403
  }
396
404
  }
397
405
  if (line.type === 'transaction_with_product_or_service_line') {
@@ -522,6 +530,7 @@ const setEntityRecommendationForLineIdInLocalData = (draft, transaction, transac
522
530
  ...newLineItem,
523
531
  class: matchingRecord.class,
524
532
  account: matchingRecord.account,
533
+ project: matchingRecord.project,
525
534
  lineEntity: matchingRecord.lineEntity,
526
535
  };
527
536
  }
@@ -4,6 +4,7 @@ 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';
7
8
  import { CustomerBase } from '../../../entity/customer/customerState';
8
9
  import { Entity } from '../../../entity/genericEntity/entity';
9
10
  import { RecommendationWithCOTByLineId, TransactionID } from '../../../entity/transaction/stateTypes/transaction';
@@ -100,7 +101,7 @@ export declare const fetchTransactionCategorization: import("@reduxjs/toolkit").
100
101
  isUncategorizedExpenseCategoryEnabled?: boolean;
101
102
  selectedEntity?: Entity;
102
103
  updatedCustomer?: CustomerBase;
103
- }, "expenseAutomationTransactionsView/updateSelectedCustomerForTransaction">, setAllItemsToCategoryClassInLocalDataForCategorization: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedTab: "review" | "autoCategorized", transactionId: string, lineId: string, transactions: SupportedTransactionWithCOT[], uncategorizedAccounts: UncategorizedAccounts, vendorId?: string | undefined, customerId?: string | undefined, selectedAccount?: AccountBase | undefined, selectedClassBase?: ClassBase | undefined, lineEntity?: Entity | undefined, recommendations?: RecommendationWithCOT[] | undefined, isUncategorizedExpenseCategoryEnabled?: boolean | undefined, isAccountingClassesEnabled?: boolean | undefined], {
104
+ }, "expenseAutomationTransactionsView/updateSelectedCustomerForTransaction">, setAllItemsToCategoryClassInLocalDataForCategorization: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedTab: "review" | "autoCategorized", transactionId: string, lineId: string, transactions: SupportedTransactionWithCOT[], uncategorizedAccounts: UncategorizedAccounts, vendorId?: string | undefined, customerId?: string | undefined, selectedAccount?: AccountBase | undefined, selectedClassBase?: ClassBase | undefined, lineEntity?: Entity | undefined, recommendations?: RecommendationWithCOT[] | undefined, isUncategorizedExpenseCategoryEnabled?: boolean | undefined, isAccountingClassesEnabled?: boolean | undefined, selectedProjectBase?: ProjectBase | undefined], {
104
105
  selectedTab: "review" | "autoCategorized";
105
106
  transactionId: string;
106
107
  lineId: string;
@@ -110,6 +111,7 @@ export declare const fetchTransactionCategorization: import("@reduxjs/toolkit").
110
111
  lineEntity: Entity | undefined;
111
112
  selectedAccount: AccountBase | undefined;
112
113
  selectedClassBase: ClassBase | undefined;
114
+ selectedProjectBase: ProjectBase | undefined;
113
115
  recommendations: RecommendationWithCOT[] | undefined;
114
116
  uncategorizedAccounts: UncategorizedAccounts;
115
117
  isAccountingClassesEnabled: boolean | undefined;
@@ -289,7 +289,7 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
289
289
  },
290
290
  setAllItemsToCategoryClassInLocalDataForCategorization: {
291
291
  reducer(draft, action) {
292
- const { vendorId, customerId, selectedAccount, selectedClassBase, transactions, transactionId, lineId, selectedTab, uncategorizedAccounts, isAccountingClassesEnabled, isUncategorizedExpenseCategoryEnabled, } = action.payload;
292
+ const { vendorId, customerId, selectedAccount, selectedClassBase, selectedProjectBase, transactions, transactionId, lineId, selectedTab, uncategorizedAccounts, isAccountingClassesEnabled, isUncategorizedExpenseCategoryEnabled, } = action.payload;
293
293
  const transactionLocalData = (0, get_1.default)(draft.transactionCategorizationView[selectedTab]
294
294
  .transactionReviewLocalDataById, transactionId, undefined);
295
295
  const existingAccount = transactionLocalData?.transactionReviewLocalData.lineItemById[lineId]
@@ -303,6 +303,7 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
303
303
  ...transactionLocalData.transactionReviewLocalData.lineItemById[lineId],
304
304
  account: selectedAccount,
305
305
  class: selectedClassBase,
306
+ project: selectedProjectBase,
306
307
  },
307
308
  },
308
309
  };
@@ -331,9 +332,16 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
331
332
  const transactionLocalData = (0, get_1.default)(draft.transactionCategorizationView[selectedTab]
332
333
  .transactionReviewLocalDataById, transaction.id, undefined);
333
334
  if (transactionLocalData != null) {
334
- const { localData, similarTransactionUpdated } = (0, transactionCategorizationLocalDataHelper_1.toSetAllLineItemsToCategoryClass)(draft.transactionCategorizationView[selectedTab], transaction, transactionId, lineId, transactionLocalData.transactionReviewLocalData, existingAccount?.accountId !== selectedAccount?.accountId
335
+ const existingClassId = transactionLocalData.transactionReviewLocalData.lineItemById[lineId]?.class?.classId;
336
+ const existingProjectId = transactionLocalData.transactionReviewLocalData.lineItemById[lineId]?.project?.projectId;
337
+ const updatedItem = existingAccount?.accountId !== selectedAccount?.accountId
335
338
  ? 'category'
336
- : 'class', uncategorizedAccounts, selectedTab, vendorId, customerId, selectedAccount, selectedClassBase, isUncategorizedExpenseCategoryEnabled, isAccountingClassesEnabled);
339
+ : existingClassId !== selectedClassBase?.classId
340
+ ? 'class'
341
+ : existingProjectId !== selectedProjectBase?.projectId
342
+ ? 'project'
343
+ : 'class';
344
+ const { localData, similarTransactionUpdated } = (0, transactionCategorizationLocalDataHelper_1.toSetAllLineItemsToCategoryClass)(draft.transactionCategorizationView[selectedTab], transaction, transactionId, lineId, transactionLocalData.transactionReviewLocalData, updatedItem, uncategorizedAccounts, selectedTab, vendorId, customerId, selectedAccount, selectedClassBase, selectedProjectBase, isUncategorizedExpenseCategoryEnabled, isAccountingClassesEnabled);
337
345
  draft.transactionCategorizationView[selectedTab].transactionReviewLocalDataById[transaction.id] = {
338
346
  transactionId: transaction.id,
339
347
  transactionReviewLocalData: localData,
@@ -352,7 +360,7 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
352
360
  ...dirtyIds,
353
361
  ]);
354
362
  },
355
- prepare(selectedTab, transactionId, lineId, transactions, uncategorizedAccounts, vendorId, customerId, selectedAccount, selectedClassBase, lineEntity, recommendations, isUncategorizedExpenseCategoryEnabled, isAccountingClassesEnabled) {
363
+ prepare(selectedTab, transactionId, lineId, transactions, uncategorizedAccounts, vendorId, customerId, selectedAccount, selectedClassBase, lineEntity, recommendations, isUncategorizedExpenseCategoryEnabled, isAccountingClassesEnabled, selectedProjectBase) {
356
364
  return {
357
365
  payload: {
358
366
  selectedTab,
@@ -364,6 +372,7 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
364
372
  lineEntity,
365
373
  selectedAccount,
366
374
  selectedClassBase,
375
+ selectedProjectBase,
367
376
  recommendations,
368
377
  uncategorizedAccounts,
369
378
  isAccountingClassesEnabled,
@@ -6,6 +6,7 @@ import { AccountBase } from '../../../entity/account/accountState';
6
6
  import { ClassBase } from '../../../entity/class/classState';
7
7
  import { SupportedTransactionWithCOT } from '../../../entity/transaction/transactionState';
8
8
  import { UncategorizedAccounts } from '../../accountList/accountListSelector';
9
+ import { ProjectListSelectorView } from '../../projectList/projectListSelector';
9
10
  import { TransactionReviewLocalData, TransactionsTab, TransactionsViewUIState } from '../types/transactionsViewState';
10
11
  export interface TransactionReviewLocalDataSelectorView {
11
12
  transactionId: ID;
@@ -18,7 +19,9 @@ export interface ExpenseAutomationTransactionViewSelector extends SelectorView {
18
19
  classList: ClassBase[];
19
20
  completionStatus: CompletionStatusType;
20
21
  fetchStateByTransactionTabs: Record<TransactionsTab, FetchStateAndError>;
22
+ isAccountingProjectsEnabled: boolean;
21
23
  markAsNotMiscategorizedStatus: FetchStateAndError;
24
+ projectList: ProjectListSelectorView;
22
25
  refreshStatus: FetchStateAndError;
23
26
  saveStatus: FetchStateAndError;
24
27
  selectedCheckBoxTransactionIds: ID[];
@@ -12,9 +12,10 @@ const transactionHelper_1 = require("../../../entity/transaction/transactionHelp
12
12
  const transactionSelector_1 = require("../../../entity/transaction/transactionSelector");
13
13
  const accountListSelector_1 = require("../../accountList/accountListSelector");
14
14
  const classListSelector_1 = require("../../classList/classListSelector");
15
+ const projectListSelector_1 = require("../../projectList/projectListSelector");
15
16
  const expenseAutomationViewSelectorTypes_1 = require("../selectorTypes/expenseAutomationViewSelectorTypes");
16
17
  function getExpenseAutomationTransactionView(state) {
17
- const { accountState, classState, classListState, accountListState, expenseAutomationTransactionsViewState, expenseAutomationViewState, transactionState, monthEndCloseChecksState, monthEndCloseChecksViewState, } = state;
18
+ const { accountState, classState, classListState, accountListState, expenseAutomationTransactionsViewState, expenseAutomationViewState, projectState, projectListState, transactionState, monthEndCloseChecksState, monthEndCloseChecksViewState, } = state;
18
19
  const { selectedTransactionCategorizationTab } = expenseAutomationTransactionsViewState;
19
20
  const { uiState, refreshStatus, saveStatus, markAsNotMiscategorizedStatus, transactionIdsBySelectedPeriod, transactionReviewLocalDataById, selectedCheckBoxTransactionIds, transactionIdsWithUnsavedData, uploadReceiptStatusById, selectedTransactionId, selectedTransactionLineId, } = expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTransactionCategorizationTab];
20
21
  const uncategorizedIncomeExpense = (0, accountListSelector_1.getUncategorizedAccounts)(accountState, accountListState, 'accountList');
@@ -23,6 +24,8 @@ function getExpenseAutomationTransactionView(state) {
23
24
  const allClasses = classList.classes.map((classData) => {
24
25
  return (0, omit_1.default)(classData, ['accountIds', 'key']);
25
26
  });
27
+ const projectList = (0, projectListSelector_1.getProjectList)(projectState, projectListState);
28
+ const isAccountingProjectsEnabled = (0, tenantSelector_1.getIsAccountingProjectsEnabled)(state);
26
29
  const accountsHierarchyList = (0, accountListSelector_1.getNestedAccountListHierarchy)(accountListState, 'accountList');
27
30
  const classHierarchyList = (0, classListSelector_1.getNestedClassListHierarchy)(classListState);
28
31
  const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
@@ -102,6 +105,8 @@ function getExpenseAutomationTransactionView(state) {
102
105
  classList: allClasses,
103
106
  accountsHierarchyList,
104
107
  classHierarchyList,
108
+ isAccountingProjectsEnabled,
109
+ projectList,
105
110
  transactionLocalData,
106
111
  uiState,
107
112
  refreshStatus,
@@ -7,6 +7,7 @@ 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';
10
11
  import { Entity, EntityType } from '../../../entity/genericEntity/entity';
11
12
  import { TransactionID } from '../../../entity/transaction/stateTypes/transaction';
12
13
  import { BillableStatus, CategorizationStatusType, PlatformLineDetailType, ProductOrService, TransactionLineBase } from '../../../entity/transaction/stateTypes/transactionLine';
@@ -53,6 +54,7 @@ export interface TransactionCategorizationLineItemData extends TransactionLineBa
53
54
  lineTransactionType?: TransactionType;
54
55
  postingType?: TransactionCategory;
55
56
  postingTypeName?: string;
57
+ project?: ProjectBase;
56
58
  recommendationsWithCOT?: RecommendationWithCOT[];
57
59
  reviewPendingReasons?: string[];
58
60
  selectedEntityLine?: Entity;
@@ -110,6 +112,7 @@ export interface TransactionLineUpdates {
110
112
  class?: ClassBase;
111
113
  customer?: CustomerBase;
112
114
  lineDescription?: string;
115
+ project?: ProjectBase;
113
116
  recommendation?: Recommendation[];
114
117
  vendor?: VendorBase;
115
118
  }
@@ -1,3 +1,3 @@
1
- declare const toPeopleSortKeyType: (v: string) => "role" | "manager" | "name" | "department" | "lastSeen";
1
+ declare const toPeopleSortKeyType: (v: string) => "role" | "manager" | "department" | "name" | "lastSeen";
2
2
  export type PeopleViewSortKey = ReturnType<typeof toPeopleSortKeyType>;
3
3
  export {};
@@ -11,15 +11,13 @@ const initializeBillPaySetupApproverViewUpdateDataEpic = (actions$, state$) => a
11
11
  if (approvalRuleId != null) {
12
12
  const approvalRule = (0, approvalRuleSelector_1.getApprovalRuleById)(state$.value.approvalRuleState, approvalRuleId);
13
13
  if (approvalRule != null) {
14
- const criteria = approvalRule.criteria[0];
15
- const range = criteria?.range;
16
14
  const billPaySetupApproverViewUpdateData = {
17
15
  approvalRuleId,
18
16
  steps: approvalRule.steps,
19
17
  criteria: {
20
- rangeType: criteria?.rangeType,
21
- rangeEntity: criteria?.rangeEntity,
22
- range,
18
+ amount: (0, approvalRuleSelector_1.getAmountCriteria)(approvalRule.criteria),
19
+ vendor: (0, approvalRuleSelector_1.getVendorCriteria)(approvalRule.criteria),
20
+ department: (0, approvalRuleSelector_1.getDepartmentCriteria)(approvalRule.criteria),
23
21
  },
24
22
  };
25
23
  fetchActions.push((0, billPaySetupApproverViewReducer_1.clearBillPaySetupApproverViewUpdateData)(), (0, billPaySetupApproverViewReducer_1.saveBillPaySetupApproverViewUpdateData)(billPaySetupApproverViewUpdateData));
@@ -28,7 +26,7 @@ const initializeBillPaySetupApproverViewUpdateDataEpic = (actions$, state$) => a
28
26
  else {
29
27
  const billPaySetupApproverViewCreateData = {
30
28
  steps: [],
31
- criteria: undefined,
29
+ criteria: {},
32
30
  };
33
31
  fetchActions.push((0, billPaySetupApproverViewReducer_1.clearBillPaySetupApproverViewUpdateData)(), (0, billPaySetupApproverViewReducer_1.saveBillPaySetupApproverViewUpdateData)(billPaySetupApproverViewCreateData));
34
32
  }
@@ -14,7 +14,7 @@ interface ApproverViewStepPayload extends Omit<StepPayload, 'actors'> {
14
14
  }
15
15
  interface ApprovalUpdatableInfoPayload {
16
16
  approval_rule_id: ID;
17
- criteria: CriteriaPayload[];
17
+ criteria: CriteriaPayload;
18
18
  is_applicable_on_pending_approval_entity: boolean;
19
19
  steps: ApproverViewStepPayload[];
20
20
  }
@@ -2,22 +2,50 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toApprovalChangableInfoPayload = void 0;
4
4
  const toApprovalChangableInfoPayload = (approverViewUpdateData) => {
5
- let criteriaPayload = [];
5
+ // Form-side criteria is a structured object with optional slots for
6
+ // amount / vendor / department; flatten it into the wire format's
7
+ // `conditions[]` array.
8
+ let criteriaPayload;
6
9
  if (approverViewUpdateData.criteria != null) {
7
- const criteria = approverViewUpdateData.criteria;
8
- const { rangeType, rangeEntity, range } = criteria;
9
- const { min, max } = range;
10
- const { currencyCode, currencySymbol } = min;
11
- criteriaPayload = [
12
- {
13
- type: rangeType,
14
- range_entity: rangeEntity,
15
- min: min.amount,
16
- max: max?.amount ?? null,
17
- currency_code: currencyCode,
18
- currency_symbol: currencySymbol,
19
- },
20
- ];
10
+ const { amount, vendor, department } = approverViewUpdateData.criteria;
11
+ const conditions = [];
12
+ if (amount?.min != null) {
13
+ conditions.push({
14
+ field: 'amount',
15
+ type: 'gte',
16
+ value: amount.min.amount,
17
+ });
18
+ }
19
+ if (amount?.max != null) {
20
+ conditions.push({
21
+ field: 'amount',
22
+ type: 'lte',
23
+ value: amount.max.amount,
24
+ });
25
+ }
26
+ if (vendor != null && vendor.vendorIds.length > 0) {
27
+ conditions.push({
28
+ field: 'vendor_id',
29
+ type: vendor.operator === 'is_not' ? 'not_in' : 'in',
30
+ value: vendor.vendorIds,
31
+ });
32
+ }
33
+ if (department != null && department.departmentIds.length > 0) {
34
+ conditions.push({
35
+ field: 'department_id',
36
+ type: department.operator === 'is_not' ? 'not_in' : 'in',
37
+ value: department.departmentIds,
38
+ });
39
+ }
40
+ if (conditions.length > 0) {
41
+ const currency = amount?.min ?? amount?.max ?? null;
42
+ criteriaPayload = {
43
+ conditions,
44
+ criteria_operator: 'and',
45
+ currency_code: currency?.currencyCode ?? 'USD',
46
+ currency_symbol: currency?.currencySymbol ?? '$',
47
+ };
48
+ }
21
49
  }
22
50
  const steps = approverViewUpdateData.steps.map((step) => {
23
51
  return {
@@ -38,10 +66,12 @@ const toApprovalChangableInfoPayload = (approverViewUpdateData) => {
38
66
  });
39
67
  const isUpdate = approverViewUpdateData.approvalRuleId != null;
40
68
  const payload = {
41
- criteria: criteriaPayload,
42
69
  steps,
43
70
  is_applicable_on_pending_approval_entity: approverViewUpdateData.isApplicableOnPendingApprovalEntity ?? true,
44
71
  };
72
+ if (criteriaPayload != null) {
73
+ payload.criteria = criteriaPayload;
74
+ }
45
75
  if (isUpdate) {
46
76
  payload.approval_rule_id = approverViewUpdateData.approvalRuleId;
47
77
  }
@@ -1,19 +1,31 @@
1
1
  import { FetchStateAndError, ID } from '../../../../../commonStateTypes/common';
2
- import { Criteria, Step } from '../../../../../entity/approvalRule/approvalRuleState';
2
+ import { AmountCriteria, DepartmentCriteria, Step, VendorCriteria } from '../../../../../entity/approvalRule/approvalRuleState';
3
3
  export type ApprovalUpdateActionType = 'approval_create' | 'approval_update';
4
4
  export interface ApproverViewUpdateData {
5
5
  type: ApprovalUpdateActionType;
6
6
  updateStatus: FetchStateAndError;
7
7
  data?: ApprovalRuleUpdateData | ApprovalRuleCreateData;
8
8
  }
9
+ /**
10
+ * Form-side criteria shape used by the rule create/edit form.
11
+ *
12
+ * Each condition kind gets its own optional slot, mirroring how the UI
13
+ * edits them as distinct rows. At most one of each kind is present; this
14
+ * matches the design constraint that each condition type can be added once.
15
+ */
16
+ export interface ApprovalRuleFormCriteria {
17
+ amount?: AmountCriteria;
18
+ department?: DepartmentCriteria;
19
+ vendor?: VendorCriteria;
20
+ }
9
21
  export interface ApprovalRuleUpdateData {
10
22
  approvalRuleId: ID;
11
- criteria: Criteria;
23
+ criteria: ApprovalRuleFormCriteria;
12
24
  steps: Step[];
13
25
  isApplicableOnPendingApprovalEntity?: boolean;
14
26
  }
15
27
  export interface ApprovalRuleCreateData {
16
- criteria: Criteria;
28
+ criteria: ApprovalRuleFormCriteria;
17
29
  steps: Step[];
18
30
  isApplicableOnPendingApprovalEntity?: boolean;
19
31
  }
@@ -9,6 +9,7 @@ exports.getPaymentSection = getPaymentSection;
9
9
  exports.toPaymentToOption = toPaymentToOption;
10
10
  const get_1 = __importDefault(require("lodash/get"));
11
11
  const has_1 = __importDefault(require("lodash/has"));
12
+ const approvalRuleSelector_1 = require("../../../../entity/approvalRule/approvalRuleSelector");
12
13
  const reduceFetchState_1 = require("../../../../commonStateTypes/reduceFetchState");
13
14
  const bankAccountSelector_1 = require("../../../../entity/bankAccount/bankAccountSelector");
14
15
  const contactSelector_1 = require("../../../../entity/billPay/contact/contactSelector");
@@ -698,9 +699,13 @@ exports.getDefaultWithdrawFromAccount = getDefaultWithdrawFromAccount;
698
699
  const checkIfCreatorIsApprover = (billAmount, approvalRules, signedInUser) => {
699
700
  let isCreatorAlsoApprover = false;
700
701
  const approvalRule = approvalRules.find((rule) => {
701
- const { max, min } = rule.criteria[0].range;
702
+ const amountCriteria = (0, approvalRuleSelector_1.getAmountCriteria)(rule.criteria);
703
+ if (amountCriteria?.min == null) {
704
+ return false;
705
+ }
706
+ const { min, max } = amountCriteria;
702
707
  return (billAmount > min.amount &&
703
- (max?.amount != null ? billAmount <= max?.amount : true));
708
+ (max?.amount != null ? billAmount <= max.amount : true));
704
709
  });
705
710
  if (approvalRule != null) {
706
711
  const requireApprovalSteps = approvalRule.steps.filter((step) => step.action === 'require_approval');
@@ -61,7 +61,7 @@ export declare const initialCreditAcc: CreditAccount;
61
61
  export declare const initialDebitCardSummaries: DebitCardSummaries;
62
62
  export declare const initialResendRevokeCardInvite: ResendRevokeCardInvite;
63
63
  export declare const initialCreditAccountRepayment: CreditAccountRepayment;
64
- export declare const toChargeCardSortKeyType: (v: string) => "status" | "accountType" | "owner" | "cardName" | "limit" | "department" | "cardType" | "utilisation";
64
+ export declare const toChargeCardSortKeyType: (v: string) => "status" | "department" | "accountType" | "owner" | "cardName" | "limit" | "cardType" | "utilisation";
65
65
  export declare type ChargeCardViewSortKey = ReturnType<typeof toChargeCardSortKeyType>;
66
66
  export declare const ALL_CASHBACK_SORT_KEYS: readonly ["month", "cashback"];
67
67
  export declare const toCashbackSortKeyType: (v: string) => "month" | "cashback";
@@ -11,15 +11,13 @@ const initializeRemiSetupApproverViewUpdateDataEpic = (actions$, state$) => acti
11
11
  if (approvalRuleId != null) {
12
12
  const approvalRule = (0, approvalRuleSelector_1.getApprovalRuleById)(state$.value.approvalRuleState, approvalRuleId);
13
13
  if (approvalRule != null) {
14
- const criteria = approvalRule.criteria[0];
15
- const range = criteria?.range;
16
14
  const remiSetupApproverViewUpdateData = {
17
15
  approvalRuleId,
18
16
  steps: approvalRule.steps,
19
17
  criteria: {
20
- rangeType: criteria?.rangeType,
21
- rangeEntity: criteria?.rangeEntity,
22
- range,
18
+ amount: (0, approvalRuleSelector_1.getAmountCriteria)(approvalRule.criteria),
19
+ vendor: (0, approvalRuleSelector_1.getVendorCriteria)(approvalRule.criteria),
20
+ department: (0, approvalRuleSelector_1.getDepartmentCriteria)(approvalRule.criteria),
23
21
  },
24
22
  };
25
23
  fetchActions.push((0, remiSetupApproverViewReducer_1.clearRemiSetupApproverViewUpdateData)(), (0, remiSetupApproverViewReducer_1.saveRemiSetupApproverViewUpdateData)(remiSetupApproverViewUpdateData));
@@ -28,7 +26,7 @@ const initializeRemiSetupApproverViewUpdateDataEpic = (actions$, state$) => acti
28
26
  else {
29
27
  const remiSetupApproverViewCreateData = {
30
28
  steps: [],
31
- criteria: undefined,
29
+ criteria: {},
32
30
  };
33
31
  fetchActions.push((0, remiSetupApproverViewReducer_1.clearRemiSetupApproverViewUpdateData)(), (0, remiSetupApproverViewReducer_1.saveRemiSetupApproverViewUpdateData)(remiSetupApproverViewCreateData));
34
32
  }
@@ -50,15 +50,15 @@ export interface TaskFilterCategory {
50
50
  }
51
51
  export type TaskListFilterCategoryField = 'status' | 'dueDate' | 'assignee' | 'creationDate' | 'priority' | 'tag';
52
52
  export declare const TASK_LIST_GROUP_BY_KEYS: readonly ["groupName", "status", "dueDate", "assignee", "priority", "tag"];
53
- export declare const toTaskListGroupByKeyType: (v: string) => "status" | "dueDate" | "groupName" | "tag" | "priority" | "assignee";
54
- export declare const toTaskListGroupByKeyTypeStrict: (v: string) => "status" | "dueDate" | "groupName" | "tag" | "priority" | "assignee" | undefined;
53
+ export declare const toTaskListGroupByKeyType: (v: string) => "status" | "priority" | "dueDate" | "groupName" | "tag" | "assignee";
54
+ export declare const toTaskListGroupByKeyTypeStrict: (v: string) => "status" | "priority" | "dueDate" | "groupName" | "tag" | "assignee" | undefined;
55
55
  export declare type TaskGroupKey = ReturnType<typeof toTaskListGroupByKeyType>;
56
56
  export interface TaskListUIState extends SpendManagementUIState {
57
57
  groupByKey: TaskGroupKey;
58
58
  searchText: string;
59
59
  sortKey: TaskListViewSortKey;
60
60
  }
61
- declare const toTaskListSortKeyType: (v: string) => "status" | "name" | "dueDate" | "tag" | "priority" | "timeSpent" | "assignee" | "creationDate" | "visibility";
61
+ declare const toTaskListSortKeyType: (v: string) => "status" | "name" | "priority" | "dueDate" | "tag" | "timeSpent" | "assignee" | "creationDate" | "visibility";
62
62
  export declare type TaskListViewSortKey = ReturnType<typeof toTaskListSortKeyType>;
63
63
  export declare const TASK_LIST_FILTER_CATEGORIES: TaskListFilterCategoryOption[];
64
64
  interface TaskListFilterCategoryOption {
@@ -4,7 +4,7 @@ import { AccountBase } from '../../entity/account/accountState';
4
4
  import { ClassBase } from '../../entity/class/classState';
5
5
  import { CustomerBase } from '../../entity/customer/customerState';
6
6
  import { EntityType } from '../../entity/genericEntity/entity';
7
- import { Project } from '../../entity/project/projectState';
7
+ import { ProjectBase } from '../../entity/project/projectState';
8
8
  import { Transaction, TransactionID } from '../../entity/transaction/stateTypes/transaction';
9
9
  import { VendorBase } from '../../entity/vendor/vendorState';
10
10
  import { EntityRecommendationKey } from '../recommendation/recommendationState';
@@ -53,7 +53,7 @@ export interface TransactionLineUpdates {
53
53
  class?: ClassBase;
54
54
  customer?: CustomerBase;
55
55
  lineDescription?: string;
56
- project?: Project;
56
+ project?: ProjectBase;
57
57
  recommendation?: Recommendation[];
58
58
  vendor?: VendorBase;
59
59
  }
@@ -4,7 +4,7 @@ import { AccountBase, RecommendedAccountBase } from '../../entity/account/accoun
4
4
  import { ClassBase, RecommendedClassBase } from '../../entity/class/classState';
5
5
  import { CustomerBase } from '../../entity/customer/customerState';
6
6
  import { Entity } from '../../entity/genericEntity/entity';
7
- import { Project } from '../../entity/project/projectState';
7
+ import { ProjectBase } from '../../entity/project/projectState';
8
8
  import { TransactionID } from '../../entity/transaction/stateTypes/transaction';
9
9
  import { BillableStatus, PlatformLineDetailType, ProductOrService, TransactionLineBase } from '../../entity/transaction/stateTypes/transactionLine';
10
10
  import { TransactionCategory, TransactionType } from '../../entity/transaction/stateTypes/transactionType';
@@ -30,7 +30,7 @@ export interface TransactionDetailLineItemData extends TransactionLineBase {
30
30
  linkedTransactions?: TransactionID[];
31
31
  postingType?: TransactionCategory;
32
32
  postingTypeName?: string;
33
- project?: Project;
33
+ project?: ProjectBase;
34
34
  recommendationsWithCOT?: RecommendationWithCOT[];
35
35
  recommendedAccount?: RecommendedAccountBase;
36
36
  recommendedClass?: RecommendedClassBase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.0.49",
3
+ "version": "5.0.50-betaAR1",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",