@pax2pay/model-banking 0.1.618 → 0.1.619
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 +4 -11
- package/Treasury/Snapshot/index.ts +9 -1
- package/dist/cjs/Treasury/Snapshot/Check/LedgerIntegrity.d.ts +4 -19
- package/dist/cjs/Treasury/Snapshot/index.d.ts +17 -0
- package/dist/cjs/Treasury/Snapshot/index.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/LedgerIntegrity.d.ts +4 -19
- package/dist/mjs/Treasury/Snapshot/index.d.ts +17 -0
- package/dist/mjs/Treasury/Snapshot/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import { isoly } from "isoly"
|
|
2
1
|
import { Base } from "./Base"
|
|
3
|
-
import { Result } from "./Result"
|
|
4
2
|
|
|
5
3
|
export interface LedgerIntegrity extends Base {
|
|
6
4
|
check: "ledger integrity"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
opening?: { at: isoly.DateTime; balance: number }
|
|
12
|
-
ledger?: { change: number }
|
|
13
|
-
closing: { at: isoly.DateTime; balance: number }
|
|
14
|
-
result: Result
|
|
15
|
-
}[]
|
|
5
|
+
failed: string[]
|
|
6
|
+
incomplete: string[]
|
|
7
|
+
passed: number
|
|
8
|
+
total: number
|
|
16
9
|
}
|
|
17
10
|
export namespace LedgerIntegrity {}
|
|
@@ -11,7 +11,8 @@ import { funding as snapshotFunding } from "./funding"
|
|
|
11
11
|
import { Reconciliation as SnapshotReconciliation } from "./Reconciliation"
|
|
12
12
|
|
|
13
13
|
export interface Snapshot {
|
|
14
|
-
|
|
14
|
+
version: 1
|
|
15
|
+
emoney: Balance.Extended & { total?: number; accounts: Snapshot.EmoneyAccounts[] }
|
|
15
16
|
created: isoly.DateTime
|
|
16
17
|
currency: isoly.Currency
|
|
17
18
|
supplier: Supplier
|
|
@@ -26,6 +27,13 @@ export interface Snapshot {
|
|
|
26
27
|
warnings?: Warning.Snapshot[]
|
|
27
28
|
}
|
|
28
29
|
export namespace Snapshot {
|
|
30
|
+
export type EmoneyAccounts = {
|
|
31
|
+
id: string
|
|
32
|
+
organization: string
|
|
33
|
+
opening?: { at: isoly.DateTime; balance: number }
|
|
34
|
+
ledger?: { change: number }
|
|
35
|
+
closing: { at: isoly.DateTime; balance: number }
|
|
36
|
+
}
|
|
29
37
|
export import funding = snapshotFunding
|
|
30
38
|
export import Check = SnapshotCheck
|
|
31
39
|
export type Reconciliation = SnapshotReconciliation
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
import { isoly } from "isoly";
|
|
2
1
|
import { Base } from "./Base";
|
|
3
|
-
import { Result } from "./Result";
|
|
4
2
|
export interface LedgerIntegrity extends Base {
|
|
5
3
|
check: "ledger integrity";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
opening?: {
|
|
11
|
-
at: isoly.DateTime;
|
|
12
|
-
balance: number;
|
|
13
|
-
};
|
|
14
|
-
ledger?: {
|
|
15
|
-
change: number;
|
|
16
|
-
};
|
|
17
|
-
closing: {
|
|
18
|
-
at: isoly.DateTime;
|
|
19
|
-
balance: number;
|
|
20
|
-
};
|
|
21
|
-
result: Result;
|
|
22
|
-
}[];
|
|
4
|
+
failed: string[];
|
|
5
|
+
incomplete: string[];
|
|
6
|
+
passed: number;
|
|
7
|
+
total: number;
|
|
23
8
|
}
|
|
24
9
|
export declare namespace LedgerIntegrity { }
|
|
@@ -10,8 +10,10 @@ 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: 1;
|
|
13
14
|
emoney: Balance.Extended & {
|
|
14
15
|
total?: number;
|
|
16
|
+
accounts: Snapshot.EmoneyAccounts[];
|
|
15
17
|
};
|
|
16
18
|
created: isoly.DateTime;
|
|
17
19
|
currency: isoly.Currency;
|
|
@@ -27,6 +29,21 @@ export interface Snapshot {
|
|
|
27
29
|
warnings?: Warning.Snapshot[];
|
|
28
30
|
}
|
|
29
31
|
export declare namespace Snapshot {
|
|
32
|
+
type EmoneyAccounts = {
|
|
33
|
+
id: string;
|
|
34
|
+
organization: string;
|
|
35
|
+
opening?: {
|
|
36
|
+
at: isoly.DateTime;
|
|
37
|
+
balance: number;
|
|
38
|
+
};
|
|
39
|
+
ledger?: {
|
|
40
|
+
change: number;
|
|
41
|
+
};
|
|
42
|
+
closing: {
|
|
43
|
+
at: isoly.DateTime;
|
|
44
|
+
balance: number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
30
47
|
export import funding = snapshotFunding;
|
|
31
48
|
export import Check = SnapshotCheck;
|
|
32
49
|
type Reconciliation = SnapshotReconciliation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":";;;AAKA,uCAAsD;AACtD,mCAAgD;AAGhD,uCAAsD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":";;;AAKA,uCAAsD;AACtD,mCAAgD;AAGhD,uCAAsD;AAmBtD,IAAiB,QAAQ,CAcxB;AAdD,WAAiB,QAAQ;IAQV,gBAAO,GAAG,iBAAe,CAAA;IACzB,cAAK,GAAG,aAAa,CAAA;IAIrB,gBAAO,GAAG,iBAAe,CAAA;AACxC,CAAC,EAdgB,QAAQ,wBAAR,QAAQ,QAcxB"}
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
import { isoly } from "isoly";
|
|
2
1
|
import { Base } from "./Base";
|
|
3
|
-
import { Result } from "./Result";
|
|
4
2
|
export interface LedgerIntegrity extends Base {
|
|
5
3
|
check: "ledger integrity";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
opening?: {
|
|
11
|
-
at: isoly.DateTime;
|
|
12
|
-
balance: number;
|
|
13
|
-
};
|
|
14
|
-
ledger?: {
|
|
15
|
-
change: number;
|
|
16
|
-
};
|
|
17
|
-
closing: {
|
|
18
|
-
at: isoly.DateTime;
|
|
19
|
-
balance: number;
|
|
20
|
-
};
|
|
21
|
-
result: Result;
|
|
22
|
-
}[];
|
|
4
|
+
failed: string[];
|
|
5
|
+
incomplete: string[];
|
|
6
|
+
passed: number;
|
|
7
|
+
total: number;
|
|
23
8
|
}
|
|
24
9
|
export declare namespace LedgerIntegrity { }
|
|
@@ -10,8 +10,10 @@ 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: 1;
|
|
13
14
|
emoney: Balance.Extended & {
|
|
14
15
|
total?: number;
|
|
16
|
+
accounts: Snapshot.EmoneyAccounts[];
|
|
15
17
|
};
|
|
16
18
|
created: isoly.DateTime;
|
|
17
19
|
currency: isoly.Currency;
|
|
@@ -27,6 +29,21 @@ export interface Snapshot {
|
|
|
27
29
|
warnings?: Warning.Snapshot[];
|
|
28
30
|
}
|
|
29
31
|
export declare namespace Snapshot {
|
|
32
|
+
type EmoneyAccounts = {
|
|
33
|
+
id: string;
|
|
34
|
+
organization: string;
|
|
35
|
+
opening?: {
|
|
36
|
+
at: isoly.DateTime;
|
|
37
|
+
balance: number;
|
|
38
|
+
};
|
|
39
|
+
ledger?: {
|
|
40
|
+
change: number;
|
|
41
|
+
};
|
|
42
|
+
closing: {
|
|
43
|
+
at: isoly.DateTime;
|
|
44
|
+
balance: number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
30
47
|
export import funding = snapshotFunding;
|
|
31
48
|
export import Check = SnapshotCheck;
|
|
32
49
|
type Reconciliation = SnapshotReconciliation;
|
|
@@ -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;
|
|
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,CAcxB;AAdD,WAAiB,QAAQ;IAQV,gBAAO,GAAG,eAAe,CAAA;IACzB,cAAK,GAAG,aAAa,CAAA;IAIrB,gBAAO,GAAG,eAAe,CAAA;AACxC,CAAC,EAdgB,QAAQ,KAAR,QAAQ,QAcxB"}
|