@pax2pay/model-banking 0.1.276 → 0.1.277
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/Account/index.ts +3 -1
- package/Rule/Rule/Base.ts +2 -0
- package/dist/Account/index.d.ts +2 -0
- package/dist/Account/index.js +2 -0
- package/dist/Account/index.js.map +1 -1
- package/dist/Rule/Rule/Base.d.ts +1 -0
- package/dist/Rule/Rule/Base.js +1 -0
- package/dist/Rule/Rule/Base.js.map +1 -1
- package/package.json +1 -1
package/Account/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { isoly } from "isoly"
|
|
|
3
3
|
import { isly } from "isly"
|
|
4
4
|
import { Balances } from "../Balances"
|
|
5
5
|
import { Rail } from "../Rail"
|
|
6
|
+
import { Rule } from "../Rule"
|
|
6
7
|
import { Creatable as AccountCreatable } from "./Creatable"
|
|
7
8
|
|
|
8
9
|
export interface Account extends Account.Creatable {
|
|
@@ -11,7 +12,7 @@ export interface Account extends Account.Creatable {
|
|
|
11
12
|
readonly balances: Balances
|
|
12
13
|
readonly rails: Rail.Address[]
|
|
13
14
|
key?: string
|
|
14
|
-
|
|
15
|
+
readonly rules?: Rule[]
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export namespace Account {
|
|
@@ -22,6 +23,7 @@ export namespace Account {
|
|
|
22
23
|
balances: isly.fromIs("Balances", Balances.is),
|
|
23
24
|
rails: isly.fromIs("Rail.Address", Rail.Address.is).array(),
|
|
24
25
|
key: isly.string().optional(),
|
|
26
|
+
rules: Rule.type.array().optional(),
|
|
25
27
|
})
|
|
26
28
|
export const is = type.is
|
|
27
29
|
export const flaw = type.flaw
|
package/Rule/Rule/Base.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
3
|
export interface Base {
|
|
4
|
+
code?: string
|
|
4
5
|
name: string
|
|
5
6
|
description: string
|
|
6
7
|
type: Base.Kind
|
|
@@ -12,6 +13,7 @@ export namespace Base {
|
|
|
12
13
|
export const kinds = ["authorization", "outbound", "inbound"] as const
|
|
13
14
|
export type Kind = typeof kinds[number]
|
|
14
15
|
export const type = isly.object<Base>({
|
|
16
|
+
code: isly.string(new RegExp(/^[a-z0-9\-_]+$/)).optional(),
|
|
15
17
|
name: isly.string(),
|
|
16
18
|
description: isly.string(),
|
|
17
19
|
type: isly.string(kinds),
|
package/dist/Account/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { isoly } from "isoly";
|
|
|
3
3
|
import { isly } from "isly";
|
|
4
4
|
import { Balances } from "../Balances";
|
|
5
5
|
import { Rail } from "../Rail";
|
|
6
|
+
import { Rule } from "../Rule";
|
|
6
7
|
import { Creatable as AccountCreatable } from "./Creatable";
|
|
7
8
|
export interface Account extends Account.Creatable {
|
|
8
9
|
readonly id: cryptly.Identifier;
|
|
@@ -10,6 +11,7 @@ export interface Account extends Account.Creatable {
|
|
|
10
11
|
readonly balances: Balances;
|
|
11
12
|
readonly rails: Rail.Address[];
|
|
12
13
|
key?: string;
|
|
14
|
+
readonly rules?: Rule[];
|
|
13
15
|
}
|
|
14
16
|
export declare namespace Account {
|
|
15
17
|
const type: isly.object.ExtendableType<Account>;
|
package/dist/Account/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { isoly } from "isoly";
|
|
|
3
3
|
import { isly } from "isly";
|
|
4
4
|
import { Balances } from "../Balances";
|
|
5
5
|
import { Rail } from "../Rail";
|
|
6
|
+
import { Rule } from "../Rule";
|
|
6
7
|
import { Creatable as AccountCreatable } from "./Creatable";
|
|
7
8
|
export var Account;
|
|
8
9
|
(function (Account) {
|
|
@@ -13,6 +14,7 @@ export var Account;
|
|
|
13
14
|
balances: isly.fromIs("Balances", Balances.is),
|
|
14
15
|
rails: isly.fromIs("Rail.Address", Rail.Address.is).array(),
|
|
15
16
|
key: isly.string().optional(),
|
|
17
|
+
rules: Rule.type.array().optional(),
|
|
16
18
|
});
|
|
17
19
|
Account.is = Account.type.is;
|
|
18
20
|
Account.flaw = Account.type.flaw;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAW3D,MAAM,KAAW,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAW3D,MAAM,KAAW,OAAO,CAkBvB;AAlBD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzD,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC9C,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE;QAC3D,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC,CAAA;IACW,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;IAC7B,SAAgB,YAAY,CAAC,KAA+B;QAC3D,OAAO,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IACvC,CAAC;IAFe,oBAAY,eAE3B,CAAA;IAGY,iBAAS,GAAG,gBAAgB,CAAA;AAC1C,CAAC,EAlBgB,OAAO,KAAP,OAAO,QAkBvB"}
|
package/dist/Rule/Rule/Base.d.ts
CHANGED
package/dist/Rule/Rule/Base.js
CHANGED
|
@@ -3,6 +3,7 @@ export var Base;
|
|
|
3
3
|
(function (Base) {
|
|
4
4
|
Base.kinds = ["authorization", "outbound", "inbound"];
|
|
5
5
|
Base.type = isly.object({
|
|
6
|
+
code: isly.string(new RegExp(/^[a-z0-9\-_]+$/)).optional(),
|
|
6
7
|
name: isly.string(),
|
|
7
8
|
description: isly.string(),
|
|
8
9
|
type: isly.string(Base.kinds),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.js","sourceRoot":"../","sources":["Rule/Rule/Base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"Base.js","sourceRoot":"../","sources":["Rule/Rule/Base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAW3B,MAAM,KAAW,IAAI,CAYpB;AAZD,WAAiB,IAAI;IACP,UAAK,GAAG,CAAC,eAAe,EAAE,UAAU,EAAE,SAAS,CAAU,CAAA;IAEzD,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO;QACrC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC1D,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;QAC1B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAA,KAAK,CAAC;QACxB,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;QAC5B,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KACxC,CAAC,CAAA;AACH,CAAC,EAZgB,IAAI,KAAJ,IAAI,QAYpB"}
|