@pax2pay/model-banking 0.1.590 → 0.1.591

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.
Files changed (36) hide show
  1. package/Client/Organizations/Risk.ts +10 -0
  2. package/Client/Organizations/index.ts +3 -0
  3. package/Organization/Creatable.ts +3 -0
  4. package/Organization/Risk.ts +8 -0
  5. package/Organization/index.ts +4 -0
  6. package/dist/cjs/Client/Organizations/Risk.d.ts +8 -0
  7. package/dist/cjs/Client/Organizations/Risk.js +14 -0
  8. package/dist/cjs/Client/Organizations/Risk.js.map +1 -0
  9. package/dist/cjs/Client/Organizations/index.d.ts +2 -0
  10. package/dist/cjs/Client/Organizations/index.js +3 -0
  11. package/dist/cjs/Client/Organizations/index.js.map +1 -1
  12. package/dist/cjs/Organization/Creatable.d.ts +2 -0
  13. package/dist/cjs/Organization/Creatable.js +2 -0
  14. package/dist/cjs/Organization/Creatable.js.map +1 -1
  15. package/dist/cjs/Organization/Risk.d.ts +6 -0
  16. package/dist/cjs/Organization/Risk.js +10 -0
  17. package/dist/cjs/Organization/Risk.js.map +1 -0
  18. package/dist/cjs/Organization/index.d.ts +3 -0
  19. package/dist/cjs/Organization/index.js +3 -0
  20. package/dist/cjs/Organization/index.js.map +1 -1
  21. package/dist/mjs/Client/Organizations/Risk.d.ts +8 -0
  22. package/dist/mjs/Client/Organizations/Risk.js +10 -0
  23. package/dist/mjs/Client/Organizations/Risk.js.map +1 -0
  24. package/dist/mjs/Client/Organizations/index.d.ts +2 -0
  25. package/dist/mjs/Client/Organizations/index.js +3 -0
  26. package/dist/mjs/Client/Organizations/index.js.map +1 -1
  27. package/dist/mjs/Organization/Creatable.d.ts +2 -0
  28. package/dist/mjs/Organization/Creatable.js +2 -0
  29. package/dist/mjs/Organization/Creatable.js.map +1 -1
  30. package/dist/mjs/Organization/Risk.d.ts +6 -0
  31. package/dist/mjs/Organization/Risk.js +7 -0
  32. package/dist/mjs/Organization/Risk.js.map +1 -0
  33. package/dist/mjs/Organization/index.d.ts +3 -0
  34. package/dist/mjs/Organization/index.js +3 -0
  35. package/dist/mjs/Organization/index.js.map +1 -1
  36. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ import { gracely } from "gracely"
2
+ import { http } from "cloudly-http"
3
+ import { Organization } from "../../Organization"
4
+
5
+ export class Risk {
6
+ constructor(private readonly client: http.Client) {}
7
+ async replace(organization: string, risk: Organization.Risk): Promise<Organization | gracely.Error> {
8
+ return this.client.put<Organization>(`/organization/${organization}/risk`, risk)
9
+ }
10
+ }
@@ -3,13 +3,16 @@ import { http } from "cloudly-http"
3
3
  import { Organization } from "../../Organization"
4
4
  import { Fx } from "./Fx"
5
5
  import { Groups } from "./Groups"
6
+ import { Risk } from "./Risk"
6
7
  import { Rules } from "./Rules"
7
8
 
