eslint-plugin-slonik 1.0.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 (35) hide show
  1. package/LICENSE +48 -0
  2. package/README.md +368 -0
  3. package/dist/config.cjs +61 -0
  4. package/dist/config.cjs.map +1 -0
  5. package/dist/config.d.cts +192 -0
  6. package/dist/config.d.mts +192 -0
  7. package/dist/config.d.ts +192 -0
  8. package/dist/config.mjs +59 -0
  9. package/dist/config.mjs.map +1 -0
  10. package/dist/index.cjs +27 -0
  11. package/dist/index.cjs.map +1 -0
  12. package/dist/index.d.cts +319 -0
  13. package/dist/index.d.mts +319 -0
  14. package/dist/index.d.ts +319 -0
  15. package/dist/index.mjs +20 -0
  16. package/dist/index.mjs.map +1 -0
  17. package/dist/shared/eslint-plugin-slonik.1m1xlVmw.d.cts +611 -0
  18. package/dist/shared/eslint-plugin-slonik.1m1xlVmw.d.mts +611 -0
  19. package/dist/shared/eslint-plugin-slonik.1m1xlVmw.d.ts +611 -0
  20. package/dist/shared/eslint-plugin-slonik.BxexVlk1.cjs +1539 -0
  21. package/dist/shared/eslint-plugin-slonik.BxexVlk1.cjs.map +1 -0
  22. package/dist/shared/eslint-plugin-slonik.C0xTyWZ2.mjs +2866 -0
  23. package/dist/shared/eslint-plugin-slonik.C0xTyWZ2.mjs.map +1 -0
  24. package/dist/shared/eslint-plugin-slonik.DbzoLz5_.mjs +1514 -0
  25. package/dist/shared/eslint-plugin-slonik.DbzoLz5_.mjs.map +1 -0
  26. package/dist/shared/eslint-plugin-slonik.rlOTrCdf.cjs +2929 -0
  27. package/dist/shared/eslint-plugin-slonik.rlOTrCdf.cjs.map +1 -0
  28. package/dist/workers/check-sql.worker.cjs +2436 -0
  29. package/dist/workers/check-sql.worker.cjs.map +1 -0
  30. package/dist/workers/check-sql.worker.d.cts +171 -0
  31. package/dist/workers/check-sql.worker.d.mts +171 -0
  32. package/dist/workers/check-sql.worker.d.ts +171 -0
  33. package/dist/workers/check-sql.worker.mjs +2412 -0
  34. package/dist/workers/check-sql.worker.mjs.map +1 -0
  35. package/package.json +103 -0
