@degenerate/rules 0.0.4 → 0.0.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 (129) hide show
  1. package/LICENSE.md +15 -0
  2. package/README.md +1 -0
  3. package/dist/evaluation/check-function-integrity.d.ts.map +1 -0
  4. package/dist/evaluation/check-if-proposal-is-valid.d.ts.map +1 -0
  5. package/dist/evaluation/conditions/boolean-conditions.d.ts.map +1 -0
  6. package/dist/evaluation/conditions/contains-conditions.d.ts.map +1 -0
  7. package/dist/evaluation/conditions/empty-conditions.d.ts.map +1 -0
  8. package/dist/evaluation/conditions/equality-conditions.d.ts.map +1 -0
  9. package/dist/evaluation/conditions/null-conditions.d.ts.map +1 -0
  10. package/dist/evaluation/conditions/range-conditions.d.ts.map +1 -0
  11. package/dist/evaluation/conditions/special-conditions.d.ts.map +1 -0
  12. package/dist/{rules/src/evaluation → evaluation}/conditions/starts-end-with-conditions.d.ts +1 -1
  13. package/dist/evaluation/conditions/starts-end-with-conditions.d.ts.map +1 -0
  14. package/dist/evaluation/conditions/starts-end-with-conditions.js +100 -0
  15. package/dist/evaluation/conditions/typeof-rule-conditions.d.ts.map +1 -0
  16. package/dist/{rules/src/evaluation → evaluation}/conditions/typeof-rule-conditions.js +3 -3
  17. package/dist/evaluation/determine-if-data-has-changed.d.ts.map +1 -0
  18. package/dist/evaluation/evaluate-rule-conditions.d.ts.map +1 -0
  19. package/dist/evaluation/evaluate-rule.d.ts.map +1 -0
  20. package/dist/evaluation/evaluate-rules.d.ts.map +1 -0
  21. package/dist/evaluation/get-data-changed-information.d.ts.map +1 -0
  22. package/dist/evaluation/get-root-property-results.d.ts.map +1 -0
  23. package/dist/evaluation/index.d.ts.map +1 -0
  24. package/dist/evaluation/start-rule-evaluation.d.ts.map +1 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/package.json +4 -3
  27. package/dist/generic/src/errors/base-error.d.ts +0 -23
  28. package/dist/generic/src/errors/base-error.d.ts.map +0 -1
  29. package/dist/generic/src/errors/base-error.js +0 -34
  30. package/dist/generic/src/errors/generic/generic-errors.d.ts +0 -35
  31. package/dist/generic/src/errors/generic/generic-errors.d.ts.map +0 -1
  32. package/dist/generic/src/errors/generic/generic-errors.js +0 -47
  33. package/dist/generic/src/errors/index.d.ts +0 -7
  34. package/dist/generic/src/errors/index.d.ts.map +0 -1
  35. package/dist/generic/src/errors/index.js +0 -22
  36. package/dist/generic/src/errors/request/request-errors.d.ts +0 -89
  37. package/dist/generic/src/errors/request/request-errors.d.ts.map +0 -1
  38. package/dist/generic/src/errors/request/request-errors.js +0 -120
  39. package/dist/generic/src/errors/safe/safe-rules-errors.d.ts +0 -30
  40. package/dist/generic/src/errors/safe/safe-rules-errors.d.ts.map +0 -1
  41. package/dist/generic/src/errors/safe/safe-rules-errors.js +0 -40
  42. package/dist/generic/src/errors/scheduler/scheduler-errors.d.ts +0 -8
  43. package/dist/generic/src/errors/scheduler/scheduler-errors.d.ts.map +0 -1
  44. package/dist/generic/src/errors/scheduler/scheduler-errors.js +0 -14
  45. package/dist/generic/src/errors/share-data/share-data-errors.d.ts +0 -49
  46. package/dist/generic/src/errors/share-data/share-data-errors.d.ts.map +0 -1
  47. package/dist/generic/src/errors/share-data/share-data-errors.js +0 -66
  48. package/dist/generic/src/models/data/data-models.d.ts +0 -24
  49. package/dist/generic/src/models/data/data-models.d.ts.map +0 -1
  50. package/dist/generic/src/models/data/data-models.js +0 -3
  51. package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.d.ts +0 -9
  52. package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.d.ts.map +0 -1
  53. package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.js +0 -2
  54. package/dist/generic/src/models/events/share-event-models.d.ts +0 -65
  55. package/dist/generic/src/models/events/share-event-models.d.ts.map +0 -1
  56. package/dist/generic/src/models/events/share-event-models.js +0 -70
  57. package/dist/generic/src/models/functions/share-data-function-models.d.ts +0 -86
  58. package/dist/generic/src/models/functions/share-data-function-models.d.ts.map +0 -1
  59. package/dist/generic/src/models/functions/share-data-function-models.js +0 -17
  60. package/dist/generic/src/models/generic/request-response-models.d.ts +0 -8
  61. package/dist/generic/src/models/generic/request-response-models.d.ts.map +0 -1
  62. package/dist/generic/src/models/generic/request-response-models.js +0 -2
  63. package/dist/generic/src/models/index.d.ts +0 -8
  64. package/dist/generic/src/models/index.d.ts.map +0 -1
  65. package/dist/generic/src/models/index.js +0 -24
  66. package/dist/generic/src/models/rules/share-rule-models.d.ts +0 -277
  67. package/dist/generic/src/models/rules/share-rule-models.d.ts.map +0 -1
  68. package/dist/generic/src/models/rules/share-rule-models.js +0 -107
  69. package/dist/generic/src/models/share-data/share-data.d.ts +0 -55
  70. package/dist/generic/src/models/share-data/share-data.d.ts.map +0 -1
  71. package/dist/generic/src/models/share-data/share-data.js +0 -19
  72. package/dist/rules/src/evaluation/check-function-integrity.d.ts.map +0 -1
  73. package/dist/rules/src/evaluation/check-if-proposal-is-valid.d.ts.map +0 -1
  74. package/dist/rules/src/evaluation/conditions/boolean-conditions.d.ts.map +0 -1
  75. package/dist/rules/src/evaluation/conditions/contains-conditions.d.ts.map +0 -1
  76. package/dist/rules/src/evaluation/conditions/empty-conditions.d.ts.map +0 -1
  77. package/dist/rules/src/evaluation/conditions/equality-conditions.d.ts.map +0 -1
  78. package/dist/rules/src/evaluation/conditions/null-conditions.d.ts.map +0 -1
  79. package/dist/rules/src/evaluation/conditions/range-conditions.d.ts.map +0 -1
  80. package/dist/rules/src/evaluation/conditions/special-conditions.d.ts.map +0 -1
  81. package/dist/rules/src/evaluation/conditions/starts-end-with-conditions.d.ts.map +0 -1
  82. package/dist/rules/src/evaluation/conditions/starts-end-with-conditions.js +0 -44
  83. package/dist/rules/src/evaluation/conditions/typeof-rule-conditions.d.ts.map +0 -1
  84. package/dist/rules/src/evaluation/determine-if-data-has-changed.d.ts.map +0 -1
  85. package/dist/rules/src/evaluation/evaluate-rule-conditions.d.ts.map +0 -1
  86. package/dist/rules/src/evaluation/evaluate-rule.d.ts.map +0 -1
  87. package/dist/rules/src/evaluation/evaluate-rules.d.ts.map +0 -1
  88. package/dist/rules/src/evaluation/get-data-changed-information.d.ts.map +0 -1
  89. package/dist/rules/src/evaluation/get-root-property-results.d.ts.map +0 -1
  90. package/dist/rules/src/evaluation/index.d.ts.map +0 -1
  91. package/dist/rules/src/evaluation/start-rule-evaluation.d.ts.map +0 -1
  92. package/dist/rules/src/index.d.ts.map +0 -1
  93. /package/dist/{rules/src/evaluation → evaluation}/check-function-integrity.d.ts +0 -0
  94. /package/dist/{rules/src/evaluation → evaluation}/check-function-integrity.js +0 -0
  95. /package/dist/{rules/src/evaluation → evaluation}/check-if-proposal-is-valid.d.ts +0 -0
  96. /package/dist/{rules/src/evaluation → evaluation}/check-if-proposal-is-valid.js +0 -0
  97. /package/dist/{rules/src/evaluation → evaluation}/conditions/boolean-conditions.d.ts +0 -0
  98. /package/dist/{rules/src/evaluation → evaluation}/conditions/boolean-conditions.js +0 -0
  99. /package/dist/{rules/src/evaluation → evaluation}/conditions/contains-conditions.d.ts +0 -0
  100. /package/dist/{rules/src/evaluation → evaluation}/conditions/contains-conditions.js +0 -0
  101. /package/dist/{rules/src/evaluation → evaluation}/conditions/empty-conditions.d.ts +0 -0
  102. /package/dist/{rules/src/evaluation → evaluation}/conditions/empty-conditions.js +0 -0
  103. /package/dist/{rules/src/evaluation → evaluation}/conditions/equality-conditions.d.ts +0 -0
  104. /package/dist/{rules/src/evaluation → evaluation}/conditions/equality-conditions.js +0 -0
  105. /package/dist/{rules/src/evaluation → evaluation}/conditions/null-conditions.d.ts +0 -0
  106. /package/dist/{rules/src/evaluation → evaluation}/conditions/null-conditions.js +0 -0
  107. /package/dist/{rules/src/evaluation → evaluation}/conditions/range-conditions.d.ts +0 -0
  108. /package/dist/{rules/src/evaluation → evaluation}/conditions/range-conditions.js +0 -0
  109. /package/dist/{rules/src/evaluation → evaluation}/conditions/special-conditions.d.ts +0 -0
  110. /package/dist/{rules/src/evaluation → evaluation}/conditions/special-conditions.js +0 -0
  111. /package/dist/{rules/src/evaluation → evaluation}/conditions/typeof-rule-conditions.d.ts +0 -0
  112. /package/dist/{rules/src/evaluation → evaluation}/determine-if-data-has-changed.d.ts +0 -0
  113. /package/dist/{rules/src/evaluation → evaluation}/determine-if-data-has-changed.js +0 -0
  114. /package/dist/{rules/src/evaluation → evaluation}/evaluate-rule-conditions.d.ts +0 -0
  115. /package/dist/{rules/src/evaluation → evaluation}/evaluate-rule-conditions.js +0 -0
  116. /package/dist/{rules/src/evaluation → evaluation}/evaluate-rule.d.ts +0 -0
  117. /package/dist/{rules/src/evaluation → evaluation}/evaluate-rule.js +0 -0
  118. /package/dist/{rules/src/evaluation → evaluation}/evaluate-rules.d.ts +0 -0
  119. /package/dist/{rules/src/evaluation → evaluation}/evaluate-rules.js +0 -0
  120. /package/dist/{rules/src/evaluation → evaluation}/get-data-changed-information.d.ts +0 -0
  121. /package/dist/{rules/src/evaluation → evaluation}/get-data-changed-information.js +0 -0
  122. /package/dist/{rules/src/evaluation → evaluation}/get-root-property-results.d.ts +0 -0
  123. /package/dist/{rules/src/evaluation → evaluation}/get-root-property-results.js +0 -0
  124. /package/dist/{rules/src/evaluation → evaluation}/index.d.ts +0 -0
  125. /package/dist/{rules/src/evaluation → evaluation}/index.js +0 -0
  126. /package/dist/{rules/src/evaluation → evaluation}/start-rule-evaluation.d.ts +0 -0
  127. /package/dist/{rules/src/evaluation → evaluation}/start-rule-evaluation.js +0 -0
  128. /package/dist/{rules/src/index.d.ts → index.d.ts} +0 -0
  129. /package/dist/{rules/src/index.js → index.js} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"request-response-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/models/generic/request-response-models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- export * from './data/data-models';
