@eventvisor/core 0.23.0 → 0.24.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 (56) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/linter/conditionsSchema.d.ts +1 -301
  3. package/lib/linter/conditionsSchema.js +8 -14
  4. package/lib/linter/conditionsSchema.js.map +1 -1
  5. package/lib/linter/destinationSchema.d.ts +89 -1
  6. package/lib/linter/destinationSchema.js +0 -2
  7. package/lib/linter/destinationSchema.js.map +1 -1
  8. package/lib/linter/effectSchema.d.ts +9 -1209
  9. package/lib/linter/effectSchema.js +6 -3
  10. package/lib/linter/effectSchema.js.map +1 -1
  11. package/lib/linter/entitySchemas.spec.d.ts +1 -0
  12. package/lib/linter/entitySchemas.spec.js +169 -0
  13. package/lib/linter/entitySchemas.spec.js.map +1 -0
  14. package/lib/linter/eventSchema.js +5 -3
  15. package/lib/linter/eventSchema.js.map +1 -1
  16. package/lib/linter/lintProject.d.ts +5 -0
  17. package/lib/linter/lintProject.js +141 -5
  18. package/lib/linter/lintProject.js.map +1 -1
  19. package/lib/linter/lintProject.spec.d.ts +1 -0
  20. package/lib/linter/lintProject.spec.js +103 -0
  21. package/lib/linter/lintProject.spec.js.map +1 -0
  22. package/lib/linter/persistSchema.d.ts +4 -604
  23. package/lib/linter/persistSchema.js +4 -2
  24. package/lib/linter/persistSchema.js.map +1 -1
  25. package/lib/linter/printError.js +4 -0
  26. package/lib/linter/printError.js.map +1 -1
  27. package/lib/linter/sampleSchema.d.ts +13 -285
  28. package/lib/linter/sampleSchema.js +2 -1
  29. package/lib/linter/sampleSchema.js.map +1 -1
  30. package/lib/linter/semanticValidation.d.ts +11 -0
  31. package/lib/linter/semanticValidation.js +592 -0
  32. package/lib/linter/semanticValidation.js.map +1 -0
  33. package/lib/linter/semanticValidation.spec.d.ts +1 -0
  34. package/lib/linter/semanticValidation.spec.js +190 -0
  35. package/lib/linter/semanticValidation.spec.js.map +1 -0
  36. package/lib/linter/testSchema.d.ts +64 -3
  37. package/lib/linter/testSchema.js +81 -4
  38. package/lib/linter/testSchema.js.map +1 -1
  39. package/lib/linter/testSchema.spec.d.ts +1 -0
  40. package/lib/linter/testSchema.spec.js +260 -0
  41. package/lib/linter/testSchema.spec.js.map +1 -0
  42. package/package.json +5 -5
  43. package/src/linter/conditionsSchema.ts +12 -18
  44. package/src/linter/destinationSchema.ts +0 -3
  45. package/src/linter/effectSchema.ts +12 -9
  46. package/src/linter/entitySchemas.spec.ts +212 -0
  47. package/src/linter/eventSchema.ts +8 -6
  48. package/src/linter/lintProject.spec.ts +112 -0
  49. package/src/linter/lintProject.ts +134 -6
  50. package/src/linter/persistSchema.ts +6 -4
  51. package/src/linter/printError.ts +3 -0
  52. package/src/linter/sampleSchema.ts +3 -1
  53. package/src/linter/semanticValidation.spec.ts +239 -0
  54. package/src/linter/semanticValidation.ts +953 -0
  55. package/src/linter/testSchema.spec.ts +279 -0
  56. package/src/linter/testSchema.ts +89 -4
@@ -2,608 +2,8 @@ import * as z from "zod";
2
2
  import { Dependencies } from "../dependencies";
3
3
  export declare function getPersistSchema(deps: Dependencies): z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
4
4
  storage: z.ZodString;
