@eventvisor/core 0.0.2

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 (165) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -0
  3. package/jest.config.js +4 -0
  4. package/lib/builder/buildProject.d.ts +21 -0
  5. package/lib/builder/buildProject.js +153 -0
  6. package/lib/builder/buildProject.js.map +1 -0
  7. package/lib/builder/hashes.d.ts +2 -0
  8. package/lib/builder/hashes.js +59 -0
  9. package/lib/builder/hashes.js.map +1 -0
  10. package/lib/builder/index.d.ts +1 -0
  11. package/lib/builder/index.js +18 -0
  12. package/lib/builder/index.js.map +1 -0
  13. package/lib/cli/cli.d.ts +26 -0
  14. package/lib/cli/cli.js +69 -0
  15. package/lib/cli/cli.js.map +1 -0
  16. package/lib/cli/index.d.ts +1 -0
  17. package/lib/cli/index.js +18 -0
  18. package/lib/cli/index.js.map +1 -0
  19. package/lib/cli/plugins.d.ts +4 -0
  20. package/lib/cli/plugins.js +12 -0
  21. package/lib/cli/plugins.js.map +1 -0
  22. package/lib/config/index.d.ts +2 -0
  23. package/lib/config/index.js +19 -0
  24. package/lib/config/index.js.map +1 -0
  25. package/lib/config/parsers.d.ts +15 -0
  26. package/lib/config/parsers.js +65 -0
  27. package/lib/config/parsers.js.map +1 -0
  28. package/lib/config/projectConfig.d.ts +42 -0
  29. package/lib/config/projectConfig.js +137 -0
  30. package/lib/config/projectConfig.js.map +1 -0
  31. package/lib/datasource/adapter.d.ts +16 -0
  32. package/lib/datasource/adapter.js +7 -0
  33. package/lib/datasource/adapter.js.map +1 -0
  34. package/lib/datasource/datasource.d.ts +48 -0
  35. package/lib/datasource/datasource.js +117 -0
  36. package/lib/datasource/datasource.js.map +1 -0
  37. package/lib/datasource/filesystemAdapter.d.ts +29 -0
  38. package/lib/datasource/filesystemAdapter.js +192 -0
  39. package/lib/datasource/filesystemAdapter.js.map +1 -0
  40. package/lib/datasource/index.d.ts +3 -0
  41. package/lib/datasource/index.js +20 -0
  42. package/lib/datasource/index.js.map +1 -0
  43. package/lib/dependencies.d.ts +11 -0
  44. package/lib/dependencies.js +3 -0
  45. package/lib/dependencies.js.map +1 -0
  46. package/lib/index.d.ts +4 -0
  47. package/lib/index.js +21 -0
  48. package/lib/index.js.map +1 -0
  49. package/lib/index.spec.d.ts +0 -0
  50. package/lib/index.spec.js +6 -0
  51. package/lib/index.spec.js.map +1 -0
  52. package/lib/init/index.d.ts +8 -0
  53. package/lib/init/index.js +90 -0
  54. package/lib/init/index.js.map +1 -0
  55. package/lib/linter/attributeSchema.d.ts +5 -0
  56. package/lib/linter/attributeSchema.js +55 -0
  57. package/lib/linter/attributeSchema.js.map +1 -0
  58. package/lib/linter/conditionsSchema.d.ts +303 -0
  59. package/lib/linter/conditionsSchema.js +106 -0
  60. package/lib/linter/conditionsSchema.js.map +1 -0
  61. package/lib/linter/destinationSchema.d.ts +5 -0
  62. package/lib/linter/destinationSchema.js +57 -0
  63. package/lib/linter/destinationSchema.js.map +1 -0
  64. package/lib/linter/effectSchema.d.ts +1257 -0
  65. package/lib/linter/effectSchema.js +77 -0
  66. package/lib/linter/effectSchema.js.map +1 -0
  67. package/lib/linter/eventSchema.d.ts +5 -0
  68. package/lib/linter/eventSchema.js +70 -0
  69. package/lib/linter/eventSchema.js.map +1 -0
  70. package/lib/linter/index.d.ts +1 -0
  71. package/lib/linter/index.js +18 -0
  72. package/lib/linter/index.js.map +1 -0
  73. package/lib/linter/jsonSchema.d.ts +25 -0
  74. package/lib/linter/jsonSchema.js +487 -0
  75. package/lib/linter/jsonSchema.js.map +1 -0
  76. package/lib/linter/jsonSchema.spec.d.ts +1 -0
  77. package/lib/linter/jsonSchema.spec.js +875 -0
  78. package/lib/linter/jsonSchema.spec.js.map +1 -0
  79. package/lib/linter/lintProject.d.ts +2 -0
  80. package/lib/linter/lintProject.js +141 -0
  81. package/lib/linter/lintProject.js.map +1 -0
  82. package/lib/linter/persistSchema.d.ts +609 -0
  83. package/lib/linter/persistSchema.js +52 -0
  84. package/lib/linter/persistSchema.js.map +1 -0
  85. package/lib/linter/printError.d.ts +9 -0
  86. package/lib/linter/printError.js +75 -0
  87. package/lib/linter/printError.js.map +1 -0
  88. package/lib/linter/sampleSchema.d.ts +331 -0
  89. package/lib/linter/sampleSchema.js +70 -0
  90. package/lib/linter/sampleSchema.js.map +1 -0
  91. package/lib/linter/sourceSchema.d.ts +11 -0
  92. package/lib/linter/sourceSchema.js +73 -0
  93. package/lib/linter/sourceSchema.js.map +1 -0
  94. package/lib/linter/tagsSchema.d.ts +3 -0
  95. package/lib/linter/tagsSchema.js +44 -0
  96. package/lib/linter/tagsSchema.js.map +1 -0
  97. package/lib/linter/testSchema.d.ts +5 -0
  98. package/lib/linter/testSchema.js +44 -0
  99. package/lib/linter/testSchema.js.map +1 -0
  100. package/lib/linter/transformsSchema.d.ts +29 -0
  101. package/lib/linter/transformsSchema.js +66 -0
  102. package/lib/linter/transformsSchema.js.map +1 -0
  103. package/lib/tester/createTestInstance.d.ts +16 -0
  104. package/lib/tester/createTestInstance.js +158 -0
  105. package/lib/tester/createTestInstance.js.map +1 -0
  106. package/lib/tester/executeTest.d.ts +24 -0
  107. package/lib/tester/executeTest.js +305 -0
  108. package/lib/tester/executeTest.js.map +1 -0
  109. package/lib/tester/index.d.ts +1 -0
  110. package/lib/tester/index.js +18 -0
  111. package/lib/tester/index.js.map +1 -0
  112. package/lib/tester/printTestResult.d.ts +10 -0
  113. package/lib/tester/printTestResult.js +80 -0
  114. package/lib/tester/printTestResult.js.map +1 -0
  115. package/lib/tester/testProject.d.ts +12 -0
  116. package/lib/tester/testProject.js +93 -0
  117. package/lib/tester/testProject.js.map +1 -0
  118. package/lib/utils/index.d.ts +1 -0
  119. package/lib/utils/index.js +18 -0
  120. package/lib/utils/index.js.map +1 -0
  121. package/lib/utils/prettyDuration.d.ts +1 -0
  122. package/lib/utils/prettyDuration.js +27 -0
  123. package/lib/utils/prettyDuration.js.map +1 -0
  124. package/package.json +42 -0
  125. package/src/builder/buildProject.ts +222 -0
  126. package/src/builder/hashes.ts +30 -0
  127. package/src/builder/index.ts +1 -0
  128. package/src/cli/cli.ts +110 -0
  129. package/src/cli/index.ts +1 -0
  130. package/src/cli/plugins.ts +13 -0
  131. package/src/config/index.ts +2 -0
  132. package/src/config/parsers.ts +40 -0
  133. package/src/config/projectConfig.ts +158 -0
  134. package/src/datasource/adapter.ts +23 -0
  135. package/src/datasource/datasource.ts +164 -0
  136. package/src/datasource/filesystemAdapter.ts +206 -0
  137. package/src/datasource/index.ts +3 -0
  138. package/src/dependencies.ts +13 -0
  139. package/src/index.spec.ts +5 -0
  140. package/src/index.ts +4 -0
  141. package/src/init/index.ts +65 -0
  142. package/src/linter/attributeSchema.ts +23 -0
  143. package/src/linter/conditionsSchema.ts +89 -0
  144. package/src/linter/destinationSchema.ts +25 -0
  145. package/src/linter/effectSchema.ts +49 -0
  146. package/src/linter/eventSchema.ts +40 -0
  147. package/src/linter/index.ts +1 -0
  148. package/src/linter/jsonSchema.spec.ts +934 -0
  149. package/src/linter/jsonSchema.ts +533 -0
  150. package/src/linter/lintProject.ts +182 -0
  151. package/src/linter/persistSchema.ts +21 -0
  152. package/src/linter/printError.ts +50 -0
  153. package/src/linter/sampleSchema.ts +45 -0
  154. package/src/linter/sourceSchema.ts +42 -0
  155. package/src/linter/tagsSchema.ts +12 -0
  156. package/src/linter/testSchema.ts +9 -0
  157. package/src/linter/transformsSchema.ts +35 -0
  158. package/src/tester/createTestInstance.ts +209 -0
  159. package/src/tester/executeTest.ts +436 -0
  160. package/src/tester/index.ts +1 -0
  161. package/src/tester/printTestResult.ts +60 -0
  162. package/src/tester/testProject.ts +129 -0
  163. package/src/utils/index.ts +1 -0
  164. package/src/utils/prettyDuration.ts +27 -0
  165. package/tsconfig.cjs.json +11 -0
@@ -0,0 +1,609 @@
1
+ import * as z from "zod";
2
+ import { Dependencies } from "../dependencies";
3
+ export declare function getPersistSchema(deps: Dependencies): z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
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<{
307
+ 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>]>>]>;
@@ -0,0 +1,52 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.getPersistSchema = getPersistSchema;
37
+ const z = __importStar(require("zod"));
38
+ const conditionsSchema_1 = require("./conditionsSchema");
39
+ function getPersistSchema(deps) {
40
+ const conditionsSchema = (0, conditionsSchema_1.getConditionsSchema)(deps);
41
+ const simplePersist = z.string();
42
+ const complexPersist = z.object({
43
+ storage: z.string(),
44
+ conditions: conditionsSchema.optional(),
45
+ });
46
+ return z.union([
47
+ simplePersist,
48
+ complexPersist,
49
+ z.array(z.union([simplePersist, complexPersist])),
50
+ ]);
51
+ }
52
+ //# sourceMappingURL=persistSchema.js.map
@@ -0,0 +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"}