@pax2pay/model-banking 0.1.350 → 0.1.351

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.
@@ -18,4 +18,8 @@ export namespace Rule {
18
18
  }
19
19
  }
20
20
  // Outside of the namespace otherwise the Rule import in Card/Card.Creatable and Organization causes a circular dependency crash
21
- export const type = isly.union<Rule.Other | Rule.Score, Rule.Other, Rule.Score>(Rule.Other.type, Rule.Score.type)
21
+ export const type = isly.union<Rule.Other | Rule.Score | Rule.Charge, Rule.Other, Rule.Score, Rule.Charge>(
22
+ Rule.Other.type,
23
+ Rule.Score.type,
24
+ Rule.Charge.type
25
+ )
@@ -15,4 +15,4 @@ export declare namespace Rule {
15
15
  const type: isly.Type<"charge" | "review" | "reject" | "flag" | "score">;
16
16
  }
17
17
  }
18
- export declare const type: isly.Type<RuleOther | RuleScore>;
18
+ export declare const type: isly.Type<RuleCharge | RuleOther | RuleScore>;
@@ -15,5 +15,5 @@ export var Rule;
15
15
  Action.type = isly.string(Action.values);
16
16
  })(Action = Rule.Action || (Rule.Action = {}));
17
17
  })(Rule || (Rule = {}));
18
- export const type = isly.union(Rule.Other.type, Rule.Score.type);
18
+ export const type = isly.union(Rule.Other.type, Rule.Score.type, Rule.Charge.type);
19
19
  //# 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,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,KAAW,IAAI,CAUpB;A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AAM;QACT,aAAM,GAAG,CAAC,GAAG,KAAA,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,KAAA,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,KAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAU,CAAA;QACnF,WAAI,GAAG,IAAI,CAAC,MAAM,CAAS,OAAA,MAAM,CAAC,CAAA;IAChD,CAAC,EAHgB,MAAM,GAAN,WAAM,KAAN,WAAM,QAGtB;AACF,CAAC,EAVgB,IAAI,KAAJ,IAAI,QAUpB;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAC7B,IAAI,CAAC,KAAK,CAAC,IAAI,EACf,IAAI,CAAC,KAAK,CAAC,IAAI,EACf,IAAI,CAAC,MAAM,CAAC,IAAI,CAChB,CAAA"}
@@ -10,8 +10,8 @@ export declare namespace Rule {
10
10
  export import Score = ModelRule.Score;
11
11
  export import Charge = ModelRule.Charge;
12
12
  export import State = RuleState;
13
- const type: import("isly/dist/cjs/Type").Type<Other | Score>;
14
- const is: import("isly/dist/cjs/Type").Type.IsFunction<Other | Score>;
13
+ const type: import("isly/dist/cjs/Type").Type<Charge | Other | Score>;
14
+ const is: import("isly/dist/cjs/Type").Type.IsFunction<Charge | 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>): State.Evaluated;
17
17
  function isLegacy(rule: Rule): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.350",
3
+ "version": "0.1.351",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",