@venturialstd/workflow 0.1.44 → 0.1.45

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 (82) hide show
  1. package/dist/modules/index.d.ts +2 -0
  2. package/dist/modules/index.d.ts.map +1 -1
  3. package/dist/modules/index.js +9 -1
  4. package/dist/modules/index.js.map +1 -1
  5. package/dist/modules/twilio/actions/send-sms.action.d.ts.map +1 -1
  6. package/dist/modules/twilio/actions/send-sms.action.js.map +1 -1
  7. package/dist/modules/twilio/services/send-sms.service.d.ts.map +1 -1
  8. package/dist/modules/twilio/services/send-sms.service.js +4 -4
  9. package/dist/modules/twilio/services/send-sms.service.js.map +1 -1
  10. package/dist/modules/twilio/utils/template-options.util.d.ts.map +1 -1
  11. package/dist/modules/twilio/utils/template-options.util.js.map +1 -1
  12. package/dist/modules/validation/actions/check-array.action.d.ts +3 -0
  13. package/dist/modules/validation/actions/check-array.action.d.ts.map +1 -0
  14. package/dist/modules/validation/actions/check-array.action.js +137 -0
  15. package/dist/modules/validation/actions/check-array.action.js.map +1 -0
  16. package/dist/modules/validation/actions/check-property.action.d.ts +3 -0
  17. package/dist/modules/validation/actions/check-property.action.d.ts.map +1 -0
  18. package/dist/modules/validation/actions/check-property.action.js +148 -0
  19. package/dist/modules/validation/actions/check-property.action.js.map +1 -0
  20. package/dist/modules/validation/actions/index.d.ts +3 -0
  21. package/dist/modules/validation/actions/index.d.ts.map +1 -0
  22. package/dist/modules/validation/actions/index.js +19 -0
  23. package/dist/modules/validation/actions/index.js.map +1 -0
  24. package/dist/modules/validation/services/check-array.service.d.ts +5 -0
  25. package/dist/modules/validation/services/check-array.service.d.ts.map +1 -0
  26. package/dist/modules/validation/services/check-array.service.js +247 -0
  27. package/dist/modules/validation/services/check-array.service.js.map +1 -0
  28. package/dist/modules/validation/services/check-property.service.d.ts +5 -0
  29. package/dist/modules/validation/services/check-property.service.d.ts.map +1 -0
  30. package/dist/modules/validation/services/check-property.service.js +625 -0
  31. package/dist/modules/validation/services/check-property.service.js.map +1 -0
  32. package/dist/modules/validation/services/index.d.ts +3 -0
  33. package/dist/modules/validation/services/index.d.ts.map +1 -0
  34. package/dist/modules/validation/services/index.js +19 -0
  35. package/dist/modules/validation/services/index.js.map +1 -0
  36. package/dist/modules/validation/validation-nest.module.d.ts +3 -0
  37. package/dist/modules/validation/validation-nest.module.d.ts.map +1 -0
  38. package/dist/modules/validation/validation-nest.module.js +21 -0
  39. package/dist/modules/validation/validation-nest.module.js.map +1 -0
  40. package/dist/modules/validation/validation.module.d.ts +3 -0
  41. package/dist/modules/validation/validation.module.d.ts.map +1 -0
  42. package/dist/modules/validation/validation.module.js +14 -0
  43. package/dist/modules/validation/validation.module.js.map +1 -0
  44. package/dist/modules/vcard/actions/get-vcard.action.d.ts +3 -0
  45. package/dist/modules/vcard/actions/get-vcard.action.d.ts.map +1 -0
  46. package/dist/modules/vcard/actions/get-vcard.action.js +106 -0
  47. package/dist/modules/vcard/actions/get-vcard.action.js.map +1 -0
  48. package/dist/modules/vcard/actions/index.d.ts +2 -0
  49. package/dist/modules/vcard/actions/index.d.ts.map +1 -0
  50. package/dist/modules/vcard/actions/index.js +18 -0
  51. package/dist/modules/vcard/actions/index.js.map +1 -0
  52. package/dist/modules/vcard/controllers/index.d.ts +2 -0
  53. package/dist/modules/vcard/controllers/index.d.ts.map +1 -0
  54. package/dist/modules/vcard/controllers/index.js +18 -0
  55. package/dist/modules/vcard/controllers/index.js.map +1 -0
  56. package/dist/modules/vcard/controllers/vcard-test.controller.d.ts +17 -0
  57. package/dist/modules/vcard/controllers/vcard-test.controller.d.ts.map +1 -0
  58. package/dist/modules/vcard/controllers/vcard-test.controller.js +62 -0
  59. package/dist/modules/vcard/controllers/vcard-test.controller.js.map +1 -0
  60. package/dist/modules/vcard/services/get-vcard.service.d.ts +5 -0
  61. package/dist/modules/vcard/services/get-vcard.service.d.ts.map +1 -0
  62. package/dist/modules/vcard/services/get-vcard.service.js +188 -0
  63. package/dist/modules/vcard/services/get-vcard.service.js.map +1 -0
  64. package/dist/modules/vcard/services/index.d.ts +2 -0
  65. package/dist/modules/vcard/services/index.d.ts.map +1 -0
  66. package/dist/modules/vcard/services/index.js +18 -0
  67. package/dist/modules/vcard/services/index.js.map +1 -0
  68. package/dist/modules/vcard/vcard-nest.module.d.ts +3 -0
  69. package/dist/modules/vcard/vcard-nest.module.d.ts.map +1 -0
  70. package/dist/modules/vcard/vcard-nest.module.js +23 -0
  71. package/dist/modules/vcard/vcard-nest.module.js.map +1 -0
  72. package/dist/modules/vcard/vcard.module.d.ts +3 -0
  73. package/dist/modules/vcard/vcard.module.d.ts.map +1 -0
  74. package/dist/modules/vcard/vcard.module.js +14 -0
  75. package/dist/modules/vcard/vcard.module.js.map +1 -0
  76. package/dist/services/workflow-execution.service.d.ts.map +1 -1
  77. package/dist/services/workflow-execution.service.js +8 -2
  78. package/dist/services/workflow-execution.service.js.map +1 -1
  79. package/dist/workflow.module.d.ts.map +1 -1
  80. package/dist/workflow.module.js +6 -0
  81. package/dist/workflow.module.js.map +1 -1
  82. package/package.json +1 -1
