@pax2pay/model-banking 0.1.52 → 0.1.53
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/Creatable.ts +11 -13
- package/Treasury/Account/Fetchable.ts +13 -15
- package/Treasury/Account/Storable.ts +10 -11
- package/Treasury/Account/index.ts +16 -18
- package/dist/Treasury/Account/Creatable.d.ts +5 -2
- package/dist/Treasury/Account/Creatable.js +10 -11
- package/dist/Treasury/Account/Creatable.js.map +1 -1
- package/dist/Treasury/Account/Fetchable.d.ts +5 -2
- package/dist/Treasury/Account/Fetchable.js +13 -13
- package/dist/Treasury/Account/Fetchable.js.map +1 -1
- package/dist/Treasury/Account/Storable.d.ts +4 -1
- package/dist/Treasury/Account/Storable.js +10 -11
- package/dist/Treasury/Account/Storable.js.map +1 -1
- package/dist/Treasury/Account/index.d.ts +5 -2
- package/dist/Treasury/Account/index.js +16 -16
- package/dist/Treasury/Account/index.js.map +1 -1
- package/dist/Treasury/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly"
|
|
2
|
+
import { isly } from "isly"
|
|
2
3
|
import { Realm } from "../../Realm"
|
|
3
4
|
import { Supplier } from "../../Supplier"
|
|
4
5
|
|
|
@@ -7,20 +8,17 @@ export interface Creatable {
|
|
|
7
8
|
realm: Realm
|
|
8
9
|
supplier: Supplier
|
|
9
10
|
currencies: isoly.Currency[]
|
|
10
|
-
type: "safeguarded" | "other"
|
|
11
|
+
type: "safeguarded" | "other" | "external"
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export namespace Creatable {
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
(value.type == "safeguarded" || value.type == "other")
|
|
24
|
-
)
|
|
25
|
-
}
|
|
15
|
+
export const type = isly.object<Creatable>({
|
|
16
|
+
name: isly.string(),
|
|
17
|
+
realm: isly.fromIs("realm", Realm.is),
|
|
18
|
+
supplier: isly.fromIs("supplier", Supplier.is),
|
|
19
|
+
currencies: isly.fromIs("Account.Creatable.currencies", isoly.Currency.is).array(),
|
|
20
|
+
type: isly.string(["safeguarded", "other", "external"]),
|
|
21
|
+
})
|
|
22
|
+
export const is = type.is
|
|
23
|
+
export const flaw = type.flaw
|
|
26
24
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly"
|
|
2
|
+
import { isly } from "isly"
|
|
2
3
|
import { Rail } from "../../Rail"
|
|
3
4
|
import { Supplier } from "../../Supplier"
|
|
4
5
|
import { Balance } from "../Balance"
|
|
@@ -8,24 +9,21 @@ export interface Fetchable {
|
|
|
8
9
|
supplier: Supplier
|
|
9
10
|
reference: string
|
|
10
11
|
currencies: isoly.Currency[]
|
|
11
|
-
type: "safeguarded" | "other"
|
|
12
|
+
type: "safeguarded" | "other" | "external"
|
|
12
13
|
rail: Rail[]
|
|
13
14
|
balance: Balance
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export namespace Fetchable {
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
value.rail.every(Rail.is)
|
|
29
|
-
)
|
|
30
|
-
}
|
|
18
|
+
export const type = isly.object<Fetchable>({
|
|
19
|
+
name: isly.string(),
|
|
20
|
+
supplier: isly.fromIs("supplier", Supplier.is),
|
|
21
|
+
reference: isly.string(),
|
|
22
|
+
currencies: isly.fromIs("Account.Fetchable.currencies", isoly.Currency.is).array(),
|
|
23
|
+
type: isly.string(["safeguarded", "other", "external"]),
|
|
24
|
+
rail: isly.fromIs("Account.Fetchable.rail", Rail.is).array(),
|
|
25
|
+
balance: isly.fromIs("Account.Fetchable.rail", Balance.is),
|
|
26
|
+
})
|
|
27
|
+
export const is = type.is
|
|
28
|
+
export const flaw = type.flaw
|
|
31
29
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as cryptly from "cryptly"
|
|
2
2
|
import { isoly } from "isoly"
|
|
3
|
+
import { isly } from "isly"
|
|
3
4
|
import { Realm } from "../../Realm"
|
|
4
5
|
import { Supplier } from "../../Supplier"
|
|
5
6
|
|
|
@@ -12,15 +13,13 @@ export interface Storable {
|
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export namespace Storable {
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
)
|
|
25
|
-
}
|
|
16
|
+
export const type = isly.object<Storable>({
|
|
17
|
+
id: isly.string(),
|
|
18
|
+
created: isly.fromIs("Treasury.Account.Storable", isoly.DateTime.is),
|
|
19
|
+
realm: isly.fromIs("realm", Realm.is),
|
|
20
|
+
supplier: isly.fromIs("supplier", Supplier.is),
|
|
21
|
+
reference: isly.string(),
|
|
22
|
+
})
|
|
23
|
+
export const is = type.is
|
|
24
|
+
export const flaw = type.flaw
|
|
26
25
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as cryptly from "cryptly"
|
|
2
2
|
import { isoly } from "isoly"
|
|
3
|
+
import { isly } from "isly"
|
|
3
4
|
import { Rail } from "../../Rail"
|
|
4
5
|
import { Realm } from "../../Realm"
|
|
5
6
|
import { Supplier } from "../../Supplier"
|
|
@@ -16,29 +17,26 @@ export interface Account {
|
|
|
16
17
|
supplier: Supplier
|
|
17
18
|
reference: string
|
|
18
19
|
currencies: isoly.Currency[]
|
|
19
|
-
type: "safeguarded" | "other"
|
|
20
|
+
type: "safeguarded" | "other" | "external"
|
|
20
21
|
rail: Rail[]
|
|
21
22
|
balance: Balance
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
export namespace Account {
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
value.rail.every(Rail.is)
|
|
40
|
-
)
|
|
41
|
-
}
|
|
26
|
+
export const type = isly.object<Account>({
|
|
27
|
+
id: isly.string(),
|
|
28
|
+
created: isly.fromIs("Treasury.Account.Created", isoly.DateTime.is),
|
|
29
|
+
name: isly.string(),
|
|
30
|
+
realm: isly.fromIs("realm", Realm.is),
|
|
31
|
+
supplier: isly.fromIs("supplier", Supplier.is),
|
|
32
|
+
reference: isly.string(),
|
|
33
|
+
currencies: isly.fromIs("Treasury.Account.currencies", isoly.Currency.is).array(),
|
|
34
|
+
type: isly.string(["safeguarded", "other", "external"]),
|
|
35
|
+
rail: isly.fromIs("Treasury.Account.rail", Rail.is).array(),
|
|
36
|
+
balance: isly.fromIs("Treasury.Account.rail", Balance.is),
|
|
37
|
+
})
|
|
38
|
+
export const is = type.is
|
|
39
|
+
export const flaw = type.flaw
|
|
42
40
|
export function isIdentifier(value: cryptly.Identifier | any): value is cryptly.Identifier {
|
|
43
41
|
return cryptly.Identifier.is(value, 8)
|
|
44
42
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
2
3
|
import { Realm } from "../../Realm";
|
|
3
4
|
import { Supplier } from "../../Supplier";
|
|
4
5
|
export interface Creatable {
|
|
@@ -6,8 +7,10 @@ export interface Creatable {
|
|
|
6
7
|
realm: Realm;
|
|
7
8
|
supplier: Supplier;
|
|
8
9
|
currencies: isoly.Currency[];
|
|
9
|
-
type: "safeguarded" | "other";
|
|
10
|
+
type: "safeguarded" | "other" | "external";
|
|
10
11
|
}
|
|
11
12
|
export declare namespace Creatable {
|
|
12
|
-
|
|
13
|
+
const type: isly.object.ExtendableType<Creatable>;
|
|
14
|
+
const is: isly.Type.IsFunction<Creatable>;
|
|
15
|
+
const flaw: isly.Type.FlawFunction;
|
|
13
16
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
2
3
|
import { Realm } from "../../Realm";
|
|
3
4
|
import { Supplier } from "../../Supplier";
|
|
4
5
|
export var Creatable;
|
|
5
6
|
(function (Creatable) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
Creatable.is = is;
|
|
7
|
+
Creatable.type = isly.object({
|
|
8
|
+
name: isly.string(),
|
|
9
|
+
realm: isly.fromIs("realm", Realm.is),
|
|
10
|
+
supplier: isly.fromIs("supplier", Supplier.is),
|
|
11
|
+
currencies: isly.fromIs("Account.Creatable.currencies", isoly.Currency.is).array(),
|
|
12
|
+
type: isly.string(["safeguarded", "other", "external"]),
|
|
13
|
+
});
|
|
14
|
+
Creatable.is = Creatable.type.is;
|
|
15
|
+
Creatable.flaw = Creatable.type.flaw;
|
|
17
16
|
})(Creatable || (Creatable = {}));
|
|
18
17
|
//# sourceMappingURL=Creatable.js.map
|
|
@@ -1 +1 @@
|
|
|
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,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAUzC,MAAM,KAAW,SAAS,
|
|
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;AAUzC,MAAM,KAAW,SAAS,CAUzB;AAVD,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,IAAI,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;KACvD,CAAC,CAAA;IACW,YAAE,GAAG,UAAA,IAAI,CAAC,EAAE,CAAA;IACZ,cAAI,GAAG,UAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAVgB,SAAS,KAAT,SAAS,QAUzB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
2
3
|
import { Rail } from "../../Rail";
|
|
3
4
|
import { Supplier } from "../../Supplier";
|
|
4
5
|
import { Balance } from "../Balance";
|
|
@@ -7,10 +8,12 @@ export interface Fetchable {
|
|
|
7
8
|
supplier: Supplier;
|
|
8
9
|
reference: string;
|
|
9
10
|
currencies: isoly.Currency[];
|
|
10
|
-
type: "safeguarded" | "other";
|
|
11
|
+
type: "safeguarded" | "other" | "external";
|
|
11
12
|
rail: Rail[];
|
|
12
13
|
balance: Balance;
|
|
13
14
|
}
|
|
14
15
|
export declare namespace Fetchable {
|
|
15
|
-
|
|
16
|
+
const type: isly.object.ExtendableType<Fetchable>;
|
|
17
|
+
const is: isly.Type.IsFunction<Fetchable>;
|
|
18
|
+
const flaw: isly.Type.FlawFunction;
|
|
16
19
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
2
3
|
import { Rail } from "../../Rail";
|
|
3
4
|
import { Supplier } from "../../Supplier";
|
|
5
|
+
import { Balance } from "../Balance";
|
|
4
6
|
export var Fetchable;
|
|
5
7
|
(function (Fetchable) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
Fetchable.is = is;
|
|
8
|
+
Fetchable.type = isly.object({
|
|
9
|
+
name: isly.string(),
|
|
10
|
+
supplier: isly.fromIs("supplier", Supplier.is),
|
|
11
|
+
reference: isly.string(),
|
|
12
|
+
currencies: isly.fromIs("Account.Fetchable.currencies", isoly.Currency.is).array(),
|
|
13
|
+
type: isly.string(["safeguarded", "other", "external"]),
|
|
14
|
+
rail: isly.fromIs("Account.Fetchable.rail", Rail.is).array(),
|
|
15
|
+
balance: isly.fromIs("Account.Fetchable.rail", Balance.is),
|
|
16
|
+
});
|
|
17
|
+
Fetchable.is = Fetchable.type.is;
|
|
18
|
+
Fetchable.flaw = Fetchable.type.flaw;
|
|
19
19
|
})(Fetchable || (Fetchable = {}));
|
|
20
20
|
//# sourceMappingURL=Fetchable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fetchable.js","sourceRoot":"../","sources":["Treasury/Account/Fetchable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,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ly";
|
|
2
2
|
import { isoly } from "isoly";
|
|
3
|
+
import { isly } from "isly";
|
|
3
4
|
import { Realm } from "../../Realm";
|
|
4
5
|
import { Supplier } from "../../Supplier";
|
|
5
6
|
export interface Storable {
|
|
@@ -10,5 +11,7 @@ export interface Storable {
|
|
|
10
11
|
reference: string;
|
|
11
12
|
}
|
|
12
13
|
export declare namespace Storable {
|
|
13
|
-
|
|
14
|
+
const type: isly.object.ExtendableType<Storable>;
|
|
15
|
+
const is: isly.Type.IsFunction<Storable>;
|
|
16
|
+
const flaw: isly.Type.FlawFunction;
|
|
14
17
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import * as cryptly from "cryptly";
|
|
2
1
|
import { isoly } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
3
3
|
import { Realm } from "../../Realm";
|
|
4
4
|
import { Supplier } from "../../Supplier";
|
|
5
5
|
export var Storable;
|
|
6
6
|
(function (Storable) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Storable.is = is;
|
|
7
|
+
Storable.type = isly.object({
|
|
8
|
+
id: isly.string(),
|
|
9
|
+
created: isly.fromIs("Treasury.Account.Storable", isoly.DateTime.is),
|
|
10
|
+
realm: isly.fromIs("realm", Realm.is),
|
|
11
|
+
supplier: isly.fromIs("supplier", Supplier.is),
|
|
12
|
+
reference: isly.string(),
|
|
13
|
+
});
|
|
14
|
+
Storable.is = Storable.type.is;
|
|
15
|
+
Storable.flaw = Storable.type.flaw;
|
|
17
16
|
})(Storable || (Storable = {}));
|
|
18
17
|
//# 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":"AACA,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;AAUzC,MAAM,KAAW,QAAQ,CAUxB;AAVD,WAAiB,QAAQ;IACX,aAAI,GAAG,IAAI,CAAC,MAAM,CAAW;QACzC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,2BAA2B,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACpE,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,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;KACxB,CAAC,CAAA;IACW,WAAE,GAAG,SAAA,IAAI,CAAC,EAAE,CAAA;IACZ,aAAI,GAAG,SAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAVgB,QAAQ,KAAR,QAAQ,QAUxB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as cryptly from "cryptly";
|
|
2
2
|
import { isoly } from "isoly";
|
|
3
|
+
import { isly } from "isly";
|
|
3
4
|
import { Rail } from "../../Rail";
|
|
4
5
|
import { Realm } from "../../Realm";
|
|
5
6
|
import { Supplier } from "../../Supplier";
|
|
@@ -15,12 +16,14 @@ export interface Account {
|
|
|
15
16
|
supplier: Supplier;
|
|
16
17
|
reference: string;
|
|
17
18
|
currencies: isoly.Currency[];
|
|
18
|
-
type: "safeguarded" | "other";
|
|
19
|
+
type: "safeguarded" | "other" | "external";
|
|
19
20
|
rail: Rail[];
|
|
20
21
|
balance: Balance;
|
|
21
22
|
}
|
|
22
23
|
export declare namespace Account {
|
|
23
|
-
|
|
24
|
+
const type: isly.object.ExtendableType<Account>;
|
|
25
|
+
const is: isly.Type.IsFunction<Account>;
|
|
26
|
+
const flaw: isly.Type.FlawFunction;
|
|
24
27
|
function isIdentifier(value: cryptly.Identifier | any): value is cryptly.Identifier;
|
|
25
28
|
type Creatable = AccountCreatable;
|
|
26
29
|
const Creatable: typeof AccountCreatable;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import * as cryptly from "cryptly";
|
|
2
2
|
import { isoly } from "isoly";
|
|
3
|
+
import { isly } from "isly";
|
|
3
4
|
import { Rail } from "../../Rail";
|
|
4
5
|
import { Realm } from "../../Realm";
|
|
5
6
|
import { Supplier } from "../../Supplier";
|
|
7
|
+
import { Balance } from "../Balance";
|
|
6
8
|
import { Creatable as AccountCreatable } from "./Creatable";
|
|
7
9
|
import { Fetchable as AccountFetchable } from "./Fetchable";
|
|
8
10
|
import { Storable as AccountStorable } from "./Storable";
|
|
9
11
|
export var Account;
|
|
10
12
|
(function (Account) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
Account.is = is;
|
|
13
|
+
Account.type = isly.object({
|
|
14
|
+
id: isly.string(),
|
|
15
|
+
created: isly.fromIs("Treasury.Account.Created", isoly.DateTime.is),
|
|
16
|
+
name: isly.string(),
|
|
17
|
+
realm: isly.fromIs("realm", Realm.is),
|
|
18
|
+
supplier: isly.fromIs("supplier", Supplier.is),
|
|
19
|
+
reference: isly.string(),
|
|
20
|
+
currencies: isly.fromIs("Treasury.Account.currencies", isoly.Currency.is).array(),
|
|
21
|
+
type: isly.string(["safeguarded", "other", "external"]),
|
|
22
|
+
rail: isly.fromIs("Treasury.Account.rail", Rail.is).array(),
|
|
23
|
+
balance: isly.fromIs("Treasury.Account.rail", Balance.is),
|
|
24
|
+
});
|
|
25
|
+
Account.is = Account.type.is;
|
|
26
|
+
Account.flaw = Account.type.flaw;
|
|
27
27
|
function isIdentifier(value) {
|
|
28
28
|
return cryptly.Identifier.is(value, 8);
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Treasury/Account/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Treasury/Account/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,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;AACpC,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AAexD,MAAM,KAAW,OAAO,CAyBvB;AAzBD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,M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 +14,6 @@ export declare namespace Treasury {
|
|
|
14
14
|
const Storable: typeof import("./Account/Storable").Storable;
|
|
15
15
|
type Fetchable = TreasuryAccount.Fetchable;
|
|
16
16
|
const Fetchable: typeof import("./Account/Fetchable").Fetchable;
|
|
17
|
-
const is:
|
|
17
|
+
const is: import("isly/dist/Type").Type.IsFunction<TreasuryAccount>;
|
|
18
18
|
}
|
|
19
19
|
}
|