@pax2pay/model-banking 0.1.268 → 0.1.269

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.
@@ -0,0 +1,22 @@
1
+ import { isly } from "isly"
2
+
3
+ export interface Base {
4
+ name: string
5
+ description: string
6
+ type: Base.Kind
7
+ condition: string
8
+ flags: string[]
9
+ groups?: string[]
10
+ }
11
+ export namespace Base {
12
+ export const kinds = ["authorization", "outbound", "inbound"] as const
13
+ export type Kind = typeof kinds[number]
14
+ export const type = isly.object<Base>({
15
+ name: isly.string(),
16
+ description: isly.string(),
17
+ type: isly.string(kinds),
18
+ condition: isly.string(),
19
+ flags: isly.string().array(),
20
+ groups: isly.string().array().optional(),
21
+ })
22
+ }
@@ -1,10 +1,11 @@
1
1
  import { isly } from "isly"
2
+ import { Base } from "./Base"
2
3
 
3
- export interface Other {
4
+ export interface Other extends Base {
4
5
  action: Other.Action
5
6
  }
6
7
  export namespace Other {
7
8
  export const actions = ["review", "reject", "flag"] as const
8
9
  export type Action = typeof actions[number]
9
- export const type = isly.object<Other>({ action: isly.string<Action>(actions) })
10
+ export const type = Base.type.extend<Other>({ action: isly.string<Action>(actions) })
10
11
  }
@@ -1,11 +1,12 @@
1
1
  import { isly } from "isly"
2
+ import { Base } from "./Base"
2
3
 
3
- export interface Score {
4
+ export interface Score extends Base {
4
5
  action: "score"
5
6
  risk: Score.Risk
6
7
  }
7
8
  export namespace Score {
8
9
  export type Risk = number
9
10
  export const Risk = isly.number<Risk>(["positive", "integer"])
10
- export const type = isly.object<Score>({ action: isly.string("score"), risk: Risk })
11
+ export const type = Base.type.extend<Score>({ action: isly.string("score"), risk: Risk })
11
12
  }
@@ -1,35 +1,16 @@
1
1
  import { isly } from "isly"
2
+ import { Base as RuleBase } from "./Base"
2
3
  import { Other as RuleOther } from "./Other"
3
4
  import { Score as RuleScore } from "./Score"
4
5
 
5
- export type Rule = Rule.Base & (Rule.Other | Rule.Score)
6
+ export type Rule = Rule.Other | Rule.Score
6
7
 
7
8
  export namespace Rule {
8
9
  export import Other = RuleOther
9
10
  export import Score = RuleScore
11
+ export import Base = RuleBase
10
12
  export const actions = [...Other.actions, "score"] as const
11
13
  export type Action = typeof actions[number]
12
- export const kinds = ["authorization", "outbound", "inbound"] as const
13
- export type Kind = typeof kinds[number]
14
- export interface Base {
15
- name: string
16
- description: string
17
- type: Rule.Kind
18
- condition: string
19
- flags: string[]
20
- groups?: string[]
21
- }
22
- export const Base = isly.object<Base>({
23
- name: isly.string(),
24
- description: isly.string(),
25
- type: isly.string(kinds),
26
- condition: isly.string(),
27
- flags: isly.string().array(),
28
- groups: isly.string().array().optional(),
29
- })
30
14
  }
31
15
  // Outside of the namespace otherwise the Rule import in Card/Card.Creatable and Organization causes a circular dependency crash
32
- export const type = isly.intersection<Rule, Rule.Base, Rule.Other | Rule.Score>(
33
- Rule.Base,
34
- isly.union<Rule.Other | Rule.Score, Rule.Other, Rule.Score>(Rule.Other.type, Rule.Score.type)
35
- )
16
+ export const type = isly.union<Rule.Other | Rule.Score, Rule.Other, Rule.Score>(Rule.Other.type, Rule.Score.type)
package/Rule/index.ts CHANGED
@@ -8,8 +8,8 @@ export type Rule = ModelRule
8
8
  export namespace Rule {
9
9
  export const actions = ModelRule.actions
10
10
  export type Action = ModelRule.Action
11
- export const kinds = ModelRule.kinds
12
- export type Kind = ModelRule.Kind
11
+ export const kinds = ModelRule.Base.kinds
12
+ export type Kind = ModelRule.Base.Kind
13
13
  export import Other = ModelRule.Other
14
14
  export import Score = ModelRule.Score
15
15
  export import State = RuleState
@@ -15,7 +15,7 @@ export namespace Note {
15
15
  text?: string
16
16
  action?: "approve" | "reject"
17
17
  flags?: string[]
18
- rule?: { [K in keyof Rule]: Rule[K] } // Solves a whack typing issue in the test
18
+ rule?: Rule
19
19
  }
20
20
  export namespace Creatable {
21
21
  export const type = isly.object<Creatable>({
@@ -0,0 +1,14 @@
1
+ import { isly } from "isly";
2
+ export interface Base {
3
+ name: string;
4
+ description: string;
5
+ type: Base.Kind;
6
+ condition: string;
7
+ flags: string[];
8
+ groups?: string[];
9
+ }
10
+ export declare namespace Base {
11
+ const kinds: readonly ["authorization", "outbound", "inbound"];
12
+ type Kind = typeof kinds[number];
13
+ const type: isly.object.ExtendableType<Base>;
14
+ }
@@ -0,0 +1,14 @@
1
+ import { isly } from "isly";
2
+ export var Base;
3
+ (function (Base) {
4
+ Base.kinds = ["authorization", "outbound", "inbound"];
5
+ Base.type = isly.object({
6
+ name: isly.string(),
7
+ description: isly.string(),
8
+ type: isly.string(Base.kinds),
9
+ condition: isly.string(),
10
+ flags: isly.string().array(),
11
+ groups: isly.string().array().optional(),
12
+ });
13
+ })(Base || (Base = {}));
14
+ //# sourceMappingURL=Base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Base.js","sourceRoot":"../","sources":["Rule/Rule/Base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAU3B,MAAM,KAAW,IAAI,CAWpB;AAXD,WAAiB,IAAI;IACP,UAAK,GAAG,CAAC,eAAe,EAAE,UAAU,EAAE,SAAS,CAAU,CAAA;IAEzD,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO;QACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;QAC1B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAA,KAAK,CAAC;QACxB,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;QAC5B,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KACxC,CAAC,CAAA;AACH,CAAC,EAXgB,IAAI,KAAJ,IAAI,QAWpB"}
@@ -1,5 +1,6 @@
1
1
  import { isly } from "isly";
2
- export interface Other {
2
+ import { Base } from "./Base";
3
+ export interface Other extends Base {
3
4
  action: Other.Action;
4
5
  }
5
6
  export declare namespace Other {
@@ -1,7 +1,8 @@
1
1
  import { isly } from "isly";
2
+ import { Base } from "./Base";
2
3
  export var Other;
3
4
  (function (Other) {
4
5
  Other.actions = ["review", "reject", "flag"];
5
- Other.type = isly.object({ action: isly.string(Other.actions) });
6
+ Other.type = Base.type.extend({ action: isly.string(Other.actions) });
6
7
  })(Other || (Other = {}));
7
8
  //# sourceMappingURL=Other.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Other.js","sourceRoot":"../","sources":["Rule/Rule/Other.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAK3B,MAAM,KAAW,KAAK,CAIrB;AAJD,WAAiB,KAAK;IACR,aAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAA;IAE/C,UAAI,GAAG,IAAI,CAAC,MAAM,CAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAS,MAAA,OAAO,CAAC,EAAE,CAAC,CAAA;AACjF,CAAC,EAJgB,KAAK,KAAL,KAAK,QAIrB"}
1
+ {"version":3,"file":"Other.js","sourceRoot":"../","sources":["Rule/Rule/Other.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAK7B,MAAM,KAAW,KAAK,CAIrB;AAJD,WAAiB,KAAK;IACR,aAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAA;IAE/C,UAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAS,MAAA,OAAO,CAAC,EAAE,CAAC,CAAA;AACtF,CAAC,EAJgB,KAAK,KAAL,KAAK,QAIrB"}
@@ -1,5 +1,6 @@
1
1
  import { isly } from "isly";
2
- export interface Score {
2
+ import { Base } from "./Base";
3
+ export interface Score extends Base {
3
4
  action: "score";
4
5
  risk: Score.Risk;
5
6
  }
@@ -1,7 +1,8 @@
1
1
  import { isly } from "isly";
2
+ import { Base } from "./Base";
2
3
  export var Score;
3
4
  (function (Score) {
4
5
  Score.Risk = isly.number(["positive", "integer"]);
5
- Score.type = isly.object({ action: isly.string("score"), risk: Score.Risk });
6
+ Score.type = Base.type.extend({ action: isly.string("score"), risk: Score.Risk });
6
7
  })(Score || (Score = {}));
7
8
  //# sourceMappingURL=Score.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Score.js","sourceRoot":"../","sources":["Rule/Rule/Score.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,KAAK,CAIrB;AAJD,WAAiB,KAAK;IAER,UAAI,GAAG,IAAI,CAAC,MAAM,CAAO,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,CAAA;IACjD,UAAI,GAAG,IAAI,CAAC,MAAM,CAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAA,IAAI,EAAE,CAAC,CAAA;AACrF,CAAC,EAJgB,KAAK,KAAL,KAAK,QAIrB"}
1
+ {"version":3,"file":"Score.js","sourceRoot":"../","sources":["Rule/Rule/Score.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAM7B,MAAM,KAAW,KAAK,CAIrB;AAJD,WAAiB,KAAK;IAER,UAAI,GAAG,IAAI,CAAC,MAAM,CAAO,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,CAAA;IACjD,UAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAA,IAAI,EAAE,CAAC,CAAA;AAC1F,CAAC,EAJgB,KAAK,KAAL,KAAK,QAIrB"}
@@ -1,22 +1,13 @@
1
1
  import { isly } from "isly";
2
+ import { Base as RuleBase } from "./Base";
2
3
  import { Other as RuleOther } from "./Other";
3
4
  import { Score as RuleScore } from "./Score";
4
- export type Rule = Rule.Base & (Rule.Other | Rule.Score);
5
+ export type Rule = Rule.Other | Rule.Score;
5
6
  export declare namespace Rule {
6
7
  export import Other = RuleOther;
7
8
  export import Score = RuleScore;
9
+ export import Base = RuleBase;
8
10
  const actions: readonly ["review", "reject", "flag", "score"];
9
11
  type Action = typeof actions[number];
10
- const kinds: readonly ["authorization", "outbound", "inbound"];
11
- type Kind = typeof kinds[number];
12
- interface Base {
13
- name: string;
14
- description: string;
15
- type: Rule.Kind;
16
- condition: string;
17
- flags: string[];
18
- groups?: string[];
19
- }
20
- const Base: isly.object.ExtendableType<Base>;
21
12
  }
22
- export declare const type: isly.Type<Rule>;
13
+ export declare const type: isly.Type<RuleOther | RuleScore>;
@@ -1,20 +1,13 @@
1
1
  import { isly } from "isly";
2
+ import { Base as RuleBase } from "./Base";
2
3
  import { Other as RuleOther } from "./Other";
3
4
  import { Score as RuleScore } from "./Score";
4
5
  export var Rule;
5
6
  (function (Rule) {
6
7
  Rule.Other = RuleOther;
7
8
  Rule.Score = RuleScore;
9
+ Rule.Base = RuleBase;
8
10
  Rule.actions = [...Rule.Other.actions, "score"];
9
- Rule.kinds = ["authorization", "outbound", "inbound"];
10
- Rule.Base = isly.object({
11
- name: isly.string(),
12
- description: isly.string(),
13
- type: isly.string(Rule.kinds),
14
- condition: isly.string(),
15
- flags: isly.string().array(),
16
- groups: isly.string().array().optional(),
17
- });
18
11
  })(Rule || (Rule = {}));
19
- export const type = isly.intersection(Rule.Base, isly.union(Rule.Other.type, Rule.Score.type));
12
+ export const type = isly.union(Rule.Other.type, Rule.Score.type);
20
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,KAAW,IAAI,CAuBpB;AAvBD,WAAiB,IAAI;IACN,UAAK,GAAG,SAAS,CAAA;IACjB,UAAK,GAAG,SAAS,CAAA;IAClB,YAAO,GAAG,CAAC,GAAG,KAAA,KAAK,CAAC,OAAO,EAAE,OAAO,CAAU,CAAA;IAE9C,UAAK,GAAG,CAAC,eAAe,EAAE,UAAU,EAAE,SAAS,CAAU,CAAA;IAUzD,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO;QACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;QAC1B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAA,KAAK,CAAC;QACxB,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;QAC5B,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KACxC,CAAC,CAAA;AACH,CAAC,EAvBgB,IAAI,KAAJ,IAAI,QAuBpB;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CACpC,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,KAAK,CAAkD,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAC7F,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,KAAW,IAAI,CAMpB;AAND,WAAiB,IAAI;IACN,UAAK,GAAG,SAAS,CAAA;IACjB,UAAK,GAAG,SAAS,CAAA;IACjB,SAAI,GAAG,QAAQ,CAAA;IAChB,YAAO,GAAG,CAAC,GAAG,KAAA,KAAK,CAAC,OAAO,EAAE,OAAO,CAAU,CAAA;AAE5D,CAAC,EANgB,IAAI,KAAJ,IAAI,QAMpB;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAkD,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA"}
@@ -6,12 +6,12 @@ export declare namespace Rule {
6
6
  const actions: readonly ["review", "reject", "flag", "score"];
7
7
  type Action = ModelRule.Action;
8
8
  const kinds: readonly ["authorization", "outbound", "inbound"];
9
- type Kind = ModelRule.Kind;
9
+ type Kind = ModelRule.Base.Kind;
10
10
  export import Other = ModelRule.Other;
11
11
  export import Score = ModelRule.Score;
12
12
  export import State = RuleState;
13
- const type: import("isly/dist/cjs/Type").Type<ModelRule>;
14
- const is: import("isly/dist/cjs/Type").Type.IsFunction<ModelRule>;
13
+ const type: import("isly/dist/cjs/Type").Type<Other | Score>;
14
+ const is: import("isly/dist/cjs/Type").Type.IsFunction<Other | Score>;
15
15
  const flaw: import("isly/dist/cjs/Type").Type.FlawFunction;
16
16
  function evaluate(rules: Rule[], state: State, macros?: Record<string, selectively.Definition>): Record<ModelRule.Other.Action, Rule[]> & {
17
17
  risk?: number;
@@ -5,7 +5,7 @@ import { State as RuleState } from "./State";
5
5
  export var Rule;
6
6
  (function (Rule) {
7
7
  Rule.actions = ModelRule.actions;
8
- Rule.kinds = ModelRule.kinds;
8
+ Rule.kinds = ModelRule.Base.kinds;
9
9
  Rule.Other = ModelRule.Other;
10
10
  Rule.Score = ModelRule.Score;
11
11
  Rule.State = RuleState;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAC5D,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,KAAW,IAAI,CA0CpB;AA1CD,WAAiB,IAAI;IACP,YAAO,GAAG,SAAS,CAAC,OAAO,CAAA;IAE3B,UAAK,GAAG,SAAS,CAAC,KAAK,CAAA;IAEtB,UAAK,GAAG,SAAS,CAAC,KAAK,CAAA;IACvB,UAAK,GAAG,SAAS,CAAC,KAAK,CAAA;IACvB,UAAK,GAAG,SAAS,CAAA;IAClB,SAAI,GAAG,QAAQ,CAAA;IACf,OAAE,GAAG,QAAQ,CAAC,EAAE,CAAA;IAChB,SAAI,GAAG,QAAQ,CAAC,IAAI,CAAA;IACjC,SAAS,OAAO,CAAC,IAAe,EAAE,KAAY,EAAE,MAA+C;QAC9F,OAAO,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,MAAM,EAAE,GAAG,WAAW,EAAE,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;IACvG,CAAC;IACD,SAAS,KAAK,CACb,KAAiC,EACjC,KAAY,EACZ,MAA+C;QAE/C,OAAO,KAAK,CAAC,MAAM,CAClB,CAAC,CAAqB,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO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5G,SAAS,CACT,CAAA;IACF,CAAC;IACD,SAAgB,QAAQ,CACvB,KAAa,EACb,KAAY,EACZ,MAA+C;QAE/C,MAAM,MAAM,GAA+D,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;QAC/G,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,CACpC,CAAC,CAA2D,EAAE,IAAI,EAAE,EAAE;YACrE,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAC1D,OAAO,CAAC,CAAA;QACT,CAAC,EACD,CAAC,EAAE,EAAE,EAAE,CAAC,CACR,CAAA;QACD,KAAK,CAAC,WAAW,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;QACtD,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAA;QACpC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;QACrF,OAAO,MAAM,CAAA;IACd,CAAC;IAjBe,aAAQ,WAiBvB,CAAA;AACF,CAAC,EA1CgB,IAAI,KAAJ,IAAI,QA0CpB"}
@@ -11,9 +11,7 @@ export declare namespace Note {
11
11
  text?: string;
12
12
  action?: "approve" | "reject";
13
13
  flags?: string[];
14
- rule?: {
15
- [K in keyof Rule]: Rule[K];
16
- };
14
+ rule?: Rule;
17
15
  }
18
16
  namespace Creatable {
19
17
  const type: isly.object.ExtendableType<Creatable>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.268",
3
+ "version": "0.1.269",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "@userwidgets/model": "0.8.24",
74
- "authly": "^3.0.11",
74
+ "authly": "^3.0.12",
75
75
  "cloudly-http": "^0.1.7",
76
76
  "cloudly-rest": "^0.1.3",
77
77
  "cryptly": "^4.0.4",