3xpr 1.7.10 → 1.9.0

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 (144) hide show
  1. package/{expression → application}/expressions.d.ts +6 -11
  2. package/{expression → application}/expressions.js +20 -44
  3. package/application/expressions.js.map +1 -0
  4. package/application/graphql/parser.d.ts +0 -0
  5. package/application/graphql/parser.js +89 -0
  6. package/application/graphql/parser.js.map +1 -0
  7. package/{expression → application/helper}/helper.d.ts +1 -1
  8. package/{expression → application/helper}/helper.js +2 -2
  9. package/application/helper/helper.js.map +1 -0
  10. package/application/helper/index.d.ts +2 -0
  11. package/application/helper/index.js +19 -0
  12. package/application/helper/index.js.map +1 -0
  13. package/{expression/operand/helper.d.ts → application/helper/operandHelper.d.ts} +1 -1
  14. package/{expression/operand/helper.js → application/helper/operandHelper.js} +17 -17
  15. package/application/helper/operandHelper.js.map +1 -0
  16. package/{expression → application}/index.d.ts +1 -2
  17. package/{expression → application}/index.js +1 -2
  18. package/application/index.js.map +1 -0
  19. package/{expression → application}/operand/builder.d.ts +3 -3
  20. package/{expression → application}/operand/builder.js +2 -2
  21. package/application/operand/builder.js.map +1 -0
  22. package/{expression/operand → application/operand/factory/basic}/evaluators.d.ts +1 -1
  23. package/{expression/operand → application/operand/factory/basic}/evaluators.js +30 -29
  24. package/application/operand/factory/basic/evaluators.js.map +1 -0
  25. package/{expression/operand → application/operand/factory/basic}/factory.d.ts +3 -3
  26. package/{expression/operand → application/operand/factory/basic}/factory.js +32 -31
  27. package/application/operand/factory/basic/factory.js.map +1 -0
  28. package/application/operand/factory/index.d.ts +2 -0
  29. package/application/operand/factory/index.js +19 -0
  30. package/application/operand/factory/index.js.map +1 -0
  31. package/{expression → application/operand/factory}/process/evaluators.d.ts +1 -1
  32. package/{expression → application/operand/factory}/process/evaluators.js +10 -10
  33. package/application/operand/factory/process/evaluators.js.map +1 -0
  34. package/{expression → application/operand/factory}/process/factory.d.ts +3 -3
  35. package/application/operand/factory/process/factory.js +122 -0
  36. package/application/operand/factory/process/factory.js.map +1 -0
  37. package/{expression → application}/operand/index.d.ts +1 -4
  38. package/{expression → application}/operand/index.js +1 -4
  39. package/application/operand/index.js.map +1 -0
  40. package/{expression → application}/operand/library.d.ts +3 -2
  41. package/{expression → application}/operand/library.js +70 -64
  42. package/application/operand/library.js.map +1 -0
  43. package/{expression → application}/operand/model.d.ts +2 -2
  44. package/{expression → application}/operand/model.js +6 -6
  45. package/application/operand/model.js.map +1 -0
  46. package/{expression → application}/operand/normalizer.d.ts +3 -3
  47. package/{expression → application}/operand/normalizer.js +7 -7
  48. package/application/operand/normalizer.js.map +1 -0
  49. package/application/operand/parameters.d.ts +4 -0
  50. package/{expression → application}/operand/parameters.js +7 -6
  51. package/application/operand/parameters.js.map +1 -0
  52. package/{expression → application}/operand/parser.d.ts +2 -2
  53. package/{expression → application}/operand/parser.js +59 -58
  54. package/application/operand/parser.js.map +1 -0
  55. package/{expression → application}/operand/reducer.d.ts +3 -3
  56. package/{expression → application}/operand/reducer.js +5 -5
  57. package/application/operand/reducer.js.map +1 -0
  58. package/{expression → application}/operand/serializer.d.ts +1 -1
  59. package/{expression → application}/operand/serializer.js +4 -3
  60. package/application/operand/serializer.js.map +1 -0
  61. package/{expression → application}/operand/type.d.ts +5 -4
  62. package/{expression → application}/operand/type.js +41 -40
  63. package/application/operand/type.js.map +1 -0
  64. package/domain/index.d.ts +3 -0
  65. package/{expression/process → domain}/index.js +2 -2
  66. package/domain/index.js.map +1 -0
  67. package/domain/model/base.js.map +1 -0
  68. package/domain/model/context.js.map +1 -0
  69. package/{expression/contract → domain/model}/index.d.ts +2 -2
  70. package/{expression/contract → domain/model}/index.js +2 -2
  71. package/domain/model/index.js.map +1 -0
  72. package/domain/model/observer.d.ts +14 -0
  73. package/{expression/contract/managers.js → domain/model/observer.js} +1 -1
  74. package/domain/model/observer.js.map +1 -0
  75. package/{expression/contract → domain/model}/operand.d.ts +2 -1
  76. package/domain/model/operand.js.map +1 -0
  77. package/domain/model/signals.js +3 -0
  78. package/domain/model/signals.js.map +1 -0
  79. package/domain/services/expressions.d.ts +26 -0
  80. package/domain/services/expressions.js +3 -0
  81. package/domain/services/expressions.js.map +1 -0
  82. package/domain/services/index.d.ts +5 -0
  83. package/domain/services/index.js +22 -0
  84. package/domain/services/index.js.map +1 -0
  85. package/domain/services/model.d.ts +28 -0
  86. package/domain/services/model.js.map +1 -0
  87. package/domain/services/operand.d.ts +14 -0
  88. package/domain/services/operand.js +3 -0
  89. package/domain/services/operand.js.map +1 -0
  90. package/domain/services/parameter.d.ts +4 -0
  91. package/domain/services/parameter.js +3 -0
  92. package/domain/services/parameter.js.map +1 -0
  93. package/domain/services/type.d.ts +5 -0
  94. package/domain/services/type.js +3 -0
  95. package/domain/services/type.js.map +1 -0
  96. package/index.d.ts +2 -19
  97. package/index.js +2 -35
  98. package/index.js.map +1 -1
  99. package/infrastructure/builder.d.ts +4 -0
  100. package/infrastructure/builder.js +20 -0
  101. package/infrastructure/builder.js.map +1 -0
  102. package/infrastructure/index.d.ts +19 -0
  103. package/infrastructure/index.js +52 -0
  104. package/infrastructure/index.js.map +1 -0
  105. package/package.json +3 -2
  106. package/expression/contract/base.js.map +0 -1
  107. package/expression/contract/context.js.map +0 -1
  108. package/expression/contract/index.js.map +0 -1
  109. package/expression/contract/managers.d.ts +0 -86
  110. package/expression/contract/managers.js.map +0 -1
  111. package/expression/contract/operand.js.map +0 -1
  112. package/expression/contract/type.d.ts +0 -50
  113. package/expression/contract/type.js +0 -164
  114. package/expression/contract/type.js.map +0 -1
  115. package/expression/expressions.js.map +0 -1
  116. package/expression/helper.js.map +0 -1
  117. package/expression/index.js.map +0 -1
  118. package/expression/operand/builder.js.map +0 -1
  119. package/expression/operand/evaluators.js.map +0 -1
  120. package/expression/operand/factory.js.map +0 -1
  121. package/expression/operand/helper.js.map +0 -1
  122. package/expression/operand/index.js.map +0 -1
  123. package/expression/operand/library.js.map +0 -1
  124. package/expression/operand/model.js.map +0 -1
  125. package/expression/operand/normalizer.js.map +0 -1
  126. package/expression/operand/parameters.d.ts +0 -4
  127. package/expression/operand/parameters.js.map +0 -1
  128. package/expression/operand/parser.js.map +0 -1
  129. package/expression/operand/reducer.js.map +0 -1
  130. package/expression/operand/serializer.js.map +0 -1
  131. package/expression/operand/type.js.map +0 -1
  132. package/expression/process/evaluators.js.map +0 -1
  133. package/expression/process/factory.js +0 -122
  134. package/expression/process/factory.js.map +0 -1
  135. package/expression/process/index.d.ts +0 -3
  136. package/expression/process/index.js.map +0 -1
  137. package/expression/process/model.js.map +0 -1
  138. /package/{expression/contract → domain/model}/base.d.ts +0 -0
  139. /package/{expression/contract → domain/model}/base.js +0 -0
  140. /package/{expression/contract → domain/model}/context.d.ts +0 -0
  141. /package/{expression/contract → domain/model}/context.js +0 -0
  142. /package/{expression/contract → domain/model}/operand.js +0 -0
  143. /package/{expression/process/model.d.ts → domain/model/signals.d.ts} +0 -0
  144. /package/{expression/process → domain/services}/model.js +0 -0
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TypeManager = void 0;
3
+ exports.TypeService = void 0;
4
4
  // import { Const, Var, Template, Operator, CallFunc, Arrow, List, Obj, Property } from './operands'
