@zeniai/client-epic-state 4.19.59-betaJK2 → 4.19.59-betaJK3

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.
@@ -6,7 +6,7 @@ import { VendorBasePayload } from '../vendor/vendorPayload';
6
6
  import { TransactionActivityLog, TransactionActivityLogData } from './transactionActivityLogState';
7
7
  export interface TransactionActivityLogLinePayload {
8
8
  account?: AccountBasePayload;
9
- class?: ClassBasePayload;
9
+ accounting_class?: ClassBasePayload;
10
10
  customer?: CustomerBasePayload;
11
11
  vendor?: VendorBasePayload;
12
12
  }
@@ -13,7 +13,9 @@ const toTransactionActivityLogLine = (line) => {
13
13
  account: line.account
14
14
  ? (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(line.account)
15
15
  : undefined,
16
- class: line.class ? (0, classPayload_1.mapClassBasePayloadToClassBase)(line.class) : undefined,
16
+ class: line.accounting_class
17
+ ? (0, classPayload_1.mapClassBasePayloadToClassBase)(line.accounting_class)
18
+ : undefined,
17
19
  customer: line.customer ? (0, customerPayload_1.toCustomerBase)(line.customer, false) : undefined,
18
20
  vendor: line.vendor
19
21
  ? (0, vendorPayload_1.mapVendorBasePayloadToVendorBase)(line.vendor)
@@ -5,8 +5,8 @@ import { ClassBase } from '../class/classState';
5
5
  import { CustomerBase } from '../customer/customerState';
6
6
  import { AISummary } from '../transaction/stateTypes/transactionLine';
7
7
  import { VendorBase } from '../vendor/vendorState';
8
- export declare const ALL_ACTIVITY_LOG_EVENT_TYPE: readonly ["transaction.sync_database", "transaction_line.account.updated", "transaction_line.class.updated", "transaction_line.customer.updated", "transaction_line.vendor.updated", "transaction_line.vendor.added"];
9
- export declare const toActivityLogEventType: (v: string) => "transaction.sync_database" | "transaction_line.account.updated" | "transaction_line.class.updated" | "transaction_line.customer.updated" | "transaction_line.vendor.updated" | "transaction_line.vendor.added";
8
+ export declare const ALL_ACTIVITY_LOG_EVENT_TYPE: readonly ["transaction.sync_database", "transaction_line.account.updated", "transaction_line.class.updated", "transaction_line.customer.updated", "transaction_line.vendor.updated", "transaction_line.vendor.matched"];
9
+ export declare const toActivityLogEventType: (v: string) => "transaction.sync_database" | "transaction_line.account.updated" | "transaction_line.class.updated" | "transaction_line.customer.updated" | "transaction_line.vendor.updated" | "transaction_line.vendor.matched";
10
10
  export type ActivityLogEventType = ReturnType<typeof toActivityLogEventType>;
11
11
  export interface ActivityLogLine {
12
12
  account?: AccountBase;
@@ -8,7 +8,7 @@ exports.ALL_ACTIVITY_LOG_EVENT_TYPE = [
8
8
  'transaction_line.class.updated',
9
9
  'transaction_line.customer.updated',
10
10
  'transaction_line.vendor.updated',
11
- 'transaction_line.vendor.added',
11
+ 'transaction_line.vendor.matched',
12
12
  ];
13
13
  const toActivityLogEventType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_ACTIVITY_LOG_EVENT_TYPE);
14
14
  exports.toActivityLogEventType = toActivityLogEventType;
@@ -10,7 +10,9 @@ const toTransactionActivityLogLine = (line) => {
10
10
  account: line.account
11
11
  ? mapAccountBasePayloadToAccountBase(line.account)
12
12
  : undefined,
13
- class: line.class ? mapClassBasePayloadToClassBase(line.class) : undefined,
13
+ class: line.accounting_class
14
+ ? mapClassBasePayloadToClassBase(line.accounting_class)
15
+ : undefined,
14
16
  customer: line.customer ? toCustomerBase(line.customer, false) : undefined,
15
17
  vendor: line.vendor
16
18
  ? mapVendorBasePayloadToVendorBase(line.vendor)
@@ -5,6 +5,6 @@ export const ALL_ACTIVITY_LOG_EVENT_TYPE = [
5
5
  'transaction_line.class.updated',
6
6
  'transaction_line.customer.updated',
7
7
  'transaction_line.vendor.updated',
8
- 'transaction_line.vendor.added',
8
+ 'transaction_line.vendor.matched',
9
9
  ];
10
10
  export const toActivityLogEventType = (v) => stringToUnion(v, ALL_ACTIVITY_LOG_EVENT_TYPE);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.19.59-betaJK2",
3
+ "version": "4.19.59-betaJK3",
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",