@pax2pay/model-banking 0.1.592 → 0.1.594
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/Creatable.ts +0 -1
- package/Account/Type.ts +7 -0
- package/Account/index.ts +4 -4
- package/Card/Preset.ts +0 -1
- package/Organization/index.ts +6 -0
- package/Rail/Address/index.ts +0 -1
- package/Realm.ts +2 -4
- package/Supplier/index.ts +0 -4
- package/User/Access/index.ts +0 -2
- package/dist/cjs/Account/Creatable.js.map +1 -1
- package/dist/cjs/Account/Type.d.ts +6 -0
- package/dist/cjs/Account/Type.js +10 -0
- package/dist/cjs/Account/Type.js.map +1 -0
- package/dist/cjs/Account/index.d.ts +3 -2
- package/dist/cjs/Account/index.js +3 -4
- package/dist/cjs/Account/index.js.map +1 -1
- package/dist/cjs/Card/Preset.js +0 -1
- package/dist/cjs/Card/Preset.js.map +1 -1
- package/dist/cjs/Log/Message/Configuration.d.ts +0 -1
- package/dist/cjs/Log/index.d.ts +0 -1
- package/dist/cjs/Organization/index.d.ts +3 -0
- package/dist/cjs/Organization/index.js +6 -0
- package/dist/cjs/Organization/index.js.map +1 -1
- package/dist/cjs/Rail/Address/index.js +0 -1
- package/dist/cjs/Rail/Address/index.js.map +1 -1
- package/dist/cjs/Realm.d.ts +3 -5
- package/dist/cjs/Realm.js +2 -3
- package/dist/cjs/Realm.js.map +1 -1
- package/dist/cjs/Supplier/index.d.ts +0 -1
- package/dist/cjs/Supplier/index.js +0 -4
- package/dist/cjs/Supplier/index.js.map +1 -1
- package/dist/cjs/User/Access/index.d.ts +0 -17
- package/dist/cjs/User/Access/index.js +0 -2
- package/dist/cjs/User/Access/index.js.map +1 -1
- package/dist/cjs/User/JWT/Payload.d.ts +6 -12
- package/dist/cjs/User/index.d.ts +0 -18
- package/dist/mjs/Account/Creatable.js.map +1 -1
- package/dist/mjs/Account/Type.d.ts +6 -0
- package/dist/mjs/Account/Type.js +7 -0
- package/dist/mjs/Account/Type.js.map +1 -0
- package/dist/mjs/Account/index.d.ts +3 -2
- package/dist/mjs/Account/index.js +3 -4
- package/dist/mjs/Account/index.js.map +1 -1
- package/dist/mjs/Card/Preset.js +0 -1
- package/dist/mjs/Card/Preset.js.map +1 -1
- package/dist/mjs/Log/Message/Configuration.d.ts +0 -1
- package/dist/mjs/Log/index.d.ts +0 -1
- package/dist/mjs/Organization/index.d.ts +3 -0
- package/dist/mjs/Organization/index.js +6 -0
- package/dist/mjs/Organization/index.js.map +1 -1
- package/dist/mjs/Rail/Address/index.js +0 -1
- package/dist/mjs/Rail/Address/index.js.map +1 -1
- package/dist/mjs/Realm.d.ts +3 -5
- package/dist/mjs/Realm.js +2 -3
- package/dist/mjs/Realm.js.map +1 -1
- package/dist/mjs/Supplier/index.d.ts +0 -1
- package/dist/mjs/Supplier/index.js +0 -4
- package/dist/mjs/Supplier/index.js.map +1 -1
- package/dist/mjs/User/Access/index.d.ts +0 -17
- package/dist/mjs/User/Access/index.js +0 -2
- package/dist/mjs/User/Access/index.js.map +1 -1
- package/dist/mjs/User/JWT/Payload.d.ts +6 -12
- package/dist/mjs/User/index.d.ts +0 -18
- package/package.json +1 -1
package/Account/Creatable.ts
CHANGED
package/Account/Type.ts
ADDED
package/Account/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { Creatable as AccountCreatable } from "./Creatable"
|
|
|
9
9
|
import { Details as AccountDetails } from "./Details"
|
|
10
10
|
import { History as AccountHistory } from "./History"
|
|
11
11
|
import { Status as AccountStatus } from "./Status"
|
|
12
|
+
import { Type as AccountType } from "./Type"
|
|
12
13
|
|
|
13
14
|
export interface Account extends Account.Creatable {
|
|
14
15
|
id: cryptly.Identifier
|
|
@@ -22,6 +23,7 @@ export interface Account extends Account.Creatable {
|
|
|
22
23
|
charges?: AccountCharge
|
|
23
24
|
rules?: Rule[]
|
|
24
25
|
status: Account.Status
|
|
26
|
+
type: Account.Type
|
|
25
27
|
}
|
|
26
28
|
export namespace Account {
|
|
27
29
|
export import Charge = AccountCharge
|
|
@@ -29,10 +31,7 @@ export namespace Account {
|
|
|
29
31
|
export import Status = AccountStatus
|
|
30
32
|
export import History = AccountHistory
|
|
31
33
|
export import Details = AccountDetails
|
|
32
|
-
export
|
|
33
|
-
export function fromLegacy(maybeLegacy: Legacy | Account, status?: Account.Status): Account {
|
|
34
|
-
return { ...maybeLegacy, status: status ?? ("status" in maybeLegacy ? maybeLegacy.status : { mode: "active" }) }
|
|
35
|
-
}
|
|
34
|
+
export import Type = AccountType
|
|
36
35
|
export const type = Creatable.type.extend<Account>({
|
|
37
36
|
id: isly.string(),
|
|
38
37
|
created: isly.fromIs("isoly.DateTime", isoly.DateTime.is),
|
|
@@ -45,6 +44,7 @@ export namespace Account {
|
|
|
45
44
|
charges: AccountCharge.type.optional(),
|
|
46
45
|
rules: Rule.type.array().optional(),
|
|
47
46
|
status: AccountStatus.type,
|
|
47
|
+
type: Type.type,
|
|
48
48
|
})
|
|
49
49
|
export function isIdentifier(value: cryptly.Identifier | any): value is cryptly.Identifier {
|
|
50
50
|
return cryptly.Identifier.is(value, 8)
|
package/Card/Preset.ts
CHANGED
package/Organization/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
|
+
import { Type } from "../Account/Type"
|
|
2
3
|
import { Realm } from "../Realm"
|
|
3
4
|
import { Rule } from "../Rule"
|
|
4
5
|
import { type as ruleType } from "../Rule/type"
|
|
@@ -18,6 +19,7 @@ export interface Organization {
|
|
|
18
19
|
contact?: Organization.Contact
|
|
19
20
|
groups?: string[]
|
|
20
21
|
fx?: OrganizationFx
|
|
22
|
+
type: Type
|
|
21
23
|
}
|
|
22
24
|
export namespace Organization {
|
|
23
25
|
export import Creatable = OrganizationCreatable
|
|
@@ -35,5 +37,9 @@ export namespace Organization {
|
|
|
35
37
|
contact: Contact.type.optional(),
|
|
36
38
|
groups: isly.string().array().optional(),
|
|
37
39
|
fx: OrganizationFx.type.optional(),
|
|
40
|
+
type: Type.type,
|
|
38
41
|
})
|
|
42
|
+
export function from(creatable: Creatable, realm: Realm): Organization {
|
|
43
|
+
return { ...creatable, realm, rules: creatable.rules ?? [], status: "active", type: "emoney" }
|
|
44
|
+
}
|
|
39
45
|
}
|
package/Rail/Address/index.ts
CHANGED
|
@@ -20,7 +20,6 @@ export namespace Address {
|
|
|
20
20
|
export const realm: Record<Realm, string[]> = {
|
|
21
21
|
test: ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"],
|
|
22
22
|
uk: ["internal", "iban", "scan", "card"],
|
|
23
|
-
uguk: ["internal", "iban", "scan", "card"],
|
|
24
23
|
eea: ["internal", "iban", "scan", "card"],
|
|
25
24
|
}
|
|
26
25
|
export const values = ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"] as const
|
package/Realm.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { zod } from "./zod"
|
|
|
7
7
|
export type Realm = zod.infer<typeof Realm.typeZod>
|
|
8
8
|
|
|
9
9
|
export namespace Realm {
|
|
10
|
-
export const realms = ["test", "uk", "
|
|
10
|
+
export const realms = ["test", "uk", "eea"] as const
|
|
11
11
|
export const type = isly.string<Realm>(realms)
|
|
12
12
|
export const typeZod = zod.enum(realms)
|
|
13
13
|
export const type2 = isly2
|
|
@@ -17,17 +17,15 @@ export namespace Realm {
|
|
|
17
17
|
export function toString(): string {
|
|
18
18
|
return realms.toString().replaceAll(",", ", ") + "."
|
|
19
19
|
}
|
|
20
|
-
export const currency: Record<Realm, isoly.Currency> = { test: "EUR", uk: "GBP",
|
|
20
|
+
export const currency: Record<Realm, isoly.Currency> = { test: "EUR", uk: "GBP", eea: "EUR" }
|
|
21
21
|
export const suppliers: Record<Realm, modelSupplier[]> = {
|
|
22
22
|
test: ["paxgiro", "bankingcircle", "paxgiroCredit"],
|
|
23
23
|
uk: ["clearbank", "bankingcircle"],
|
|
24
|
-
uguk: ["bankingcircle"],
|
|
25
24
|
eea: [],
|
|
26
25
|
}
|
|
27
26
|
export interface Suppliers extends Record<Realm, modelSupplier[]> {
|
|
28
27
|
test: ["paxgiro", "bankingcircle", "paxgiroCredit"]
|
|
29
28
|
uk: ["clearbank", "bankingcircle"]
|
|
30
|
-
uguk: ["bankingcircle"]
|
|
31
29
|
eea: []
|
|
32
30
|
}
|
|
33
31
|
export type Supplier<P extends keyof Suppliers> = Pick<Suppliers, P>[P][number]
|
package/Supplier/index.ts
CHANGED
|
@@ -12,9 +12,6 @@ export namespace Supplier {
|
|
|
12
12
|
clearbank: ["GBP"],
|
|
13
13
|
bankingcircle: ["EUR", "GBP", "USD", "DKK", "CHF", "PLN", "SEK", "HUF"],
|
|
14
14
|
},
|
|
15
|
-
uguk: {
|
|
16
|
-
bankingcircle: ["EUR", "GBP", "USD", "DKK", "CHF", "PLN", "SEK", "NOK"],
|
|
17
|
-
},
|
|
18
15
|
test: {
|
|
19
16
|
paxgiro: ["GBP", "SEK", "USD", "EUR"],
|
|
20
17
|
bankingcircle: ["EUR", "GBP", "USD", "DKK", "CHF", "PLN", "SEK", "HUF"],
|
|
@@ -24,7 +21,6 @@ export namespace Supplier {
|
|
|
24
21
|
eea: [],
|
|
25
22
|
test: ["paxgiro", "bankingcircle"],
|
|
26
23
|
uk: ["clearbank", "bankingcircle"],
|
|
27
|
-
uguk: ["bankingcircle"],
|
|
28
24
|
// eslint-disable-next-line prettierx/options
|
|
29
25
|
} as const satisfies Record<Realm, Supplier[]>
|
|
30
26
|
}
|
package/User/Access/index.ts
CHANGED
|
@@ -8,14 +8,12 @@ export namespace Access {
|
|
|
8
8
|
export import Permission = AccessPermission
|
|
9
9
|
export const type = isly.object({
|
|
10
10
|
uk: Access.Permission.type.optional(),
|
|
11
|
-
uguk: Access.Permission.type.optional(),
|
|
12
11
|
eea: Access.Permission.type.optional(),
|
|
13
12
|
test: Access.Permission.type.optional(),
|
|
14
13
|
"*": isly.object({ user: Access.Permission.Level.type.optional() }).optional(),
|
|
15
14
|
})
|
|
16
15
|
export const typeZod = zod.object({
|
|
17
16
|
uk: Access.Permission.typeZod.optional(),
|
|
18
|
-
uguk: Access.Permission.typeZod.optional(),
|
|
19
17
|
eea: Access.Permission.typeZod.optional(),
|
|
20
18
|
test: Access.Permission.typeZod.optional(),
|
|
21
19
|
"*": zod.object({ user: Access.Permission.Level.typeZod.optional() }).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../Account/Creatable.ts"],"names":[],"mappings":";;;AACA,+BAA2B;
|
|
1
|
+
{"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../Account/Creatable.ts"],"names":[],"mappings":";;;AACA,+BAA2B;AAM3B,IAAiB,SAAS,CAWzB;AAXD,WAAiB,SAAS;IAEzB,IAAiB,QAAQ,CAOxB;IAPD,WAAiB,QAAQ;QACX,eAAM,GAAG,CAAC,oBAAoB,EAAE,aAAa,CAAU,CAAA;QACpE,SAAgB,YAAY,CAAC,KAAe;YAC3C,OAAO,KAAK,IAAI,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAA;QACvD,CAAC;QAFe,qBAAY,eAE3B,CAAA;QAEY,aAAI,GAAG,WAAI,CAAC,MAAM,CAAC,SAAA,MAAM,CAAC,CAAA;IACxC,CAAC,EAPgB,QAAQ,GAAR,kBAAQ,KAAR,kBAAQ,QAOxB;IACY,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY,EAAE,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;AACxG,CAAC,EAXgB,SAAS,yBAAT,SAAS,QAWzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Type = void 0;
|
|
4
|
+
const isly_1 = require("isly");
|
|
5
|
+
var Type;
|
|
6
|
+
(function (Type) {
|
|
7
|
+
Type.values = ["own funds", "emoney"];
|
|
8
|
+
Type.type = isly_1.isly.string(Type.values);
|
|
9
|
+
})(Type || (exports.Type = Type = {}));
|
|
10
|
+
//# sourceMappingURL=Type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Type.js","sourceRoot":"","sources":["../../../Account/Type.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAG3B,IAAiB,IAAI,CAGpB;AAHD,WAAiB,IAAI;IACP,WAAM,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAU,CAAA;IACzC,SAAI,GAAG,WAAI,CAAC,MAAM,CAAO,KAAA,MAAM,CAAC,CAAA;AAC9C,CAAC,EAHgB,IAAI,oBAAJ,IAAI,QAGpB"}
|
|
@@ -8,6 +8,7 @@ import { Creatable as AccountCreatable } from "./Creatable";
|
|
|
8
8
|
import { Details as AccountDetails } from "./Details";
|
|
9
9
|
import { History as AccountHistory } from "./History";
|
|
10
10
|
import { Status as AccountStatus } from "./Status";
|
|
11
|
+
import { Type as AccountType } from "./Type";
|
|
11
12
|
export interface Account extends Account.Creatable {
|
|
12
13
|
id: cryptly.Identifier;
|
|
13
14
|
created: isoly.DateTime;
|
|
@@ -20,6 +21,7 @@ export interface Account extends Account.Creatable {
|
|
|
20
21
|
charges?: AccountCharge;
|
|
21
22
|
rules?: Rule[];
|
|
22
23
|
status: Account.Status;
|
|
24
|
+
type: Account.Type;
|
|
23
25
|
}
|
|
24
26
|
export declare namespace Account {
|
|
25
27
|
export import Charge = AccountCharge;
|
|
@@ -27,8 +29,7 @@ export declare namespace Account {
|
|
|
27
29
|
export import Status = AccountStatus;
|
|
28
30
|
export import History = AccountHistory;
|
|
29
31
|
export import Details = AccountDetails;
|
|
30
|
-
|
|
31
|
-
function fromLegacy(maybeLegacy: Legacy | Account, status?: Account.Status): Account;
|
|
32
|
+
export import Type = AccountType;
|
|
32
33
|
const type: import("isly/dist/cjs/object").IslyObject<Account, Creatable>;
|
|
33
34
|
function isIdentifier(value: cryptly.Identifier | any): value is cryptly.Identifier;
|
|
34
35
|
}
|
|
@@ -12,6 +12,7 @@ const Creatable_1 = require("./Creatable");
|
|
|
12
12
|
const Details_1 = require("./Details");
|
|
13
13
|
const History_1 = require("./History");
|
|
14
14
|
const Status_1 = require("./Status");
|
|
15
|
+
const Type_1 = require("./Type");
|
|
15
16
|
var Account;
|
|
16
17
|
(function (Account) {
|
|
17
18
|
Account.Charge = Charge_1.Charge;
|
|
@@ -19,10 +20,7 @@ var Account;
|
|
|
19
20
|
Account.Status = Status_1.Status;
|
|
20
21
|
Account.History = History_1.History;
|
|
21
22
|
Account.Details = Details_1.Details;
|
|
22
|
-
|
|
23
|
-
return { ...maybeLegacy, status: status ?? ("status" in maybeLegacy ? maybeLegacy.status : { mode: "active" }) };
|
|
24
|
-
}
|
|
25
|
-
Account.fromLegacy = fromLegacy;
|
|
23
|
+
Account.Type = Type_1.Type;
|
|
26
24
|
Account.type = Account.Creatable.type.extend({
|
|
27
25
|
id: isly_1.isly.string(),
|
|
28
26
|
created: isly_1.isly.fromIs("isoly.DateTime", isoly_1.isoly.DateTime.is),
|
|
@@ -35,6 +33,7 @@ var Account;
|
|
|
35
33
|
charges: Charge_1.Charge.type.optional(),
|
|
36
34
|
rules: Rule_1.Rule.type.array().optional(),
|
|
37
35
|
status: Status_1.Status.type,
|
|
36
|
+
type: Account.Type.type,
|
|
38
37
|
});
|
|
39
38
|
function isIdentifier(value) {
|
|
40
39
|
return cryptly_1.cryptly.Identifier.is(value, 8);
|
|
@@ -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,qCAAkD;AAClD,2CAA2D;AAC3D,uCAAqD;AACrD,uCAAqD;AACrD,qCAAkD;
|
|
1
|
+
{"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,IAAI;QAC1B,IAAI,EAAE,QAAA,IAAI,CAAC,IAAI;KACf,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,EAxBgB,OAAO,uBAAP,OAAO,QAwBvB"}
|
package/dist/cjs/Card/Preset.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preset.js","sourceRoot":"","sources":["../../../Card/Preset.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,iCAAqC;AAOrC,IAAiB,MAAM,
|
|
1
|
+
{"version":3,"file":"Preset.js","sourceRoot":"","sources":["../../../Card/Preset.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,iCAAqC;AAOrC,IAAiB,MAAM,CAuDtB;AAvDD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,gBAAgB;QAChB,gBAAgB;QAChB,YAAY;QACZ,kBAAkB;QAClB,iBAAiB;QACjB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,aAAa;QACb,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,mBAAmB;QACnB,iBAAiB;KACR,CAAA;IACG,WAAI,GAAG,WAAI,CAAC,MAAM,CAAS,OAAA,KAAK,CAAC,CAAA;IACjC,YAAK,GAAG,YAAK;SACxB,MAAM,CAAS,OAAO,EAAE,GAAG,OAAA,KAAK,CAAC;SACjC,MAAM,CAAC,QAAQ,CAAC;SAChB,QAAQ,CAAC,8CAA8C,CAAC,CAAA;IAC7C,eAAQ,GAA4B;QAChD,IAAI,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,iBAAiB,CAAC;QAChH,EAAE,EAAE;YACH,gBAAgB;YAChB,gBAAgB;YAChB,YAAY;YACZ,kBAAkB;YAClB,iBAAiB;YACjB,kBAAkB;YAClB,kBAAkB;YAClB,kBAAkB;YAClB,kBAAkB;SAClB;QACD,GAAG,EAAE,EAAE;KACP,CAAA;IACY,cAAO,GAA0B;QAC7C,gBAAgB,EAAE,eAAe;QACjC,gBAAgB,EAAE,eAAe;QACjC,YAAY,EAAE,mBAAmB;QACjC,kBAAkB,EAAE,qBAAqB;QACzC,iBAAiB,EAAE,qBAAqB;QACxC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,aAAa,EAAE,cAAc;QAC7B,aAAa,EAAE,cAAc;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,gBAAgB,EAAE,kBAAkB;QACpC,mBAAmB,EAAE,kBAAkB;QACvC,iBAAiB,EAAE,oBAAoB;KACvC,CAAA;AACF,CAAC,EAvDgB,MAAM,sBAAN,MAAM,QAuDtB"}
|
package/dist/cjs/Log/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Type } from "../Account/Type";
|
|
1
2
|
import { Realm } from "../Realm";
|
|
2
3
|
import { Rule } from "../Rule";
|
|
3
4
|
import { Changeable as OrganizationChangeable } from "./Changeable";
|
|
@@ -15,6 +16,7 @@ export interface Organization {
|
|
|
15
16
|
contact?: Organization.Contact;
|
|
16
17
|
groups?: string[];
|
|
17
18
|
fx?: OrganizationFx;
|
|
19
|
+
type: Type;
|
|
18
20
|
}
|
|
19
21
|
export declare namespace Organization {
|
|
20
22
|
export import Creatable = OrganizationCreatable;
|
|
@@ -23,4 +25,5 @@ export declare namespace Organization {
|
|
|
23
25
|
export import Contact = OrganizationContact;
|
|
24
26
|
export import Fx = OrganizationFx;
|
|
25
27
|
const type: import("isly/dist/cjs/object").IslyObject<Rule.State.Organization, object>;
|
|
28
|
+
function from(creatable: Creatable, realm: Realm): Organization;
|
|
26
29
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Organization = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
+
const Type_1 = require("../Account/Type");
|
|
5
6
|
const Realm_1 = require("../Realm");
|
|
6
7
|
const type_1 = require("../Rule/type");
|
|
7
8
|
const Changeable_1 = require("./Changeable");
|
|
@@ -26,6 +27,11 @@ var Organization;
|
|
|
26
27
|
contact: Organization.Contact.type.optional(),
|
|
27
28
|
groups: isly_1.isly.string().array().optional(),
|
|
28
29
|
fx: Fx_1.Fx.type.optional(),
|
|
30
|
+
type: Type_1.Type.type,
|
|
29
31
|
});
|
|
32
|
+
function from(creatable, realm) {
|
|
33
|
+
return { ...creatable, realm, rules: creatable.rules ?? [], status: "active", type: "emoney" };
|
|
34
|
+
}
|
|
35
|
+
Organization.from = from;
|
|
30
36
|
})(Organization || (exports.Organization = Organization = {}));
|
|
31
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Organization/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,oCAAgC;AAEhC,uCAA+C;AAC/C,6CAAmE;AACnE,uCAA0D;AAC1D,2CAAgE;AAChE,6BAA2C;AAC3C,iCAAiD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Organization/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,0CAAsC;AACtC,oCAAgC;AAEhC,uCAA+C;AAC/C,6CAAmE;AACnE,uCAA0D;AAC1D,2CAAgE;AAChE,6BAA2C;AAC3C,iCAAiD;AAcjD,IAAiB,YAAY,CAqB5B;AArBD,WAAiB,YAAY;IACd,sBAAS,GAAG,qBAAqB,CAAA;IACjC,uBAAU,GAAG,uBAAsB,CAAA;IACnC,iBAAI,GAAG,WAAgB,CAAA;IACvB,oBAAO,GAAG,iBAAmB,CAAA;IAC7B,eAAE,GAAG,OAAc,CAAA;IACpB,iBAAI,GAAG,WAAI,CAAC,MAAM,CAAe;QAC7C,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAClD,KAAK,EAAE,aAAK,CAAC,IAAI;QACjB,KAAK,EAAE,WAAQ,CAAC,KAAK,EAAE;QACvB,MAAM,EAAE,WAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAC3C,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI;QAC5B,OAAO,EAAE,aAAA,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;QAChC,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACxC,EAAE,EAAE,OAAc,CAAC,IAAI,CAAC,QAAQ,EAAE;QAClC,IAAI,EAAE,WAAI,CAAC,IAAI;KACf,CAAC,CAAA;IACF,SAAgB,IAAI,CAAC,SAAoB,EAAE,KAAY;QACtD,OAAO,EAAE,GAAG,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;IAC/F,CAAC;IAFe,iBAAI,OAEnB,CAAA;AACF,CAAC,EArBgB,YAAY,4BAAZ,YAAY,QAqB5B"}
|
|
@@ -14,7 +14,6 @@ var Address;
|
|
|
14
14
|
Address_1.realm = {
|
|
15
15
|
test: ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"],
|
|
16
16
|
uk: ["internal", "iban", "scan", "card"],
|
|
17
|
-
uguk: ["internal", "iban", "scan", "card"],
|
|
18
17
|
eea: ["internal", "iban", "scan", "card"],
|
|
19
18
|
};
|
|
20
19
|
Address_1.values = ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Rail/Address/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAE3B,iCAA4C;AAC5C,iCAA4C;AAC5C,yCAAwD;AACxD,uCAAqD;AACrD,mDAAuE;AACvE,mCAA+C;AAC/C,iCAA4C;AAU5C,IAAiB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Rail/Address/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAE3B,iCAA4C;AAC5C,iCAA4C;AAC5C,yCAAwD;AACxD,uCAAqD;AACrD,mDAAuE;AACvE,mCAA+C;AAC/C,iCAA4C;AAU5C,IAAiB,OAAO,CAsFvB;AAtFD,WAAiB,SAAO;IACV,eAAK,GAA4B;QAC7C,IAAI,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC;QACvE,EAAE,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QACxC,GAAG,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;KACzC,CAAA;IACY,gBAAM,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAU,CAAA;IAEhG,SAAgB,OAAO,CAAC,SAA6B;QACpD,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,IAAK,SAAS,CAAC,CAAC,CAAS,CAAC,GAAG,CAAC,CAAC,CAAA;IACjG,CAAC;IAFe,iBAAO,UAEtB,CAAA;IACD,SAAgB,KAAK,CAAC,KAAa;QAClC,IAAI,MAA2B,CAAA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GAAG,WAAW,CAAA;IAClB,kBAAQ,GAAG,mBAAe,CAAA;IAC1B,cAAI,GAAG,WAAW,CAAA;IAClB,wBAAc,GAAG,6BAAoB,CAAA;IACrC,eAAK,GAAG,aAAY,CAAA;AACnC,CAAC,EAtFgB,OAAO,uBAAP,OAAO,QAsFvB"}
|
package/dist/cjs/Realm.d.ts
CHANGED
|
@@ -5,22 +5,20 @@ import { Supplier as modelSupplier } from "./Supplier";
|
|
|
5
5
|
import { zod } from "./zod";
|
|
6
6
|
export type Realm = zod.infer<typeof Realm.typeZod>;
|
|
7
7
|
export declare namespace Realm {
|
|
8
|
-
const realms: readonly ["test", "uk", "
|
|
9
|
-
const type: isly.Type<"test" | "uk" | "
|
|
8
|
+
const realms: readonly ["test", "uk", "eea"];
|
|
9
|
+
const type: isly.Type<"test" | "uk" | "eea">;
|
|
10
10
|
const typeZod: zod.ZodEnum<{
|
|
11
11
|
test: "test";
|
|
12
12
|
uk: "uk";
|
|
13
|
-
uguk: "uguk";
|
|
14
13
|
eea: "eea";
|
|
15
14
|
}>;
|
|
16
|
-
const type2: isly2.String<"test" | "uk" | "
|
|
15
|
+
const type2: isly2.String<"test" | "uk" | "eea">;
|
|
17
16
|
function toString(): string;
|
|
18
17
|
const currency: Record<Realm, isoly.Currency>;
|
|
19
18
|
const suppliers: Record<Realm, modelSupplier[]>;
|
|
20
19
|
interface Suppliers extends Record<Realm, modelSupplier[]> {
|
|
21
20
|
test: ["paxgiro", "bankingcircle", "paxgiroCredit"];
|
|
22
21
|
uk: ["clearbank", "bankingcircle"];
|
|
23
|
-
uguk: ["bankingcircle"];
|
|
24
22
|
eea: [];
|
|
25
23
|
}
|
|
26
24
|
type Supplier<P extends keyof Suppliers> = Pick<Suppliers, P>[P][number];
|
package/dist/cjs/Realm.js
CHANGED
|
@@ -6,7 +6,7 @@ const isly2_1 = require("isly2");
|
|
|
6
6
|
const zod_1 = require("./zod");
|
|
7
7
|
var Realm;
|
|
8
8
|
(function (Realm) {
|
|
9
|
-
Realm.realms = ["test", "uk", "
|
|
9
|
+
Realm.realms = ["test", "uk", "eea"];
|
|
10
10
|
Realm.type = isly_1.isly.string(Realm.realms);
|
|
11
11
|
Realm.typeZod = zod_1.zod.enum(Realm.realms);
|
|
12
12
|
Realm.type2 = isly2_1.isly
|
|
@@ -17,11 +17,10 @@ var Realm;
|
|
|
17
17
|
return Realm.realms.toString().replaceAll(",", ", ") + ".";
|
|
18
18
|
}
|
|
19
19
|
Realm.toString = toString;
|
|
20
|
-
Realm.currency = { test: "EUR", uk: "GBP",
|
|
20
|
+
Realm.currency = { test: "EUR", uk: "GBP", eea: "EUR" };
|
|
21
21
|
Realm.suppliers = {
|
|
22
22
|
test: ["paxgiro", "bankingcircle", "paxgiroCredit"],
|
|
23
23
|
uk: ["clearbank", "bankingcircle"],
|
|
24
|
-
uguk: ["bankingcircle"],
|
|
25
24
|
eea: [],
|
|
26
25
|
};
|
|
27
26
|
let Supplier;
|
package/dist/cjs/Realm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Realm.js","sourceRoot":"","sources":["../../Realm.ts"],"names":[],"mappings":";;;AACA,+BAA2B;AAC3B,iCAAqC;AAErC,+BAA2B;AAI3B,IAAiB,KAAK,
|
|
1
|
+
{"version":3,"file":"Realm.js","sourceRoot":"","sources":["../../Realm.ts"],"names":[],"mappings":";;;AACA,+BAA2B;AAC3B,iCAAqC;AAErC,+BAA2B;AAI3B,IAAiB,KAAK,CA4BrB;AA5BD,WAAiB,KAAK;IACR,YAAM,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAU,CAAA;IACvC,UAAI,GAAG,WAAI,CAAC,MAAM,CAAQ,MAAA,MAAM,CAAC,CAAA;IACjC,aAAO,GAAG,SAAG,CAAC,IAAI,CAAC,MAAA,MAAM,CAAC,CAAA;IAC1B,WAAK,GAAG,YAAK;SACxB,MAAM,CAAQ,OAAO,EAAE,GAAG,MAAA,MAAM,CAAC;SACjC,MAAM,CAAC,OAAO,CAAC;SACf,QAAQ,CAAC,yBAAyB,CAAC,CAAA;IACrC,SAAgB,QAAQ;QACvB,OAAO,MAAA,MAAM,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,GAAG,CAAA;IACrD,CAAC;IAFe,cAAQ,WAEvB,CAAA;IACY,cAAQ,GAAkC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,CAAA;IAChF,eAAS,GAAmC;QACxD,IAAI,EAAE,CAAC,SAAS,EAAE,eAAe,EAAE,eAAe,CAAC;QACnD,EAAE,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;QAClC,GAAG,EAAE,EAAE;KACP,CAAA;IAOD,IAAiB,QAAQ,CAIxB;IAJD,WAAiB,QAAQ;QACxB,SAAgB,EAAE,CAAC,KAAY,EAAE,QAA6B;YAC7D,OAAO,MAAA,SAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;QAC3C,CAAC;QAFe,WAAE,KAEjB,CAAA;IACF,CAAC,EAJgB,QAAQ,GAAR,cAAQ,KAAR,cAAQ,QAIxB;AACF,CAAC,EA5BgB,KAAK,qBAAL,KAAK,QA4BrB"}
|
|
@@ -12,9 +12,6 @@ var Supplier;
|
|
|
12
12
|
clearbank: ["GBP"],
|
|
13
13
|
bankingcircle: ["EUR", "GBP", "USD", "DKK", "CHF", "PLN", "SEK", "HUF"],
|
|
14
14
|
},
|
|
15
|
-
uguk: {
|
|
16
|
-
bankingcircle: ["EUR", "GBP", "USD", "DKK", "CHF", "PLN", "SEK", "NOK"],
|
|
17
|
-
},
|
|
18
15
|
test: {
|
|
19
16
|
paxgiro: ["GBP", "SEK", "USD", "EUR"],
|
|
20
17
|
bankingcircle: ["EUR", "GBP", "USD", "DKK", "CHF", "PLN", "SEK", "HUF"],
|
|
@@ -24,7 +21,6 @@ var Supplier;
|
|
|
24
21
|
eea: [],
|
|
25
22
|
test: ["paxgiro", "bankingcircle"],
|
|
26
23
|
uk: ["clearbank", "bankingcircle"],
|
|
27
|
-
uguk: ["bankingcircle"],
|
|
28
24
|
};
|
|
29
25
|
})(Supplier || (exports.Supplier = Supplier = {}));
|
|
30
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Supplier/index.ts"],"names":[],"mappings":";;;AACA,+BAA2B;AAI3B,IAAiB,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Supplier/index.ts"],"names":[],"mappings":";;;AACA,+BAA2B;AAI3B,IAAiB,QAAQ,CAoBxB;AApBD,WAAiB,QAAQ;IACX,cAAK,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,CAAU,CAAA;IAC3E,aAAI,GAAG,WAAI,CAAC,MAAM,CAAW,SAAA,KAAK,CAAC,CAAA;IACnC,mBAAU,GAA+D;QACrF,GAAG,EAAE,EAAE;QACP,EAAE,EAAE;YACH,SAAS,EAAE,CAAC,KAAK,CAAC;YAClB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;SACvE;QACD,IAAI,EAAE;YACL,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;YACrC,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;SACvE;KACD,CAAA;IACY,cAAK,GAAG;QACpB,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,CAAC,SAAS,EAAE,eAAe,CAAC;QAClC,EAAE,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;KAEW,CAAA;AAC/C,CAAC,EApBgB,QAAQ,wBAAR,QAAQ,QAoBxB"}
|
|
@@ -22,23 +22,6 @@ export declare namespace Access {
|
|
|
22
22
|
write: "write";
|
|
23
23
|
admin: "admin";
|
|
24
24
|
}>>>;
|
|
25
|
-
uguk: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
26
|
-
rule: "rule";
|
|
27
|
-
card: "card";
|
|
28
|
-
transaction: "transaction";
|
|
29
|
-
settlement: "settlement";
|
|
30
|
-
organization: "organization";
|
|
31
|
-
user: "user";
|
|
32
|
-
log: "log";
|
|
33
|
-
operation: "operation";
|
|
34
|
-
"*": "*";
|
|
35
|
-
treasury: "treasury";
|
|
36
|
-
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
37
|
-
developer: "developer";
|
|
38
|
-
read: "read";
|
|
39
|
-
write: "write";
|
|
40
|
-
admin: "admin";
|
|
41
|
-
}>>>;
|
|
42
25
|
eea: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
43
26
|
rule: "rule";
|
|
44
27
|
card: "card";
|
|
@@ -9,14 +9,12 @@ var Access;
|
|
|
9
9
|
Access.Permission = Permission_1.Permission;
|
|
10
10
|
Access.type = isly_1.isly.object({
|
|
11
11
|
uk: Access.Permission.type.optional(),
|
|
12
|
-
uguk: Access.Permission.type.optional(),
|
|
13
12
|
eea: Access.Permission.type.optional(),
|
|
14
13
|
test: Access.Permission.type.optional(),
|
|
15
14
|
"*": isly_1.isly.object({ user: Access.Permission.Level.type.optional() }).optional(),
|
|
16
15
|
});
|
|
17
16
|
Access.typeZod = zod_1.zod.object({
|
|
18
17
|
uk: Access.Permission.typeZod.optional(),
|
|
19
|
-
uguk: Access.Permission.typeZod.optional(),
|
|
20
18
|
eea: Access.Permission.typeZod.optional(),
|
|
21
19
|
test: Access.Permission.typeZod.optional(),
|
|
22
20
|
"*": zod_1.zod.object({ user: Access.Permission.Level.typeZod.optional() }).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../User/Access/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,mCAA+B;AAC/B,6CAA6D;AAI7D,IAAiB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../User/Access/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,mCAA+B;AAC/B,6CAA6D;AAI7D,IAAiB,MAAM,CActB;AAdD,WAAiB,MAAM;IACR,iBAAU,GAAG,uBAAgB,CAAA;IAC9B,WAAI,GAAG,WAAI,CAAC,MAAM,CAAC;QAC/B,EAAE,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QACrC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QACtC,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QACvC,GAAG,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC9E,CAAC,CAAA;IACW,cAAO,GAAG,SAAG,CAAC,MAAM,CAAC;QACjC,EAAE,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE;QACxC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE;QACzC,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE;QAC1C,GAAG,EAAE,SAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;KAChF,CAAC,CAAA;AACH,CAAC,EAdgB,MAAM,sBAAN,MAAM,QActB"}
|
|
@@ -7,7 +7,7 @@ export declare namespace Payload {
|
|
|
7
7
|
const type: import("isly/dist/cjs/object").IslyObject<{
|
|
8
8
|
sub: string;
|
|
9
9
|
permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
10
|
-
realm: "test" | "uk" | "
|
|
10
|
+
realm: "test" | "uk" | "eea";
|
|
11
11
|
}, object>;
|
|
12
12
|
const typeZod: zod.ZodObject<{
|
|
13
13
|
sub: zod.ZodString;
|
|
@@ -31,7 +31,6 @@ export declare namespace Payload {
|
|
|
31
31
|
realm: zod.ZodEnum<{
|
|
32
32
|
test: "test";
|
|
33
33
|
uk: "uk";
|
|
34
|
-
uguk: "uguk";
|
|
35
34
|
eea: "eea";
|
|
36
35
|
}>;
|
|
37
36
|
}, zod.z.core.$strip>;
|
|
@@ -44,7 +43,7 @@ export declare namespace Payload {
|
|
|
44
43
|
iss: string;
|
|
45
44
|
sub: string;
|
|
46
45
|
permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
47
|
-
realm: "test" | "uk" | "
|
|
46
|
+
realm: "test" | "uk" | "eea";
|
|
48
47
|
token?: string | undefined;
|
|
49
48
|
}, object>;
|
|
50
49
|
const typeZod: zod.ZodObject<{
|
|
@@ -72,7 +71,6 @@ export declare namespace Payload {
|
|
|
72
71
|
realm: zod.ZodEnum<{
|
|
73
72
|
test: "test";
|
|
74
73
|
uk: "uk";
|
|
75
|
-
uguk: "uguk";
|
|
76
74
|
eea: "eea";
|
|
77
75
|
}>;
|
|
78
76
|
token: zod.ZodOptional<zod.ZodString>;
|
|
@@ -86,7 +84,7 @@ export declare namespace Payload {
|
|
|
86
84
|
iss: string;
|
|
87
85
|
sub: string;
|
|
88
86
|
permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
89
|
-
realm: "test" | "uk" | "
|
|
87
|
+
realm: "test" | "uk" | "eea";
|
|
90
88
|
id: string;
|
|
91
89
|
token?: string | undefined;
|
|
92
90
|
}, {
|
|
@@ -95,7 +93,7 @@ export declare namespace Payload {
|
|
|
95
93
|
iss: string;
|
|
96
94
|
sub: string;
|
|
97
95
|
permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
98
|
-
realm: "test" | "uk" | "
|
|
96
|
+
realm: "test" | "uk" | "eea";
|
|
99
97
|
token?: string | undefined;
|
|
100
98
|
}>;
|
|
101
99
|
const typeZod: zod.ZodObject<{
|
|
@@ -123,7 +121,6 @@ export declare namespace Payload {
|
|
|
123
121
|
realm: zod.ZodEnum<{
|
|
124
122
|
test: "test";
|
|
125
123
|
uk: "uk";
|
|
126
|
-
uguk: "uguk";
|
|
127
124
|
eea: "eea";
|
|
128
125
|
}>;
|
|
129
126
|
token: zod.ZodOptional<zod.ZodString>;
|
|
@@ -138,7 +135,7 @@ export declare namespace Payload {
|
|
|
138
135
|
iss: string;
|
|
139
136
|
sub: string;
|
|
140
137
|
permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
141
|
-
realm: "test" | "uk" | "
|
|
138
|
+
realm: "test" | "uk" | "eea";
|
|
142
139
|
exp: number;
|
|
143
140
|
token?: string | undefined;
|
|
144
141
|
}, {
|
|
@@ -147,7 +144,7 @@ export declare namespace Payload {
|
|
|
147
144
|
iss: string;
|
|
148
145
|
sub: string;
|
|
149
146
|
permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
150
|
-
realm: "test" | "uk" | "
|
|
147
|
+
realm: "test" | "uk" | "eea";
|
|
151
148
|
token?: string | undefined;
|
|
152
149
|
}>;
|
|
153
150
|
const typeZod: zod.ZodObject<{
|
|
@@ -175,7 +172,6 @@ export declare namespace Payload {
|
|
|
175
172
|
realm: zod.ZodEnum<{
|
|
176
173
|
test: "test";
|
|
177
174
|
uk: "uk";
|
|
178
|
-
uguk: "uguk";
|
|
179
175
|
eea: "eea";
|
|
180
176
|
}>;
|
|
181
177
|
token: zod.ZodOptional<zod.ZodString>;
|
|
@@ -212,7 +208,6 @@ export declare namespace Payload {
|
|
|
212
208
|
realm: zod.ZodEnum<{
|
|
213
209
|
test: "test";
|
|
214
210
|
uk: "uk";
|
|
215
|
-
uguk: "uguk";
|
|
216
211
|
eea: "eea";
|
|
217
212
|
}>;
|
|
218
213
|
token: zod.ZodOptional<zod.ZodString>;
|
|
@@ -242,7 +237,6 @@ export declare namespace Payload {
|
|
|
242
237
|
realm: zod.ZodEnum<{
|
|
243
238
|
test: "test";
|
|
244
239
|
uk: "uk";
|
|
245
|
-
uguk: "uguk";
|
|
246
240
|
eea: "eea";
|
|
247
241
|
}>;
|
|
248
242
|
token: zod.ZodOptional<zod.ZodString>;
|
package/dist/cjs/User/index.d.ts
CHANGED
|
@@ -68,23 +68,6 @@ export declare namespace User {
|
|
|
68
68
|
write: "write";
|
|
69
69
|
admin: "admin";
|
|
70
70
|
}>>>;
|
|
71
|
-
uguk: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
72
|
-
rule: "rule";
|
|
73
|
-
card: "card";
|
|
74
|
-
transaction: "transaction";
|
|
75
|
-
settlement: "settlement";
|
|
76
|
-
organization: "organization";
|
|
77
|
-
user: "user";
|
|
78
|
-
log: "log";
|
|
79
|
-
operation: "operation";
|
|
80
|
-
"*": "*";
|
|
81
|
-
treasury: "treasury";
|
|
82
|
-
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
83
|
-
developer: "developer";
|
|
84
|
-
read: "read";
|
|
85
|
-
write: "write";
|
|
86
|
-
admin: "admin";
|
|
87
|
-
}>>>;
|
|
88
71
|
eea: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
89
72
|
rule: "rule";
|
|
90
73
|
card: "card";
|
|
@@ -133,7 +116,6 @@ export declare namespace User {
|
|
|
133
116
|
email: string;
|
|
134
117
|
access: {
|
|
135
118
|
uk?: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
|
|
136
|
-
uguk?: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
|
|
137
119
|
eea?: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
|
|
138
120
|
test?: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
|
|
139
121
|
"*"?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../Account/Creatable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../Account/Creatable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,SAAS,CAWzB;AAXD,WAAiB,SAAS;IAEzB,IAAiB,QAAQ,CAOxB;IAPD,WAAiB,QAAQ;QACX,eAAM,GAAG,CAAC,oBAAoB,EAAE,aAAa,CAAU,CAAA;QACpE,SAAgB,YAAY,CAAC,KAAe;YAC3C,OAAO,KAAK,IAAI,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAA;QACvD,CAAC;QAFe,qBAAY,eAE3B,CAAA;QAEY,aAAI,GAAG,IAAI,CAAC,MAAM,CAAC,SAAA,MAAM,CAAC,CAAA;IACxC,CAAC,EAPgB,QAAQ,GAAR,kBAAQ,KAAR,kBAAQ,QAOxB;IACY,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;AACxG,CAAC,EAXgB,SAAS,KAAT,SAAS,QAWzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Type.js","sourceRoot":"","sources":["../../../Account/Type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,IAAI,CAGpB;AAHD,WAAiB,IAAI;IACP,WAAM,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAU,CAAA;IACzC,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO,KAAA,MAAM,CAAC,CAAA;AAC9C,CAAC,EAHgB,IAAI,KAAJ,IAAI,QAGpB"}
|
|
@@ -8,6 +8,7 @@ import { Creatable as AccountCreatable } from "./Creatable";
|
|
|
8
8
|
import { Details as AccountDetails } from "./Details";
|
|
9
9
|
import { History as AccountHistory } from "./History";
|
|
10
10
|
import { Status as AccountStatus } from "./Status";
|
|
11
|
+
import { Type as AccountType } from "./Type";
|
|
11
12
|
export interface Account extends Account.Creatable {
|
|
12
13
|
id: cryptly.Identifier;
|
|
13
14
|
created: isoly.DateTime;
|
|
@@ -20,6 +21,7 @@ export interface Account extends Account.Creatable {
|
|
|
20
21
|
charges?: AccountCharge;
|
|
21
22
|
rules?: Rule[];
|
|
22
23
|
status: Account.Status;
|
|
24
|
+
type: Account.Type;
|
|
23
25
|
}
|
|
24
26
|
export declare namespace Account {
|
|
25
27
|
export import Charge = AccountCharge;
|
|
@@ -27,8 +29,7 @@ export declare namespace Account {
|
|
|
27
29
|
export import Status = AccountStatus;
|
|
28
30
|
export import History = AccountHistory;
|
|
29
31
|
export import Details = AccountDetails;
|
|
30
|
-
|
|
31
|
-
function fromLegacy(maybeLegacy: Legacy | Account, status?: Account.Status): Account;
|
|
32
|
+
export import Type = AccountType;
|
|
32
33
|
const type: import("isly/dist/cjs/object").IslyObject<Account, Creatable>;
|
|
33
34
|
function isIdentifier(value: cryptly.Identifier | any): value is cryptly.Identifier;
|
|
34
35
|
}
|
|
@@ -9,6 +9,7 @@ import { Creatable as AccountCreatable } from "./Creatable";
|
|
|
9
9
|
import { Details as AccountDetails } from "./Details";
|
|
10
10
|
import { History as AccountHistory } from "./History";
|
|
11
11
|
import { Status as AccountStatus } from "./Status";
|
|
12
|
+
import { Type as AccountType } from "./Type";
|
|
12
13
|
export var Account;
|
|
13
14
|
(function (Account) {
|
|
14
15
|
Account.Charge = AccountCharge;
|
|
@@ -16,10 +17,7 @@ export var Account;
|
|
|
16
17
|
Account.Status = AccountStatus;
|
|
17
18
|
Account.History = AccountHistory;
|
|
18
19
|
Account.Details = AccountDetails;
|
|
19
|
-
|
|
20
|
-
return { ...maybeLegacy, status: status ?? ("status" in maybeLegacy ? maybeLegacy.status : { mode: "active" }) };
|
|
21
|
-
}
|
|
22
|
-
Account.fromLegacy = fromLegacy;
|
|
20
|
+
Account.Type = AccountType;
|
|
23
21
|
Account.type = Account.Creatable.type.extend({
|
|
24
22
|
id: isly.string(),
|
|
25
23
|
created: isly.fromIs("isoly.DateTime", isoly.DateTime.is),
|
|
@@ -32,6 +30,7 @@ export var Account;
|
|
|
32
30
|
charges: AccountCharge.type.optional(),
|
|
33
31
|
rules: Rule.type.array().optional(),
|
|
34
32
|
status: AccountStatus.type,
|
|
33
|
+
type: Account.Type.type,
|
|
35
34
|
});
|
|
36
35
|
function isIdentifier(value) {
|
|
37
36
|
return cryptly.Identifier.is(value, 8);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Account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O,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IACvC,CAAC;IAFe,oBAAY,eAE3B,CAAA;AACF,CAAC,EAxBgB,OAAO,KAAP,OAAO,QAwBvB"}
|
package/dist/mjs/Card/Preset.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preset.js","sourceRoot":"","sources":["../../../Card/Preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,OAAO,CAAA;AAOrC,MAAM,KAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"Preset.js","sourceRoot":"","sources":["../../../Card/Preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,OAAO,CAAA;AAOrC,MAAM,KAAW,MAAM,CAuDtB;AAvDD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,gBAAgB;QAChB,gBAAgB;QAChB,YAAY;QACZ,kBAAkB;QAClB,iBAAiB;QACjB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,aAAa;QACb,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,mBAAmB;QACnB,iBAAiB;KACR,CAAA;IACG,WAAI,GAAG,IAAI,CAAC,MAAM,CAAS,OAAA,KAAK,CAAC,CAAA;IACjC,YAAK,GAAG,KAAK;SACxB,MAAM,CAAS,OAAO,EAAE,GAAG,OAAA,KAAK,CAAC;SACjC,MAAM,CAAC,QAAQ,CAAC;SAChB,QAAQ,CAAC,8CAA8C,CAAC,CAAA;IAC7C,eAAQ,GAA4B;QAChD,IAAI,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,iBAAiB,CAAC;QAChH,EAAE,EAAE;YACH,gBAAgB;YAChB,gBAAgB;YAChB,YAAY;YACZ,kBAAkB;YAClB,iBAAiB;YACjB,kBAAkB;YAClB,kBAAkB;YAClB,kBAAkB;YAClB,kBAAkB;SAClB;QACD,GAAG,EAAE,EAAE;KACP,CAAA;IACY,cAAO,GAA0B;QAC7C,gBAAgB,EAAE,eAAe;QACjC,gBAAgB,EAAE,eAAe;QACjC,YAAY,EAAE,mBAAmB;QACjC,kBAAkB,EAAE,qBAAqB;QACzC,iBAAiB,EAAE,qBAAqB;QACxC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,aAAa,EAAE,cAAc;QAC7B,aAAa,EAAE,cAAc;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,gBAAgB,EAAE,kBAAkB;QACpC,mBAAmB,EAAE,kBAAkB;QACvC,iBAAiB,EAAE,oBAAoB;KACvC,CAAA;AACF,CAAC,EAvDgB,MAAM,KAAN,MAAM,QAuDtB"}
|
package/dist/mjs/Log/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Type } from "../Account/Type";
|
|
1
2
|
import { Realm } from "../Realm";
|
|
2
3
|
import { Rule } from "../Rule";
|
|
3
4
|
import { Changeable as OrganizationChangeable } from "./Changeable";
|
|
@@ -15,6 +16,7 @@ export interface Organization {
|
|
|
15
16
|
contact?: Organization.Contact;
|
|
16
17
|
groups?: string[];
|
|
17
18
|
fx?: OrganizationFx;
|
|
19
|
+
type: Type;
|
|
18
20
|
}
|
|
19
21
|
export declare namespace Organization {
|
|
20
22
|
export import Creatable = OrganizationCreatable;
|
|
@@ -23,4 +25,5 @@ export declare namespace Organization {
|
|
|
23
25
|
export import Contact = OrganizationContact;
|
|
24
26
|
export import Fx = OrganizationFx;
|
|
25
27
|
const type: import("isly/dist/cjs/object").IslyObject<Rule.State.Organization, object>;
|
|
28
|
+
function from(creatable: Creatable, realm: Realm): Organization;
|
|
26
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
+
import { Type } from "../Account/Type";
|
|
2
3
|
import { Realm } from "../Realm";
|
|
3
4
|
import { type as ruleType } from "../Rule/type";
|
|
4
5
|
import { Changeable as OrganizationChangeable } from "./Changeable";
|
|
@@ -23,6 +24,11 @@ export var Organization;
|
|
|
23
24
|
contact: Organization.Contact.type.optional(),
|
|
24
25
|
groups: isly.string().array().optional(),
|
|
25
26
|
fx: OrganizationFx.type.optional(),
|
|
27
|
+
type: Type.type,
|
|
26
28
|
});
|
|
29
|
+
function from(creatable, realm) {
|
|
30
|
+
return { ...creatable, realm, rules: creatable.rules ?? [], status: "active", type: "emoney" };
|
|
31
|
+
}
|
|
32
|
+
Organization.from = from;
|
|
27
33
|
})(Organization || (Organization = {}));
|
|
28
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Organization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAEhC,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,MAAM,cAAc,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC1D,OAAO,EAAE,SAAS,IAAI,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAChE,OAAO,EAAE,EAAE,IAAI,cAAc,EAAE,MAAM,MAAM,CAAA;AAC3C,OAAO,EAAE,IAAI,IAAI,gBAAgB,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Organization/index.ts"],"names":[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CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACxC,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE;QAClC,IAAI,EAAE,IAAI,CAAC,IAAI;KACf,CAAC,CAAA;IACF,SAAgB,IAAI,CAAC,SAAoB,EAAE,KAAY;QACtD,OAAO,EAAE,GAAG,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;IAC/F,CAAC;IAFe,iBAAI,OAEnB,CAAA;AACF,CAAC,EArBgB,YAAY,KAAZ,YAAY,QAqB5B"}
|
|
@@ -11,7 +11,6 @@ export var Address;
|
|
|
11
11
|
Address_1.realm = {
|
|
12
12
|
test: ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"],
|
|
13
13
|
uk: ["internal", "iban", "scan", "card"],
|
|
14
|
-
uguk: ["internal", "iban", "scan", "card"],
|
|
15
14
|
eea: ["internal", "iban", "scan", "card"],
|
|
16
15
|
};
|
|
17
16
|
Address_1.values = ["paxgiro", "internal", "iban", "scan", "card", "paxgiro-credit"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Rail/Address/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,KAAK,IAAI,YAAY,E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oBAAoB,CAAC,IAAI,EACzB,WAAW,CAAC,IAAI,EAChB,eAAe,CAAC,IAAI,EACpB,cAAc,CAAC,IAAI,EACnB,WAAW,CAAC,IAAI,CAChB,CAAA;IAEa,iBAAO,GAAG,cAAc,CAAA;IACxB,cAAI,GAAG,WAAW,CAAA;IAClB,cAAI,GAAG,WAAW,CAAA;IAClB,kBAAQ,GAAG,eAAe,CAAA;IAC1B,cAAI,GAAG,WAAW,CAAA;IAClB,wBAAc,GAAG,oBAAoB,CAAA;IACrC,eAAK,GAAG,YAAY,CAAA;AACnC,CAAC,EAtFgB,OAAO,KAAP,OAAO,QAsFvB"}
|
package/dist/mjs/Realm.d.ts
CHANGED
|
@@ -5,22 +5,20 @@ import { Supplier as modelSupplier } from "./Supplier";
|
|
|
5
5
|
import { zod } from "./zod";
|
|
6
6
|
export type Realm = zod.infer<typeof Realm.typeZod>;
|
|
7
7
|
export declare namespace Realm {
|
|
8
|
-
const realms: readonly ["test", "uk", "
|
|
9
|
-
const type: isly.Type<"test" | "uk" | "
|
|
8
|
+
const realms: readonly ["test", "uk", "eea"];
|
|
9
|
+
const type: isly.Type<"test" | "uk" | "eea">;
|
|
10
10
|
const typeZod: zod.ZodEnum<{
|
|
11
11
|
test: "test";
|
|
12
12
|
uk: "uk";
|
|
13
|
-
uguk: "uguk";
|
|
14
13
|
eea: "eea";
|
|
15
14
|
}>;
|
|
16
|
-
const type2: isly2.String<"test" | "uk" | "
|
|
15
|
+
const type2: isly2.String<"test" | "uk" | "eea">;
|
|
17
16
|
function toString(): string;
|
|
18
17
|
const currency: Record<Realm, isoly.Currency>;
|
|
19
18
|
const suppliers: Record<Realm, modelSupplier[]>;
|
|
20
19
|
interface Suppliers extends Record<Realm, modelSupplier[]> {
|
|
21
20
|
test: ["paxgiro", "bankingcircle", "paxgiroCredit"];
|
|
22
21
|
uk: ["clearbank", "bankingcircle"];
|
|
23
|
-
uguk: ["bankingcircle"];
|
|
24
22
|
eea: [];
|
|
25
23
|
}
|
|
26
24
|
type Supplier<P extends keyof Suppliers> = Pick<Suppliers, P>[P][number];
|
package/dist/mjs/Realm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { isly as isly2 } from "isly2";
|
|
|
3
3
|
import { zod } from "./zod";
|
|
4
4
|
export var Realm;
|
|
5
5
|
(function (Realm) {
|
|
6
|
-
Realm.realms = ["test", "uk", "
|
|
6
|
+
Realm.realms = ["test", "uk", "eea"];
|
|
7
7
|
Realm.type = isly.string(Realm.realms);
|
|
8
8
|
Realm.typeZod = zod.enum(Realm.realms);
|
|
9
9
|
Realm.type2 = isly2
|
|
@@ -14,11 +14,10 @@ export var Realm;
|
|
|
14
14
|
return Realm.realms.toString().replaceAll(",", ", ") + ".";
|
|
15
15
|
}
|
|
16
16
|
Realm.toString = toString;
|
|
17
|
-
Realm.currency = { test: "EUR", uk: "GBP",
|
|
17
|
+
Realm.currency = { test: "EUR", uk: "GBP", eea: "EUR" };
|
|
18
18
|
Realm.suppliers = {
|
|
19
19
|
test: ["paxgiro", "bankingcircle", "paxgiroCredit"],
|
|
20
20
|
uk: ["clearbank", "bankingcircle"],
|
|
21
|
-
uguk: ["bankingcircle"],
|
|
22
21
|
eea: [],
|
|
23
22
|
};
|
|
24
23
|
let Supplier;
|
package/dist/mjs/Realm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Realm.js","sourceRoot":"","sources":["../../Realm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,OAAO,CAAA;AAErC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAI3B,MAAM,KAAW,KAAK,
|
|
1
|
+
{"version":3,"file":"Realm.js","sourceRoot":"","sources":["../../Realm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,KA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@ -9,9 +9,6 @@ export var Supplier;
|
|
|
9
9
|
clearbank: ["GBP"],
|
|
10
10
|
bankingcircle: ["EUR", "GBP", "USD", "DKK", "CHF", "PLN", "SEK", "HUF"],
|
|
11
11
|
},
|
|
12
|
-
uguk: {
|
|
13
|
-
bankingcircle: ["EUR", "GBP", "USD", "DKK", "CHF", "PLN", "SEK", "NOK"],
|
|
14
|
-
},
|
|
15
12
|
test: {
|
|
16
13
|
paxgiro: ["GBP", "SEK", "USD", "EUR"],
|
|
17
14
|
bankingcircle: ["EUR", "GBP", "USD", "DKK", "CHF", "PLN", "SEK", "HUF"],
|
|
@@ -21,7 +18,6 @@ export var Supplier;
|
|
|
21
18
|
eea: [],
|
|
22
19
|
test: ["paxgiro", "bankingcircle"],
|
|
23
20
|
uk: ["clearbank", "bankingcircle"],
|
|
24
|
-
uguk: ["bankingcircle"],
|
|
25
21
|
};
|
|
26
22
|
})(Supplier || (Supplier = {}));
|
|
27
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Supplier/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Supplier/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,QAAQ,CAoBxB;AApBD,WAAiB,QAAQ;IACX,cAAK,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,CAAU,CAAA;IAC3E,aAAI,GAAG,IAAI,CAAC,MAAM,CAAW,SAAA,KAAK,CAAC,CAAA;IACnC,mBAAU,GAA+D;QACrF,GAAG,EAAE,EAAE;QACP,EAAE,EAAE;YACH,SAAS,EAAE,CAAC,KAAK,CAAC;YAClB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;SACvE;QACD,IAAI,EAAE;YACL,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;YACrC,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;SACvE;KACD,CAAA;IACY,cAAK,GAAG;QACpB,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,CAAC,SAAS,EAAE,eAAe,CAAC;QAClC,EAAE,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;KAEW,CAAA;AAC/C,CAAC,EApBgB,QAAQ,KAAR,QAAQ,QAoBxB"}
|
|
@@ -22,23 +22,6 @@ export declare namespace Access {
|
|
|
22
22
|
write: "write";
|
|
23
23
|
admin: "admin";
|
|
24
24
|
}>>>;
|
|
25
|
-
uguk: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
26
|
-
rule: "rule";
|
|
27
|
-
card: "card";
|
|
28
|
-
transaction: "transaction";
|
|
29
|
-
settlement: "settlement";
|
|
30
|
-
organization: "organization";
|
|
31
|
-
user: "user";
|
|
32
|
-
log: "log";
|
|
33
|
-
operation: "operation";
|
|
34
|
-
"*": "*";
|
|
35
|
-
treasury: "treasury";
|
|
36
|
-
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
37
|
-
developer: "developer";
|
|
38
|
-
read: "read";
|
|
39
|
-
write: "write";
|
|
40
|
-
admin: "admin";
|
|
41
|
-
}>>>;
|
|
42
25
|
eea: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
43
26
|
rule: "rule";
|
|
44
27
|
card: "card";
|
|
@@ -6,14 +6,12 @@ export var Access;
|
|
|
6
6
|
Access.Permission = AccessPermission;
|
|
7
7
|
Access.type = isly.object({
|
|
8
8
|
uk: Access.Permission.type.optional(),
|
|
9
|
-
uguk: Access.Permission.type.optional(),
|
|
10
9
|
eea: Access.Permission.type.optional(),
|
|
11
10
|
test: Access.Permission.type.optional(),
|
|
12
11
|
"*": isly.object({ user: Access.Permission.Level.type.optional() }).optional(),
|
|
13
12
|
});
|
|
14
13
|
Access.typeZod = zod.object({
|
|
15
14
|
uk: Access.Permission.typeZod.optional(),
|
|
16
|
-
uguk: Access.Permission.typeZod.optional(),
|
|
17
15
|
eea: Access.Permission.typeZod.optional(),
|
|
18
16
|
test: Access.Permission.typeZod.optional(),
|
|
19
17
|
"*": zod.object({ user: Access.Permission.Level.typeZod.optional() }).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../User/Access/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAI7D,MAAM,KAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../User/Access/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAI7D,MAAM,KAAW,MAAM,CActB;AAdD,WAAiB,MAAM;IACR,iBAAU,GAAG,gBAAgB,CAAA;IAC9B,WAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QAC/B,EAAE,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QACrC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QACtC,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QACvC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC9E,CAAC,CAAA;IACW,cAAO,GAAG,GAAG,CAAC,MAAM,CAAC;QACjC,EAAE,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE;QACxC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE;QACzC,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE;QAC1C,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;KAChF,CAAC,CAAA;AACH,CAAC,EAdgB,MAAM,KAAN,MAAM,QActB"}
|
|
@@ -7,7 +7,7 @@ export declare namespace Payload {
|
|
|
7
7
|
const type: import("isly/dist/cjs/object").IslyObject<{
|
|
8
8
|
sub: string;
|
|
9
9
|
permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
10
|
-
realm: "test" | "uk" | "
|
|
10
|
+
realm: "test" | "uk" | "eea";
|
|
11
11
|
}, object>;
|
|
12
12
|
const typeZod: zod.ZodObject<{
|
|
13
13
|
sub: zod.ZodString;
|
|
@@ -31,7 +31,6 @@ export declare namespace Payload {
|
|
|
31
31
|
realm: zod.ZodEnum<{
|
|
32
32
|
test: "test";
|
|
33
33
|
uk: "uk";
|
|
34
|
-
uguk: "uguk";
|
|
35
34
|
eea: "eea";
|
|
36
35
|
}>;
|
|
37
36
|
}, zod.z.core.$strip>;
|
|
@@ -44,7 +43,7 @@ export declare namespace Payload {
|
|
|
44
43
|
iss: string;
|
|
45
44
|
sub: string;
|
|
46
45
|
permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
47
|
-
realm: "test" | "uk" | "
|
|
46
|
+
realm: "test" | "uk" | "eea";
|
|
48
47
|
token?: string | undefined;
|
|
49
48
|
}, object>;
|
|
50
49
|
const typeZod: zod.ZodObject<{
|
|
@@ -72,7 +71,6 @@ export declare namespace Payload {
|
|
|
72
71
|
realm: zod.ZodEnum<{
|
|
73
72
|
test: "test";
|
|
74
73
|
uk: "uk";
|
|
75
|
-
uguk: "uguk";
|
|
76
74
|
eea: "eea";
|
|
77
75
|
}>;
|
|
78
76
|
token: zod.ZodOptional<zod.ZodString>;
|
|
@@ -86,7 +84,7 @@ export declare namespace Payload {
|
|
|
86
84
|
iss: string;
|
|
87
85
|
sub: string;
|
|
88
86
|
permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
89
|
-
realm: "test" | "uk" | "
|
|
87
|
+
realm: "test" | "uk" | "eea";
|
|
90
88
|
id: string;
|
|
91
89
|
token?: string | undefined;
|
|
92
90
|
}, {
|
|
@@ -95,7 +93,7 @@ export declare namespace Payload {
|
|
|
95
93
|
iss: string;
|
|
96
94
|
sub: string;
|
|
97
95
|
permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
98
|
-
realm: "test" | "uk" | "
|
|
96
|
+
realm: "test" | "uk" | "eea";
|
|
99
97
|
token?: string | undefined;
|
|
100
98
|
}>;
|
|
101
99
|
const typeZod: zod.ZodObject<{
|
|
@@ -123,7 +121,6 @@ export declare namespace Payload {
|
|
|
123
121
|
realm: zod.ZodEnum<{
|
|
124
122
|
test: "test";
|
|
125
123
|
uk: "uk";
|
|
126
|
-
uguk: "uguk";
|
|
127
124
|
eea: "eea";
|
|
128
125
|
}>;
|
|
129
126
|
token: zod.ZodOptional<zod.ZodString>;
|
|
@@ -138,7 +135,7 @@ export declare namespace Payload {
|
|
|
138
135
|
iss: string;
|
|
139
136
|
sub: string;
|
|
140
137
|
permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
141
|
-
realm: "test" | "uk" | "
|
|
138
|
+
realm: "test" | "uk" | "eea";
|
|
142
139
|
exp: number;
|
|
143
140
|
token?: string | undefined;
|
|
144
141
|
}, {
|
|
@@ -147,7 +144,7 @@ export declare namespace Payload {
|
|
|
147
144
|
iss: string;
|
|
148
145
|
sub: string;
|
|
149
146
|
permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
150
|
-
realm: "test" | "uk" | "
|
|
147
|
+
realm: "test" | "uk" | "eea";
|
|
151
148
|
token?: string | undefined;
|
|
152
149
|
}>;
|
|
153
150
|
const typeZod: zod.ZodObject<{
|
|
@@ -175,7 +172,6 @@ export declare namespace Payload {
|
|
|
175
172
|
realm: zod.ZodEnum<{
|
|
176
173
|
test: "test";
|
|
177
174
|
uk: "uk";
|
|
178
|
-
uguk: "uguk";
|
|
179
175
|
eea: "eea";
|
|
180
176
|
}>;
|
|
181
177
|
token: zod.ZodOptional<zod.ZodString>;
|
|
@@ -212,7 +208,6 @@ export declare namespace Payload {
|
|
|
212
208
|
realm: zod.ZodEnum<{
|
|
213
209
|
test: "test";
|
|
214
210
|
uk: "uk";
|
|
215
|
-
uguk: "uguk";
|
|
216
211
|
eea: "eea";
|
|
217
212
|
}>;
|
|
218
213
|
token: zod.ZodOptional<zod.ZodString>;
|
|
@@ -242,7 +237,6 @@ export declare namespace Payload {
|
|
|
242
237
|
realm: zod.ZodEnum<{
|
|
243
238
|
test: "test";
|
|
244
239
|
uk: "uk";
|
|
245
|
-
uguk: "uguk";
|
|
246
240
|
eea: "eea";
|
|
247
241
|
}>;
|
|
248
242
|
token: zod.ZodOptional<zod.ZodString>;
|
package/dist/mjs/User/index.d.ts
CHANGED
|
@@ -68,23 +68,6 @@ export declare namespace User {
|
|
|
68
68
|
write: "write";
|
|
69
69
|
admin: "admin";
|
|
70
70
|
}>>>;
|
|
71
|
-
uguk: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
72
|
-
rule: "rule";
|
|
73
|
-
card: "card";
|
|
74
|
-
transaction: "transaction";
|
|
75
|
-
settlement: "settlement";
|
|
76
|
-
organization: "organization";
|
|
77
|
-
user: "user";
|
|
78
|
-
log: "log";
|
|
79
|
-
operation: "operation";
|
|
80
|
-
"*": "*";
|
|
81
|
-
treasury: "treasury";
|
|
82
|
-
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
83
|
-
developer: "developer";
|
|
84
|
-
read: "read";
|
|
85
|
-
write: "write";
|
|
86
|
-
admin: "admin";
|
|
87
|
-
}>>>;
|
|
88
71
|
eea: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
89
72
|
rule: "rule";
|
|
90
73
|
card: "card";
|
|
@@ -133,7 +116,6 @@ export declare namespace User {
|
|
|
133
116
|
email: string;
|
|
134
117
|
access: {
|
|
135
118
|
uk?: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
|
|
136
|
-
uguk?: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
|
|
137
119
|
eea?: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
|
|
138
120
|
test?: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
|
|
139
121
|
"*"?: {
|