5
- conditions: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
6
- operator: z.ZodEnum<{
7
- includes: "includes";
8
- endsWith: "endsWith";
9
- startsWith: "startsWith";
10
- matches: "matches";
11
- contains: "contains";
12
- after: "after";
13
- before: "before";
14
- equals: "equals";
15
- notEquals: "notEquals";
16
- exists: "exists";
17
- notExists: "notExists";
18
- greaterThan: "greaterThan";
19
- greaterThanOrEquals: "greaterThanOrEquals";
20
- lessThan: "lessThan";
21
- lessThanOrEquals: "lessThanOrEquals";
22
- notContains: "notContains";
23
- semverEquals: "semverEquals";
24
- semverNotEquals: "semverNotEquals";
25
- semverGreaterThan: "semverGreaterThan";
26
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
27
- semverLessThan: "semverLessThan";
28
- semverLessThanOrEquals: "semverLessThanOrEquals";
29
- notIncludes: "notIncludes";
30
- notMatches: "notMatches";
31
- in: "in";
32
- notIn: "notIn";
33
- }>;
34
- value: z.ZodOptional<z.ZodAny>;
35
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
36
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
37
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
38
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
39
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
40
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
41
- }, z.core.$strip>, z.ZodObject<{
42
- and: z.ZodArray<z.ZodObject<{
43
- operator: z.ZodEnum<{
44
- includes: "includes";
45
- endsWith: "endsWith";
46
- startsWith: "startsWith";
47
- matches: "matches";
48
- contains: "contains";
49
- after: "after";
50
- before: "before";
51
- equals: "equals";
52
- notEquals: "notEquals";
53
- exists: "exists";
54
- notExists: "notExists";
55
- greaterThan: "greaterThan";
56
- greaterThanOrEquals: "greaterThanOrEquals";
57
- lessThan: "lessThan";
58
- lessThanOrEquals: "lessThanOrEquals";
59
- notContains: "notContains";
60
- semverEquals: "semverEquals";
61
- semverNotEquals: "semverNotEquals";
62
- semverGreaterThan: "semverGreaterThan";
63
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
64
- semverLessThan: "semverLessThan";
65
- semverLessThanOrEquals: "semverLessThanOrEquals";
66
- notIncludes: "notIncludes";
67
- notMatches: "notMatches";
68
- in: "in";
69
- notIn: "notIn";
70
- }>;
71
- value: z.ZodOptional<z.ZodAny>;
72
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
73
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
74
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
75
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
76
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
77
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
78
- }, z.core.$strip>>;
79
- }, z.core.$strip>, z.ZodObject<{
80
- or: z.ZodArray<z.ZodObject<{
81
- operator: z.ZodEnum<{
82
- includes: "includes";
83
- endsWith: "endsWith";
84
- startsWith: "startsWith";
85
- matches: "matches";
86
- contains: "contains";
87
- after: "after";
88
- before: "before";
89
- equals: "equals";
90
- notEquals: "notEquals";
91
- exists: "exists";
92
- notExists: "notExists";
93
- greaterThan: "greaterThan";
94
- greaterThanOrEquals: "greaterThanOrEquals";
95
- lessThan: "lessThan";
96
- lessThanOrEquals: "lessThanOrEquals";
97
- notContains: "notContains";
98
- semverEquals: "semverEquals";
99
- semverNotEquals: "semverNotEquals";
100
- semverGreaterThan: "semverGreaterThan";
101
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
102
- semverLessThan: "semverLessThan";
103
- semverLessThanOrEquals: "semverLessThanOrEquals";
104
- notIncludes: "notIncludes";
105
- notMatches: "notMatches";
106
- in: "in";
107
- notIn: "notIn";
108
- }>;
109
- value: z.ZodOptional<z.ZodAny>;
110
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
111
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
112
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
113
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
114
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
115
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
116
- }, z.core.$strip>>;
117
- }, z.core.$strip>, z.ZodObject<{
118
- not: z.ZodArray<z.ZodObject<{
119
- operator: z.ZodEnum<{
120
- includes: "includes";
121
- endsWith: "endsWith";
122
- startsWith: "startsWith";
123
- matches: "matches";
124
- contains: "contains";
125
- after: "after";
126
- before: "before";
127
- equals: "equals";
128
- notEquals: "notEquals";
129
- exists: "exists";
130
- notExists: "notExists";
131
- greaterThan: "greaterThan";
132
- greaterThanOrEquals: "greaterThanOrEquals";
133
- lessThan: "lessThan";
134
- lessThanOrEquals: "lessThanOrEquals";
135
- notContains: "notContains";
136
- semverEquals: "semverEquals";
137
- semverNotEquals: "semverNotEquals";
138
- semverGreaterThan: "semverGreaterThan";
139
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
140
- semverLessThan: "semverLessThan";
141
- semverLessThanOrEquals: "semverLessThanOrEquals";
142
- notIncludes: "notIncludes";
143
- notMatches: "notMatches";
144
- in: "in";
145
- notIn: "notIn";
146
- }>;
147
- value: z.ZodOptional<z.ZodAny>;
148
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
149
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
150
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
151
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
152
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
153
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
154
- }, z.core.$strip>>;
155
- }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
156
- operator: z.ZodEnum<{
157
- includes: "includes";
158
- endsWith: "endsWith";
159
- startsWith: "startsWith";
160
- matches: "matches";
161
- contains: "contains";
162
- after: "after";
163
- before: "before";
164
- equals: "equals";
165
- notEquals: "notEquals";
166
- exists: "exists";
167
- notExists: "notExists";
168
- greaterThan: "greaterThan";
169
- greaterThanOrEquals: "greaterThanOrEquals";
170
- lessThan: "lessThan";
171
- lessThanOrEquals: "lessThanOrEquals";
172
- notContains: "notContains";
173
- semverEquals: "semverEquals";
174
- semverNotEquals: "semverNotEquals";
175
- semverGreaterThan: "semverGreaterThan";
176
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
177
- semverLessThan: "semverLessThan";
178
- semverLessThanOrEquals: "semverLessThanOrEquals";
179
- notIncludes: "notIncludes";
180
- notMatches: "notMatches";
181
- in: "in";
182
- notIn: "notIn";
183
- }>;
184
- value: z.ZodOptional<z.ZodAny>;
185
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
186
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
187
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
188
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
189
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
190
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
191
- }, z.core.$strip>, z.ZodObject<{
192
- and: z.ZodArray<z.ZodObject<{
193
- operator: z.ZodEnum<{
194
- includes: "includes";
195
- endsWith: "endsWith";
196
- startsWith: "startsWith";
197
- matches: "matches";
198
- contains: "contains";
199
- after: "after";
200
- before: "before";
201
- equals: "equals";
202
- notEquals: "notEquals";
203
- exists: "exists";
204
- notExists: "notExists";
205
- greaterThan: "greaterThan";
206
- greaterThanOrEquals: "greaterThanOrEquals";
207
- lessThan: "lessThan";
208
- lessThanOrEquals: "lessThanOrEquals";
209
- notContains: "notContains";
210
- semverEquals: "semverEquals";
211
- semverNotEquals: "semverNotEquals";
212
- semverGreaterThan: "semverGreaterThan";
213
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
214
- semverLessThan: "semverLessThan";
215
- semverLessThanOrEquals: "semverLessThanOrEquals";
216
- notIncludes: "notIncludes";
217
- notMatches: "notMatches";
218
- in: "in";
219
- notIn: "notIn";
220
- }>;
221
- value: z.ZodOptional<z.ZodAny>;
222
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
223
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
224
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
225
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
226
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
227
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
228
- }, z.core.$strip>>;
229
- }, z.core.$strip>, z.ZodObject<{
230
- or: z.ZodArray<z.ZodObject<{
231
- operator: z.ZodEnum<{
232
- includes: "includes";
233
- endsWith: "endsWith";
234
- startsWith: "startsWith";
235
- matches: "matches";
236
- contains: "contains";
237
- after: "after";
238
- before: "before";
239
- equals: "equals";
240
- notEquals: "notEquals";
241
- exists: "exists";
242
- notExists: "notExists";
243
- greaterThan: "greaterThan";
244
- greaterThanOrEquals: "greaterThanOrEquals";
245
- lessThan: "lessThan";
246
- lessThanOrEquals: "lessThanOrEquals";
247
- notContains: "notContains";
248
- semverEquals: "semverEquals";
249
- semverNotEquals: "semverNotEquals";
250
- semverGreaterThan: "semverGreaterThan";
251
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
252
- semverLessThan: "semverLessThan";
253
- semverLessThanOrEquals: "semverLessThanOrEquals";
254
- notIncludes: "notIncludes";
255
- notMatches: "notMatches";
256
- in: "in";
257
- notIn: "notIn";
258
- }>;
259
- value: z.ZodOptional<z.ZodAny>;
260
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
261
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
262
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
263
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
264
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
265
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
266
- }, z.core.$strip>>;
267
- }, z.core.$strip>, z.ZodObject<{
268
- not: z.ZodArray<z.ZodObject<{
269
- operator: z.ZodEnum<{
270
- includes: "includes";
271
- endsWith: "endsWith";
272
- startsWith: "startsWith";
273
- matches: "matches";
274
- contains: "contains";
275
- after: "after";
276
- before: "before";
277
- equals: "equals";
278
- notEquals: "notEquals";
279
- exists: "exists";
280
- notExists: "notExists";
281
- greaterThan: "greaterThan";
282
- greaterThanOrEquals: "greaterThanOrEquals";
283
- lessThan: "lessThan";
284
- lessThanOrEquals: "lessThanOrEquals";
285
- notContains: "notContains";
286
- semverEquals: "semverEquals";
287
- semverNotEquals: "semverNotEquals";
288
- semverGreaterThan: "semverGreaterThan";
289
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
290
- semverLessThan: "semverLessThan";
291
- semverLessThanOrEquals: "semverLessThanOrEquals";
292
- notIncludes: "notIncludes";
293
- notMatches: "notMatches";
294
- in: "in";
295
- notIn: "notIn";
296
- }>;
297
- value: z.ZodOptional<z.ZodAny>;
298
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
299
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
300
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
301
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
302
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
303
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
304
- }, z.core.$strip>>;
305
- }, z.core.$strip>]>>]>>;
306
- }, z.core.$strip>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
5
+ conditions: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>]>>;
6
+ }, z.core.$strict>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
307
7
  storage: z.ZodString;
