@pax2pay/model-banking 0.1.629 → 0.1.631

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.
@@ -13,17 +13,16 @@ jobs:
13
13
 
14
14
  steps:
15
15
  - name: "Checkout source code"
16
- uses: "actions/checkout@v3"
16
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17
17
  with:
18
18
  token: ${{ secrets.ADMIN_TOKEN }}
19
19
  - name: "Setup Node"
20
- uses: "actions/setup-node@v3"
20
+ uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
21
21
  with:
22
- node-version: 24
23
- cache: 'npm'
22
+ node-version: 24.16
24
23
  - name: "Version Bump"
25
24
  id: version-bump
26
- uses: "phips28/gh-action-bump-version@master"
25
+ uses: phips28/gh-action-bump-version@215e27a882516826c59df7f09da8c67d5f375cbd # v11.1.5
27
26
  with:
28
27
  tag-prefix: 'release-'
29
28
  env:
@@ -2,60 +2,80 @@ name: CI
2
2
 
3
3
  on:
4
4
  pull_request:
5
-
5
+
6
6
  jobs:
7
7
  build:
8
8
  name: Build
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
- - uses: actions/checkout@v3
12
- - uses: actions/setup-node@v3
11
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
12
+ - name: Setup Socket Dev
13
+ uses: SocketDev/action@2d3f25590c6ed6ba11a9a14c064d962a3a04698f # v1.3.1
14
+ with:
15
+ mode: firewall-free
16
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
13
17
  with:
14
- node-version: 24
15
- cache: 'npm'
16
- - uses: actions/cache@v3
18
+ node-version: 24.16
19
+ - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
20
+ id: node-modules-cache
17
21
  with:
18
22
  path: '**/node_modules'
19
- key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
20
- - run: npm install
23
+ key: node_modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/package-lock.json') }}
24
+ - name: Install dependencies on cache miss
25
+ if: steps.node-modules-cache.outputs.cache-hit != 'true'
26
+ run: sfw --verbose npm ci
21
27
  - run: npm run build
28
+
22
29
  test:
23
30
  name: Test
24
31
  runs-on: ubuntu-latest
25
32
  steps:
26
- - uses: actions/checkout@v3
27
- - uses: actions/setup-node@v3
33
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34
+ - name: Setup Socket Dev
35
+ uses: SocketDev/action@2d3f25590c6ed6ba11a9a14c064d962a3a04698f # v1.3.1
36
+ with:
37
+ mode: firewall-free
38
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
28
39
  with:
29
- node-version: 24
30
- cache: 'npm'
31
- - uses: actions/cache@v3
40
+ node-version: 24.16
41
+ - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
42
+ id: node-modules-cache
32
43
  with:
33
44
  path: '**/node_modules'
34
- key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
35
- - run: npm install
45
+ key: node_modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/package-lock.json') }}
46
+ - name: Install dependencies on cache miss
47
+ if: steps.node-modules-cache.outputs.cache-hit != 'true'
48
+ run: sfw --verbose npm ci
36
49
  - run: npm run test
50
+
37
51
  lint:
38
52
  name: Lint
39
53
  runs-on: ubuntu-latest
40
54
  steps:
41
- - uses: actions/checkout@v3
42
- - uses: actions/setup-node@v3
55
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
56
+ - name: Setup Socket Dev
57
+ uses: SocketDev/action@2d3f25590c6ed6ba11a9a14c064d962a3a04698f # v1.3.1
58
+ with:
59
+ mode: firewall-free
60
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
43
61
  with:
44
- node-version: 24
45
- cache: 'npm'
46
- - uses: actions/cache@v3
62
+ node-version: 24.16
63
+ - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
64
+ id: node-modules-cache
47
65
  with:
48
66
  path: '**/node_modules'
49
- key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
50
- - run: npm install
67
+ key: node_modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/package-lock.json') }}
68
+ - name: Install dependencies on cache miss
69
+ if: steps.node-modules-cache.outputs.cache-hit != 'true'
70
+ run: sfw --verbose npm ci
51
71
  - run: npm run lint
72
+
52
73
  audit:
53
74
  name: Audit
54
75
  runs-on: ubuntu-latest
55
76
  steps:
56
- - uses: actions/checkout@v3
57
- - uses: actions/setup-node@v3
77
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
78
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
58
79
  with:
