@open-norantec/utilities 1.0.1-alpha.9 → 2.0.0-alpha.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.
@@ -1,838 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace Enum {
3
- const OrderOrientation: {
4
- readonly ASC: "ASC";
5
- readonly DESC: "DESC";
6
- };
7
- const WhereClauseOp: {
8
- readonly ADJACENT: "adjacent";
9
- readonly ANY: "any";
10
- readonly BETWEEN: "between";
11
- readonly COL: "col";
12
- readonly CONTAINED: "contained";
13
- readonly CONTAINS: "contains";
14
- readonly ENDS_WITH: "endsWith";
15
- readonly EQ: "eq";
16
- readonly GT: "gt";
17
- readonly GTE: "gte";
18
- readonly I_LIKE: "iLike";
19
- readonly IN: "in";
20
- readonly I_REGEXP: "iRegexp";
21
- readonly IS: "is";
22
- readonly LIKE: "like";
23
- readonly LT: "lt";
24
- readonly LTE: "lte";
25
- readonly MATCH: "match";
26
- readonly NE: "ne";
27
- readonly NO_EXTEND_LEFT: "noExtendLeft";
28
- readonly NO_EXTEND_RIGHT: "noExtendRight";
29
- readonly NOT: "not";
30
- readonly NOT_BETWEEN: "notBetween";
31
- readonly NOT_I_LIKE: "notILike";
32
- readonly NOT_IN: "notIn";
33
- readonly NOT_I_REGEXP: "notIRegexp";
34
- readonly NOT_LIKE: "notLike";
35
- readonly NOT_REGEXP: "notRegexp";
36
- readonly OVERLAP: "overlap";
37
- readonly PLACEHOLDER: "placeholder";
38
- readonly REGEXP: "regexp";
39
- readonly STARTS_WITH: "startsWith";
40
- readonly STRICT_LEFT: "strictLeft";
41
- readonly STRICT_RIGHT: "strictRight";
42
- readonly SUBSTRING: "substring";
43
- readonly VALUES: "values";
44
- };
45
- const LogLevel: {
46
- readonly ERROR: "error";
47
- readonly WARN: "warn";
48
- readonly INFO: "info";
49
- readonly VERBOSE: "verbose";
50
- readonly DEBUG: "debug";
51
- };
52
- }
53
- export declare class SchemaUtil {
54
- static createEnumSchema<const T extends Record<string, string>>(object: T): z.ZodEnum<[T[keyof T], ...T[keyof T][]]>;
55
- static readonly ID: z.ZodString;
56
- static readonly ID_LIST: z.ZodArray<z.ZodString, "many">;
57
- static readonly ID_LIST_OBJECT: z.ZodObject<{
58
- idList: z.ZodArray<z.ZodString, "many">;
59
- }, "strip", z.ZodTypeAny, {
60
- idList: string[];
61
- }, {
62
- idList: string[];
63
- }>;
64
- static readonly ID_OBJECT: z.ZodObject<{
65
- id: z.ZodString;
66
- }, "strip", z.ZodTypeAny, {
67
- id: string;
68
- }, {
69
- id: string;
70
- }>;
71
- static readonly JSON_STRING: z.ZodEffects<z.ZodString, string, string>;
72
- static readonly DATE_STRING: z.ZodEffects<z.ZodString, string, string>;
73
- static readonly TIME_RECORD: z.ZodObject<{
74
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
75
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
76
- }, "strip", z.ZodTypeAny, {
77
- createdAt?: string | null | undefined;
78
- updatedAt?: string | null | undefined;
79
- }, {
80
- createdAt?: string | null | undefined;
81
- updatedAt?: string | null | undefined;
82
- }>;
83
- static readonly ORDER_ORIENTATION: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
84
- static readonly WHERE_CLAUSE_OP: z.ZodEnum<["values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring", ...("values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring")[]]>;
85
- static readonly LOG_LEVEL: z.ZodEnum<["error" | "warn" | "info" | "verbose" | "debug", ...("error" | "warn" | "info" | "verbose" | "debug")[]]>;
86
- static readonly COMMON_RESULT: z.ZodObject<{
87
- succeeded: z.ZodBoolean;
88
- content: z.ZodOptional<z.ZodString>;
89
- } & {
90
- id: z.ZodOptional<z.ZodString>;
91
- } & {
92
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
93
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
94
- }, "strip", z.ZodTypeAny, {
95
- succeeded: boolean;
96
- id?: string | undefined;
97
- createdAt?: string | null | undefined;
98
- updatedAt?: string | null | undefined;
99
- content?: string | undefined;
100
- }, {
101
- succeeded: boolean;
102
- id?: string | undefined;
103
- createdAt?: string | null | undefined;
104
- updatedAt?: string | null | undefined;
105
- content?: string | undefined;
106
- }>;
107
- static readonly WHERE_CLAUSE: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
108
- field: z.ZodString;
109
- op: z.ZodEnum<["values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring", ...("values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring")[]]>;
110
- type: z.ZodLiteral<"condition">;
111
- value: z.ZodEffects<z.ZodString, string, string>;
112
- }, "strip", z.ZodTypeAny, {
113
- value: string;
114
- type: "condition";
115
- field: string;
116
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
117
- }, {
118
- value: string;
119
- type: "condition";
120
- field: string;
121
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
122
- }>, z.ZodObject<{
123
- literal: z.ZodString;
124
- params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
125
- type: z.ZodLiteral<"literal">;
126
- }, "strip", z.ZodTypeAny, {
127
- type: "literal";
128
- literal: string;
129
- params?: any[] | undefined;
130
- }, {
131
- type: "literal";
132
- literal: string;
133
- params?: any[] | undefined;
134
- }>]>;
135
- static readonly CONDITION_ONLY_WHERE_CLAUSE: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
136
- field: z.ZodString;
137
- op: z.ZodEnum<["values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring", ...("values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring")[]]>;
138
- type: z.ZodLiteral<"condition">;
139
- value: z.ZodEffects<z.ZodString, string, string>;
140
- }, "strip", z.ZodTypeAny, {
141
- value: string;
142
- type: "condition";
143
- field: string;
144
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
145
- }, {
146
- value: string;
147
- type: "condition";
148
- field: string;
149
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
150
- }>, z.ZodObject<{
151
- literal: z.ZodString;
152
- params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
153
- type: z.ZodLiteral<"literal">;
154
- }, "strip", z.ZodTypeAny, {
155
- type: "literal";
156
- literal: string;
157
- params?: any[] | undefined;
158
- }, {
159
- type: "literal";
160
- literal: string;
161
- params?: any[] | undefined;
162
- }>]>, {
163
- value: string;
164
- type: "condition";
165
- field: string;
166
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
167
- } | {
168
- type: "literal";
169
- literal: string;
170
- params?: any[] | undefined;
171
- }, {
172
- value: string;
173
- type: "condition";
174
- field: string;
175
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
176
- } | {
177
- type: "literal";
178
- literal: string;
179
- params?: any[] | undefined;
180
- }>;
181
- static readonly ORDER_ITEM: z.ZodObject<{
182
- field: z.ZodString;
183
- orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
184
- }, "strip", z.ZodTypeAny, {
185
- field: string;
186
- orientation: "ASC" | "DESC";
187
- }, {
188
- field: string;
189
- orientation: "ASC" | "DESC";
190
- }>;
191
- static readonly PAGINATION_OPTIONS: z.ZodObject<{
192
- cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
193
- cursorFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
194
- lastCursor: z.ZodOptional<z.ZodString>;
195
- limit: z.ZodOptional<z.ZodNumber>;
196
- search: z.ZodOptional<z.ZodObject<{
197
- fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
198
- field: z.ZodString;
199
- ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
200
- }, "strip", z.ZodTypeAny, {
201
- field: string;
202
- ratio: number;
203
- }, {
204
- field: string;
205
- ratio?: number | undefined;
206
- }>]>, "many">;
207
- value: z.ZodString;
208
- }, "strip", z.ZodTypeAny, {
209
- value: string;
210
- fields: (string | {
211
- field: string;
212
- ratio: number;
213
- })[];
214
- }, {
215
- value: string;
216
- fields: (string | {
217
- field: string;
218
- ratio?: number | undefined;
219
- })[];
220
- }>>;
221
- order: z.ZodOptional<z.ZodArray<z.ZodObject<{
222
- field: z.ZodString;
223
- orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
224
- }, "strip", z.ZodTypeAny, {
225
- field: string;
226
- orientation: "ASC" | "DESC";
227
- }, {
228
- field: string;
229
- orientation: "ASC" | "DESC";
230
- }>, "many">>;
231
- orderField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
232
- orderFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
233
- where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
234
- field: z.ZodString;
235
- op: z.ZodEnum<["values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring", ...("values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring")[]]>;
236
- type: z.ZodLiteral<"condition">;
237
- value: z.ZodEffects<z.ZodString, string, string>;
238
- }, "strip", z.ZodTypeAny, {
239
- value: string;
240
- type: "condition";
241
- field: string;
242
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
243
- }, {
244
- value: string;
245
- type: "condition";
246
- field: string;
247
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
248
- }>, z.ZodObject<{
249
- literal: z.ZodString;
250
- params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
251
- type: z.ZodLiteral<"literal">;
252
- }, "strip", z.ZodTypeAny, {
253
- type: "literal";
254
- literal: string;
255
- params?: any[] | undefined;
256
- }, {
257
- type: "literal";
258
- literal: string;
259
- params?: any[] | undefined;
260
- }>]>, "many">, "many">>;
261
- }, "strip", z.ZodTypeAny, {
262
- search?: {
263
- value: string;
264
- fields: (string | {
265
- field: string;
266
- ratio: number;
267
- })[];
268
- } | undefined;
269
- cursorField?: string | undefined;
270
- cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
271
- lastCursor?: string | undefined;
272
- limit?: number | undefined;
273
- order?: {
274
- field: string;
275
- orientation: "ASC" | "DESC";
276
- }[] | undefined;
277
- orderField?: string | undefined;
278
- orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
279
- where?: ({
280
- value: string;
281
- type: "condition";
282
- field: string;
283
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
284
- } | {
285
- type: "literal";
286
- literal: string;
287
- params?: any[] | undefined;
288
- })[][] | undefined;
289
- }, {
290
- search?: {
291
- value: string;
292
- fields: (string | {
293
- field: string;
294
- ratio?: number | undefined;
295
- })[];
296
- } | undefined;
297
- cursorField?: string | undefined;
298
- cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
299
- lastCursor?: string | undefined;
300
- limit?: number | undefined;
301
- order?: {
302
- field: string;
303
- orientation: "ASC" | "DESC";
304
- }[] | undefined;
305
- orderField?: string | undefined;
306
- orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
307
- where?: ({
308
- value: string;
309
- type: "condition";
310
- field: string;
311
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
312
- } | {
313
- type: "literal";
314
- literal: string;
315
- params?: any[] | undefined;
316
- })[][] | undefined;
317
- }>;
318
- static readonly FIND_ONE_OPTIONS: z.ZodObject<Omit<{
319
- cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
320
- cursorFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
321
- lastCursor: z.ZodOptional<z.ZodString>;
322
- limit: z.ZodOptional<z.ZodNumber>;
323
- search: z.ZodOptional<z.ZodObject<{
324
- fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
325
- field: z.ZodString;
326
- ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
327
- }, "strip", z.ZodTypeAny, {
328
- field: string;
329
- ratio: number;
330
- }, {
331
- field: string;
332
- ratio?: number | undefined;
333
- }>]>, "many">;
334
- value: z.ZodString;
335
- }, "strip", z.ZodTypeAny, {
336
- value: string;
337
- fields: (string | {
338
- field: string;
339
- ratio: number;
340
- })[];
341
- }, {
342
- value: string;
343
- fields: (string | {
344
- field: string;
345
- ratio?: number | undefined;
346
- })[];
347
- }>>;
348
- order: z.ZodOptional<z.ZodArray<z.ZodObject<{
349
- field: z.ZodString;
350
- orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
351
- }, "strip", z.ZodTypeAny, {
352
- field: string;
353
- orientation: "ASC" | "DESC";
354
- }, {
355
- field: string;
356
- orientation: "ASC" | "DESC";
357
- }>, "many">>;
358
- orderField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
359
- orderFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
360
- where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
361
- field: z.ZodString;
362
- op: z.ZodEnum<["values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring", ...("values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring")[]]>;
363
- type: z.ZodLiteral<"condition">;
364
- value: z.ZodEffects<z.ZodString, string, string>;
365
- }, "strip", z.ZodTypeAny, {
366
- value: string;
367
- type: "condition";
368
- field: string;
369
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
370
- }, {
371
- value: string;
372
- type: "condition";
373
- field: string;
374
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
375
- }>, z.ZodObject<{
376
- literal: z.ZodString;
377
- params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
378
- type: z.ZodLiteral<"literal">;
379
- }, "strip", z.ZodTypeAny, {
380
- type: "literal";
381
- literal: string;
382
- params?: any[] | undefined;
383
- }, {
384
- type: "literal";
385
- literal: string;
386
- params?: any[] | undefined;
387
- }>]>, "many">, "many">>;
388
- }, "lastCursor" | "limit">, "strip", z.ZodTypeAny, {
389
- search?: {
390
- value: string;
391
- fields: (string | {
392
- field: string;
393
- ratio: number;
394
- })[];
395
- } | undefined;
396
- cursorField?: string | undefined;
397
- cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
398
- order?: {
399
- field: string;
400
- orientation: "ASC" | "DESC";
401
- }[] | undefined;
402
- orderField?: string | undefined;
403
- orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
404
- where?: ({
405
- value: string;
406
- type: "condition";
407
- field: string;
408
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
409
- } | {
410
- type: "literal";
411
- literal: string;
412
- params?: any[] | undefined;
413
- })[][] | undefined;
414
- }, {
415
- search?: {
416
- value: string;
417
- fields: (string | {
418
- field: string;
419
- ratio?: number | undefined;
420
- })[];
421
- } | undefined;
422
- cursorField?: string | undefined;
423
- cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
424
- order?: {
425
- field: string;
426
- orientation: "ASC" | "DESC";
427
- }[] | undefined;
428
- orderField?: string | undefined;
429
- orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
430
- where?: ({
431
- value: string;
432
- type: "condition";
433
- field: string;
434
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
435
- } | {
436
- type: "literal";
437
- literal: string;
438
- params?: any[] | undefined;
439
- })[][] | undefined;
440
- }>;
441
- static readonly PAGINATION_RESULT: z.ZodObject<{
442
- hasNext: z.ZodBoolean;
443
- nextCursor: z.ZodUnion<[z.ZodString, z.ZodNull]>;
444
- previousCursor: z.ZodUnion<[z.ZodString, z.ZodNull]>;
445
- }, "strip", z.ZodTypeAny, {
446
- hasNext: boolean;
447
- nextCursor: string | null;
448
- previousCursor: string | null;
449
- }, {
450
- hasNext: boolean;
451
- nextCursor: string | null;
452
- previousCursor: string | null;
453
- }>;
454
- static readonly FILE: z.ZodObject<{
455
- mimeType: z.ZodString;
456
- name: z.ZodString;
457
- progres: z.ZodNumber;
458
- size: z.ZodNumber;
459
- url: z.ZodString;
460
- } & {
461
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
462
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
463
- }, "strip", z.ZodTypeAny, {
464
- mimeType: string;
465
- name: string;
466
- progres: number;
467
- size: number;
468
- url: string;
469
- createdAt?: string | null | undefined;
470
- updatedAt?: string | null | undefined;
471
- }, {
472
- mimeType: string;
473
- name: string;
474
- progres: number;
475
- size: number;
476
- url: string;
477
- createdAt?: string | null | undefined;
478
- updatedAt?: string | null | undefined;
479
- }>;
480
- static readonly CONDITION_ONLY_PAGINATION_OPTIONS: z.ZodObject<Omit<{
481
- cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
482
- cursorFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
483
- lastCursor: z.ZodOptional<z.ZodString>;
484
- limit: z.ZodOptional<z.ZodNumber>;
485
- search: z.ZodOptional<z.ZodObject<{
486
- fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
487
- field: z.ZodString;
488
- ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
489
- }, "strip", z.ZodTypeAny, {
490
- field: string;
491
- ratio: number;
492
- }, {
493
- field: string;
494
- ratio?: number | undefined;
495
- }>]>, "many">;
496
- value: z.ZodString;
497
- }, "strip", z.ZodTypeAny, {
498
- value: string;
499
- fields: (string | {
500
- field: string;
501
- ratio: number;
502
- })[];
503
- }, {
504
- value: string;
505
- fields: (string | {
506
- field: string;
507
- ratio?: number | undefined;
508
- })[];
509
- }>>;
510
- order: z.ZodOptional<z.ZodArray<z.ZodObject<{
511
- field: z.ZodString;
512
- orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
513
- }, "strip", z.ZodTypeAny, {
514
- field: string;
515
- orientation: "ASC" | "DESC";
516
- }, {
517
- field: string;
518
- orientation: "ASC" | "DESC";
519
- }>, "many">>;
520
- orderField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
521
- orderFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
522
- where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
523
- field: z.ZodString;
524
- op: z.ZodEnum<["values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring", ...("values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring")[]]>;
525
- type: z.ZodLiteral<"condition">;
526
- value: z.ZodEffects<z.ZodString, string, string>;
527
- }, "strip", z.ZodTypeAny, {
528
- value: string;
529
- type: "condition";
530
- field: string;
531
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
532
- }, {
533
- value: string;
534
- type: "condition";
535
- field: string;
536
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
537
- }>, z.ZodObject<{
538
- literal: z.ZodString;
539
- params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
540
- type: z.ZodLiteral<"literal">;
541
- }, "strip", z.ZodTypeAny, {
542
- type: "literal";
543
- literal: string;
544
- params?: any[] | undefined;
545
- }, {
546
- type: "literal";
547
- literal: string;
548
- params?: any[] | undefined;
549
- }>]>, "many">, "many">>;
550
- }, "where"> & {
551
- where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
552
- field: z.ZodString;
553
- op: z.ZodEnum<["values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring", ...("values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring")[]]>;
554
- type: z.ZodLiteral<"condition">;
555
- value: z.ZodEffects<z.ZodString, string, string>;
556
- }, "strip", z.ZodTypeAny, {
557
- value: string;
558
- type: "condition";
559
- field: string;
560
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
561
- }, {
562
- value: string;
563
- type: "condition";
564
- field: string;
565
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
566
- }>, z.ZodObject<{
567
- literal: z.ZodString;
568
- params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
569
- type: z.ZodLiteral<"literal">;
570
- }, "strip", z.ZodTypeAny, {
571
- type: "literal";
572
- literal: string;
573
- params?: any[] | undefined;
574
- }, {
575
- type: "literal";
576
- literal: string;
577
- params?: any[] | undefined;
578
- }>]>, {
579
- value: string;
580
- type: "condition";
581
- field: string;
582
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
583
- } | {
584
- type: "literal";
585
- literal: string;
586
- params?: any[] | undefined;
587
- }, {
588
- value: string;
589
- type: "condition";
590
- field: string;
591
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
592
- } | {
593
- type: "literal";
594
- literal: string;
595
- params?: any[] | undefined;
596
- }>, "many">, "many">>;
597
- }, "strip", z.ZodTypeAny, {
598
- search?: {
599
- value: string;
600
- fields: (string | {
601
- field: string;
602
- ratio: number;
603
- })[];
604
- } | undefined;
605
- cursorField?: string | undefined;
606
- cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
607
- lastCursor?: string | undefined;
608
- limit?: number | undefined;
609
- order?: {
610
- field: string;
611
- orientation: "ASC" | "DESC";
612
- }[] | undefined;
613
- orderField?: string | undefined;
614
- orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
615
- where?: ({
616
- value: string;
617
- type: "condition";
618
- field: string;
619
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
620
- } | {
621
- type: "literal";
622
- literal: string;
623
- params?: any[] | undefined;
624
- })[][] | undefined;
625
- }, {
626
- search?: {
627
- value: string;
628
- fields: (string | {
629
- field: string;
630
- ratio?: number | undefined;
631
- })[];
632
- } | undefined;
633
- cursorField?: string | undefined;
634
- cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
635
- lastCursor?: string | undefined;
636
- limit?: number | undefined;
637
- order?: {
638
- field: string;
639
- orientation: "ASC" | "DESC";
640
- }[] | undefined;
641
- orderField?: string | undefined;
642
- orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
643
- where?: ({
644
- value: string;
645
- type: "condition";
646
- field: string;
647
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
648
- } | {
649
- type: "literal";
650
- literal: string;
651
- params?: any[] | undefined;
652
- })[][] | undefined;
653
- }>;
654
- static readonly CONDITION_ONLY_FIND_ONE_OPTIONS: z.ZodObject<Omit<Omit<{
655
- cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
656
- cursorFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
657
- lastCursor: z.ZodOptional<z.ZodString>;
658
- limit: z.ZodOptional<z.ZodNumber>;
659
- search: z.ZodOptional<z.ZodObject<{
660
- fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
661
- field: z.ZodString;
662
- ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
663
- }, "strip", z.ZodTypeAny, {
664
- field: string;
665
- ratio: number;
666
- }, {
667
- field: string;
668
- ratio?: number | undefined;
669
- }>]>, "many">;
670
- value: z.ZodString;
671
- }, "strip", z.ZodTypeAny, {
672
- value: string;
673
- fields: (string | {
674
- field: string;
675
- ratio: number;
676
- })[];
677
- }, {
678
- value: string;
679
- fields: (string | {
680
- field: string;
681
- ratio?: number | undefined;
682
- })[];
683
- }>>;
684
- order: z.ZodOptional<z.ZodArray<z.ZodObject<{
685
- field: z.ZodString;
686
- orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
687
- }, "strip", z.ZodTypeAny, {
688
- field: string;
689
- orientation: "ASC" | "DESC";
690
- }, {
691
- field: string;
692
- orientation: "ASC" | "DESC";
693
- }>, "many">>;
694
- orderField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
695
- orderFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
696
- where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
697
- field: z.ZodString;
698
- op: z.ZodEnum<["values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring", ...("values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring")[]]>;
699
- type: z.ZodLiteral<"condition">;
700
- value: z.ZodEffects<z.ZodString, string, string>;
701
- }, "strip", z.ZodTypeAny, {
702
- value: string;
703
- type: "condition";
704
- field: string;
705
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
706
- }, {
707
- value: string;
708
- type: "condition";
709
- field: string;
710
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
711
- }>, z.ZodObject<{
712
- literal: z.ZodString;
713
- params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
714
- type: z.ZodLiteral<"literal">;
715
- }, "strip", z.ZodTypeAny, {
716
- type: "literal";
717
- literal: string;
718
- params?: any[] | undefined;
719
- }, {
720
- type: "literal";
721
- literal: string;
722
- params?: any[] | undefined;
723
- }>]>, "many">, "many">>;
724
- }, "where"> & {
725
- where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
726
- field: z.ZodString;
727
- op: z.ZodEnum<["values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring", ...("values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring")[]]>;
728
- type: z.ZodLiteral<"condition">;
729
- value: z.ZodEffects<z.ZodString, string, string>;
730
- }, "strip", z.ZodTypeAny, {
731
- value: string;
732
- type: "condition";
733
- field: string;
734
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
735
- }, {
736
- value: string;
737
- type: "condition";
738
- field: string;
739
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
740
- }>, z.ZodObject<{
741
- literal: z.ZodString;
742
- params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
743
- type: z.ZodLiteral<"literal">;
744
- }, "strip", z.ZodTypeAny, {
745
- type: "literal";
746
- literal: string;
747
- params?: any[] | undefined;
748
- }, {
749
- type: "literal";
750
- literal: string;
751
- params?: any[] | undefined;
752
- }>]>, {
753
- value: string;
754
- type: "condition";
755
- field: string;
756
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
757
- } | {
758
- type: "literal";
759
- literal: string;
760
- params?: any[] | undefined;
761
- }, {
762
- value: string;
763
- type: "condition";
764
- field: string;
765
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
766
- } | {
767
- type: "literal";
768
- literal: string;
769
- params?: any[] | undefined;
770
- }>, "many">, "many">>;
771
- }, "lastCursor" | "limit">, "strip", z.ZodTypeAny, {
772
- search?: {
773
- value: string;
774
- fields: (string | {
775
- field: string;
776
- ratio: number;
777
- })[];
778
- } | undefined;
779
- cursorField?: string | undefined;
780
- cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
781
- order?: {
782
- field: string;
783
- orientation: "ASC" | "DESC";
784
- }[] | undefined;
785
- orderField?: string | undefined;
786
- orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
787
- where?: ({
788
- value: string;
789
- type: "condition";
790
- field: string;
791
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
792
- } | {
793
- type: "literal";
794
- literal: string;
795
- params?: any[] | undefined;
796
- })[][] | undefined;
797
- }, {
798
- search?: {
799
- value: string;
800
- fields: (string | {
801
- field: string;
802
- ratio?: number | undefined;
803
- })[];
804
- } | undefined;
805
- cursorField?: string | undefined;
806
- cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
807
- order?: {
808
- field: string;
809
- orientation: "ASC" | "DESC";
810
- }[] | undefined;
811
- orderField?: string | undefined;
812
- orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
813
- where?: ({
814
- value: string;
815
- type: "condition";
816
- field: string;
817
- op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
818
- } | {
819
- type: "literal";
820
- literal: string;
821
- params?: any[] | undefined;
822
- })[][] | undefined;
823
- }>;
824
- }
825
- export declare namespace Schema {
826
- type CommonResult = z.infer<typeof SchemaUtil.COMMON_RESULT>;
827
- type File = z.infer<typeof SchemaUtil.FILE>;
828
- type FindOneOptions = z.infer<typeof SchemaUtil.FIND_ONE_OPTIONS>;
829
- type IDObject = z.infer<typeof SchemaUtil.ID_OBJECT>;
830
- type LogLevel = z.infer<typeof SchemaUtil.LOG_LEVEL>;
831
- type OrderItem = z.infer<typeof SchemaUtil.ORDER_ITEM>;
832
- type OrderOrientation = z.infer<typeof SchemaUtil.ORDER_ORIENTATION>;
833
- type PaginationOptions = z.infer<typeof SchemaUtil.PAGINATION_OPTIONS>;
834
- type PaginationResult = z.infer<typeof SchemaUtil.PAGINATION_RESULT>;
835
- type TimeRecord = z.infer<typeof SchemaUtil.TIME_RECORD>;
836
- type WhereClause = z.infer<typeof SchemaUtil.WHERE_CLAUSE>;
837
- type WhereClauseOp = z.infer<typeof SchemaUtil.WHERE_CLAUSE_OP>;
838
- }