@luca-financial/luca-schema 3.0.3 → 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 +20 -0
- package/README.md +3 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/schemas/enums.json +8 -1
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
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;
|
package/dist/esm/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;
|
|
@@ -16,7 +16,14 @@
|
|
|
16
16
|
"$defs": {
|
|
17
17
|
"AccountType": {
|
|
18
18
|
"type": "string",
|
|
19
|
-
"enum": [
|
|
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;
|