@pax2pay/model-banking 0.1.623 → 0.1.625
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/Treasury/Snapshot/Check/LedgerIntegrity.ts +3 -0
- package/Treasury/Snapshot/Check/UnallocatedFunds.ts +1 -1
- package/Treasury/Snapshot/index.ts +2 -1
- package/dist/cjs/Treasury/Snapshot/Check/LedgerIntegrity.d.ts +9 -0
- package/dist/cjs/Treasury/Snapshot/Check/UnallocatedFunds.d.ts +1 -1
- package/dist/cjs/Treasury/Snapshot/index.d.ts +2 -1
- package/dist/cjs/Treasury/Snapshot/index.js +1 -0
- package/dist/cjs/Treasury/Snapshot/index.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/LedgerIntegrity.d.ts +9 -0
- package/dist/mjs/Treasury/Snapshot/Check/UnallocatedFunds.d.ts +1 -1
- package/dist/mjs/Treasury/Snapshot/index.d.ts +2 -1
- package/dist/mjs/Treasury/Snapshot/index.js +1 -0
- package/dist/mjs/Treasury/Snapshot/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ import { funding as snapshotFunding } from "./funding"
|
|
|
11
11
|
import { Reconciliation as SnapshotReconciliation } from "./Reconciliation"
|
|
12
12
|
|
|
13
13
|
export interface Snapshot {
|
|
14
|
-
version:
|
|
14
|
+
version: typeof Snapshot.version
|
|
15
15
|
emoney: Balance.Extended & { total?: number; accounts: Snapshot.EmoneyAccounts[] }
|
|
16
16
|
created: isoly.DateTime
|
|
17
17
|
currency: isoly.Currency
|
|
@@ -27,6 +27,7 @@ export interface Snapshot {
|
|
|
27
27
|
warnings?: Warning.Snapshot[]
|
|
28
28
|
}
|
|
29
29
|
export namespace Snapshot {
|
|
30
|
+
export const version = 2
|
|
30
31
|
export type EmoneyAccounts = {
|
|
31
32
|
id: string
|
|
32
33
|
organization: string
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { Base } from "./Base";
|
|
2
2
|
export interface LedgerIntegrity extends Base {
|
|
3
3
|
check: "ledger integrity";
|
|
4
|
+
opening: {
|
|
5
|
+
balance: number;
|
|
6
|
+
};
|
|
7
|
+
ledger: {
|
|
8
|
+
change: number;
|
|
9
|
+
};
|
|
10
|
+
closing: {
|
|
11
|
+
balance: number;
|
|
12
|
+
};
|
|
4
13
|
failed: string[];
|
|
5
14
|
incomplete: string[];
|
|
6
15
|
passed: number;
|
|
@@ -10,7 +10,7 @@ import { Fiat as SnapshotFiat } from "./Fiat";
|
|
|
10
10
|
import { funding as snapshotFunding } from "./funding";
|
|
11
11
|
import { Reconciliation as SnapshotReconciliation } from "./Reconciliation";
|
|
12
12
|
export interface Snapshot {
|
|
13
|
-
version:
|
|
13
|
+
version: typeof Snapshot.version;
|
|
14
14
|
emoney: Balance.Extended & {
|
|
15
15
|
total?: number;
|
|
16
16
|
accounts: Snapshot.EmoneyAccounts[];
|
|
@@ -29,6 +29,7 @@ export interface Snapshot {
|
|
|
29
29
|
warnings?: Warning.Snapshot[];
|
|
30
30
|
}
|
|
31
31
|
export declare namespace Snapshot {
|
|
32
|
+
const version = 2;
|
|
32
33
|
type EmoneyAccounts = {
|
|
33
34
|
id: string;
|
|
34
35
|
organization: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":";;;AAKA,uCAAsD;AACtD,mCAAgD;AAGhD,uCAAsD;AAmBtD,IAAiB,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":";;;AAKA,uCAAsD;AACtD,mCAAgD;AAGhD,uCAAsD;AAmBtD,IAAiB,QAAQ,CAexB;AAfD,WAAiB,QAAQ;IACX,gBAAO,GAAG,CAAC,CAAA;IAQV,gBAAO,GAAG,iBAAe,CAAA;IACzB,cAAK,GAAG,aAAa,CAAA;IAIrB,gBAAO,GAAG,iBAAe,CAAA;AACxC,CAAC,EAfgB,QAAQ,wBAAR,QAAQ,QAexB"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { Base } from "./Base";
|
|
2
2
|
export interface LedgerIntegrity extends Base {
|
|
3
3
|
check: "ledger integrity";
|
|
4
|
+
opening: {
|
|
5
|
+
balance: number;
|
|
6
|
+
};
|
|
7
|
+
ledger: {
|
|
8
|
+
change: number;
|
|
9
|
+
};
|
|
10
|
+
closing: {
|
|
11
|
+
balance: number;
|
|
12
|
+
};
|
|
4
13
|
failed: string[];
|
|
5
14
|
incomplete: string[];
|
|
6
15
|
passed: number;
|
|
@@ -10,7 +10,7 @@ import { Fiat as SnapshotFiat } from "./Fiat";
|
|
|
10
10
|
import { funding as snapshotFunding } from "./funding";
|
|
11
11
|
import { Reconciliation as SnapshotReconciliation } from "./Reconciliation";
|
|
12
12
|
export interface Snapshot {
|
|
13
|
-
version:
|
|
13
|
+
version: typeof Snapshot.version;
|
|
14
14
|
emoney: Balance.Extended & {
|
|
15
15
|
total?: number;
|
|
16
16
|
accounts: Snapshot.EmoneyAccounts[];
|
|
@@ -29,6 +29,7 @@ export interface Snapshot {
|
|
|
29
29
|
warnings?: Warning.Snapshot[];
|
|
30
30
|
}
|
|
31
31
|
export declare namespace Snapshot {
|
|
32
|
+
const version = 2;
|
|
32
33
|
type EmoneyAccounts = {
|
|
33
34
|
id: string;
|
|
34
35
|
organization: string;
|
|
@@ -3,6 +3,7 @@ import { Check as SnapshotCheck } from "./Check";
|
|
|
3
3
|
import { funding as snapshotFunding } from "./funding";
|
|
4
4
|
export var Snapshot;
|
|
5
5
|
(function (Snapshot) {
|
|
6
|
+
Snapshot.version = 2;
|
|
6
7
|
Snapshot.funding = snapshotFunding;
|
|
7
8
|
Snapshot.Check = SnapshotCheck;
|
|
8
9
|
Snapshot.Account = SnapshotAccount;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAGhD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AAmBtD,MAAM,KAAW,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAGhD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AAmBtD,MAAM,KAAW,QAAQ,CAexB;AAfD,WAAiB,QAAQ;IACX,gBAAO,GAAG,CAAC,CAAA;IAQV,gBAAO,GAAG,eAAe,CAAA;IACzB,cAAK,GAAG,aAAa,CAAA;IAIrB,gBAAO,GAAG,eAAe,CAAA;AACxC,CAAC,EAfgB,QAAQ,KAAR,QAAQ,QAexB"}
|