59
- node-version: 24
60
- cache: 'npm'
61
- - run: npm audit --omit=dev
80
+ node-version: 24.16
81
+ - run: npm audit --omit dev
@@ -11,18 +11,18 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: "Checkout source code"
14
- uses: "actions/checkout@v3"
15
- - name: "Setup Node"
16
- uses: "actions/setup-node@v3"
14
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15
+ - name: Setup Socket Dev
16
+ uses: SocketDev/action@2d3f25590c6ed6ba11a9a14c064d962a3a04698f # v1.3.1
17
17
  with:
18
- node-version: 24
19
- cache: 'npm'
20
- - uses: actions/cache@v3
18
+ mode: firewall-free
19
+ - name: "Setup Node"
20
+ uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
21
21
  with:
22
- path: '**/node_modules'
23
- key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
22
+ node-version: 24.16
23
+ package-manager-cache: false
24
24
  - name: Install
25
- run: npm install
25
+ run: sfw --verbose npm ci
26
26
  - name: Build
27
27
  run: npm run build
28
28
  - name: Publish
@@ -9,7 +9,6 @@ export namespace Checks {
9
9
  "ledger integrity", // Proves Opening Balance + Operations = Closing Balance
10
10
  "overdraft", // Warns if any customer accounts fall below zero
11
11
  "transaction match", // Proves all external bank txns have a 1:1 internal ledger txn
12
- "unallocated funds", // Never flags, only zero
13
12
  "unidentified funds", // Flags any received money not yet assigned to a customer
14
13
  ] as const
15
14
  export const type = isly.string(value)
@@ -6,7 +6,6 @@ import { LedgerIntegrity as CheckLedgerIntegrity } from "./LedgerIntegrity"
6
6
  import { Overdraft as CheckOverdraft } from "./Overdraft"
7
7
  import { Result as CheckResult } from "./Result"
8
8
  import { TransactionMatch as CheckTransactionMatch } from "./TransactionMatch"
9
- import { UnallocatedFunds as CheckUnallocatedFunds } from "./UnallocatedFunds"
10
9
  import { UnidentifiedFunds as CheckUnidentifiedFunds } from "./UnidentifiedFunds"
11
10
 
12
11
  export type Check =
@@ -16,7 +15,6 @@ export type Check =
16
15
  | Check.LedgerIntegrity
17
16
  | Check.Overdraft
18
17
  | Check.TransactionMatch
19
- | Check.UnallocatedFunds
20
18
  | Check.UnidentifiedFunds
21
19
  export namespace Check {
22
20
  export import Result = CheckResult
@@ -27,6 +25,5 @@ export namespace Check {
27
25
  export type LedgerIntegrity = CheckLedgerIntegrity
28
26
  export type Overdraft = CheckOverdraft
29
27
  export type TransactionMatch = CheckTransactionMatch
30
- export type UnallocatedFunds = CheckUnallocatedFunds
31
28
  export type UnidentifiedFunds = CheckUnidentifiedFunds
32
29
  }
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly";
2
2
  export type Checks = (typeof Checks.value)[number];
3
3
  export declare namespace Checks {
4
- const value: readonly ["bank feed integrity", "external reconciliation", "internal reconciliation", "ledger integrity", "overdraft", "transaction match", "unallocated funds", "unidentified funds"];
5
- const type: isly.Type<"overdraft" | "bank feed integrity" | "external reconciliation" | "internal reconciliation" | "ledger integrity" | "transaction match" | "unallocated funds" | "unidentified funds">;
4
+ const value: readonly ["bank feed integrity", "external reconciliation", "internal reconciliation", "ledger integrity", "overdraft", "transaction match", "unidentified funds"];
5
+ const type: isly.Type<"overdraft" | "bank feed integrity" | "external reconciliation" | "internal reconciliation" | "ledger integrity" | "transaction match" | "unidentified funds">;
6
6
  }
@@ -11,7 +11,6 @@ var Checks;
11
11
  "ledger integrity",
12
12
  "overdraft",
13
13
  "transaction match",
14
- "unallocated funds",
15
14
  "unidentified funds",
16
15
  ];
17
16
  Checks.type = isly_1.isly.string(Checks.value);
