@o3r/rules-engine 11.6.0-prerelease.6 → 11.6.0-prerelease.8
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/builders/rules-engine-extractor/helpers/rules-engine.extractor.d.ts +1 -10
- package/builders/rules-engine-extractor/helpers/rules-engine.extractor.d.ts.map +1 -1
- package/builders/rules-engine-extractor/helpers/rules-engine.extractor.interfaces.d.ts +1 -2
- package/builders/rules-engine-extractor/helpers/rules-engine.extractor.interfaces.d.ts.map +1 -1
- package/builders/rules-engine-extractor/helpers/rules-engine.extractor.js +27 -36
- package/builders/rules-engine-extractor/index.d.ts.map +1 -1
- package/builders/rules-engine-extractor/index.js +15 -20
- package/builders/rules-engine-extractor/schema.d.ts.map +1 -1
- package/components/rules-engine/index.d.ts +1 -1
- package/components/rules-engine/index.d.ts.map +1 -1
- package/components/rules-engine/rule-actions/rule-actions-pres.component.d.ts.map +1 -1
- package/components/rules-engine/rule-condition/rule-condition-pres.component.d.ts.map +1 -1
- package/components/rules-engine/rule-key-value/rule-key-value-pres.component.d.ts.map +1 -1
- package/components/rules-engine/rule-tree/rule-tree-pres.component.d.ts.map +1 -1
- package/components/rules-engine/ruleset-history/ruleset-history-pres.component.d.ts.map +1 -1
- package/components/rules-engine/ruleset-history/ruleset-history-pres.module.d.ts.map +1 -1
- package/components/rules-engine/shared/fallback-to.pipe.d.ts.map +1 -1
- package/components/rules-engine/shared/index.d.ts +1 -1
- package/components/rules-engine/shared/index.d.ts.map +1 -1
- package/components/rules-engine/shared/json-or-string.pipe.d.ts.map +1 -1
- package/components/rules-engine/shared/ruleset-history.helper.d.ts.map +1 -1
- package/devkit/rules-engine-devkit.interface.d.ts.map +1 -1
- package/devkit/rules-engine-devtools.console.service.d.ts.map +1 -1
- package/devkit/rules-engine-devtools.message.service.d.ts +1 -1
- package/devkit/rules-engine-devtools.message.service.d.ts.map +1 -1
- package/devkit/rules-engine-devtools.module.d.ts.map +1 -1
- package/devkit/rules-engine-devtools.service.d.ts.map +1 -1
- package/devkit/rules-engine-devtools.token.d.ts.map +1 -1
- package/engine/debug/engine.debug.d.ts +0 -2
- package/engine/debug/engine.debug.d.ts.map +1 -1
- package/engine/debug/helpers.d.ts.map +1 -1
- package/engine/engine.d.ts +0 -3
- package/engine/engine.d.ts.map +1 -1
- package/engine/engine.interface.d.ts.map +1 -1
- package/engine/fact/fact.interfaces.d.ts.map +1 -1
- package/engine/helpers/filter-ruleset-event.operator.d.ts.map +1 -1
- package/engine/operator/operator.helpers.d.ts +1 -3
- package/engine/operator/operator.helpers.d.ts.map +1 -1
- package/engine/operator/operator.interface.d.ts.map +1 -1
- package/engine/operator/operators/array-based.operators.d.ts.map +1 -1
- package/engine/operator/operators/basic.operators.d.ts.map +1 -1
- package/engine/operator/operators/date-based.operators.d.ts.map +1 -1
- package/engine/operator/operators/index.d.ts +2 -2
- package/engine/operator/operators/index.d.ts.map +1 -1
- package/engine/operator/operators/number-based.operators.d.ts.map +1 -1
- package/engine/ruleset-executor.d.ts +7 -2
- package/engine/ruleset-executor.d.ts.map +1 -1
- package/engine/structure.d.ts.map +1 -1
- package/esm2022/components/rules-engine/index.mjs +2 -2
- package/esm2022/components/rules-engine/rule-actions/rule-actions-pres.component.mjs +2 -2
- package/esm2022/components/rules-engine/rule-condition/rule-condition-pres.component.mjs +3 -4
- package/esm2022/components/rules-engine/rule-key-value/rule-key-value-pres.component.mjs +6 -6
- package/esm2022/components/rules-engine/rule-tree/rule-tree-pres.component.mjs +2 -2
- package/esm2022/components/rules-engine/ruleset-history/ruleset-history-pres.component.mjs +7 -7
- package/esm2022/components/rules-engine/ruleset-history/ruleset-history-pres.module.mjs +9 -9
- package/esm2022/components/rules-engine/shared/fallback-to.pipe.mjs +3 -3
- package/esm2022/components/rules-engine/shared/index.mjs +2 -2
- package/esm2022/components/rules-engine/shared/json-or-string.pipe.mjs +2 -2
- package/esm2022/components/rules-engine/shared/ruleset-history.helper.mjs +5 -5
- package/esm2022/devkit/index.mjs +1 -1
- package/esm2022/devkit/rules-engine-devkit.interface.mjs +4 -4
- package/esm2022/devkit/rules-engine-devtools.console.service.mjs +5 -7
- package/esm2022/devkit/rules-engine-devtools.message.service.mjs +12 -12
- package/esm2022/devkit/rules-engine-devtools.module.mjs +7 -7
- package/esm2022/devkit/rules-engine-devtools.service.mjs +16 -16
- package/esm2022/devkit/rules-engine-devtools.token.mjs +2 -2
- package/esm2022/engine/debug/engine.debug.mjs +16 -18
- package/esm2022/engine/debug/helpers.mjs +11 -11
- package/esm2022/engine/engine.interface.mjs +1 -1
- package/esm2022/engine/engine.mjs +12 -15
- package/esm2022/engine/fact/fact.interfaces.mjs +1 -1
- package/esm2022/engine/helpers/filter-ruleset-event.operator.mjs +6 -6
- package/esm2022/engine/operator/operator.helpers.mjs +15 -17
- package/esm2022/engine/operator/operator.interface.mjs +1 -1
- package/esm2022/engine/operator/operators/array-based.operators.mjs +11 -11
- package/esm2022/engine/operator/operators/basic.operators.mjs +8 -8
- package/esm2022/engine/operator/operators/date-based.operators.mjs +3 -3
- package/esm2022/engine/operator/operators/index.mjs +6 -6
- package/esm2022/engine/operator/operators/number-based.operators.mjs +2 -2
- package/esm2022/engine/rule/index.mjs +1 -1
- package/esm2022/engine/rule/rule.helpers.mjs +1 -1
- package/esm2022/engine/ruleset-executor.mjs +27 -23
- package/esm2022/engine/structure.mjs +1 -1
- package/esm2022/fact/fact.abstract-service.mjs +1 -1
- package/esm2022/fact/reserved.facts.mjs +1 -1
- package/esm2022/fixtures/jasmine/rules-engine.runner.service.fixture.jasmine.mjs +1 -1
- package/esm2022/fixtures/jest/rules-engine.runner.service.fixture.jest.mjs +1 -1
- package/esm2022/inner-facts/current-time/current-time-fact.service.mjs +5 -5
- package/esm2022/inner-facts/current-time/current-time.facts.mjs +1 -1
- package/esm2022/inner-facts/current-time/index.mjs +2 -2
- package/esm2022/interfaces/action.interfaces.mjs +1 -1
- package/esm2022/interfaces/index.mjs +1 -1
- package/esm2022/public_api.mjs +1 -2
- package/esm2022/services/index.mjs +2 -2
- package/esm2022/services/rules-engine.token.mjs +2 -2
- package/esm2022/services/runner/rules-engine.runner.module.mjs +7 -7
- package/esm2022/services/runner/rules-engine.runner.service.mjs +10 -10
- package/esm2022/stores/rulesets/rulesets.actions.mjs +3 -3
- package/esm2022/stores/rulesets/rulesets.effect.mjs +7 -7
- package/esm2022/stores/rulesets/rulesets.module.mjs +7 -7
- package/esm2022/stores/rulesets/rulesets.reducer.mjs +4 -4
- package/esm2022/stores/rulesets/rulesets.selectors.mjs +10 -10
- package/esm2022/stores/rulesets/rulesets.state.mjs +1 -1
- package/esm2022/stores/rulesets/rulesets.sync.mjs +3 -3
- package/fact/fact.abstract-service.d.ts.map +1 -1
- package/fact/reserved.facts.d.ts.map +1 -1
- package/fesm2022/o3r-rules-engine-fixtures-jasmine.mjs.map +1 -1
- package/fesm2022/o3r-rules-engine-fixtures-jest.mjs.map +1 -1
- package/fesm2022/o3r-rules-engine.mjs +248 -254
- package/fesm2022/o3r-rules-engine.mjs.map +1 -1
- package/fixtures/jasmine/rules-engine.runner.service.fixture.jasmine.d.ts.map +1 -1
- package/fixtures/jest/rules-engine.runner.service.fixture.jest.d.ts.map +1 -1
- package/fixtures/jest/rules-engine.runner.service.fixture.jest.js.map +1 -1
- package/inner-facts/current-time/current-time-fact.service.d.ts +1 -1
- package/inner-facts/current-time/current-time-fact.service.d.ts.map +1 -1
- package/inner-facts/current-time/current-time.facts.d.ts.map +1 -1
- package/inner-facts/current-time/index.d.ts +1 -1
- package/inner-facts/current-time/index.d.ts.map +1 -1
- package/interfaces/action.interfaces.d.ts.map +1 -1
- package/package.json +5 -5
- package/public_api.d.ts +0 -1
- package/public_api.d.ts.map +1 -1
- package/schemas/rulesets.schema.json +20 -0
- package/schematics/cms-adapter/index.d.ts.map +1 -1
- package/schematics/cms-adapter/index.js +1 -3
- package/schematics/facts-service/index.d.ts.map +1 -1
- package/schematics/facts-service/index.js +2 -2
- package/schematics/facts-service/schema.d.ts.map +1 -1
- package/schematics/ng-add/helpers/devtools-registration.d.ts +0 -2
- package/schematics/ng-add/helpers/devtools-registration.d.ts.map +1 -1
- package/schematics/ng-add/helpers/devtools-registration.js +2 -4
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +8 -11
- package/schematics/ng-add/schema.d.ts.map +1 -1
- package/schematics/ng-update/index.d.ts +0 -4
- package/schematics/ng-update/index.d.ts.map +1 -1
- package/schematics/ng-update/index.js +0 -4
- package/schematics/ng-update/v10.0/action-module-split.d.ts.map +1 -1
- package/schematics/ng-update/v10.0/action-module-split.js +0 -2
- package/schematics/ng-update/v11.6/use-register-action-handlers.d.ts.map +1 -1
- package/schematics/operator/index.d.ts.map +1 -1
- package/schematics/operator/index.js +2 -2
- package/schematics/operator/schema.d.ts.map +1 -1
- package/schematics/rules-engine-to-component/index.d.ts.map +1 -1
- package/schematics/rules-engine-to-component/schema.d.ts.map +1 -1
- package/services/index.d.ts +1 -1
- package/services/index.d.ts.map +1 -1
- package/services/rules-engine.token.d.ts.map +1 -1
- package/services/runner/rules-engine.runner.module.d.ts.map +1 -1
- package/services/runner/rules-engine.runner.service.d.ts +2 -2
- package/services/runner/rules-engine.runner.service.d.ts.map +1 -1
- package/stores/rulesets/rulesets.actions.d.ts.map +1 -1
- package/stores/rulesets/rulesets.effect.d.ts.map +1 -1
- package/stores/rulesets/rulesets.module.d.ts.map +1 -1
- package/stores/rulesets/rulesets.reducer.d.ts.map +1 -1
- package/stores/rulesets/rulesets.selectors.d.ts.map +1 -1
- package/stores/rulesets/rulesets.state.d.ts.map +1 -1
- package/stores/rulesets/rulesets.sync.d.ts.map +1 -1
|
@@ -14,7 +14,7 @@ export declare class RulesEngineExtractor {
|
|
|
14
14
|
/** Interface of an action definition */
|
|
15
15
|
static readonly OPERATOR_ACTIONS_INTERFACE = "RulesEngineAction";
|
|
16
16
|
/** Reserved fact names that will be filtered out of metadata */
|
|
17
|
-
static readonly RESERVED_FACT_NAMES:
|
|
17
|
+
static readonly RESERVED_FACT_NAMES: readonly string[];
|
|
18
18
|
/** TSConfig to parse the code */
|
|
19
19
|
private readonly tsconfig;
|
|
20
20
|
/** Instance of the comment parser */
|
|
@@ -22,7 +22,6 @@ export declare class RulesEngineExtractor {
|
|
|
22
22
|
constructor(tsconfigPath: string, basePath: string, logger: LoggerApi);
|
|
23
23
|
/**
|
|
24
24
|
* Extract type definition of a type reference into schema file
|
|
25
|
-
*
|
|
26
25
|
* @param type Name of the type to extract
|
|
27
26
|
* @param sourceFile path to the code source file
|
|
28
27
|
*/
|
|
@@ -30,14 +29,12 @@ export declare class RulesEngineExtractor {
|
|
|
30
29
|
/**
|
|
31
30
|
* Extract the type node used to generate the type metadata.
|
|
32
31
|
* In the case of an array, it will look for the child node with the relevant information
|
|
33
|
-
*
|
|
34
32
|
* @param typeNode
|
|
35
33
|
* @private
|
|
36
34
|
*/
|
|
37
35
|
private extractTypeNode;
|
|
38
36
|
/**
|
|
39
37
|
* Return the list of types matching the type node. If the type is not supported, it will be replaced with an unknown entry
|
|
40
|
-
*
|
|
41
38
|
* @param type
|
|
42
39
|
* @param source
|
|
43
40
|
* @private
|
|
@@ -48,7 +45,6 @@ export declare class RulesEngineExtractor {
|
|
|
48
45
|
* If it is an array, it will be -1
|
|
49
46
|
* If it is an unknown type (or any), it will return 0
|
|
50
47
|
* If it is any other type of object it will return 1
|
|
51
|
-
*
|
|
52
48
|
* @param type
|
|
53
49
|
* @private
|
|
54
50
|
*/
|
|
@@ -57,7 +53,6 @@ export declare class RulesEngineExtractor {
|
|
|
57
53
|
* Construct a metadata object that will describe the operator hand type as a list of types and a nbValue describing
|
|
58
54
|
* the structure of the operand
|
|
59
55
|
* nbValue reflects whether the operand support a single object (1), an array (-1), both (0) or a n-tuple (n)
|
|
60
|
-
*
|
|
61
56
|
* @param type
|
|
62
57
|
* @param source
|
|
63
58
|
* @param nbValue
|
|
@@ -66,7 +61,6 @@ export declare class RulesEngineExtractor {
|
|
|
66
61
|
private extractComplexTypeData;
|
|
67
62
|
/**
|
|
68
63
|
* Extract facts from source code
|
|
69
|
-
*
|
|
70
64
|
* @param sourceFile path to the code source file
|
|
71
65
|
* @param schemaFolderFullPath full path to the schema folder
|
|
72
66
|
* @param schemaFolderRelativePath path to the schema folder from the metadata file
|
|
@@ -74,19 +68,16 @@ export declare class RulesEngineExtractor {
|
|
|
74
68
|
extractFacts(sourceFile: string, schemaFolderFullPath: string, schemaFolderRelativePath: string): Promise<MetadataFact[]>;
|
|
75
69
|
/**
|
|
76
70
|
* Check if typescript type node is a native type or a list of native element
|
|
77
|
-
*
|
|
78
71
|
* @param type
|
|
79
72
|
*/
|
|
80
73
|
isNativeType(type: ts.TypeNode): boolean;
|
|
81
74
|
/**
|
|
82
75
|
* Extract operators from source code
|
|
83
|
-
*
|
|
84
76
|
* @param sourceFile path to the code source file
|
|
85
77
|
*/
|
|
86
78
|
extractOperators(sourceFile: string): MetadataOperator[];
|
|
87
79
|
/**
|
|
88
80
|
* Not used for the moment, kept for later updates
|
|
89
|
-
*
|
|
90
81
|
* @param sourceFile
|
|
91
82
|
*/
|
|
92
83
|
extractActions(sourceFile: string): Action[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-engine.extractor.d.ts","sourceRoot":"","sources":["../../../../builders/rules-engine-extractor/helpers/rules-engine.extractor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rules-engine.extractor.d.ts","sourceRoot":"","sources":["../../../../builders/rules-engine-extractor/helpers/rules-engine.extractor.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,SAAS,EACV,MAAM,iCAAiC,CAAC;AAkBzC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EACL,MAAM,EAMN,YAAY,EACZ,gBAAgB,EAIjB,MAAM,qCAAqC,CAAC;AAE7C;;GAEG;AACH,qBAAa,oBAAoB;IAgBG,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAAU,OAAO,CAAC,QAAQ,CAAC,MAAM;IAf5F,qCAAqC;IACrC,gBAAuB,0BAA0B,qBAAqB;IACtE,0CAA0C;IAC1C,gBAAuB,+BAA+B,WAAiC;IACvF,wCAAwC;IACxC,gBAAuB,0BAA0B,uBAAuB;IACxE,gEAAgE;IAChE,gBAAuB,mBAAmB,EAAE,SAAS,MAAM,EAAE,CAAmB;IAEhF,kCAAkC;IAClC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAM;IAE/B,qCAAqC;IACrC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAyB;gBAE3C,YAAY,EAAE,MAAM,EAAmB,QAAQ,EAAE,MAAM,EAAmB,MAAM,EAAE,SAAS;IAKvG;;;;OAIG;YACW,cAAc;IA4B5B;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IAMvB;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAiB9B;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;IAStB;;;;;;;;OAQG;IACH,OAAO,CAAC,sBAAsB;IA0B9B;;;;;OAKG;IACU,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAmGtI;;;OAGG;IACI,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ;IAMrC;;;OAGG;IACI,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB,EAAE;IAoE/D;;;OAGG;IACI,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE;CAkDpD"}
|
|
@@ -49,11 +49,10 @@ export interface MetadataOperand {
|
|
|
49
49
|
types: (MetadataOperatorSupportedTypes | 'unknown')[];
|
|
50
50
|
/**
|
|
51
51
|
* List of items supported by the operand
|
|
52
|
-
*
|
|
53
52
|
* @description
|
|
54
53
|
* -1 for an array with undefined number of items
|
|
55
54
|
* 1 for an non-array item
|
|
56
|
-
|
|
55
|
+
*/
|
|
57
56
|
nbValues: number;
|
|
58
57
|
}
|
|
59
58
|
/** Operator as specified in metadata */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-engine.extractor.interfaces.d.ts","sourceRoot":"","sources":["../../../../builders/rules-engine-extractor/helpers/rules-engine.extractor.interfaces.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAE/F,yBAAyB;AACzB,UAAU,gBAAgB;IACxB,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,iCAAiC;AACjC,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,kBAAkB;IAClB,IAAI,EAAE,QAAQ,CAAC;IACf,2CAA2C;IAC3C,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,mCAAmC;AACnC,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D,kBAAkB;IAClB,IAAI,EAAE,QAAQ,CAAC;IACf,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,kCAAkC;AAClC,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD,kBAAkB;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,qBAAqB;
|
|
1
|
+
{"version":3,"file":"rules-engine.extractor.interfaces.d.ts","sourceRoot":"","sources":["../../../../builders/rules-engine-extractor/helpers/rules-engine.extractor.interfaces.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAE/F,yBAAyB;AACzB,UAAU,gBAAgB;IACxB,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,iCAAiC;AACjC,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,kBAAkB;IAClB,IAAI,EAAE,QAAQ,CAAC;IACf,2CAA2C;IAC3C,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,mCAAmC;AACnC,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D,kBAAkB;IAClB,IAAI,EAAE,QAAQ,CAAC;IACf,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,kCAAkC;AAClC,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD,kBAAkB;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,qBAAqB;IACrB,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,6DAA6D;AAC7D,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD,kBAAkB;IAClB,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;CAChD;AAED,+CAA+C;AAC/C,MAAM,MAAM,YAAY,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,gBAAgB,GAAG,iBAAiB,CAAC;AACzG,oCAAoC;AACpC,MAAM,MAAM,8BAA8B,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjG,4GAA4G;AAC5G,eAAO,MAAM,wBAAwB,EAAE,8BAA8B,EAA4C,CAAC;AAElH,0CAA0C;AAC1C,eAAO,MAAM,iBAAiB,EAAE,8BAA8B,EAAsD,CAAC;AAErH,+CAA+C;AAC/C,MAAM,WAAW,eAAe;IAC9B,iDAAiD;IACjD,KAAK,EAAE,CAAC,8BAA8B,GAAG,SAAS,CAAC,EAAE,CAAC;IACtD;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wCAAwC;AACxC,MAAM,WAAW,gBAAgB;IAC/B,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,qCAAqC;IACrC,WAAW,EAAE,eAAe,CAAC;IAC7B,sCAAsC;IACtC,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,6DAA6D;IAC7D,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;CACrC;AAED,sCAAsC;AACtC,MAAM,WAAW,MAAM;IACrB,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC"}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RulesEngineExtractor = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const node_fs_1 = require("node:fs");
|
|
6
|
+
const path = tslib_1.__importStar(require("node:path"));
|
|
5
7
|
const core_1 = require("@angular-devkit/core");
|
|
6
8
|
const extractors_1 = require("@o3r/extractors");
|
|
7
9
|
const schematics_1 = require("@o3r/schematics");
|
|
8
|
-
const node_fs_1 = require("node:fs");
|
|
9
10
|
const globby_1 = tslib_1.__importDefault(require("globby"));
|
|
10
|
-
const path = tslib_1.__importStar(require("node:path"));
|
|
11
11
|
const rxjs_1 = require("rxjs");
|
|
12
12
|
const operators_1 = require("rxjs/operators");
|
|
13
13
|
const ts = tslib_1.__importStar(require("typescript"));
|
|
@@ -30,21 +30,21 @@ class RulesEngineExtractor {
|
|
|
30
30
|
this.logger = logger;
|
|
31
31
|
/** Instance of the comment parser */
|
|
32
32
|
this.commentParser = new extractors_1.ConfigDocParser();
|
|
33
|
-
const { config } = ts.readConfigFile(tsconfigPath, ts.sys.readFile);
|
|
33
|
+
const { config } = ts.readConfigFile(tsconfigPath, (p) => ts.sys.readFile(p));
|
|
34
34
|
this.tsconfig = config;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Extract type definition of a type reference into schema file
|
|
38
|
-
*
|
|
39
38
|
* @param type Name of the type to extract
|
|
40
39
|
* @param sourceFile path to the code source file
|
|
41
40
|
*/
|
|
42
41
|
async extractTypeRef(type, sourceFile) {
|
|
43
|
-
const internalLibFiles = this.tsconfig.extraOptions?.otterSubModuleRefs?.length > 0
|
|
44
|
-
await (0, rxjs_1.lastValueFrom)((0, rxjs_1.zip)(...(this.tsconfig.extraOptions?.otterSubModuleRefs).map((value) => (0, globby_1.default)(value))).pipe((0, operators_1.map)((globFiles) => globFiles.reduce((acc, files) => [
|
|
42
|
+
const internalLibFiles = this.tsconfig.extraOptions?.otterSubModuleRefs?.length > 0
|
|
43
|
+
? await (0, rxjs_1.lastValueFrom)((0, rxjs_1.zip)(...(this.tsconfig.extraOptions?.otterSubModuleRefs).map((value) => (0, globby_1.default)(value))).pipe((0, operators_1.map)((globFiles) => globFiles.reduce((acc, files) => [
|
|
45
44
|
...acc,
|
|
46
|
-
...files.map(f => path.resolve(f))
|
|
47
|
-
], []))))
|
|
45
|
+
...files.map((f) => path.resolve(f))
|
|
46
|
+
], []))))
|
|
47
|
+
: [];
|
|
48
48
|
internalLibFiles.push(sourceFile);
|
|
49
49
|
const program = tjs.getProgramFromFiles(internalLibFiles, this.tsconfig.compilerOptions, this.basePath);
|
|
50
50
|
const settings = {
|
|
@@ -64,18 +64,16 @@ class RulesEngineExtractor {
|
|
|
64
64
|
/**
|
|
65
65
|
* Extract the type node used to generate the type metadata.
|
|
66
66
|
* In the case of an array, it will look for the child node with the relevant information
|
|
67
|
-
*
|
|
68
67
|
* @param typeNode
|
|
69
68
|
* @private
|
|
70
69
|
*/
|
|
71
70
|
extractTypeNode(typeNode) {
|
|
72
|
-
return ts.isArrayTypeNode(typeNode)
|
|
73
|
-
(ts.isParenthesizedTypeNode(typeNode.elementType) ? typeNode.elementType.type : typeNode.elementType)
|
|
74
|
-
typeNode;
|
|
71
|
+
return ts.isArrayTypeNode(typeNode)
|
|
72
|
+
? (ts.isParenthesizedTypeNode(typeNode.elementType) ? typeNode.elementType.type : typeNode.elementType)
|
|
73
|
+
: typeNode;
|
|
75
74
|
}
|
|
76
75
|
/**
|
|
77
76
|
* Return the list of types matching the type node. If the type is not supported, it will be replaced with an unknown entry
|
|
78
|
-
*
|
|
79
77
|
* @param type
|
|
80
78
|
* @param source
|
|
81
79
|
* @private
|
|
@@ -103,7 +101,6 @@ class RulesEngineExtractor {
|
|
|
103
101
|
* If it is an array, it will be -1
|
|
104
102
|
* If it is an unknown type (or any), it will return 0
|
|
105
103
|
* If it is any other type of object it will return 1
|
|
106
|
-
*
|
|
107
104
|
* @param type
|
|
108
105
|
* @private
|
|
109
106
|
*/
|
|
@@ -120,7 +117,6 @@ class RulesEngineExtractor {
|
|
|
120
117
|
* Construct a metadata object that will describe the operator hand type as a list of types and a nbValue describing
|
|
121
118
|
* the structure of the operand
|
|
122
119
|
* nbValue reflects whether the operand support a single object (1), an array (-1), both (0) or a n-tuple (n)
|
|
123
|
-
*
|
|
124
120
|
* @param type
|
|
125
121
|
* @param source
|
|
126
122
|
* @param nbValue
|
|
@@ -151,7 +147,6 @@ class RulesEngineExtractor {
|
|
|
151
147
|
}
|
|
152
148
|
/**
|
|
153
149
|
* Extract facts from source code
|
|
154
|
-
*
|
|
155
150
|
* @param sourceFile path to the code source file
|
|
156
151
|
* @param schemaFolderFullPath full path to the schema folder
|
|
157
152
|
* @param schemaFolderRelativePath path to the schema folder from the metadata file
|
|
@@ -163,10 +158,10 @@ class RulesEngineExtractor {
|
|
|
163
158
|
source?.forEachChild((node) => {
|
|
164
159
|
if (ts.isInterfaceDeclaration(node) && node.heritageClauses?.some((clause) => clause.types.some((type) => type.getText(source) === RulesEngineExtractor.FACT_DEFINITIONS_INTERFACE))) {
|
|
165
160
|
facts.push(...node.members
|
|
166
|
-
.filter(ts.isPropertySignature)
|
|
161
|
+
.filter((memberNode) => ts.isPropertySignature(memberNode))
|
|
167
162
|
.filter((prop) => {
|
|
168
163
|
const name = prop.name.getText(source);
|
|
169
|
-
if (RulesEngineExtractor.RESERVED_FACT_NAMES.
|
|
164
|
+
if (RulesEngineExtractor.RESERVED_FACT_NAMES.includes(name)) {
|
|
170
165
|
this.logger.error(`Fact named "${name}" found in ${sourceFile} has a reserved name and will be ignored by the extractor, please consider renaming it.`);
|
|
171
166
|
return false;
|
|
172
167
|
}
|
|
@@ -175,14 +170,13 @@ class RulesEngineExtractor {
|
|
|
175
170
|
.map(async (prop) => {
|
|
176
171
|
const name = prop.name.getText(source);
|
|
177
172
|
const description = this.commentParser.parseConfigDocFromNode(source, prop)?.description;
|
|
178
|
-
|
|
179
|
-
if (!prop.type || !this.isNativeType(prop.type) && !ts.isTypeReferenceNode(prop.type) && !ts.isUnionTypeNode(prop.type)) {
|
|
173
|
+
if (!prop.type || (!this.isNativeType(prop.type) && !ts.isTypeReferenceNode(prop.type) && !ts.isUnionTypeNode(prop.type))) {
|
|
180
174
|
throw new schematics_1.O3rCliError(`The fact ${name} has an unsupported type "${prop.type?.getText(source) || 'unknown'}" in ${sourceFile}`);
|
|
181
175
|
}
|
|
182
176
|
let mainType = prop.type;
|
|
183
177
|
if (ts.isUnionTypeNode(mainType)) {
|
|
184
|
-
const mainTypes = mainType.types.filter((t) => t.kind !== ts.SyntaxKind.NullKeyword && t.kind !== ts.SyntaxKind.UndefinedKeyword
|
|
185
|
-
!(ts.isLiteralTypeNode(t) && (t.literal.kind === ts.SyntaxKind.NullKeyword || t.literal.kind === ts.SyntaxKind.UndefinedKeyword)));
|
|
178
|
+
const mainTypes = mainType.types.filter((t) => t.kind !== ts.SyntaxKind.NullKeyword && t.kind !== ts.SyntaxKind.UndefinedKeyword
|
|
179
|
+
&& !(ts.isLiteralTypeNode(t) && (t.literal.kind === ts.SyntaxKind.NullKeyword || t.literal.kind === ts.SyntaxKind.UndefinedKeyword)));
|
|
186
180
|
if (mainTypes.length !== 1) {
|
|
187
181
|
throw new schematics_1.O3rCliError(`The fact ${name} has an unsupported union-type "${prop.type?.getText(source) || 'unknown'}" in ${sourceFile}`);
|
|
188
182
|
}
|
|
@@ -207,7 +201,7 @@ class RulesEngineExtractor {
|
|
|
207
201
|
await node_fs_1.promises.writeFile(path.resolve(schemaFolderFullPath, schemaFile), JSON.stringify(schema, null, 2));
|
|
208
202
|
fact = {
|
|
209
203
|
...fact,
|
|
210
|
-
schemaFile: path.join(schemaFolderRelativePath, schemaFile).replace(
|
|
204
|
+
schemaFile: path.join(schemaFolderRelativePath, schemaFile).replace(/\\/g, '/')
|
|
211
205
|
};
|
|
212
206
|
}
|
|
213
207
|
else if (schema.type === 'array') {
|
|
@@ -221,7 +215,7 @@ class RulesEngineExtractor {
|
|
|
221
215
|
fact = {
|
|
222
216
|
...fact,
|
|
223
217
|
type: 'string',
|
|
224
|
-
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
218
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string -- convert non-null values to string
|
|
225
219
|
enum: schema.enum?.filter((value) => !!value).map((v) => v.toString())
|
|
226
220
|
};
|
|
227
221
|
}
|
|
@@ -251,15 +245,13 @@ class RulesEngineExtractor {
|
|
|
251
245
|
}
|
|
252
246
|
/**
|
|
253
247
|
* Check if typescript type node is a native type or a list of native element
|
|
254
|
-
*
|
|
255
248
|
* @param type
|
|
256
249
|
*/
|
|
257
250
|
isNativeType(type) {
|
|
258
|
-
return [ts.SyntaxKind.BooleanKeyword, ts.SyntaxKind.NumberKeyword, ts.SyntaxKind.StringKeyword].some((typeKind) => typeKind === type.kind || ts.isArrayTypeNode(type) && type.elementType.kind === typeKind);
|
|
251
|
+
return [ts.SyntaxKind.BooleanKeyword, ts.SyntaxKind.NumberKeyword, ts.SyntaxKind.StringKeyword].some((typeKind) => typeKind === type.kind || (ts.isArrayTypeNode(type) && type.elementType.kind === typeKind));
|
|
259
252
|
}
|
|
260
253
|
/**
|
|
261
254
|
* Extract operators from source code
|
|
262
|
-
*
|
|
263
255
|
* @param sourceFile path to the code source file
|
|
264
256
|
*/
|
|
265
257
|
extractOperators(sourceFile) {
|
|
@@ -269,7 +261,7 @@ class RulesEngineExtractor {
|
|
|
269
261
|
source?.forEachChild((node) => {
|
|
270
262
|
if (ts.isVariableStatement(node)) {
|
|
271
263
|
const operatorDeclarations = node.declarationList.declarations.filter((declaration) => !!declaration.type && ts.isTypeReferenceNode(declaration.type) && RulesEngineExtractor.OPERATOR_DEFINITIONS_INTERFACES.includes(declaration.type.typeName.getText(source)));
|
|
272
|
-
if (
|
|
264
|
+
if (operatorDeclarations.length === 0) {
|
|
273
265
|
return;
|
|
274
266
|
}
|
|
275
267
|
operatorDeclarations.forEach((declaration) => {
|
|
@@ -311,7 +303,7 @@ class RulesEngineExtractor {
|
|
|
311
303
|
const typeData = this.extractComplexTypeData(typeNode, source, operandObject.nbValues);
|
|
312
304
|
operandObject.nbValues = typeData.nbValue;
|
|
313
305
|
operandObject.types = typeData.types;
|
|
314
|
-
if (operandObject.types.some((type) => type !== 'unknown' && rules_engine_extractor_interfaces_1.allSupportedTypes.
|
|
306
|
+
if (operandObject.types.some((type) => type !== 'unknown' && !rules_engine_extractor_interfaces_1.allSupportedTypes.includes(type))) {
|
|
315
307
|
this.logger.warn(`Operator ${operator.id} has an unsupported type in operand ${operand}: "${operandObject.types.join(', ')}"`);
|
|
316
308
|
operandObject.types = ['unknown'];
|
|
317
309
|
}
|
|
@@ -325,7 +317,6 @@ class RulesEngineExtractor {
|
|
|
325
317
|
}
|
|
326
318
|
/**
|
|
327
319
|
* Not used for the moment, kept for later updates
|
|
328
|
-
*
|
|
329
320
|
* @param sourceFile
|
|
330
321
|
*/
|
|
331
322
|
extractActions(sourceFile) {
|
|
@@ -333,17 +324,17 @@ class RulesEngineExtractor {
|
|
|
333
324
|
const source = program.getSourceFile(sourceFile);
|
|
334
325
|
const actions = [];
|
|
335
326
|
source?.forEachChild((node) => {
|
|
336
|
-
if (ts.isClassDeclaration(node)
|
|
337
|
-
node.heritageClauses?.some((nodeHeritage) => nodeHeritage.types.some((tNode) => tNode.expression.getText(source) === RulesEngineExtractor.OPERATOR_ACTIONS_INTERFACE))) {
|
|
327
|
+
if (ts.isClassDeclaration(node)
|
|
328
|
+
&& node.heritageClauses?.some((nodeHeritage) => nodeHeritage.types.some((tNode) => tNode.expression.getText(source) === RulesEngineExtractor.OPERATOR_ACTIONS_INTERFACE))) {
|
|
338
329
|
let parameters;
|
|
339
330
|
node.heritageClauses.forEach((nodeHeritage) => {
|
|
340
331
|
nodeHeritage.types
|
|
341
332
|
.forEach((tNode) => {
|
|
342
333
|
if (tNode.expression.getText(source) === RulesEngineExtractor.OPERATOR_ACTIONS_INTERFACE && tNode.typeArguments) {
|
|
343
334
|
tNode.typeArguments
|
|
344
|
-
.filter(ts.isTypeLiteralNode)
|
|
335
|
+
.filter((argNode) => ts.isTypeLiteralNode(argNode))
|
|
345
336
|
.forEach((argNode) => argNode.members
|
|
346
|
-
.filter(ts.isPropertySignature)
|
|
337
|
+
.filter((memberNode) => ts.isPropertySignature(memberNode))
|
|
347
338
|
.forEach((memberNode) => {
|
|
348
339
|
if (memberNode.name && memberNode.type) {
|
|
349
340
|
parameters ||= {};
|
|
@@ -354,9 +345,9 @@ class RulesEngineExtractor {
|
|
|
354
345
|
});
|
|
355
346
|
});
|
|
356
347
|
const type = node.members
|
|
357
|
-
.filter(ts.isPropertyDeclaration)
|
|
348
|
+
.filter((methodNode) => ts.isPropertyDeclaration(methodNode))
|
|
358
349
|
.find((methodNode) => methodNode.name.getText(source) === 'name')
|
|
359
|
-
?.initializer?.getText(source).replace(/^['
|
|
350
|
+
?.initializer?.getText(source).replace(/^["'](.*)["']$/, '$1');
|
|
360
351
|
if (!type) {
|
|
361
352
|
this.logger.error(`No type found for ${node.name?.getText(source) || 'unknown class'} in ${sourceFile}. It will be skipped.`);
|
|
362
353
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/rules-engine-extractor/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/rules-engine-extractor/index.ts"],"names":[],"mappings":"AAwBA,OAAO,EACL,iCAAiC,EAClC,MAAM,UAAU,CAAC;AAElB,cAAc,UAAU,CAAC;;AAIzB,wBAmGI"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
const node_fs_1 = require("node:fs");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
4
6
|
const architect_1 = require("@angular-devkit/architect");
|
|
5
7
|
const extractors_1 = require("@o3r/extractors");
|
|
6
|
-
const node_fs_1 = require("node:fs");
|
|
7
8
|
const globby_1 = tslib_1.__importDefault(require("globby"));
|
|
8
|
-
const node_path_1 = require("node:path");
|
|
9
9
|
const helpers_1 = require("./helpers");
|
|
10
10
|
tslib_1.__exportStar(require("./schema"), exports);
|
|
11
11
|
const SCHEMA_FOLDER = 'fact-schemas';
|
|
@@ -18,11 +18,11 @@ exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderW
|
|
|
18
18
|
const extractor = new helpers_1.RulesEngineExtractor((0, node_path_1.resolve)(context.currentDirectory, options.tsConfig), context.currentDirectory, context.logger);
|
|
19
19
|
const metadataFiles = options.libraries.map((library) => (0, extractors_1.getLibraryCmsMetadata)(library, context.currentDirectory));
|
|
20
20
|
const rulesEngineFactsMetadataFiles = metadataFiles
|
|
21
|
-
.filter(metadataFile => options.ignoreFactsFromLibraries.
|
|
22
|
-
.map(metadataFile => metadataFile.rulesEngineFactsFilePath)
|
|
21
|
+
.filter((metadataFile) => !options.ignoreFactsFromLibraries.includes(metadataFile.libraryName) && !!metadataFile.rulesEngineFactsFilePath)
|
|
22
|
+
.map((metadataFile) => metadataFile.rulesEngineFactsFilePath)
|
|
23
23
|
.filter((rulesEngineFactsFilePath) => !!rulesEngineFactsFilePath);
|
|
24
24
|
const rulesEngineOperatorsMetadataFiles = metadataFiles
|
|
25
|
-
.map(metadataFile => metadataFile.rulesEngineOperatorsFilePath)
|
|
25
|
+
.map((metadataFile) => metadataFile.rulesEngineOperatorsFilePath)
|
|
26
26
|
.filter((rulesEngineOperatorsFilePath) => !!rulesEngineOperatorsFilePath);
|
|
27
27
|
const rulesEngineFactsMetadataFileWithContent = {};
|
|
28
28
|
for (const file of rulesEngineFactsMetadataFiles) {
|
|
@@ -54,15 +54,12 @@ exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderW
|
|
|
54
54
|
try {
|
|
55
55
|
await node_fs_1.promises.mkdir(schemaFolder, { recursive: true });
|
|
56
56
|
}
|
|
57
|
-
catch {
|
|
58
|
-
}
|
|
57
|
+
catch { }
|
|
59
58
|
// copy schema files from the libraries
|
|
60
59
|
await Promise.all(Object.entries(rulesEngineFactsMetadataFileWithContent)
|
|
61
|
-
.reduce((acc, [metadataFilePath, factsFile]) => acc.concat([
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
.map(({ schemaFile }) => ({ fullPath: (0, node_path_1.resolve)((0, node_path_1.dirname)(metadataFilePath), schemaFile), relativePath: schemaFile }))
|
|
65
|
-
]), [])
|
|
60
|
+
.reduce((acc, [metadataFilePath, factsFile]) => acc.concat((factsFile.facts || [])
|
|
61
|
+
.filter((fact) => fact.type === 'object' && !!fact.schemaFile)
|
|
62
|
+
.map(({ schemaFile }) => ({ fullPath: (0, node_path_1.resolve)((0, node_path_1.dirname)(metadataFilePath), schemaFile), relativePath: schemaFile }))), [])
|
|
66
63
|
.map(({ fullPath, relativePath }) => node_fs_1.promises.copyFile(fullPath, (0, node_path_1.resolve)(basePath, relativePath))));
|
|
67
64
|
/** Facts from the current project */
|
|
68
65
|
const newFactList = (await Promise.all((await Promise.all(options.factFilePatterns.map((pattern) => (0, globby_1.default)(pattern, { cwd: context.currentDirectory }))))
|
|
@@ -70,15 +67,13 @@ exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderW
|
|
|
70
67
|
.map((file, idx, arr) => {
|
|
71
68
|
context.reportProgress(idx, arr.length, `Parsing fact from ${file}`);
|
|
72
69
|
return extractor.extractFacts((0, node_path_1.resolve)(context.currentDirectory, file), schemaFolder, `./${SCHEMA_FOLDER}`);
|
|
73
|
-
}))).
|
|
70
|
+
}))).flat();
|
|
74
71
|
/** Operators from the current project */
|
|
75
|
-
const newOperatorList = (await Promise.all(options.operatorFilePatterns.map((pattern) => (0, globby_1.default)(pattern, { cwd: context.currentDirectory }))))
|
|
76
|
-
.
|
|
77
|
-
.map((file, idx, arr) => {
|
|
72
|
+
const newOperatorList = (await Promise.all(options.operatorFilePatterns.map((pattern) => (0, globby_1.default)(pattern, { cwd: context.currentDirectory })))).flat()
|
|
73
|
+
.flatMap((file, idx, arr) => {
|
|
78
74
|
context.reportProgress(idx, arr.length, `Parsing operator from ${file}`);
|
|
79
75
|
return extractor.extractOperators((0, node_path_1.resolve)(context.currentDirectory, file));
|
|
80
|
-
})
|
|
81
|
-
.reduce((acc, operatorList) => [...acc, ...operatorList], []);
|
|
76
|
+
});
|
|
82
77
|
try {
|
|
83
78
|
await node_fs_1.promises.mkdir((0, node_path_1.dirname)(outputFactsFile), { recursive: true });
|
|
84
79
|
}
|
|
@@ -88,13 +83,13 @@ exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderW
|
|
|
88
83
|
}
|
|
89
84
|
catch { }
|
|
90
85
|
await node_fs_1.promises.writeFile(outputFactsFile, JSON.stringify({
|
|
91
|
-
|
|
86
|
+
facts: [
|
|
92
87
|
...librariesFacts,
|
|
93
88
|
...newFactList
|
|
94
89
|
]
|
|
95
90
|
}, null, 2));
|
|
96
91
|
await node_fs_1.promises.writeFile(outputOperatorsFile, JSON.stringify({
|
|
97
|
-
|
|
92
|
+
operators: [
|
|
98
93
|
...librariesOperators,
|
|
99
94
|
...newOperatorList
|
|
100
95
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../builders/rules-engine-extractor/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../builders/rules-engine-extractor/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACX,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,iCAAkC,SAAQ,UAAU;IAEnE,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;IAEjB,iCAAiC;IACjC,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB,0EAA0E;IAC1E,oBAAoB,EAAE,MAAM,CAAC;IAE7B,iFAAiF;IACjF,wBAAwB,EAAE,MAAM,CAAC;IAEjC,4EAA4E;IAC5E,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAE3B,gFAAgF;IAChF,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAE/B,6DAA6D;IAC7D,wBAAwB,EAAE,MAAM,EAAE,CAAC;CACpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/rules-engine/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC;AAC9D,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/rules-engine/index.ts"],"names":[],"mappings":"AAAA,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-actions-pres.component.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/rule-actions/rule-actions-pres.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rule-actions-pres.component.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/rule-actions/rule-actions-pres.component.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,QAAQ,EACR,KAAK,EACN,MAAM,iBAAiB,CAAC;;AAEzB,qBAOa,wBAAwB;IACnC;;OAEG;IAEI,OAAO,EAAE,QAAQ,EAAE,CAAM;IAEhC;;;OAGG;IAEI,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAM;IAElD;;OAEG;IAEI,cAAc,EAAE,MAAM,EAAE,CAAM;yCAlB1B,wBAAwB;2CAAxB,wBAAwB;CAmBpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-condition-pres.component.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/rule-condition/rule-condition-pres.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rule-condition-pres.component.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/rule-condition/rule-condition-pres.component.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAIV,iBAAiB,EAElB,MAAM,iBAAiB,CAAC;;AAEzB,qBAOa,0BAA0B;IACrC,OAAO,CAAC,UAAU,CAAC,CAAoB;IAEvC;;;OAGG;IACI,GAAG,SAAe;IAEzB;;;OAGG;IACI,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B;;OAEG;IACH,IACW,SAAS,CAAC,SAAS,EAAE,iBAAiB,GAAG,SAAS,EAI5D;IAED,IAAW,SAAS,IAAI,iBAAiB,GAAG,SAAS,CAEpD;IAED,OAAO,CAAC,cAAc;yCA7BX,0BAA0B;2CAA1B,0BAA0B;CAiCtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-key-value-pres.component.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/rule-key-value/rule-key-value-pres.component.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"rule-key-value-pres.component.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/rule-key-value/rule-key-value-pres.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EACT,aAAa,EAEd,MAAM,eAAe,CAAC;;AAqBvB,qBAOa,yBAA0B,YAAW,SAAS;IACzD;;OAEG;IAEI,GAAG,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IAEI,KAAK,EAAG,MAAM,CAAC;IAEtB;;OAEG;IAEI,QAAQ,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IAEI,IAAI,EAAE,OAAO,GAAG,YAAY,CAAW;IAEvC,6BAA6B,UAAQ;IACrC,mCAAmC,UAAS;IAC5C,oBAAoB,UAAS;IAE7B,gCAAgC,UAAQ;IACxC,sCAAsC,UAAS;IAC/C,uBAAuB,UAAS;IAEvC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAuB;IACpD,iBAAiB,qCAEtB;IAEF,OAAO,CAAC,2BAA2B;IAI5B,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,aAAa;IAWxC,eAAe,CAAC,OAAO,EAAE,MAAM;yCAvDjC,yBAAyB;2CAAzB,yBAAyB;CA2DrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-tree-pres.component.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/rule-tree/rule-tree-pres.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rule-tree-pres.component.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/rule-tree/rule-tree-pres.component.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;;AAEzB,qBAOa,qBAAqB;IAChC;;OAEG;IAEI,IAAI,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IAEI,SAAS,SAAM;IAEtB;;OAEG;IAEI,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAErC;;OAEG;IAEI,eAAe,EAAE,QAAQ,EAAE,CAAM;IAExC;;OAEG;IAEI,eAAe,EAAE,QAAQ,EAAE,CAAM;IAExC;;OAEG;IACI,sBAAsB,UAAS;IAEtC;;OAEG;IACI,sBAAsB,UAAS;yCAzC3B,qBAAqB;2CAArB,qBAAqB;CA0CjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleset-history-pres.component.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/ruleset-history/ruleset-history-pres.component.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ruleset-history-pres.component.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/ruleset-history/ruleset-history-pres.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAIlB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,OAAO,EACP,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;;AAEzB,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,aAAa,GAAG,UAAU,CAAC;AACrF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,GAAG;IACzF,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,qBAOa,2BAA2B;IAkB1B,OAAO,CAAC,QAAQ,CAAC,EAAE;IAjB/B;;;;;;;;OAQG;IACI,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAA;KAAE,CAAM;IAGzE,iBAAiB,EAAE,qBAAqB,EAAE,CAAM;IAGhD,uBAAuB,SAAW;gBAEZ,EAAE,EAAE,iBAAiB;IAElD;;;;OAIG;IACI,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;yCAzB5C,2BAA2B;2CAA3B,2BAA2B;CAiCvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleset-history-pres.module.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/ruleset-history/ruleset-history-pres.module.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ruleset-history-pres.module.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/ruleset-history/ruleset-history-pres.module.ts"],"names":[],"mappings":";;;;;;;;;AA2BA,qBAKa,wBAAwB;yCAAxB,wBAAwB;0CAAxB,wBAAwB;0CAAxB,wBAAwB;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallback-to.pipe.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/shared/fallback-to.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"fallback-to.pipe.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/shared/fallback-to.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACd,MAAM,eAAe,CAAC;;AAEvB,qBACa,iBAAkB,YAAW,aAAa;IAC9C,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,SAAc,GAAG,CAAC,GAAG,MAAM;yCADtD,iBAAiB;uCAAjB,iBAAiB;CAI7B;AAED;;GAEG;AACH,qBACa,cAAe,SAAQ,iBAAkB,YAAW,aAAa;yCAAjE,cAAc;uCAAd,cAAc;CAAsD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-or-string.pipe.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/shared/json-or-string.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"json-or-string.pipe.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/shared/json-or-string.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACd,MAAM,eAAe,CAAC;;AAEvB,qBAIa,mBAAoB,YAAW,aAAa;IACvD;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM;yCAJzB,mBAAmB;uCAAnB,mBAAmB;CAU/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleset-history.helper.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/shared/ruleset-history.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ruleset-history.helper.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/shared/ruleset-history.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,mDAAmD,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,SAAS,qBAAsB,0BAA0B,GAAG,qBAAqB,YAAY,OAAO,KAAG,sBASnH,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,WAAY,UAAU,EAAE,cAAc,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,qBAAqB,EA6BvH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-engine-devkit.interface.d.ts","sourceRoot":"","sources":["../../src/devkit/rules-engine-devkit.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"rules-engine-devkit.interface.d.ts","sourceRoot":"","sources":["../../src/devkit/rules-engine-devkit.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,6BAA6B,EAC9B,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACR,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,iCAAkC,SAAQ,qBAAqB;IAC9E,2FAA2F;IAC3F,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,+CAA+C;AAC/C,MAAM,WAAW,oCAAqC,SAAQ,mBAAmB,CAAC,mBAAmB,CAAC;IACpG,iCAAiC;IACjC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,mDAAmD;IACnD,MAAM,EAAE,UAAU,EAAE,CAAC;CACtB;AAED,KAAK,0BAA0B,GAC3B,oCAAoC,CAAC;AAEzC,0DAA0D;AAC1D,MAAM,MAAM,2BAA2B,GAAG,gBAAgB,CAAC,0BAA0B,CAAC,CAAC;AAEvF,qDAAqD;AACrD,MAAM,MAAM,mCAAmC,GAC3C,0BAA0B,GAC1B,qBAAqB,GACrB,6BAA6B,CAAC,2BAA2B,CAAC,CAAC;AAE/D,eAAO,MAAM,oBAAoB,YAAa,GAAG,KAAG,OAAO,IAAI,mCAM9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-engine-devtools.console.service.d.ts","sourceRoot":"","sources":["../../src/devkit/rules-engine-devtools.console.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rules-engine-devtools.console.service.d.ts","sourceRoot":"","sources":["../../src/devkit/rules-engine-devtools.console.service.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,wBAAwB,EAEzB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,iCAAiC,EAClC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,wBAAwB,EACzB,MAAM,iCAAiC,CAAC;;AAMzC,qBAGa,iCAAkC,YAAW,wBAAwB;IAO9E,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IANtC,4DAA4D;IAC5D,gBAAuB,gBAAgB,iBAAiB;IAExD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoC;gBAGzC,mBAAmB,EAAE,wBAAwB,EACL,OAAO,CAAC,EAAE,iCAAiC;IAYtG,kBAAkB;IACX,QAAQ;IAQf,8DAA8D;IACjD,gCAAgC;IAI7C,kGAAkG;IACrF,iBAAiB;IAI9B,qGAAqG;IACxF,oBAAoB;IAIjC,+GAA+G;IAClG,mBAAmB;IAIhC;;;OAGG;IACU,oBAAoB,CAAC,SAAS,EAAE,MAAM;IAInD;;;;OAIG;IACU,eAAe,CAAC,SAAS,EAAE,MAAM;IAI9C;;;OAGG;IACU,6BAA6B,CAAC,SAAS,EAAE,MAAM;IAI5D;;;OAGG;IACU,uBAAuB,CAAC,SAAS,EAAE,MAAM;IAItD;;;OAGG;IACU,qBAAqB,CAAC,SAAS,EAAE,MAAM;IAIpD;;;OAGG;IACU,0BAA0B,CAAC,SAAS,EAAE,MAAM;IAIzD,0DAA0D;IAC7C,mBAAmB;IAIhC;;;OAGG;IACU,qBAAqB,CAAC,SAAS,EAAE,MAAM;yCA3GzC,iCAAiC;6CAAjC,iCAAiC;CA8G7C"}
|
|
@@ -19,10 +19,10 @@ export declare class RulesEngineDevtoolsMessageService implements OnDestroy, Dev
|
|
|
19
19
|
private handleReEmitRequest;
|
|
20
20
|
/**
|
|
21
21
|
* Function to handle the incoming messages from Otter Chrome DevTools extension
|
|
22
|
-
* @param event Event coming from the Otter Chrome DevTools extension
|
|
23
22
|
* @param message
|
|
24
23
|
*/
|
|
25
24
|
private handleEvents;
|
|
25
|
+
private readonly serializeError;
|
|
26
26
|
/**
|
|
27
27
|
* Serialize exceptions in a way that will display the error message after a JSON.stringify()
|
|
28
28
|
* @param debugEvent
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-engine-devtools.message.service.d.ts","sourceRoot":"","sources":["../../src/devkit/rules-engine-devtools.message.service.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"rules-engine-devtools.message.service.d.ts","sourceRoot":"","sources":["../../src/devkit/rules-engine-devtools.message.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,wBAAwB,EAGzB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,aAAa,EACd,MAAM,aAAa,CAAC;AAUrB,OAAO,EAGL,iCAAiC,EAElC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,wBAAwB,EACzB,MAAM,iCAAiC,CAAC;;AAMzC,qBAGa,iCAAkC,YAAW,SAAS,EAAE,wBAAwB;IAUzF,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAVzB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoC;IAE5D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsB;IAEpD,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAwC;IAEnF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAyD;gBAGlE,mBAAmB,EAAE,wBAAwB,EAC7C,MAAM,EAAE,aAAa,EACmB,OAAO,CAAC,EAAE,iCAAiC;IAWtG;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAM3B;;;OAGG;IACH,OAAO,CAAC,YAAY;IAkBpB,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAqE;IAEpG;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAe5B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAa9B;;OAEG;IACH,OAAO,CAAC,aAAa;IAKrB,kCAAkC;IAC3B,QAAQ;IAQf,kBAAkB;IACX,WAAW;yCA9GP,iCAAiC;6CAAjC,iCAAiC;CAiH7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-engine-devtools.module.d.ts","sourceRoot":"","sources":["../../src/devkit/rules-engine-devtools.module.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"rules-engine-devtools.module.d.ts","sourceRoot":"","sources":["../../src/devkit/rules-engine-devtools.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAEpB,MAAM,eAAe,CAAC;AAOvB,OAAO,KAAK,EACV,iCAAiC,EAClC,MAAM,iCAAiC,CAAC;;;;AAYzC,qBAWa,yBAAyB;IACpC;;;OAGG;WACW,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,iCAAiC,CAAC,GAAG,mBAAmB,CAAC,yBAAyB,CAAC;yCALlH,yBAAyB;0CAAzB,yBAAyB;0CAAzB,yBAAyB;CAerC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-engine-devtools.service.d.ts","sourceRoot":"","sources":["../../src/devkit/rules-engine-devtools.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rules-engine-devtools.service.d.ts","sourceRoot":"","sources":["../../src/devkit/rules-engine-devtools.service.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,EACN,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,UAAU,EACX,MAAM,MAAM,CAAC;AAMd,OAAO,KAAK,EAIV,UAAU,EACV,OAAO,EACP,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,wBAAwB,EACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,aAAa,EAEd,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,iCAAiC,EAClC,MAAM,iCAAiC,CAAC;;AAMzC,qBAGa,wBAAwB;IAejC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IAfrC,oCAAoC;IACpC,SAAgB,kBAAkB,CAAC,EAAE,UAAU,CAAC;QAAE,MAAM,EAAE,UAAU,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC;IAE/G,mCAAmC;IACnC,SAAgB,kBAAkB,CAAC,EAAE,UAAU,CAAC,UAAU,EAAE,CAAC,CAAC;IAE9D;;OAEG;IACH,IAAW,2BAA2B,IAAI,OAAO,CAEhD;gBAGW,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,EACpB,kBAAkB,EAAE,wBAAwB,EACJ,OAAO,EAAE,iCAAiC;IAyBrG,8DAA8D;IACjD,gCAAgC,IAAI,OAAO,CAAC,UAAU,EAAE,GAAG,SAAS,CAAC;IAIlF,kGAAkG;IACrF,iBAAiB;IAK9B,qGAAqG;IACxF,oBAAoB;IAKjC,+GAA+G;IAClG,mBAAmB;IAIhC;;;OAGG;IACU,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,EAAE,GAAG,SAAS,CAAC;IAOjI;;;;OAIG;IACU,eAAe,CAAC,SAAS,EAAE,MAAM;IAI9C;;;OAGG;IACU,6BAA6B,CAAC,SAAS,EAAE,MAAM;IAK5D;;;OAGG;IACU,uBAAuB,CAAC,SAAS,EAAE,MAAM;;;;IAKtD;;;OAGG;IACU,qBAAqB,CAAC,SAAS,EAAE,MAAM;IAIpD;;;OAGG;IACU,0BAA0B,CAAC,SAAS,EAAE,MAAM;IAKzD,0DAA0D;IACnD,mBAAmB;;;;IAO1B;;;OAGG;IACI,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;yCAnIlE,wBAAwB;6CAAxB,wBAAwB;CAyIpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-engine-devtools.token.d.ts","sourceRoot":"","sources":["../../src/devkit/rules-engine-devtools.token.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"rules-engine-devtools.token.d.ts","sourceRoot":"","sources":["../../src/devkit/rules-engine-devtools.token.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,iCAAiC,EAClC,MAAM,iCAAiC,CAAC;AAEzC,eAAO,MAAM,2CAA2C,EAAE,iCAEzD,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,cAAc,CAAC,iCAAiC,CAA+F,CAAC"}
|
|
@@ -78,7 +78,6 @@ export declare class EngineDebugger {
|
|
|
78
78
|
* @param runtimeFactValues
|
|
79
79
|
* @param rulesetTriggers
|
|
80
80
|
* @param rulesExecutions
|
|
81
|
-
* @param retrieveFactFunc
|
|
82
81
|
*/
|
|
83
82
|
addRulesetExecutionEvent(ruleset: Ruleset, executionCounter: number, rulesetInputFacts: string[], allOutputActions: ActionBlock[], runtimeFactValues: Record<string, Facts>, rulesetTriggers: Record<string, Record<string, EvaluationReason>>, rulesExecutions: RuleEvaluation[]): void;
|
|
84
83
|
/**
|
|
@@ -89,7 +88,6 @@ export declare class EngineDebugger {
|
|
|
89
88
|
* @param runtimeFactValues
|
|
90
89
|
* @param rulesetTriggers
|
|
91
90
|
* @param rulesExecutions
|
|
92
|
-
* @param retrieveFactFunc
|
|
93
91
|
*/
|
|
94
92
|
addRulesetExecutionErrorEvent(ruleset: Ruleset, rulesetInputFacts: string[], executionCounter: number, runtimeFactValues: Record<string, Facts>, rulesetTriggers: Record<string, Record<string, EvaluationReason>>, rulesExecutions: RuleEvaluation[]): void;
|
|
95
93
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.debug.d.ts","sourceRoot":"","sources":["../../../src/engine/debug/engine.debug.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"engine.debug.d.ts","sourceRoot":"","sources":["../../../src/engine/debug/engine.debug.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAEX,MAAM,MAAM,CAAC;AASd,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EAEL,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EAGrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,KAAK,EACN,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,WAAW,EACX,OAAO,EACR,MAAM,cAAc,CAAC;AAMtB,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,oBAAoB,CAAC,CAAc;IAE3C,OAAO,CAAC,kBAAkB,CAAsC;IAGhE,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA0D;IAE9F,OAAO,CAAC,oBAAoB,CAAoC;IAEhE,oEAAoE;IACpE,SAAgB,YAAY,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IAErD,yDAAyD;IACzD,IAAW,WAAW,IAAI,WAAW,GAAG,SAAS,CAEhD;IAED;;;OAGG;gBACS,OAAO,CAAC,EAAE,qBAAqB;IA+B3C,OAAO,CAAC,6BAA6B;YAUvB,+BAA+B;YAkB/B,gBAAgB;YAqBhB,qBAAqB;IAsBnC;;;OAGG;IACI,kBAAkB,CAAC,WAAW,EAAE,WAAW;IAIlD;;;;;;;;;OASG;IACI,+BAA+B,CACpC,OAAO,EAAE,oBAAoB,EAAE,EAC/B,OAAO,EAAE,oBAAoB,EAAE,GAAG,SAAS,EAC3C,kBAAkB,EAAE,OAAO,EAC3B,iBAAiB,EAAE,MAAM,EAAE,EAC3B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACxC,gBAAgB,EAAE,MAAM,EACxB,OAAO,EAAE,OAAO;;;;;;IAgBlB;;;OAGG;IACI,oBAAoB,CAAC,QAAQ,EAAE,OAAO,EAAE;IAU/C;;;;OAIG;IACI,oBAAoB,CAAC,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EAAE,mBAAmB,CAAC,EAAE,MAAM,EAAE;IAc/G;;;OAGG;IACI,gBAAgB,CAAC,OAAO,EAAE,WAAW,EAAE;IAK9C;;;;;;;;;OASG;IACI,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EACxE,iBAAiB,EAAE,MAAM,EAAE,EAAE,gBAAgB,EAAE,WAAW,EAAE,EAAE,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACtG,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,EAAE,eAAe,EAAE,cAAc,EAAE;IAMtG;;;;;;;;OAQG;IACI,6BAA6B,CAClC,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,MAAM,EAAE,EAC3B,gBAAgB,EAAE,MAAM,EACxB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACxC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,EACjE,eAAe,EAAE,cAAc,EAAE;IAMnC;;;OAGG;IACU,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE;kBACvB,MAAM;eAAS,GAAG;;CAS9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/engine/debug/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/engine/debug/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,KAAK,EACN,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,WAAW,EACX,IAAI,EACL,MAAM,cAAc,CAAC;AAEtB;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,GAAG,SAAS,oDAmCnH;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,gBAAgB,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,GAAG,CAAC,cAAc,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,EAAE,CASzK;AAED;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,WAAW,EAAE,GAAG,SAAS,EACxC,WAAW,EAAE,GAAG,EAChB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACxC,UAAU,EAAE,GAAG,EAAE,GAAG,SAAS,EAC7B,aAAa,EAAE,GAAG,EAAE,GAAG,SAAS,kBA4BjC"}
|