@luca-financial/luca-schema 3.0.2 → 3.1.0

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/CHANGELOG.md CHANGED
@@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.1.0] - 2026-04-04
9
+
10
+ ### Added
11
+
12
+ - Support `CASH` and `ESCROW` as valid `AccountType` enum values.
13
+ - Add `CASH` and `ESCROW` account examples to bundled example datasets.
14
+ - Add validation tests covering `CASH` and `ESCROW` account types.
15
+
16
+ ### Changed
17
+
18
+ - Update README account schema documentation to include the new account types.
19
+
20
+ ## [3.0.3] - 2026-03-18
21
+
22
+ ### Changed
23
+
24
+ - Upgrade runtime and development dependencies to their latest compatible versions.
25
+ - Refresh the linting and test toolchain, including the ESLint and Jest stacks.
26
+ - Regenerate `pnpm-lock.yaml` to capture the updated dependency graph for the 3.0.3 release.
27
+
8
28
  ## [3.0.2] - 2026-02-14
9
29
 
10
30
  ### Changed
package/README.md CHANGED
@@ -52,11 +52,13 @@ const common = {
52
52
 
53
53
  Validates financial accounts.
54
54
 
55
+ Supported account types include `CHECKING`, `SAVINGS`, `CASH`, `CREDIT_CARD`, `ESCROW`, and `EXTERNAL`. Use `CASH` for physical cash balances and `ESCROW` for held-funds accounts such as deposits or tax escrows.
56
+
55
57
  ```typescript
56
58
  const account = {
57
59
  id: string;
58
60
  name: string;
59
- type: 'CHECKING' | 'SAVINGS' | 'CREDIT_CARD' | 'EXTERNAL';
61
+ type: 'CHECKING' | 'SAVINGS' | 'CASH' | 'CREDIT_CARD' | 'ESCROW' | 'EXTERNAL';
60
62
  institution: string | null;
61
63
  aggregationServiceId: string | null;
62
64
  statementClosingDay: number | null;
@@ -6,7 +6,7 @@ export type Account = Common & {
6
6
  /**
7
7
  * Allowed account types
8
8
  */
9
- type: 'CHECKING' | 'SAVINGS' | 'CREDIT_CARD' | 'EXTERNAL';
9
+ type: 'CHECKING' | 'SAVINGS' | 'CASH' | 'CREDIT_CARD' | 'ESCROW' | 'EXTERNAL';
10
10
  institution?: Institution;
11
11
  aggregationServiceId?: AggregationServiceID;
12
12
  statementClosingDay?: StatementClosingDay;
@@ -174,7 +174,7 @@ export interface Common {
174
174
  * This interface was referenced by `LucaSchemaEnums`'s JSON-Schema
175
175
  * via the `definition` "AccountType".
176
176
  */
177
- export type AccountType = 'CHECKING' | 'SAVINGS' | 'CREDIT_CARD' | 'EXTERNAL';
177
+ export type AccountType = 'CHECKING' | 'SAVINGS' | 'CASH' | 'CREDIT_CARD' | 'ESCROW' | 'EXTERNAL';
178
178
  /**
179
179
  * Allowed transaction lifecycle states
180
180
  *
@@ -274,7 +274,7 @@ export type Account = Common1 & {
274
274
  /**
275
275
  * Allowed account types
276
276
  */
277
- type: 'CHECKING' | 'SAVINGS' | 'CREDIT_CARD' | 'EXTERNAL';
277
+ type: 'CHECKING' | 'SAVINGS' | 'CASH' | 'CREDIT_CARD' | 'ESCROW' | 'EXTERNAL';
278
278
  institution?: Institution;
279
279
  aggregationServiceId?: AggregationServiceID;
280
280
  statementClosingDay?: StatementClosingDay;
@@ -16,7 +16,14 @@
16
16
  "$defs": {
17
17
  "AccountType": {
18
18
  "type": "string",
19
- "enum": ["CHECKING", "SAVINGS", "CREDIT_CARD", "EXTERNAL"],
19
+ "enum": [
20
+ "CHECKING",
21
+ "SAVINGS",
22
+ "CASH",
23
+ "CREDIT_CARD",
24
+ "ESCROW",
25
+ "EXTERNAL"
26
+ ],
20
27
  "description": "Allowed account types"
21
28
  },
22
29
  "TransactionState": {
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export type Account = Common & {
6
6
  /**
7
7
  * Allowed account types
8
8
  */
9
- type: 'CHECKING' | 'SAVINGS' | 'CREDIT_CARD' | 'EXTERNAL';
9
+ type: 'CHECKING' | 'SAVINGS' | 'CASH' | 'CREDIT_CARD' | 'ESCROW' | 'EXTERNAL';
10
10
  institution?: Institution;
11
11
  aggregationServiceId?: AggregationServiceID;
12
12
  statementClosingDay?: StatementClosingDay;
@@ -174,7 +174,7 @@ export interface Common {
174
174
  * This interface was referenced by `LucaSchemaEnums`'s JSON-Schema
175
175
  * via the `definition` "AccountType".
176
176
  */
177
- export type AccountType = 'CHECKING' | 'SAVINGS' | 'CREDIT_CARD' | 'EXTERNAL';
177
+ export type AccountType = 'CHECKING' | 'SAVINGS' | 'CASH' | 'CREDIT_CARD' | 'ESCROW' | 'EXTERNAL';
178
178
  /**
179
179
  * Allowed transaction lifecycle states
180
180
  *
@@ -274,7 +274,7 @@ export type Account = Common1 & {
274
274
  /**
275
275
  * Allowed account types
276
276
  */
277
- type: 'CHECKING' | 'SAVINGS' | 'CREDIT_CARD' | 'EXTERNAL';
277
+ type: 'CHECKING' | 'SAVINGS' | 'CASH' | 'CREDIT_CARD' | 'ESCROW' | 'EXTERNAL';
278
278
  institution?: Institution;
279
279
  aggregationServiceId?: AggregationServiceID;
280
280
  statementClosingDay?: StatementClosingDay;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luca-financial/luca-schema",
3
- "version": "3.0.2",
3
+ "version": "3.1.0",
4
4
  "description": "Schemas for the Luca Ledger application",
5
5
  "author": "Johnathan Aspinwall",
6
6
  "main": "dist/esm/index.js",
@@ -72,33 +72,33 @@
72
72
  ],
73
73
  "dependencies": {
74
74
  "ajv": "^8.18.0",
75
- "ajv-formats": "^2.1.1"
75
+ "ajv-formats": "^3.0.1"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@babel/cli": "^7.28.6",
79
79
  "@babel/core": "^7.29.0",
80
80
  "@babel/plugin-syntax-import-attributes": "^7.28.6",
81
- "@babel/preset-env": "^7.29.0",
81
+ "@babel/preset-env": "^7.29.2",
82
82
  "@babel/preset-typescript": "^7.28.5",
83
- "@eslint/js": "^9.39.2",
84
- "@types/jest": "^29.5.14",
85
- "babel-jest": "^29.7.0",
86
- "eslint": "^9.39.2",
87
- "eslint-config-prettier": "^9.1.2",
88
- "eslint-plugin-json": "^3.1.0",
83
+ "@eslint/js": "^10.0.1",
84
+ "@types/jest": "^30.0.0",
85
+ "babel-jest": "^30.3.0",
86
+ "eslint": "^10.0.3",
87
+ "eslint-config-prettier": "^10.1.8",
88
+ "eslint-plugin-json": "^4.0.1",
89
89
  "eslint-plugin-prettier": "^5.5.5",
90
- "fs-extra": "^11.3.3",
91
- "globals": "^15.15.0",
90
+ "fs-extra": "^11.3.4",
91
+ "globals": "^17.4.0",
92
92
  "husky": "^9.1.7",
93
- "jest": "^29.7.0",
93
+ "jest": "^30.3.0",
94
94
  "json-schema-to-typescript": "^15.0.4",
95
- "lint-staged": "^15.5.2",
95
+ "lint-staged": "^16.4.0",
96
96
  "prettier": "^3.8.1",
97
- "rimraf": "^5.0.10",
97
+ "rimraf": "^6.1.3",
98
98
  "ts-jest": "^29.4.6",
99
99
  "ts-node": "^10.9.2",
100
100
  "typescript": "^5.9.3",
101
- "typescript-eslint": "^8.55.0"
101
+ "typescript-eslint": "^8.57.1"
102
102
  },
103
103
  "scripts": {
104
104
  "build": "pnpm clean && pnpm generate:types && node scripts/build.js",