@@ -1 +1 @@
1
- {"version":3,"file":"Checks.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Checks.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAG3B,IAAiB,MAAM,CAYtB;AAZD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,qBAAqB;QACrB,yBAAyB;QACzB,yBAAyB;QACzB,kBAAkB;QAClB,WAAW;QACX,mBAAmB;QACnB,mBAAmB;QACnB,oBAAoB;KACX,CAAA;IACG,WAAI,GAAG,WAAI,CAAC,MAAM,CAAC,OAAA,KAAK,CAAC,CAAA;AACvC,CAAC,EAZgB,MAAM,sBAAN,MAAM,QAYtB"}
1
+ {"version":3,"file":"Checks.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Checks.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAG3B,IAAiB,MAAM,CAWtB;AAXD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,qBAAqB;QACrB,yBAAyB;QACzB,yBAAyB;QACzB,kBAAkB;QAClB,WAAW;QACX,mBAAmB;QACnB,oBAAoB;KACX,CAAA;IACG,WAAI,GAAG,WAAI,CAAC,MAAM,CAAC,OAAA,KAAK,CAAC,CAAA;AACvC,CAAC,EAXgB,MAAM,sBAAN,MAAM,QAWtB"}
@@ -6,9 +6,8 @@ import { LedgerIntegrity as CheckLedgerIntegrity } from "./LedgerIntegrity";
6
6
  import { Overdraft as CheckOverdraft } from "./Overdraft";
7
7
  import { Result as CheckResult } from "./Result";
8
8
  import { TransactionMatch as CheckTransactionMatch } from "./TransactionMatch";
9
- import { UnallocatedFunds as CheckUnallocatedFunds } from "./UnallocatedFunds";
10
9
  import { UnidentifiedFunds as CheckUnidentifiedFunds } from "./UnidentifiedFunds";
