@pax2pay/model-banking 0.1.501 → 0.1.502
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 +7 -0
- package/dist/cjs/Account/index.d.ts +9 -0
- package/dist/cjs/Account/index.js +6 -0
- package/dist/cjs/Account/index.js.map +1 -1
- package/dist/mjs/Account/index.d.ts +9 -0
- package/dist/mjs/Account/index.js +6 -0
- package/dist/mjs/Account/index.js.map +1 -1
- package/package.json +1 -1
package/Account/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { isly } from "isly"
|
|
|
4
4
|
import { Balances } from "../Balances"
|
|
5
5
|
import { Rail } from "../Rail"
|
|
6
6
|
import { Rule } from "../Rule"
|
|
7
|
+
import { Supplier } from "../Supplier"
|
|
7
8
|
import { Creatable as AccountCreatable } from "./Creatable"
|
|
8
9
|
import { History as AccountHistory } from "./History"
|
|
9
10
|
import { Status as AccountStatus } from "./Status"
|
|
@@ -14,6 +15,7 @@ export interface Account extends Account.Creatable {
|
|
|
14
15
|
organization: string
|
|
15
16
|
balances: Balances
|
|
16
17
|
rails: Rail.Address[]
|
|
18
|
+
details?: Account.Details
|
|
17
19
|
counterparts?: Record<string, Rail.Address>
|
|
18
20
|
key?: string
|
|
19
21
|
rules?: Rule[]
|
|
@@ -23,6 +25,10 @@ export namespace Account {
|
|
|
23
25
|
export import Creatable = AccountCreatable
|
|
24
26
|
export import Status = AccountStatus
|
|
25
27
|
export import History = AccountHistory
|
|
28
|
+
export type Details = { supplier: Supplier; addresses: Rail.Address[] }
|
|
29
|
+
export namespace Details {
|
|
30
|
+
export const type = isly.object<Details>({ supplier: Supplier.type, addresses: Rail.Address.type.array() })
|
|
31
|
+
}
|
|
26
32
|
export type Legacy = Omit<Account, "status">
|
|
27
33
|
export function fromLegacy(maybeLegacy: Legacy | Account, status?: Account.Status): Account {
|
|
28
34
|
return { ...maybeLegacy, status: status ?? ("status" in maybeLegacy ? maybeLegacy.status : { mode: "active" }) }
|
|
@@ -33,6 +39,7 @@ export namespace Account {
|
|
|
33
39
|
organization: isly.string(),
|
|
34
40
|
balances: Balances.type,
|
|
35
41
|
rails: Rail.Address.type.array(),
|
|
42
|
+
details: Details.type.optional(),
|
|
36
43
|
counterparts: isly.record<Record<string, Rail.Address>>(isly.string(), Rail.Address.type).optional(),
|
|
37
44
|
key: isly.string().optional(),
|
|
38
45
|
rules: Rule.type.array().optional(),
|
|
@@ -3,6 +3,7 @@ import { isoly } from "isoly";
|
|
|
3
3
|
import { Balances } from "../Balances";
|
|
4
4
|
import { Rail } from "../Rail";
|
|
5
5
|
import { Rule } from "../Rule";
|
|
6
|
+
import { Supplier } from "../Supplier";
|
|
6
7
|
import { Creatable as AccountCreatable } from "./Creatable";
|
|
7
8
|
import { History as AccountHistory } from "./History";
|
|
8
9
|
import { Status as AccountStatus } from "./Status";
|
|
@@ -12,6 +13,7 @@ export interface Account extends Account.Creatable {
|
|
|
12
13
|
organization: string;
|
|
13
14
|
balances: Balances;
|
|
14
15
|
rails: Rail.Address[];
|
|
16
|
+
details?: Account.Details;
|
|
15
17
|
counterparts?: Record<string, Rail.Address>;
|
|
16
18
|
key?: string;
|
|
17
19
|
rules?: Rule[];
|
|
@@ -21,6 +23,13 @@ export declare namespace Account {
|
|
|
21
23
|
export import Creatable = AccountCreatable;
|
|
22
24
|
export import Status = AccountStatus;
|
|
23
25
|
export import History = AccountHistory;
|
|
26
|
+
type Details = {
|
|
27
|
+
supplier: Supplier;
|
|
28
|
+
addresses: Rail.Address[];
|
|
29
|
+
};
|
|
30
|
+
namespace Details {
|
|
31
|
+
const type: import("isly/dist/cjs/object").IslyObject<Details, object>;
|
|
32
|
+
}
|
|
24
33
|
type Legacy = Omit<Account, "status">;
|
|
25
34
|
function fromLegacy(maybeLegacy: Legacy | Account, status?: Account.Status): Account;
|
|
26
35
|
const type: import("isly/dist/cjs/object").IslyObject<Account, Creatable>;
|
|
@@ -7,6 +7,7 @@ const isly_1 = require("isly");
|
|
|
7
7
|
const Balances_1 = require("../Balances");
|
|
8
8
|
const Rail_1 = require("../Rail");
|
|
9
9
|
const Rule_1 = require("../Rule");
|
|
10
|
+
const Supplier_1 = require("../Supplier");
|
|
10
11
|
const Creatable_1 = require("./Creatable");
|
|
11
12
|
const History_1 = require("./History");
|
|
12
13
|
const Status_1 = require("./Status");
|
|
@@ -15,6 +16,10 @@ var Account;
|
|
|
15
16
|
Account.Creatable = Creatable_1.Creatable;
|
|
16
17
|
Account.Status = Status_1.Status;
|
|
17
18
|
Account.History = History_1.History;
|
|
19
|
+
let Details;
|
|
20
|
+
(function (Details) {
|
|
21
|
+
Details.type = isly_1.isly.object({ supplier: Supplier_1.Supplier.type, addresses: Rail_1.Rail.Address.type.array() });
|
|
22
|
+
})(Details = Account.Details || (Account.Details = {}));
|
|
18
23
|
function fromLegacy(maybeLegacy, status) {
|
|
19
24
|
return { ...maybeLegacy, status: status ?? ("status" in maybeLegacy ? maybeLegacy.status : { mode: "active" }) };
|
|
20
25
|
}
|
|
@@ -25,6 +30,7 @@ var Account;
|
|
|
25
30
|
organization: isly_1.isly.string(),
|
|
26
31
|
balances: Balances_1.Balances.type,
|
|
27
32
|
rails: Rail_1.Rail.Address.type.array(),
|
|
33
|
+
details: Details.type.optional(),
|
|
28
34
|
counterparts: isly_1.isly.record(isly_1.isly.string(), Rail_1.Rail.Address.type).optional(),
|
|
29
35
|
key: isly_1.isly.string().optional(),
|
|
30
36
|
rules: Rule_1.Rule.type.array().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Account/index.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AACjC,iCAA6B;AAC7B,+BAA2B;AAC3B,0CAAsC;AACtC,kCAA8B;AAC9B,kCAA8B;AAC9B,2CAA2D;AAC3D,uCAAqD;AACrD,qCAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Account/index.ts"],"names":[],"mapp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,EAAE;QAChC,YAAY,EAAE,WAAI,CAAC,MAAM,CAA+B,WAAI,CAAC,MAAM,EAAE,EAAE,WAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QACpG,GAAG,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,KAAK,EAAE,WAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACnC,MAAM,EAAE,eAAa,CAAC,IAAI;KAC1B,CAAC,CAAA;IACF,SAAgB,YAAY,CAAC,KAA+B;QAC3D,OAAO,iBAAO,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IACvC,CAAC;IAFe,oBAAY,eAE3B,CAAA;AACF,CAAC,EA3BgB,OAAO,uBAAP,OAAO,QA2BvB"}
|
|
@@ -3,6 +3,7 @@ import { isoly } from "isoly";
|
|
|
3
3
|
import { Balances } from "../Balances";
|
|
4
4
|
import { Rail } from "../Rail";
|
|
5
5
|
import { Rule } from "../Rule";
|
|
6
|
+
import { Supplier } from "../Supplier";
|
|
6
7
|
import { Creatable as AccountCreatable } from "./Creatable";
|
|
7
8
|
import { History as AccountHistory } from "./History";
|
|
8
9
|
import { Status as AccountStatus } from "./Status";
|
|
@@ -12,6 +13,7 @@ export interface Account extends Account.Creatable {
|
|
|
12
13
|
organization: string;
|
|
13
14
|
balances: Balances;
|
|
14
15
|
rails: Rail.Address[];
|
|
16
|
+
details?: Account.Details;
|
|
15
17
|
counterparts?: Record<string, Rail.Address>;
|
|
16
18
|
key?: string;
|
|
17
19
|
rules?: Rule[];
|
|
@@ -21,6 +23,13 @@ export declare namespace Account {
|
|
|
21
23
|
export import Creatable = AccountCreatable;
|
|
22
24
|
export import Status = AccountStatus;
|
|
23
25
|
export import History = AccountHistory;
|
|
26
|
+
type Details = {
|
|
27
|
+
supplier: Supplier;
|
|
28
|
+
addresses: Rail.Address[];
|
|
29
|
+
};
|
|
30
|
+
namespace Details {
|
|
31
|
+
const type: import("isly/dist/cjs/object").IslyObject<Details, object>;
|
|
32
|
+
}
|
|
24
33
|
type Legacy = Omit<Account, "status">;
|
|
25
34
|
function fromLegacy(maybeLegacy: Legacy | Account, status?: Account.Status): Account;
|
|
26
35
|
const type: import("isly/dist/cjs/object").IslyObject<Account, Creatable>;
|
|
@@ -4,6 +4,7 @@ import { isly } from "isly";
|
|
|
4
4
|
import { Balances } from "../Balances";
|
|
5
5
|
import { Rail } from "../Rail";
|
|
6
6
|
import { Rule } from "../Rule";
|
|
7
|
+
import { Supplier } from "../Supplier";
|
|
7
8
|
import { Creatable as AccountCreatable } from "./Creatable";
|
|
8
9
|
import { History as AccountHistory } from "./History";
|
|
9
10
|
import { Status as AccountStatus } from "./Status";
|
|
@@ -12,6 +13,10 @@ export var Account;
|
|
|
12
13
|
Account.Creatable = AccountCreatable;
|
|
13
14
|
Account.Status = AccountStatus;
|
|
14
15
|
Account.History = AccountHistory;
|
|
16
|
+
let Details;
|
|
17
|
+
(function (Details) {
|
|
18
|
+
Details.type = isly.object({ supplier: Supplier.type, addresses: Rail.Address.type.array() });
|
|
19
|
+
})(Details = Account.Details || (Account.Details = {}));
|
|
15
20
|
function fromLegacy(maybeLegacy, status) {
|
|
16
21
|
return { ...maybeLegacy, status: status ?? ("status" in maybeLegacy ? maybeLegacy.status : { mode: "active" }) };
|
|
17
22
|
}
|
|
@@ -22,6 +27,7 @@ export var Account;
|
|
|
22
27
|
organization: isly.string(),
|
|
23
28
|
balances: Balances.type,
|
|
24
29
|
rails: Rail.Address.type.array(),
|
|
30
|
+
details: Details.type.optional(),
|
|
25
31
|
counterparts: isly.record(isly.string(), Rail.Address.type).optional(),
|
|
26
32
|
key: isly.string().optional(),
|
|
27
33
|
rules: Rule.type.array().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,E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