@@ -0,0 +1,625 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.CheckPropertyService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ function getNestedProperty(obj, path) {
12
+ if (!obj || typeof obj !== 'object') {
13
+ return undefined;
14
+ }
15
+ const parts = path
16
+ .replace(/\[(\d+)\]/g, '.$1')
17
+ .split('.')
18
+ .filter(Boolean);
19
+ let current = obj;
20
+ for (const part of parts) {
21
+ if (current === null || current === undefined) {
22
+ return undefined;
23
+ }
24
+ if (typeof current !== 'object') {
25
+ return undefined;
26
+ }
27
+ if (Array.isArray(current)) {
28
+ const index = parseInt(part, 10);
29
+ if (isNaN(index) || index < 0 || index >= current.length) {
30
+ return undefined;
31
+ }
32
+ current = current[index];
33
+ }
34
+ else {
35
+ current = current[part];
36
+ }
37
+ }
38
+ return current;
39
+ }
40
+ let CheckPropertyService = class CheckPropertyService {
41
+ async perform(inputs, _context) {
42
+ const data = inputs.data;
43
+ const propertyPath = inputs.propertyPath;
44
+ const checkType = inputs.checkType || 'exists';
45
+ const expectedValue = inputs.expectedValue;
46
+ const secondValue = inputs.secondValue;
47
+ if (!data) {
48
+ return {
49
+ result: false,
50
+ propertyValue: '',
51
+ message: 'Data object is required',
52
+ };
53
+ }
54
+ if (!propertyPath) {
55
+ return {
56
+ result: false,
57
+ propertyValue: '',
58
+ message: 'Property path is required',
59
+ };
60
+ }
61
+ const propertyValue = getNestedProperty(data, propertyPath);
62
+ const propertyValueStr = propertyValue !== undefined && propertyValue !== null ? String(propertyValue) : '';
63
+ let result = false;
64
+ let message = '';
65
+ switch (checkType) {
66
+ case 'exists':
67
+ result = propertyValue !== undefined && propertyValue !== null;
68
+ message = result
69
+ ? `Property "${propertyPath}" exists`
70
+ : `Property "${propertyPath}" does not exist`;
71
+ break;
72
+ case 'not_empty':
73
+ if (Array.isArray(propertyValue)) {
74
+ result = propertyValue.length > 0;
75
+ message = result
76
+ ? `Array "${propertyPath}" is not empty (${propertyValue.length} items)`
77
+ : `Array "${propertyPath}" is empty`;
78
+ }
79
+ else if (typeof propertyValue === 'string') {
80
+ result = propertyValue.trim().length > 0;
81
+ message = result
82
+ ? `Property "${propertyPath}" is not empty`
83
+ : `Property "${propertyPath}" is empty`;
84
+ }
85
+ else {
86
+ result = propertyValue !== undefined && propertyValue !== null;
87
+ message = result
88
+ ? `Property "${propertyPath}" is not empty`
89
+ : `Property "${propertyPath}" is empty`;
90
+ }
91
+ break;
92
+ case 'equals':
93
+ if (expectedValue === undefined) {
94
+ return {
95
+ result: false,
96
+ propertyValue: propertyValueStr,
97
+ message: 'Expected value is required for equals check',
98
+ };
99
+ }
100
+ result = String(propertyValue) === String(expectedValue);
101
+ message = result
102
+ ? `Property "${propertyPath}" equals "${expectedValue}"`
103
+ : `Property "${propertyPath}" (${propertyValueStr}) does not equal "${expectedValue}"`;
104
+ break;
105
+ case 'not_equals':
106
+ if (expectedValue === undefined) {
107
+ return {
108
+ result: false,
109
+ propertyValue: propertyValueStr,
110
+ message: 'Expected value is required for not_equals check',
111
+ };
112
+ }
113
+ result = String(propertyValue) !== String(expectedValue);
114
+ message = result
115
+ ? `Property "${propertyPath}" does not equal "${expectedValue}"`
116
+ : `Property "${propertyPath}" equals "${expectedValue}"`;
117
+ break;
118
+ case 'contains':
119
+ if (expectedValue === undefined) {
120
+ return {
121
+ result: false,
122
+ propertyValue: propertyValueStr,
123
+ message: 'Expected value is required for contains check',
124
+ };
125
+ }
126
+ result = String(propertyValue).includes(String(expectedValue));
127
+ message = result
128
+ ? `Property "${propertyPath}" contains "${expectedValue}"`
129
+ : `Property "${propertyPath}" does not contain "${expectedValue}"`;
130
+ break;
131
+ case 'not_contains':
132
+ if (expectedValue === undefined) {
133
+ return {
134
+ result: false,
135
+ propertyValue: propertyValueStr,
136
+ message: 'Expected value is required for not_contains check',
137
+ };
138
+ }
139
+ result = !String(propertyValue).includes(String(expectedValue));
140
+ message = result
141
+ ? `Property "${propertyPath}" does not contain "${expectedValue}"`
142
+ : `Property "${propertyPath}" contains "${expectedValue}"`;
143
+ break;
144
+ case 'greater_than':
145
+ if (expectedValue === undefined) {
146
+ return {
147
+ result: false,
148
+ propertyValue: propertyValueStr,
149
+ message: 'Expected value is required for greater_than check',
150
+ };
151
+ }
152
+ const numValue = Number(propertyValue);
153
+ const numExpected = Number(expectedValue);
154
+ if (isNaN(numValue) || isNaN(numExpected)) {
155
+ return {
156
+ result: false,
157
+ propertyValue: propertyValueStr,
158
+ message: 'Both property value and expected value must be numbers for greater_than check',
159
+ };
160
+ }
161
+ result = numValue > numExpected;
162
+ message = result
163
+ ? `Property "${propertyPath}" (${numValue}) is greater than ${numExpected}`
164
+ : `Property "${propertyPath}" (${numValue}) is not greater than ${numExpected}`;
165
+ break;
166
+ case 'less_than':
167
+ if (expectedValue === undefined) {
168
+ return {
169
+ result: false,
170
+ propertyValue: propertyValueStr,
171
+ message: 'Expected value is required for less_than check',
172
+ };
173
+ }
174
+ const numValue2 = Number(propertyValue);
175
+ const numExpected2 = Number(expectedValue);
176
+ if (isNaN(numValue2) || isNaN(numExpected2)) {
177
+ return {
178
+ result: false,
179
+ propertyValue: propertyValueStr,
180
+ message: 'Both property value and expected value must be numbers for less_than check',
181
+ };
182
+ }
183
+ result = numValue2 < numExpected2;
184
+ message = result
185
+ ? `Property "${propertyPath}" (${numValue2}) is less than ${numExpected2}`
186
+ : `Property "${propertyPath}" (${numValue2}) is not less than ${numExpected2}`;
187
+ break;
188
+ case 'starts_with':
189
+ if (expectedValue === undefined) {
190
+ return {
191
+ result: false,
192
+ propertyValue: propertyValueStr,
193
+ message: 'Expected value is required for starts_with check',
194
+ };
195
+ }
196
+ if (typeof propertyValue !== 'string') {
197
+ return {
198
+ result: false,
199
+ propertyValue: propertyValueStr,
200
+ message: `Property "${propertyPath}" must be a string for starts_with check`,
201
+ };
202
+ }
203
+ result = propertyValue.startsWith(String(expectedValue));
204
+ message = result
205
+ ? `Property "${propertyPath}" starts with "${expectedValue}"`
206
+ : `Property "${propertyPath}" does not start with "${expectedValue}"`;
207
+ break;
208
+ case 'ends_with':
209
+ if (expectedValue === undefined) {
210
+ return {
211
+ result: false,
212
+ propertyValue: propertyValueStr,
213
+ message: 'Expected value is required for ends_with check',
214
+ };
215
+ }
216
+ if (typeof propertyValue !== 'string') {
217
+ return {
218
+ result: false,
219
+ propertyValue: propertyValueStr,
220
+ message: `Property "${propertyPath}" must be a string for ends_with check`,
221
+ };
222
+ }
223
+ result = propertyValue.endsWith(String(expectedValue));
224
+ message = result
225
+ ? `Property "${propertyPath}" ends with "${expectedValue}"`
226
+ : `Property "${propertyPath}" does not end with "${expectedValue}"`;
227
+ break;
228
+ case 'matches_regex':
229
+ if (expectedValue === undefined) {
230
+ return {
231
+ result: false,
232
+ propertyValue: propertyValueStr,
233
+ message: 'Regex pattern is required for matches_regex check',
234
+ };
235
+ }
236
+ if (typeof propertyValue !== 'string') {
237
+ return {
238
+ result: false,
239
+ propertyValue: propertyValueStr,
240
+ message: `Property "${propertyPath}" must be a string for matches_regex check`,
241
+ };
242
+ }
243
+ try {
244
+ const regex = new RegExp(String(expectedValue));
245
+ result = regex.test(propertyValue);
246
+ message = result
247
+ ? `Property "${propertyPath}" matches regex "${expectedValue}"`
248
+ : `Property "${propertyPath}" does not match regex "${expectedValue}"`;
249
+ }
250
+ catch (error) {
251
+ return {
252
+ result: false,
253
+ propertyValue: propertyValueStr,
254
+ message: `Invalid regex pattern: ${error instanceof Error ? error.message : 'Unknown error'}`,
255
+ };
256
+ }
257
+ break;
258
+ case 'length_equals':
259
+ if (expectedValue === undefined) {
260
+ return {
261
+ result: false,
262
+ propertyValue: propertyValueStr,
263
+ message: 'Expected length is required for length_equals check',
264
+ };
265
+ }
266
+ if (typeof propertyValue !== 'string' && !Array.isArray(propertyValue)) {
267
+ return {
268
+ result: false,
269
+ propertyValue: propertyValueStr,
270
+ message: `Property "${propertyPath}" must be a string or array for length_equals check`,
271
+ };
272
+ }
273
+ const length = typeof propertyValue === 'string' ? propertyValue.length : propertyValue.length;
274
+ const expectedLength = Number(expectedValue);
275
+ if (isNaN(expectedLength)) {
276
+ return {
277
+ result: false,
278
+ propertyValue: propertyValueStr,
279
+ message: 'Expected length must be a number',
280
+ };
281
+ }
282
+ result = length === expectedLength;
283
+ message = result
284
+ ? `Property "${propertyPath}" length (${length}) equals ${expectedLength}`
285
+ : `Property "${propertyPath}" length (${length}) does not equal ${expectedLength}`;
286
+ break;
287
+ case 'length_greater_than':
288
+ if (expectedValue === undefined) {
289
+ return {
290
+ result: false,
291
+ propertyValue: propertyValueStr,
292
+ message: 'Expected length is required for length_greater_than check',
293
+ };
294
+ }
295
+ if (typeof propertyValue !== 'string' && !Array.isArray(propertyValue)) {
296
+ return {
297
+ result: false,
298
+ propertyValue: propertyValueStr,
299
+ message: `Property "${propertyPath}" must be a string or array for length_greater_than check`,
300
+ };
301
+ }
302
+ const length2 = typeof propertyValue === 'string' ? propertyValue.length : propertyValue.length;
303
+ const expectedLength2 = Number(expectedValue);
304
+ if (isNaN(expectedLength2)) {
305
+ return {
306
+ result: false,
307
+ propertyValue: propertyValueStr,
308
+ message: 'Expected length must be a number',
309
+ };
310
+ }
311
+ result = length2 > expectedLength2;
312
+ message = result
313
+ ? `Property "${propertyPath}" length (${length2}) is greater than ${expectedLength2}`
314
+ : `Property "${propertyPath}" length (${length2}) is not greater than ${expectedLength2}`;
315
+ break;
316
+ case 'length_less_than':
317
+ if (expectedValue === undefined) {
318
+ return {
319
+ result: false,
320
+ propertyValue: propertyValueStr,
321
+ message: 'Expected length is required for length_less_than check',
322
+ };
323
+ }
324
+ if (typeof propertyValue !== 'string' && !Array.isArray(propertyValue)) {
325
+ return {
326
+ result: false,
327
+ propertyValue: propertyValueStr,
328
+ message: `Property "${propertyPath}" must be a string or array for length_less_than check`,
329
+ };
330
+ }
331
+ const length3 = typeof propertyValue === 'string' ? propertyValue.length : propertyValue.length;
332
+ const expectedLength3 = Number(expectedValue);
333
+ if (isNaN(expectedLength3)) {
334
+ return {
335
+ result: false,
336
+ propertyValue: propertyValueStr,
337
+ message: 'Expected length must be a number',
338
+ };
339
+ }
340
+ result = length3 < expectedLength3;
341
+ message = result
342
+ ? `Property "${propertyPath}" length (${length3}) is less than ${expectedLength3}`
343
+ : `Property "${propertyPath}" length (${length3}) is not less than ${expectedLength3}`;
344
+ break;
345
+ case 'length_greater_or_equal':
346
+ if (expectedValue === undefined) {
347
+ return {
348
+ result: false,
349
+ propertyValue: propertyValueStr,
350
+ message: 'Expected length is required for length_greater_or_equal check',
351
+ };
352
+ }
353
+ if (typeof propertyValue !== 'string' && !Array.isArray(propertyValue)) {
354
+ return {
355
+ result: false,
356
+ propertyValue: propertyValueStr,
357
+ message: `Property "${propertyPath}" must be a string or array for length_greater_or_equal check`,
358
+ };
359
+ }
360
+ const length4 = typeof propertyValue === 'string' ? propertyValue.length : propertyValue.length;
361
+ const expectedLength4 = Number(expectedValue);
362
+ if (isNaN(expectedLength4)) {
363
+ return {
364
+ result: false,
365
+ propertyValue: propertyValueStr,
366
+ message: 'Expected length must be a number',
367
+ };
368
+ }
369
+ result = length4 >= expectedLength4;
370
+ message = result
371
+ ? `Property "${propertyPath}" length (${length4}) is greater than or equal to ${expectedLength4}`
372
+ : `Property "${propertyPath}" length (${length4}) is less than ${expectedLength4}`;
373
+ break;
374
+ case 'length_less_or_equal':
375
+ if (expectedValue === undefined) {
376
+ return {
377
+ result: false,
378
+ propertyValue: propertyValueStr,
379
+ message: 'Expected length is required for length_less_or_equal check',
380
+ };
381
+ }
382
+ if (typeof propertyValue !== 'string' && !Array.isArray(propertyValue)) {
383
+ return {
384
+ result: false,
385
+ propertyValue: propertyValueStr,
386
+ message: `Property "${propertyPath}" must be a string or array for length_less_or_equal check`,
387
+ };
388
+ }
389
+ const length5 = typeof propertyValue === 'string' ? propertyValue.length : propertyValue.length;
390
+ const expectedLength5 = Number(expectedValue);
391
+ if (isNaN(expectedLength5)) {
392
+ return {
393
+ result: false,
394
+ propertyValue: propertyValueStr,
395
+ message: 'Expected length must be a number',
396
+ };
397
+ }
398
+ result = length5 <= expectedLength5;
399
+ message = result
400
+ ? `Property "${propertyPath}" length (${length5}) is less than or equal to ${expectedLength5}`
401
+ : `Property "${propertyPath}" length (${length5}) is greater than ${expectedLength5}`;
402
+ break;
403
+ case 'is_email':
404
+ if (typeof propertyValue !== 'string') {
405
+ return {
406
+ result: false,
407
+ propertyValue: propertyValueStr,
408
+ message: `Property "${propertyPath}" must be a string for is_email check`,
409
+ };
410
+ }
411
+ const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
412
+ result = emailRegex.test(propertyValue);
413
+ message = result
414
+ ? `Property "${propertyPath}" is a valid email`
415
+ : `Property "${propertyPath}" is not a valid email`;
416
+ break;
417
+ case 'is_url':
418
+ if (typeof propertyValue !== 'string') {
419
+ return {
420
+ result: false,
421
+ propertyValue: propertyValueStr,
422
+ message: `Property "${propertyPath}" must be a string for is_url check`,
423
+ };
424
+ }
425
+ try {
426
+ new URL(propertyValue);
427
+ result = true;
428
+ message = `Property "${propertyPath}" is a valid URL`;
429
+ }
430
+ catch {
431
+ result = false;
432
+ message = `Property "${propertyPath}" is not a valid URL`;
433
+ }
434
+ break;
435
+ case 'is_phone':
436
+ if (typeof propertyValue !== 'string') {
437
+ return {
438
+ result: false,
439
+ propertyValue: propertyValueStr,
440
+ message: `Property "${propertyPath}" must be a string for is_phone check`,
441
+ };
442
+ }
443
+ const phoneRegex = /^[\+]?[(]?[0-9]{1,4}[)]?[-\s\.]?[(]?[0-9]{1,4}[)]?[-\s\.]?[0-9]{1,9}$/;
444
+ result = phoneRegex.test(propertyValue.replace(/\s/g, ''));
445
+ message = result
446
+ ? `Property "${propertyPath}" is a valid phone number`
447
+ : `Property "${propertyPath}" is not a valid phone number`;
448
+ break;
449
+ case 'greater_or_equal':
450
+ if (expectedValue === undefined) {
451
+ return {
452
+ result: false,
453
+ propertyValue: propertyValueStr,
454
+ message: 'Expected value is required for greater_or_equal check',
455
+ };
456
+ }
457
+ const numValue3 = Number(propertyValue);
458
+ const numExpected3 = Number(expectedValue);
459
+ if (isNaN(numValue3) || isNaN(numExpected3)) {
460
+ return {
461
+ result: false,
462
+ propertyValue: propertyValueStr,
463
+ message: 'Both property value and expected value must be numbers for greater_or_equal check',
464
+ };
465
+ }
466
+ result = numValue3 >= numExpected3;
467
+ message = result
468
+ ? `Property "${propertyPath}" (${numValue3}) is greater than or equal to ${numExpected3}`
469
+ : `Property "${propertyPath}" (${numValue3}) is less than ${numExpected3}`;
470
+ break;
471
+ case 'less_or_equal':
472
+ if (expectedValue === undefined) {
473
+ return {
474
+ result: false,
475
+ propertyValue: propertyValueStr,
476
+ message: 'Expected value is required for less_or_equal check',
477
+ };
478
+ }
479
+ const numValue4 = Number(propertyValue);
480
+ const numExpected4 = Number(expectedValue);
481
+ if (isNaN(numValue4) || isNaN(numExpected4)) {
482
+ return {
483
+ result: false,
484
+ propertyValue: propertyValueStr,
485
+ message: 'Both property value and expected value must be numbers for less_or_equal check',
486
+ };
487
+ }
488
+ result = numValue4 <= numExpected4;
489
+ message = result
490
+ ? `Property "${propertyPath}" (${numValue4}) is less than or equal to ${numExpected4}`
491
+ : `Property "${propertyPath}" (${numValue4}) is greater than ${numExpected4}`;
492
+ break;
493
+ case 'between':
494
+ if (expectedValue === undefined || secondValue === undefined) {
495
+ return {
496
+ result: false,
497
+ propertyValue: propertyValueStr,
498
+ message: 'Both expected value (min) and second value (max) are required for between check',
499
+ };
500
+ }
501
+ const numValue5 = Number(propertyValue);
502
+ const minValue = Number(expectedValue);
503
+ const maxValue = Number(secondValue);
504
+ if (isNaN(numValue5) || isNaN(minValue) || isNaN(maxValue)) {
505
+ return {
506
+ result: false,
507
+ propertyValue: propertyValueStr,
508
+ message: 'Property value, min value, and max value must be numbers for between check',
509
+ };
510
+ }
511
+ if (minValue > maxValue) {
512
+ return {
513
+ result: false,
514
+ propertyValue: propertyValueStr,
515
+ message: 'Min value must be less than or equal to max value',
516
+ };
517
+ }
518
+ result = numValue5 >= minValue && numValue5 <= maxValue;
519
+ message = result
520
+ ? `Property "${propertyPath}" (${numValue5}) is between ${minValue} and ${maxValue}`
521
+ : `Property "${propertyPath}" (${numValue5}) is not between ${minValue} and ${maxValue}`;
522
+ break;
523
+ case 'is_positive':
524
+ const numValue6 = Number(propertyValue);
525
+ if (isNaN(numValue6)) {
526
+ return {
527
+ result: false,
528
+ propertyValue: propertyValueStr,
529
+ message: `Property "${propertyPath}" must be a number for is_positive check`,
530
+ };
531
+ }
532
+ result = numValue6 > 0;
533
+ message = result
534
+ ? `Property "${propertyPath}" (${numValue6}) is positive`
535
+ : `Property "${propertyPath}" (${numValue6}) is not positive`;
536
+ break;
537
+ case 'is_negative':
538
+ const numValue7 = Number(propertyValue);
539
+ if (isNaN(numValue7)) {
540
+ return {
541
+ result: false,
542
+ propertyValue: propertyValueStr,
543
+ message: `Property "${propertyPath}" must be a number for is_negative check`,
544
+ };
545
+ }
546
+ result = numValue7 < 0;
547
+ message = result
548
+ ? `Property "${propertyPath}" (${numValue7}) is negative`
549
+ : `Property "${propertyPath}" (${numValue7}) is not negative`;
550
+ break;
551
+ case 'is_integer':
552
+ const numValue8 = Number(propertyValue);
553
+ if (isNaN(numValue8)) {
554
+ return {
555
+ result: false,
556
+ propertyValue: propertyValueStr,
557
+ message: `Property "${propertyPath}" must be a number for is_integer check`,
558
+ };
559
+ }
560
+ result = Number.isInteger(numValue8);
561
+ message = result
562
+ ? `Property "${propertyPath}" (${numValue8}) is an integer`
563
+ : `Property "${propertyPath}" (${numValue8}) is not an integer`;
564
+ break;
565
+ case 'is_decimal':
566
+ const numValue9 = Number(propertyValue);
567
+ if (isNaN(numValue9)) {
568
+ return {
569
+ result: false,
570
+ propertyValue: propertyValueStr,
571
+ message: `Property "${propertyPath}" must be a number for is_decimal check`,
572
+ };
573
+ }
574
+ result = !Number.isInteger(numValue9);
575
+ message = result
576
+ ? `Property "${propertyPath}" (${numValue9}) is a decimal`
577
+ : `Property "${propertyPath}" (${numValue9}) is not a decimal`;
578
+ break;
579
+ case 'is_even':
580
+ const numValue10 = Number(propertyValue);
581
+ if (isNaN(numValue10) || !Number.isInteger(numValue10)) {
582
+ return {
583
+ result: false,
584
+ propertyValue: propertyValueStr,
585
+ message: `Property "${propertyPath}" must be an integer for is_even check`,
586
+ };
587
+ }
588
+ result = numValue10 % 2 === 0;
589
+ message = result
590
+ ? `Property "${propertyPath}" (${numValue10}) is even`
591
+ : `Property "${propertyPath}" (${numValue10}) is not even`;
592
+ break;
593
+ case 'is_odd':
594
+ const numValue11 = Number(propertyValue);
595
+ if (isNaN(numValue11) || !Number.isInteger(numValue11)) {
596
+ return {
597
+ result: false,
598
+ propertyValue: propertyValueStr,
599
+ message: `Property "${propertyPath}" must be an integer for is_odd check`,
600
+ };
601
+ }
602
+ result = numValue11 % 2 !== 0;
603
+ message = result
604
+ ? `Property "${propertyPath}" (${numValue11}) is odd`
605
+ : `Property "${propertyPath}" (${numValue11}) is not odd`;
606
+ break;
607
+ default:
608
+ return {
609
+ result: false,
610
+ propertyValue: propertyValueStr,
611
+ message: `Unknown check type: ${checkType}`,
612
+ };
613
+ }
614
+ return {
615
+ result,
616
+ propertyValue: propertyValueStr,
617
+ message,
618
+ };
619
+ }
620
+ };
621
+ exports.CheckPropertyService = CheckPropertyService;
622
+ exports.CheckPropertyService = CheckPropertyService = __decorate([
623
+ (0, common_1.Injectable)()
624
+ ], CheckPropertyService);
625
+ //# sourceMappingURL=check-property.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-property.service.js","sourceRoot":"","sources":["../../../../src/modules/validation/services/check-property.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAQ5C,SAAS,iBAAiB,CAAC,GAAY,EAAE,IAAY;IACnD,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QACpC,OAAO,SAAS,CAAC;IACnB,CAAC;IAGD,MAAM,KAAK,GAAG,IAAI;SACf,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC;SAC5B,KAAK,CAAC,GAAG,CAAC;SACV,MAAM,CAAC,OAAO,CAAC,CAAC;IAEnB,IAAI,OAAO,GAAY,GAAG,CAAC;IAC3B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,OAAO,KAAK,IAAI,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YAAY,wCAAwC;qBAC3E,CAAC;gBACJ,CAAC;gBACD,MAAM,GAAG,UAAU,GAAG,CAAC,KAAK,CAAC,CAAC;gBAC9B,OAAO,GAAG,MAAM;oBACd,CAAC,CAAC,aAAa,YAAY,MAAM,UAAU,WAAW;oBACtD,CAAC,CAAC,aAAa,YAAY,MAAM,UAAU,eAAe,CAAC;gBAC7D,MAAM;YAER,KAAK,QAAQ;gBACX,MAAM,UAAU,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;gBACzC,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC;oBACvD,OAAO;wBACL,MAAM,EAAE,KAAK;wBACb,aAAa,EAAE,gBAAgB;wBAC/B,OAAO,EAAE,aAAa,YAAY,uCAAuC;qBAC1E,CAAC;gBACJ,CAAC;gBACD,MAAM,GAAG,UAAU,GAAG,CAAC,KAAK,CAAC,CAAC;gBAC9B,OAAO,GAAG,MAAM;oBACd,CAAC,CAAC,aAAa,YAAY,MAAM,UAAU,UAAU;oBACrD,CAAC,CAAC,aAAa,YAAY,MAAM,UAAU,cAAc,CAAC;gBAC5D,MAAM;YAER;gBACE,OAAO;oBACL,MAAM,EAAE,KAAK;oBACb,aAAa,EAAE,gBAAgB;oBAC/B,OAAO,EAAE,uBAAuB,SAAS,EAAE;iBAC5C,CAAC;QACN,CAAC;QAED,OAAO;YACL,MAAM;YACN,aAAa,EAAE,gBAAgB;YAC/B,OAAO;SACR,CAAC;IACJ,CAAC;CACF,CAAA;AAzmBY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;GACA,oBAAoB,CAymBhC"}
@@ -0,0 +1,3 @@
1
+ export * from './check-property.service';
2
+ export * from './check-array.service';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/validation/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC"}