8
9
  export class Organizations {
10
+ readonly risk: Risk
9
11
  readonly Rules: Rules
10
12
  readonly groups: Groups
11
13
  readonly fx: Fx
12
14
  constructor(private readonly client: http.Client) {
15
+ this.risk = new Risk(this.client)
13
16
  this.Rules = new Rules(this.client)
14
17
  this.groups = new Groups(this.client)
15
18
  this.fx = new Fx(this.client)
@@ -3,10 +3,12 @@ import { Rule } from "../Rule"
3
3
  import { type as ruleType } from "../Rule/type"
4
4
  import { Contact } from "./Contact"
5
5
  import { Fx } from "./Fx"
6
+ import { Risk } from "./Risk"
6
7
 
7
8
  export interface Creatable {
8
9
  name: string
9
10
  code: string
11
+ risk: Risk
10
12
  rules?: Rule[]
11
13
  contact?: Contact.Creatable
12
14
  groups?: string[]
@@ -16,6 +18,7 @@ export namespace Creatable {
16
18
  export const type = isly.object<Creatable>({
17
19
  name: isly.string(),
18
20
  code: isly.string(new RegExp(/^[A-Za-z0-9\-_]+$/)),
21
+ risk: Risk.type,
19
22
  rules: ruleType.array().optional(),
20
23
  contact: Contact.Creatable.type.optional(),
21
24
  groups: isly.string().array().optional(),
@@ -0,0 +1,8 @@
1
+ import { isly } from "isly"
2
+
3
+ export type Risk = typeof Risk.values[number]
4
+
5
+ export namespace Risk {
6
+ export const values = ["low", "medium", "high", "prohibited"] as const
7
+ export const type = isly.string(values)
8
+ }
@@ -6,6 +6,7 @@ import { Changeable as OrganizationChangeable } from "./Changeable"
6
6
  import { Contact as OrganizationContact } from "./Contact"
7
7
  import { Creatable as OrganizationCreatable } from "./Creatable"
8
8
  import { Fx as OrganizationFx } from "./Fx"
9
+ import { Risk as OrganizationRisk } from "./Risk"
9
10
 
10
11
  export interface Organization {
11
12
  name: string
@@ -13,6 +14,7 @@ export interface Organization {
13
14
  realm: Realm
14
15
  rules: Rule[]
15
16
  status: "active" | "inactive"
17
+ risk: Organization.Risk
16
18
  contact?: Organization.Contact
17
19
  groups?: string[]
18
20
  fx?: OrganizationFx
@@ -20,6 +22,7 @@ export interface Organization {
20
22
  export namespace Organization {
21
23
  export import Creatable = OrganizationCreatable
22
24
  export import Changeable = OrganizationChangeable
25
+ export import Risk = OrganizationRisk
23
26
  export import Contact = OrganizationContact
24
27
  export import Fx = OrganizationFx
25
28
  export const type = isly.object<Organization>({
@@ -28,6 +31,7 @@ export namespace Organization {
28
31
  realm: Realm.type,
29
32
  rules: ruleType.array(),
30
33
  status: isly.string(["active", "inactive"]),
34
+ risk: Organization.Risk.type,
31
35
  contact: Contact.type.optional(),
32
36
  groups: isly.string().array().optional(),
33
37
  fx: OrganizationFx.type.optional(),
@@ -0,0 +1,8 @@
1
+ import { gracely } from "gracely";
2
+ import { http } from "cloudly-http";
3
+ import { Organization } from "../../Organization";
4
+ export declare class Risk {
5
+ private readonly client;
6
+ constructor(client: http.Client);
7
+ replace(organization: string, risk: Organization.Risk): Promise<Organization | gracely.Error>;
8
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Risk = void 0;
4
+ class Risk {
5
+ client;
6
+ constructor(client) {
7
+ this.client = client;
8
+ }
9
+ async replace(organization, risk) {
10
+ return this.client.put(`/organization/${organization}/risk`, risk);
11
+ }
12
+ }
13
+ exports.Risk = Risk;
14
+ //# sourceMappingURL=Risk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Risk.js","sourceRoot":"","sources":["../../../../Client/Organizations/Risk.ts"],"names":[],"mappings":";;;AAIA,MAAa,IAAI;IACa;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,OAAO,CAAC,YAAoB,EAAE,IAAuB;QAC1D,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAe,iBAAiB,YAAY,OAAO,EAAE,IAAI,CAAC,CAAA;IACjF,CAAC;CACD;AALD,oBAKC"}
@@ -3,9 +3,11 @@ import { http } from "cloudly-http";
3
3
  import { Organization } from "../../Organization";
4
4
  import { Fx } from "./Fx";
5
5
  import { Groups } from "./Groups";
6
+ import { Risk } from "./Risk";
6
7
  import { Rules } from "./Rules";
7
8
  export declare class Organizations {
8
9
  private readonly client;
10
+ readonly risk: Risk;
9
11
  readonly Rules: Rules;
10
12
  readonly groups: Groups;
11
13
  readonly fx: Fx;
@@ -3,14 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Organizations = void 0;
4
4
  const Fx_1 = require("./Fx");
5
5
  const Groups_1 = require("./Groups");
6
+ const Risk_1 = require("./Risk");
6
7
  const Rules_1 = require("./Rules");
7
8
  class Organizations {
8
9
  client;
10
+ risk;
9
11
  Rules;
10
12
  groups;
11
13
  fx;
12
14
  constructor(client) {
13
15
  this.client = client;
16
+ this.risk = new Risk_1.Risk(this.client);
14
17
  this.Rules = new Rules_1.Rules(this.client);
15
18
  this.groups = new Groups_1.Groups(this.client);
16
19
  this.fx = new Fx_1.Fx(this.client);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Organizations/index.ts"],"names":[],"mappings":";;;AAGA,6BAAyB;AACzB,qCAAiC;AACjC,mCAA+B;AAE/B,MAAa,aAAa;IAII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I,CAAC,IAAI,GAAG,IAAI,WAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACjC,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrC,IAAI,CAAC,EAAE,GAAG,IAAI,OAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAC9B,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,OAGV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmD,eAAe,EAAE,OAAO,CAAC,CAAA;IACnG,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,YAAoC;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAe,eAAe,EAAE,YAAY,CAAC,CAAA;IACrE,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,UAAmC;QAC3D,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,iBAAiB,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;IAC1E,CAAC;IACD,KAAK,CAAC,UAAU,CAAC,YAAoB;QACpC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAe,iBAAiB,YAAY,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,CAAA;IAC3F,CAAC;CACD;AA3BD,sCA2BC"}
@@ -1,9 +1,11 @@
1
1
  import { Rule } from "../Rule";
2
2
  import { Contact } from "./Contact";
3
3
  import { Fx } from "./Fx";
4
+ import { Risk } from "./Risk";
4
5
  export interface Creatable {
5
6
  name: string;
6
7
  code: string;
8
+ risk: Risk;
7
9
  rules?: Rule[];
8
10
  contact?: Contact.Creatable;
9
11
  groups?: string[];
@@ -5,11 +5,13 @@ const isly_1 = require("isly");
5
5
  const type_1 = require("../Rule/type");
6
6
  const Contact_1 = require("./Contact");
7
7
  const Fx_1 = require("./Fx");
8
+ const Risk_1 = require("./Risk");
8
9
  var Creatable;
9
10
  (function (Creatable) {
10
11
  Creatable.type = isly_1.isly.object({
11
12
  name: isly_1.isly.string(),
12
13
  code: isly_1.isly.string(new RegExp(/^[A-Za-z0-9\-_]+$/)),
14
+ risk: Risk_1.Risk.type,
13
15
  rules: type_1.type.array().optional(),
14
16
  contact: Contact_1.Contact.Creatable.type.optional(),
15
17
  groups: isly_1.isly.string().array().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../Organization/Creatable.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAE3B,uCAA+C;AAC/C,uCAAmC;AACnC,6BAAyB;AAUzB,IAAiB,SAAS,CASzB;AATD,WAAiB,SAAS;IACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;QAC1C,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAClD,KAAK,EAAE,WAAQ,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAClC,OAAO,EAAE,iBAAO,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE;QAC1C,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACxC,EAAE,EAAE,OAAE,CAAC,IAAI,CAAC,QAAQ,EAAE;KACtB,CAAC,CAAA;AACH,CAAC,EATgB,SAAS,yBAAT,SAAS,QASzB"}
1
+ {"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../Organization/Creatable.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAE3B,uCAA+C;AAC/C,uCAAmC;AACnC,6BAAyB;AACzB,iCAA6B;AAW7B,IAAiB,SAAS,CAUzB;AAVD,WAAiB,SAAS;IACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;QAC1C,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAClD,IAAI,EAAE,WAAI,CAAC,IAAI;QACf,KAAK,EAAE,WAAQ,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAClC,OAAO,EAAE,iBAAO,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE;QAC1C,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACxC,EAAE,EAAE,OAAE,CAAC,IAAI,CAAC,QAAQ,EAAE;KACtB,CAAC,CAAA;AACH,CAAC,EAVgB,SAAS,yBAAT,SAAS,QAUzB"}
@@ -0,0 +1,6 @@
1
+ import { isly } from "isly";
2
+ export type Risk = typeof Risk.values[number];
3
+ export declare namespace Risk {
4
+ const values: readonly ["low", "medium", "high", "prohibited"];
5
+ const type: isly.Type<"low" | "medium" | "high" | "prohibited">;
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Risk = void 0;
4
+ const isly_1 = require("isly");
5
+ var Risk;
6
+ (function (Risk) {
7
+ Risk.values = ["low", "medium", "high", "prohibited"];
8
+ Risk.type = isly_1.isly.string(Risk.values);
9
+ })(Risk || (exports.Risk = Risk = {}));
10
+ //# sourceMappingURL=Risk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Risk.js","sourceRoot":"","sources":["../../../Organization/Risk.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAI3B,IAAiB,IAAI,CAGpB;AAHD,WAAiB,IAAI;IACP,WAAM,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,CAAU,CAAA;IACzD,SAAI,GAAG,WAAI,CAAC,MAAM,CAAC,KAAA,MAAM,CAAC,CAAA;AACxC,CAAC,EAHgB,IAAI,oBAAJ,IAAI,QAGpB"}
@@ -4,12 +4,14 @@ import { Changeable as OrganizationChangeable } from "./Changeable";
4
4
  import { Contact as OrganizationContact } from "./Contact";
5
5
  import { Creatable as OrganizationCreatable } from "./Creatable";
6
6
  import { Fx as OrganizationFx } from "./Fx";
7
+ import { Risk as OrganizationRisk } from "./Risk";
7
8
  export interface Organization {
8
9
  name: string;
9
10
  code: string;
10
11
  realm: Realm;
11
12
  rules: Rule[];
12
13
  status: "active" | "inactive";
14
+ risk: Organization.Risk;
13
15
  contact?: Organization.Contact;
14
16
  groups?: string[];
15
17
  fx?: OrganizationFx;
@@ -17,6 +19,7 @@ export interface Organization {
17
19
  export declare namespace Organization {
18
20
  export import Creatable = OrganizationCreatable;
19
21
  export import Changeable = OrganizationChangeable;
22
+ export import Risk = OrganizationRisk;
20
23
  export import Contact = OrganizationContact;
21
24
  export import Fx = OrganizationFx;
22
25
  const type: import("isly/dist/cjs/object").IslyObject<Rule.State.Organization, object>;
@@ -8,10 +8,12 @@ const Changeable_1 = require("./Changeable");
8
8
  const Contact_1 = require("./Contact");
9
9
  const Creatable_1 = require("./Creatable");
10
10
  const Fx_1 = require("./Fx");
11
+ const Risk_1 = require("./Risk");
11
12
  var Organization;
12
13
  (function (Organization) {
13
14
  Organization.Creatable = Creatable_1.Creatable;
14
15
  Organization.Changeable = Changeable_1.Changeable;
16
+ Organization.Risk = Risk_1.Risk;
15
17
  Organization.Contact = Contact_1.Contact;
16
18
  Organization.Fx = Fx_1.Fx;
17
19
  Organization.type = isly_1.isly.object({
@@ -20,6 +22,7 @@ var Organization;
20
22
  realm: Realm_1.Realm.type,
21
23
  rules: type_1.type.array(),
22
24
  status: isly_1.isly.string(["active", "inactive"]),
25
+ risk: Organization.Risk.type,
23
26
  contact: Organization.Contact.type.optional(),
24
27
  groups: isly_1.isly.string().array().optional(),
25
28
  fx: Fx_1.Fx.type.optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Organization/index.ts"],"names":[],"mappings":";;;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AAmB,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;KAClC,CAAC,CAAA;AACH,CAAC,EAjBgB,YAAY,4BAAZ,YAAY,QAiB5B"}
@@ -0,0 +1,8 @@
1
+ import { gracely } from "gracely";
2
+ import { http } from "cloudly-http";
3
+ import { Organization } from "../../Organization";
4
+ export declare class Risk {
5
+ private readonly client;
6
+ constructor(client: http.Client);
7
+ replace(organization: string, risk: Organization.Risk): Promise<Organization | gracely.Error>;
8
+ }
@@ -0,0 +1,10 @@
1
+ export class Risk {
2
+ client;
3
+ constructor(client) {
4
+ this.client = client;
5
+ }
6
+ async replace(organization, risk) {
7
+ return this.client.put(`/organization/${organization}/risk`, risk);
8
+ }
9
+ }
10
+ //# sourceMappingURL=Risk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Risk.js","sourceRoot":"","sources":["../../../../Client/Organizations/Risk.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,IAAI;IACa;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,OAAO,CAAC,YAAoB,EAAE,IAAuB;QAC1D,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAe,iBAAiB,YAAY,OAAO,EAAE,IAAI,CAAC,CAAA;IACjF,CAAC;CACD"}
@@ -3,9 +3,11 @@ import { http } from "cloudly-http";
3
3
  import { Organization } from "../../Organization";
4
4
  import { Fx } from "./Fx";
5
5
  import { Groups } from "./Groups";
6
+ import { Risk } from "./Risk";
6
7
  import { Rules } from "./Rules";
7
8
  export declare class Organizations {
8
9
  private readonly client;
10
+ readonly risk: Risk;
9
11
  readonly Rules: Rules;
10
12
  readonly groups: Groups;
11
13
  readonly fx: Fx;
@@ -1,13 +1,16 @@
1
1
  import { Fx } from "./Fx";
2
2
  import { Groups } from "./Groups";
3
+ import { Risk } from "./Risk";
3
4
  import { Rules } from "./Rules";
4
5
  export class Organizations {
5
6
  client;
7
+ risk;
6
8
  Rules;
7
9
  groups;
8
10
  fx;
9
11
  constructor(client) {
10
12
  this.client = client;
13
+ this.risk = new Risk(this.client);
11
14
  this.Rules = new Rules(this.client);
12
15
  this.groups = new Groups(this.client);
13
16
  this.fx = new Fx(this.client);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Organizations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,aAAa;IAII;IAHpB,KAAK,CAAO;IACZ,MAAM,CAAQ;IACd,EAAE,CAAI;IACf,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;QAC/C,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC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,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrC,IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAC9B,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,OAGV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmD,eAAe,EAAE,OAAO,CAAC,CAAA;IACnG,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,YAAoC;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAe,eAAe,EAAE,YAAY,CAAC,CAAA;IACrE,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,UAAmC;QAC3D,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,iBAAiB,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;IAC1E,CAAC;IACD,KAAK,CAAC,UAAU,CAAC,YAAoB;QACpC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAe,iBAAiB,YAAY,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,CAAA;IAC3F,CAAC;CACD"}
@@ -1,9 +1,11 @@
1
1
  import { Rule } from "../Rule";
2
2
  import { Contact } from "./Contact";
3
3
  import { Fx } from "./Fx";
4
+ import { Risk } from "./Risk";
4
5
  export interface Creatable {
5
6
  name: string;
6
7
  code: string;
8
+ risk: Risk;
7
9
  rules?: Rule[];
8
10
  contact?: Contact.Creatable;
9
11
  groups?: string[];
@@ -2,11 +2,13 @@ import { isly } from "isly";
2
2
  import { type as ruleType } from "../Rule/type";
3
3
  import { Contact } from "./Contact";
4
4
  import { Fx } from "./Fx";
5
+ import { Risk } from "./Risk";
5
6
  export var Creatable;
6
7
  (function (Creatable) {
7
8
  Creatable.type = isly.object({
8
9
  name: isly.string(),
9
10
  code: isly.string(new RegExp(/^[A-Za-z0-9\-_]+$/)),
11
+ risk: Risk.type,
10
12
  rules: ruleType.array().optional(),
11
13
  contact: Contact.Creatable.type.optional(),
12
14
  groups: isly.string().array().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../Organization/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AAUzB,MAAM,KAAW,SAAS,CASzB;AATD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAClD,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAClC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE;QAC1C,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACxC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE;KACtB,CAAC,CAAA;AACH,CAAC,EATgB,SAAS,KAAT,SAAS,QASzB"}
1
+ {"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../Organization/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAW7B,MAAM,KAAW,SAAS,CAUzB;AAVD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAClD,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAClC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE;QAC1C,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACxC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE;KACtB,CAAC,CAAA;AACH,CAAC,EAVgB,SAAS,KAAT,SAAS,QAUzB"}
@@ -0,0 +1,6 @@
1
+ import { isly } from "isly";
2
+ export type Risk = typeof Risk.values[number];
3
+ export declare namespace Risk {
4
+ const values: readonly ["low", "medium", "high", "prohibited"];
5
+ const type: isly.Type<"low" | "medium" | "high" | "prohibited">;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { isly } from "isly";
2
+ export var Risk;
3
+ (function (Risk) {
4
+ Risk.values = ["low", "medium", "high", "prohibited"];
5
+ Risk.type = isly.string(Risk.values);
6
+ })(Risk || (Risk = {}));
7
+ //# sourceMappingURL=Risk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Risk.js","sourceRoot":"","sources":["../../../Organization/Risk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,IAAI,CAGpB;AAHD,WAAiB,IAAI;IACP,WAAM,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,CAAU,CAAA;IACzD,SAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAA,MAAM,CAAC,CAAA;AACxC,CAAC,EAHgB,IAAI,KAAJ,IAAI,QAGpB"}
@@ -4,12 +4,14 @@ import { Changeable as OrganizationChangeable } from "./Changeable";
4
4
  import { Contact as OrganizationContact } from "./Contact";
5
5
  import { Creatable as OrganizationCreatable } from "./Creatable";
6
6
  import { Fx as OrganizationFx } from "./Fx";
7
+ import { Risk as OrganizationRisk } from "./Risk";
7
8
  export interface Organization {
8
9
  name: string;
9
10
  code: string;
10
11
  realm: Realm;
11
12
  rules: Rule[];
12
13
  status: "active" | "inactive";
14
+ risk: Organization.Risk;
13
15
  contact?: Organization.Contact;
14
16
  groups?: string[];
15
17
  fx?: OrganizationFx;
@@ -17,6 +19,7 @@ export interface Organization {
17
19
  export declare namespace Organization {
18
20
  export import Creatable = OrganizationCreatable;
19
21
  export import Changeable = OrganizationChangeable;
22
+ export import Risk = OrganizationRisk;
20
23
  export import Contact = OrganizationContact;
21
24
  export import Fx = OrganizationFx;
22
25
  const type: import("isly/dist/cjs/object").IslyObject<Rule.State.Organization, object>;
@@ -5,10 +5,12 @@ import { Changeable as OrganizationChangeable } from "./Changeable";
5
5
  import { Contact as OrganizationContact } from "./Contact";
6
6
  import { Creatable as OrganizationCreatable } from "./Creatable";
7
7
  import { Fx as OrganizationFx } from "./Fx";
8
+ import { Risk as OrganizationRisk } from "./Risk";
8
9
  export var Organization;
9
10
  (function (Organization) {
10
11
  Organization.Creatable = OrganizationCreatable;
11
12
  Organization.Changeable = OrganizationChangeable;
13
+ Organization.Risk = OrganizationRisk;
12
14
  Organization.Contact = OrganizationContact;
13
15
  Organization.Fx = OrganizationFx;
14
16
  Organization.type = isly.object({
@@ -17,6 +19,7 @@ export var Organization;
17
19
  realm: Realm.type,
18
20
  rules: ruleType.array(),
19
21
  status: isly.string(["active", "inactive"]),
22
+ risk: Organization.Risk.type,
20
23
  contact: Organization.Contact.type.optional(),
21
24
  groups: isly.string().array().optional(),
22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,CAAC,QAAQ,EAAE;QAChC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACxC,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE;KAClC,CAAC,CAAA;AACH,CAAC,EAjBgB,YAAY,KAAZ,YAAY,QAiB5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.590",
3
+ "version": "0.1.591",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",