@pax2pay/model-banking 0.1.613 → 0.1.615
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/Amount.ts +0 -6
- package/Card/Changeable.ts +0 -13
- package/Card/Creatable.ts +0 -28
- package/Card/Expiry.ts +0 -14
- package/Card/Operation/Authorization.ts +1 -13
- package/Card/Operation/Card.ts +0 -14
- package/Card/Operation/index.ts +0 -5
- package/Card/Preset.ts +0 -5
- package/Card/Restriction/Merchant.ts +0 -2
- package/Card/Restriction/index.ts +0 -8
- package/Card/Restriction/merchants/Merchant.ts +2 -2
- package/Card/Scheme.ts +0 -5
- package/Card/index.ts +0 -37
- package/Client/Transactions/index.ts +0 -21
- package/Operation/Changes.ts +6 -0
- package/Rail/index.ts +0 -2
- package/Realm.ts +0 -5
- package/Rule/Base.ts +0 -26
- package/Rule/Other.ts +0 -6
- package/Rule/type.ts +0 -5
- package/Treasury/Snapshot/Account.ts +1 -1
- package/Treasury/Snapshot/Check/BankFeedIntegrity.ts +19 -0
- package/Treasury/Snapshot/Check/Base.ts +8 -0
- package/Treasury/Snapshot/Check/Checks.ts +15 -0
- package/Treasury/Snapshot/Check/ExternalReconciliation.ts +9 -0
- package/Treasury/Snapshot/Check/InternalReconciliation.ts +9 -0
- package/Treasury/Snapshot/Check/LedgerIntegrity.ts +17 -0
- package/Treasury/Snapshot/Check/Overdraft.ts +7 -0
- package/Treasury/Snapshot/Check/Result.ts +11 -0
- package/Treasury/Snapshot/Check/TransactionMatch.ts +9 -0
- package/Treasury/Snapshot/Check/UnidentifiedFunds.ts +8 -0
- package/Treasury/Snapshot/Check/index.ts +29 -0
- package/Treasury/Snapshot/Fiat.ts +0 -2
- package/Treasury/Snapshot/index.ts +7 -27
- package/dist/cjs/Amount.d.ts +0 -2
- package/dist/cjs/Amount.js +0 -3
- package/dist/cjs/Amount.js.map +1 -1
- package/dist/cjs/Card/Changeable.d.ts +0 -2
- package/dist/cjs/Card/Changeable.js +0 -13
- package/dist/cjs/Card/Changeable.js.map +1 -1
- package/dist/cjs/Card/Creatable.d.ts +0 -2
- package/dist/cjs/Card/Creatable.js +0 -28
- package/dist/cjs/Card/Creatable.js.map +1 -1
- package/dist/cjs/Card/Expiry.d.ts +0 -2
- package/dist/cjs/Card/Expiry.js +0 -11
- package/dist/cjs/Card/Expiry.js.map +1 -1
- package/dist/cjs/Card/Operation/Authorization.d.ts +0 -2
- package/dist/cjs/Card/Operation/Authorization.js +0 -12
- package/dist/cjs/Card/Operation/Authorization.js.map +1 -1
- package/dist/cjs/Card/Operation/Card.d.ts +0 -2
- package/dist/cjs/Card/Operation/Card.js +0 -14
- package/dist/cjs/Card/Operation/Card.js.map +1 -1
- package/dist/cjs/Card/Operation/index.d.ts +0 -2
- package/dist/cjs/Card/Operation/index.js +0 -5
- package/dist/cjs/Card/Operation/index.js.map +1 -1
- package/dist/cjs/Card/Preset.d.ts +0 -2
- package/dist/cjs/Card/Preset.js +0 -5
- package/dist/cjs/Card/Preset.js.map +1 -1
- package/dist/cjs/Card/Restriction/Merchant.d.ts +0 -2
- package/dist/cjs/Card/Restriction/Merchant.js +0 -2
- package/dist/cjs/Card/Restriction/Merchant.js.map +1 -1
- package/dist/cjs/Card/Restriction/index.d.ts +0 -2
- package/dist/cjs/Card/Restriction/index.js +0 -8
- package/dist/cjs/Card/Restriction/index.js.map +1 -1
- package/dist/cjs/Card/Restriction/merchants/Merchant.d.ts +1 -2
- package/dist/cjs/Card/Restriction/merchants/Merchant.js +8 -8
- package/dist/cjs/Card/Restriction/merchants/Merchant.js.map +1 -1
- package/dist/cjs/Card/Scheme.d.ts +0 -2
- package/dist/cjs/Card/Scheme.js +0 -5
- package/dist/cjs/Card/Scheme.js.map +1 -1
- package/dist/cjs/Card/index.d.ts +0 -2
- package/dist/cjs/Card/index.js +0 -38
- package/dist/cjs/Card/index.js.map +1 -1
- package/dist/cjs/Client/Transactions/index.d.ts +0 -16
- package/dist/cjs/Client/Transactions/index.js +0 -27
- package/dist/cjs/Client/Transactions/index.js.map +1 -1
- package/dist/cjs/Operation/Changes.d.ts +1 -0
- package/dist/cjs/Operation/Changes.js +4 -0
- package/dist/cjs/Operation/Changes.js.map +1 -1
- package/dist/cjs/Rail/index.d.ts +0 -2
- package/dist/cjs/Rail/index.js +0 -2
- package/dist/cjs/Rail/index.js.map +1 -1
- package/dist/cjs/Realm.d.ts +0 -2
- package/dist/cjs/Realm.js +0 -5
- package/dist/cjs/Realm.js.map +1 -1
- package/dist/cjs/Rule/Base.d.ts +0 -4
- package/dist/cjs/Rule/Base.js +0 -26
- package/dist/cjs/Rule/Base.js.map +1 -1
- package/dist/cjs/Rule/Other.d.ts +0 -3
- package/dist/cjs/Rule/Other.js +0 -6
- package/dist/cjs/Rule/Other.js.map +1 -1
- package/dist/cjs/Rule/type.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Account.d.ts +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/BankFeedIntegrity.d.ts +25 -0
- package/dist/cjs/Treasury/Snapshot/Check/BankFeedIntegrity.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/BankFeedIntegrity.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/Base.d.ts +7 -0
- package/dist/cjs/Treasury/Snapshot/Check/Base.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/Base.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/Checks.d.ts +6 -0
- package/dist/cjs/Treasury/Snapshot/Check/Checks.js +18 -0
- package/dist/cjs/Treasury/Snapshot/Check/Checks.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/ExternalReconciliation.d.ts +8 -0
- package/dist/cjs/Treasury/Snapshot/Check/ExternalReconciliation.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/ExternalReconciliation.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/InternalReconciliation.d.ts +8 -0
- package/dist/cjs/Treasury/Snapshot/Check/InternalReconciliation.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/InternalReconciliation.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/LedgerIntegrity.d.ts +24 -0
- package/dist/cjs/Treasury/Snapshot/Check/LedgerIntegrity.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/LedgerIntegrity.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/Overdraft.d.ts +9 -0
- package/dist/cjs/Treasury/Snapshot/Check/Overdraft.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/Overdraft.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/Result.d.ts +5 -0
- package/dist/cjs/Treasury/Snapshot/Check/Result.js +16 -0
- package/dist/cjs/Treasury/Snapshot/Check/Result.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/TransactionMatch.d.ts +8 -0
- package/dist/cjs/Treasury/Snapshot/Check/TransactionMatch.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/TransactionMatch.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/UnidentifiedFunds.d.ts +7 -0
- package/dist/cjs/Treasury/Snapshot/Check/UnidentifiedFunds.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/UnidentifiedFunds.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/index.d.ts +21 -0
- package/dist/cjs/Treasury/Snapshot/Check/index.js +11 -0
- package/dist/cjs/Treasury/Snapshot/Check/index.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Fiat.d.ts +0 -2
- package/dist/cjs/Treasury/Snapshot/index.d.ts +6 -8
- package/dist/cjs/Treasury/Snapshot/index.js +2 -27
- package/dist/cjs/Treasury/Snapshot/index.js.map +1 -1
- package/dist/mjs/Amount.d.ts +0 -2
- package/dist/mjs/Amount.js +0 -3
- package/dist/mjs/Amount.js.map +1 -1
- package/dist/mjs/Card/Changeable.d.ts +0 -2
- package/dist/mjs/Card/Changeable.js +0 -13
- package/dist/mjs/Card/Changeable.js.map +1 -1
- package/dist/mjs/Card/Creatable.d.ts +0 -2
- package/dist/mjs/Card/Creatable.js +0 -28
- package/dist/mjs/Card/Creatable.js.map +1 -1
- package/dist/mjs/Card/Expiry.d.ts +0 -2
- package/dist/mjs/Card/Expiry.js +0 -11
- package/dist/mjs/Card/Expiry.js.map +1 -1
- package/dist/mjs/Card/Operation/Authorization.d.ts +0 -2
- package/dist/mjs/Card/Operation/Authorization.js +0 -12
- package/dist/mjs/Card/Operation/Authorization.js.map +1 -1
- package/dist/mjs/Card/Operation/Card.d.ts +0 -2
- package/dist/mjs/Card/Operation/Card.js +0 -14
- package/dist/mjs/Card/Operation/Card.js.map +1 -1
- package/dist/mjs/Card/Operation/index.d.ts +0 -2
- package/dist/mjs/Card/Operation/index.js +0 -5
- package/dist/mjs/Card/Operation/index.js.map +1 -1
- package/dist/mjs/Card/Preset.d.ts +0 -2
- package/dist/mjs/Card/Preset.js +0 -5
- package/dist/mjs/Card/Preset.js.map +1 -1
- package/dist/mjs/Card/Restriction/Merchant.d.ts +0 -2
- package/dist/mjs/Card/Restriction/Merchant.js +0 -2
- package/dist/mjs/Card/Restriction/Merchant.js.map +1 -1
- package/dist/mjs/Card/Restriction/index.d.ts +0 -2
- package/dist/mjs/Card/Restriction/index.js +0 -8
- package/dist/mjs/Card/Restriction/index.js.map +1 -1
- package/dist/mjs/Card/Restriction/merchants/Merchant.d.ts +1 -2
- package/dist/mjs/Card/Restriction/merchants/Merchant.js +2 -2
- package/dist/mjs/Card/Restriction/merchants/Merchant.js.map +1 -1
- package/dist/mjs/Card/Scheme.d.ts +0 -2
- package/dist/mjs/Card/Scheme.js +0 -5
- package/dist/mjs/Card/Scheme.js.map +1 -1
- package/dist/mjs/Card/index.d.ts +0 -2
- package/dist/mjs/Card/index.js +0 -38
- package/dist/mjs/Card/index.js.map +1 -1
- package/dist/mjs/Client/Transactions/index.d.ts +0 -16
- package/dist/mjs/Client/Transactions/index.js +0 -27
- package/dist/mjs/Client/Transactions/index.js.map +1 -1
- package/dist/mjs/Operation/Changes.d.ts +1 -0
- package/dist/mjs/Operation/Changes.js +4 -0
- package/dist/mjs/Operation/Changes.js.map +1 -1
- package/dist/mjs/Rail/index.d.ts +0 -2
- package/dist/mjs/Rail/index.js +0 -2
- package/dist/mjs/Rail/index.js.map +1 -1
- package/dist/mjs/Realm.d.ts +0 -2
- package/dist/mjs/Realm.js +0 -5
- package/dist/mjs/Realm.js.map +1 -1
- package/dist/mjs/Rule/Base.d.ts +0 -4
- package/dist/mjs/Rule/Base.js +0 -26
- package/dist/mjs/Rule/Base.js.map +1 -1
- package/dist/mjs/Rule/Other.d.ts +0 -3
- package/dist/mjs/Rule/Other.js +0 -6
- package/dist/mjs/Rule/Other.js.map +1 -1
- package/dist/mjs/Rule/type.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Account.d.ts +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/BankFeedIntegrity.d.ts +25 -0
- package/dist/mjs/Treasury/Snapshot/Check/BankFeedIntegrity.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/BankFeedIntegrity.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/Base.d.ts +7 -0
- package/dist/mjs/Treasury/Snapshot/Check/Base.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/Base.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/Checks.d.ts +6 -0
- package/dist/mjs/Treasury/Snapshot/Check/Checks.js +15 -0
- package/dist/mjs/Treasury/Snapshot/Check/Checks.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/ExternalReconciliation.d.ts +8 -0
- package/dist/mjs/Treasury/Snapshot/Check/ExternalReconciliation.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/ExternalReconciliation.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/InternalReconciliation.d.ts +8 -0
- package/dist/mjs/Treasury/Snapshot/Check/InternalReconciliation.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/InternalReconciliation.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/LedgerIntegrity.d.ts +24 -0
- package/dist/mjs/Treasury/Snapshot/Check/LedgerIntegrity.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/LedgerIntegrity.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/Overdraft.d.ts +9 -0
- package/dist/mjs/Treasury/Snapshot/Check/Overdraft.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/Overdraft.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/Result.d.ts +5 -0
- package/dist/mjs/Treasury/Snapshot/Check/Result.js +13 -0
- package/dist/mjs/Treasury/Snapshot/Check/Result.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/TransactionMatch.d.ts +8 -0
- package/dist/mjs/Treasury/Snapshot/Check/TransactionMatch.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/TransactionMatch.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/UnidentifiedFunds.d.ts +7 -0
- package/dist/mjs/Treasury/Snapshot/Check/UnidentifiedFunds.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/UnidentifiedFunds.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/index.d.ts +21 -0
- package/dist/mjs/Treasury/Snapshot/Check/index.js +8 -0
- package/dist/mjs/Treasury/Snapshot/Check/index.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Fiat.d.ts +0 -2
- package/dist/mjs/Treasury/Snapshot/index.d.ts +6 -8
- package/dist/mjs/Treasury/Snapshot/index.js +2 -27
- package/dist/mjs/Treasury/Snapshot/index.js.map +1 -1
- package/package.json +1 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../Rule/type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../Rule/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
2
|
+
import { Base } from "./Base";
|
|
3
|
+
import { Result } from "./Result";
|
|
4
|
+
export interface BankFeedIntegrity extends Base {
|
|
5
|
+
check: "bank feed integrity";
|
|
6
|
+
accounts: {
|
|
7
|
+
code: string;
|
|
8
|
+
reference: string;
|
|
9
|
+
supplier: string;
|
|
10
|
+
opening?: {
|
|
11
|
+
at: isoly.DateTime;
|
|
12
|
+
balance: number;
|
|
13
|
+
};
|
|
14
|
+
transaction?: {
|
|
15
|
+
balance: number;
|
|
16
|
+
};
|
|
17
|
+
closing: {
|
|
18
|
+
at: isoly.DateTime;
|
|
19
|
+
balance: number;
|
|
20
|
+
};
|
|
21
|
+
timestamp: string;
|
|
22
|
+
result: Result;
|
|
23
|
+
}[];
|
|
24
|
+
}
|
|
25
|
+
export declare namespace BankFeedIntegrity { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BankFeedIntegrity.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/BankFeedIntegrity.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Base.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export type Checks = (typeof Checks.value)[number];
|
|
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">;
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export var Checks;
|
|
3
|
+
(function (Checks) {
|
|
4
|
+
Checks.value = [
|
|
5
|
+
"bank feed integrity",
|
|
6
|
+
"external reconciliation",
|
|
7
|
+
"internal reconciliation",
|
|
8
|
+
"ledger integrity",
|
|
9
|
+
"overdraft",
|
|
10
|
+
"transaction match",
|
|
11
|
+
"unidentified funds",
|
|
12
|
+
];
|
|
13
|
+
Checks.type = isly.string(Checks.value);
|
|
14
|
+
})(Checks || (Checks = {}));
|
|
15
|
+
//# sourceMappingURL=Checks.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalReconciliation.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/ExternalReconciliation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Base as ResultBase } from "./Base";
|
|
2
|
+
export interface InternalReconciliation extends ResultBase {
|
|
3
|
+
check: "internal reconciliation";
|
|
4
|
+
counterbalance: number;
|
|
5
|
+
emoney: number;
|
|
6
|
+
discrepancy: number;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace InternalReconciliation { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalReconciliation.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/InternalReconciliation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
2
|
+
import { Base } from "./Base";
|
|
3
|
+
import { Result } from "./Result";
|
|
4
|
+
export interface LedgerIntegrity extends Base {
|
|
5
|
+
check: "ledger integrity";
|
|
6
|
+
accounts: {
|
|
7
|
+
id: string;
|
|
8
|
+
organization: string;
|
|
9
|
+
timestamp: string;
|
|
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
|
+
}[];
|
|
23
|
+
}
|
|
24
|
+
export declare namespace LedgerIntegrity { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LedgerIntegrity.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/LedgerIntegrity.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Overdraft.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Overdraft.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export var Result;
|
|
2
|
+
(function (Result) {
|
|
3
|
+
Result.precedence = {
|
|
4
|
+
failed: 3,
|
|
5
|
+
incomplete: 2,
|
|
6
|
+
passed: 1,
|
|
7
|
+
};
|
|
8
|
+
function aggregate(results) {
|
|
9
|
+
return results.reduce((r, e) => (Result.precedence[e] > Result.precedence[r] ? e : r), "passed");
|
|
10
|
+
}
|
|
11
|
+
Result.aggregate = aggregate;
|
|
12
|
+
})(Result || (Result = {}));
|
|
13
|
+
//# sourceMappingURL=Result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Result.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Result.ts"],"names":[],"mappings":"AACA,MAAM,KAAW,MAAM,CAStB;AATD,WAAiB,MAAM;IACT,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,EATgB,MAAM,KAAN,MAAM,QAStB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionMatch.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/TransactionMatch.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnidentifiedFunds.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/UnidentifiedFunds.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BankFeedIntegrity as CheckBankFeedIntegrity } from "./BankFeedIntegrity";
|
|
2
|
+
import { Checks as CheckChecks } from "./Checks";
|
|
3
|
+
import { ExternalReconciliation as CheckExternalReconciliation } from "./ExternalReconciliation";
|
|
4
|
+
import { InternalReconciliation as CheckInternalReconciliation } from "./InternalReconciliation";
|
|
5
|
+
import { LedgerIntegrity as CheckLedgerIntegrity } from "./LedgerIntegrity";
|
|
6
|
+
import { Overdraft as CheckOverdraft } from "./Overdraft";
|
|
7
|
+
import { Result as CheckResult } from "./Result";
|
|
8
|
+
import { TransactionMatch as CheckTransactionMatch } from "./TransactionMatch";
|
|
9
|
+
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 declare namespace Check {
|
|
12
|
+
export import Result = CheckResult;
|
|
13
|
+
export import Checks = CheckChecks;
|
|
14
|
+
type BankFeedIntegrity = CheckBankFeedIntegrity;
|
|
15
|
+
type ExternalReconciliation = CheckExternalReconciliation;
|
|
16
|
+
type InternalReconciliation = CheckInternalReconciliation;
|
|
17
|
+
type LedgerIntegrity = CheckLedgerIntegrity;
|
|
18
|
+
type Overdraft = CheckOverdraft;
|
|
19
|
+
type TransactionMatch = CheckTransactionMatch;
|
|
20
|
+
type UnidentifiedFunds = CheckUnidentifiedFunds;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Checks as CheckChecks } from "./Checks";
|
|
2
|
+
import { Result as CheckResult } from "./Result";
|
|
3
|
+
export var Check;
|
|
4
|
+
(function (Check) {
|
|
5
|
+
Check.Result = CheckResult;
|
|
6
|
+
Check.Checks = CheckChecks;
|
|
7
|
+
})(Check || (Check = {}));
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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,6 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { Supplier } from "../../Supplier";
|
|
3
|
-
import { Warning } from "../../Warning";
|
|
4
3
|
import { Balance } from "../Balance";
|
|
5
4
|
export interface Fiat {
|
|
6
5
|
supplier: Supplier;
|
|
@@ -8,7 +7,6 @@ export interface Fiat {
|
|
|
8
7
|
timestamp: isoly.DateTime;
|
|
9
8
|
type: "safeguarded" | "unsafe" | "other" | "buffer";
|
|
10
9
|
balances: Balance;
|
|
11
|
-
warnings?: Warning.Snapshot[];
|
|
12
10
|
conditions?: {
|
|
13
11
|
minimum?: Balance;
|
|
14
12
|
};
|
|
@@ -4,34 +4,32 @@ import { Supplier } from "../../Supplier";
|
|
|
4
4
|
import { Transaction } from "../../Transaction";
|
|
5
5
|
import { Warning } from "../../Warning";
|
|
6
6
|
import { Account as SnapshotAccount } from "./Account";
|
|
7
|
+
import { Check as SnapshotCheck } from "./Check";
|
|
7
8
|
import { Emoney as SnapshotEmoney } from "./Emoney";
|
|
8
9
|
import { Fiat as SnapshotFiat } from "./Fiat";
|
|
9
10
|
import { funding as snapshotFunding } from "./funding";
|
|
10
11
|
import { Reconciliation as SnapshotReconciliation } from "./Reconciliation";
|
|
11
12
|
export interface Snapshot {
|
|
12
|
-
warnings: Warning.Snapshot[];
|
|
13
13
|
emoney: Balance.Extended & {
|
|
14
14
|
total?: number;
|
|
15
|
-
reconciliation?: Snapshot.Reconciliation;
|
|
16
15
|
};
|
|
16
|
+
created: isoly.DateTime;
|
|
17
17
|
currency: isoly.Currency;
|
|
18
18
|
supplier: Supplier;
|
|
19
19
|
fiat: {
|
|
20
|
-
safe: number;
|
|
21
|
-
unsafe: number;
|
|
22
20
|
total: number;
|
|
23
|
-
other: number;
|
|
24
|
-
buffer: number;
|
|
25
21
|
accounts: Snapshot.Account[];
|
|
26
22
|
};
|
|
27
23
|
notes: Transaction.Note[];
|
|
24
|
+
checks: Snapshot.Check[];
|
|
25
|
+
result: Snapshot.Check.Result;
|
|
26
|
+
warnings?: Warning.Snapshot[];
|
|
28
27
|
}
|
|
29
28
|
export declare namespace Snapshot {
|
|
30
29
|
export import funding = snapshotFunding;
|
|
30
|
+
export import Check = SnapshotCheck;
|
|
31
31
|
type Reconciliation = SnapshotReconciliation;
|
|
32
32
|
type Emoney = SnapshotEmoney;
|
|
33
33
|
type Fiat = SnapshotFiat;
|
|
34
34
|
export import Account = SnapshotAccount;
|
|
35
|
-
function validate(snapshot: Snapshot): boolean;
|
|
36
|
-
const type: import("isly/dist/cjs/object").IslyObject<Snapshot, object>;
|
|
37
35
|
}
|
|
@@ -1,35 +1,10 @@
|
|
|
1
|
-
import { isoly } from "isoly";
|
|
2
|
-
import { isly } from "isly";
|
|
3
|
-
import { Balance } from "../../Balance";
|
|
4
|
-
import { Supplier } from "../../Supplier";
|
|
5
|
-
import { Transaction } from "../../Transaction";
|
|
6
|
-
import { Warning } from "../../Warning";
|
|
7
1
|
import { Account as SnapshotAccount } from "./Account";
|
|
2
|
+
import { Check as SnapshotCheck } from "./Check";
|
|
8
3
|
import { funding as snapshotFunding } from "./funding";
|
|
9
4
|
export var Snapshot;
|
|
10
5
|
(function (Snapshot) {
|
|
11
6
|
Snapshot.funding = snapshotFunding;
|
|
7
|
+
Snapshot.Check = SnapshotCheck;
|
|
12
8
|
Snapshot.Account = SnapshotAccount;
|
|
13
|
-
function validate(snapshot) {
|
|
14
|
-
const issuable = snapshot.fiat.total;
|
|
15
|
-
const actual = snapshot.emoney.actual ?? 0;
|
|
16
|
-
return issuable == actual;
|
|
17
|
-
}
|
|
18
|
-
Snapshot.validate = validate;
|
|
19
|
-
Snapshot.type = isly.object({
|
|
20
|
-
warnings: Warning.Snapshot.type.array(),
|
|
21
|
-
emoney: Balance.Extended,
|
|
22
|
-
currency: isly.fromIs("currency", isoly.Currency.is),
|
|
23
|
-
supplier: Supplier.type,
|
|
24
|
-
fiat: isly.object({
|
|
25
|
-
safe: isly.number(),
|
|
26
|
-
unsafe: isly.number(),
|
|
27
|
-
total: isly.number(),
|
|
28
|
-
other: isly.number(),
|
|
29
|
-
buffer: isly.number(),
|
|
30
|
-
accounts: Snapshot.Account.type.array(),
|
|
31
|
-
}),
|
|
32
|
-
notes: Transaction.Note.type.array(),
|
|
33
|
-
});
|
|
34
9
|
})(Snapshot || (Snapshot = {}));
|
|
35
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":"
|
|
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;AAiBtD,MAAM,KAAW,QAAQ,CAOxB;AAPD,WAAiB,QAAQ;IACV,gBAAO,GAAG,eAAe,CAAA;IACzB,cAAK,GAAG,aAAa,CAAA;IAIrB,gBAAO,GAAG,eAAe,CAAA;AACxC,CAAC,EAPgB,QAAQ,KAAR,QAAQ,QAOxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pax2pay/model-banking",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.615",
|
|
4
4
|
"description": "Library containing data model types and functions for the Pax2Pay Banking API.",
|
|
5
5
|
"author": "Pax2Pay Ltd",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,9 +40,6 @@
|
|
|
40
40
|
"prepare": "npm run build",
|
|
41
41
|
"clean": "rimraf dist node_modules coverage"
|
|
42
42
|
},
|
|
43
|
-
"overrides": {
|
|
44
|
-
"esbuild": ">=0.25.0"
|
|
45
|
-
},
|
|
46
43
|
"devDependencies": {
|
|
47
44
|
"@cloudflare/workers-types": "^4.20260405.1",
|
|
48
45
|
"@typescript-eslint/eslint-plugin": "8.44.1",
|
|
@@ -64,9 +61,7 @@
|
|
|
64
61
|
"cryptly": "^4.0.6",
|
|
65
62
|
"gracely": "^2.0.13",
|
|
66
63
|
"isly": "0.1.20",
|
|
67
|
-
"isly2": "npm:isly@1.3.0",
|
|
68
64
|
"isoly": "3.0.6",
|
|
69
|
-
"isoly2": "npm:isoly@3.1.3",
|
|
70
65
|
"selectively": "^2.0.15",
|
|
71
66
|
"slackly": "0.0.6",
|
|
72
67
|
"typedly": "0.0.27",
|