@@ -0,0 +1,611 @@
1
+ import z from 'zod';
2
+
3
+ /**
4
+ * A target that acts as a wrapper for the query. For example:
5
+ *
6
+ * ```ts
7
+ * const query = conn.query(sql`SELECT * FROM users`);
8
+ * ^^^^^^^^^^ wrapper
9
+ * ```
10
+ */
11
+ declare const zWrapperTarget: z.ZodObject<{
12
+ wrapper: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13
+ regex: z.ZodString;
14
+ }, z.core.$strip>]>;
15
+ maxDepth: z.ZodOptional<z.ZodNumber>;
16
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
17
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
18
+ snake: "snake";
19
+ pascal: "pascal";
20
+ camel: "camel";
21
+ "screaming snake": "screaming snake";
22
+ }>>;
23
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
24
+ }, z.core.$strip>;
25
+ type WrapperTarget = z.infer<typeof zWrapperTarget>;
26
+ /**
27
+ * A target that is a tag expression. For example:
28
+ *
29
+ * ```ts
30
+ * const query = sql`SELECT * FROM users`;
31
+ * ^^^ tag
32
+ * ```
33
+ */
34
+ declare const zTagTarget: z.ZodObject<{
35
+ tag: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
36
+ regex: z.ZodString;
37
+ }, z.core.$strip>]>;
38
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
39
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
40
+ snake: "snake";
41
+ pascal: "pascal";
42
+ camel: "camel";
43
+ "screaming snake": "screaming snake";
44
+ }>>;
45
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
46
+ }, z.core.$strip>;
47
+ type TagTarget = z.infer<typeof zTagTarget>;
48
+ type ConnectionTarget = WrapperTarget | TagTarget;
49
+ declare const zRuleOptionConnection: z.ZodUnion<readonly [z.ZodObject<{
50
+ targets: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
51
+ wrapper: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
52
+ regex: z.ZodString;
53
+ }, z.core.$strip>]>;
54
+ maxDepth: z.ZodOptional<z.ZodNumber>;
55
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
56
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
57
+ snake: "snake";
58
+ pascal: "pascal";
59
+ camel: "camel";
60
+ "screaming snake": "screaming snake";
61
+ }>>;
62
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ tag: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
65
+ regex: z.ZodString;
66
+ }, z.core.$strip>]>;
67
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
68
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
69
+ snake: "snake";
70
+ pascal: "pascal";
71
+ camel: "camel";
72
+ "screaming snake": "screaming snake";
73
+ }>>;
74
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
75
+ }, z.core.$strip>]>>;
76
+ keepAlive: z.ZodOptional<z.ZodBoolean>;
77
+ overrides: z.ZodOptional<z.ZodObject<{
78
+ types: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodEnum<{
79
+ bigint: "bigint";
80
+ boolean: "boolean";
81
+ int: "int";
82
+ null: "null";
83
+ void: "void";
84
+ date: "date";
85
+ int2: "int2";
86
+ int4: "int4";
87
+ int8: "int8";
88
+ smallint: "smallint";
89
+ real: "real";
90
+ float4: "float4";
91
+ float: "float";
92
+ float8: "float8";
93
+ numeric: "numeric";
94
+ decimal: "decimal";
95
+ smallserial: "smallserial";
96
+ serial: "serial";
97
+ bigserial: "bigserial";
98
+ uuid: "uuid";
99
+ text: "text";
100
+ varchar: "varchar";
101
+ char: "char";
102
+ bpchar: "bpchar";
103
+ citext: "citext";
104
+ bit: "bit";
105
+ bool: "bool";
106
+ timestamp: "timestamp";
107
+ timestamptz: "timestamptz";
108
+ time: "time";
109
+ timetz: "timetz";
110
+ interval: "interval";
111
+ inet: "inet";
112
+ cidr: "cidr";
113
+ macaddr: "macaddr";
114
+ macaddr8: "macaddr8";
115
+ money: "money";
116
+ json: "json";
117
+ jsonb: "jsonb";
118
+ bytea: "bytea";
119
+ }>, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
120
+ parameter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
121
+ regex: z.ZodString;
122
+ }, z.core.$strip>]>;
123
+ return: z.ZodString;
124
+ }, z.core.$strip>]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
125
+ parameter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
126
+ regex: z.ZodString;
127
+ }, z.core.$strip>]>;
128
+ return: z.ZodString;
129
+ }, z.core.$strip>]>>]>>;
130
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
131
+ }, z.core.$strip>>;
132
+ nullAsUndefined: z.ZodOptional<z.ZodBoolean>;
133
+ nullAsOptional: z.ZodOptional<z.ZodBoolean>;
134
+ inferLiterals: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodEnum<{
135
+ string: "string";
136
+ number: "number";
137
+ boolean: "boolean";
138
+ }>>]>>;
139
+ migrationsDir: z.ZodString;
140
+ connectionUrl: z.ZodOptional<z.ZodString>;
141
+ databaseName: z.ZodOptional<z.ZodString>;
142
+ watchMode: z.ZodOptional<z.ZodBoolean>;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ targets: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
145
+ wrapper: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
146
+ regex: z.ZodString;
147
+ }, z.core.$strip>]>;
148
+ maxDepth: z.ZodOptional<z.ZodNumber>;
149
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
150
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
151
+ snake: "snake";
152
+ pascal: "pascal";
153
+ camel: "camel";
154
+ "screaming snake": "screaming snake";
155
+ }>>;
156
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
157
+ }, z.core.$strip>, z.ZodObject<{
158
+ tag: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
159
+ regex: z.ZodString;
160
+ }, z.core.$strip>]>;
161
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
162
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
163
+ snake: "snake";
164
+ pascal: "pascal";
165
+ camel: "camel";
166
+ "screaming snake": "screaming snake";
167
+ }>>;
168
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
169
+ }, z.core.$strip>]>>;
170
+ keepAlive: z.ZodOptional<z.ZodBoolean>;
171
+ overrides: z.ZodOptional<z.ZodObject<{
172
+ types: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodEnum<{
173
+ bigint: "bigint";
174
+ boolean: "boolean";
175
+ int: "int";
176
+ null: "null";
177
+ void: "void";
178
+ date: "date";
179
+ int2: "int2";
180
+ int4: "int4";
181
+ int8: "int8";
182
+ smallint: "smallint";
183
+ real: "real";
184
+ float4: "float4";
185
+ float: "float";
186
+ float8: "float8";
187
+ numeric: "numeric";
188
+ decimal: "decimal";
189
+ smallserial: "smallserial";
190
+ serial: "serial";
191
+ bigserial: "bigserial";
192
+ uuid: "uuid";
193
+ text: "text";
194
+ varchar: "varchar";
195
+ char: "char";
196
+ bpchar: "bpchar";
197
+ citext: "citext";
198
+ bit: "bit";
199
+ bool: "bool";
200
+ timestamp: "timestamp";
201
+ timestamptz: "timestamptz";
202
+ time: "time";
203
+ timetz: "timetz";
204
+ interval: "interval";
205
+ inet: "inet";
206
+ cidr: "cidr";
207
+ macaddr: "macaddr";
208
+ macaddr8: "macaddr8";
209
+ money: "money";
210
+ json: "json";
211
+ jsonb: "jsonb";
212
+ bytea: "bytea";
213
+ }>, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
214
+ parameter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
215
+ regex: z.ZodString;
216
+ }, z.core.$strip>]>;
217
+ return: z.ZodString;
218
+ }, z.core.$strip>]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
219
+ parameter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
220
+ regex: z.ZodString;
221
+ }, z.core.$strip>]>;
222
+ return: z.ZodString;
223
+ }, z.core.$strip>]>>]>>;
224
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
225
+ }, z.core.$strip>>;
226
+ nullAsUndefined: z.ZodOptional<z.ZodBoolean>;
227
+ nullAsOptional: z.ZodOptional<z.ZodBoolean>;
228
+ inferLiterals: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodEnum<{
229
+ string: "string";
230
+ number: "number";
231
+ boolean: "boolean";
232
+ }>>]>>;
233
+ databaseUrl: z.ZodString;
234
+ }, z.core.$strip>]>;
235
+ type RuleOptionConnection = z.infer<typeof zRuleOptionConnection>;
236
+ declare const zConfig: z.ZodObject<{
237
+ connections: z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
238
+ targets: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
239
+ wrapper: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
240
+ regex: z.ZodString;
241
+ }, z.core.$strip>]>;
242
+ maxDepth: z.ZodOptional<z.ZodNumber>;
243
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
244
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
245
+ snake: "snake";
246
+ pascal: "pascal";
247
+ camel: "camel";
248
+ "screaming snake": "screaming snake";
249
+ }>>;
250
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
251
+ }, z.core.$strip>, z.ZodObject<{
252
+ tag: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
253
+ regex: z.ZodString;
254
+ }, z.core.$strip>]>;
255
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
256
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
257
+ snake: "snake";
258
+ pascal: "pascal";
259
+ camel: "camel";
260
+ "screaming snake": "screaming snake";
261
+ }>>;
262
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
263
+ }, z.core.$strip>]>>;
264
+ keepAlive: z.ZodOptional<z.ZodBoolean>;
265
+ overrides: z.ZodOptional<z.ZodObject<{
266
+ types: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodEnum<{
267
+ bigint: "bigint";
268
+ boolean: "boolean";
269
+ int: "int";
270
+ null: "null";
271
+ void: "void";
272
+ date: "date";
273
+ int2: "int2";
274
+ int4: "int4";
275
+ int8: "int8";
276
+ smallint: "smallint";
277
+ real: "real";
278
+ float4: "float4";
279
+ float: "float";
280
+ float8: "float8";
281
+ numeric: "numeric";
282
+ decimal: "decimal";
283
+ smallserial: "smallserial";
284
+ serial: "serial";
285
+ bigserial: "bigserial";
286
+ uuid: "uuid";
287
+ text: "text";
288
+ varchar: "varchar";
289
+ char: "char";
290
+ bpchar: "bpchar";
291
+ citext: "citext";
292
+ bit: "bit";
293
+ bool: "bool";
294
+ timestamp: "timestamp";
295
+ timestamptz: "timestamptz";
296
+ time: "time";
297
+ timetz: "timetz";
298
+ interval: "interval";
299
+ inet: "inet";
300
+ cidr: "cidr";
301
+ macaddr: "macaddr";
302
+ macaddr8: "macaddr8";
303
+ money: "money";
304
+ json: "json";
305
+ jsonb: "jsonb";
306
+ bytea: "bytea";
307
+ }>, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
308
+ parameter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
309
+ regex: z.ZodString;
310
+ }, z.core.$strip>]>;
311
+ return: z.ZodString;
312
+ }, z.core.$strip>]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
313
+ parameter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
314
+ regex: z.ZodString;
315
+ }, z.core.$strip>]>;
316
+ return: z.ZodString;
317
+ }, z.core.$strip>]>>]>>;
318
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
319
+ }, z.core.$strip>>;
320
+ nullAsUndefined: z.ZodOptional<z.ZodBoolean>;
321
+ nullAsOptional: z.ZodOptional<z.ZodBoolean>;
322
+ inferLiterals: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodEnum<{
323
+ string: "string";
324
+ number: "number";
325
+ boolean: "boolean";
326
+ }>>]>>;
327
+ migrationsDir: z.ZodString;
328
+ connectionUrl: z.ZodOptional<z.ZodString>;
329
+ databaseName: z.ZodOptional<z.ZodString>;
330
+ watchMode: z.ZodOptional<z.ZodBoolean>;
331
+ }, z.core.$strip>, z.ZodObject<{
332
+ targets: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
333
+ wrapper: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
334
+ regex: z.ZodString;
335
+ }, z.core.$strip>]>;
336
+ maxDepth: z.ZodOptional<z.ZodNumber>;
337
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
338
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
339
+ snake: "snake";
340
+ pascal: "pascal";
341
+ camel: "camel";
342
+ "screaming snake": "screaming snake";
343
+ }>>;
344
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
345
+ }, z.core.$strip>, z.ZodObject<{
346
+ tag: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
347
+ regex: z.ZodString;
348
+ }, z.core.$strip>]>;
349
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
350
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
351
+ snake: "snake";
352
+ pascal: "pascal";
353
+ camel: "camel";
354
+ "screaming snake": "screaming snake";
355
+ }>>;
356
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
357
+ }, z.core.$strip>]>>;
358
+ keepAlive: z.ZodOptional<z.ZodBoolean>;
359
+ overrides: z.ZodOptional<z.ZodObject<{
360
+ types: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodEnum<{
361
+ bigint: "bigint";
362
+ boolean: "boolean";
363
+ int: "int";
364
+ null: "null";
365
+ void: "void";
366
+ date: "date";
367
+ int2: "int2";
368
+ int4: "int4";
369
+ int8: "int8";
370
+ smallint: "smallint";
371
+ real: "real";
372
+ float4: "float4";
373
+ float: "float";
374
+ float8: "float8";
375
+ numeric: "numeric";
376
+ decimal: "decimal";
377
+ smallserial: "smallserial";
378
+ serial: "serial";
379
+ bigserial: "bigserial";
380
+ uuid: "uuid";
381
+ text: "text";
382
+ varchar: "varchar";
383
+ char: "char";
384
+ bpchar: "bpchar";
385
+ citext: "citext";
386
+ bit: "bit";
387
+ bool: "bool";
388
+ timestamp: "timestamp";
389
+ timestamptz: "timestamptz";
390
+ time: "time";
391
+ timetz: "timetz";
392
+ interval: "interval";
393
+ inet: "inet";
394
+ cidr: "cidr";
395
+ macaddr: "macaddr";
396
+ macaddr8: "macaddr8";
397
+ money: "money";
398
+ json: "json";
399
+ jsonb: "jsonb";
400
+ bytea: "bytea";
401
+ }>, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
402
+ parameter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
403
+ regex: z.ZodString;
404
+ }, z.core.$strip>]>;
405
+ return: z.ZodString;
406
+ }, z.core.$strip>]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
407
+ parameter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
408
+ regex: z.ZodString;
409
+ }, z.core.$strip>]>;
410
+ return: z.ZodString;
411
+ }, z.core.$strip>]>>]>>;
412
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
413
+ }, z.core.$strip>>;
414
+ nullAsUndefined: z.ZodOptional<z.ZodBoolean>;
415
+ nullAsOptional: z.ZodOptional<z.ZodBoolean>;
416
+ inferLiterals: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodEnum<{
417
+ string: "string";
418
+ number: "number";
419
+ boolean: "boolean";
420
+ }>>]>>;
421
+ databaseUrl: z.ZodString;
422
+ }, z.core.$strip>]>>, z.ZodUnion<readonly [z.ZodObject<{
423
+ targets: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
424
+ wrapper: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
425
+ regex: z.ZodString;
426
+ }, z.core.$strip>]>;
427
+ maxDepth: z.ZodOptional<z.ZodNumber>;
428
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
429
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
430
+ snake: "snake";
431
+ pascal: "pascal";
432
+ camel: "camel";
433
+ "screaming snake": "screaming snake";
434
+ }>>;
435
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
436
+ }, z.core.$strip>, z.ZodObject<{
437
+ tag: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
438
+ regex: z.ZodString;
439
+ }, z.core.$strip>]>;
440
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
441
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
442
+ snake: "snake";
443
+ pascal: "pascal";
444
+ camel: "camel";
445
+ "screaming snake": "screaming snake";
446
+ }>>;
447
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
448
+ }, z.core.$strip>]>>;
449
+ keepAlive: z.ZodOptional<z.ZodBoolean>;
450
+ overrides: z.ZodOptional<z.ZodObject<{
451
+ types: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodEnum<{
452
+ bigint: "bigint";
453
+ boolean: "boolean";
454
+ int: "int";
455
+ null: "null";
456
+ void: "void";
457
+ date: "date";
458
+ int2: "int2";
459
+ int4: "int4";
460
+ int8: "int8";
461
+ smallint: "smallint";
462
+ real: "real";
463
+ float4: "float4";
464
+ float: "float";
465
+ float8: "float8";
466
+ numeric: "numeric";
467
+ decimal: "decimal";
468
+ smallserial: "smallserial";
469
+ serial: "serial";
470
+ bigserial: "bigserial";
471
+ uuid: "uuid";
472
+ text: "text";
473
+ varchar: "varchar";
474
+ char: "char";
475
+ bpchar: "bpchar";
476
+ citext: "citext";
477
+ bit: "bit";
478
+ bool: "bool";
479
+ timestamp: "timestamp";
480
+ timestamptz: "timestamptz";
481
+ time: "time";
482
+ timetz: "timetz";
483
+ interval: "interval";
484
+ inet: "inet";
485
+ cidr: "cidr";
486
+ macaddr: "macaddr";
487
+ macaddr8: "macaddr8";
488
+ money: "money";
489
+ json: "json";
490
+ jsonb: "jsonb";
491
+ bytea: "bytea";
492
+ }>, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
493
+ parameter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
494
+ regex: z.ZodString;
495
+ }, z.core.$strip>]>;
496
+ return: z.ZodString;
497
+ }, z.core.$strip>]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
498
+ parameter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
499
+ regex: z.ZodString;
500
+ }, z.core.$strip>]>;
501
+ return: z.ZodString;
502
+ }, z.core.$strip>]>>]>>;
503
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
504
+ }, z.core.$strip>>;
505
+ nullAsUndefined: z.ZodOptional<z.ZodBoolean>;
506
+ nullAsOptional: z.ZodOptional<z.ZodBoolean>;
507
+ inferLiterals: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodEnum<{
508
+ string: "string";
509
+ number: "number";
510
+ boolean: "boolean";
511
+ }>>]>>;
512
+ migrationsDir: z.ZodString;
513
+ connectionUrl: z.ZodOptional<z.ZodString>;
514
+ databaseName: z.ZodOptional<z.ZodString>;
515
+ watchMode: z.ZodOptional<z.ZodBoolean>;
516
+ }, z.core.$strip>, z.ZodObject<{
517
+ targets: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
518
+ wrapper: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
519
+ regex: z.ZodString;
520
+ }, z.core.$strip>]>;
521
+ maxDepth: z.ZodOptional<z.ZodNumber>;
522
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
523
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
524
+ snake: "snake";
525
+ pascal: "pascal";
526
+ camel: "camel";
527
+ "screaming snake": "screaming snake";
528
+ }>>;
529
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
530
+ }, z.core.$strip>, z.ZodObject<{
531
+ tag: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
532
+ regex: z.ZodString;
533
+ }, z.core.$strip>]>;
534
+ transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>]>>;
535
+ fieldTransform: z.ZodOptional<z.ZodEnum<{
536
+ snake: "snake";
537
+ pascal: "pascal";
538
+ camel: "camel";
539
+ "screaming snake": "screaming snake";
540
+ }>>;
541
+ skipTypeAnnotations: z.ZodOptional<z.ZodBoolean>;
542
+ }, z.core.$strip>]>>;
543
+ keepAlive: z.ZodOptional<z.ZodBoolean>;
544
+ overrides: z.ZodOptional<z.ZodObject<{
545
+ types: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodEnum<{
546
+ bigint: "bigint";
547
+ boolean: "boolean";
548
+ int: "int";
549
+ null: "null";
550
+ void: "void";
551
+ date: "date";
552
+ int2: "int2";
553
+ int4: "int4";
554
+ int8: "int8";
555
+ smallint: "smallint";
556
+ real: "real";
557
+ float4: "float4";
558
+ float: "float";
559
+ float8: "float8";
560
+ numeric: "numeric";
561
+ decimal: "decimal";
562
+ smallserial: "smallserial";
563
+ serial: "serial";
564
+ bigserial: "bigserial";
565
+ uuid: "uuid";
566
+ text: "text";
567
+ varchar: "varchar";
568
+ char: "char";
569
+ bpchar: "bpchar";
570
+ citext: "citext";
571
+ bit: "bit";
572
+ bool: "bool";
573
+ timestamp: "timestamp";
574
+ timestamptz: "timestamptz";
575
+ time: "time";
576
+ timetz: "timetz";
577
+ interval: "interval";
578
+ inet: "inet";
579
+ cidr: "cidr";
580
+ macaddr: "macaddr";
581
+ macaddr8: "macaddr8";
582
+ money: "money";
583
+ json: "json";
584
+ jsonb: "jsonb";
585
+ bytea: "bytea";
586
+ }>, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
587
+ parameter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
588
+ regex: z.ZodString;
589
+ }, z.core.$strip>]>;
590
+ return: z.ZodString;
591
+ }, z.core.$strip>]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
592
+ parameter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
593
+ regex: z.ZodString;
594
+ }, z.core.$strip>]>;
595
+ return: z.ZodString;
596
+ }, z.core.$strip>]>>]>>;
597
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
598
+ }, z.core.$strip>>;
599
+ nullAsUndefined: z.ZodOptional<z.ZodBoolean>;
600
+ nullAsOptional: z.ZodOptional<z.ZodBoolean>;
601
+ inferLiterals: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodEnum<{
602
+ string: "string";
603
+ number: "number";
604
+ boolean: "boolean";
605
+ }>>]>>;
606
+ databaseUrl: z.ZodString;
607
+ }, z.core.$strip>]>]>;
608
+ }, z.core.$strip>;
609
+ type Config = z.infer<typeof zConfig>;
610
+
611
+ export type { Config as C, RuleOptionConnection as R, ConnectionTarget as a };