@pax2pay/model-banking 0.1.667 → 0.1.669
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/Client/Treasury.ts +1 -1
- 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/Client/Treasury.js +1 -1
- package/dist/cjs/Client/Treasury.js.map +1 -1
- 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/Client/Treasury.js +1 -1
- package/dist/mjs/Client/Treasury.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
|
@@ -6,6 +6,7 @@ export type Result = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare namespace Balance {
|
|
8
8
|
const type: import("isly/dist/cjs/Type").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", number>>>;
|
|
9
|
+
const typeZod: import("zod").ZodType<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", number>>, unknown, import("zod/v4/core").$ZodTypeInternals<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", number>>, unknown>>;
|
|
9
10
|
}
|
|
10
11
|
export declare namespace Result {
|
|
11
12
|
function is(value: Result | any): value is Result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Balance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAMvC,MAAM,KAAW,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Balance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAMvC,MAAM,KAAW,OAAO,CAGvB;AAHD,WAAiB,OAAO;IACV,YAAI,GAAG,OAAO,CAAC,IAAI,CAAA;IACnB,eAAO,GAAG,OAAO,CAAC,OAAO,CAAA;AACvC,CAAC,EAHgB,OAAO,KAAP,OAAO,QAGvB;AACD,MAAM,KAAW,MAAM,CAItB;AAJD,WAAiB,MAAM;IACtB,SAAgB,EAAE,CAAC,KAAmB;QACrC,OAAO,KAAK,IAAI,OAAO,KAAK,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAA;IACjH,CAAC;IAFe,SAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,MAAM,KAAN,MAAM,QAItB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { Warning } from "../../Warning";
|
|
3
|
+
import { zod } from "../../zod";
|
|
3
4
|
import { Transaction } from "../Transaction";
|
|
4
5
|
export interface Account {
|
|
5
6
|
code: string;
|
|
@@ -19,10 +20,12 @@ export declare namespace Account {
|
|
|
19
20
|
};
|
|
20
21
|
namespace Opening {
|
|
21
22
|
const type: import("isly/dist/cjs/object").IslyObject<Opening, object>;
|
|
23
|
+
const typeZod: zod.ZodType<Opening>;
|
|
22
24
|
}
|
|
23
25
|
type Closing = Opening;
|
|
24
26
|
namespace Closing {
|
|
25
27
|
const type: import("isly/dist/cjs/object").IslyObject<Opening, object>;
|
|
28
|
+
const typeZod: zod.ZodType<Opening, unknown, zod.z.core.$ZodTypeInternals<Opening, unknown>>;
|
|
26
29
|
}
|
|
27
30
|
type Delta = {
|
|
28
31
|
amount: number;
|
|
@@ -30,6 +33,8 @@ export declare namespace Account {
|
|
|
30
33
|
};
|
|
31
34
|
namespace Delta {
|
|
32
35
|
const type: import("isly/dist/cjs/object").IslyObject<Delta, object>;
|
|
36
|
+
const typeZod: zod.ZodType<Delta>;
|
|
33
37
|
}
|
|
34
38
|
const type: import("isly/dist/cjs/object").IslyObject<Account, object>;
|
|
39
|
+
const typeZod: zod.ZodType<Account>;
|
|
35
40
|
}
|
|
@@ -1,19 +1,30 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
1
2
|
import { isly } from "isly";
|
|
2
3
|
import { Warning } from "../../Warning";
|
|
4
|
+
import { zod } from "../../zod";
|
|
3
5
|
import { Transaction } from "../Transaction";
|
|
4
6
|
export var Account;
|
|
5
7
|
(function (Account) {
|
|
6
8
|
let Opening;
|
|
7
9
|
(function (Opening) {
|
|
8
10
|
Opening.type = isly.object({ at: isly.string(), balance: isly.number() });
|
|
11
|
+
Opening.typeZod = zod.object({
|
|
12
|
+
at: zod.string().refine(isoly.DateTime.is),
|
|
13
|
+
balance: zod.number(),
|
|
14
|
+
});
|
|
9
15
|
})(Opening = Account.Opening || (Account.Opening = {}));
|
|
10
16
|
let Closing;
|
|
11
17
|
(function (Closing) {
|
|
12
18
|
Closing.type = Opening.type;
|
|
19
|
+
Closing.typeZod = Opening.typeZod;
|
|
13
20
|
})(Closing = Account.Closing || (Account.Closing = {}));
|
|
14
21
|
let Delta;
|
|
15
22
|
(function (Delta) {
|
|
16
23
|
Delta.type = isly.object({ amount: isly.number(), transactions: Transaction.type.array() });
|
|
24
|
+
Delta.typeZod = zod.object({
|
|
25
|
+
amount: zod.number(),
|
|
26
|
+
transactions: zod.array(Transaction.typeZod),
|
|
27
|
+
});
|
|
17
28
|
})(Delta = Account.Delta || (Account.Delta = {}));
|
|
18
29
|
Account.type = isly.object({
|
|
19
30
|
code: isly.string(),
|
|
@@ -26,5 +37,16 @@ export var Account;
|
|
|
26
37
|
delta: Delta.type,
|
|
27
38
|
warnings: Warning.Snapshot.type.array().optional(),
|
|
28
39
|
});
|
|
40
|
+
Account.typeZod = zod.object({
|
|
41
|
+
code: zod.string(),
|
|
42
|
+
label: zod.string(),
|
|
43
|
+
reference: zod.string(),
|
|
44
|
+
description: zod.string().optional(),
|
|
45
|
+
currency: zod.enum(isoly.Currency.values),
|
|
46
|
+
opening: Opening.typeZod.optional(),
|
|
47
|
+
closing: Closing.typeZod,
|
|
48
|
+
delta: Delta.typeZod,
|
|
49
|
+
warnings: zod.array(Warning.Snapshot.typeZod).optional(),
|
|
50
|
+
});
|
|
29
51
|
})(Account || (Account = {}));
|
|
30
52
|
//# sourceMappingURL=Account.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Account.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/Account.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Account.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/Account.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
+
import { zod } from "../../../zod";
|
|
2
3
|
import { Base } from "./Base";
|
|
3
4
|
import { Result } from "./Result";
|
|
4
5
|
export interface BankFeedIntegrity extends Base {
|
|
@@ -22,4 +23,6 @@ export interface BankFeedIntegrity extends Base {
|
|
|
22
23
|
result: Result;
|
|
23
24
|
}[];
|
|
24
25
|
}
|
|
25
|
-
export declare namespace BankFeedIntegrity {
|
|
26
|
+
export declare namespace BankFeedIntegrity {
|
|
27
|
+
const typeZod: zod.ZodType<BankFeedIntegrity>;
|
|
28
|
+
}
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import { isoly } from "isoly";
|
|
2
|
+
import { zod } from "../../../zod";
|
|
3
|
+
import { Base } from "./Base";
|
|
4
|
+
import { Result } from "./Result";
|
|
5
|
+
export var BankFeedIntegrity;
|
|
6
|
+
(function (BankFeedIntegrity) {
|
|
7
|
+
BankFeedIntegrity.typeZod = Base.typeZod.extend({
|
|
8
|
+
check: zod.literal("bank feed integrity"),
|
|
9
|
+
accounts: zod.array(zod.object({
|
|
10
|
+
code: zod.string(),
|
|
11
|
+
reference: zod.string(),
|
|
12
|
+
supplier: zod.string(),
|
|
13
|
+
opening: zod.object({ at: zod.string().refine(isoly.DateTime.is), balance: zod.number() }).optional(),
|
|
14
|
+
transaction: zod.object({ balance: zod.number() }).optional(),
|
|
15
|
+
closing: zod.object({ at: zod.string().refine(isoly.DateTime.is), balance: zod.number() }),
|
|
16
|
+
timestamp: zod.string(),
|
|
17
|
+
result: Result.typeZod,
|
|
18
|
+
})),
|
|
19
|
+
});
|
|
20
|
+
})(BankFeedIntegrity || (BankFeedIntegrity = {}));
|
|
2
21
|
//# sourceMappingURL=BankFeedIntegrity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BankFeedIntegrity.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/BankFeedIntegrity.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"BankFeedIntegrity.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/BankFeedIntegrity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAgBjC,MAAM,KAAW,iBAAiB,CAgBjC;AAhBD,WAAiB,iBAAiB;IACpB,yBAAO,GAAmC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QAC1E,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAC;QACzC,QAAQ,EAAE,GAAG,CAAC,KAAK,CAClB,GAAG,CAAC,MAAM,CAAC;YACV,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE;YAClB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE;YACvB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE;YACtB,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;YACrG,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;YAC7D,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC;YAC1F,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE;YACvB,MAAM,EAAE,MAAM,CAAC,OAAO;SACtB,CAAC,CACF;KACD,CAAC,CAAA;AACH,CAAC,EAhBgB,iBAAiB,KAAjB,iBAAiB,QAgBjC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { zod } from "../../../zod";
|
|
1
2
|
import { Checks } from "./Checks";
|
|
2
3
|
import { Result } from "./Result";
|
|
3
4
|
export interface Base {
|
|
4
5
|
check: Checks;
|
|
5
6
|
result: Result;
|
|
6
7
|
}
|
|
7
|
-
export declare namespace Base {
|
|
8
|
+
export declare namespace Base {
|
|
9
|
+
const typeZod: zod.ZodObject<{
|
|
10
|
+
check: zod.ZodType<"overdraft" | "bank feed integrity" | "external reconciliation" | "internal reconciliation" | "ledger integrity" | "transaction match" | "unidentified funds", unknown, zod.z.core.$ZodTypeInternals<"overdraft" | "bank feed integrity" | "external reconciliation" | "internal reconciliation" | "ledger integrity" | "transaction match" | "unidentified funds", unknown>>;
|
|
11
|
+
result: zod.ZodType<Result, unknown, zod.z.core.$ZodTypeInternals<Result, unknown>>;
|
|
12
|
+
}, zod.z.core.$strip>;
|
|
13
|
+
}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { zod } from "../../../zod";
|
|
2
|
+
import { Checks } from "./Checks";
|
|
3
|
+
import { Result } from "./Result";
|
|
4
|
+
export var Base;
|
|
5
|
+
(function (Base) {
|
|
6
|
+
Base.typeZod = zod.object({
|
|
7
|
+
check: Checks.typeZod,
|
|
8
|
+
result: Result.typeZod,
|
|
9
|
+
});
|
|
10
|
+
})(Base || (Base = {}));
|
|
2
11
|
//# 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,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAMjC,MAAM,KAAW,IAAI,CAKpB;AALD,WAAiB,IAAI;IACP,YAAO,GAAG,GAAG,CAAC,MAAM,CAAC;QACjC,KAAK,EAAE,MAAM,CAAC,OAAO;QACrB,MAAM,EAAE,MAAM,CAAC,OAAO;KACtB,CAA6B,CAAA;AAC/B,CAAC,EALgB,IAAI,KAAJ,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
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
+
import { zod } from "../../../zod";
|
|
2
3
|
export var Checks;
|
|
3
4
|
(function (Checks) {
|
|
4
5
|
Checks.value = [
|
|
@@ -11,5 +12,6 @@ export var Checks;
|
|
|
11
12
|
"unidentified funds",
|
|
12
13
|
];
|
|
13
14
|
Checks.type = isly.string(Checks.value);
|
|
15
|
+
Checks.typeZod = zod.enum(Checks.value);
|
|
14
16
|
})(Checks || (Checks = {}));
|
|
15
17
|
//# sourceMappingURL=Checks.js.map
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"Checks.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Checks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAGlC,MAAM,KAAW,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,IAAI,CAAC,MAAM,CAAC,OAAA,KAAK,CAAC,CAAA;IACzB,cAAO,GAAwB,GAAG,CAAC,IAAI,CAAC,OAAA,KAAK,CAAC,CAAA;AAC5D,CAAC,EAZgB,MAAM,KAAN,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,2 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { zod } from "../../../zod";
|
|
2
|
+
import { Base } from "./Base";
|
|
3
|
+
export var ExternalReconciliation;
|
|
4
|
+
(function (ExternalReconciliation) {
|
|
5
|
+
ExternalReconciliation.typeZod = Base.typeZod.extend({
|
|
6
|
+
check: zod.literal("external reconciliation"),
|
|
7
|
+
counterbalance: zod.number(),
|
|
8
|
+
fiat: zod.number(),
|
|
9
|
+
discrepancy: zod.number(),
|
|
10
|
+
});
|
|
11
|
+
})(ExternalReconciliation || (ExternalReconciliation = {}));
|
|
2
12
|
//# 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,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAQ7B,MAAM,KAAW,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACzB,8BAAO,GAAwC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QAC/E,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,yBAAyB,CAAC;QAC7C,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE;QAC5B,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE;QAClB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE;KACzB,CAAC,CAAA;AACH,CAAC,EAPgB,sBAAsB,KAAtB,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,2 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { zod } from "../../../zod";
|
|
2
|
+
import { Base as ResultBase } from "./Base";
|
|
3
|
+
export var InternalReconciliation;
|
|
4
|
+
(function (InternalReconciliation) {
|
|
5
|
+
InternalReconciliation.typeZod = ResultBase.typeZod.extend({
|
|
6
|
+
check: zod.literal("internal reconciliation"),
|
|
7
|
+
counterbalance: zod.number(),
|
|
8
|
+
emoney: zod.number(),
|
|
9
|
+
discrepancy: zod.number(),
|
|
10
|
+
});
|
|
11
|
+
})(InternalReconciliation || (InternalReconciliation = {}));
|
|
2
12
|
//# 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,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAA;AAQ3C,MAAM,KAAW,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACzB,8BAAO,GAAwC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC;QACrF,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,yBAAyB,CAAC;QAC7C,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE;QAC5B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE;QACpB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE;KACzB,CAAC,CAAA;AACH,CAAC,EAPgB,sBAAsB,KAAtB,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,2 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { zod } from "../../../zod";
|
|
2
|
+
import { Base } from "./Base";
|
|
3
|
+
export var LedgerIntegrity;
|
|
4
|
+
(function (LedgerIntegrity) {
|
|
5
|
+
LedgerIntegrity.typeZod = Base.typeZod.extend({
|
|
6
|
+
check: zod.literal("ledger integrity"),
|
|
7
|
+
opening: zod.object({ balance: zod.number() }),
|
|
8
|
+
ledger: zod.object({ change: zod.number() }),
|
|
9
|
+
closing: zod.object({ balance: zod.number() }),
|
|
10
|
+
failed: zod.array(zod.string()),
|
|
11
|
+
incomplete: zod.array(zod.string()),
|
|
12
|
+
passed: zod.number(),
|
|
13
|
+
total: zod.number(),
|
|
14
|
+
});
|
|
15
|
+
})(LedgerIntegrity || (LedgerIntegrity = {}));
|
|
2
16
|
//# 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,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAY7B,MAAM,KAAW,eAAe,CAW/B;AAXD,WAAiB,eAAe;IAClB,uBAAO,GAAiC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QACxE,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC;QACtC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC;QAC9C,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC;QAC5C,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC;QAC9C,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;QAC/B,UAAU,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;QACnC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE;QACpB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE;KACnB,CAAC,CAAA;AACH,CAAC,EAXgB,eAAe,KAAf,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,2 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { zod } from "../../../zod";
|
|
2
|
+
import { Base } from "./Base";
|
|
3
|
+
export var Overdraft;
|
|
4
|
+
(function (Overdraft) {
|
|
5
|
+
Overdraft.typeZod = Base.typeZod.extend({
|
|
6
|
+
check: zod.literal("overdraft"),
|
|
7
|
+
overdrafts: zod.array(zod.object({ account: zod.string(), balance: zod.number() })),
|
|
8
|
+
});
|
|
9
|
+
})(Overdraft || (Overdraft = {}));
|
|
2
10
|
//# 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,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAM7B,MAAM,KAAW,SAAS,CAKzB;AALD,WAAiB,SAAS;IACZ,iBAAO,GAA2B,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QAClE,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC;QAC/B,UAAU,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;KACnF,CAAC,CAAA;AACH,CAAC,EALgB,SAAS,KAAT,SAAS,QAKzB"}
|
|
@@ -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,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAGlC,MAAM,KAAW,MAAM,CAUtB;AAVD,WAAiB,MAAM;IACT,cAAO,GAAwB,GAAG,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,KAAN,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,2 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { zod } from "../../../zod";
|
|
2
|
+
import { Base } from "./Base";
|
|
3
|
+
export var TransactionMatch;
|
|
4
|
+
(function (TransactionMatch) {
|
|
5
|
+
TransactionMatch.typeZod = Base.typeZod.extend({
|
|
6
|
+
check: zod.literal("transaction match"),
|
|
7
|
+
total: zod.number(),
|
|
8
|
+
matched: zod.number(),
|
|
9
|
+
unmatched: zod.array(zod.string()),
|
|
10
|
+
});
|
|
11
|
+
})(TransactionMatch || (TransactionMatch = {}));
|
|
2
12
|
//# 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,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAQ7B,MAAM,KAAW,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IACnB,wBAAO,GAAkC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QACzE,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,mBAAmB,CAAC;QACvC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE;QACnB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE;QACrB,SAAS,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;KAClC,CAAC,CAAA;AACH,CAAC,EAPgB,gBAAgB,KAAhB,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,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { zod } from "../../../zod";
|
|
2
|
+
import { Base as ResultBase } from "./Base";
|
|
3
|
+
export var UnidentifiedFunds;
|
|
4
|
+
(function (UnidentifiedFunds) {
|
|
5
|
+
UnidentifiedFunds.typeZod = ResultBase.typeZod.extend({
|
|
6
|
+
check: zod.literal("unidentified funds"),
|
|
7
|
+
account: zod.string(),
|
|
8
|
+
balance: zod.number(),
|
|
9
|
+
});
|
|
10
|
+
})(UnidentifiedFunds || (UnidentifiedFunds = {}));
|
|
2
11
|
//# 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,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAA;AAO3C,MAAM,KAAW,iBAAiB,CAMjC;AAND,WAAiB,iBAAiB;IACpB,yBAAO,GAAmC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC;QAChF,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,oBAAoB,CAAC;QACxC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE;KACrB,CAAC,CAAA;AACH,CAAC,EANgB,iBAAiB,KAAjB,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,8 +1,32 @@
|
|
|
1
|
+
import { zod } from "../../../zod";
|
|
2
|
+
import { BankFeedIntegrity as CheckBankFeedIntegrity } from "./BankFeedIntegrity";
|
|
1
3
|
import { Checks as CheckChecks } from "./Checks";
|
|
4
|
+
import { ExternalReconciliation as CheckExternalReconciliation } from "./ExternalReconciliation";
|
|
5
|
+
import { InternalReconciliation as CheckInternalReconciliation } from "./InternalReconciliation";
|
|
6
|
+
import { LedgerIntegrity as CheckLedgerIntegrity } from "./LedgerIntegrity";
|
|
7
|
+
import { Overdraft as CheckOverdraft } from "./Overdraft";
|
|
2
8
|
import { Result as CheckResult } from "./Result";
|
|
9
|
+
import { TransactionMatch as CheckTransactionMatch } from "./TransactionMatch";
|
|
10
|
+
import { UnidentifiedFunds as CheckUnidentifiedFunds } from "./UnidentifiedFunds";
|
|
3
11
|
export var Check;
|
|
4
12
|
(function (Check) {
|
|
5
13
|
Check.Result = CheckResult;
|
|
6
14
|
Check.Checks = CheckChecks;
|
|
15
|
+
Check.BankFeedIntegrity = CheckBankFeedIntegrity;
|
|
16
|
+
Check.ExternalReconciliation = CheckExternalReconciliation;
|
|
17
|
+
Check.InternalReconciliation = CheckInternalReconciliation;
|
|
18
|
+
Check.LedgerIntegrity = CheckLedgerIntegrity;
|
|
19
|
+
Check.Overdraft = CheckOverdraft;
|
|
20
|
+
Check.TransactionMatch = CheckTransactionMatch;
|
|
21
|
+
Check.UnidentifiedFunds = CheckUnidentifiedFunds;
|
|
22
|
+
Check.typeZod = zod.union([
|
|
23
|
+
CheckBankFeedIntegrity.typeZod,
|
|
24
|
+
CheckExternalReconciliation.typeZod,
|
|
25
|
+
CheckInternalReconciliation.typeZod,
|
|
26
|
+
CheckLedgerIntegrity.typeZod,
|
|
27
|
+
CheckOverdraft.typeZod,
|
|
28
|
+
CheckTransactionMatch.typeZod,
|
|
29
|
+
CheckUnidentifiedFunds.typeZod,
|
|
30
|
+
]);
|
|
7
31
|
})(Check || (Check = {}));
|
|
8
32
|
//# 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,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,iBAAiB,IAAI,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AACjF,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,EAAE,sBAAsB,IAAI,2BAA2B,EAAE,MAAM,0BAA0B,CAAA;AAChG,OAAO,EAAE,sBAAsB,IAAI,2BAA2B,EAAE,MAAM,0BAA0B,CAAA;AAChG,OAAO,EAAE,eAAe,IAAI,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC3E,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,EAAE,gBAAgB,IAAI,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC9E,OAAO,EAAE,iBAAiB,IAAI,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAUjF,MAAM,KAAW,KAAK,CAmBrB;AAnBD,WAAiB,KAAK;IACP,YAAM,GAAG,WAAW,CAAA;IACpB,YAAM,GAAG,WAAW,CAAA;IACpB,uBAAiB,GAAG,sBAAsB,CAAA;IAC1C,4BAAsB,GAAG,2BAA2B,CAAA;IACpD,4BAAsB,GAAG,2BAA2B,CAAA;IACpD,qBAAe,GAAG,oBAAoB,CAAA;IACtC,eAAS,GAAG,cAAc,CAAA;IAC1B,sBAAgB,GAAG,qBAAqB,CAAA;IACxC,uBAAiB,GAAG,sBAAsB,CAAA;IAC3C,aAAO,GAAuB,GAAG,CAAC,KAAK,CAAC;QACpD,sBAAsB,CAAC,OAAO;QAC9B,2BAA2B,CAAC,OAAO;QACnC,2BAA2B,CAAC,OAAO;QACnC,oBAAoB,CAAC,OAAO;QAC5B,cAAc,CAAC,OAAO;QACtB,qBAAqB,CAAC,OAAO;QAC7B,sBAAsB,CAAC,OAAO;KAC9B,CAAC,CAAA;AACH,CAAC,EAnBgB,KAAK,KAAL,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,2 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { isoly } from "isoly";
|
|
2
|
+
import { Balances } from "../../Balances";
|
|
3
|
+
import { Supplier } from "../../Supplier";
|
|
4
|
+
import { zod } from "../../zod";
|
|
5
|
+
export var Emoney;
|
|
6
|
+
(function (Emoney) {
|
|
7
|
+
Emoney.typeZod = zod.object({
|
|
8
|
+
organization: zod.string(),
|
|
9
|
+
account: zod.string(),
|
|
10
|
+
created: zod.string().refine(isoly.DateTime.is).optional(),
|
|
11
|
+
supplier: Supplier.typeZod.optional(),
|
|
12
|
+
currencies: zod.array(zod.enum(isoly.Currency.values)).optional(),
|
|
13
|
+
timestamp: zod.string().refine(isoly.DateTime.is),
|
|
14
|
+
balances: Balances.typeZod,
|
|
15
|
+
});
|
|
16
|
+
})(Emoney || (Emoney = {}));
|
|
2
17
|
//# 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,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAW/B,MAAM,KAAW,MAAM,CAUtB;AAVD,WAAiB,MAAM;IACT,cAAO,GAAwB,GAAG,CAAC,MAAM,CAAC;QACtD,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE;QAC1B,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC1D,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE;QACrC,UAAU,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;QACjE,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjD,QAAQ,EAAE,QAAQ,CAAC,OAAO;KAC1B,CAAC,CAAA;AACH,CAAC,EAVgB,MAAM,KAAN,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,2 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { isoly } from "isoly";
|
|
2
|
+
import { Supplier } from "../../Supplier";
|
|
3
|
+
import { zod } from "../../zod";
|
|
4
|
+
import { Balance } from "../Balance";
|
|
5
|
+
export var Fiat;
|
|
6
|
+
(function (Fiat) {
|
|
7
|
+
Fiat.typeZod = zod.object({
|
|
8
|
+
supplier: Supplier.typeZod,
|
|
9
|
+
account: zod.string(),
|
|
10
|
+
timestamp: zod.string().refine(isoly.DateTime.is),
|
|
11
|
+
type: zod.enum(["safeguarded", "unsafe", "other", "buffer"]),
|
|
12
|
+
balances: Balance.typeZod,
|
|
13
|
+
conditions: zod.object({ minimum: Balance.typeZod.optional() }).optional(),
|
|
14
|
+
label: zod.string().optional(),
|
|
15
|
+
reference: zod.string(),
|
|
16
|
+
description: zod.string().optional(),
|
|
17
|
+
});
|
|
18
|
+
})(Fiat || (Fiat = {}));
|
|
2
19
|
//# sourceMappingURL=Fiat.js.map
|