@pax2pay/model-banking 0.1.386 → 0.1.388
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/Account/Conditions.ts +0 -1
- package/Treasury/Account/Fetchable.ts +4 -7
- package/Treasury/Account/Storable.ts +4 -10
- package/Treasury/Account/index.ts +5 -8
- package/Treasury/Snapshot/Fiat.ts +1 -1
- package/Treasury/Snapshot/Fragment.ts +2 -2
- package/Treasury/Snapshot/index.ts +0 -2
- package/Warning/Snapshot/MissingBuffer.ts +1 -1
- package/Warning/Snapshot/Overdraft.ts +5 -3
- package/dist/Treasury/Account/Conditions.js.map +1 -1
- package/dist/Treasury/Account/Fetchable.d.ts +1 -3
- package/dist/Treasury/Account/Fetchable.js +3 -5
- package/dist/Treasury/Account/Fetchable.js.map +1 -1
- package/dist/Treasury/Account/Storable.d.ts +1 -5
- package/dist/Treasury/Account/Storable.js +3 -6
- package/dist/Treasury/Account/Storable.js.map +1 -1
- package/dist/Treasury/Account/index.d.ts +2 -5
- package/dist/Treasury/Account/index.js +3 -5
- package/dist/Treasury/Account/index.js.map +1 -1
- package/dist/Treasury/Snapshot/Fiat.d.ts +1 -1
- package/dist/Treasury/Snapshot/Fragment.d.ts +1 -1
- package/dist/Treasury/Snapshot/Fragment.js +1 -1
- package/dist/Treasury/Snapshot/Fragment.js.map +1 -1
- package/dist/Treasury/Snapshot/index.d.ts +0 -2
- package/dist/Treasury/Snapshot/index.js +0 -2
- package/dist/Treasury/Snapshot/index.js.map +1 -1
- package/dist/Warning/Snapshot/MissingBuffer.d.ts +1 -1
- package/dist/Warning/Snapshot/MissingBuffer.js +1 -1
- package/dist/Warning/Snapshot/MissingBuffer.js.map +1 -1
- package/dist/Warning/Snapshot/Overdraft.d.ts +3 -2
- package/dist/Warning/Snapshot/Overdraft.js +3 -2
- package/dist/Warning/Snapshot/Overdraft.js.map +1 -1
- package/dist/Warning/Snapshot/StaleFiat.d.ts +1 -1
- package/package.json +1 -1
- package/Treasury/Account/Creatable.ts +0 -28
- package/dist/Treasury/Account/Creatable.d.ts +0 -19
- package/dist/Treasury/Account/Creatable.js +0 -20
- package/dist/Treasury/Account/Creatable.js.map +0 -1
|
@@ -6,7 +6,7 @@ import { Balance } from "../Balance"
|
|
|
6
6
|
import { Category } from "./Category"
|
|
7
7
|
|
|
8
8
|
export interface Fetchable {
|
|
9
|
-
|
|
9
|
+
label: string
|
|
10
10
|
supplier: Supplier
|
|
11
11
|
reference: string
|
|
12
12
|
currencies: isoly.Currency[]
|
|
@@ -14,17 +14,14 @@ export interface Fetchable {
|
|
|
14
14
|
rail: Rail.Address[]
|
|
15
15
|
balance: Balance
|
|
16
16
|
}
|
|
17
|
-
|
|
18
17
|
export namespace Fetchable {
|
|
19
18
|
export const type = isly.object<Fetchable>({
|
|
20
|
-
|
|
19
|
+
label: isly.string(),
|
|
21
20
|
supplier: isly.fromIs("supplier", Supplier.is),
|
|
22
21
|
reference: isly.string(),
|
|
23
22
|
currencies: isly.fromIs("Account.Fetchable.currencies", isoly.Currency.is).array(),
|
|
24
23
|
type: Category.type,
|
|
25
|
-
rail:
|
|
26
|
-
balance:
|
|
24
|
+
rail: Rail.Address.type.array(),
|
|
25
|
+
balance: Balance.type,
|
|
27
26
|
})
|
|
28
|
-
export const is = type.is
|
|
29
|
-
export const flaw = type.flaw
|
|
30
27
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { cryptly } from "cryptly"
|
|
2
1
|
import { isoly } from "isoly"
|
|
3
2
|
import { isly } from "isly"
|
|
4
3
|
import { Realm } from "../../Realm"
|
|
@@ -7,27 +6,22 @@ import { Category } from "./Category"
|
|
|
7
6
|
import { Conditions } from "./Conditions"
|
|
8
7
|
|
|
9
8
|
export interface Storable {
|
|
10
|
-
|
|
9
|
+
code: string
|
|
11
10
|
created: isoly.DateTime
|
|
12
11
|
realm: Realm
|
|
13
12
|
supplier: Supplier
|
|
14
|
-
link: string
|
|
15
13
|
type: Category
|
|
16
14
|
reference: string
|
|
17
15
|
conditions?: Conditions
|
|
18
16
|
}
|
|
19
|
-
|
|
20
17
|
export namespace Storable {
|
|
21
18
|
export const type = isly.object<Storable>({
|
|
22
|
-
|
|
19
|
+
code: isly.string(),
|
|
23
20
|
created: isly.fromIs("Treasury.Account.Storable", isoly.DateTime.is),
|
|
24
|
-
realm:
|
|
25
|
-
supplier:
|
|
26
|
-
link: isly.string(),
|
|
21
|
+
realm: Realm.type,
|
|
22
|
+
supplier: Supplier.type,
|
|
27
23
|
type: Category.type,
|
|
28
24
|
reference: isly.string(),
|
|
29
25
|
conditions: Conditions.type.optional(),
|
|
30
26
|
})
|
|
31
|
-
export const is = type.is
|
|
32
|
-
export const flaw = type.flaw
|
|
33
27
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { cryptly } from "cryptly"
|
|
2
1
|
import { isoly } from "isoly"
|
|
3
2
|
import { isly } from "isly"
|
|
4
3
|
import { Rail } from "../../Rail"
|
|
@@ -8,14 +7,13 @@ import { Balance } from "../Balance"
|
|
|
8
7
|
import { Transaction } from "../Transaction"
|
|
9
8
|
import { Category as AccountCategory } from "./Category"
|
|
10
9
|
import { Conditions as AccountConditions } from "./Conditions"
|
|
11
|
-
import { Creatable as AccountCreatable } from "./Creatable"
|
|
12
10
|
import { Fetchable as AccountFetchable } from "./Fetchable"
|
|
13
11
|
import { Storable as AccountStorable } from "./Storable"
|
|
14
12
|
|
|
15
13
|
export interface Account {
|
|
16
|
-
|
|
14
|
+
code: string
|
|
17
15
|
created: isoly.DateTime
|
|
18
|
-
|
|
16
|
+
label: string
|
|
19
17
|
realm: Realm
|
|
20
18
|
supplier: Supplier | "external"
|
|
21
19
|
reference: string
|
|
@@ -27,9 +25,9 @@ export interface Account {
|
|
|
27
25
|
}
|
|
28
26
|
export namespace Account {
|
|
29
27
|
export const type = isly.object<Account>({
|
|
30
|
-
|
|
28
|
+
code: isly.string(),
|
|
31
29
|
created: isly.fromIs("Treasury.Account.Created", isoly.DateTime.is),
|
|
32
|
-
|
|
30
|
+
label: isly.string(),
|
|
33
31
|
realm: Realm.type,
|
|
34
32
|
supplier: Supplier.type,
|
|
35
33
|
reference: isly.string(),
|
|
@@ -37,10 +35,9 @@ export namespace Account {
|
|
|
37
35
|
type: AccountCategory.type,
|
|
38
36
|
conditions: AccountConditions.type,
|
|
39
37
|
rail: Rail.Address.type.array(),
|
|
40
|
-
balance:
|
|
38
|
+
balance: Balance.type,
|
|
41
39
|
})
|
|
42
40
|
export type Listable = Account & { transactions: Transaction[] }
|
|
43
|
-
export import Creatable = AccountCreatable
|
|
44
41
|
export import Storable = AccountStorable
|
|
45
42
|
export import Fetchable = AccountFetchable
|
|
46
43
|
export import Category = AccountCategory
|
|
@@ -5,7 +5,7 @@ import { Warning } from "../../Warning"
|
|
|
5
5
|
import { Account } from "../Account"
|
|
6
6
|
|
|
7
7
|
export interface Fragment {
|
|
8
|
-
warnings: Warning[]
|
|
8
|
+
warnings: Warning.Snapshot[]
|
|
9
9
|
emoney: Balance.Extended
|
|
10
10
|
counterbalance: Fragment.Counterbalance
|
|
11
11
|
fiat: {
|
|
@@ -50,7 +50,7 @@ export namespace Fragment {
|
|
|
50
50
|
return validCounterbalance && issuable == actual
|
|
51
51
|
}
|
|
52
52
|
export const type = isly.object<Fragment>({
|
|
53
|
-
warnings: Warning.type.array(),
|
|
53
|
+
warnings: Warning.Snapshot.type.array(),
|
|
54
54
|
emoney: Balance.Extended,
|
|
55
55
|
counterbalance: Counterbalance.type,
|
|
56
56
|
fiat: isly.object({
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly"
|
|
2
2
|
import { isly } from "isly"
|
|
3
|
-
import { Warning as SnapshotWarning } from "../../Warning"
|
|
4
3
|
import { Emoney as SnapshotEmoney } from "./Emoney"
|
|
5
4
|
import { Fiat as SnapshotFiat } from "./Fiat"
|
|
6
5
|
import { Fragment as SnapshotFragment } from "./Fragment"
|
|
@@ -10,7 +9,6 @@ export type Snapshot = Partial<Record<isoly.Currency, Snapshot.Fragment>>
|
|
|
10
9
|
|
|
11
10
|
export namespace Snapshot {
|
|
12
11
|
export import Fragment = SnapshotFragment
|
|
13
|
-
export import Warning = SnapshotWarning
|
|
14
12
|
export import funding = snapshotFunding
|
|
15
13
|
export type Emoney = SnapshotEmoney
|
|
16
14
|
export type Fiat = SnapshotFiat
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import { isoly } from "isoly"
|
|
1
2
|
import { isly } from "isly"
|
|
2
|
-
import { Balance } from "../../Balance"
|
|
3
3
|
import { Base } from "../Base"
|
|
4
4
|
|
|
5
5
|
export interface Overdraft extends Base {
|
|
6
6
|
type: "overdraft"
|
|
7
|
-
|
|
7
|
+
organization: string
|
|
8
|
+
currency: isoly.Currency
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
export namespace Overdraft {
|
|
11
12
|
export const type = Base.type.extend<Overdraft>({
|
|
12
13
|
type: isly.string("overdraft"),
|
|
13
|
-
|
|
14
|
+
organization: isly.string(),
|
|
15
|
+
currency: isly.fromIs("Currency", isoly.Currency.is),
|
|
14
16
|
})
|
|
15
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Conditions.js","sourceRoot":"../","sources":["Treasury/Account/Conditions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"Conditions.js","sourceRoot":"../","sources":["Treasury/Account/Conditions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAKvC,MAAM,KAAW,UAAU,CAG1B;AAHD,WAAiB,UAAU;IACb,eAAI,GAAG,IAAI,CAAC,MAAM,CAAa,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;IACpE,aAAE,GAAG,WAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAHgB,UAAU,KAAV,UAAU,QAG1B"}
|
|
@@ -5,7 +5,7 @@ import { Supplier } from "../../Supplier";
|
|
|
5
5
|
import { Balance } from "../Balance";
|
|
6
6
|
import { Category } from "./Category";
|
|
7
7
|
export interface Fetchable {
|
|
8
|
-
|
|
8
|
+
label: string;
|
|
9
9
|
supplier: Supplier;
|
|
10
10
|
reference: string;
|
|
11
11
|
currencies: isoly.Currency[];
|
|
@@ -15,6 +15,4 @@ export interface Fetchable {
|
|
|
15
15
|
}
|
|
16
16
|
export declare namespace Fetchable {
|
|
17
17
|
const type: isly.object.ExtendableType<Fetchable>;
|
|
18
|
-
const is: isly.Type.IsFunction<Fetchable>;
|
|
19
|
-
const flaw: isly.Type.FlawFunction;
|
|
20
18
|
}
|
|
@@ -7,15 +7,13 @@ import { Category } from "./Category";
|
|
|
7
7
|
export var Fetchable;
|
|
8
8
|
(function (Fetchable) {
|
|
9
9
|
Fetchable.type = isly.object({
|
|
10
|
-
|
|
10
|
+
label: isly.string(),
|
|
11
11
|
supplier: isly.fromIs("supplier", Supplier.is),
|
|
12
12
|
reference: isly.string(),
|
|
13
13
|
currencies: isly.fromIs("Account.Fetchable.currencies", isoly.Currency.is).array(),
|
|
14
14
|
type: Category.type,
|
|
15
|
-
rail:
|
|
16
|
-
balance:
|
|
15
|
+
rail: Rail.Address.type.array(),
|
|
16
|
+
balance: Balance.type,
|
|
17
17
|
});
|
|
18
|
-
Fetchable.is = Fetchable.type.is;
|
|
19
|
-
Fetchable.flaw = Fetchable.type.flaw;
|
|
20
18
|
})(Fetchable || (Fetchable = {}));
|
|
21
19
|
//# sourceMappingURL=Fetchable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fetchable.js","sourceRoot":"../","sources":["Treasury/Account/Fetchable.ts"],"names":[],"mappings":"AA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KAAT,SAAS,QAUzB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { cryptly } from "cryptly";
|
|
2
1
|
import { isoly } from "isoly";
|
|
3
2
|
import { isly } from "isly";
|
|
4
3
|
import { Realm } from "../../Realm";
|
|
@@ -6,17 +5,14 @@ import { Supplier } from "../../Supplier";
|
|
|
6
5
|
import { Category } from "./Category";
|
|
7
6
|
import { Conditions } from "./Conditions";
|
|
8
7
|
export interface Storable {
|
|
9
|
-
|
|
8
|
+
code: string;
|
|
10
9
|
created: isoly.DateTime;
|
|
11
10
|
realm: Realm;
|
|
12
11
|
supplier: Supplier;
|
|
13
|
-
link: string;
|
|
14
12
|
type: Category;
|
|
15
13
|
reference: string;
|
|
16
14
|
conditions?: Conditions;
|
|
17
15
|
}
|
|
18
16
|
export declare namespace Storable {
|
|
19
17
|
const type: isly.object.ExtendableType<Storable>;
|
|
20
|
-
const is: isly.Type.IsFunction<Storable>;
|
|
21
|
-
const flaw: isly.Type.FlawFunction;
|
|
22
18
|
}
|
|
@@ -7,16 +7,13 @@ import { Conditions } from "./Conditions";
|
|
|
7
7
|
export var Storable;
|
|
8
8
|
(function (Storable) {
|
|
9
9
|
Storable.type = isly.object({
|
|
10
|
-
|
|
10
|
+
code: isly.string(),
|
|
11
11
|
created: isly.fromIs("Treasury.Account.Storable", isoly.DateTime.is),
|
|
12
|
-
realm:
|
|
13
|
-
supplier:
|
|
14
|
-
link: isly.string(),
|
|
12
|
+
realm: Realm.type,
|
|
13
|
+
supplier: Supplier.type,
|
|
15
14
|
type: Category.type,
|
|
16
15
|
reference: isly.string(),
|
|
17
16
|
conditions: Conditions.type.optional(),
|
|
18
17
|
});
|
|
19
|
-
Storable.is = Storable.type.is;
|
|
20
|
-
Storable.flaw = Storable.type.flaw;
|
|
21
18
|
})(Storable || (Storable = {}));
|
|
22
19
|
//# sourceMappingURL=Storable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Storable.js","sourceRoot":"../","sources":["Treasury/Account/Storable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Storable.js","sourceRoot":"../","sources":["Treasury/Account/Storable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAWzC,MAAM,KAAW,QAAQ,CAUxB;AAVD,WAAiB,QAAQ;IACX,aAAI,GAAG,IAAI,CAAC,MAAM,CAAW;QACzC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,2BAA2B,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACpE,KAAK,EAAE,KAAK,CAAC,IAAI;QACjB,QAAQ,EAAE,QAAQ,CAAC,IAAI;QACvB,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;KACtC,CAAC,CAAA;AACH,CAAC,EAVgB,QAAQ,KAAR,QAAQ,QAUxB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { cryptly } from "cryptly";
|
|
2
1
|
import { isoly } from "isoly";
|
|
3
2
|
import { isly } from "isly";
|
|
4
3
|
import { Rail } from "../../Rail";
|
|
@@ -8,13 +7,12 @@ import { Balance } from "../Balance";
|
|
|
8
7
|
import { Transaction } from "../Transaction";
|
|
9
8
|
import { Category as AccountCategory } from "./Category";
|
|
10
9
|
import { Conditions as AccountConditions } from "./Conditions";
|
|
11
|
-
import { Creatable as AccountCreatable } from "./Creatable";
|
|
12
10
|
import { Fetchable as AccountFetchable } from "./Fetchable";
|
|
13
11
|
import { Storable as AccountStorable } from "./Storable";
|
|
14
12
|
export interface Account {
|
|
15
|
-
|
|
13
|
+
code: string;
|
|
16
14
|
created: isoly.DateTime;
|
|
17
|
-
|
|
15
|
+
label: string;
|
|
18
16
|
realm: Realm;
|
|
19
17
|
supplier: Supplier | "external";
|
|
20
18
|
reference: string;
|
|
@@ -31,7 +29,6 @@ export declare namespace Account {
|
|
|
31
29
|
type Listable = Account & {
|
|
32
30
|
transactions: Transaction[];
|
|
33
31
|
};
|
|
34
|
-
export import Creatable = AccountCreatable;
|
|
35
32
|
export import Storable = AccountStorable;
|
|
36
33
|
export import Fetchable = AccountFetchable;
|
|
37
34
|
export import Category = AccountCategory;
|
|
@@ -6,15 +6,14 @@ import { Supplier } from "../../Supplier";
|
|
|
6
6
|
import { Balance } from "../Balance";
|
|
7
7
|
import { Category as AccountCategory } from "./Category";
|
|
8
8
|
import { Conditions as AccountConditions } from "./Conditions";
|
|
9
|
-
import { Creatable as AccountCreatable } from "./Creatable";
|
|
10
9
|
import { Fetchable as AccountFetchable } from "./Fetchable";
|
|
11
10
|
import { Storable as AccountStorable } from "./Storable";
|
|
12
11
|
export var Account;
|
|
13
12
|
(function (Account) {
|
|
14
13
|
Account.type = isly.object({
|
|
15
|
-
|
|
14
|
+
code: isly.string(),
|
|
16
15
|
created: isly.fromIs("Treasury.Account.Created", isoly.DateTime.is),
|
|
17
|
-
|
|
16
|
+
label: isly.string(),
|
|
18
17
|
realm: Realm.type,
|
|
19
18
|
supplier: Supplier.type,
|
|
20
19
|
reference: isly.string(),
|
|
@@ -22,9 +21,8 @@ export var Account;
|
|
|
22
21
|
type: AccountCategory.type,
|
|
23
22
|
conditions: AccountConditions.type,
|
|
24
23
|
rail: Rail.Address.type.array(),
|
|
25
|
-
balance:
|
|
24
|
+
balance: Balance.type,
|
|
26
25
|
});
|
|
27
|
-
Account.Creatable = AccountCreatable;
|
|
28
26
|
Account.Storable = AccountStorable;
|
|
29
27
|
Account.Fetchable = AccountFetchable;
|
|
30
28
|
Account.Category = AccountCategory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Treasury/Account/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Treasury/Account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AAexD,MAAM,KAAW,OAAO,CAmBvB;AAnBD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,0BAA0B,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;QACpB,KAAK,EAAE,KAAK,CAAC,IAAI;QACjB,QAAQ,EAAE,QAAQ,CAAC,IAAI;QACvB,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,6BAA6B,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE;QACjF,IAAI,EAAE,eAAe,CAAC,IAAI;QAC1B,UAAU,EAAE,iBAAiB,CAAC,IAAI;QAClC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE;QAC/B,OAAO,EAAE,OAAO,CAAC,IAAI;KACrB,CAAC,CAAA;IAEY,gBAAQ,GAAG,eAAe,CAAA;IAC1B,iBAAS,GAAG,gBAAgB,CAAA;IAC5B,gBAAQ,GAAG,eAAe,CAAA;IAC1B,kBAAU,GAAG,iBAAiB,CAAA;AAC7C,CAAC,EAnBgB,OAAO,KAAP,OAAO,QAmBvB"}
|
|
@@ -4,7 +4,7 @@ import { Balance } from "../../Balance";
|
|
|
4
4
|
import { Warning } from "../../Warning";
|
|
5
5
|
import { Account } from "../Account";
|
|
6
6
|
export interface Fragment {
|
|
7
|
-
warnings: Warning[];
|
|
7
|
+
warnings: Warning.Snapshot[];
|
|
8
8
|
emoney: Balance.Extended;
|
|
9
9
|
counterbalance: Fragment.Counterbalance;
|
|
10
10
|
fiat: {
|
|
@@ -31,7 +31,7 @@ export var Fragment;
|
|
|
31
31
|
}
|
|
32
32
|
Fragment.validate = validate;
|
|
33
33
|
Fragment.type = isly.object({
|
|
34
|
-
warnings: Warning.type.array(),
|
|
34
|
+
warnings: Warning.Snapshot.type.array(),
|
|
35
35
|
emoney: Balance.Extended,
|
|
36
36
|
counterbalance: Counterbalance.type,
|
|
37
37
|
fiat: isly.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fragment.js","sourceRoot":"../","sources":["Treasury/Snapshot/Fragment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,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AClC,MAAM,GAAG,QAAQ,CAAA;QAClB,CAAC;aAAM,CAAC;YACP,MAAM,cAAc,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;YAC1F,MAAM,MAAM,GAAa,EAAE,GAAG,QAAQ,EAAE,cAAc,EAAE,CAAA;YACxD,QAAQ,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,MAAM,CAAA;YAC1C,QAAQ,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,MAAM,CAAA;YAC1C,OAAO,MAAM,CAAA;QACd,CAAC;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IAZe,mBAAU,aAYzB,CAAA;AACF,CAAC,EAlGgB,QAAQ,KAAR,QAAQ,QAkGxB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
-
import { Warning as SnapshotWarning } from "../../Warning";
|
|
4
3
|
import { Emoney as SnapshotEmoney } from "./Emoney";
|
|
5
4
|
import { Fiat as SnapshotFiat } from "./Fiat";
|
|
6
5
|
import { Fragment as SnapshotFragment } from "./Fragment";
|
|
@@ -8,7 +7,6 @@ import { funding as snapshotFunding } from "./funding";
|
|
|
8
7
|
export type Snapshot = Partial<Record<isoly.Currency, Snapshot.Fragment>>;
|
|
9
8
|
export declare namespace Snapshot {
|
|
10
9
|
export import Fragment = SnapshotFragment;
|
|
11
|
-
export import Warning = SnapshotWarning;
|
|
12
10
|
export import funding = snapshotFunding;
|
|
13
11
|
type Emoney = SnapshotEmoney;
|
|
14
12
|
type Fiat = SnapshotFiat;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
-
import { Warning as SnapshotWarning } from "../../Warning";
|
|
4
3
|
import { Fragment as SnapshotFragment } from "./Fragment";
|
|
5
4
|
import { funding as snapshotFunding } from "./funding";
|
|
6
5
|
export var Snapshot;
|
|
7
6
|
(function (Snapshot) {
|
|
8
7
|
Snapshot.Fragment = SnapshotFragment;
|
|
9
|
-
Snapshot.Warning = SnapshotWarning;
|
|
10
8
|
Snapshot.funding = snapshotFunding;
|
|
11
9
|
Snapshot.type = isly.record(isly.fromIs("Currency", isoly.Currency.is), Snapshot.Fragment.type);
|
|
12
10
|
})(Snapshot || (Snapshot = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Treasury/Snapshot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Treasury/Snapshot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AAItD,MAAM,KAAW,QAAQ,CAMxB;AAND,WAAiB,QAAQ;IACV,iBAAQ,GAAG,gBAAgB,CAAA;IAC3B,gBAAO,GAAG,eAAe,CAAA;IAG1B,aAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAA,QAAQ,CAAC,IAAI,CAAC,CAAA;AAC3F,CAAC,EANgB,QAAQ,KAAR,QAAQ,QAMxB"}
|
|
@@ -9,6 +9,6 @@ export interface MissingBuffer extends Base {
|
|
|
9
9
|
balance: number;
|
|
10
10
|
}
|
|
11
11
|
export declare namespace MissingBuffer {
|
|
12
|
-
const type: isly.object.ExtendableType<
|
|
12
|
+
const type: isly.object.ExtendableType<MissingBuffer>;
|
|
13
13
|
function create(account: Treasury.Account): MissingBuffer[];
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MissingBuffer.js","sourceRoot":"../","sources":["Warning/Snapshot/MissingBuffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAQ9B,MAAM,KAAW,aAAa,CAuB7B;AAvBD,WAAiB,aAAa;IAChB,kBAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAgB;QACnD,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;QACnC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;QACvB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;IACF,SAAgB,MAAM,CAAC,OAAyB;QAC/C,MAAM,MAAM,GAAoB,EAAE,CAAA;QAClC,KAAK,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YAClE,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC,QAA0B,CAAC,CAAA;YACzE,IAAI,OAAO,OAAO,IAAI,WAAW,IAAI,OAAO,GAAG,MAAM;gBACpD,MAAM,CAAC,IAAI,CAAC;oBACX,IAAI,EAAE,gBAAgB;oBACtB,QAAQ,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"MissingBuffer.js","sourceRoot":"../","sources":["Warning/Snapshot/MissingBuffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE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
3
|
import { Base } from "../Base";
|
|
4
4
|
export interface Overdraft extends Base {
|
|
5
5
|
type: "overdraft";
|
|
6
|
-
|
|
6
|
+
organization: string;
|
|
7
|
+
currency: isoly.Currency;
|
|
7
8
|
}
|
|
8
9
|
export declare namespace Overdraft {
|
|
9
10
|
const type: isly.object.ExtendableType<Overdraft>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
1
2
|
import { isly } from "isly";
|
|
2
|
-
import { Balance } from "../../Balance";
|
|
3
3
|
import { Base } from "../Base";
|
|
4
4
|
export var Overdraft;
|
|
5
5
|
(function (Overdraft) {
|
|
6
6
|
Overdraft.type = Base.type.extend({
|
|
7
7
|
type: isly.string("overdraft"),
|
|
8
|
-
|
|
8
|
+
organization: isly.string(),
|
|
9
|
+
currency: isly.fromIs("Currency", isoly.Currency.is),
|
|
9
10
|
});
|
|
10
11
|
})(Overdraft || (Overdraft = {}));
|
|
11
12
|
//# sourceMappingURL=Overdraft.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overdraft.js","sourceRoot":"../","sources":["Warning/Snapshot/Overdraft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Overdraft.js","sourceRoot":"../","sources":["Warning/Snapshot/Overdraft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAQ9B,MAAM,KAAW,SAAS,CAMzB;AAND,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAY;QAC/C,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;QAC9B,YAAY,EAAE,IAAI,CAAC,MAAM,EAAE;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;KACpD,CAAC,CAAA;AACH,CAAC,EANgB,SAAS,KAAT,SAAS,QAMzB"}
|
|
@@ -11,6 +11,6 @@ export interface StaleFiat extends Base {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
export declare namespace StaleFiat {
|
|
14
|
-
const type: isly.object.ExtendableType<
|
|
14
|
+
const type: isly.object.ExtendableType<StaleFiat>;
|
|
15
15
|
function create(account: Treasury.Account, transactions: Treasury.Transaction[]): StaleFiat[];
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { isoly } from "isoly"
|
|
2
|
-
import { isly } from "isly"
|
|
3
|
-
import { Realm } from "../../Realm"
|
|
4
|
-
import { Supplier } from "../../Supplier"
|
|
5
|
-
import { Category } from "./Category"
|
|
6
|
-
import { Conditions } from "./Conditions"
|
|
7
|
-
|
|
8
|
-
export interface Creatable {
|
|
9
|
-
name: string
|
|
10
|
-
realm: Realm
|
|
11
|
-
supplier: Supplier
|
|
12
|
-
currencies: isoly.Currency[]
|
|
13
|
-
type: Category
|
|
14
|
-
conditions?: Conditions
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export namespace Creatable {
|
|
18
|
-
export const type = isly.object<Creatable>({
|
|
19
|
-
name: isly.string(),
|
|
20
|
-
realm: isly.fromIs("realm", Realm.is),
|
|
21
|
-
supplier: isly.fromIs("supplier", Supplier.is),
|
|
22
|
-
currencies: isly.fromIs("Account.Creatable.currencies", isoly.Currency.is).array(),
|
|
23
|
-
type: Category.type,
|
|
24
|
-
conditions: Conditions.type.optional(),
|
|
25
|
-
})
|
|
26
|
-
export const is = type.is
|
|
27
|
-
export const flaw = type.flaw
|
|
28
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { isoly } from "isoly";
|
|
2
|
-
import { isly } from "isly";
|
|
3
|
-
import { Realm } from "../../Realm";
|
|
4
|
-
import { Supplier } from "../../Supplier";
|
|
5
|
-
import { Category } from "./Category";
|
|
6
|
-
import { Conditions } from "./Conditions";
|
|
7
|
-
export interface Creatable {
|
|
8
|
-
name: string;
|
|
9
|
-
realm: Realm;
|
|
10
|
-
supplier: Supplier;
|
|
11
|
-
currencies: isoly.Currency[];
|
|
12
|
-
type: Category;
|
|
13
|
-
conditions?: Conditions;
|
|
14
|
-
}
|
|
15
|
-
export declare namespace Creatable {
|
|
16
|
-
const type: isly.object.ExtendableType<Creatable>;
|
|
17
|
-
const is: isly.Type.IsFunction<Creatable>;
|
|
18
|
-
const flaw: isly.Type.FlawFunction;
|
|
19
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { isoly } from "isoly";
|
|
2
|
-
import { isly } from "isly";
|
|
3
|
-
import { Realm } from "../../Realm";
|
|
4
|
-
import { Supplier } from "../../Supplier";
|
|
5
|
-
import { Category } from "./Category";
|
|
6
|
-
import { Conditions } from "./Conditions";
|
|
7
|
-
export var Creatable;
|
|
8
|
-
(function (Creatable) {
|
|
9
|
-
Creatable.type = isly.object({
|
|
10
|
-
name: isly.string(),
|
|
11
|
-
realm: isly.fromIs("realm", Realm.is),
|
|
12
|
-
supplier: isly.fromIs("supplier", Supplier.is),
|
|
13
|
-
currencies: isly.fromIs("Account.Creatable.currencies", isoly.Currency.is).array(),
|
|
14
|
-
type: Category.type,
|
|
15
|
-
conditions: Conditions.type.optional(),
|
|
16
|
-
});
|
|
17
|
-
Creatable.is = Creatable.type.is;
|
|
18
|
-
Creatable.flaw = Creatable.type.flaw;
|
|
19
|
-
})(Creatable || (Creatable = {}));
|
|
20
|
-
//# sourceMappingURL=Creatable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Treasury/Account/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAWzC,MAAM,KAAW,SAAS,CAWzB;AAXD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC;QACrC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC9C,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,8BAA8B,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE;QAClF,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;KACtC,CAAC,CAAA;IACW,YAAE,GAAG,UAAA,IAAI,CAAC,EAAE,CAAA;IACZ,cAAI,GAAG,UAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAXgB,SAAS,KAAT,SAAS,QAWzB"}
|