@zeniai/client-epic-state 4.19.88-betaVR1 → 4.19.88-betaVR2

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.
@@ -33,6 +33,9 @@ export interface TransactionPayload extends TransactionIDPayload, AccountBasePay
33
33
  recipient_total_amount?: number;
34
34
  recommendations?: RecommendationPayload[];
35
35
  sync_token?: string;
36
+ target_account_id?: string | null;
37
+ target_account_integration_id?: string | null;
38
+ target_account_name?: string | null;
36
39
  total_amount?: number;
37
40
  transaction_type_name?: string;
38
41
  transaction_update_time?: string;
@@ -65,6 +65,17 @@ const toTransaction = (payload) => {
65
65
  ...(payload.customer_name !== null && payload.customer_name !== ''
66
66
  ? { customerName: payload.customer_name }
67
67
  : {}),
68
+ ...(payload.target_account_id !== null && payload.target_account_id !== ''
69
+ ? { targetAccountId: payload.target_account_id }
70
+ : {}),
71
+ ...(payload.target_account_integration_id !== null &&
72
+ payload.target_account_integration_id !== ''
73
+ ? { targetAccountIntegrationId: payload.target_account_integration_id }
74
+ : {}),
75
+ ...(payload.target_account_name !== null &&
76
+ payload.target_account_name !== ''
77
+ ? { targetAccountName: payload.target_account_name }
78
+ : {}),
68
79
  linkedTransactions: payload.linked_transactions?.map((transactionIDPayload) => (0, transactionIDPayload_1.toTransactionID)(transactionIDPayload)),
69
80
  lines: payload?.lines?.map((linePayload) => (0, transactionLinePayload_1.toLine)(linePayload, amount, recipientAmount)),
70
81
  account: payloadHasAccountInfo(payload)
@@ -40,6 +40,9 @@ export interface Transaction extends BaseTransaction {
40
40
  qboId?: string;
41
41
  recommendations?: RecommendationByLineId;
42
42
  syncToken?: string;
43
+ targetAccountId?: ID;
44
+ targetAccountIntegrationId?: string;
45
+ targetAccountName?: string;
43
46
  updateTime?: ZeniDate;
44
47
  vendorId?: ID;
45
48
  vendorName?: string;
@@ -61,6 +61,17 @@ export const toTransaction = (payload) => {
61
61
  ...(payload.customer_name !== null && payload.customer_name !== ''
62
62
  ? { customerName: payload.customer_name }
63
63
  : {}),
64
+ ...(payload.target_account_id !== null && payload.target_account_id !== ''
65
+ ? { targetAccountId: payload.target_account_id }
66
+ : {}),
67
+ ...(payload.target_account_integration_id !== null &&
68
+ payload.target_account_integration_id !== ''
69
+ ? { targetAccountIntegrationId: payload.target_account_integration_id }
70
+ : {}),
71
+ ...(payload.target_account_name !== null &&
72
+ payload.target_account_name !== ''
73
+ ? { targetAccountName: payload.target_account_name }
74
+ : {}),
64
75
  linkedTransactions: payload.linked_transactions?.map((transactionIDPayload) => toTransactionID(transactionIDPayload)),
65
76
  lines: payload?.lines?.map((linePayload) => toLine(linePayload, amount, recipientAmount)),
66
77
  account: payloadHasAccountInfo(payload)
@@ -769,6 +769,8 @@ const expenseAutomationTransactionsView = createSlice({
769
769
  };
770
770
  reviewTabView.selectedCheckBoxTransactionIds =
771
771
  reviewTabView.selectedCheckBoxTransactionIds.filter((id) => id !== txnId);
772
+ reviewTabView.transactionIdsWithUnsavedData =
773
+ reviewTabView.transactionIdsWithUnsavedData.filter((id) => id !== txnId);
772
774
  }
773
775
  },
774
776
  },
package/lib/index.d.ts CHANGED
@@ -272,7 +272,8 @@ import { ExpenseAutomationStepDetails, ExpenseAutomationViewSelector } from './v
272
272
  import { ExpenseAutomationFluxAnalysisViewSelector, FluxAnalysisOperatingExpenseView, FluxAnalysisSectionType, FluxAnalysisVendorView, FluxAnalysisViewSectionReport, FluxVendorAccountsAndClassesView } from './view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes';
273
273
  import { JEAccountSettingsView } from './view/expenseAutomationView/selectorTypes/jeAccountSettingsViewSelectorTypes';
274
274
  import { ExpenseAutomationJESchedulesViewSelector } from './view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes';
275
- import { BulkUploadSelectorData, CompletedTransactionsSelectorData, ResolvedBatchDetails, ResolvedBatchFile, ResolvedCandidate, ExpenseAutomationMissingReceiptsViewSelector } from './view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes';
275
+ import { BulkUploadSelectorData, ExpenseAutomationMissingReceiptsViewSelector } from './view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes';
276
+ import { CompletedTransactionsSelectorData, ResolvedBatchDetails, ResolvedBatchFile, ResolvedCandidate } from './view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes';
276
277
  import { AccountReconSectionID, AccountReconciliationByAccount, AccountReconciliationBySection, ExpenseAutomationReconciliationViewSelector } from './view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes';
277
278
  import { ExpenseAutomationTransactionViewSelector, TransactionReviewLocalDataSelectorView } from './view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes';
278
279
  import { getExpenseAutomationFluxAnalysisView } from './view/expenseAutomationView/selectors/fluxAnalysisViewSelector';