2
- export * from './dynamic-execution/dynamic-execution-models';
3
- export * from './events/share-event-models';
4
- export * from './functions/share-data-function-models';
5
- export * from './generic/request-response-models';
6
- export * from './rules/share-rule-models';
7
- export * from './share-data/share-data';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../generic/src/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,oBAAoB,CAAC;AACnC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- // This exports all model files from the models folder.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- __exportStar(require("./data/data-models"), exports);
19
- __exportStar(require("./dynamic-execution/dynamic-execution-models"), exports);
20
- __exportStar(require("./events/share-event-models"), exports);
21
- __exportStar(require("./functions/share-data-function-models"), exports);
22
- __exportStar(require("./generic/request-response-models"), exports);
23
- __exportStar(require("./rules/share-rule-models"), exports);
24
- __exportStar(require("./share-data/share-data"), exports);
@@ -1,277 +0,0 @@
1
- /**
2
- * This file contains the models for the rules used in the share data.
3
- */
4
- /**
5
- * This contains the interface for the rule evaluation.
6
- */
7
- export interface IShareRuleEvalutionResult {
8
- ruleId: string;
9
- currentResult: boolean;
10
- currentConditionFailure: ICondition[];
11
- proposedResult: boolean;
12
- proposedConditionFailure: ICondition[];
13
- }
14
- /**
15
- * This contains the interface for the rule evaluation.
16
- */
17
- export interface IShareRulesEvaluationResult {
18
- rootParam: string;
19
- passedRuleCheck: boolean;
20
- passedRuleId: string;
21
- shareRuleEvalutionResults: IShareRuleEvalutionResult[];
22
- }
23
- /**
24
- * This contains the interface for the rule evaluation results.
25
- */
26
- export interface IRuleEvaluationResults {
27
- shareDataId: string;
28
- rulesResults: IShareRulesEvaluationResult[];
29
- isValidProposal: boolean;
30
- }
31
- /**
32
- * This contains the interface for the rule set in the share data object
33
- */
34
- export interface IRuleSet {
35
- id: string;
36
- name: string;
37
- description: string;
38
- ruleGroups: IRuleGroup[];
39
- }
40
- /**
41
- * This contains the logical operators for combining rules.
42
- */
43
- export declare enum LogicalOperator {
44
- AND = "AND",
45
- OR = "OR"
46
- }
47
- /**
48
- * This contains the interface for a rule group.
49
- *
50
- * A rule group can contain individual rules or nested rule groups.
51
- */
52
- export interface IRuleGroup {
53
- operator: LogicalOperator;
54
- rules: (IShareRule | IRuleGroup)[];
55
- }
56
- /**
57
- * This contains the interface for a share rule in the share data object
58
- */
59
- export interface IShareRule {
60
- ruleId: string;
61
- currentDataConditions: ICondition[];
62
- proposedDataConditions: ICondition[];
63
- }
64
- /**
65
- * This contains the applied rule informaiton in the share data object.
66
- */
67
- export interface IShareRuleApplied extends IShareRule {
68
- targettedProperty: string;
69
- }
70
- /**
71
- * This contains the different types of conditions that can be evaluated.
72
- */
73
- export type ConditionType = ConditionTypeTypeOf | ConditionTypeEquality | ConditionTypeRange | ConditionTypeContains | ConditionTypeStartsEndsWith | ConditionTypeNull | ConditionTypeBoolean | ConditionTypeEmpty;
74
- /**
75
- * This contains the choices for the typeof conditions.
76
- */
77
- export declare enum ConditionTypeTypeOf {
78
- IS_TYPEOF = "is typeof",
79
- IS_NOT_TYPEOF = "is not typeof"
80
- }
81
- /**
82
- * This contains the choices for the equality conditions.
83
- */
84
- export declare enum ConditionTypeEquality {
85
- EQUAL = "equal",
86
- NOT_EQUAL = "not equal"
87
- }
88
- /**
89
- * This contains the choices for the range conditions.
90
- */
91
- export declare enum ConditionTypeRange {
92
- GREATER_THAN = "greater than",
93
- LESS_THAN = "less than",
94
- GREATER_THAN_OR_EQUAL = "greater than or equal",
95
- LESS_THAN_OR_EQUAL = "less than or equal"
96
- }
97
- /**
98
- * This contains the choices for the contains conditions.
99
- */
100
- export declare enum ConditionTypeContains {
101
- CONTAINS = "contains",
102
- NOT_CONTAINS = "not contains"
103
- }
104
- /**
105
- * This contains the choices for the starts with and ends with conditions.
106
- */
107
- export declare enum ConditionTypeStartsEndsWith {
108
- STARTS_WITH = "starts with",
109
- ENDS_WITH = "ends with"
110
- }
111
- /**
112
- * This contains the choices for the null conditions.
113
- */
114
- export declare enum ConditionTypeNull {
115
- IS_NULL = "is null",
116
- IS_NOT_NULL = "is not null"
117
- }
118
- /**
119
- * This contains the choices for the boolean conditions.
120
- */
121
- export declare enum ConditionTypeBoolean {
122
- IS_TRUE = "is true",
123
- IS_FALSE = "is false"
124
- }
125
- /**
126
- * This contains the choices for the empty conditions.
127
- */
128
- export declare enum ConditionTypeEmpty {
129
- IS_EMPTY = "is empty",
130
- IS_NOT_EMPTY = "is not empty"
131
- }
132
- /**
133
- * This contains the choices for the special conditions.
134
- */
135
- export declare enum ConditionTypeSpecial {
136
- PATTERN = "pattern"
137
- }
138
- /**
139
- * This is the interface for the conditional information in the checks.
140
- */
141
- export type ICondition = IConditionTypeOf | IConditionEquality | IConditionRange | IConditionContains | IConditionStartsEndsWith | IConditionNull | IConditionBoolean | IConditionEmpty | IConditionSpecial;
142
- /**
143
- * These are the different choices for the types of data in a condition.
144
- */
145
- export declare enum ConditionTypeOf {
146
- STRING = "string",
147
- NUMBER = "number",
148
- INTEGER = "integer",
149
- BOOLEAN = "boolean",
150
- OBJECT = "object",
151
- ARRAY = "array",
152
- NULL = "null",
153
- UNDEFINED = "undefined",
154
- FUNCTION = "function",
155
- BIGINT = "bigint"
156
- }
157
- /**
158
- * This is the interface for the type of condition.
159
- *
160
- const exampleConditionTypeOf: IConditionTypeOf = {
161
- targettedProperty: 'address.city.total',
162
- conditionType: ConditionTypeTypeOf.IS_TYPEOF,
163
- conditionValue: ConditionTypeOf.NUMBER
164
- };
165
- */
166
- export interface IConditionTypeOf {
167
- targettedProperty: string;
168
- conditionType: ConditionTypeTypeOf;
169
- conditionValue: ConditionTypeOf;
170
- }
171
- /**
172
- * This is the interface for the equality condition.
173
- *
174
- const exampleConditionEquality: IConditionEquality = {
175
- targettedProperty: 'address.city.total',
176
- conditionType: ConditionTypeEquality.EQUAL,
177
- conditionValue: 100
178
- };
179
- */
180
- export interface IConditionEquality {
181
- targettedProperty: string;
182
- conditionType: ConditionTypeEquality;
183
- conditionValue: number | string;
184
- }
185
- /**
186
- * This is the interface for the range condition.
187
- *
188
- const exampleConditionRange: IConditionRange = {
189
- targettedProperty: 'address.city.total',
190
- conditionType: ConditionTypeRange.GREATER_THAN,
191
- conditionValue: 100
192
- };
193
- */
194
- export interface IConditionRange {
195
- targettedProperty: string;
196
- conditionType: ConditionTypeRange;
197
- conditionValue: string | number;
198
- }
199
- /**
200
- * This is the interface for the contains condition.
201
- *
202
- const exampleConditionContains: IConditionContains = {
203
- targettedProperty: 'address.city.name',
204
- conditionType: ConditionTypeContains.CONTAINS,
205
- conditionValue: ['gar'| 'garison' | 'garage']
206
- * };
207
- */
208
- export interface IConditionContains {
209
- targettedProperty: string;
210
- conditionType: ConditionTypeContains;
211
- conditionValue: string | string[] | number[];
212
- }
213
- /**
214
- * This is the interface for the starts with and ends with condition.
215
- *
216
- const exampleConditionStartsEndsWith: IConditionStartsEndsWith = {
217
- targettedProperty: 'address.city.name',
218
- conditionType: ConditionTypeStartsEndsWith.STARTS_WITH,
219
- conditionValue: 'cal'
220
- };
221
- */
222
- export interface IConditionStartsEndsWith {
223
- targettedProperty: string;
224
- conditionType: ConditionTypeStartsEndsWith;
225
- conditionValue: string;
226
- }
227
- /**
228
- * This is the interface for the null condition.
229
- *
230
- const exampleConditionNull: IConditionNull = {
231
- targettedProperty: 'address.city.name',
232
- conditionType: ConditionTypeNull.IS_NULL
233
- };
234
- */
235
- export interface IConditionNull {
236
- targettedProperty: string;
237
- conditionType: ConditionTypeNull;
238
- }
239
- /**
240
- * This is the interface for the boolean condition.
241
- *
242
- const exampleConditionBoolean: IConditionBoolean = {
243
- targettedProperty: 'address.city.name',
244
- conditionType: ConditionTypeBoolean.IS_TRUE
245
- };
246
- */
247
- export interface IConditionBoolean {
248
- targettedProperty: string;
249
- conditionType: ConditionTypeBoolean;
250
- }
251
- /**
252
- * This is the interface for the empty condition.
253
- *
254
- const exampleConditionEmpty: IConditionEmpty = {
255
- targettedProperty: 'address.city.name',
256
- conditionType: ConditionTypeEmpty.IS_EMPTY
257
- };
258
- */
259
- export interface IConditionEmpty {
260
- targettedProperty: string;
261
- conditionType: ConditionTypeEmpty;
262
- }
263
- /**
264
- * This is the interface for the special condition.
265
- *
266
- const exampleConditionSpecial: IConditionSpecial = {
267
- targettedProperty: 'address.city.name',
268
- conditionType: ConditionTypeSpecial.PATTERN,
269
- conditionValue: '^[a-zA-Z0-9]*$'
270
- };
271
- */
272
- export interface IConditionSpecial {
273
- targettedProperty: string;
274
- conditionType: ConditionTypeSpecial;
275
- conditionValue: string;
276
- }
277
- //# sourceMappingURL=share-rule-models.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"share-rule-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/models/rules/share-rule-models.ts"],"names":[],"mappings":"AACA;;GAEG;AAIH;;GAEG;AACH,MAAM,WAAW,y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,0 @@
1
- "use strict";
2
- /**
3
- * This file contains the models for the rules used in the share data.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ConditionTypeOf = exports.ConditionTypeSpecial = exports.ConditionTypeEmpty = exports.ConditionTypeBoolean = exports.ConditionTypeNull = exports.ConditionTypeStartsEndsWith = exports.ConditionTypeContains = exports.ConditionTypeRange = exports.ConditionTypeEquality = exports.ConditionTypeTypeOf = exports.LogicalOperator = void 0;
7
- //#endregion RuleSet
8
- //#region RuleGroup
9
- /**
10
- * This contains the logical operators for combining rules.
11
- */
12
- var LogicalOperator;
13
- (function (LogicalOperator) {
14
- LogicalOperator["AND"] = "AND";
15
- LogicalOperator["OR"] = "OR";
16
- })(LogicalOperator || (exports.LogicalOperator = LogicalOperator = {}));
17
- /**
18
- * This contains the choices for the typeof conditions.
19
- */
20
- var ConditionTypeTypeOf;
21
- (function (ConditionTypeTypeOf) {
22
- ConditionTypeTypeOf["IS_TYPEOF"] = "is typeof";
23
- ConditionTypeTypeOf["IS_NOT_TYPEOF"] = "is not typeof";
24
- })(ConditionTypeTypeOf || (exports.ConditionTypeTypeOf = ConditionTypeTypeOf = {}));
25
- /**
26
- * This contains the choices for the equality conditions.
27
- */
28
- var ConditionTypeEquality;
29
- (function (ConditionTypeEquality) {
30
- ConditionTypeEquality["EQUAL"] = "equal";
31
- ConditionTypeEquality["NOT_EQUAL"] = "not equal";
32
- })(ConditionTypeEquality || (exports.ConditionTypeEquality = ConditionTypeEquality = {}));
33
- /**
34
- * This contains the choices for the range conditions.
35
- */
36
- var ConditionTypeRange;
37
- (function (ConditionTypeRange) {
38
- ConditionTypeRange["GREATER_THAN"] = "greater than";
39
- ConditionTypeRange["LESS_THAN"] = "less than";
40
- ConditionTypeRange["GREATER_THAN_OR_EQUAL"] = "greater than or equal";
41
- ConditionTypeRange["LESS_THAN_OR_EQUAL"] = "less than or equal";
42
- })(ConditionTypeRange || (exports.ConditionTypeRange = ConditionTypeRange = {}));
43
- /**
44
- * This contains the choices for the contains conditions.
45
- */
46
- var ConditionTypeContains;
47
- (function (ConditionTypeContains) {
48
- ConditionTypeContains["CONTAINS"] = "contains";
49
- ConditionTypeContains["NOT_CONTAINS"] = "not contains";
50
- })(ConditionTypeContains || (exports.ConditionTypeContains = ConditionTypeContains = {}));
51
- /**
52
- * This contains the choices for the starts with and ends with conditions.
53
- */
54
- var ConditionTypeStartsEndsWith;
55
- (function (ConditionTypeStartsEndsWith) {
56
- ConditionTypeStartsEndsWith["STARTS_WITH"] = "starts with";
57
- ConditionTypeStartsEndsWith["ENDS_WITH"] = "ends with";
58
- })(ConditionTypeStartsEndsWith || (exports.ConditionTypeStartsEndsWith = ConditionTypeStartsEndsWith = {}));
59
- /**
60
- * This contains the choices for the null conditions.
61
- */
62
- var ConditionTypeNull;
63
- (function (ConditionTypeNull) {
64
- ConditionTypeNull["IS_NULL"] = "is null";
65
- ConditionTypeNull["IS_NOT_NULL"] = "is not null";
66
- })(ConditionTypeNull || (exports.ConditionTypeNull = ConditionTypeNull = {}));
67
- /**
68
- * This contains the choices for the boolean conditions.
69
- */
70
- var ConditionTypeBoolean;
71
- (function (ConditionTypeBoolean) {
72
- ConditionTypeBoolean["IS_TRUE"] = "is true";
73
- ConditionTypeBoolean["IS_FALSE"] = "is false";
74
- })(ConditionTypeBoolean || (exports.ConditionTypeBoolean = ConditionTypeBoolean = {}));
75
- /**
76
- * This contains the choices for the empty conditions.
77
- */
78
- var ConditionTypeEmpty;
79
- (function (ConditionTypeEmpty) {
80
- ConditionTypeEmpty["IS_EMPTY"] = "is empty";
81
- ConditionTypeEmpty["IS_NOT_EMPTY"] = "is not empty";
82
- })(ConditionTypeEmpty || (exports.ConditionTypeEmpty = ConditionTypeEmpty = {}));
83
- /**
84
- * This contains the choices for the special conditions.
85
- */
86
- var ConditionTypeSpecial;
87
- (function (ConditionTypeSpecial) {
88
- ConditionTypeSpecial["PATTERN"] = "pattern";
89
- })(ConditionTypeSpecial || (exports.ConditionTypeSpecial = ConditionTypeSpecial = {}));
90
- /**
91
- * These are the different choices for the types of data in a condition.
92
- */
93
- var ConditionTypeOf;
94
- (function (ConditionTypeOf) {
95
- ConditionTypeOf["STRING"] = "string";
96
- ConditionTypeOf["NUMBER"] = "number";
97
- ConditionTypeOf["INTEGER"] = "integer";
98
- ConditionTypeOf["BOOLEAN"] = "boolean";
99
- ConditionTypeOf["OBJECT"] = "object";
100
- ConditionTypeOf["ARRAY"] = "array";
101
- ConditionTypeOf["NULL"] = "null";
102
- ConditionTypeOf["UNDEFINED"] = "undefined";
103
- ConditionTypeOf["FUNCTION"] = "function";
104
- // SYMBOL = 'symbol',
105
- ConditionTypeOf["BIGINT"] = "bigint";
106
- })(ConditionTypeOf || (exports.ConditionTypeOf = ConditionTypeOf = {}));
107
- //#endregion Conditions
@@ -1,55 +0,0 @@
1
- /**
2
- * This contains the data for the share data object
3
- */
4
- export declare enum ShareDataTypes {
5
- RULE = "RULE",
6
- FUNCTION = "FUNCTION",
7
- TRANSACTION_HISTORY = "TRANSACTION_HISTORY",
8
- DATA = "DATA"
9
- }
10
- export interface IShareData {
11
- [key: string]: any;
12
- }
13
- /**
14
- * This contains the interface for a share function record in the share data object
15
- */
16
- export interface IShareFunctionRecord {
17
- id: string;
18
- groupingId: string;
19
- groupingName: string;
20
- name: string;
21
- description: string;
22
- hash: string;
23
- stringifiedFunction: string;
24
- }
25
- /**
26
- * This contains the interface for a share function in the share data object
27
- */
28
- export interface IShareFunction<TInput, TFunction extends (...args: any[]) => any, TOutput> {
29
- input: TInput;
30
- func: TFunction;
31
- output: TOutput;
32
- }
33
- /**
34
- * This contains the interface for the share transaction history in the share data object
35
- */
36
- export interface IShareTransactionBase {
37
- ruleOutcome: boolean;
38
- ruleFailures: IRuleFailures[];
39
- transactionFunction: IShareFunction<any, (...args: any[]) => any, any>;
40
- }
41
- /**
42
- * This contains the interface for the share transaction history in the share data object
43
- * This is done for storage
44
- */
45
- export interface IShareTransactionHistory extends IShareTransactionBase {
46
- transactionId: string;
47
- transactionTime: number;
48
- }
49
- /**
50
- * This contains the interface for the rule success in the share data object
51
- */
52
- export interface IRuleFailures {
53
- ruleId: string;
54
- }
55
- //# sourceMappingURL=share-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"share-data.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/models/share-data/share-data.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH,oBAAY,cAAc;IACtB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,mBAAmB,wBAAwB;IAC3C,IAAI,SAAS;CAChB;AAGD,MAAM,WAAW,UAAU;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE,MAAM,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,MAAM,EAAE,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,OAAO;IACtF,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,aAAa,EAAE,CAAC;IAC9B,mBAAmB,EAAE,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,GAAG,CAAC,CAAC;CAC1E;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAyB,SAAQ,qBAAqB;IACnE,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,MAAM,CAAC;CAClB"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShareDataTypes = void 0;
4
- /**
5
- * This contains the data for the share data object
6
- */
7
- var ShareDataTypes;
8
- (function (ShareDataTypes) {
9
- ShareDataTypes["RULE"] = "RULE";
10
- ShareDataTypes["FUNCTION"] = "FUNCTION";
11
- ShareDataTypes["TRANSACTION_HISTORY"] = "TRANSACTION_HISTORY";
12
- ShareDataTypes["DATA"] = "DATA";
13
- })(ShareDataTypes || (exports.ShareDataTypes = ShareDataTypes = {}));
14
- // export interface IShareData {
15
- // rules: IShareRule[]; // the rules for the share data
16
- // functions: IShareFunction[]; // the functions for the share data
17
- // transactionHistory: IShareTransactionHistory[]; // The transaction history for the share data
18
- // data
19
- // }
@@ -1 +0,0 @@
1
- {"version":3,"file":"check-function-integrity.d.ts","sourceRoot":"","sources":["../../../../src/evaluation/check-function-integrity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,QAAA,MAAM,sBAAsB,sBAAuB,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,GAAG,CAAC,sBAC5E,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,GAAG,CAAC,EAAE,KAAG,OAK7E,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"check-if-proposal-is-valid.d.ts","sourceRoot":"","sources":["../../../../src/evaluation/check-if-proposal-is-valid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAElE;;;;;;GAMG;AACH,QAAA,MAAM,sBAAsB,wBACH,MAAM,gBACb,2BAA2B,EAAE,KAC5C,OAGF,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"boolean-conditions.d.ts","sourceRoot":"","sources":["../../../../../src/evaluation/conditions/boolean-conditions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAmB,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE5E;;;;;;;GAOG;AACH,QAAA,MAAM,mBAAmB,cAAe,OAAO,iBAAiB,oBAAoB,KAAG,OAWtF,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"contains-conditions.d.ts","sourceRoot":"","sources":["../../../../../src/evaluation/conditions/contains-conditions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;;;;;;GAQG;AACH,QAAA,MAAM,oBAAoB,cAAe,MAAM,GAAG,MAAM,kBAAkB,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,iBACnF,qBAAqB,KAAG,OAQ1C,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"empty-conditions.d.ts","sourceRoot":"","sources":["../../../../../src/evaluation/conditions/empty-conditions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAiB,MAAM,qBAAqB,CAAC;AAExE;;;;;;;GAOG;AACH,QAAA,MAAM,iBAAiB,cAAe,OAAO,iBAAiB,kBAAkB,KAAG,OAiBlF,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"equality-conditions.d.ts","sourceRoot":"","sources":["../../../../../src/evaluation/conditions/equality-conditions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;;;;;GAOG;AACH,QAAA,MAAM,oBAAoB,cAAe,OAAO,kBAAkB,OAAO,iBAAiB,qBAAqB,KAAG,OAOjH,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"null-conditions.d.ts","sourceRoot":"","sources":["../../../../../src/evaluation/conditions/null-conditions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;;;;GAOG;AACH,QAAA,MAAM,gBAAgB,cAAe,GAAG,iBAAiB,iBAAiB,KAAG,OAO5E,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"range-conditions.d.ts","sourceRoot":"","sources":["../../../../../src/evaluation/conditions/range-conditions.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;;;;GAOG;AACH,QAAA,MAAM,iBAAiB,cAAe,MAAM,GAAG,MAAM,kBAAkB,MAAM,GAAG,MAAM,iBAAiB,kBAAkB,KAAG,OAW3H,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"special-conditions.d.ts","sourceRoot":"","sources":["../../../../../src/evaluation/conditions/special-conditions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,oBAAoB,EAAkD,MAAM,qBAAqB,CAAC;AAE3G;;;;;;;GAOG;AACH,QAAA,MAAM,mBAAmB,cAAe,OAAO,kBAAkB,OAAO,iBAAiB,oBAAoB,KAAG,OAK/G,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"starts-end-with-conditions.d.ts","sourceRoot":"","sources":["../../../../../src/evaluation/conditions/starts-end-with-conditions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,2BAA2B,EAAiB,MAAM,qBAAqB,CAAC;AAGjF;;;;;;;;GAQG;AACH,QAAA,MAAM,wBAAwB,cAAe,MAAM,GAAG,MAAM,kBAAkB,MAAM,GAAG,MAAM,iBAC1E,2BAA2B,KAAG,OAWhD,CAAC;AAEF,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1,44 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file contains the functions for checking that starts or ends with are met
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.isValidStartEndWithValue = void 0;
7
- const generic_1 = require("@degenerate/generic");
8
- /**
9
- * This takes a value and checks if the value starts or ends with value
10
- *
11
- * @param dataValue the value to check
12
- * @param conditionValue the value to check against
13
- * @param conditionType whether this is a starts with or ends with condition
14
- *
15
- * @returns
16
- */
17
- const isValidStartEndWithValue = (dataValue, conditionValue, conditionType) => {
18
- // Make sure the data type is correct
19
- // if (!dataValue) SafeRuleEvaluationConditionDataValueError()
20
- // Array.isArray(incomingObject)
21
- // const isArray = validateArray
22
- switch (conditionType) {
23
- case generic_1.ConditionTypeStartsEndsWith.STARTS_WITH:
24
- return dataValue.toString().startsWith(conditionValue.toString());
25
- case generic_1.ConditionTypeStartsEndsWith.ENDS_WITH:
26
- return dataValue.toString().endsWith(conditionValue.toString());
27
- }
28
- };
29
- exports.isValidStartEndWithValue = isValidStartEndWithValue;
30
- /**
31
- * This takes a value and checks if the value starts or ends with value for a string or number
32
- * @param dataValue the value to check
33
- * @param conditionValue the value to check against
34
- * @param conditionType the type of equality condition to check for
35
- * @returns
36
- */
37
- const isValidStartEndWithStringNumberValue = (dataValue, conditionValue, conditionType) => {
38
- switch (conditionType) {
39
- case generic_1.ConditionTypeStartsEndsWith.STARTS_WITH:
40
- return dataValue.toString().startsWith(conditionValue.toString());
41
- case generic_1.ConditionTypeStartsEndsWith.ENDS_WITH:
42
- return dataValue.toString().endsWith(conditionValue.toString());
43
- }
44
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"typeof-rule-conditions.d.ts","sourceRoot":"","sources":["../../../../../src/evaluation/conditions/typeof-rule-conditions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE3E;;;;;;;;GAQG;AACH,QAAA,MAAM,kBAAkB,cAAe,OAAO,eAAe,eAAe,iBAAiB,mBAAmB,KAAG,OAGlH,CAAC;AAsCF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"determine-if-data-has-changed.d.ts","sourceRoot":"","sources":["../../../../src/evaluation/determine-if-data-has-changed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;;;;GAMG;AACH,QAAA,MAAM,yBAAyB,YAAa,UAAU,WAAW,UAAU,KAAG,OAE7E,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"evaluate-rule-conditions.d.ts","sourceRoot":"","sources":["../../../../src/evaluation/evaluate-rule-conditions.ts"],"names":[],"mappings":"AAAA,OAAO,EAUH,UAAU,EACV,aAAa,EAChB,MAAM,qBAAqB,CAAC;AAW7B;;;;;GAKG;AACH,QAAA,MAAM,sBAAsB,iBAAkB,aAAa,aAAa,UAAU,KAAG,OAkCpF,CAAC;AAGF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"evaluate-rule.d.ts","sourceRoot":"","sources":["../../../../src/evaluation/evaluate-rule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAG/F;;;;;;;;GAQG;AACH,QAAA,MAAM,YAAY,SACR,iBAAiB,oBACL,UAAU,qBACT,UAAU,wBAE9B,yBAmCF,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"evaluate-rules.d.ts","sourceRoot":"","sources":["../../../../src/evaluation/evaluate-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,2BAA2B,EAA6B,MAAM,qBAAqB,CAAC;AAG5H;;;;;;;GAOG;AACH,QAAA,MAAM,aAAa,cACJ,MAAM,gBACH,iBAAiB,EAAE,oBACf,UAAU,qBACT,UAAU,wBAE9B,2BA2BF,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-data-changed-information.d.ts","sourceRoot":"","sources":["../../../../src/evaluation/get-data-changed-information.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD;;;;;;GAMG;AACH,QAAA,MAAM,0BAA0B,qBAAsB,UAAU,qBACzC,UAAU,KAAG,MAAM,EAsBzC,CAAC;AAEF,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-root-property-results.d.ts","sourceRoot":"","sources":["../../../../src/evaluation/get-root-property-results.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAGjG;;;;;;;;;GASG;AACH,QAAA,MAAM,sBAAsB,4BACC,MAAM,EAAE,gBACnB,iBAAiB,EAAE,oBACf,UAAU,qBACT,UAAU,wBAE9B,2BAA2B,EAa7B,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/evaluation/index.ts"],"names":[],"mappings":"AAEA,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AAIpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"start-rule-evaluation.d.ts","sourceRoot":"","sources":["../../../../src/evaluation/start-rule-evaluation.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,sBAAsB,EAGzB,MAAM,qBAAqB,CAAC;AAO7B;;;;;;;;GAQG;AACH,QAAA,MAAM,mBAAmB,gBACR,MAAM,qBACA,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,GAAG,CAAC,sBAChD,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,GAAG,CAAC,EAAE,gBACzD,iBAAiB,EAAE,oBACf,UAAU,qBACT,UAAU,wBAE9B,sBA4BF,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}