@o3r/rules-engine 11.6.0-prerelease.7 → 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.
Files changed (157) hide show
  1. package/builders/rules-engine-extractor/helpers/rules-engine.extractor.d.ts +1 -10
  2. package/builders/rules-engine-extractor/helpers/rules-engine.extractor.d.ts.map +1 -1
  3. package/builders/rules-engine-extractor/helpers/rules-engine.extractor.interfaces.d.ts +1 -2
  4. package/builders/rules-engine-extractor/helpers/rules-engine.extractor.interfaces.d.ts.map +1 -1
  5. package/builders/rules-engine-extractor/helpers/rules-engine.extractor.js +27 -36
  6. package/builders/rules-engine-extractor/index.d.ts.map +1 -1
  7. package/builders/rules-engine-extractor/index.js +15 -20
  8. package/builders/rules-engine-extractor/schema.d.ts.map +1 -1
  9. package/components/rules-engine/index.d.ts +1 -1
  10. package/components/rules-engine/index.d.ts.map +1 -1
  11. package/components/rules-engine/rule-actions/rule-actions-pres.component.d.ts.map +1 -1
  12. package/components/rules-engine/rule-condition/rule-condition-pres.component.d.ts.map +1 -1
  13. package/components/rules-engine/rule-key-value/rule-key-value-pres.component.d.ts.map +1 -1
  14. package/components/rules-engine/rule-tree/rule-tree-pres.component.d.ts.map +1 -1
  15. package/components/rules-engine/ruleset-history/ruleset-history-pres.component.d.ts.map +1 -1
  16. package/components/rules-engine/ruleset-history/ruleset-history-pres.module.d.ts.map +1 -1
  17. package/components/rules-engine/shared/fallback-to.pipe.d.ts.map +1 -1
  18. package/components/rules-engine/shared/index.d.ts +1 -1
  19. package/components/rules-engine/shared/index.d.ts.map +1 -1
  20. package/components/rules-engine/shared/json-or-string.pipe.d.ts.map +1 -1
  21. package/components/rules-engine/shared/ruleset-history.helper.d.ts.map +1 -1
  22. package/devkit/rules-engine-devkit.interface.d.ts.map +1 -1
  23. package/devkit/rules-engine-devtools.console.service.d.ts.map +1 -1
  24. package/devkit/rules-engine-devtools.message.service.d.ts +1 -1
  25. package/devkit/rules-engine-devtools.message.service.d.ts.map +1 -1
  26. package/devkit/rules-engine-devtools.module.d.ts.map +1 -1
  27. package/devkit/rules-engine-devtools.service.d.ts.map +1 -1
  28. package/devkit/rules-engine-devtools.token.d.ts.map +1 -1
  29. package/engine/debug/engine.debug.d.ts +0 -2
  30. package/engine/debug/engine.debug.d.ts.map +1 -1
  31. package/engine/debug/helpers.d.ts.map +1 -1
  32. package/engine/engine.d.ts +0 -3
  33. package/engine/engine.d.ts.map +1 -1
  34. package/engine/engine.interface.d.ts.map +1 -1
  35. package/engine/fact/fact.interfaces.d.ts.map +1 -1
  36. package/engine/helpers/filter-ruleset-event.operator.d.ts.map +1 -1
  37. package/engine/operator/operator.helpers.d.ts +1 -3
  38. package/engine/operator/operator.helpers.d.ts.map +1 -1
  39. package/engine/operator/operator.interface.d.ts.map +1 -1
  40. package/engine/operator/operators/array-based.operators.d.ts.map +1 -1
  41. package/engine/operator/operators/basic.operators.d.ts.map +1 -1
  42. package/engine/operator/operators/date-based.operators.d.ts.map +1 -1
  43. package/engine/operator/operators/index.d.ts +2 -2
  44. package/engine/operator/operators/index.d.ts.map +1 -1
  45. package/engine/operator/operators/number-based.operators.d.ts.map +1 -1
  46. package/engine/ruleset-executor.d.ts +7 -2
  47. package/engine/ruleset-executor.d.ts.map +1 -1
  48. package/engine/structure.d.ts.map +1 -1
  49. package/esm2022/components/rules-engine/index.mjs +2 -2
  50. package/esm2022/components/rules-engine/rule-actions/rule-actions-pres.component.mjs +2 -2
  51. package/esm2022/components/rules-engine/rule-condition/rule-condition-pres.component.mjs +3 -4
  52. package/esm2022/components/rules-engine/rule-key-value/rule-key-value-pres.component.mjs +6 -6
  53. package/esm2022/components/rules-engine/rule-tree/rule-tree-pres.component.mjs +2 -2
  54. package/esm2022/components/rules-engine/ruleset-history/ruleset-history-pres.component.mjs +7 -7
  55. package/esm2022/components/rules-engine/ruleset-history/ruleset-history-pres.module.mjs +9 -9
  56. package/esm2022/components/rules-engine/shared/fallback-to.pipe.mjs +3 -3
  57. package/esm2022/components/rules-engine/shared/index.mjs +2 -2
  58. package/esm2022/components/rules-engine/shared/json-or-string.pipe.mjs +2 -2
  59. package/esm2022/components/rules-engine/shared/ruleset-history.helper.mjs +5 -5
  60. package/esm2022/devkit/index.mjs +1 -1
  61. package/esm2022/devkit/rules-engine-devkit.interface.mjs +4 -4
  62. package/esm2022/devkit/rules-engine-devtools.console.service.mjs +5 -7
  63. package/esm2022/devkit/rules-engine-devtools.message.service.mjs +12 -12
  64. package/esm2022/devkit/rules-engine-devtools.module.mjs +7 -7
  65. package/esm2022/devkit/rules-engine-devtools.service.mjs +16 -16
  66. package/esm2022/devkit/rules-engine-devtools.token.mjs +2 -2
  67. package/esm2022/engine/debug/engine.debug.mjs +16 -18
  68. package/esm2022/engine/debug/helpers.mjs +11 -11
  69. package/esm2022/engine/engine.interface.mjs +1 -1
  70. package/esm2022/engine/engine.mjs +12 -15
  71. package/esm2022/engine/fact/fact.interfaces.mjs +1 -1
  72. package/esm2022/engine/helpers/filter-ruleset-event.operator.mjs +6 -6
  73. package/esm2022/engine/operator/operator.helpers.mjs +15 -17
  74. package/esm2022/engine/operator/operator.interface.mjs +1 -1
  75. package/esm2022/engine/operator/operators/array-based.operators.mjs +11 -11
  76. package/esm2022/engine/operator/operators/basic.operators.mjs +8 -8
  77. package/esm2022/engine/operator/operators/date-based.operators.mjs +3 -3
  78. package/esm2022/engine/operator/operators/index.mjs +6 -6
  79. package/esm2022/engine/operator/operators/number-based.operators.mjs +2 -2
  80. package/esm2022/engine/rule/index.mjs +1 -1
  81. package/esm2022/engine/rule/rule.helpers.mjs +1 -1
  82. package/esm2022/engine/ruleset-executor.mjs +27 -23
  83. package/esm2022/engine/structure.mjs +1 -1
  84. package/esm2022/fact/fact.abstract-service.mjs +1 -1
  85. package/esm2022/fact/reserved.facts.mjs +1 -1
  86. package/esm2022/fixtures/jasmine/rules-engine.runner.service.fixture.jasmine.mjs +1 -1
  87. package/esm2022/fixtures/jest/rules-engine.runner.service.fixture.jest.mjs +1 -1
  88. package/esm2022/inner-facts/current-time/current-time-fact.service.mjs +5 -5
  89. package/esm2022/inner-facts/current-time/current-time.facts.mjs +1 -1
  90. package/esm2022/inner-facts/current-time/index.mjs +2 -2
  91. package/esm2022/interfaces/action.interfaces.mjs +1 -1
  92. package/esm2022/interfaces/index.mjs +1 -1
  93. package/esm2022/public_api.mjs +1 -2
  94. package/esm2022/services/index.mjs +2 -2
  95. package/esm2022/services/rules-engine.token.mjs +2 -2
  96. package/esm2022/services/runner/rules-engine.runner.module.mjs +7 -7
  97. package/esm2022/services/runner/rules-engine.runner.service.mjs +10 -10
  98. package/esm2022/stores/rulesets/rulesets.actions.mjs +3 -3
  99. package/esm2022/stores/rulesets/rulesets.effect.mjs +7 -7
  100. package/esm2022/stores/rulesets/rulesets.module.mjs +7 -7
  101. package/esm2022/stores/rulesets/rulesets.reducer.mjs +4 -4
  102. package/esm2022/stores/rulesets/rulesets.selectors.mjs +10 -10
  103. package/esm2022/stores/rulesets/rulesets.state.mjs +1 -1
  104. package/esm2022/stores/rulesets/rulesets.sync.mjs +3 -3
  105. package/fact/fact.abstract-service.d.ts.map +1 -1
  106. package/fact/reserved.facts.d.ts.map +1 -1
  107. package/fesm2022/o3r-rules-engine-fixtures-jasmine.mjs.map +1 -1
  108. package/fesm2022/o3r-rules-engine-fixtures-jest.mjs.map +1 -1
  109. package/fesm2022/o3r-rules-engine.mjs +248 -254
  110. package/fesm2022/o3r-rules-engine.mjs.map +1 -1
  111. package/fixtures/jasmine/rules-engine.runner.service.fixture.jasmine.d.ts.map +1 -1
  112. package/fixtures/jest/rules-engine.runner.service.fixture.jest.d.ts.map +1 -1
  113. package/fixtures/jest/rules-engine.runner.service.fixture.jest.js.map +1 -1
  114. package/inner-facts/current-time/current-time-fact.service.d.ts +1 -1
  115. package/inner-facts/current-time/current-time-fact.service.d.ts.map +1 -1
  116. package/inner-facts/current-time/current-time.facts.d.ts.map +1 -1
  117. package/inner-facts/current-time/index.d.ts +1 -1
  118. package/inner-facts/current-time/index.d.ts.map +1 -1
  119. package/interfaces/action.interfaces.d.ts.map +1 -1
  120. package/package.json +5 -5
  121. package/public_api.d.ts +0 -1
  122. package/public_api.d.ts.map +1 -1
  123. package/schematics/cms-adapter/index.d.ts.map +1 -1
  124. package/schematics/cms-adapter/index.js +1 -3
  125. package/schematics/facts-service/index.d.ts.map +1 -1
  126. package/schematics/facts-service/index.js +2 -2
  127. package/schematics/facts-service/schema.d.ts.map +1 -1
  128. package/schematics/ng-add/helpers/devtools-registration.d.ts +0 -2
  129. package/schematics/ng-add/helpers/devtools-registration.d.ts.map +1 -1
  130. package/schematics/ng-add/helpers/devtools-registration.js +2 -4
  131. package/schematics/ng-add/index.d.ts.map +1 -1
  132. package/schematics/ng-add/index.js +8 -11
  133. package/schematics/ng-add/schema.d.ts.map +1 -1
  134. package/schematics/ng-update/index.d.ts +0 -4
  135. package/schematics/ng-update/index.d.ts.map +1 -1
  136. package/schematics/ng-update/index.js +0 -4
  137. package/schematics/ng-update/v10.0/action-module-split.d.ts.map +1 -1
  138. package/schematics/ng-update/v10.0/action-module-split.js +0 -2
  139. package/schematics/ng-update/v11.6/use-register-action-handlers.d.ts.map +1 -1
  140. package/schematics/operator/index.d.ts.map +1 -1
  141. package/schematics/operator/index.js +2 -2
  142. package/schematics/operator/schema.d.ts.map +1 -1
  143. package/schematics/rules-engine-to-component/index.d.ts.map +1 -1
  144. package/schematics/rules-engine-to-component/schema.d.ts.map +1 -1
  145. package/services/index.d.ts +1 -1
  146. package/services/index.d.ts.map +1 -1
  147. package/services/rules-engine.token.d.ts.map +1 -1
  148. package/services/runner/rules-engine.runner.module.d.ts.map +1 -1
  149. package/services/runner/rules-engine.runner.service.d.ts +2 -2
  150. package/services/runner/rules-engine.runner.service.d.ts.map +1 -1
  151. package/stores/rulesets/rulesets.actions.d.ts.map +1 -1
  152. package/stores/rulesets/rulesets.effect.d.ts.map +1 -1
  153. package/stores/rulesets/rulesets.module.d.ts.map +1 -1
  154. package/stores/rulesets/rulesets.reducer.d.ts.map +1 -1
  155. package/stores/rulesets/rulesets.selectors.d.ts.map +1 -1
  156. package/stores/rulesets/rulesets.state.d.ts.map +1 -1
  157. 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: Readonly<string[]>;
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":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AASjE,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EACL,MAAM,EAMN,YAAY,EACZ,gBAAgB,EAIjB,MAAM,qCAAqC,CAAC;AAE7C;;GAEG;AACH,qBAAa,oBAAoB;IAiBG,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,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAmB;IAEjF,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;;;;;OAKG;YACW,cAAc;IA2B5B;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IAMvB;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;IAiB9B;;;;;;;;OAQG;IACH,OAAO,CAAC,cAAc;IAStB;;;;;;;;;OASG;IACH,OAAO,CAAC,sBAAsB;IA0B9B;;;;;;OAMG;IACU,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAmGtI;;;;OAIG;IACI,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ;IAMrC;;;;OAIG;IACI,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB,EAAE;IAoE/D;;;;OAIG;IACI,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE;CAkDpD"}
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/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AAC;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;;;;;;QAMI;IACJ,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"}
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;A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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.indexOf(name) > -1) {
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
- // eslint-disable-next-line max-len
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(/[\\]/g, '/')
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 (!operatorDeclarations.length) {
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.indexOf(type) === -1)) {
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(/^['"](.*)['"]$/, '$1');
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":"AAMA,OAAO,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAC;AAE7D,cAAc,UAAU,CAAC;;AAIzB,wBAsGI"}
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.indexOf(metadataFile.libraryName) === -1 && !!metadataFile.rulesEngineFactsFilePath)
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
- ...(factsFile.facts || [])
63
- .filter((fact) => fact.type === 'object' && !!fact.schemaFile)
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
- }))).reduce((acc, factList) => [...acc, ...factList], []);
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
- .reduce((acc, fileList) => ([...acc, ...fileList]), [])
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
- 'facts': [
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
- 'operators': [
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,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,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
+ {"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,4 +1,4 @@
1
- export * from './ruleset-history/ruleset-history-pres.module';
2
1
  export * from './ruleset-history/ruleset-history-pres.component';
2
+ export * from './ruleset-history/ruleset-history-pres.module';
3
3
  export * from './shared/index';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -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,kDAAkD,CAAC;AACjE,cAAc,gBAAgB,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":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;;AAEvD,qBAOa,wBAAwB;IAEnC;;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;yCAnB1B,wBAAwB;2CAAxB,wBAAwB;CAoBpC"}
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":"AACA,OAAO,KAAK,EAIV,iBAAiB,EAElB,MAAM,iBAAiB,CAAC;;AAEzB,qBAOa,0BAA0B;IAErC,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;yCA9BX,0BAA0B;2CAA1B,0BAA0B;CAmCtC"}
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,EAA4C,SAAS,EAAE,aAAa,EAAoB,MAAM,eAAe,CAAC;;AAcrH,qBAOa,yBAA0B,YAAW,SAAS;IAEzD;;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,EAAC,KAAK,EAAE,QAAQ,EAAC,EAAE,aAAa;IAWtC,eAAe,CAAC,OAAO,EAAE,MAAM;yCAxDjC,yBAAyB;2CAAzB,yBAAyB;CA4DrC"}
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":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;;AAEnE,qBAOa,qBAAqB;IAEhC;;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;yCA1C3B,qBAAqB;2CAArB,qBAAqB;CA2CjC"}
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,EAA2B,iBAAiB,EAAuC,MAAM,eAAe,CAAC;AAChH,OAAO,KAAK,EAAE,OAAO,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;;AAElG,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;AAGF,qBAOa,2BAA2B;IAmB1B,OAAO,CAAC,QAAQ,CAAC,EAAE;IAlB/B;;;;;;;;OAQG;IACI,eAAe,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG;YAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;SAAC,CAAA;KAAE,CAAM;IAItE,iBAAiB,EAAE,qBAAqB,EAAE,CAAM;IAGhD,uBAAuB,SAAW;gBAEZ,EAAE,EAAE,iBAAiB;IAElD;;;;OAIG;IACI,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;yCA1B5C,2BAA2B;2CAA3B,2BAA2B;CAkCvC"}
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":";;;;;;;;;AASA,qBAKa,wBAAwB;yCAAxB,wBAAwB;0CAAxB,wBAAwB;0CAAxB,wBAAwB;CAAG"}
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,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;;AAElD,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
+ {"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,4 +1,4 @@
1
- export * from './ruleset-history.helper';
2
1
  export * from './fallback-to.pipe';
3
2
  export * from './json-or-string.pipe';
3
+ export * from './ruleset-history.helper';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/rules-engine/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,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,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;;AAEpD,qBAIa,mBAAoB,YAAW,aAAa;IACvD;;OAEG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM;yCAJlB,mBAAmB;uCAAnB,mBAAmB;CAU/B"}
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,EAAE,UAAU,EAAE,OAAO,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC9G,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAEvH;;;;;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
+ {"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,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AACpJ,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAErD,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
+ {"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":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAsB,MAAM,WAAW,CAAC;AAC9E,OAAO,EAAE,iCAAiC,EAAE,MAAM,iCAAiC,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;;AAG3E,qBAGa,iCAAkC,YAAW,wBAAwB;IAQ9E,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;IAWf,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;yCA/GzC,iCAAiC;6CAAjC,iCAAiC;CAkH7C"}
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,EAAsB,SAAS,EAAY,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAA0C,MAAM,WAAW,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,EAAuC,iCAAiC,EAA+B,MAAM,iCAAiC,CAAC;AAEtJ,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;;AAG3E,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;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAkBpB;;;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;yCA7GP,iCAAiC;6CAAjC,iCAAiC;CAgH7C"}
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,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AAG9D,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,iCAAiC,CAAC;;;;AAKzF,qBAWa,yBAAyB;IAEpC;;;OAGG;WACW,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,iCAAiC,CAAC,GAAG,mBAAmB,CAAC,yBAAyB,CAAC;yCANlH,yBAAyB;0CAAzB,yBAAyB;0CAAzB,yBAAyB;CAgBrC"}
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":"AAC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AI9C;;;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;yCArIlE,wBAAwB;6CAAxB,wBAAwB;CA2IpC"}
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,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,iCAAiC,EAAE,MAAM,iCAAiC,CAAC;AAEpF,eAAO,MAAM,2CAA2C,EAAE,iCAEzD,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,cAAc,CAAC,iCAAiC,CAA+F,CAAC"}
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,EAAE,UAAU,EAAiB,MAAM,MAAM,CAAC;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAwB,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,oBAAoB,EAAqD,MAAM,qBAAqB,CAAC;AAClL,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAq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