@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.
package/Rule/Rule/index.ts
CHANGED
|
@@ -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
|
|
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
|
+
)
|
package/dist/Rule/Rule/index.js
CHANGED
|
@@ -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;AAVD,WAAiB,IAA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AAM,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"}
|
package/dist/Rule/index.d.ts
CHANGED
|
@@ -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;
|