308
- conditions: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
309
- operator: z.ZodEnum<{
310
- includes: "includes";
311
- endsWith: "endsWith";
312
- startsWith: "startsWith";
313
- matches: "matches";
314
- contains: "contains";
315
- after: "after";
316
- before: "before";
317
- equals: "equals";
318
- notEquals: "notEquals";
319
- exists: "exists";
320
- notExists: "notExists";
321
- greaterThan: "greaterThan";
322
- greaterThanOrEquals: "greaterThanOrEquals";
323
- lessThan: "lessThan";
324
- lessThanOrEquals: "lessThanOrEquals";
325
- notContains: "notContains";
326
- semverEquals: "semverEquals";
327
- semverNotEquals: "semverNotEquals";
328
- semverGreaterThan: "semverGreaterThan";
329
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
330
- semverLessThan: "semverLessThan";
331
- semverLessThanOrEquals: "semverLessThanOrEquals";
332
- notIncludes: "notIncludes";
333
- notMatches: "notMatches";
334
- in: "in";
335
- notIn: "notIn";
336
- }>;
337
- value: z.ZodOptional<z.ZodAny>;
338
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
339
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
340
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
341
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
342
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
343
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
344
- }, z.core.$strip>, z.ZodObject<{
345
- and: z.ZodArray<z.ZodObject<{
346
- operator: z.ZodEnum<{
347
- includes: "includes";
348
- endsWith: "endsWith";
349
- startsWith: "startsWith";
350
- matches: "matches";
351
- contains: "contains";
352
- after: "after";
353
- before: "before";
354
- equals: "equals";
355
- notEquals: "notEquals";
356
- exists: "exists";
357
- notExists: "notExists";
358
- greaterThan: "greaterThan";
359
- greaterThanOrEquals: "greaterThanOrEquals";
360
- lessThan: "lessThan";
361
- lessThanOrEquals: "lessThanOrEquals";
362
- notContains: "notContains";
363
- semverEquals: "semverEquals";
364
- semverNotEquals: "semverNotEquals";
365
- semverGreaterThan: "semverGreaterThan";
366
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
367
- semverLessThan: "semverLessThan";
368
- semverLessThanOrEquals: "semverLessThanOrEquals";
369
- notIncludes: "notIncludes";
370
- notMatches: "notMatches";
371
- in: "in";
372
- notIn: "notIn";
373
- }>;
374
- value: z.ZodOptional<z.ZodAny>;
375
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
376
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
377
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
378
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
379
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
380
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
381
- }, z.core.$strip>>;
382
- }, z.core.$strip>, z.ZodObject<{
383
- or: z.ZodArray<z.ZodObject<{
384
- operator: z.ZodEnum<{
385
- includes: "includes";
386
- endsWith: "endsWith";
387
- startsWith: "startsWith";
388
- matches: "matches";
389
- contains: "contains";
390
- after: "after";
391
- before: "before";
392
- equals: "equals";
393
- notEquals: "notEquals";
394
- exists: "exists";
395
- notExists: "notExists";
396
- greaterThan: "greaterThan";
397
- greaterThanOrEquals: "greaterThanOrEquals";
398
- lessThan: "lessThan";
399
- lessThanOrEquals: "lessThanOrEquals";
400
- notContains: "notContains";
401
- semverEquals: "semverEquals";
402
- semverNotEquals: "semverNotEquals";
403
- semverGreaterThan: "semverGreaterThan";
404
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
405
- semverLessThan: "semverLessThan";
406
- semverLessThanOrEquals: "semverLessThanOrEquals";
407
- notIncludes: "notIncludes";
408
- notMatches: "notMatches";
409
- in: "in";
410
- notIn: "notIn";
411
- }>;
412
- value: z.ZodOptional<z.ZodAny>;
413
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
414
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
415
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
416
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
417
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
418
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
419
- }, z.core.$strip>>;
420
- }, z.core.$strip>, z.ZodObject<{
421
- not: z.ZodArray<z.ZodObject<{
422
- operator: z.ZodEnum<{
423
- includes: "includes";
424
- endsWith: "endsWith";
425
- startsWith: "startsWith";
426
- matches: "matches";
427
- contains: "contains";
428
- after: "after";
429
- before: "before";
430
- equals: "equals";
431
- notEquals: "notEquals";
432
- exists: "exists";
433
- notExists: "notExists";
434
- greaterThan: "greaterThan";
435
- greaterThanOrEquals: "greaterThanOrEquals";
436
- lessThan: "lessThan";
437
- lessThanOrEquals: "lessThanOrEquals";
438
- notContains: "notContains";
439
- semverEquals: "semverEquals";
440
- semverNotEquals: "semverNotEquals";
441
- semverGreaterThan: "semverGreaterThan";
442
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
443
- semverLessThan: "semverLessThan";
444
- semverLessThanOrEquals: "semverLessThanOrEquals";
445
- notIncludes: "notIncludes";
446
- notMatches: "notMatches";
447
- in: "in";
448
- notIn: "notIn";
449
- }>;
450
- value: z.ZodOptional<z.ZodAny>;
451
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
452
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
453
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
454
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
455
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
456
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
457
- }, z.core.$strip>>;
458
- }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
459
- operator: z.ZodEnum<{
460
- includes: "includes";
461
- endsWith: "endsWith";
462
- startsWith: "startsWith";
463
- matches: "matches";
464
- contains: "contains";
465
- after: "after";
466
- before: "before";
467
- equals: "equals";
468
- notEquals: "notEquals";
469
- exists: "exists";
470
- notExists: "notExists";
471
- greaterThan: "greaterThan";
472
- greaterThanOrEquals: "greaterThanOrEquals";
473
- lessThan: "lessThan";
474
- lessThanOrEquals: "lessThanOrEquals";
475
- notContains: "notContains";
476
- semverEquals: "semverEquals";
477
- semverNotEquals: "semverNotEquals";
478
- semverGreaterThan: "semverGreaterThan";
479
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
480
- semverLessThan: "semverLessThan";
481
- semverLessThanOrEquals: "semverLessThanOrEquals";
482
- notIncludes: "notIncludes";
483
- notMatches: "notMatches";
484
- in: "in";
485
- notIn: "notIn";
486
- }>;
487
- value: z.ZodOptional<z.ZodAny>;
488
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
489
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
490
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
491
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
492
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
493
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
494
- }, z.core.$strip>, z.ZodObject<{
495
- and: z.ZodArray<z.ZodObject<{
496
- operator: z.ZodEnum<{
497
- includes: "includes";
498
- endsWith: "endsWith";
499
- startsWith: "startsWith";
500
- matches: "matches";
501
- contains: "contains";
502
- after: "after";
503
- before: "before";
504
- equals: "equals";
505
- notEquals: "notEquals";
506
- exists: "exists";
507
- notExists: "notExists";
508
- greaterThan: "greaterThan";
509
- greaterThanOrEquals: "greaterThanOrEquals";
510
- lessThan: "lessThan";
511
- lessThanOrEquals: "lessThanOrEquals";
512
- notContains: "notContains";
513
- semverEquals: "semverEquals";
514
- semverNotEquals: "semverNotEquals";
515
- semverGreaterThan: "semverGreaterThan";
516
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
517
- semverLessThan: "semverLessThan";
518
- semverLessThanOrEquals: "semverLessThanOrEquals";
519
- notIncludes: "notIncludes";
520
- notMatches: "notMatches";
521
- in: "in";
522
- notIn: "notIn";
523
- }>;
524
- value: z.ZodOptional<z.ZodAny>;
525
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
526
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
527
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
528
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
529
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
530
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
531
- }, z.core.$strip>>;
532
- }, z.core.$strip>, z.ZodObject<{
533
- or: z.ZodArray<z.ZodObject<{
534
- operator: z.ZodEnum<{
535
- includes: "includes";
536
- endsWith: "endsWith";
537
- startsWith: "startsWith";
538
- matches: "matches";
539
- contains: "contains";
540
- after: "after";
541
- before: "before";
542
- equals: "equals";
543
- notEquals: "notEquals";
544
- exists: "exists";
545
- notExists: "notExists";
546
- greaterThan: "greaterThan";
547
- greaterThanOrEquals: "greaterThanOrEquals";
548
- lessThan: "lessThan";
549
- lessThanOrEquals: "lessThanOrEquals";
550
- notContains: "notContains";
551
- semverEquals: "semverEquals";
552
- semverNotEquals: "semverNotEquals";
553
- semverGreaterThan: "semverGreaterThan";
554
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
555
- semverLessThan: "semverLessThan";
556
- semverLessThanOrEquals: "semverLessThanOrEquals";
557
- notIncludes: "notIncludes";
558
- notMatches: "notMatches";
559
- in: "in";
560
- notIn: "notIn";
561
- }>;
562
- value: z.ZodOptional<z.ZodAny>;
563
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
564
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
565
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
566
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
567
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
568
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
569
- }, z.core.$strip>>;
570
- }, z.core.$strip>, z.ZodObject<{
571
- not: z.ZodArray<z.ZodObject<{
572
- operator: z.ZodEnum<{
573
- includes: "includes";
574
- endsWith: "endsWith";
575
- startsWith: "startsWith";
576
- matches: "matches";
577
- contains: "contains";
578
- after: "after";
579
- before: "before";
580
- equals: "equals";
581
- notEquals: "notEquals";
582
- exists: "exists";
583
- notExists: "notExists";
584
- greaterThan: "greaterThan";
585
- greaterThanOrEquals: "greaterThanOrEquals";
586
- lessThan: "lessThan";
587
- lessThanOrEquals: "lessThanOrEquals";
588
- notContains: "notContains";
589
- semverEquals: "semverEquals";
590
- semverNotEquals: "semverNotEquals";
591
- semverGreaterThan: "semverGreaterThan";
592
- semverGreaterThanOrEquals: "semverGreaterThanOrEquals";
593
- semverLessThan: "semverLessThan";
594
- semverLessThanOrEquals: "semverLessThanOrEquals";
595
- notIncludes: "notIncludes";
596
- notMatches: "notMatches";
597
- in: "in";
598
- notIn: "notIn";
599
- }>;
600
- value: z.ZodOptional<z.ZodAny>;
601
- source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
602
- attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
603
- state: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
604
- effect: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
605
- payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
606
- lookup: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
607
- }, z.core.$strip>>;
608
- }, z.core.$strip>]>>]>>;
609
- }, z.core.$strip>]>>]>;
8
+ conditions: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>]>>;
9
+ }, z.core.$strict>]>>]>;
@@ -39,10 +39,12 @@ const conditionsSchema_1 = require("./conditionsSchema");
39
39
  function getPersistSchema(deps) {
40
40
  const conditionsSchema = (0, conditionsSchema_1.getConditionsSchema)(deps);
41
41
  const simplePersist = z.string();
42
- const complexPersist = z.object({
42
+ const complexPersist = z
43
+ .object({
43
44
  storage: z.string(),
44
45
  conditions: conditionsSchema.optional(),
45
- });
46
+ })
47
+ .strict();
46
48
  return z.union([
47
49
  simplePersist,
48
50
  complexPersist,
@@ -1 +1 @@
1
- {"version":3,"file":"persistSchema.js","sourceRoot":"","sources":["../../src/linter/persistSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,4CAeC;AApBD,uCAAyB;AAGzB,yDAAyD;AAEzD,SAAgB,gBAAgB,CAAC,IAAkB;IACjD,MAAM,gBAAgB,GAAG,IAAA,sCAAmB,EAAC,IAAI,CAAC,CAAC;IAEnD,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;QAC9B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,UAAU,EAAE,gBAAgB,CAAC,QAAQ,EAAE;KACxC,CAAC,CAAC;IAEH,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,aAAa;QACb,cAAc;QACd,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;KAClD,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"persistSchema.js","sourceRoot":"","sources":["../../src/linter/persistSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,4CAiBC;AAtBD,uCAAyB;AAGzB,yDAAyD;AAEzD,SAAgB,gBAAgB,CAAC,IAAkB;IACjD,MAAM,gBAAgB,GAAG,IAAA,sCAAmB,EAAC,IAAI,CAAC,CAAC;IAEnD,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,CAAC;SACrB,MAAM,CAAC;QACN,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,UAAU,EAAE,gBAAgB,CAAC,QAAQ,EAAE;KACxC,CAAC;SACD,MAAM,EAAE,CAAC;IAEZ,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,aAAa;QACb,cAAc;QACd,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;KAClD,CAAC,CAAC;AACL,CAAC"}
@@ -51,6 +51,10 @@ function getFilePath(options) {
51
51
  directoryPath = projectConfig.attributesDirectoryPath;
52
52
  }
53
53
  else if (entityType === "destination") {
54
+ directoryPath = projectConfig.destinationsDirectoryPath;
55
+ }
56
+ else if (entityType === "effect") {
57
+ directoryPath = projectConfig.effectsDirectoryPath;
54
58
  }
55
59
  else if (entityType === "test") {
56
60
  directoryPath = projectConfig.testsDirectoryPath;
@@ -1 +1 @@
1
- {"version":3,"file":"printError.js","sourceRoot":"","sources":["../../src/linter/printError.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,gCAQC;AAjDD,2CAA6B;AAE7B,uCAAyB;AACzB,kDAA0B;AAW1B,SAAS,WAAW,CAAC,OAA0B;IAC7C,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAEzD,MAAM,SAAS,GAAI,aAAa,CAAC,MAAuB,CAAC,SAAS,CAAC;IAEnE,IAAI,aAAa,GAAG,EAAE,CAAC;IACvB,IAAI,UAAU,KAAK,OAAO,EAAE,CAAC;QAC3B,aAAa,GAAG,aAAa,CAAC,mBAAmB,CAAC;IACpD,CAAC;SAAM,IAAI,UAAU,KAAK,WAAW,EAAE,CAAC;QACtC,aAAa,GAAG,aAAa,CAAC,uBAAuB,CAAC;IACxD,CAAC;SAAM,IAAI,UAAU,KAAK,aAAa,EAAE,CAAC;IAC1C,CAAC;SAAM,IAAI,UAAU,KAAK,MAAM,EAAE,CAAC;QACjC,aAAa,GAAG,aAAa,CAAC,kBAAkB,CAAC;IACnD,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,wBAAwB,UAAU,EAAE,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,GAAG,GAAG,SAAS,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,WAAW,CAAC,GAAW,EAAE,MAAc;IAC9C,OAAO,GAAG;SACP,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC;SAC5B,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,SAAgB,UAAU,CAAC,OAA0B;IACnD,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;IAE1B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAElB,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAE5D,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;AACzD,CAAC"}
1
+ {"version":3,"file":"printError.js","sourceRoot":"","sources":["../../src/linter/printError.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,gCAQC;AApDD,2CAA6B;AAE7B,uCAAyB;AACzB,kDAA0B;AAW1B,SAAS,WAAW,CAAC,OAA0B;IAC7C,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAEzD,MAAM,SAAS,GAAI,aAAa,CAAC,MAAuB,CAAC,SAAS,CAAC;IAEnE,IAAI,aAAa,GAAG,EAAE,CAAC;IACvB,IAAI,UAAU,KAAK,OAAO,EAAE,CAAC;QAC3B,aAAa,GAAG,aAAa,CAAC,mBAAmB,CAAC;IACpD,CAAC;SAAM,IAAI,UAAU,KAAK,WAAW,EAAE,CAAC;QACtC,aAAa,GAAG,aAAa,CAAC,uBAAuB,CAAC;IACxD,CAAC;SAAM,IAAI,UAAU,KAAK,aAAa,EAAE,CAAC;QACxC,aAAa,GAAG,aAAa,CAAC,yBAAyB,CAAC;IAC1D,CAAC;SAAM,IAAI,UAAU,KAAK,QAAQ,EAAE,CAAC;QACnC,aAAa,GAAG,aAAa,CAAC,oBAAoB,CAAC;IACrD,CAAC;SAAM,IAAI,UAAU,KAAK,MAAM,EAAE,CAAC;QACjC,aAAa,GAAG,aAAa,CAAC,kBAAkB,CAAC;IACnD,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,wBAAwB,UAAU,EAAE,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,GAAG,GAAG,SAAS,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,WAAW,CAAC,GAAW,EAAE,MAAc;IAC9C,OAAO,GAAG;SACP,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC;SAC5B,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,SAAgB,UAAU,CAAC,OAA0B;IACnD,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;IAE1B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAElB,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAE5D,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;AACzD,CAAC"}