@pax2pay/model-banking 0.1.621 → 0.1.623

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.
@@ -9,6 +9,7 @@ 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
12
13
  "unidentified funds", // Flags any received money not yet assigned to a customer
13
14
  ] as const
14
15
  export const type = isly.string(value)
@@ -0,0 +1,7 @@
1
+ import { Base as ResultBase } from "./Base"
2
+
3
+ export interface UnallocatedFunds extends ResultBase {
4
+ check: "unidentified funds"
5
+ balance: number
6
+ }
7
+ export namespace UnallocatedFunds {}
@@ -6,6 +6,7 @@ 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"
9
10
  import { UnidentifiedFunds as CheckUnidentifiedFunds } from "./UnidentifiedFunds"
10
11
 
11
12
  export type Check =
@@ -15,6 +16,7 @@ export type Check =
15
16
  | Check.LedgerIntegrity
16
17
  | Check.Overdraft
17
18
  | Check.TransactionMatch
19
+ | Check.UnallocatedFunds
18
20
  | Check.UnidentifiedFunds
19
21
  export namespace Check {
20
22
  export import Result = CheckResult
@@ -25,5 +27,6 @@ export namespace Check {
25
27
  export type LedgerIntegrity = CheckLedgerIntegrity
26
28
  export type Overdraft = CheckOverdraft
27
29
  export type TransactionMatch = CheckTransactionMatch
30
+ export type UnallocatedFunds = CheckUnallocatedFunds
28
31
  export type UnidentifiedFunds = CheckUnidentifiedFunds
29
32
  }
@@ -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", "unidentified funds"];
5
- const type: isly.Type<"overdraft" | "bank feed integrity" | "external reconciliation" | "internal reconciliation" | "ledger integrity" | "transaction match" | "unidentified funds">;
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">;
6
6
  }
@@ -11,6 +11,7 @@ var Checks;
11
11
  "ledger integrity",
12
12
  "overdraft",
13
13
  "transaction match",
14
+ "unallocated funds",
14
15
  "unidentified funds",
15
16
  ];
16
17
  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,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"}
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"}
@@ -0,0 +1,6 @@
1
+ import { Base as ResultBase } from "./Base";
2
+ export interface UnallocatedFunds extends ResultBase {
3
+ check: "unidentified funds";
4
+ balance: number;
5
+ }
6
+ export declare namespace UnallocatedFunds { }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=UnallocatedFunds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnallocatedFunds.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/UnallocatedFunds.ts"],"names":[],"mappings":""}
@@ -6,8 +6,9 @@ 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";
9
10
  import { UnidentifiedFunds as CheckUnidentifiedFunds } from "./UnidentifiedFunds";
10
- export type Check = Check.BankFeedIntegrity | Check.ExternalReconciliation | Check.InternalReconciliation | Check.LedgerIntegrity | Check.Overdraft | Check.TransactionMatch | Check.UnidentifiedFunds;
11
+ export type Check = Check.BankFeedIntegrity | Check.ExternalReconciliation | Check.InternalReconciliation | Check.LedgerIntegrity | Check.Overdraft | Check.TransactionMatch | Check.UnallocatedFunds | Check.UnidentifiedFunds;
11
12
  export declare namespace Check {
12
13
  export import Result = CheckResult;
13
14
  export import Checks = CheckChecks;
@@ -17,5 +18,6 @@ export declare namespace Check {
17
18
  type LedgerIntegrity = CheckLedgerIntegrity;
18
19
  type Overdraft = CheckOverdraft;
19
20
  type TransactionMatch = CheckTransactionMatch;
21
+ type UnallocatedFunds = CheckUnallocatedFunds;
20
22
  type UnidentifiedFunds = CheckUnidentifiedFunds;
21
23
  }
@@ -1 +1 @@
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
+ {"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,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", "unidentified funds"];
5
- const type: isly.Type<"overdraft" | "bank feed integrity" | "external reconciliation" | "internal reconciliation" | "ledger integrity" | "transaction match" | "unidentified funds">;
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">;
6
6
  }
@@ -8,6 +8,7 @@ export var Checks;
8
8
  "ledger integrity",
9
9
  "overdraft",
10
10
  "transaction match",
11
+ "unallocated funds",
11
12
  "unidentified funds",
12
13
  ];
13
14
  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,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"}
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"}
@@ -0,0 +1,6 @@
1
+ import { Base as ResultBase } from "./Base";
2
+ export interface UnallocatedFunds extends ResultBase {
3
+ check: "unidentified funds";
4
+ balance: number;
5
+ }
6
+ export declare namespace UnallocatedFunds { }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=UnallocatedFunds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnallocatedFunds.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/UnallocatedFunds.ts"],"names":[],"mappings":""}
@@ -6,8 +6,9 @@ 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";
9
10
  import { UnidentifiedFunds as CheckUnidentifiedFunds } from "./UnidentifiedFunds";
10
- export type Check = Check.BankFeedIntegrity | Check.ExternalReconciliation | Check.InternalReconciliation | Check.LedgerIntegrity | Check.Overdraft | Check.TransactionMatch | Check.UnidentifiedFunds;
11
+ export type Check = Check.BankFeedIntegrity | Check.ExternalReconciliation | Check.InternalReconciliation | Check.LedgerIntegrity | Check.Overdraft | Check.TransactionMatch | Check.UnallocatedFunds | Check.UnidentifiedFunds;
11
12
  export declare namespace Check {
12
13
  export import Result = CheckResult;
13
14
  export import Checks = CheckChecks;
@@ -17,5 +18,6 @@ export declare namespace Check {
17
18
  type LedgerIntegrity = CheckLedgerIntegrity;
18
19
  type Overdraft = CheckOverdraft;
19
20
  type TransactionMatch = CheckTransactionMatch;
21
+ type UnallocatedFunds = CheckUnallocatedFunds;
20
22
  type UnidentifiedFunds = CheckUnidentifiedFunds;
21
23
  }
@@ -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;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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.621",
3
+ "version": "0.1.623",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",