@zeniai/client-epic-state 5.1.13 → 5.1.15

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.
@@ -51,6 +51,8 @@ export interface TransactionPayload extends TransactionIDPayload, AccountBasePay
51
51
  to_from_account_integration_id?: string | null;
52
52
  to_from_account_name?: string | null;
53
53
  total_amount?: number;
54
+ /** Transactions list API: count of categorizable lines across all statuses (not just the active tab) */
55
+ total_lines_count?: number;
54
56
  transaction_type_name?: string;
55
57
  transaction_update_time?: string;
56
58
  vendor_id?: string | null;
@@ -124,6 +124,9 @@ const toTransaction = (payload) => {
124
124
  : {}),
125
125
  linkedTransactions: payload.linked_transactions?.map((transactionIDPayload) => (0, transactionIDPayload_1.toTransactionID)(transactionIDPayload)),
126
126
  lines,
127
+ ...(payload.total_lines_count != null
128
+ ? { totalLinesCount: payload.total_lines_count }
129
+ : {}),
127
130
  account: payloadHasAccountInfo(payload)
128
131
  ? (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(payload)
129
132
  : undefined,
@@ -56,6 +56,8 @@ export interface Transaction extends BaseTransaction {
56
56
  toFromAccountId?: ID;
57
57
  toFromAccountIntegrationId?: string;
58
58
  toFromAccountName?: string;
59
+ /** Count of categorizable lines across all statuses (transactions list API); used to gate single-line-only flows */
60
+ totalLinesCount?: number;
59
61
  updateTime?: ZeniDate;
60
62
  vendorId?: ID;
61
63
  vendorName?: string;
@@ -120,6 +120,9 @@ export const toTransaction = (payload) => {
120
120
  : {}),
121
121
  linkedTransactions: payload.linked_transactions?.map((transactionIDPayload) => toTransactionID(transactionIDPayload)),
122
122
  lines,
123
+ ...(payload.total_lines_count != null
124
+ ? { totalLinesCount: payload.total_lines_count }
125
+ : {}),
123
126
  account: payloadHasAccountInfo(payload)
124
127
  ? mapAccountBasePayloadToAccountBase(payload)
125
128
  : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.1.13",
3
+ "version": "5.1.15",
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",
@@ -79,7 +79,7 @@
79
79
  "ts-prune": "^0.10.3",
80
80
  "ts-unused-exports": "^11.0.1",
81
81
  "typescript": "^5.7.3",
82
- "vitest": "^3.2.4"
82
+ "vitest": "^4.1.8"
83
83
  },
84
84
  "dependencies": {
85
85
  "@redux-devtools/extension": "^3.3.0",