@opencrvs/toolkit 1.8.0-rc.feef45c → 1.8.0-rc.ff0a1b5
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.
- package/dist/commons/api/router.d.ts +679 -332
- package/dist/commons/events/ActionConfig.d.ts +4879 -1232
- package/dist/commons/events/ActionDocument.d.ts +433 -413
- package/dist/commons/events/ActionInput.d.ts +180 -180
- package/dist/commons/events/AdvancedSearchConfig.d.ts +34 -36
- package/dist/commons/events/Draft.d.ts +24 -26
- package/dist/commons/events/EventConfig.d.ts +2711 -967
- package/dist/commons/events/EventDocument.d.ts +241 -312
- package/dist/commons/events/EventIndex.d.ts +817 -279
- package/dist/commons/events/EventMetadata.d.ts +263 -11
- package/dist/commons/events/FieldConfig.d.ts +267 -3
- package/dist/commons/events/FieldType.d.ts +3 -2
- package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
- package/dist/commons/events/FieldValue.d.ts +6 -3
- package/dist/commons/events/FormConfig.d.ts +2279 -629
- package/dist/commons/events/PageConfig.d.ts +406 -0
- package/dist/commons/events/SummaryConfig.d.ts +17 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +1222 -8
- package/dist/commons/events/defineConfig.d.ts +283 -2
- package/dist/commons/events/event.d.ts +3 -1
- package/dist/commons/events/field.d.ts +3 -3
- package/dist/commons/events/test.utils.d.ts +7 -7
- package/dist/commons/events/utils.d.ts +193 -21
- package/dist/events/index.js +1141 -774
- package/dist/scopes/index.d.ts +70 -1
- package/dist/scopes/index.js +130 -0
- package/package.json +1 -1
@@ -12,51 +12,350 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
12
12
|
readonly REJECTED: "REJECTED";
|
13
13
|
readonly ARCHIVED: "ARCHIVED";
|
14
14
|
}>;
|
15
|
+
legalStatuses: z.ZodObject<{
|
16
|
+
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
17
|
+
createdAt: z.ZodString;
|
18
|
+
createdBy: z.ZodString;
|
19
|
+
createdAtLocation: z.ZodString;
|
20
|
+
acceptedAt: z.ZodString;
|
21
|
+
createdByRole: z.ZodString;
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
23
|
+
createdAt: string;
|
24
|
+
createdBy: string;
|
25
|
+
createdByRole: string;
|
26
|
+
createdAtLocation: string;
|
27
|
+
acceptedAt: string;
|
28
|
+
}, {
|
29
|
+
createdAt: string;
|
30
|
+
createdBy: string;
|
31
|
+
createdByRole: string;
|
32
|
+
createdAtLocation: string;
|
33
|
+
acceptedAt: string;
|
34
|
+
}>>>;
|
35
|
+
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
36
|
+
createdAt: z.ZodString;
|
37
|
+
createdBy: z.ZodString;
|
38
|
+
createdAtLocation: z.ZodString;
|
39
|
+
acceptedAt: z.ZodString;
|
40
|
+
createdByRole: z.ZodString;
|
41
|
+
}, {
|
42
|
+
registrationNumber: z.ZodString;
|
43
|
+
}>, "strip", z.ZodTypeAny, {
|
44
|
+
createdAt: string;
|
45
|
+
createdBy: string;
|
46
|
+
createdByRole: string;
|
47
|
+
createdAtLocation: string;
|
48
|
+
registrationNumber: string;
|
49
|
+
acceptedAt: string;
|
50
|
+
}, {
|
51
|
+
createdAt: string;
|
52
|
+
createdBy: string;
|
53
|
+
createdByRole: string;
|
54
|
+
createdAtLocation: string;
|
55
|
+
registrationNumber: string;
|
56
|
+
acceptedAt: string;
|
57
|
+
}>>>;
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
59
|
+
DECLARED?: {
|
60
|
+
createdAt: string;
|
61
|
+
createdBy: string;
|
62
|
+
createdByRole: string;
|
63
|
+
createdAtLocation: string;
|
64
|
+
acceptedAt: string;
|
65
|
+
} | null | undefined;
|
66
|
+
REGISTERED?: {
|
67
|
+
createdAt: string;
|
68
|
+
createdBy: string;
|
69
|
+
createdByRole: string;
|
70
|
+
createdAtLocation: string;
|
71
|
+
registrationNumber: string;
|
72
|
+
acceptedAt: string;
|
73
|
+
} | null | undefined;
|
74
|
+
}, {
|
75
|
+
DECLARED?: {
|
76
|
+
createdAt: string;
|
77
|
+
createdBy: string;
|
78
|
+
createdByRole: string;
|
79
|
+
createdAtLocation: string;
|
80
|
+
acceptedAt: string;
|
81
|
+
} | null | undefined;
|
82
|
+
REGISTERED?: {
|
83
|
+
createdAt: string;
|
84
|
+
createdBy: string;
|
85
|
+
createdByRole: string;
|
86
|
+
createdAtLocation: string;
|
87
|
+
registrationNumber: string;
|
88
|
+
acceptedAt: string;
|
89
|
+
} | null | undefined;
|
90
|
+
}>;
|
15
91
|
createdAt: z.ZodString;
|
16
92
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
17
93
|
createdBy: z.ZodString;
|
18
94
|
updatedByUserRole: z.ZodString;
|
19
95
|
createdAtLocation: z.ZodString;
|
20
|
-
updatedAtLocation: z.ZodString
|
96
|
+
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
21
97
|
updatedAt: z.ZodString;
|
22
98
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
23
|
-
updatedBy: z.ZodString
|
99
|
+
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
24
100
|
trackingId: z.ZodString;
|
25
|
-
|
101
|
+
flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
102
|
+
readonly CERTIFICATE_PRINTED: "certificate-printed";
|
103
|
+
}>]>, "many">;
|
26
104
|
}, {
|
27
|
-
declaration: z.ZodRecord<z.ZodString, z.
|
105
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
106
|
+
filename: z.ZodString;
|
107
|
+
originalFilename: z.ZodString;
|
108
|
+
type: z.ZodString;
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
110
|
+
type: string;
|
111
|
+
filename: string;
|
112
|
+
originalFilename: string;
|
113
|
+
}, {
|
114
|
+
type: string;
|
115
|
+
filename: string;
|
116
|
+
originalFilename: string;
|
117
|
+
}>, z.ZodArray<z.ZodObject<{
|
118
|
+
filename: z.ZodString;
|
119
|
+
originalFilename: z.ZodString;
|
120
|
+
type: z.ZodString;
|
121
|
+
option: z.ZodString;
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
123
|
+
type: string;
|
124
|
+
option: string;
|
125
|
+
filename: string;
|
126
|
+
originalFilename: string;
|
127
|
+
}, {
|
128
|
+
type: string;
|
129
|
+
option: string;
|
130
|
+
filename: string;
|
131
|
+
originalFilename: string;
|
132
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
133
|
+
country: z.ZodString;
|
134
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
135
|
+
province: z.ZodString;
|
136
|
+
district: z.ZodString;
|
137
|
+
}, {
|
138
|
+
urbanOrRural: z.ZodLiteral<"URBAN">;
|
139
|
+
town: z.ZodOptional<z.ZodString>;
|
140
|
+
residentialArea: z.ZodOptional<z.ZodString>;
|
141
|
+
street: z.ZodOptional<z.ZodString>;
|
142
|
+
number: z.ZodOptional<z.ZodString>;
|
143
|
+
zipCode: z.ZodOptional<z.ZodString>;
|
144
|
+
}>, "strip", z.ZodTypeAny, {
|
145
|
+
country: string;
|
146
|
+
district: string;
|
147
|
+
addressType: "DOMESTIC";
|
148
|
+
province: string;
|
149
|
+
urbanOrRural: "URBAN";
|
150
|
+
number?: string | undefined;
|
151
|
+
town?: string | undefined;
|
152
|
+
residentialArea?: string | undefined;
|
153
|
+
street?: string | undefined;
|
154
|
+
zipCode?: string | undefined;
|
155
|
+
}, {
|
156
|
+
country: string;
|
157
|
+
district: string;
|
158
|
+
addressType: "DOMESTIC";
|
159
|
+
province: string;
|
160
|
+
urbanOrRural: "URBAN";
|
161
|
+
number?: string | undefined;
|
162
|
+
town?: string | undefined;
|
163
|
+
residentialArea?: string | undefined;
|
164
|
+
street?: string | undefined;
|
165
|
+
zipCode?: string | undefined;
|
166
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
167
|
+
country: z.ZodString;
|
168
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
169
|
+
province: z.ZodString;
|
170
|
+
district: z.ZodString;
|
171
|
+
}, {
|
172
|
+
urbanOrRural: z.ZodLiteral<"RURAL">;
|
173
|
+
village: z.ZodOptional<z.ZodString>;
|
174
|
+
}>, "strip", z.ZodTypeAny, {
|
175
|
+
country: string;
|
176
|
+
district: string;
|
177
|
+
addressType: "DOMESTIC";
|
178
|
+
province: string;
|
179
|
+
urbanOrRural: "RURAL";
|
180
|
+
village?: string | undefined;
|
181
|
+
}, {
|
182
|
+
country: string;
|
183
|
+
district: string;
|
184
|
+
addressType: "DOMESTIC";
|
185
|
+
province: string;
|
186
|
+
urbanOrRural: "RURAL";
|
187
|
+
village?: string | undefined;
|
188
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
189
|
+
country: z.ZodString;
|
190
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
191
|
+
state: z.ZodString;
|
192
|
+
district2: z.ZodString;
|
193
|
+
cityOrTown: z.ZodOptional<z.ZodString>;
|
194
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
195
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
196
|
+
addressLine3: z.ZodOptional<z.ZodString>;
|
197
|
+
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
199
|
+
country: string;
|
200
|
+
state: string;
|
201
|
+
addressType: "INTERNATIONAL";
|
202
|
+
district2: string;
|
203
|
+
cityOrTown?: string | undefined;
|
204
|
+
addressLine1?: string | undefined;
|
205
|
+
addressLine2?: string | undefined;
|
206
|
+
addressLine3?: string | undefined;
|
207
|
+
postcodeOrZip?: string | undefined;
|
208
|
+
}, {
|
209
|
+
country: string;
|
210
|
+
state: string;
|
211
|
+
addressType: "INTERNATIONAL";
|
212
|
+
district2: string;
|
213
|
+
cityOrTown?: string | undefined;
|
214
|
+
addressLine1?: string | undefined;
|
215
|
+
addressLine2?: string | undefined;
|
216
|
+
addressLine3?: string | undefined;
|
217
|
+
postcodeOrZip?: string | undefined;
|
218
|
+
}>]>>;
|
28
219
|
}>, "strip", z.ZodTypeAny, {
|
29
220
|
type: string;
|
30
221
|
id: string;
|
31
222
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
32
223
|
createdAt: string;
|
33
224
|
createdBy: string;
|
34
|
-
declaration: Record<string,
|
225
|
+
declaration: Record<string, string | number | boolean | {
|
226
|
+
type: string;
|
227
|
+
filename: string;
|
228
|
+
originalFilename: string;
|
229
|
+
} | {
|
230
|
+
country: string;
|
231
|
+
district: string;
|
232
|
+
addressType: "DOMESTIC";
|
233
|
+
province: string;
|
234
|
+
urbanOrRural: "URBAN";
|
235
|
+
number?: string | undefined;
|
236
|
+
town?: string | undefined;
|
237
|
+
residentialArea?: string | undefined;
|
238
|
+
street?: string | undefined;
|
239
|
+
zipCode?: string | undefined;
|
240
|
+
} | {
|
241
|
+
country: string;
|
242
|
+
district: string;
|
243
|
+
addressType: "DOMESTIC";
|
244
|
+
province: string;
|
245
|
+
urbanOrRural: "RURAL";
|
246
|
+
village?: string | undefined;
|
247
|
+
} | {
|
248
|
+
country: string;
|
249
|
+
state: string;
|
250
|
+
addressType: "INTERNATIONAL";
|
251
|
+
district2: string;
|
252
|
+
cityOrTown?: string | undefined;
|
253
|
+
addressLine1?: string | undefined;
|
254
|
+
addressLine2?: string | undefined;
|
255
|
+
addressLine3?: string | undefined;
|
256
|
+
postcodeOrZip?: string | undefined;
|
257
|
+
} | {
|
258
|
+
type: string;
|
259
|
+
option: string;
|
260
|
+
filename: string;
|
261
|
+
originalFilename: string;
|
262
|
+
}[] | [string, string] | undefined>;
|
35
263
|
createdAtLocation: string;
|
36
|
-
updatedAtLocation: string;
|
37
264
|
updatedAt: string;
|
38
265
|
trackingId: string;
|
266
|
+
legalStatuses: {
|
267
|
+
DECLARED?: {
|
268
|
+
createdAt: string;
|
269
|
+
createdBy: string;
|
270
|
+
createdByRole: string;
|
271
|
+
createdAtLocation: string;
|
272
|
+
acceptedAt: string;
|
273
|
+
} | null | undefined;
|
274
|
+
REGISTERED?: {
|
275
|
+
createdAt: string;
|
276
|
+
createdBy: string;
|
277
|
+
createdByRole: string;
|
278
|
+
createdAtLocation: string;
|
279
|
+
registrationNumber: string;
|
280
|
+
acceptedAt: string;
|
281
|
+
} | null | undefined;
|
282
|
+
};
|
39
283
|
updatedByUserRole: string;
|
40
|
-
|
284
|
+
flags: string[];
|
41
285
|
assignedTo?: string | null | undefined;
|
42
|
-
registrationNumber?: string | null | undefined;
|
43
286
|
dateOfEvent?: string | null | undefined;
|
287
|
+
updatedAtLocation?: string | null | undefined;
|
288
|
+
updatedBy?: string | null | undefined;
|
44
289
|
}, {
|
45
290
|
type: string;
|
46
291
|
id: string;
|
47
292
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
48
293
|
createdAt: string;
|
49
294
|
createdBy: string;
|
50
|
-
declaration: Record<string,
|
295
|
+
declaration: Record<string, string | number | boolean | {
|
296
|
+
type: string;
|
297
|
+
filename: string;
|
298
|
+
originalFilename: string;
|
299
|
+
} | {
|
300
|
+
country: string;
|
301
|
+
district: string;
|
302
|
+
addressType: "DOMESTIC";
|
303
|
+
province: string;
|
304
|
+
urbanOrRural: "URBAN";
|
305
|
+
number?: string | undefined;
|
306
|
+
town?: string | undefined;
|
307
|
+
residentialArea?: string | undefined;
|
308
|
+
street?: string | undefined;
|
309
|
+
zipCode?: string | undefined;
|
310
|
+
} | {
|
311
|
+
country: string;
|
312
|
+
district: string;
|
313
|
+
addressType: "DOMESTIC";
|
314
|
+
province: string;
|
315
|
+
urbanOrRural: "RURAL";
|
316
|
+
village?: string | undefined;
|
317
|
+
} | {
|
318
|
+
country: string;
|
319
|
+
state: string;
|
320
|
+
addressType: "INTERNATIONAL";
|
321
|
+
district2: string;
|
322
|
+
cityOrTown?: string | undefined;
|
323
|
+
addressLine1?: string | undefined;
|
324
|
+
addressLine2?: string | undefined;
|
325
|
+
addressLine3?: string | undefined;
|
326
|
+
postcodeOrZip?: string | undefined;
|
327
|
+
} | {
|
328
|
+
type: string;
|
329
|
+
option: string;
|
330
|
+
filename: string;
|
331
|
+
originalFilename: string;
|
332
|
+
}[] | [string, string] | undefined>;
|
51
333
|
createdAtLocation: string;
|
52
|
-
updatedAtLocation: string;
|
53
334
|
updatedAt: string;
|
54
335
|
trackingId: string;
|
336
|
+
legalStatuses: {
|
337
|
+
DECLARED?: {
|
338
|
+
createdAt: string;
|
339
|
+
createdBy: string;
|
340
|
+
createdByRole: string;
|
341
|
+
createdAtLocation: string;
|
342
|
+
acceptedAt: string;
|
343
|
+
} | null | undefined;
|
344
|
+
REGISTERED?: {
|
345
|
+
createdAt: string;
|
346
|
+
createdBy: string;
|
347
|
+
createdByRole: string;
|
348
|
+
createdAtLocation: string;
|
349
|
+
registrationNumber: string;
|
350
|
+
acceptedAt: string;
|
351
|
+
} | null | undefined;
|
352
|
+
};
|
55
353
|
updatedByUserRole: string;
|
56
|
-
|
354
|
+
flags: string[];
|
57
355
|
assignedTo?: string | null | undefined;
|
58
|
-
registrationNumber?: string | null | undefined;
|
59
356
|
dateOfEvent?: string | null | undefined;
|
357
|
+
updatedAtLocation?: string | null | undefined;
|
358
|
+
updatedBy?: string | null | undefined;
|
60
359
|
}>;
|
61
360
|
export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
62
361
|
type: z.ZodString;
|
@@ -110,6 +409,16 @@ declare const Range: z.ZodObject<{
|
|
110
409
|
gte: string;
|
111
410
|
lte: string;
|
112
411
|
}>;
|
412
|
+
declare const Not: z.ZodObject<{
|
413
|
+
type: z.ZodLiteral<"not">;
|
414
|
+
term: z.ZodString;
|
415
|
+
}, "strip", z.ZodTypeAny, {
|
416
|
+
type: "not";
|
417
|
+
term: string;
|
418
|
+
}, {
|
419
|
+
type: "not";
|
420
|
+
term: string;
|
421
|
+
}>;
|
113
422
|
declare const Within: z.ZodObject<{
|
114
423
|
type: z.ZodLiteral<"within">;
|
115
424
|
location: z.ZodString;
|
@@ -121,13 +430,12 @@ declare const Within: z.ZodObject<{
|
|
121
430
|
location: string;
|
122
431
|
}>;
|
123
432
|
export declare const QueryInput: ZodType;
|
124
|
-
export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
|
433
|
+
export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf> | z.infer<typeof Not>;
|
125
434
|
type QueryMap = {
|
126
435
|
[key: string]: BaseInput | QueryMap;
|
127
436
|
};
|
128
437
|
export type QueryInputType = BaseInput | QueryMap;
|
129
438
|
declare const QueryExpression: z.ZodObject<{
|
130
|
-
type: z.ZodOptional<z.ZodLiteral<"and">>;
|
131
439
|
eventType: z.ZodOptional<z.ZodString>;
|
132
440
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
133
441
|
type: z.ZodLiteral<"anyOf">;
|
@@ -260,9 +568,27 @@ declare const QueryExpression: z.ZodObject<{
|
|
260
568
|
type: "exact";
|
261
569
|
term: string;
|
262
570
|
}>>>;
|
571
|
+
flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
572
|
+
type: z.ZodLiteral<"anyOf">;
|
573
|
+
terms: z.ZodArray<z.ZodString, "many">;
|
574
|
+
}, "strip", z.ZodTypeAny, {
|
575
|
+
type: "anyOf";
|
576
|
+
terms: string[];
|
577
|
+
}, {
|
578
|
+
type: "anyOf";
|
579
|
+
terms: string[];
|
580
|
+
}>, z.ZodObject<{
|
581
|
+
type: z.ZodLiteral<"not">;
|
582
|
+
term: z.ZodString;
|
583
|
+
}, "strip", z.ZodTypeAny, {
|
584
|
+
type: "not";
|
585
|
+
term: string;
|
586
|
+
}, {
|
587
|
+
type: "not";
|
588
|
+
term: string;
|
589
|
+
}>]>, "many">>>;
|
263
590
|
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
264
591
|
}, "strip", z.ZodTypeAny, {
|
265
|
-
type?: "and" | undefined;
|
266
592
|
status?: {
|
267
593
|
type: "exact";
|
268
594
|
term: string;
|
@@ -283,13 +609,6 @@ declare const QueryExpression: z.ZodObject<{
|
|
283
609
|
type: "exact";
|
284
610
|
term: string;
|
285
611
|
} | undefined;
|
286
|
-
updatedAtLocation?: {
|
287
|
-
type: "exact";
|
288
|
-
term: string;
|
289
|
-
} | {
|
290
|
-
type: "within";
|
291
|
-
location: string;
|
292
|
-
} | undefined;
|
293
612
|
updatedAt?: {
|
294
613
|
type: "exact";
|
295
614
|
term: string;
|
@@ -302,10 +621,24 @@ declare const QueryExpression: z.ZodObject<{
|
|
302
621
|
type: "exact";
|
303
622
|
term: string;
|
304
623
|
} | undefined;
|
624
|
+
updatedAtLocation?: {
|
625
|
+
type: "exact";
|
626
|
+
term: string;
|
627
|
+
} | {
|
628
|
+
type: "within";
|
629
|
+
location: string;
|
630
|
+
} | undefined;
|
305
631
|
updatedBy?: {
|
306
632
|
type: "exact";
|
307
633
|
term: string;
|
308
634
|
} | undefined;
|
635
|
+
flags?: ({
|
636
|
+
type: "anyOf";
|
637
|
+
terms: string[];
|
638
|
+
} | {
|
639
|
+
type: "not";
|
640
|
+
term: string;
|
641
|
+
})[] | undefined;
|
309
642
|
eventType?: string | undefined;
|
310
643
|
createAtLocation?: {
|
311
644
|
type: "exact";
|
@@ -315,7 +648,6 @@ declare const QueryExpression: z.ZodObject<{
|
|
315
648
|
location: string;
|
316
649
|
} | undefined;
|
317
650
|
}, {
|
318
|
-
type?: "and" | undefined;
|
319
651
|
status?: {
|
320
652
|
type: "exact";
|
321
653
|
term: string;
|
@@ -336,13 +668,6 @@ declare const QueryExpression: z.ZodObject<{
|
|
336
668
|
type: "exact";
|
337
669
|
term: string;
|
338
670
|
} | undefined;
|
339
|
-
updatedAtLocation?: {
|
340
|
-
type: "exact";
|
341
|
-
term: string;
|
342
|
-
} | {
|
343
|
-
type: "within";
|
344
|
-
location: string;
|
345
|
-
} | undefined;
|
346
671
|
updatedAt?: {
|
347
672
|
type: "exact";
|
348
673
|
term: string;
|
@@ -355,200 +680,24 @@ declare const QueryExpression: z.ZodObject<{
|
|
355
680
|
type: "exact";
|
356
681
|
term: string;
|
357
682
|
} | undefined;
|
358
|
-
|
359
|
-
type: "exact";
|
360
|
-
term: string;
|
361
|
-
} | undefined;
|
362
|
-
eventType?: string | undefined;
|
363
|
-
createAtLocation?: {
|
683
|
+
updatedAtLocation?: {
|
364
684
|
type: "exact";
|
365
685
|
term: string;
|
366
686
|
} | {
|
367
687
|
type: "within";
|
368
688
|
location: string;
|
369
689
|
} | undefined;
|
370
|
-
|
371
|
-
export type QueryExpression = z.infer<typeof QueryExpression>;
|
372
|
-
export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
373
|
-
type: z.ZodOptional<z.ZodLiteral<"and">>;
|
374
|
-
eventType: z.ZodOptional<z.ZodString>;
|
375
|
-
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
376
|
-
type: z.ZodLiteral<"anyOf">;
|
377
|
-
terms: z.ZodArray<z.ZodString, "many">;
|
378
|
-
}, "strip", z.ZodTypeAny, {
|
379
|
-
type: "anyOf";
|
380
|
-
terms: string[];
|
381
|
-
}, {
|
382
|
-
type: "anyOf";
|
383
|
-
terms: string[];
|
384
|
-
}>, z.ZodObject<{
|
385
|
-
type: z.ZodLiteral<"exact">;
|
386
|
-
term: z.ZodString;
|
387
|
-
}, "strip", z.ZodTypeAny, {
|
388
|
-
type: "exact";
|
389
|
-
term: string;
|
390
|
-
}, {
|
391
|
-
type: "exact";
|
392
|
-
term: string;
|
393
|
-
}>]>>>;
|
394
|
-
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
395
|
-
type: z.ZodLiteral<"exact">;
|
396
|
-
term: z.ZodString;
|
397
|
-
}, "strip", z.ZodTypeAny, {
|
398
|
-
type: "exact";
|
399
|
-
term: string;
|
400
|
-
}, {
|
401
|
-
type: "exact";
|
402
|
-
term: string;
|
403
|
-
}>, z.ZodObject<{
|
404
|
-
type: z.ZodLiteral<"range">;
|
405
|
-
gte: z.ZodString;
|
406
|
-
lte: z.ZodString;
|
407
|
-
}, "strip", z.ZodTypeAny, {
|
408
|
-
type: "range";
|
409
|
-
gte: string;
|
410
|
-
lte: string;
|
411
|
-
}, {
|
412
|
-
type: "range";
|
413
|
-
gte: string;
|
414
|
-
lte: string;
|
415
|
-
}>]>>>;
|
416
|
-
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
417
|
-
type: z.ZodLiteral<"exact">;
|
418
|
-
term: z.ZodString;
|
419
|
-
}, "strip", z.ZodTypeAny, {
|
420
|
-
type: "exact";
|
421
|
-
term: string;
|
422
|
-
}, {
|
423
|
-
type: "exact";
|
424
|
-
term: string;
|
425
|
-
}>, z.ZodObject<{
|
426
|
-
type: z.ZodLiteral<"range">;
|
427
|
-
gte: z.ZodString;
|
428
|
-
lte: z.ZodString;
|
429
|
-
}, "strip", z.ZodTypeAny, {
|
430
|
-
type: "range";
|
431
|
-
gte: string;
|
432
|
-
lte: string;
|
433
|
-
}, {
|
434
|
-
type: "range";
|
435
|
-
gte: string;
|
436
|
-
lte: string;
|
437
|
-
}>]>>>;
|
438
|
-
createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
439
|
-
type: z.ZodLiteral<"within">;
|
440
|
-
location: z.ZodString;
|
441
|
-
}, "strip", z.ZodTypeAny, {
|
442
|
-
type: "within";
|
443
|
-
location: string;
|
444
|
-
}, {
|
445
|
-
type: "within";
|
446
|
-
location: string;
|
447
|
-
}>, z.ZodObject<{
|
448
|
-
type: z.ZodLiteral<"exact">;
|
449
|
-
term: z.ZodString;
|
450
|
-
}, "strip", z.ZodTypeAny, {
|
451
|
-
type: "exact";
|
452
|
-
term: string;
|
453
|
-
}, {
|
454
|
-
type: "exact";
|
455
|
-
term: string;
|
456
|
-
}>]>>>;
|
457
|
-
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
458
|
-
type: z.ZodLiteral<"within">;
|
459
|
-
location: z.ZodString;
|
460
|
-
}, "strip", z.ZodTypeAny, {
|
461
|
-
type: "within";
|
462
|
-
location: string;
|
463
|
-
}, {
|
464
|
-
type: "within";
|
465
|
-
location: string;
|
466
|
-
}>, z.ZodObject<{
|
467
|
-
type: z.ZodLiteral<"exact">;
|
468
|
-
term: z.ZodString;
|
469
|
-
}, "strip", z.ZodTypeAny, {
|
470
|
-
type: "exact";
|
471
|
-
term: string;
|
472
|
-
}, {
|
473
|
-
type: "exact";
|
474
|
-
term: string;
|
475
|
-
}>]>>>;
|
476
|
-
createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
477
|
-
type: z.ZodLiteral<"exact">;
|
478
|
-
term: z.ZodString;
|
479
|
-
}, "strip", z.ZodTypeAny, {
|
480
|
-
type: "exact";
|
481
|
-
term: string;
|
482
|
-
}, {
|
483
|
-
type: "exact";
|
484
|
-
term: string;
|
485
|
-
}>>>;
|
486
|
-
updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
487
|
-
type: z.ZodLiteral<"exact">;
|
488
|
-
term: z.ZodString;
|
489
|
-
}, "strip", z.ZodTypeAny, {
|
490
|
-
type: "exact";
|
491
|
-
term: string;
|
492
|
-
}, {
|
493
|
-
type: "exact";
|
494
|
-
term: string;
|
495
|
-
}>>>;
|
496
|
-
trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
497
|
-
type: z.ZodLiteral<"exact">;
|
498
|
-
term: z.ZodString;
|
499
|
-
}, "strip", z.ZodTypeAny, {
|
500
|
-
type: "exact";
|
501
|
-
term: string;
|
502
|
-
}, {
|
503
|
-
type: "exact";
|
504
|
-
term: string;
|
505
|
-
}>>>;
|
506
|
-
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
507
|
-
}, "strip", z.ZodTypeAny, {
|
508
|
-
type?: "and" | undefined;
|
509
|
-
status?: {
|
690
|
+
updatedBy?: {
|
510
691
|
type: "exact";
|
511
692
|
term: string;
|
512
|
-
} |
|
693
|
+
} | undefined;
|
694
|
+
flags?: ({
|
513
695
|
type: "anyOf";
|
514
696
|
terms: string[];
|
515
|
-
} | undefined;
|
516
|
-
data?: any;
|
517
|
-
createdAt?: {
|
518
|
-
type: "exact";
|
519
|
-
term: string;
|
520
|
-
} | {
|
521
|
-
type: "range";
|
522
|
-
gte: string;
|
523
|
-
lte: string;
|
524
|
-
} | undefined;
|
525
|
-
createdBy?: {
|
526
|
-
type: "exact";
|
527
|
-
term: string;
|
528
|
-
} | undefined;
|
529
|
-
updatedAtLocation?: {
|
530
|
-
type: "exact";
|
531
|
-
term: string;
|
532
|
-
} | {
|
533
|
-
type: "within";
|
534
|
-
location: string;
|
535
|
-
} | undefined;
|
536
|
-
updatedAt?: {
|
537
|
-
type: "exact";
|
538
|
-
term: string;
|
539
697
|
} | {
|
540
|
-
type: "
|
541
|
-
gte: string;
|
542
|
-
lte: string;
|
543
|
-
} | undefined;
|
544
|
-
trackingId?: {
|
545
|
-
type: "exact";
|
546
|
-
term: string;
|
547
|
-
} | undefined;
|
548
|
-
updatedBy?: {
|
549
|
-
type: "exact";
|
698
|
+
type: "not";
|
550
699
|
term: string;
|
551
|
-
} | undefined;
|
700
|
+
})[] | undefined;
|
552
701
|
eventType?: string | undefined;
|
553
702
|
createAtLocation?: {
|
554
703
|
type: "exact";
|
@@ -557,63 +706,10 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
557
706
|
type: "within";
|
558
707
|
location: string;
|
559
708
|
} | undefined;
|
560
|
-
}
|
561
|
-
|
562
|
-
status?: {
|
563
|
-
type: "exact";
|
564
|
-
term: string;
|
565
|
-
} | {
|
566
|
-
type: "anyOf";
|
567
|
-
terms: string[];
|
568
|
-
} | undefined;
|
569
|
-
data?: any;
|
570
|
-
createdAt?: {
|
571
|
-
type: "exact";
|
572
|
-
term: string;
|
573
|
-
} | {
|
574
|
-
type: "range";
|
575
|
-
gte: string;
|
576
|
-
lte: string;
|
577
|
-
} | undefined;
|
578
|
-
createdBy?: {
|
579
|
-
type: "exact";
|
580
|
-
term: string;
|
581
|
-
} | undefined;
|
582
|
-
updatedAtLocation?: {
|
583
|
-
type: "exact";
|
584
|
-
term: string;
|
585
|
-
} | {
|
586
|
-
type: "within";
|
587
|
-
location: string;
|
588
|
-
} | undefined;
|
589
|
-
updatedAt?: {
|
590
|
-
type: "exact";
|
591
|
-
term: string;
|
592
|
-
} | {
|
593
|
-
type: "range";
|
594
|
-
gte: string;
|
595
|
-
lte: string;
|
596
|
-
} | undefined;
|
597
|
-
trackingId?: {
|
598
|
-
type: "exact";
|
599
|
-
term: string;
|
600
|
-
} | undefined;
|
601
|
-
updatedBy?: {
|
602
|
-
type: "exact";
|
603
|
-
term: string;
|
604
|
-
} | undefined;
|
605
|
-
eventType?: string | undefined;
|
606
|
-
createAtLocation?: {
|
607
|
-
type: "exact";
|
608
|
-
term: string;
|
609
|
-
} | {
|
610
|
-
type: "within";
|
611
|
-
location: string;
|
612
|
-
} | undefined;
|
613
|
-
}>, z.ZodObject<{
|
709
|
+
}>;
|
710
|
+
export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
614
711
|
type: z.ZodLiteral<"or">;
|
615
712
|
clauses: z.ZodArray<z.ZodObject<{
|
616
|
-
type: z.ZodOptional<z.ZodLiteral<"and">>;
|
617
713
|
eventType: z.ZodOptional<z.ZodString>;
|
618
714
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
619
715
|
type: z.ZodLiteral<"anyOf">;
|
@@ -746,9 +842,27 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
746
842
|
type: "exact";
|
747
843
|
term: string;
|
748
844
|
}>>>;
|
845
|
+
flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
846
|
+
type: z.ZodLiteral<"anyOf">;
|
847
|
+
terms: z.ZodArray<z.ZodString, "many">;
|
848
|
+
}, "strip", z.ZodTypeAny, {
|
849
|
+
type: "anyOf";
|
850
|
+
terms: string[];
|
851
|
+
}, {
|
852
|
+
type: "anyOf";
|
853
|
+
terms: string[];
|
854
|
+
}>, z.ZodObject<{
|
855
|
+
type: z.ZodLiteral<"not">;
|
856
|
+
term: z.ZodString;
|
857
|
+
}, "strip", z.ZodTypeAny, {
|
858
|
+
type: "not";
|
859
|
+
term: string;
|
860
|
+
}, {
|
861
|
+
type: "not";
|
862
|
+
term: string;
|
863
|
+
}>]>, "many">>>;
|
749
864
|
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
750
865
|
}, "strip", z.ZodTypeAny, {
|
751
|
-
type?: "and" | undefined;
|
752
866
|
status?: {
|
753
867
|
type: "exact";
|
754
868
|
term: string;
|
@@ -769,6 +883,18 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
769
883
|
type: "exact";
|
770
884
|
term: string;
|
771
885
|
} | undefined;
|
886
|
+
updatedAt?: {
|
887
|
+
type: "exact";
|
888
|
+
term: string;
|
889
|
+
} | {
|
890
|
+
type: "range";
|
891
|
+
gte: string;
|
892
|
+
lte: string;
|
893
|
+
} | undefined;
|
894
|
+
trackingId?: {
|
895
|
+
type: "exact";
|
896
|
+
term: string;
|
897
|
+
} | undefined;
|
772
898
|
updatedAtLocation?: {
|
773
899
|
type: "exact";
|
774
900
|
term: string;
|
@@ -776,6 +902,46 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
776
902
|
type: "within";
|
777
903
|
location: string;
|
778
904
|
} | undefined;
|
905
|
+
updatedBy?: {
|
906
|
+
type: "exact";
|
907
|
+
term: string;
|
908
|
+
} | undefined;
|
909
|
+
flags?: ({
|
910
|
+
type: "anyOf";
|
911
|
+
terms: string[];
|
912
|
+
} | {
|
913
|
+
type: "not";
|
914
|
+
term: string;
|
915
|
+
})[] | undefined;
|
916
|
+
eventType?: string | undefined;
|
917
|
+
createAtLocation?: {
|
918
|
+
type: "exact";
|
919
|
+
term: string;
|
920
|
+
} | {
|
921
|
+
type: "within";
|
922
|
+
location: string;
|
923
|
+
} | undefined;
|
924
|
+
}, {
|
925
|
+
status?: {
|
926
|
+
type: "exact";
|
927
|
+
term: string;
|
928
|
+
} | {
|
929
|
+
type: "anyOf";
|
930
|
+
terms: string[];
|
931
|
+
} | undefined;
|
932
|
+
data?: any;
|
933
|
+
createdAt?: {
|
934
|
+
type: "exact";
|
935
|
+
term: string;
|
936
|
+
} | {
|
937
|
+
type: "range";
|
938
|
+
gte: string;
|
939
|
+
lte: string;
|
940
|
+
} | undefined;
|
941
|
+
createdBy?: {
|
942
|
+
type: "exact";
|
943
|
+
term: string;
|
944
|
+
} | undefined;
|
779
945
|
updatedAt?: {
|
780
946
|
type: "exact";
|
781
947
|
term: string;
|
@@ -788,10 +954,24 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
788
954
|
type: "exact";
|
789
955
|
term: string;
|
790
956
|
} | undefined;
|
957
|
+
updatedAtLocation?: {
|
958
|
+
type: "exact";
|
959
|
+
term: string;
|
960
|
+
} | {
|
961
|
+
type: "within";
|
962
|
+
location: string;
|
963
|
+
} | undefined;
|
791
964
|
updatedBy?: {
|
792
965
|
type: "exact";
|
793
966
|
term: string;
|
794
967
|
} | undefined;
|
968
|
+
flags?: ({
|
969
|
+
type: "anyOf";
|
970
|
+
terms: string[];
|
971
|
+
} | {
|
972
|
+
type: "not";
|
973
|
+
term: string;
|
974
|
+
})[] | undefined;
|
795
975
|
eventType?: string | undefined;
|
796
976
|
createAtLocation?: {
|
797
977
|
type: "exact";
|
@@ -800,8 +980,10 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
800
980
|
type: "within";
|
801
981
|
location: string;
|
802
982
|
} | undefined;
|
803
|
-
}
|
804
|
-
|
983
|
+
}>, "many">;
|
984
|
+
}, "strip", z.ZodTypeAny, {
|
985
|
+
type: "or";
|
986
|
+
clauses: {
|
805
987
|
status?: {
|
806
988
|
type: "exact";
|
807
989
|
term: string;
|
@@ -822,6 +1004,18 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
822
1004
|
type: "exact";
|
823
1005
|
term: string;
|
824
1006
|
} | undefined;
|
1007
|
+
updatedAt?: {
|
1008
|
+
type: "exact";
|
1009
|
+
term: string;
|
1010
|
+
} | {
|
1011
|
+
type: "range";
|
1012
|
+
gte: string;
|
1013
|
+
lte: string;
|
1014
|
+
} | undefined;
|
1015
|
+
trackingId?: {
|
1016
|
+
type: "exact";
|
1017
|
+
term: string;
|
1018
|
+
} | undefined;
|
825
1019
|
updatedAtLocation?: {
|
826
1020
|
type: "exact";
|
827
1021
|
term: string;
|
@@ -829,6 +1023,49 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
829
1023
|
type: "within";
|
830
1024
|
location: string;
|
831
1025
|
} | undefined;
|
1026
|
+
updatedBy?: {
|
1027
|
+
type: "exact";
|
1028
|
+
term: string;
|
1029
|
+
} | undefined;
|
1030
|
+
flags?: ({
|
1031
|
+
type: "anyOf";
|
1032
|
+
terms: string[];
|
1033
|
+
} | {
|
1034
|
+
type: "not";
|
1035
|
+
term: string;
|
1036
|
+
})[] | undefined;
|
1037
|
+
eventType?: string | undefined;
|
1038
|
+
createAtLocation?: {
|
1039
|
+
type: "exact";
|
1040
|
+
term: string;
|
1041
|
+
} | {
|
1042
|
+
type: "within";
|
1043
|
+
location: string;
|
1044
|
+
} | undefined;
|
1045
|
+
}[];
|
1046
|
+
}, {
|
1047
|
+
type: "or";
|
1048
|
+
clauses: {
|
1049
|
+
status?: {
|
1050
|
+
type: "exact";
|
1051
|
+
term: string;
|
1052
|
+
} | {
|
1053
|
+
type: "anyOf";
|
1054
|
+
terms: string[];
|
1055
|
+
} | undefined;
|
1056
|
+
data?: any;
|
1057
|
+
createdAt?: {
|
1058
|
+
type: "exact";
|
1059
|
+
term: string;
|
1060
|
+
} | {
|
1061
|
+
type: "range";
|
1062
|
+
gte: string;
|
1063
|
+
lte: string;
|
1064
|
+
} | undefined;
|
1065
|
+
createdBy?: {
|
1066
|
+
type: "exact";
|
1067
|
+
term: string;
|
1068
|
+
} | undefined;
|
832
1069
|
updatedAt?: {
|
833
1070
|
type: "exact";
|
834
1071
|
term: string;
|
@@ -841,10 +1078,24 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
841
1078
|
type: "exact";
|
842
1079
|
term: string;
|
843
1080
|
} | undefined;
|
1081
|
+
updatedAtLocation?: {
|
1082
|
+
type: "exact";
|
1083
|
+
term: string;
|
1084
|
+
} | {
|
1085
|
+
type: "within";
|
1086
|
+
location: string;
|
1087
|
+
} | undefined;
|
844
1088
|
updatedBy?: {
|
845
1089
|
type: "exact";
|
846
1090
|
term: string;
|
847
1091
|
} | undefined;
|
1092
|
+
flags?: ({
|
1093
|
+
type: "anyOf";
|
1094
|
+
terms: string[];
|
1095
|
+
} | {
|
1096
|
+
type: "not";
|
1097
|
+
term: string;
|
1098
|
+
})[] | undefined;
|
848
1099
|
eventType?: string | undefined;
|
849
1100
|
createAtLocation?: {
|
850
1101
|
type: "exact";
|
@@ -853,11 +1104,163 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
853
1104
|
type: "within";
|
854
1105
|
location: string;
|
855
1106
|
} | undefined;
|
856
|
-
}
|
857
|
-
}
|
858
|
-
type: "
|
859
|
-
clauses: {
|
860
|
-
|
1107
|
+
}[];
|
1108
|
+
}>, z.ZodObject<{
|
1109
|
+
type: z.ZodLiteral<"and">;
|
1110
|
+
clauses: z.ZodArray<z.ZodObject<{
|
1111
|
+
eventType: z.ZodOptional<z.ZodString>;
|
1112
|
+
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1113
|
+
type: z.ZodLiteral<"anyOf">;
|
1114
|
+
terms: z.ZodArray<z.ZodString, "many">;
|
1115
|
+
}, "strip", z.ZodTypeAny, {
|
1116
|
+
type: "anyOf";
|
1117
|
+
terms: string[];
|
1118
|
+
}, {
|
1119
|
+
type: "anyOf";
|
1120
|
+
terms: string[];
|
1121
|
+
}>, z.ZodObject<{
|
1122
|
+
type: z.ZodLiteral<"exact">;
|
1123
|
+
term: z.ZodString;
|
1124
|
+
}, "strip", z.ZodTypeAny, {
|
1125
|
+
type: "exact";
|
1126
|
+
term: string;
|
1127
|
+
}, {
|
1128
|
+
type: "exact";
|
1129
|
+
term: string;
|
1130
|
+
}>]>>>;
|
1131
|
+
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1132
|
+
type: z.ZodLiteral<"exact">;
|
1133
|
+
term: z.ZodString;
|
1134
|
+
}, "strip", z.ZodTypeAny, {
|
1135
|
+
type: "exact";
|
1136
|
+
term: string;
|
1137
|
+
}, {
|
1138
|
+
type: "exact";
|
1139
|
+
term: string;
|
1140
|
+
}>, z.ZodObject<{
|
1141
|
+
type: z.ZodLiteral<"range">;
|
1142
|
+
gte: z.ZodString;
|
1143
|
+
lte: z.ZodString;
|
1144
|
+
}, "strip", z.ZodTypeAny, {
|
1145
|
+
type: "range";
|
1146
|
+
gte: string;
|
1147
|
+
lte: string;
|
1148
|
+
}, {
|
1149
|
+
type: "range";
|
1150
|
+
gte: string;
|
1151
|
+
lte: string;
|
1152
|
+
}>]>>>;
|
1153
|
+
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1154
|
+
type: z.ZodLiteral<"exact">;
|
1155
|
+
term: z.ZodString;
|
1156
|
+
}, "strip", z.ZodTypeAny, {
|
1157
|
+
type: "exact";
|
1158
|
+
term: string;
|
1159
|
+
}, {
|
1160
|
+
type: "exact";
|
1161
|
+
term: string;
|
1162
|
+
}>, z.ZodObject<{
|
1163
|
+
type: z.ZodLiteral<"range">;
|
1164
|
+
gte: z.ZodString;
|
1165
|
+
lte: z.ZodString;
|
1166
|
+
}, "strip", z.ZodTypeAny, {
|
1167
|
+
type: "range";
|
1168
|
+
gte: string;
|
1169
|
+
lte: string;
|
1170
|
+
}, {
|
1171
|
+
type: "range";
|
1172
|
+
gte: string;
|
1173
|
+
lte: string;
|
1174
|
+
}>]>>>;
|
1175
|
+
createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1176
|
+
type: z.ZodLiteral<"within">;
|
1177
|
+
location: z.ZodString;
|
1178
|
+
}, "strip", z.ZodTypeAny, {
|
1179
|
+
type: "within";
|
1180
|
+
location: string;
|
1181
|
+
}, {
|
1182
|
+
type: "within";
|
1183
|
+
location: string;
|
1184
|
+
}>, z.ZodObject<{
|
1185
|
+
type: z.ZodLiteral<"exact">;
|
1186
|
+
term: z.ZodString;
|
1187
|
+
}, "strip", z.ZodTypeAny, {
|
1188
|
+
type: "exact";
|
1189
|
+
term: string;
|
1190
|
+
}, {
|
1191
|
+
type: "exact";
|
1192
|
+
term: string;
|
1193
|
+
}>]>>>;
|
1194
|
+
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1195
|
+
type: z.ZodLiteral<"within">;
|
1196
|
+
location: z.ZodString;
|
1197
|
+
}, "strip", z.ZodTypeAny, {
|
1198
|
+
type: "within";
|
1199
|
+
location: string;
|
1200
|
+
}, {
|
1201
|
+
type: "within";
|
1202
|
+
location: string;
|
1203
|
+
}>, z.ZodObject<{
|
1204
|
+
type: z.ZodLiteral<"exact">;
|
1205
|
+
term: z.ZodString;
|
1206
|
+
}, "strip", z.ZodTypeAny, {
|
1207
|
+
type: "exact";
|
1208
|
+
term: string;
|
1209
|
+
}, {
|
1210
|
+
type: "exact";
|
1211
|
+
term: string;
|
1212
|
+
}>]>>>;
|
1213
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
1214
|
+
type: z.ZodLiteral<"exact">;
|
1215
|
+
term: z.ZodString;
|
1216
|
+
}, "strip", z.ZodTypeAny, {
|
1217
|
+
type: "exact";
|
1218
|
+
term: string;
|
1219
|
+
}, {
|
1220
|
+
type: "exact";
|
1221
|
+
term: string;
|
1222
|
+
}>>>;
|
1223
|
+
updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
1224
|
+
type: z.ZodLiteral<"exact">;
|
1225
|
+
term: z.ZodString;
|
1226
|
+
}, "strip", z.ZodTypeAny, {
|
1227
|
+
type: "exact";
|
1228
|
+
term: string;
|
1229
|
+
}, {
|
1230
|
+
type: "exact";
|
1231
|
+
term: string;
|
1232
|
+
}>>>;
|
1233
|
+
trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
1234
|
+
type: z.ZodLiteral<"exact">;
|
1235
|
+
term: z.ZodString;
|
1236
|
+
}, "strip", z.ZodTypeAny, {
|
1237
|
+
type: "exact";
|
1238
|
+
term: string;
|
1239
|
+
}, {
|
1240
|
+
type: "exact";
|
1241
|
+
term: string;
|
1242
|
+
}>>>;
|
1243
|
+
flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
1244
|
+
type: z.ZodLiteral<"anyOf">;
|
1245
|
+
terms: z.ZodArray<z.ZodString, "many">;
|
1246
|
+
}, "strip", z.ZodTypeAny, {
|
1247
|
+
type: "anyOf";
|
1248
|
+
terms: string[];
|
1249
|
+
}, {
|
1250
|
+
type: "anyOf";
|
1251
|
+
terms: string[];
|
1252
|
+
}>, z.ZodObject<{
|
1253
|
+
type: z.ZodLiteral<"not">;
|
1254
|
+
term: z.ZodString;
|
1255
|
+
}, "strip", z.ZodTypeAny, {
|
1256
|
+
type: "not";
|
1257
|
+
term: string;
|
1258
|
+
}, {
|
1259
|
+
type: "not";
|
1260
|
+
term: string;
|
1261
|
+
}>]>, "many">>>;
|
1262
|
+
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
1263
|
+
}, "strip", z.ZodTypeAny, {
|
861
1264
|
status?: {
|
862
1265
|
type: "exact";
|
863
1266
|
term: string;
|
@@ -878,6 +1281,18 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
878
1281
|
type: "exact";
|
879
1282
|
term: string;
|
880
1283
|
} | undefined;
|
1284
|
+
updatedAt?: {
|
1285
|
+
type: "exact";
|
1286
|
+
term: string;
|
1287
|
+
} | {
|
1288
|
+
type: "range";
|
1289
|
+
gte: string;
|
1290
|
+
lte: string;
|
1291
|
+
} | undefined;
|
1292
|
+
trackingId?: {
|
1293
|
+
type: "exact";
|
1294
|
+
term: string;
|
1295
|
+
} | undefined;
|
881
1296
|
updatedAtLocation?: {
|
882
1297
|
type: "exact";
|
883
1298
|
term: string;
|
@@ -885,6 +1300,46 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
885
1300
|
type: "within";
|
886
1301
|
location: string;
|
887
1302
|
} | undefined;
|
1303
|
+
updatedBy?: {
|
1304
|
+
type: "exact";
|
1305
|
+
term: string;
|
1306
|
+
} | undefined;
|
1307
|
+
flags?: ({
|
1308
|
+
type: "anyOf";
|
1309
|
+
terms: string[];
|
1310
|
+
} | {
|
1311
|
+
type: "not";
|
1312
|
+
term: string;
|
1313
|
+
})[] | undefined;
|
1314
|
+
eventType?: string | undefined;
|
1315
|
+
createAtLocation?: {
|
1316
|
+
type: "exact";
|
1317
|
+
term: string;
|
1318
|
+
} | {
|
1319
|
+
type: "within";
|
1320
|
+
location: string;
|
1321
|
+
} | undefined;
|
1322
|
+
}, {
|
1323
|
+
status?: {
|
1324
|
+
type: "exact";
|
1325
|
+
term: string;
|
1326
|
+
} | {
|
1327
|
+
type: "anyOf";
|
1328
|
+
terms: string[];
|
1329
|
+
} | undefined;
|
1330
|
+
data?: any;
|
1331
|
+
createdAt?: {
|
1332
|
+
type: "exact";
|
1333
|
+
term: string;
|
1334
|
+
} | {
|
1335
|
+
type: "range";
|
1336
|
+
gte: string;
|
1337
|
+
lte: string;
|
1338
|
+
} | undefined;
|
1339
|
+
createdBy?: {
|
1340
|
+
type: "exact";
|
1341
|
+
term: string;
|
1342
|
+
} | undefined;
|
888
1343
|
updatedAt?: {
|
889
1344
|
type: "exact";
|
890
1345
|
term: string;
|
@@ -897,10 +1352,24 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
897
1352
|
type: "exact";
|
898
1353
|
term: string;
|
899
1354
|
} | undefined;
|
1355
|
+
updatedAtLocation?: {
|
1356
|
+
type: "exact";
|
1357
|
+
term: string;
|
1358
|
+
} | {
|
1359
|
+
type: "within";
|
1360
|
+
location: string;
|
1361
|
+
} | undefined;
|
900
1362
|
updatedBy?: {
|
901
1363
|
type: "exact";
|
902
1364
|
term: string;
|
903
1365
|
} | undefined;
|
1366
|
+
flags?: ({
|
1367
|
+
type: "anyOf";
|
1368
|
+
terms: string[];
|
1369
|
+
} | {
|
1370
|
+
type: "not";
|
1371
|
+
term: string;
|
1372
|
+
})[] | undefined;
|
904
1373
|
eventType?: string | undefined;
|
905
1374
|
createAtLocation?: {
|
906
1375
|
type: "exact";
|
@@ -909,11 +1378,10 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
909
1378
|
type: "within";
|
910
1379
|
location: string;
|
911
1380
|
} | undefined;
|
912
|
-
}
|
913
|
-
}, {
|
914
|
-
type: "
|
1381
|
+
}>, "many">;
|
1382
|
+
}, "strip", z.ZodTypeAny, {
|
1383
|
+
type: "and";
|
915
1384
|
clauses: {
|
916
|
-
type?: "and" | undefined;
|
917
1385
|
status?: {
|
918
1386
|
type: "exact";
|
919
1387
|
term: string;
|
@@ -934,6 +1402,18 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
934
1402
|
type: "exact";
|
935
1403
|
term: string;
|
936
1404
|
} | undefined;
|
1405
|
+
updatedAt?: {
|
1406
|
+
type: "exact";
|
1407
|
+
term: string;
|
1408
|
+
} | {
|
1409
|
+
type: "range";
|
1410
|
+
gte: string;
|
1411
|
+
lte: string;
|
1412
|
+
} | undefined;
|
1413
|
+
trackingId?: {
|
1414
|
+
type: "exact";
|
1415
|
+
term: string;
|
1416
|
+
} | undefined;
|
937
1417
|
updatedAtLocation?: {
|
938
1418
|
type: "exact";
|
939
1419
|
term: string;
|
@@ -941,6 +1421,49 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
941
1421
|
type: "within";
|
942
1422
|
location: string;
|
943
1423
|
} | undefined;
|
1424
|
+
updatedBy?: {
|
1425
|
+
type: "exact";
|
1426
|
+
term: string;
|
1427
|
+
} | undefined;
|
1428
|
+
flags?: ({
|
1429
|
+
type: "anyOf";
|
1430
|
+
terms: string[];
|
1431
|
+
} | {
|
1432
|
+
type: "not";
|
1433
|
+
term: string;
|
1434
|
+
})[] | undefined;
|
1435
|
+
eventType?: string | undefined;
|
1436
|
+
createAtLocation?: {
|
1437
|
+
type: "exact";
|
1438
|
+
term: string;
|
1439
|
+
} | {
|
1440
|
+
type: "within";
|
1441
|
+
location: string;
|
1442
|
+
} | undefined;
|
1443
|
+
}[];
|
1444
|
+
}, {
|
1445
|
+
type: "and";
|
1446
|
+
clauses: {
|
1447
|
+
status?: {
|
1448
|
+
type: "exact";
|
1449
|
+
term: string;
|
1450
|
+
} | {
|
1451
|
+
type: "anyOf";
|
1452
|
+
terms: string[];
|
1453
|
+
} | undefined;
|
1454
|
+
data?: any;
|
1455
|
+
createdAt?: {
|
1456
|
+
type: "exact";
|
1457
|
+
term: string;
|
1458
|
+
} | {
|
1459
|
+
type: "range";
|
1460
|
+
gte: string;
|
1461
|
+
lte: string;
|
1462
|
+
} | undefined;
|
1463
|
+
createdBy?: {
|
1464
|
+
type: "exact";
|
1465
|
+
term: string;
|
1466
|
+
} | undefined;
|
944
1467
|
updatedAt?: {
|
945
1468
|
type: "exact";
|
946
1469
|
term: string;
|
@@ -953,10 +1476,24 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
953
1476
|
type: "exact";
|
954
1477
|
term: string;
|
955
1478
|
} | undefined;
|
1479
|
+
updatedAtLocation?: {
|
1480
|
+
type: "exact";
|
1481
|
+
term: string;
|
1482
|
+
} | {
|
1483
|
+
type: "within";
|
1484
|
+
location: string;
|
1485
|
+
} | undefined;
|
956
1486
|
updatedBy?: {
|
957
1487
|
type: "exact";
|
958
1488
|
term: string;
|
959
1489
|
} | undefined;
|
1490
|
+
flags?: ({
|
1491
|
+
type: "anyOf";
|
1492
|
+
terms: string[];
|
1493
|
+
} | {
|
1494
|
+
type: "not";
|
1495
|
+
term: string;
|
1496
|
+
})[] | undefined;
|
960
1497
|
eventType?: string | undefined;
|
961
1498
|
createAtLocation?: {
|
962
1499
|
type: "exact";
|
@@ -968,5 +1505,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
968
1505
|
}[];
|
969
1506
|
}>]>;
|
970
1507
|
export type QueryType = z.infer<typeof QueryType>;
|
1508
|
+
export type QueryExpression = z.infer<typeof QueryExpression>;
|
971
1509
|
export {};
|
972
1510
|
//# sourceMappingURL=EventIndex.d.ts.map
|