5
- const contract_1 = require("../contract");
6
- class TypeManager {
5
+ const domain_1 = require("../../domain");
6
+ const json_light_1 = require("json-light");
7
+ class TypeService {
7
8
  // eslint-disable-next-line no-useless-constructor
8
9
  constructor(model) {
9
10
  this.model = model;
@@ -23,25 +24,25 @@ class TypeManager {
23
24
  this.solveType(operand);
24
25
  this.solveTemplate(operand);
25
26
  this.setUndefinedAsAny(operand);
26
- return operand.returnType || contract_1.Type.any;
27
+ return operand.returnType || json_light_1.Type.any;
27
28
  }
28
29
  solveType(operand) {
29
- if (operand.type === contract_1.OperandType.Const || operand.type === contract_1.OperandType.Var || operand.type === contract_1.OperandType.Template) {
30
+ if (operand.type === domain_1.OperandType.Const || operand.type === domain_1.OperandType.Var || operand.type === domain_1.OperandType.Template) {
30
31
  return;
31
32
  }
32
- if (operand.type === contract_1.OperandType.List) {
33
+ if (operand.type === domain_1.OperandType.List) {
33
34
  this.solveArray(operand);
34
35
  }
35
- else if (operand.type === contract_1.OperandType.Obj) {
36
+ else if (operand.type === domain_1.OperandType.Obj) {
36
37
  this.solveObject(operand);
37
38
  }
38
- else if (operand.type === contract_1.OperandType.Arrow) {
39
+ else if (operand.type === domain_1.OperandType.Arrow) {
39
40
  this.solveArrow(operand);
40
41
  }
41
- else if (operand.type === contract_1.OperandType.Operator || operand.type === contract_1.OperandType.ChildFunc || operand.type === contract_1.OperandType.CallFunc) {
42
+ else if (operand.type === domain_1.OperandType.Operator || operand.type === domain_1.OperandType.ChildFunc || operand.type === domain_1.OperandType.CallFunc) {
42
43
  this.solveOperator(operand);
43
44
  }
44
- else if (operand.type === contract_1.OperandType.Property) {
45
+ else if (operand.type === domain_1.OperandType.Property) {
45
46
  this.solveProperty(operand);
46
47
  }
47
48
  else {
@@ -49,16 +50,16 @@ class TypeManager {
49
50
  }
50
51
  }
51
52
  solveTemplate(operand) {
52
- if (operand.type === contract_1.OperandType.Const || operand.type === contract_1.OperandType.Var || operand.type === contract_1.OperandType.Template) {
53
+ if (operand.type === domain_1.OperandType.Const || operand.type === domain_1.OperandType.Var || operand.type === domain_1.OperandType.Template) {
53
54
  return;
54
55
  }
55
- if (operand.type === contract_1.OperandType.List) {
56
+ if (operand.type === domain_1.OperandType.List) {
56
57
  this.solveTemplateArray(operand);
57
58
  }
58
- else if (operand.type === contract_1.OperandType.Obj) {
59
+ else if (operand.type === domain_1.OperandType.Obj) {
59
60
  this.solveTemplateObject(operand);
60
61
  }
61
- else if (operand.type === contract_1.OperandType.Operator || operand.type === contract_1.OperandType.Arrow || operand.type === contract_1.OperandType.ChildFunc || operand.type === contract_1.OperandType.CallFunc) {
62
+ else if (operand.type === domain_1.OperandType.Operator || operand.type === domain_1.OperandType.Arrow || operand.type === domain_1.OperandType.ChildFunc || operand.type === domain_1.OperandType.CallFunc) {
62
63
  const metadata = this.metadata(operand);
63
64
  if (this.hadTemplate(metadata) && this.undefinedTypes(operand)) {
64
65
  this.solveTemplateOperator(operand, metadata);
@@ -67,7 +68,7 @@ class TypeManager {
67
68
  this.solveTemplate(child);
68
69
  }
69
70
  }
70
- else if (operand.type === contract_1.OperandType.Property) {
71
+ else if (operand.type === domain_1.OperandType.Property) {
71
72
  this.solveTemplateProperty(operand);
72
73
  }
73
74
  else {
@@ -76,7 +77,7 @@ class TypeManager {
76
77
  }
77
78
  setUndefinedAsAny(operand) {
78
79
  if (operand.returnType === undefined) {
79
- operand.returnType = contract_1.Type.any;
80
+ operand.returnType = json_light_1.Type.any;
80
81
  }
81
82
  for (const child of operand.children) {
82
83
  this.setUndefinedAsAny(child);
@@ -89,16 +90,16 @@ class TypeManager {
89
90
  keyVal.returnType = keyVal.children[0].returnType;
90
91
  properties.push({ name: keyVal.name, type: keyVal.children[0].returnType });
91
92
  }
92
- obj.returnType = contract_1.Type.Obj(properties);
93
+ obj.returnType = json_light_1.Type.Obj(properties);
93
94
  }
94
95
  solveProperty(property) {
95
96
  this.solveType(property.children[0]);
96
97
  if (property.children[0].returnType === undefined) {
97
- property.children[0].returnType = contract_1.Type.List(contract_1.Type.Obj([{ name: property.name }]));
98
+ property.children[0].returnType = json_light_1.Type.List(json_light_1.Type.Obj([{ name: property.name }]));
98
99
  }
99
- else if (contract_1.Type.isList(property.children[0].returnType)) {
100
+ else if (json_light_1.Type.isList(property.children[0].returnType)) {
100
101
  const listType = property.children[0].returnType.list;
101
- if (listType.items && contract_1.Type.isObj(listType.items)) {
102
+ if (listType.items && json_light_1.Type.isObj(listType.items)) {
102
103
  const objectType = listType.items.obj;
103
104
  const propertyType = objectType.properties.find(p => p.name === property.name);
104
105
  if (propertyType && propertyType.type) {
@@ -111,7 +112,7 @@ class TypeManager {
111
112
  this.solveType(array.children[0]);
112
113
  // si se resolvió el tipo del elemento, el tipo del array sera [<<TYPE>>]
113
114
  if (array.children[0].returnType !== undefined) {
114
- array.returnType = contract_1.Type.List(array.children[0].returnType);
115
+ array.returnType = json_light_1.Type.List(array.children[0].returnType);
115
116
  }
116
117
  }
117
118
  solveArrow(arrow) {
@@ -129,15 +130,15 @@ class TypeManager {
129
130
  }
130
131
  if (!this.isIndeterminateType(metadata.returnType)) {
131
132
  // TODO: hay que hacer que se pueda convertir de metadata type a Type y viceversa
132
- arrow.returnType = contract_1.Type.to(metadata.returnType);
133
+ arrow.returnType = json_light_1.Type.to(metadata.returnType);
133
134
  }
134
135
  if (array.returnType === undefined && metadata.params[0].type && !this.isIndeterminateType(metadata.params[0].type)) {
135
136
  // TODO: hay que hacer que se pueda convertir de metadata type a Type y viceversa
136
- array.returnType = contract_1.Type.to(metadata.params[0].type);
137
+ array.returnType = json_light_1.Type.to(metadata.params[0].type);
137
138
  }
138
139
  if (predicate && metadata.params[1].type && !this.isIndeterminateType(metadata.params[1].type)) {
139
140
  // TODO: hay que hacer que se pueda convertir de metadata type a Type y viceversa
140
- predicate.returnType = contract_1.Type.to(metadata.params[1].type);
141
+ predicate.returnType = json_light_1.Type.to(metadata.params[1].type);
141
142
  }
142
143
  if (predicate) {
143
144
  this.solveType(predicate);
@@ -183,14 +184,14 @@ class TypeManager {
183
184
  if (type === undefined) {
184
185
  return undefined;
185
186
  }
186
- if (contract_1.Type.isPrimitive(type)) {
187
- return contract_1.Type.to(type);
187
+ if (json_light_1.Type.isPrimitive(type)) {
188
+ return json_light_1.Type.to(type);
188
189
  }
189
190
  // si de acuerdo a la metadata el tipo es un array de primitivo, asigna el tipo, example: string[]
190
191
  if (type.endsWith('[]')) {
191
192
  const elementType = type.substring(0, type.length - 2);
192
- if (contract_1.Type.isPrimitive(elementType)) {
193
- return contract_1.Type.List(contract_1.Type.get(elementType));
193
+ if (json_light_1.Type.isPrimitive(elementType)) {
194
+ return json_light_1.Type.List(json_light_1.Type.get(elementType));
194
195
  }
195
196
  }
196
197
  return undefined;
@@ -199,15 +200,15 @@ class TypeManager {
199
200
  const beforeType = array.children[0].returnType;
200
201
  this.solveTemplate(array.children[0]);
201
202
  if (array.children[0].returnType && array.children[0].returnType !== beforeType) {
202
- array.returnType = contract_1.Type.List(array.children[0].returnType);
203
+ array.returnType = json_light_1.Type.List(array.children[0].returnType);
203
204
  }
204
205
  }
205
206
  solveTemplateProperty(property) {
206
207
  const beforeType = property.children[0].returnType;
207
208
  this.solveTemplate(property.children[0]);
208
- if (property.children[0].returnType !== undefined && property.children[0].returnType !== beforeType && contract_1.Type.isList(property.children[0].returnType)) {
209
+ if (property.children[0].returnType !== undefined && property.children[0].returnType !== beforeType && json_light_1.Type.isList(property.children[0].returnType)) {
209
210
  const arrayType = property.children[0].returnType.list;
210
- if (contract_1.Type.isObj(arrayType.items)) {
211
+ if (json_light_1.Type.isObj(arrayType.items)) {
211
212
  const objectType = arrayType.items.obj;
212
213
  const propertyType = objectType.properties.find(p => p.name === property.name);
213
214
  if (propertyType && propertyType.type) {
@@ -231,7 +232,7 @@ class TypeManager {
231
232
  for (const child of obj.children) {
232
233
  properties.push({ name: child.name, type: child.children[0].returnType });
233
234
  }
234
- obj.returnType = contract_1.Type.Obj(properties);
235
+ obj.returnType = json_light_1.Type.Obj(properties);
235
236
  }
236
237
  }
237
238
  solveTemplateOperator(operator, metadata) {
@@ -241,7 +242,7 @@ class TypeManager {
241
242
  if (metadata.returnType === 'T') {
242
243
  templateType = operator.returnType;
243
244
  }
244
- else if (metadata.returnType === 'T[]' && contract_1.Type.isList(operator.returnType)) {
245
+ else if (metadata.returnType === 'T[]' && json_light_1.Type.isList(operator.returnType)) {
245
246
  templateType = operator.returnType.list.items;
246
247
  }
247
248
  }
@@ -261,7 +262,7 @@ class TypeManager {
261
262
  templateType = child.returnType;
262
263
  break;
263
264
  }
264
- else if (paramMetadata.type === 'T[]' && contract_1.Type.isList(child.returnType)) {
265
+ else if (paramMetadata.type === 'T[]' && json_light_1.Type.isList(child.returnType)) {
265
266
  templateType = child.returnType.list.items;
266
267
  break;
267
268
  }
@@ -275,7 +276,7 @@ class TypeManager {
275
276
  operator.returnType = templateType;
276
277
  }
277
278
  else if (metadata.returnType === 'T[]') {
278
- operator.returnType = contract_1.Type.List(templateType);
279
+ operator.returnType = json_light_1.Type.List(templateType);
279
280
  }
280
281
  }
281
282
  for (let i = 0; i < metadata.params.length; i++) {
@@ -292,7 +293,7 @@ class TypeManager {
292
293
  child.returnType = templateType;
293
294
  }
294
295
  else if (paramMetadata.type === 'T[]') {
295
- child.returnType = contract_1.Type.List(templateType);
296
+ child.returnType = json_light_1.Type.List(templateType);
296
297
  }
297
298
  }
298
299
  }
@@ -302,12 +303,12 @@ class TypeManager {
302
303
  return array.returnType ? array.returnType.list.items : undefined;
303
304
  }
304
305
  setVariableType(name, type, operand) {
305
- if (operand.type === contract_1.OperandType.Var && operand.name === name) {
306
+ if (operand.type === domain_1.OperandType.Var && operand.name === name) {
306
307
  operand.returnType = type;
307
308
  }
308
309
  for (const child of operand.children) {
309
310
  // es por si se da el caso xxx.filter( p=> p.filter( p => p + 1 ) )
310
- if (!(child.type === contract_1.OperandType.Arrow && child.children[1].name === name)) {
311
+ if (!(child.type === domain_1.OperandType.Arrow && child.children[1].name === name)) {
311
312
  this.setVariableType(name, type, child);
312
313
  }
313
314
  }
@@ -330,10 +331,10 @@ class TypeManager {
330
331
  * @returns
331
332
  */
332
333
  metadata(operator) {
333
- return operator.type === contract_1.OperandType.Operator
334
+ return operator.type === domain_1.OperandType.Operator
334
335
  ? this.model.getOperator(operator.name, operator.children.length)
335
336
  : this.model.getFunction(operator.name);
336
337
  }
337
338
  }
338
- exports.TypeManager = TypeManager;
339
+ exports.TypeService = TypeService;
339
340
  //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/lib/application/operand/type.ts"],"names":[],"mappings":";;;AAAA,oGAAoG;AACpG,yCAAkG;AAClG,2CAAkE;AAClE,MAAa,W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BAAmB,CAAE,IAAY;QAC1C,IAAI,IAAI,KAAK,SAAS,EAAE;YACvB,OAAO,IAAI,CAAA;SACX;QACD,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;IACnD,CAAC;IAES,WAAW,CAAE,QAA0B;QAChD,OAAO,QAAQ,CAAC,UAAU,KAAK,GAAG,IAAI,QAAQ,CAAC,UAAU,KAAK,KAAK,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,KAAK,SAAS,CAAA;IACnJ,CAAC;IAES,cAAc,CAAE,QAAiB;QAC1C,OAAO,QAAQ,CAAC,UAAU,KAAK,SAAS,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,SAAS,CAAC,KAAK,SAAS,CAAA;IAClH,CAAC;IAED;;;;OAIG;IACO,QAAQ,CAAE,QAAiB;QACpC,OAAO,QAAQ,CAAC,IAAI,KAAK,oBAAW,CAAC,QAAQ;YAC5C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;YACjE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;IACzC,CAAC;CACD;AAhVD,kCAgVC"}
@@ -0,0 +1,3 @@
1
+ export * from './model';
2
+ export * from './services';
3
+ export * from '../application/helper/helper';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./evaluators"), exports);
18
- __exportStar(require("./factory"), exports);
19
17
  __exportStar(require("./model"), exports);
18
+ __exportStar(require("./services"), exports);
19
+ __exportStar(require("../application/helper/helper"), exports);
20
20
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,6CAA0B;AAC1B,+DAA4C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/lib/domain/model/base.ts"],"names":[],"mappings":";;;AA4BA,MAAa,QAAQ;IACpB,kDAAkD;IAClD,YAA6B,EAAU,EAAW,GAAU;QAA/B,OAAE,GAAF,EAAE,CAAQ;QAAW,QAAG,GAAH,GAAG,CAAO;IAAG,CAAC;CAChE;AAHD,4BAGC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/lib/domain/model/context.ts"],"names":[],"mappings":";;;;;;AAAA,+BAA2B;AAC3B,oDAA2B;AAE3B,MAAa,IAAI;IAChB,kDAAkD;IAClD,YAA2B,OAAW,EAAE,EAAS,MAAY;QAAlC,SAAI,GAAJ,IAAI,CAAS;QAAS,WAAM,GAAN,MAAM,CAAM;IAAI,CAAC;IAElE,OAAO;QACN,OAAO,IAAI,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;IAC1B,CAAC;IAED,OAAO,CAAE,QAAe;QACvB,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,IAAI,CAAA;QAC9E,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;QAC9C,OAAO,QAAQ,IAAI,IAAI,CAAC,IAAI,CAAA;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  export * from './operand';
4
- export * from './type';
5
- export * from './managers';
4
+ export * from './observer';
5
+ export * from './signals';
@@ -17,6 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./base"), exports);
18
18
  __exportStar(require("./context"), exports);
19
19
  __exportStar(require("./operand"), exports);
20
- __exportStar(require("./type"), exports);
21
- __exportStar(require("./managers"), exports);
20
+ __exportStar(require("./observer"), exports);
21
+ __exportStar(require("./signals"), exports);
22
22
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,4CAAyB;AACzB,4CAAyB;AACzB,6CAA0B;AAC1B,4CAAyB"}
@@ -0,0 +1,14 @@
1
+ import { Context } from '..';
2
+ export interface ActionObserverArgs {
3
+ expression: string;
4
+ context: Context;
5
+ result?: any;
6
+ error?: any;
7
+ }
8
+ export declare abstract class ActionObserver {
9
+ readonly condition?: string | undefined;
10
+ constructor(condition?: string | undefined);
11
+ abstract before(args: ActionObserverArgs): void;
12
+ abstract after(args: ActionObserverArgs): void;
13
+ abstract error(args: ActionObserverArgs): void;
14
+ }
@@ -8,4 +8,4 @@ class ActionObserver {
8
8
  }
9
9
  }
10
10
  exports.ActionObserver = ActionObserver;
11
- //# sourceMappingURL=managers.js.map
11
+ //# sourceMappingURL=observer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observer.js","sourceRoot":"","sources":["../../../../src/lib/domain/model/observer.ts"],"names":[],"mappings":";;;AAOA,MAAsB,cAAc;IACnC,kDAAkD;IAClD,YAAoC,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;IAAG,CAAC;CAIzD;AAND,wCAMC"}
@@ -1,4 +1,5 @@
1
- import { Type, Context, Parameter, Position } from '.';
1
+ import { Context, Parameter, Position } from '..';
2
+ import { Type } from 'json-light';
2
3
  export declare enum OperandType {
3
4
  Const = "Const",
4
5
  Var = "Var",
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operand.js","sourceRoot":"","sources":["../../../../src/lib/domain/model/operand.ts"],"names":[],"mappings":";;;AAGA,IAAY,WA+BX;AA/BD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,4BAAa,CAAA;IACb,0BAAW,CAAA;IACX,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,8BAAe,CAAA;IACf,sCAAuB,CAAA;IACvB,8BAAe,CAAA;IACf,wBAAS,CAAA;IACT,gCAAiB,CAAA;IACjB,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,0BAAW,CAAA;IACX,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,0BAAW,CAAA;IACX,8BAAe,CAAA;IACf,8BAAe,CAAA;IACf,4BAAa,CAAA;AACf,CAAC,EA/BW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QA+BtB;AAwBD,MAAa,OAAO;IAInB,kDAAkD;IAClD,YAAoC,GAAY,EAAS,IAAQ,EAAkB,IAAgB,EAAS,WAAqB,EAAE,EAAS,UAAgB;QAAxH,QAAG,GAAH,GAAG,CAAS;QAAS,SAAI,GAAJ,IAAI,CAAI;QAAkB,SAAI,GAAJ,IAAI,CAAY;QAAS,aAAQ,GAAR,QAAQ,CAAe;QAAS,eAAU,GAAV,UAAU,CAAM;IAAI,CAAC;IAC1J,IAAI,CAAE,OAAgB;QAC5B,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACpB,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAA;SAC5C;QACD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IACpC,CAAC;CACD;AAZD,0BAYC;AAED,MAAsB,SAAS;IAC9B,kDAAkD;IAClD,YAAuC,OAAgB;QAAhB,YAAO,GAAP,OAAO,CAAS;IAAG,CAAC;CAE3D;AAJD,8BAIC;AAED,uFAAuF;AACvF,MAAsB,kBAAkB;IACvC,kDAAkD;IAClD,YAA8B,OAAiB;QAAjB,YAAO,GAAP,OAAO,CAAU;IAAG,CAAC;CAGnD;AALD,gDAKC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=signals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signals.js","sourceRoot":"","sources":["../../../../src/lib/domain/model/signals.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import { IModelService } from './model';
2
+ import { Parameter, Format, OperatorAdditionalInfo, FunctionAdditionalInfo, Operand, OperatorMetadata, ActionObserver } from '../model';
3
+ export interface IExpressions {
4
+ get model(): IModelService;
5
+ get enums(): [string, [string, any][]][];
6
+ get formats(): [string, Format][];
7
+ get constants(): [string, any][];
8
+ get operators(): [string, OperatorMetadata][];
9
+ get functions(): [string, OperatorMetadata][];
10
+ addOperator(sing: string, source: any, additionalInfo: OperatorAdditionalInfo): void;
11
+ addFunction(sing: string, source: any, additionalInfo?: FunctionAdditionalInfo): void;
12
+ addOperatorAlias(alias: string, reference: string): void;
13
+ addFunctionAlias(alias: string, reference: string): void;
14
+ addEnum(key: string, values: [string, any][] | any): void;
15
+ addFormat(key: string, pattern: string): void;
16
+ addConstant(key: string, value: any): void;
17
+ toExpression(func: Function): string;
18
+ graphqlToExpression(graphql: string): string;
19
+ build(expression: string, useCache: boolean): Operand;
20
+ parameters(expression: string): Parameter[];
21
+ type(expression: string): string;
22
+ eval(expression: string, data?: any): any;
23
+ run(expression: string, data?: any): any;
24
+ subscribe(observer: ActionObserver): void;
25
+ unsubscribe(observer: ActionObserver): void;
26
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=expressions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expressions.js","sourceRoot":"","sources":["../../../../src/lib/domain/services/expressions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './expressions';
2
+ export * from './model';
3
+ export * from './operand';
4
+ export * from './parameter';
5
+ export * from './type';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./expressions"), exports);
18
+ __exportStar(require("./model"), exports);
19
+ __exportStar(require("./operand"), exports);
20
+ __exportStar(require("./parameter"), exports);
21
+ __exportStar(require("./type"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/domain/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,0CAAuB;AACvB,4CAAyB;AACzB,8CAA2B;AAC3B,yCAAsB"}
@@ -0,0 +1,28 @@
1
+ import { Format, OperatorAdditionalInfo, FunctionAdditionalInfo, OperatorMetadata } from '../model';
2
+ export interface IModelService {
3
+ get operatorAlias(): [string, any][];
4
+ get functionAlias(): [string, any][];
5
+ get enums(): [string, [string, any][]][];
6
+ get formats(): [string, Format][];
7
+ get constants(): [string, any][];
8
+ get operators(): [string, OperatorMetadata][];
9
+ get functions(): [string, OperatorMetadata][];
10
+ addEnum(name: string, values: [string, any][] | any): void;
11
+ addConstant(key: string, value: any): void;
12
+ addFormat(key: string, pattern: string): void;
13
+ addOperator(sing: string, source: any, additionalInfo: OperatorAdditionalInfo): void;
14
+ addFunction(sing: string, source: any, additionalInfo?: FunctionAdditionalInfo): void;
15
+ addOperatorAlias(alias: string, reference: string): void;
16
+ addFunctionAlias(alias: string, reference: string): void;
17
+ getConstantValue(name: string): any | undefined;
18
+ getEnumValue(name: string, option: string): any;
19
+ getEnum(name: string): any;
20
+ getFormat(name: string): Format | undefined;
21
+ getOperator(operator: string, operands?: number): OperatorMetadata;
22
+ getFunction(name: string): OperatorMetadata;
23
+ priority(name: string, cardinality?: number): number;
24
+ isEnum(name: string): boolean;
25
+ isConstant(name: string): boolean;
26
+ isOperator(name: string, operands?: number): boolean;
27
+ isFunction(name: string): boolean;
28
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../../src/lib/domain/services/model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { IEvaluator, Operand } from '../model';
2
+ export interface IOperandBuilder {
3
+ build(expression: string): Operand;
4
+ clone(source: Operand): Operand;
5
+ }
6
+ export interface IOperandNormalizer {
7
+ normalize(operand: Operand): Operand;
8
+ }
9
+ export interface IOperandReducer {
10
+ reduce(operand: Operand): Operand;
11
+ }
12
+ export interface IEvaluatorFactory {
13
+ create(operand: Operand): IEvaluator | undefined;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=operand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operand.js","sourceRoot":"","sources":["../../../../src/lib/domain/services/operand.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Parameter, Operand } from '../model';
2
+ export interface IParameterService {
3
+ parameters(operand: Operand): Parameter[];
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=parameter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameter.js","sourceRoot":"","sources":["../../../../src/lib/domain/services/parameter.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { Type } from 'json-light';
2
+ import { Operand } from '../model';
3
+ export interface ITypeService {
4
+ type(operand: Operand): Type;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/lib/domain/services/type.ts"],"names":[],"mappings":""}
package/index.d.ts CHANGED
@@ -1,19 +1,2 @@
1
- import { Parameter, ActionObserver } from './expression';
2
- export * from './expression';
3
- export declare const expressions: import("./expression").IExpressions;
4
- /**
5
- * Get parameters of expression
6
- * @param expression expression
7
- * @returns Parameters of expression
8
- */
9
- export declare const parameters: (expression: string) => Parameter[];
10
- /**
11
- * Evaluate and solve expression
12
- * @param expression string expression
13
- * @param data Data with variables
14
- * @returns Result of the evaluate expression
15
- */
16
- export declare const evaluate: (expression: string, data?: any) => any;
17
- export declare const run: (expression: string, data?: any) => any;
18
- export declare const subscribe: (observer: ActionObserver) => void;
19
- export declare const unsubscribe: (observer: ActionObserver) => void;
1
+ export * from './domain';
2
+ export * from './infrastructure';
package/index.js CHANGED
@@ -14,39 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.unsubscribe = exports.subscribe = exports.run = exports.evaluate = exports.parameters = exports.expressions = void 0;
18
- const expression_1 = require("./expression");
19
- __exportStar(require("./expression"), exports);
20
- exports.expressions = expression_1.Expressions.instance;
21
- /**
22
- * Get parameters of expression
23
- * @param expression expression
24
- * @returns Parameters of expression
25
- */
26
- const parameters = (expression) => {
27
- return exports.expressions.parameters(expression);
28
- };
29
- exports.parameters = parameters;
30
- /**
31
- * Evaluate and solve expression
32
- * @param expression string expression
33
- * @param data Data with variables
34
- * @returns Result of the evaluate expression
35
- */
36
- const evaluate = (expression, data) => {
37
- return exports.expressions.eval(expression, data);
38
- };
39
- exports.evaluate = evaluate;
40
- const run = (expression, data) => {
41
- return exports.expressions.run(expression, data);
42
- };
43
- exports.run = run;
44
- const subscribe = (observer) => {
45
- exports.expressions.subscribe(observer);
46
- };
47
- exports.subscribe = subscribe;
48
- const unsubscribe = (observer) => {
49
- exports.expressions.subscribe(observer);
50
- };
51
- exports.unsubscribe = unsubscribe;
17
+ __exportStar(require("./domain"), exports);
18
+ __exportStar(require("./infrastructure"), exports);
52
19
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAAqE;AACrE,+CAA4B;AAEf,QAAA,WAAW,GAAG,wBAAW,CAAC,QAAQ,CAAA;AAE/C;;;;GAIG;AACI,MAAM,UAAU,GAAG,CAAC,UAAkB,EAAe,EAAE;IAC7D,OAAO,mBAAW,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;AAC1C,CAAC,CAAA;AAFY,QAAA,UAAU,cAEtB;AAED;;;;;GAKG;AACI,MAAM,QAAQ,GAAG,CAAC,UAAkB,EAAE,IAAU,EAAO,EAAE;IAC/D,OAAO,mBAAW,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AAC1C,CAAC,CAAA;AAFY,QAAA,QAAQ,YAEpB;AAEM,MAAM,GAAG,GAAG,CAAC,UAAkB,EAAE,IAAU,EAAO,EAAE;IAC1D,OAAO,mBAAW,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AACzC,CAAC,CAAA;AAFY,QAAA,GAAG,OAEf;AAEM,MAAM,SAAS,GAAG,CAAC,QAAuB,EAAO,EAAE;IACzD,mBAAW,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;AAChC,CAAC,CAAA;AAFY,QAAA,SAAS,aAErB;AAEM,MAAM,WAAW,GAAG,CAAC,QAAuB,EAAQ,EAAE;IAC5D,mBAAW,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;AAChC,CAAC,CAAA;AAFY,QAAA,WAAW,eAEvB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,mDAAgC"}
@@ -0,0 +1,4 @@
1
+ import { IExpressions, IBuilder } from '../domain';
2
+ export declare class ExpressionsBuilder implements IBuilder<IExpressions> {
3
+ build(): IExpressions;
4
+ }