@pax2pay/model-banking 0.1.667 → 0.1.668
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/Balance/index.ts +1 -0
- package/Treasury/Snapshot/Account.ts +21 -0
- package/Treasury/Snapshot/Check/BankFeedIntegrity.ts +18 -1
- package/Treasury/Snapshot/Check/Base.ts +7 -1
- package/Treasury/Snapshot/Check/Checks.ts +2 -0
- package/Treasury/Snapshot/Check/ExternalReconciliation.ts +9 -1
- package/Treasury/Snapshot/Check/InternalReconciliation.ts +9 -1
- package/Treasury/Snapshot/Check/LedgerIntegrity.ts +13 -1
- package/Treasury/Snapshot/Check/Overdraft.ts +7 -1
- package/Treasury/Snapshot/Check/Result.ts +3 -0
- package/Treasury/Snapshot/Check/TransactionMatch.ts +9 -1
- package/Treasury/Snapshot/Check/UnidentifiedFunds.ts +8 -1
- package/Treasury/Snapshot/Check/index.ts +17 -7
- package/Treasury/Snapshot/Emoney.ts +12 -0
- package/Treasury/Snapshot/Fiat.ts +14 -0
- package/Treasury/Snapshot/Reconciliation.ts +8 -0
- package/Treasury/Snapshot/funding.ts +6 -0
- package/Treasury/Snapshot/index.ts +32 -3
- package/Treasury/Transaction/Creatable.ts +8 -0
- package/Treasury/Transaction/index.ts +7 -0
- package/dist/cjs/Treasury/Balance/index.d.ts +1 -0
- package/dist/cjs/Treasury/Balance/index.js +1 -0
- package/dist/cjs/Treasury/Balance/index.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Account.d.ts +5 -0
- package/dist/cjs/Treasury/Snapshot/Account.js +22 -0
- package/dist/cjs/Treasury/Snapshot/Account.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/BankFeedIntegrity.d.ts +4 -1
- package/dist/cjs/Treasury/Snapshot/Check/BankFeedIntegrity.js +21 -0
- package/dist/cjs/Treasury/Snapshot/Check/BankFeedIntegrity.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/Base.d.ts +7 -1
- package/dist/cjs/Treasury/Snapshot/Check/Base.js +11 -0
- package/dist/cjs/Treasury/Snapshot/Check/Base.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/Checks.d.ts +2 -0
- package/dist/cjs/Treasury/Snapshot/Check/Checks.js +2 -0
- package/dist/cjs/Treasury/Snapshot/Check/Checks.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/ExternalReconciliation.d.ts +4 -1
- package/dist/cjs/Treasury/Snapshot/Check/ExternalReconciliation.js +12 -0
- package/dist/cjs/Treasury/Snapshot/Check/ExternalReconciliation.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/InternalReconciliation.d.ts +4 -1
- package/dist/cjs/Treasury/Snapshot/Check/InternalReconciliation.js +12 -0
- package/dist/cjs/Treasury/Snapshot/Check/InternalReconciliation.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/LedgerIntegrity.d.ts +4 -1
- package/dist/cjs/Treasury/Snapshot/Check/LedgerIntegrity.js +16 -0
- package/dist/cjs/Treasury/Snapshot/Check/LedgerIntegrity.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/Overdraft.d.ts +4 -1
- package/dist/cjs/Treasury/Snapshot/Check/Overdraft.js +10 -0
- package/dist/cjs/Treasury/Snapshot/Check/Overdraft.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/Result.d.ts +2 -0
- package/dist/cjs/Treasury/Snapshot/Check/Result.js +2 -0
- package/dist/cjs/Treasury/Snapshot/Check/Result.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/TransactionMatch.d.ts +4 -1
- package/dist/cjs/Treasury/Snapshot/Check/TransactionMatch.js +12 -0
- package/dist/cjs/Treasury/Snapshot/Check/TransactionMatch.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/UnidentifiedFunds.d.ts +4 -1
- package/dist/cjs/Treasury/Snapshot/Check/UnidentifiedFunds.js +11 -0
- package/dist/cjs/Treasury/Snapshot/Check/UnidentifiedFunds.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/index.d.ts +9 -7
- package/dist/cjs/Treasury/Snapshot/Check/index.js +24 -0
- package/dist/cjs/Treasury/Snapshot/Check/index.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Emoney.d.ts +4 -0
- package/dist/cjs/Treasury/Snapshot/Emoney.js +17 -0
- package/dist/cjs/Treasury/Snapshot/Emoney.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Fiat.d.ts +4 -0
- package/dist/cjs/Treasury/Snapshot/Fiat.js +19 -0
- package/dist/cjs/Treasury/Snapshot/Fiat.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Reconciliation.d.ts +4 -0
- package/dist/cjs/Treasury/Snapshot/Reconciliation.js +9 -0
- package/dist/cjs/Treasury/Snapshot/Reconciliation.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/funding.d.ts +3 -0
- package/dist/cjs/Treasury/Snapshot/funding.js +6 -0
- package/dist/cjs/Treasury/Snapshot/funding.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/index.d.ts +22 -3
- package/dist/cjs/Treasury/Snapshot/index.js +41 -0
- package/dist/cjs/Treasury/Snapshot/index.js.map +1 -1
- package/dist/cjs/Treasury/Transaction/Creatable.d.ts +498 -0
- package/dist/cjs/Treasury/Transaction/Creatable.js +8 -0
- package/dist/cjs/Treasury/Transaction/Creatable.js.map +1 -1
- package/dist/cjs/Treasury/Transaction/index.d.ts +2 -0
- package/dist/cjs/Treasury/Transaction/index.js +7 -0
- package/dist/cjs/Treasury/Transaction/index.js.map +1 -1
- package/dist/mjs/Treasury/Balance/index.d.ts +1 -0
- package/dist/mjs/Treasury/Balance/index.js +1 -0
- package/dist/mjs/Treasury/Balance/index.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Account.d.ts +5 -0
- package/dist/mjs/Treasury/Snapshot/Account.js +22 -0
- package/dist/mjs/Treasury/Snapshot/Account.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/BankFeedIntegrity.d.ts +4 -1
- package/dist/mjs/Treasury/Snapshot/Check/BankFeedIntegrity.js +20 -1
- package/dist/mjs/Treasury/Snapshot/Check/BankFeedIntegrity.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/Base.d.ts +7 -1
- package/dist/mjs/Treasury/Snapshot/Check/Base.js +10 -1
- package/dist/mjs/Treasury/Snapshot/Check/Base.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/Checks.d.ts +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/Checks.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/Checks.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/ExternalReconciliation.d.ts +4 -1
- package/dist/mjs/Treasury/Snapshot/Check/ExternalReconciliation.js +11 -1
- package/dist/mjs/Treasury/Snapshot/Check/ExternalReconciliation.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/InternalReconciliation.d.ts +4 -1
- package/dist/mjs/Treasury/Snapshot/Check/InternalReconciliation.js +11 -1
- package/dist/mjs/Treasury/Snapshot/Check/InternalReconciliation.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/LedgerIntegrity.d.ts +4 -1
- package/dist/mjs/Treasury/Snapshot/Check/LedgerIntegrity.js +15 -1
- package/dist/mjs/Treasury/Snapshot/Check/LedgerIntegrity.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/Overdraft.d.ts +4 -1
- package/dist/mjs/Treasury/Snapshot/Check/Overdraft.js +9 -1
- package/dist/mjs/Treasury/Snapshot/Check/Overdraft.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/Result.d.ts +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/Result.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/Result.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/TransactionMatch.d.ts +4 -1
- package/dist/mjs/Treasury/Snapshot/Check/TransactionMatch.js +11 -1
- package/dist/mjs/Treasury/Snapshot/Check/TransactionMatch.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/UnidentifiedFunds.d.ts +4 -1
- package/dist/mjs/Treasury/Snapshot/Check/UnidentifiedFunds.js +10 -1
- package/dist/mjs/Treasury/Snapshot/Check/UnidentifiedFunds.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/index.d.ts +9 -7
- package/dist/mjs/Treasury/Snapshot/Check/index.js +24 -0
- package/dist/mjs/Treasury/Snapshot/Check/index.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Emoney.d.ts +4 -0
- package/dist/mjs/Treasury/Snapshot/Emoney.js +16 -1
- package/dist/mjs/Treasury/Snapshot/Emoney.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Fiat.d.ts +4 -0
- package/dist/mjs/Treasury/Snapshot/Fiat.js +18 -1
- package/dist/mjs/Treasury/Snapshot/Fiat.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Reconciliation.d.ts +4 -0
- package/dist/mjs/Treasury/Snapshot/Reconciliation.js +8 -1
- package/dist/mjs/Treasury/Snapshot/Reconciliation.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/funding.d.ts +3 -0
- package/dist/mjs/Treasury/Snapshot/funding.js +6 -0
- package/dist/mjs/Treasury/Snapshot/funding.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/index.d.ts +22 -3
- package/dist/mjs/Treasury/Snapshot/index.js +41 -0
- package/dist/mjs/Treasury/Snapshot/index.js.map +1 -1
- package/dist/mjs/Treasury/Transaction/Creatable.d.ts +498 -0
- package/dist/mjs/Treasury/Transaction/Creatable.js +8 -0
- package/dist/mjs/Treasury/Transaction/Creatable.js.map +1 -1
- package/dist/mjs/Treasury/Transaction/index.d.ts +2 -0
- package/dist/mjs/Treasury/Transaction/index.js +7 -0
- package/dist/mjs/Treasury/Transaction/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Base = void 0;
|
|
4
|
+
const zod_1 = require("../../../zod");
|
|
5
|
+
const Checks_1 = require("./Checks");
|
|
6
|
+
const Result_1 = require("./Result");
|
|
7
|
+
var Base;
|
|
8
|
+
(function (Base) {
|
|
9
|
+
Base.typeZod = zod_1.zod.object({
|
|
10
|
+
check: Checks_1.Checks.typeZod,
|
|
11
|
+
result: Result_1.Result.typeZod,
|
|
12
|
+
});
|
|
13
|
+
})(Base || (exports.Base = Base = {}));
|
|
3
14
|
//# sourceMappingURL=Base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Base.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Base.ts"],"names":[],"mappings":";;;AAAA,sCAAkC;AAClC,qCAAiC;AACjC,qCAAiC;AAMjC,IAAiB,IAAI,CAKpB;AALD,WAAiB,IAAI;IACP,YAAO,GAAG,SAAG,CAAC,MAAM,CAAC;QACjC,KAAK,EAAE,eAAM,CAAC,OAAO;QACrB,MAAM,EAAE,eAAM,CAAC,OAAO;KACtB,CAA6B,CAAA;AAC/B,CAAC,EALgB,IAAI,oBAAJ,IAAI,QAKpB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
+
import { zod } from "../../../zod";
|
|
2
3
|
export type Checks = (typeof Checks.value)[number];
|
|
3
4
|
export declare namespace Checks {
|
|
4
5
|
const value: readonly ["bank feed integrity", "external reconciliation", "internal reconciliation", "ledger integrity", "overdraft", "transaction match", "unidentified funds"];
|
|
5
6
|
const type: isly.Type<"overdraft" | "bank feed integrity" | "external reconciliation" | "internal reconciliation" | "ledger integrity" | "transaction match" | "unidentified funds">;
|
|
7
|
+
const typeZod: zod.ZodType<Checks>;
|
|
6
8
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Checks = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
+
const zod_1 = require("../../../zod");
|
|
5
6
|
var Checks;
|
|
6
7
|
(function (Checks) {
|
|
7
8
|
Checks.value = [
|
|
@@ -14,5 +15,6 @@ var Checks;
|
|
|
14
15
|
"unidentified funds",
|
|
15
16
|
];
|
|
16
17
|
Checks.type = isly_1.isly.string(Checks.value);
|
|
18
|
+
Checks.typeZod = zod_1.zod.enum(Checks.value);
|
|
17
19
|
})(Checks || (exports.Checks = Checks = {}));
|
|
18
20
|
//# sourceMappingURL=Checks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checks.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Checks.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;
|
|
1
|
+
{"version":3,"file":"Checks.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Checks.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,sCAAkC;AAGlC,IAAiB,MAAM,CAYtB;AAZD,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;IACzB,cAAO,GAAwB,SAAG,CAAC,IAAI,CAAC,OAAA,KAAK,CAAC,CAAA;AAC5D,CAAC,EAZgB,MAAM,sBAAN,MAAM,QAYtB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { zod } from "../../../zod";
|
|
1
2
|
import { Base } from "./Base";
|
|
2
3
|
export interface ExternalReconciliation extends Base {
|
|
3
4
|
check: "external reconciliation";
|
|
@@ -5,4 +6,6 @@ export interface ExternalReconciliation extends Base {
|
|
|
5
6
|
fiat: number;
|
|
6
7
|
discrepancy: number;
|
|
7
8
|
}
|
|
8
|
-
export declare namespace ExternalReconciliation {
|
|
9
|
+
export declare namespace ExternalReconciliation {
|
|
10
|
+
const typeZod: zod.ZodType<ExternalReconciliation>;
|
|
11
|
+
}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalReconciliation = void 0;
|
|
4
|
+
const zod_1 = require("../../../zod");
|
|
5
|
+
const Base_1 = require("./Base");
|
|
6
|
+
var ExternalReconciliation;
|
|
7
|
+
(function (ExternalReconciliation) {
|
|
8
|
+
ExternalReconciliation.typeZod = Base_1.Base.typeZod.extend({
|
|
9
|
+
check: zod_1.zod.literal("external reconciliation"),
|
|
10
|
+
counterbalance: zod_1.zod.number(),
|
|
11
|
+
fiat: zod_1.zod.number(),
|
|
12
|
+
discrepancy: zod_1.zod.number(),
|
|
13
|
+
});
|
|
14
|
+
})(ExternalReconciliation || (exports.ExternalReconciliation = ExternalReconciliation = {}));
|
|
3
15
|
//# sourceMappingURL=ExternalReconciliation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalReconciliation.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/ExternalReconciliation.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ExternalReconciliation.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/ExternalReconciliation.ts"],"names":[],"mappings":";;;AAAA,sCAAkC;AAClC,iCAA6B;AAQ7B,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACzB,8BAAO,GAAwC,WAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QAC/E,KAAK,EAAE,SAAG,CAAC,OAAO,CAAC,yBAAyB,CAAC;QAC7C,cAAc,EAAE,SAAG,CAAC,MAAM,EAAE;QAC5B,IAAI,EAAE,SAAG,CAAC,MAAM,EAAE;QAClB,WAAW,EAAE,SAAG,CAAC,MAAM,EAAE;KACzB,CAAC,CAAA;AACH,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { zod } from "../../../zod";
|
|
1
2
|
import { Base as ResultBase } from "./Base";
|
|
2
3
|
export interface InternalReconciliation extends ResultBase {
|
|
3
4
|
check: "internal reconciliation";
|
|
@@ -5,4 +6,6 @@ export interface InternalReconciliation extends ResultBase {
|
|
|
5
6
|
emoney: number;
|
|
6
7
|
discrepancy: number;
|
|
7
8
|
}
|
|
8
|
-
export declare namespace InternalReconciliation {
|
|
9
|
+
export declare namespace InternalReconciliation {
|
|
10
|
+
const typeZod: zod.ZodType<InternalReconciliation>;
|
|
11
|
+
}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternalReconciliation = void 0;
|
|
4
|
+
const zod_1 = require("../../../zod");
|
|
5
|
+
const Base_1 = require("./Base");
|
|
6
|
+
var InternalReconciliation;
|
|
7
|
+
(function (InternalReconciliation) {
|
|
8
|
+
InternalReconciliation.typeZod = Base_1.Base.typeZod.extend({
|
|
9
|
+
check: zod_1.zod.literal("internal reconciliation"),
|
|
10
|
+
counterbalance: zod_1.zod.number(),
|
|
11
|
+
emoney: zod_1.zod.number(),
|
|
12
|
+
discrepancy: zod_1.zod.number(),
|
|
13
|
+
});
|
|
14
|
+
})(InternalReconciliation || (exports.InternalReconciliation = InternalReconciliation = {}));
|
|
3
15
|
//# sourceMappingURL=InternalReconciliation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalReconciliation.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/InternalReconciliation.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"InternalReconciliation.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/InternalReconciliation.ts"],"names":[],"mappings":";;;AAAA,sCAAkC;AAClC,iCAA2C;AAQ3C,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACzB,8BAAO,GAAwC,WAAU,CAAC,OAAO,CAAC,MAAM,CAAC;QACrF,KAAK,EAAE,SAAG,CAAC,OAAO,CAAC,yBAAyB,CAAC;QAC7C,cAAc,EAAE,SAAG,CAAC,MAAM,EAAE;QAC5B,MAAM,EAAE,SAAG,CAAC,MAAM,EAAE;QACpB,WAAW,EAAE,SAAG,CAAC,MAAM,EAAE;KACzB,CAAC,CAAA;AACH,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { zod } from "../../../zod";
|
|
1
2
|
import { Base } from "./Base";
|
|
2
3
|
export interface LedgerIntegrity extends Base {
|
|
3
4
|
check: "ledger integrity";
|
|
@@ -15,4 +16,6 @@ export interface LedgerIntegrity extends Base {
|
|
|
15
16
|
passed: number;
|
|
16
17
|
total: number;
|
|
17
18
|
}
|
|
18
|
-
export declare namespace LedgerIntegrity {
|
|
19
|
+
export declare namespace LedgerIntegrity {
|
|
20
|
+
const typeZod: zod.ZodType<LedgerIntegrity>;
|
|
21
|
+
}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LedgerIntegrity = void 0;
|
|
4
|
+
const zod_1 = require("../../../zod");
|
|
5
|
+
const Base_1 = require("./Base");
|
|
6
|
+
var LedgerIntegrity;
|
|
7
|
+
(function (LedgerIntegrity) {
|
|
8
|
+
LedgerIntegrity.typeZod = Base_1.Base.typeZod.extend({
|
|
9
|
+
check: zod_1.zod.literal("ledger integrity"),
|
|
10
|
+
opening: zod_1.zod.object({ balance: zod_1.zod.number() }),
|
|
11
|
+
ledger: zod_1.zod.object({ change: zod_1.zod.number() }),
|
|
12
|
+
closing: zod_1.zod.object({ balance: zod_1.zod.number() }),
|
|
13
|
+
failed: zod_1.zod.array(zod_1.zod.string()),
|
|
14
|
+
incomplete: zod_1.zod.array(zod_1.zod.string()),
|
|
15
|
+
passed: zod_1.zod.number(),
|
|
16
|
+
total: zod_1.zod.number(),
|
|
17
|
+
});
|
|
18
|
+
})(LedgerIntegrity || (exports.LedgerIntegrity = LedgerIntegrity = {}));
|
|
3
19
|
//# sourceMappingURL=LedgerIntegrity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LedgerIntegrity.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/LedgerIntegrity.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"LedgerIntegrity.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/LedgerIntegrity.ts"],"names":[],"mappings":";;;AAAA,sCAAkC;AAClC,iCAA6B;AAY7B,IAAiB,eAAe,CAW/B;AAXD,WAAiB,eAAe;IAClB,uBAAO,GAAiC,WAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QACxE,KAAK,EAAE,SAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC;QACtC,OAAO,EAAE,SAAG,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE,EAAE,CAAC;QAC9C,MAAM,EAAE,SAAG,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,SAAG,CAAC,MAAM,EAAE,EAAE,CAAC;QAC5C,OAAO,EAAE,SAAG,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE,EAAE,CAAC;QAC9C,MAAM,EAAE,SAAG,CAAC,KAAK,CAAC,SAAG,CAAC,MAAM,EAAE,CAAC;QAC/B,UAAU,EAAE,SAAG,CAAC,KAAK,CAAC,SAAG,CAAC,MAAM,EAAE,CAAC;QACnC,MAAM,EAAE,SAAG,CAAC,MAAM,EAAE;QACpB,KAAK,EAAE,SAAG,CAAC,MAAM,EAAE;KACnB,CAAC,CAAA;AACH,CAAC,EAXgB,eAAe,+BAAf,eAAe,QAW/B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { zod } from "../../../zod";
|
|
1
2
|
import { Base } from "./Base";
|
|
2
3
|
export interface Overdraft extends Base {
|
|
3
4
|
check: "overdraft";
|
|
@@ -6,4 +7,6 @@ export interface Overdraft extends Base {
|
|
|
6
7
|
balance: number;
|
|
7
8
|
}[];
|
|
8
9
|
}
|
|
9
|
-
export declare namespace Overdraft {
|
|
10
|
+
export declare namespace Overdraft {
|
|
11
|
+
const typeZod: zod.ZodType<Overdraft>;
|
|
12
|
+
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Overdraft = void 0;
|
|
4
|
+
const zod_1 = require("../../../zod");
|
|
5
|
+
const Base_1 = require("./Base");
|
|
6
|
+
var Overdraft;
|
|
7
|
+
(function (Overdraft) {
|
|
8
|
+
Overdraft.typeZod = Base_1.Base.typeZod.extend({
|
|
9
|
+
check: zod_1.zod.literal("overdraft"),
|
|
10
|
+
overdrafts: zod_1.zod.array(zod_1.zod.object({ account: zod_1.zod.string(), balance: zod_1.zod.number() })),
|
|
11
|
+
});
|
|
12
|
+
})(Overdraft || (exports.Overdraft = Overdraft = {}));
|
|
3
13
|
//# sourceMappingURL=Overdraft.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overdraft.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Overdraft.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Overdraft.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Overdraft.ts"],"names":[],"mappings":";;;AAAA,sCAAkC;AAClC,iCAA6B;AAM7B,IAAiB,SAAS,CAKzB;AALD,WAAiB,SAAS;IACZ,iBAAO,GAA2B,WAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QAClE,KAAK,EAAE,SAAG,CAAC,OAAO,CAAC,WAAW,CAAC;QAC/B,UAAU,EAAE,SAAG,CAAC,KAAK,CAAC,SAAG,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;KACnF,CAAC,CAAA;AACH,CAAC,EALgB,SAAS,yBAAT,SAAS,QAKzB"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Result = void 0;
|
|
4
|
+
const zod_1 = require("../../../zod");
|
|
4
5
|
var Result;
|
|
5
6
|
(function (Result) {
|
|
7
|
+
Result.typeZod = zod_1.zod.enum(["passed", "failed", "incomplete"]);
|
|
6
8
|
Result.precedence = {
|
|
7
9
|
failed: 3,
|
|
8
10
|
incomplete: 2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Result.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Result.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Result.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Result.ts"],"names":[],"mappings":";;;AAAA,sCAAkC;AAGlC,IAAiB,MAAM,CAUtB;AAVD,WAAiB,MAAM;IACT,cAAO,GAAwB,SAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAA;IAC3E,iBAAU,GAA2B;QACjD,MAAM,EAAE,CAAC;QACT,UAAU,EAAE,CAAC;QACb,MAAM,EAAE,CAAC;KACT,CAAA;IACD,SAAgB,SAAS,CAAC,OAAiB;QAC1C,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,OAAA,UAAU,CAAC,CAAC,CAAC,GAAG,OAAA,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAA;IACnF,CAAC;IAFe,gBAAS,YAExB,CAAA;AACF,CAAC,EAVgB,MAAM,sBAAN,MAAM,QAUtB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { zod } from "../../../zod";
|
|
1
2
|
import { Base } from "./Base";
|
|
2
3
|
export interface TransactionMatch extends Base {
|
|
3
4
|
check: "transaction match";
|
|
@@ -5,4 +6,6 @@ export interface TransactionMatch extends Base {
|
|
|
5
6
|
matched: number;
|
|
6
7
|
unmatched: string[];
|
|
7
8
|
}
|
|
8
|
-
export declare namespace TransactionMatch {
|
|
9
|
+
export declare namespace TransactionMatch {
|
|
10
|
+
const typeZod: zod.ZodType<TransactionMatch>;
|
|
11
|
+
}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionMatch = void 0;
|
|
4
|
+
const zod_1 = require("../../../zod");
|
|
5
|
+
const Base_1 = require("./Base");
|
|
6
|
+
var TransactionMatch;
|
|
7
|
+
(function (TransactionMatch) {
|
|
8
|
+
TransactionMatch.typeZod = Base_1.Base.typeZod.extend({
|
|
9
|
+
check: zod_1.zod.literal("transaction match"),
|
|
10
|
+
total: zod_1.zod.number(),
|
|
11
|
+
matched: zod_1.zod.number(),
|
|
12
|
+
unmatched: zod_1.zod.array(zod_1.zod.string()),
|
|
13
|
+
});
|
|
14
|
+
})(TransactionMatch || (exports.TransactionMatch = TransactionMatch = {}));
|
|
3
15
|
//# sourceMappingURL=TransactionMatch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionMatch.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/TransactionMatch.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"TransactionMatch.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/TransactionMatch.ts"],"names":[],"mappings":";;;AAAA,sCAAkC;AAClC,iCAA6B;AAQ7B,IAAiB,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IACnB,wBAAO,GAAkC,WAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QACzE,KAAK,EAAE,SAAG,CAAC,OAAO,CAAC,mBAAmB,CAAC;QACvC,KAAK,EAAE,SAAG,CAAC,MAAM,EAAE;QACnB,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE;QACrB,SAAS,EAAE,SAAG,CAAC,KAAK,CAAC,SAAG,CAAC,MAAM,EAAE,CAAC;KAClC,CAAC,CAAA;AACH,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { zod } from "../../../zod";
|
|
1
2
|
import { Base as ResultBase } from "./Base";
|
|
2
3
|
export interface UnidentifiedFunds extends ResultBase {
|
|
3
4
|
check: "unidentified funds";
|
|
4
5
|
account: string;
|
|
5
6
|
balance: number;
|
|
6
7
|
}
|
|
7
|
-
export declare namespace UnidentifiedFunds {
|
|
8
|
+
export declare namespace UnidentifiedFunds {
|
|
9
|
+
const typeZod: zod.ZodType<UnidentifiedFunds>;
|
|
10
|
+
}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnidentifiedFunds = void 0;
|
|
4
|
+
const zod_1 = require("../../../zod");
|
|
5
|
+
const Base_1 = require("./Base");
|
|
6
|
+
var UnidentifiedFunds;
|
|
7
|
+
(function (UnidentifiedFunds) {
|
|
8
|
+
UnidentifiedFunds.typeZod = Base_1.Base.typeZod.extend({
|
|
9
|
+
check: zod_1.zod.literal("unidentified funds"),
|
|
10
|
+
account: zod_1.zod.string(),
|
|
11
|
+
balance: zod_1.zod.number(),
|
|
12
|
+
});
|
|
13
|
+
})(UnidentifiedFunds || (exports.UnidentifiedFunds = UnidentifiedFunds = {}));
|
|
3
14
|
//# sourceMappingURL=UnidentifiedFunds.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnidentifiedFunds.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/UnidentifiedFunds.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"UnidentifiedFunds.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/UnidentifiedFunds.ts"],"names":[],"mappings":";;;AAAA,sCAAkC;AAClC,iCAA2C;AAO3C,IAAiB,iBAAiB,CAMjC;AAND,WAAiB,iBAAiB;IACpB,yBAAO,GAAmC,WAAU,CAAC,OAAO,CAAC,MAAM,CAAC;QAChF,KAAK,EAAE,SAAG,CAAC,OAAO,CAAC,oBAAoB,CAAC;QACxC,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE;KACrB,CAAC,CAAA;AACH,CAAC,EANgB,iBAAiB,iCAAjB,iBAAiB,QAMjC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { zod } from "../../../zod";
|
|
1
2
|
import { BankFeedIntegrity as CheckBankFeedIntegrity } from "./BankFeedIntegrity";
|
|
2
3
|
import { Checks as CheckChecks } from "./Checks";
|
|
3
4
|
import { ExternalReconciliation as CheckExternalReconciliation } from "./ExternalReconciliation";
|
|
@@ -11,11 +12,12 @@ export type Check = Check.BankFeedIntegrity | Check.ExternalReconciliation | Che
|
|
|
11
12
|
export declare namespace Check {
|
|
12
13
|
export import Result = CheckResult;
|
|
13
14
|
export import Checks = CheckChecks;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
export import BankFeedIntegrity = CheckBankFeedIntegrity;
|
|
16
|
+
export import ExternalReconciliation = CheckExternalReconciliation;
|
|
17
|
+
export import InternalReconciliation = CheckInternalReconciliation;
|
|
18
|
+
export import LedgerIntegrity = CheckLedgerIntegrity;
|
|
19
|
+
export import Overdraft = CheckOverdraft;
|
|
20
|
+
export import TransactionMatch = CheckTransactionMatch;
|
|
21
|
+
export import UnidentifiedFunds = CheckUnidentifiedFunds;
|
|
22
|
+
const typeZod: zod.ZodType<Check>;
|
|
21
23
|
}
|
|
@@ -1,11 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Check = void 0;
|
|
4
|
+
const zod_1 = require("../../../zod");
|
|
5
|
+
const BankFeedIntegrity_1 = require("./BankFeedIntegrity");
|
|
4
6
|
const Checks_1 = require("./Checks");
|
|
7
|
+
const ExternalReconciliation_1 = require("./ExternalReconciliation");
|
|
8
|
+
const InternalReconciliation_1 = require("./InternalReconciliation");
|
|
9
|
+
const LedgerIntegrity_1 = require("./LedgerIntegrity");
|
|
10
|
+
const Overdraft_1 = require("./Overdraft");
|
|
5
11
|
const Result_1 = require("./Result");
|
|
12
|
+
const TransactionMatch_1 = require("./TransactionMatch");
|
|
13
|
+
const UnidentifiedFunds_1 = require("./UnidentifiedFunds");
|
|
6
14
|
var Check;
|
|
7
15
|
(function (Check) {
|
|
8
16
|
Check.Result = Result_1.Result;
|
|
9
17
|
Check.Checks = Checks_1.Checks;
|
|
18
|
+
Check.BankFeedIntegrity = BankFeedIntegrity_1.BankFeedIntegrity;
|
|
19
|
+
Check.ExternalReconciliation = ExternalReconciliation_1.ExternalReconciliation;
|
|
20
|
+
Check.InternalReconciliation = InternalReconciliation_1.InternalReconciliation;
|
|
21
|
+
Check.LedgerIntegrity = LedgerIntegrity_1.LedgerIntegrity;
|
|
22
|
+
Check.Overdraft = Overdraft_1.Overdraft;
|
|
23
|
+
Check.TransactionMatch = TransactionMatch_1.TransactionMatch;
|
|
24
|
+
Check.UnidentifiedFunds = UnidentifiedFunds_1.UnidentifiedFunds;
|
|
25
|
+
Check.typeZod = zod_1.zod.union([
|
|
26
|
+
BankFeedIntegrity_1.BankFeedIntegrity.typeZod,
|
|
27
|
+
ExternalReconciliation_1.ExternalReconciliation.typeZod,
|
|
28
|
+
InternalReconciliation_1.InternalReconciliation.typeZod,
|
|
29
|
+
LedgerIntegrity_1.LedgerIntegrity.typeZod,
|
|
30
|
+
Overdraft_1.Overdraft.typeZod,
|
|
31
|
+
TransactionMatch_1.TransactionMatch.typeZod,
|
|
32
|
+
UnidentifiedFunds_1.UnidentifiedFunds.typeZod,
|
|
33
|
+
]);
|
|
10
34
|
})(Check || (exports.Check = Check = {}));
|
|
11
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/index.ts"],"names":[],"mappings":";;;AAAA,sCAAkC;AAClC,2DAAiF;AACjF,qCAAgD;AAChD,qEAAgG;AAChG,qEAAgG;AAChG,uDAA2E;AAC3E,2CAAyD;AACzD,qCAAgD;AAChD,yDAA8E;AAC9E,2DAAiF;AAUjF,IAAiB,KAAK,CAmBrB;AAnBD,WAAiB,KAAK;IACP,YAAM,GAAG,eAAW,CAAA;IACpB,YAAM,GAAG,eAAW,CAAA;IACpB,uBAAiB,GAAG,qCAAsB,CAAA;IAC1C,4BAAsB,GAAG,+CAA2B,CAAA;IACpD,4BAAsB,GAAG,+CAA2B,CAAA;IACpD,qBAAe,GAAG,iCAAoB,CAAA;IACtC,eAAS,GAAG,qBAAc,CAAA;IAC1B,sBAAgB,GAAG,mCAAqB,CAAA;IACxC,uBAAiB,GAAG,qCAAsB,CAAA;IAC3C,aAAO,GAAuB,SAAG,CAAC,KAAK,CAAC;QACpD,qCAAsB,CAAC,OAAO;QAC9B,+CAA2B,CAAC,OAAO;QACnC,+CAA2B,CAAC,OAAO;QACnC,iCAAoB,CAAC,OAAO;QAC5B,qBAAc,CAAC,OAAO;QACtB,mCAAqB,CAAC,OAAO;QAC7B,qCAAsB,CAAC,OAAO;KAC9B,CAAC,CAAA;AACH,CAAC,EAnBgB,KAAK,qBAAL,KAAK,QAmBrB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { Balances } from "../../Balances";
|
|
3
3
|
import { Supplier } from "../../Supplier";
|
|
4
|
+
import { zod } from "../../zod";
|
|
4
5
|
export interface Emoney {
|
|
5
6
|
organization: string;
|
|
6
7
|
account: string;
|
|
@@ -10,3 +11,6 @@ export interface Emoney {
|
|
|
10
11
|
timestamp: isoly.DateTime;
|
|
11
12
|
balances: Balances;
|
|
12
13
|
}
|
|
14
|
+
export declare namespace Emoney {
|
|
15
|
+
const typeZod: zod.ZodType<Emoney>;
|
|
16
|
+
}
|
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Emoney = void 0;
|
|
4
|
+
const isoly_1 = require("isoly");
|
|
5
|
+
const Balances_1 = require("../../Balances");
|
|
6
|
+
const Supplier_1 = require("../../Supplier");
|
|
7
|
+
const zod_1 = require("../../zod");
|
|
8
|
+
var Emoney;
|
|
9
|
+
(function (Emoney) {
|
|
10
|
+
Emoney.typeZod = zod_1.zod.object({
|
|
11
|
+
organization: zod_1.zod.string(),
|
|
12
|
+
account: zod_1.zod.string(),
|
|
13
|
+
created: zod_1.zod.string().refine(isoly_1.isoly.DateTime.is).optional(),
|
|
14
|
+
supplier: Supplier_1.Supplier.typeZod.optional(),
|
|
15
|
+
currencies: zod_1.zod.array(zod_1.zod.enum(isoly_1.isoly.Currency.values)).optional(),
|
|
16
|
+
timestamp: zod_1.zod.string().refine(isoly_1.isoly.DateTime.is),
|
|
17
|
+
balances: Balances_1.Balances.typeZod,
|
|
18
|
+
});
|
|
19
|
+
})(Emoney || (exports.Emoney = Emoney = {}));
|
|
3
20
|
//# sourceMappingURL=Emoney.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Emoney.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/Emoney.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Emoney.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/Emoney.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,6CAAyC;AACzC,6CAAyC;AACzC,mCAA+B;AAW/B,IAAiB,MAAM,CAUtB;AAVD,WAAiB,MAAM;IACT,cAAO,GAAwB,SAAG,CAAC,MAAM,CAAC;QACtD,YAAY,EAAE,SAAG,CAAC,MAAM,EAAE;QAC1B,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,aAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC1D,QAAQ,EAAE,mBAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE;QACrC,UAAU,EAAE,SAAG,CAAC,KAAK,CAAC,SAAG,CAAC,IAAI,CAAC,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;QACjE,SAAS,EAAE,SAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,aAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjD,QAAQ,EAAE,mBAAQ,CAAC,OAAO;KAC1B,CAAC,CAAA;AACH,CAAC,EAVgB,MAAM,sBAAN,MAAM,QAUtB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { Supplier } from "../../Supplier";
|
|
3
|
+
import { zod } from "../../zod";
|
|
3
4
|
import { Balance } from "../Balance";
|
|
4
5
|
export interface Fiat {
|
|
5
6
|
supplier: Supplier;
|
|
@@ -14,3 +15,6 @@ export interface Fiat {
|
|
|
14
15
|
reference: string;
|
|
15
16
|
description?: string;
|
|
16
17
|
}
|
|
18
|
+
export declare namespace Fiat {
|
|
19
|
+
const typeZod: zod.ZodType<Fiat>;
|
|
20
|
+
}
|
|
@@ -1,3 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Fiat = void 0;
|
|
4
|
+
const isoly_1 = require("isoly");
|
|
5
|
+
const Supplier_1 = require("../../Supplier");
|
|
6
|
+
const zod_1 = require("../../zod");
|
|
7
|
+
const Balance_1 = require("../Balance");
|
|
8
|
+
var Fiat;
|
|
9
|
+
(function (Fiat) {
|
|
10
|
+
Fiat.typeZod = zod_1.zod.object({
|
|
11
|
+
supplier: Supplier_1.Supplier.typeZod,
|
|
12
|
+
account: zod_1.zod.string(),
|
|
13
|
+
timestamp: zod_1.zod.string().refine(isoly_1.isoly.DateTime.is),
|
|
14
|
+
type: zod_1.zod.enum(["safeguarded", "unsafe", "other", "buffer"]),
|
|
15
|
+
balances: Balance_1.Balance.typeZod,
|
|
16
|
+
conditions: zod_1.zod.object({ minimum: Balance_1.Balance.typeZod.optional() }).optional(),
|
|
17
|
+
label: zod_1.zod.string().optional(),
|
|
18
|
+
reference: zod_1.zod.string(),
|
|
19
|
+
description: zod_1.zod.string().optional(),
|
|
20
|
+
});
|
|
21
|
+
})(Fiat || (exports.Fiat = Fiat = {}));
|
|
3
22
|
//# sourceMappingURL=Fiat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fiat.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/Fiat.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Fiat.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/Fiat.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,6CAAyC;AACzC,mCAA+B;AAC/B,wCAAoC;AAapC,IAAiB,IAAI,CAYpB;AAZD,WAAiB,IAAI;IACP,YAAO,GAAsB,SAAG,CAAC,MAAM,CAAC;QACpD,QAAQ,EAAE,mBAAQ,CAAC,OAAO;QAC1B,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE;QACrB,SAAS,EAAE,SAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,aAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjD,IAAI,EAAE,SAAG,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;QAC5D,QAAQ,EAAE,iBAAO,CAAC,OAAO;QACzB,UAAU,EAAE,SAAG,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,iBAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC1E,KAAK,EAAE,SAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,SAAS,EAAE,SAAG,CAAC,MAAM,EAAE;QACvB,WAAW,EAAE,SAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACpC,CAAC,CAAA;AACH,CAAC,EAZgB,IAAI,oBAAJ,IAAI,QAYpB"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Reconciliation = void 0;
|
|
4
|
+
const zod_1 = require("../../zod");
|
|
5
|
+
var Reconciliation;
|
|
6
|
+
(function (Reconciliation) {
|
|
7
|
+
Reconciliation.typeZod = zod_1.zod.object({
|
|
8
|
+
correct: zod_1.zod.number(),
|
|
9
|
+
incorrect: zod_1.zod.number(),
|
|
10
|
+
});
|
|
11
|
+
})(Reconciliation || (exports.Reconciliation = Reconciliation = {}));
|
|
3
12
|
//# sourceMappingURL=Reconciliation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reconciliation.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/Reconciliation.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Reconciliation.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/Reconciliation.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAM/B,IAAiB,cAAc,CAK9B;AALD,WAAiB,cAAc;IACjB,sBAAO,GAAgC,SAAG,CAAC,MAAM,CAAC;QAC9D,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE;QACrB,SAAS,EAAE,SAAG,CAAC,MAAM,EAAE;KACvB,CAAC,CAAA;AACH,CAAC,EALgB,cAAc,8BAAd,cAAc,QAK9B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
+
import { zod } from "../../zod";
|
|
3
4
|
import { Transaction } from "../Transaction";
|
|
4
5
|
export declare namespace funding {
|
|
5
6
|
type Cursor = {
|
|
@@ -8,12 +9,14 @@ export declare namespace funding {
|
|
|
8
9
|
};
|
|
9
10
|
namespace Cursor {
|
|
10
11
|
const type: import("isly/dist/cjs/object").IslyObject<Cursor, object>;
|
|
12
|
+
const typeZod: zod.ZodType<Cursor>;
|
|
11
13
|
function fromTransaction(transaction: Transaction): string;
|
|
12
14
|
function toTimestamp(cursor: string): isoly.DateTime;
|
|
13
15
|
}
|
|
14
16
|
type Cursors = Partial<Record<isoly.Currency, Cursor>>;
|
|
15
17
|
namespace Cursors {
|
|
16
18
|
const type: isly.Type<Partial<Record<"AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL", Cursor>>>;
|
|
19
|
+
const typeZod: zod.ZodType<Cursors>;
|
|
17
20
|
function updateAmount(settlement: Transaction, cursors: Cursors): Cursors;
|
|
18
21
|
function updateCursors(funding: Transaction, cursors: Cursors): Cursors;
|
|
19
22
|
}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.funding = void 0;
|
|
4
4
|
const isoly_1 = require("isoly");
|
|
5
5
|
const isly_1 = require("isly");
|
|
6
|
+
const zod_1 = require("../../zod");
|
|
6
7
|
var funding;
|
|
7
8
|
(function (funding_1) {
|
|
8
9
|
let Cursor;
|
|
@@ -11,6 +12,10 @@ var funding;
|
|
|
11
12
|
cursor: isly_1.isly.string(),
|
|
12
13
|
amount: isly_1.isly.number(),
|
|
13
14
|
});
|
|
15
|
+
Cursor.typeZod = zod_1.zod.object({
|
|
16
|
+
cursor: zod_1.zod.string(),
|
|
17
|
+
amount: zod_1.zod.number(),
|
|
18
|
+
});
|
|
14
19
|
function fromTransaction(transaction) {
|
|
15
20
|
return `${transaction.currency}|${isoly_1.isoly.DateTime.invert(transaction.created)}|${transaction.reference}`;
|
|
16
21
|
}
|
|
@@ -23,6 +28,7 @@ var funding;
|
|
|
23
28
|
let Cursors;
|
|
24
29
|
(function (Cursors) {
|
|
25
30
|
Cursors.type = isly_1.isly.record(isly_1.isly.fromIs("isoly.Currency", isoly_1.isoly.Currency.is), Cursor.type);
|
|
31
|
+
Cursors.typeZod = zod_1.zod.partialRecord(zod_1.zod.enum(isoly_1.isoly.Currency.values), Cursor.typeZod);
|
|
26
32
|
function updateAmount(settlement, cursors) {
|
|
27
33
|
const cursor = cursors[settlement.currency];
|
|
28
34
|
if (!cursor) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funding.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/funding.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;
|
|
1
|
+
{"version":3,"file":"funding.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/funding.ts"],"names":[],"mappings":"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"}
|
|
@@ -3,6 +3,7 @@ import { Balance } from "../../Balance";
|
|
|
3
3
|
import { Supplier } from "../../Supplier";
|
|
4
4
|
import { Transaction } from "../../Transaction";
|
|
5
5
|
import { Warning } from "../../Warning";
|
|
6
|
+
import { zod } from "../../zod";
|
|
6
7
|
import { Account as SnapshotAccount } from "./Account";
|
|
7
8
|
import { Check as SnapshotCheck } from "./Check";
|
|
8
9
|
import { Emoney as SnapshotEmoney } from "./Emoney";
|
|
@@ -45,10 +46,28 @@ export declare namespace Snapshot {
|
|
|
45
46
|
balance: number;
|
|
46
47
|
};
|
|
47
48
|
};
|
|
49
|
+
namespace EmoneyAccounts {
|
|
50
|
+
const typeZod: zod.ZodObject<{
|
|
51
|
+
id: zod.ZodString;
|
|
52
|
+
organization: zod.ZodString;
|
|
53
|
+
opening: zod.ZodOptional<zod.ZodObject<{
|
|
54
|
+
at: zod.ZodString & zod.ZodType<string, string, zod.z.core.$ZodTypeInternals<string, string>>;
|
|
55
|
+
balance: zod.ZodNumber;
|
|
56
|
+
}, zod.z.core.$strip>>;
|
|
57
|
+
ledger: zod.ZodOptional<zod.ZodObject<{
|
|
58
|
+
change: zod.ZodNumber;
|
|
59
|
+
}, zod.z.core.$strip>>;
|
|
60
|
+
closing: zod.ZodObject<{
|
|
61
|
+
at: zod.ZodString & zod.ZodType<string, string, zod.z.core.$ZodTypeInternals<string, string>>;
|
|
62
|
+
balance: zod.ZodNumber;
|
|
63
|
+
}, zod.z.core.$strip>;
|
|
64
|
+
}, zod.z.core.$strip>;
|
|
65
|
+
}
|
|
48
66
|
export import funding = snapshotFunding;
|
|
49
67
|
export import Check = SnapshotCheck;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
68
|
+
export import Reconciliation = SnapshotReconciliation;
|
|
69
|
+
export import Emoney = SnapshotEmoney;
|
|
70
|
+
export import Fiat = SnapshotFiat;
|
|
53
71
|
export import Account = SnapshotAccount;
|
|
72
|
+
const typeZod: zod.ZodType<Snapshot>;
|
|
54
73
|
}
|