11
- export type Check = Check.BankFeedIntegrity | Check.ExternalReconciliation | Check.InternalReconciliation | Check.LedgerIntegrity | Check.Overdraft | Check.TransactionMatch | Check.UnallocatedFunds | Check.UnidentifiedFunds;
10
+ export type Check = Check.BankFeedIntegrity | Check.ExternalReconciliation | Check.InternalReconciliation | Check.LedgerIntegrity | Check.Overdraft | Check.TransactionMatch | Check.UnidentifiedFunds;
12
11
  export declare namespace Check {
13
12
  export import Result = CheckResult;
14
13
  export import Checks = CheckChecks;
@@ -18,6 +17,5 @@ export declare namespace Check {
18
17
  type LedgerIntegrity = CheckLedgerIntegrity;
19
18
  type Overdraft = CheckOverdraft;
20
19
  type TransactionMatch = CheckTransactionMatch;
21
- type UnallocatedFunds = CheckUnallocatedFunds;
22
20
  type UnidentifiedFunds = CheckUnidentifiedFunds;
23
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/index.ts"],"names":[],"mappings":";;;AACA,qCAAgD;AAKhD,qCAAgD;AAchD,IAAiB,KAAK,CAWrB;AAXD,WAAiB,KAAK;IACP,YAAM,GAAG,eAAW,CAAA;IACpB,YAAM,GAAG,eAAW,CAAA;AASnC,CAAC,EAXgB,KAAK,qBAAL,KAAK,QAWrB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/index.ts"],"names":[],"mappings":";;;AACA,qCAAgD;AAKhD,qCAAgD;AAYhD,IAAiB,KAAK,CAUrB;AAVD,WAAiB,KAAK;IACP,YAAM,GAAG,eAAW,CAAA;IACpB,YAAM,GAAG,eAAW,CAAA;AAQnC,CAAC,EAVgB,KAAK,qBAAL,KAAK,QAUrB"}
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly";
2
2
  export type Checks = (typeof Checks.value)[number];
3
3
  export declare namespace Checks {
4
- const value: readonly ["bank feed integrity", "external reconciliation", "internal reconciliation", "ledger integrity", "overdraft", "transaction match", "unallocated funds", "unidentified funds"];
5
- const type: isly.Type<"overdraft" | "bank feed integrity" | "external reconciliation" | "internal reconciliation" | "ledger integrity" | "transaction match" | "unallocated funds" | "unidentified funds">;
4
+ const value: readonly ["bank feed integrity", "external reconciliation", "internal reconciliation", "ledger integrity", "overdraft", "transaction match", "unidentified funds"];
5
+ const type: isly.Type<"overdraft" | "bank feed integrity" | "external reconciliation" | "internal reconciliation" | "ledger integrity" | "transaction match" | "unidentified funds">;
6
6
  }
@@ -8,7 +8,6 @@ export var Checks;
8
8
  "ledger integrity",
9
9
  "overdraft",
10
10
  "transaction match",
11
- "unallocated funds",
12
11
  "unidentified funds",
13
12
  ];
14
13
  Checks.type = isly.string(Checks.value);
@@ -1 +1 @@
1
- {"version":3,"file":"Checks.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Checks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,MAAM,CAYtB;AAZD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,qBAAqB;QACrB,yBAAyB;QACzB,yBAAyB;QACzB,kBAAkB;QAClB,WAAW;QACX,mBAAmB;QACnB,mBAAmB;QACnB,oBAAoB;KACX,CAAA;IACG,WAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAA,KAAK,CAAC,CAAA;AACvC,CAAC,EAZgB,MAAM,KAAN,MAAM,QAYtB"}
1
+ {"version":3,"file":"Checks.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Checks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,MAAM,CAWtB;AAXD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,qBAAqB;QACrB,yBAAyB;QACzB,yBAAyB;QACzB,kBAAkB;QAClB,WAAW;QACX,mBAAmB;QACnB,oBAAoB;KACX,CAAA;IACG,WAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAA,KAAK,CAAC,CAAA;AACvC,CAAC,EAXgB,MAAM,KAAN,MAAM,QAWtB"}
@@ -6,9 +6,8 @@ import { LedgerIntegrity as CheckLedgerIntegrity } from "./LedgerIntegrity";
6
6
  import { Overdraft as CheckOverdraft } from "./Overdraft";
7
7
  import { Result as CheckResult } from "./Result";
8
8
  import { TransactionMatch as CheckTransactionMatch } from "./TransactionMatch";
9
- import { UnallocatedFunds as CheckUnallocatedFunds } from "./UnallocatedFunds";
10
9
  import { UnidentifiedFunds as CheckUnidentifiedFunds } from "./UnidentifiedFunds";
11
- export type Check = Check.BankFeedIntegrity | Check.ExternalReconciliation | Check.InternalReconciliation | Check.LedgerIntegrity | Check.Overdraft | Check.TransactionMatch | Check.UnallocatedFunds | Check.UnidentifiedFunds;
10
+ export type Check = Check.BankFeedIntegrity | Check.ExternalReconciliation | Check.InternalReconciliation | Check.LedgerIntegrity | Check.Overdraft | Check.TransactionMatch | Check.UnidentifiedFunds;
12
11
  export declare namespace Check {
13
12
  export import Result = CheckResult;
14
13
  export import Checks = CheckChecks;
@@ -18,6 +17,5 @@ export declare namespace Check {
18
17
  type LedgerIntegrity = CheckLedgerIntegrity;
19
18
  type Overdraft = CheckOverdraft;
20
19
  type TransactionMatch = CheckTransactionMatch;
21
- type UnallocatedFunds = CheckUnallocatedFunds;
22
20
  type UnidentifiedFunds = CheckUnidentifiedFunds;
23
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,UAAU,CAAA;AAKhD,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,UAAU,CAAA;AAchD,MAAM,KAAW,KAAK,CAWrB;AAXD,WAAiB,KAAK;IACP,YAAM,GAAG,WAAW,CAAA;IACpB,YAAM,GAAG,WAAW,CAAA;AASnC,CAAC,EAXgB,KAAK,KAAL,KAAK,QAWrB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,UAAU,CAAA;AAKhD,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,UAAU,CAAA;AAYhD,MAAM,KAAW,KAAK,CAUrB;AAVD,WAAiB,KAAK;IACP,YAAM,GAAG,WAAW,CAAA;IACpB,YAAM,GAAG,WAAW,CAAA;AAQnC,CAAC,EAVgB,KAAK,KAAL,KAAK,QAUrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.629",
3
+ "version": "0.1.631",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",
@@ -1,7 +0,0 @@
1
- import { Base as ResultBase } from "./Base"
2
-
3
- export interface UnallocatedFunds extends ResultBase {
4
- check: "unallocated funds"
5
- balance: number
6
- }
7
- export namespace UnallocatedFunds {}
@@ -1,6 +0,0 @@
1
- import { Base as ResultBase } from "./Base";
2
- export interface UnallocatedFunds extends ResultBase {
3
- check: "unallocated funds";
4
- balance: number;
5
- }
6
- export declare namespace UnallocatedFunds { }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=UnallocatedFunds.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnallocatedFunds.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/UnallocatedFunds.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { Base as ResultBase } from "./Base";
2
- export interface UnallocatedFunds extends ResultBase {
3
- check: "unallocated funds";
4
- balance: number;
5
- }
6
- export declare namespace UnallocatedFunds { }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=UnallocatedFunds.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnallocatedFunds.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/UnallocatedFunds.ts"],"names":[],"mappings":""}