@opencrvs/toolkit 1.8.0-rc.f8e4107 → 1.8.0-rc.f97f8f2

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 (39) hide show
  1. package/dist/commons/api/router.d.ts +8418 -4827
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -70
  3. package/dist/commons/conditionals/validate.d.ts +4 -6
  4. package/dist/commons/events/ActionConfig.d.ts +90025 -1680
  5. package/dist/commons/events/ActionDocument.d.ts +643 -417
  6. package/dist/commons/events/ActionInput.d.ts +248 -240
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +274 -23
  8. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  9. package/dist/commons/events/CountryConfigQueryInput.d.ts +1506 -0
  10. package/dist/commons/events/Draft.d.ts +38 -30
  11. package/dist/commons/events/EventConfig.d.ts +42787 -1385
  12. package/dist/commons/events/EventDocument.d.ts +413 -312
  13. package/dist/commons/events/EventIndex.d.ts +948 -155
  14. package/dist/commons/events/EventInput.d.ts +13 -0
  15. package/dist/commons/events/EventMetadata.d.ts +274 -11
  16. package/dist/commons/events/FieldConfig.d.ts +3778 -769
  17. package/dist/commons/events/FieldType.d.ts +3 -3
  18. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  19. package/dist/commons/events/FieldValue.d.ts +7 -4
  20. package/dist/commons/events/FormConfig.d.ts +40417 -439
  21. package/dist/commons/events/PageConfig.d.ts +10077 -203
  22. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  23. package/dist/commons/events/User.d.ts +31 -2
  24. package/dist/commons/events/WorkqueueColumnConfig.d.ts +42 -0
  25. package/dist/commons/events/WorkqueueConfig.d.ts +2834 -19
  26. package/dist/commons/events/defineConfig.d.ts +7008 -81
  27. package/dist/commons/events/event.d.ts +27 -0
  28. package/dist/commons/events/field.d.ts +68 -0
  29. package/dist/commons/events/index.d.ts +6 -0
  30. package/dist/commons/events/scopes.d.ts +26 -0
  31. package/dist/commons/events/serializer.d.ts +2 -0
  32. package/dist/commons/events/test.utils.d.ts +7 -44
  33. package/dist/commons/events/utils.d.ts +3551 -65
  34. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  35. package/dist/conditionals/index.js +54 -83
  36. package/dist/events/index.js +2044 -1072
  37. package/dist/scopes/index.d.ts +105 -1
  38. package/dist/scopes/index.js +140 -0
  39. package/package.json +3 -2
@@ -1,6 +1,7 @@
1
1
  import { z, ZodType } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
3
  id: z.ZodString;
4
+ title: z.ZodString;
4
5
  type: z.ZodString;
5
6
  status: z.ZodNativeEnum<{
6
7
  readonly CREATED: "CREATED";
@@ -12,45 +13,352 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
12
13
  readonly REJECTED: "REJECTED";
13
14
  readonly ARCHIVED: "ARCHIVED";
14
15
  }>;
16
+ legalStatuses: z.ZodObject<{
17
+ DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
+ createdAt: z.ZodString;
19
+ createdBy: z.ZodString;
20
+ createdAtLocation: z.ZodString;
21
+ acceptedAt: z.ZodString;
22
+ createdByRole: z.ZodString;
23
+ }, "strip", z.ZodTypeAny, {
24
+ createdAt: string;
25
+ createdBy: string;
26
+ createdByRole: string;
27
+ createdAtLocation: string;
28
+ acceptedAt: string;
29
+ }, {
30
+ createdAt: string;
31
+ createdBy: string;
32
+ createdByRole: string;
33
+ createdAtLocation: string;
34
+ acceptedAt: string;
35
+ }>>>;
36
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
37
+ createdAt: z.ZodString;
38
+ createdBy: z.ZodString;
39
+ createdAtLocation: z.ZodString;
40
+ acceptedAt: z.ZodString;
41
+ createdByRole: z.ZodString;
42
+ }, {
43
+ registrationNumber: z.ZodString;
44
+ }>, "strip", z.ZodTypeAny, {
45
+ createdAt: string;
46
+ createdBy: string;
47
+ createdByRole: string;
48
+ createdAtLocation: string;
49
+ registrationNumber: string;
50
+ acceptedAt: string;
51
+ }, {
52
+ createdAt: string;
53
+ createdBy: string;
54
+ createdByRole: string;
55
+ createdAtLocation: string;
56
+ registrationNumber: string;
57
+ acceptedAt: string;
58
+ }>>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ DECLARED?: {
61
+ createdAt: string;
62
+ createdBy: string;
63
+ createdByRole: string;
64
+ createdAtLocation: string;
65
+ acceptedAt: string;
66
+ } | null | undefined;
67
+ REGISTERED?: {
68
+ createdAt: string;
69
+ createdBy: string;
70
+ createdByRole: string;
71
+ createdAtLocation: string;
72
+ registrationNumber: string;
73
+ acceptedAt: string;
74
+ } | null | undefined;
75
+ }, {
76
+ DECLARED?: {
77
+ createdAt: string;
78
+ createdBy: string;
79
+ createdByRole: string;
80
+ createdAtLocation: string;
81
+ acceptedAt: string;
82
+ } | null | undefined;
83
+ REGISTERED?: {
84
+ createdAt: string;
85
+ createdBy: string;
86
+ createdByRole: string;
87
+ createdAtLocation: string;
88
+ registrationNumber: string;
89
+ acceptedAt: string;
90
+ } | null | undefined;
91
+ }>;
15
92
  createdAt: z.ZodString;
93
+ dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
94
  createdBy: z.ZodString;
95
+ updatedByUserRole: z.ZodString;
17
96
  createdAtLocation: z.ZodString;
18
- updatedAtLocation: z.ZodString;
97
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
98
  updatedAt: z.ZodString;
20
99
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- updatedBy: z.ZodString;
100
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
101
  trackingId: z.ZodString;
23
- registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
103
+ readonly CERTIFICATE_PRINTED: "certificate-printed";
104
+ }>]>, "many">;
24
105
  }, {
25
- declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
106
+ 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<{
107
+ filename: z.ZodString;
108
+ originalFilename: z.ZodString;
109
+ type: z.ZodString;
110
+ }, "strip", z.ZodTypeAny, {
111
+ type: string;
112
+ filename: string;
113
+ originalFilename: string;
114
+ }, {
115
+ type: string;
116
+ filename: string;
117
+ originalFilename: string;
118
+ }>, z.ZodArray<z.ZodObject<{
119
+ filename: z.ZodString;
120
+ originalFilename: z.ZodString;
121
+ type: z.ZodString;
122
+ option: z.ZodString;
123
+ }, "strip", z.ZodTypeAny, {
124
+ type: string;
125
+ option: string;
126
+ filename: string;
127
+ originalFilename: string;
128
+ }, {
129
+ type: string;
130
+ option: string;
131
+ filename: string;
132
+ originalFilename: string;
133
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
134
+ country: z.ZodString;
135
+ addressType: z.ZodLiteral<"DOMESTIC">;
136
+ province: z.ZodString;
137
+ district: z.ZodString;
138
+ }, {
139
+ urbanOrRural: z.ZodLiteral<"URBAN">;
140
+ town: z.ZodOptional<z.ZodString>;
141
+ residentialArea: z.ZodOptional<z.ZodString>;
142
+ street: z.ZodOptional<z.ZodString>;
143
+ number: z.ZodOptional<z.ZodString>;
144
+ zipCode: z.ZodOptional<z.ZodString>;
145
+ }>, "strip", z.ZodTypeAny, {
146
+ country: string;
147
+ district: string;
148
+ addressType: "DOMESTIC";
149
+ province: string;
150
+ urbanOrRural: "URBAN";
151
+ number?: string | undefined;
152
+ town?: string | undefined;
153
+ residentialArea?: string | undefined;
154
+ street?: string | undefined;
155
+ zipCode?: string | undefined;
156
+ }, {
157
+ country: string;
158
+ district: string;
159
+ addressType: "DOMESTIC";
160
+ province: string;
161
+ urbanOrRural: "URBAN";
162
+ number?: string | undefined;
163
+ town?: string | undefined;
164
+ residentialArea?: string | undefined;
165
+ street?: string | undefined;
166
+ zipCode?: string | undefined;
167
+ }>, z.ZodObject<z.objectUtil.extendShape<{
168
+ country: z.ZodString;
169
+ addressType: z.ZodLiteral<"DOMESTIC">;
170
+ province: z.ZodString;
171
+ district: z.ZodString;
172
+ }, {
173
+ urbanOrRural: z.ZodLiteral<"RURAL">;
174
+ village: z.ZodOptional<z.ZodString>;
175
+ }>, "strip", z.ZodTypeAny, {
176
+ country: string;
177
+ district: string;
178
+ addressType: "DOMESTIC";
179
+ province: string;
180
+ urbanOrRural: "RURAL";
181
+ village?: string | undefined;
182
+ }, {
183
+ country: string;
184
+ district: string;
185
+ addressType: "DOMESTIC";
186
+ province: string;
187
+ urbanOrRural: "RURAL";
188
+ village?: string | undefined;
189
+ }>, z.ZodUndefined, z.ZodObject<{
190
+ country: z.ZodString;
191
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
192
+ state: z.ZodString;
193
+ district2: z.ZodString;
194
+ cityOrTown: z.ZodOptional<z.ZodString>;
195
+ addressLine1: z.ZodOptional<z.ZodString>;
196
+ addressLine2: z.ZodOptional<z.ZodString>;
197
+ addressLine3: z.ZodOptional<z.ZodString>;
198
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ country: string;
201
+ state: string;
202
+ addressType: "INTERNATIONAL";
203
+ district2: string;
204
+ cityOrTown?: string | undefined;
205
+ addressLine1?: string | undefined;
206
+ addressLine2?: string | undefined;
207
+ addressLine3?: string | undefined;
208
+ postcodeOrZip?: string | undefined;
209
+ }, {
210
+ country: string;
211
+ state: string;
212
+ addressType: "INTERNATIONAL";
213
+ district2: string;
214
+ cityOrTown?: string | undefined;
215
+ addressLine1?: string | undefined;
216
+ addressLine2?: string | undefined;
217
+ addressLine3?: string | undefined;
218
+ postcodeOrZip?: string | undefined;
219
+ }>]>>;
26
220
  }>, "strip", z.ZodTypeAny, {
27
221
  type: string;
28
222
  id: string;
29
223
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
224
+ title: string;
30
225
  createdAt: string;
31
226
  createdBy: string;
32
- declaration: Record<string, any>;
227
+ declaration: Record<string, string | number | boolean | {
228
+ type: string;
229
+ filename: string;
230
+ originalFilename: string;
231
+ } | {
232
+ country: string;
233
+ district: string;
234
+ addressType: "DOMESTIC";
235
+ province: string;
236
+ urbanOrRural: "URBAN";
237
+ number?: string | undefined;
238
+ town?: string | undefined;
239
+ residentialArea?: string | undefined;
240
+ street?: string | undefined;
241
+ zipCode?: string | undefined;
242
+ } | {
243
+ country: string;
244
+ district: string;
245
+ addressType: "DOMESTIC";
246
+ province: string;
247
+ urbanOrRural: "RURAL";
248
+ village?: string | undefined;
249
+ } | {
250
+ country: string;
251
+ state: string;
252
+ addressType: "INTERNATIONAL";
253
+ district2: string;
254
+ cityOrTown?: string | undefined;
255
+ addressLine1?: string | undefined;
256
+ addressLine2?: string | undefined;
257
+ addressLine3?: string | undefined;
258
+ postcodeOrZip?: string | undefined;
259
+ } | {
260
+ type: string;
261
+ option: string;
262
+ filename: string;
263
+ originalFilename: string;
264
+ }[] | [string, string] | undefined>;
33
265
  createdAtLocation: string;
34
- updatedAtLocation: string;
35
266
  updatedAt: string;
36
267
  trackingId: string;
37
- updatedBy: string;
268
+ legalStatuses: {
269
+ DECLARED?: {
270
+ createdAt: string;
271
+ createdBy: string;
272
+ createdByRole: string;
273
+ createdAtLocation: string;
274
+ acceptedAt: string;
275
+ } | null | undefined;
276
+ REGISTERED?: {
277
+ createdAt: string;
278
+ createdBy: string;
279
+ createdByRole: string;
280
+ createdAtLocation: string;
281
+ registrationNumber: string;
282
+ acceptedAt: string;
283
+ } | null | undefined;
284
+ };
285
+ updatedByUserRole: string;
286
+ flags: string[];
38
287
  assignedTo?: string | null | undefined;
39
- registrationNumber?: string | null | undefined;
288
+ dateOfEvent?: string | null | undefined;
289
+ updatedAtLocation?: string | null | undefined;
290
+ updatedBy?: string | null | undefined;
40
291
  }, {
41
292
  type: string;
42
293
  id: string;
43
294
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
295
+ title: string;
44
296
  createdAt: string;
45
297
  createdBy: string;
46
- declaration: Record<string, any>;
298
+ declaration: Record<string, string | number | boolean | {
299
+ type: string;
300
+ filename: string;
301
+ originalFilename: string;
302
+ } | {
303
+ country: string;
304
+ district: string;
305
+ addressType: "DOMESTIC";
306
+ province: string;
307
+ urbanOrRural: "URBAN";
308
+ number?: string | undefined;
309
+ town?: string | undefined;
310
+ residentialArea?: string | undefined;
311
+ street?: string | undefined;
312
+ zipCode?: string | undefined;
313
+ } | {
314
+ country: string;
315
+ district: string;
316
+ addressType: "DOMESTIC";
317
+ province: string;
318
+ urbanOrRural: "RURAL";
319
+ village?: string | undefined;
320
+ } | {
321
+ country: string;
322
+ state: string;
323
+ addressType: "INTERNATIONAL";
324
+ district2: string;
325
+ cityOrTown?: string | undefined;
326
+ addressLine1?: string | undefined;
327
+ addressLine2?: string | undefined;
328
+ addressLine3?: string | undefined;
329
+ postcodeOrZip?: string | undefined;
330
+ } | {
331
+ type: string;
332
+ option: string;
333
+ filename: string;
334
+ originalFilename: string;
335
+ }[] | [string, string] | undefined>;
47
336
  createdAtLocation: string;
48
- updatedAtLocation: string;
49
337
  updatedAt: string;
50
338
  trackingId: string;
51
- updatedBy: string;
339
+ legalStatuses: {
340
+ DECLARED?: {
341
+ createdAt: string;
342
+ createdBy: string;
343
+ createdByRole: string;
344
+ createdAtLocation: string;
345
+ acceptedAt: string;
346
+ } | null | undefined;
347
+ REGISTERED?: {
348
+ createdAt: string;
349
+ createdBy: string;
350
+ createdByRole: string;
351
+ createdAtLocation: string;
352
+ registrationNumber: string;
353
+ acceptedAt: string;
354
+ } | null | undefined;
355
+ };
356
+ updatedByUserRole: string;
357
+ flags: string[];
52
358
  assignedTo?: string | null | undefined;
53
- registrationNumber?: string | null | undefined;
359
+ dateOfEvent?: string | null | undefined;
360
+ updatedAtLocation?: string | null | undefined;
361
+ updatedBy?: string | null | undefined;
54
362
  }>;
55
363
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
56
364
  type: z.ZodString;
@@ -104,6 +412,16 @@ declare const Range: z.ZodObject<{
104
412
  gte: string;
105
413
  lte: string;
106
414
  }>;
415
+ declare const Not: z.ZodObject<{
416
+ type: z.ZodLiteral<"not">;
417
+ term: z.ZodString;
418
+ }, "strip", z.ZodTypeAny, {
419
+ type: "not";
420
+ term: string;
421
+ }, {
422
+ type: "not";
423
+ term: string;
424
+ }>;
107
425
  declare const Within: z.ZodObject<{
108
426
  type: z.ZodLiteral<"within">;
109
427
  location: z.ZodString;
@@ -115,51 +433,32 @@ declare const Within: z.ZodObject<{
115
433
  location: string;
116
434
  }>;
117
435
  export declare const QueryInput: ZodType;
118
- export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
436
+ 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>;
119
437
  type QueryMap = {
120
438
  [key: string]: BaseInput | QueryMap;
121
439
  };
122
440
  export type QueryInputType = BaseInput | QueryMap;
123
- export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
124
- type: z.ZodOptional<z.ZodLiteral<"and">>;
441
+ export declare const QueryExpression: z.ZodObject<{
442
+ title: z.ZodOptional<z.ZodString>;
125
443
  eventType: z.ZodOptional<z.ZodString>;
126
- searchType: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
127
- type: z.ZodLiteral<"anyOf">;
128
- terms: z.ZodArray<z.ZodString, "many">;
129
- }, "strip", z.ZodTypeAny, {
130
- type: "anyOf";
131
- terms: string[];
132
- }, {
133
- type: "anyOf";
134
- terms: string[];
135
- }>, z.ZodObject<{
136
- type: z.ZodLiteral<"exact">;
137
- term: z.ZodString;
138
- }, "strip", z.ZodTypeAny, {
139
- type: "exact";
140
- term: string;
141
- }, {
142
- type: "exact";
143
- term: string;
144
- }>]>>>;
145
444
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
146
445
  type: z.ZodLiteral<"anyOf">;
147
- terms: z.ZodArray<z.ZodString, "many">;
446
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
148
447
  }, "strip", z.ZodTypeAny, {
149
448
  type: "anyOf";
150
- terms: string[];
449
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
151
450
  }, {
152
451
  type: "anyOf";
153
- terms: string[];
452
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
154
453
  }>, z.ZodObject<{
155
454
  type: z.ZodLiteral<"exact">;
156
- term: z.ZodString;
455
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
157
456
  }, "strip", z.ZodTypeAny, {
158
457
  type: "exact";
159
- term: string;
458
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
160
459
  }, {
161
460
  type: "exact";
162
- term: string;
461
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
163
462
  }>]>>>;
164
463
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
165
464
  type: z.ZodLiteral<"exact">;
@@ -205,7 +504,7 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
205
504
  gte: string;
206
505
  lte: string;
207
506
  }>]>>>;
208
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
507
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
209
508
  type: z.ZodLiteral<"within">;
210
509
  location: z.ZodString;
211
510
  }, "strip", z.ZodTypeAny, {
@@ -243,6 +542,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
243
542
  type: "exact";
244
543
  term: string;
245
544
  }>]>>>;
545
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
546
+ type: z.ZodLiteral<"exact">;
547
+ term: z.ZodString;
548
+ }, "strip", z.ZodTypeAny, {
549
+ type: "exact";
550
+ term: string;
551
+ }, {
552
+ type: "exact";
553
+ term: string;
554
+ }>>>;
246
555
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
247
556
  type: z.ZodLiteral<"exact">;
248
557
  term: z.ZodString;
@@ -273,16 +582,35 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
273
582
  type: "exact";
274
583
  term: string;
275
584
  }>>>;
585
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
586
+ type: z.ZodLiteral<"anyOf">;
587
+ terms: z.ZodArray<z.ZodString, "many">;
588
+ }, "strip", z.ZodTypeAny, {
589
+ type: "anyOf";
590
+ terms: string[];
591
+ }, {
592
+ type: "anyOf";
593
+ terms: string[];
594
+ }>, z.ZodObject<{
595
+ type: z.ZodLiteral<"not">;
596
+ term: z.ZodString;
597
+ }, "strip", z.ZodTypeAny, {
598
+ type: "not";
599
+ term: string;
600
+ }, {
601
+ type: "not";
602
+ term: string;
603
+ }>]>, "many">>>;
276
604
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
277
605
  }, "strip", z.ZodTypeAny, {
278
- type?: "and" | undefined;
279
606
  status?: {
280
- type: "exact";
281
- term: string;
282
- } | {
283
607
  type: "anyOf";
284
- terms: string[];
608
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
609
+ } | {
610
+ type: "exact";
611
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
285
612
  } | undefined;
613
+ title?: string | undefined;
286
614
  data?: any;
287
615
  createdAt?: {
288
616
  type: "exact";
@@ -296,13 +624,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
296
624
  type: "exact";
297
625
  term: string;
298
626
  } | undefined;
299
- updatedAtLocation?: {
627
+ createdAtLocation?: {
300
628
  type: "exact";
301
629
  term: string;
302
630
  } | {
303
631
  type: "within";
304
632
  location: string;
305
633
  } | undefined;
634
+ assignedTo?: {
635
+ type: "exact";
636
+ term: string;
637
+ } | undefined;
306
638
  updatedAt?: {
307
639
  type: "exact";
308
640
  term: string;
@@ -315,34 +647,34 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
315
647
  type: "exact";
316
648
  term: string;
317
649
  } | undefined;
318
- updatedBy?: {
650
+ updatedAtLocation?: {
319
651
  type: "exact";
320
652
  term: string;
653
+ } | {
654
+ type: "within";
655
+ location: string;
321
656
  } | undefined;
322
- eventType?: string | undefined;
323
- searchType?: {
657
+ updatedBy?: {
324
658
  type: "exact";
325
659
  term: string;
326
- } | {
660
+ } | undefined;
661
+ flags?: ({
327
662
  type: "anyOf";
328
663
  terms: string[];
329
- } | undefined;
330
- createAtLocation?: {
331
- type: "exact";
332
- term: string;
333
664
  } | {
334
- type: "within";
335
- location: string;
336
- } | undefined;
665
+ type: "not";
666
+ term: string;
667
+ })[] | undefined;
668
+ eventType?: string | undefined;
337
669
  }, {
338
- type?: "and" | undefined;
339
670
  status?: {
340
- type: "exact";
341
- term: string;
342
- } | {
343
671
  type: "anyOf";
344
- terms: string[];
672
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
673
+ } | {
674
+ type: "exact";
675
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
345
676
  } | undefined;
677
+ title?: string | undefined;
346
678
  data?: any;
347
679
  createdAt?: {
348
680
  type: "exact";
@@ -356,13 +688,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
356
688
  type: "exact";
357
689
  term: string;
358
690
  } | undefined;
359
- updatedAtLocation?: {
691
+ createdAtLocation?: {
360
692
  type: "exact";
361
693
  term: string;
362
694
  } | {
363
695
  type: "within";
364
696
  location: string;
365
697
  } | undefined;
698
+ assignedTo?: {
699
+ type: "exact";
700
+ term: string;
701
+ } | undefined;
366
702
  updatedAt?: {
367
703
  type: "exact";
368
704
  term: string;
@@ -375,67 +711,49 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
375
711
  type: "exact";
376
712
  term: string;
377
713
  } | undefined;
378
- updatedBy?: {
714
+ updatedAtLocation?: {
379
715
  type: "exact";
380
716
  term: string;
717
+ } | {
718
+ type: "within";
719
+ location: string;
381
720
  } | undefined;
382
- eventType?: string | undefined;
383
- searchType?: {
721
+ updatedBy?: {
384
722
  type: "exact";
385
723
  term: string;
386
- } | {
724
+ } | undefined;
725
+ flags?: ({
387
726
  type: "anyOf";
388
727
  terms: string[];
389
- } | undefined;
390
- createAtLocation?: {
391
- type: "exact";
392
- term: string;
393
728
  } | {
394
- type: "within";
395
- location: string;
396
- } | undefined;
397
- }>, z.ZodObject<{
729
+ type: "not";
730
+ term: string;
731
+ })[] | undefined;
732
+ eventType?: string | undefined;
733
+ }>;
734
+ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
398
735
  type: z.ZodLiteral<"or">;
399
736
  clauses: z.ZodArray<z.ZodObject<{
400
- type: z.ZodOptional<z.ZodLiteral<"and">>;
737
+ title: z.ZodOptional<z.ZodString>;
401
738
  eventType: z.ZodOptional<z.ZodString>;
402
- searchType: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
403
- type: z.ZodLiteral<"anyOf">;
404
- terms: z.ZodArray<z.ZodString, "many">;
405
- }, "strip", z.ZodTypeAny, {
406
- type: "anyOf";
407
- terms: string[];
408
- }, {
409
- type: "anyOf";
410
- terms: string[];
411
- }>, z.ZodObject<{
412
- type: z.ZodLiteral<"exact">;
413
- term: z.ZodString;
414
- }, "strip", z.ZodTypeAny, {
415
- type: "exact";
416
- term: string;
417
- }, {
418
- type: "exact";
419
- term: string;
420
- }>]>>>;
421
739
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
422
740
  type: z.ZodLiteral<"anyOf">;
423
- terms: z.ZodArray<z.ZodString, "many">;
741
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
424
742
  }, "strip", z.ZodTypeAny, {
425
743
  type: "anyOf";
426
- terms: string[];
744
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
427
745
  }, {
428
746
  type: "anyOf";
429
- terms: string[];
747
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
430
748
  }>, z.ZodObject<{
431
749
  type: z.ZodLiteral<"exact">;
432
- term: z.ZodString;
750
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
433
751
  }, "strip", z.ZodTypeAny, {
434
752
  type: "exact";
435
- term: string;
753
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
436
754
  }, {
437
755
  type: "exact";
438
- term: string;
756
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
439
757
  }>]>>>;
440
758
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
441
759
  type: z.ZodLiteral<"exact">;
@@ -481,7 +799,7 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
481
799
  gte: string;
482
800
  lte: string;
483
801
  }>]>>>;
484
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
802
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
485
803
  type: z.ZodLiteral<"within">;
486
804
  location: z.ZodString;
487
805
  }, "strip", z.ZodTypeAny, {
@@ -519,6 +837,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
519
837
  type: "exact";
520
838
  term: string;
521
839
  }>]>>>;
840
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
841
+ type: z.ZodLiteral<"exact">;
842
+ term: z.ZodString;
843
+ }, "strip", z.ZodTypeAny, {
844
+ type: "exact";
845
+ term: string;
846
+ }, {
847
+ type: "exact";
848
+ term: string;
849
+ }>>>;
522
850
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
523
851
  type: z.ZodLiteral<"exact">;
524
852
  term: z.ZodString;
@@ -549,16 +877,35 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
549
877
  type: "exact";
550
878
  term: string;
551
879
  }>>>;
880
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
881
+ type: z.ZodLiteral<"anyOf">;
882
+ terms: z.ZodArray<z.ZodString, "many">;
883
+ }, "strip", z.ZodTypeAny, {
884
+ type: "anyOf";
885
+ terms: string[];
886
+ }, {
887
+ type: "anyOf";
888
+ terms: string[];
889
+ }>, z.ZodObject<{
890
+ type: z.ZodLiteral<"not">;
891
+ term: z.ZodString;
892
+ }, "strip", z.ZodTypeAny, {
893
+ type: "not";
894
+ term: string;
895
+ }, {
896
+ type: "not";
897
+ term: string;
898
+ }>]>, "many">>>;
552
899
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
553
900
  }, "strip", z.ZodTypeAny, {
554
- type?: "and" | undefined;
555
901
  status?: {
556
- type: "exact";
557
- term: string;
558
- } | {
559
902
  type: "anyOf";
560
- terms: string[];
903
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
904
+ } | {
905
+ type: "exact";
906
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
561
907
  } | undefined;
908
+ title?: string | undefined;
562
909
  data?: any;
563
910
  createdAt?: {
564
911
  type: "exact";
@@ -572,13 +919,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
572
919
  type: "exact";
573
920
  term: string;
574
921
  } | undefined;
575
- updatedAtLocation?: {
922
+ createdAtLocation?: {
576
923
  type: "exact";
577
924
  term: string;
578
925
  } | {
579
926
  type: "within";
580
927
  location: string;
581
928
  } | undefined;
929
+ assignedTo?: {
930
+ type: "exact";
931
+ term: string;
932
+ } | undefined;
582
933
  updatedAt?: {
583
934
  type: "exact";
584
935
  term: string;
@@ -591,34 +942,34 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
591
942
  type: "exact";
592
943
  term: string;
593
944
  } | undefined;
594
- updatedBy?: {
945
+ updatedAtLocation?: {
595
946
  type: "exact";
596
947
  term: string;
948
+ } | {
949
+ type: "within";
950
+ location: string;
597
951
  } | undefined;
598
- eventType?: string | undefined;
599
- searchType?: {
952
+ updatedBy?: {
600
953
  type: "exact";
601
954
  term: string;
602
- } | {
955
+ } | undefined;
956
+ flags?: ({
603
957
  type: "anyOf";
604
958
  terms: string[];
605
- } | undefined;
606
- createAtLocation?: {
607
- type: "exact";
608
- term: string;
609
959
  } | {
610
- type: "within";
611
- location: string;
612
- } | undefined;
960
+ type: "not";
961
+ term: string;
962
+ })[] | undefined;
963
+ eventType?: string | undefined;
613
964
  }, {
614
- type?: "and" | undefined;
615
965
  status?: {
616
- type: "exact";
617
- term: string;
618
- } | {
619
966
  type: "anyOf";
620
- terms: string[];
967
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
968
+ } | {
969
+ type: "exact";
970
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
621
971
  } | undefined;
972
+ title?: string | undefined;
622
973
  data?: any;
623
974
  createdAt?: {
624
975
  type: "exact";
@@ -632,13 +983,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
632
983
  type: "exact";
633
984
  term: string;
634
985
  } | undefined;
635
- updatedAtLocation?: {
986
+ createdAtLocation?: {
636
987
  type: "exact";
637
988
  term: string;
638
989
  } | {
639
990
  type: "within";
640
991
  location: string;
641
992
  } | undefined;
993
+ assignedTo?: {
994
+ type: "exact";
995
+ term: string;
996
+ } | undefined;
642
997
  updatedAt?: {
643
998
  type: "exact";
644
999
  term: string;
@@ -651,37 +1006,37 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
651
1006
  type: "exact";
652
1007
  term: string;
653
1008
  } | undefined;
654
- updatedBy?: {
1009
+ updatedAtLocation?: {
655
1010
  type: "exact";
656
1011
  term: string;
1012
+ } | {
1013
+ type: "within";
1014
+ location: string;
657
1015
  } | undefined;
658
- eventType?: string | undefined;
659
- searchType?: {
1016
+ updatedBy?: {
660
1017
  type: "exact";
661
1018
  term: string;
662
- } | {
1019
+ } | undefined;
1020
+ flags?: ({
663
1021
  type: "anyOf";
664
1022
  terms: string[];
665
- } | undefined;
666
- createAtLocation?: {
667
- type: "exact";
668
- term: string;
669
1023
  } | {
670
- type: "within";
671
- location: string;
672
- } | undefined;
1024
+ type: "not";
1025
+ term: string;
1026
+ })[] | undefined;
1027
+ eventType?: string | undefined;
673
1028
  }>, "many">;
674
1029
  }, "strip", z.ZodTypeAny, {
675
1030
  type: "or";
676
1031
  clauses: {
677
- type?: "and" | undefined;
678
1032
  status?: {
679
- type: "exact";
680
- term: string;
681
- } | {
682
1033
  type: "anyOf";
683
- terms: string[];
1034
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1035
+ } | {
1036
+ type: "exact";
1037
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
684
1038
  } | undefined;
1039
+ title?: string | undefined;
685
1040
  data?: any;
686
1041
  createdAt?: {
687
1042
  type: "exact";
@@ -695,13 +1050,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
695
1050
  type: "exact";
696
1051
  term: string;
697
1052
  } | undefined;
698
- updatedAtLocation?: {
1053
+ createdAtLocation?: {
699
1054
  type: "exact";
700
1055
  term: string;
701
1056
  } | {
702
1057
  type: "within";
703
1058
  location: string;
704
1059
  } | undefined;
1060
+ assignedTo?: {
1061
+ type: "exact";
1062
+ term: string;
1063
+ } | undefined;
705
1064
  updatedAt?: {
706
1065
  type: "exact";
707
1066
  term: string;
@@ -714,37 +1073,332 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
714
1073
  type: "exact";
715
1074
  term: string;
716
1075
  } | undefined;
717
- updatedBy?: {
1076
+ updatedAtLocation?: {
718
1077
  type: "exact";
719
1078
  term: string;
1079
+ } | {
1080
+ type: "within";
1081
+ location: string;
720
1082
  } | undefined;
721
- eventType?: string | undefined;
722
- searchType?: {
1083
+ updatedBy?: {
723
1084
  type: "exact";
724
1085
  term: string;
725
- } | {
1086
+ } | undefined;
1087
+ flags?: ({
726
1088
  type: "anyOf";
727
1089
  terms: string[];
1090
+ } | {
1091
+ type: "not";
1092
+ term: string;
1093
+ })[] | undefined;
1094
+ eventType?: string | undefined;
1095
+ }[];
1096
+ }, {
1097
+ type: "or";
1098
+ clauses: {
1099
+ status?: {
1100
+ type: "anyOf";
1101
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1102
+ } | {
1103
+ type: "exact";
1104
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
728
1105
  } | undefined;
729
- createAtLocation?: {
1106
+ title?: string | undefined;
1107
+ data?: any;
1108
+ createdAt?: {
1109
+ type: "exact";
1110
+ term: string;
1111
+ } | {
1112
+ type: "range";
1113
+ gte: string;
1114
+ lte: string;
1115
+ } | undefined;
1116
+ createdBy?: {
1117
+ type: "exact";
1118
+ term: string;
1119
+ } | undefined;
1120
+ createdAtLocation?: {
1121
+ type: "exact";
1122
+ term: string;
1123
+ } | {
1124
+ type: "within";
1125
+ location: string;
1126
+ } | undefined;
1127
+ assignedTo?: {
1128
+ type: "exact";
1129
+ term: string;
1130
+ } | undefined;
1131
+ updatedAt?: {
1132
+ type: "exact";
1133
+ term: string;
1134
+ } | {
1135
+ type: "range";
1136
+ gte: string;
1137
+ lte: string;
1138
+ } | undefined;
1139
+ trackingId?: {
1140
+ type: "exact";
1141
+ term: string;
1142
+ } | undefined;
1143
+ updatedAtLocation?: {
730
1144
  type: "exact";
731
1145
  term: string;
732
1146
  } | {
733
1147
  type: "within";
734
1148
  location: string;
735
1149
  } | undefined;
1150
+ updatedBy?: {
1151
+ type: "exact";
1152
+ term: string;
1153
+ } | undefined;
1154
+ flags?: ({
1155
+ type: "anyOf";
1156
+ terms: string[];
1157
+ } | {
1158
+ type: "not";
1159
+ term: string;
1160
+ })[] | undefined;
1161
+ eventType?: string | undefined;
736
1162
  }[];
737
- }, {
738
- type: "or";
739
- clauses: {
740
- type?: "and" | undefined;
1163
+ }>, z.ZodObject<{
1164
+ type: z.ZodLiteral<"and">;
1165
+ clauses: z.ZodArray<z.ZodObject<{
1166
+ title: z.ZodOptional<z.ZodString>;
1167
+ eventType: z.ZodOptional<z.ZodString>;
1168
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1169
+ type: z.ZodLiteral<"anyOf">;
1170
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ type: "anyOf";
1173
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1174
+ }, {
1175
+ type: "anyOf";
1176
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1177
+ }>, z.ZodObject<{
1178
+ type: z.ZodLiteral<"exact">;
1179
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ type: "exact";
1182
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1183
+ }, {
1184
+ type: "exact";
1185
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1186
+ }>]>>>;
1187
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1188
+ type: z.ZodLiteral<"exact">;
1189
+ term: z.ZodString;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ type: "exact";
1192
+ term: string;
1193
+ }, {
1194
+ type: "exact";
1195
+ term: string;
1196
+ }>, z.ZodObject<{
1197
+ type: z.ZodLiteral<"range">;
1198
+ gte: z.ZodString;
1199
+ lte: z.ZodString;
1200
+ }, "strip", z.ZodTypeAny, {
1201
+ type: "range";
1202
+ gte: string;
1203
+ lte: string;
1204
+ }, {
1205
+ type: "range";
1206
+ gte: string;
1207
+ lte: string;
1208
+ }>]>>>;
1209
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1210
+ type: z.ZodLiteral<"exact">;
1211
+ term: z.ZodString;
1212
+ }, "strip", z.ZodTypeAny, {
1213
+ type: "exact";
1214
+ term: string;
1215
+ }, {
1216
+ type: "exact";
1217
+ term: string;
1218
+ }>, z.ZodObject<{
1219
+ type: z.ZodLiteral<"range">;
1220
+ gte: z.ZodString;
1221
+ lte: z.ZodString;
1222
+ }, "strip", z.ZodTypeAny, {
1223
+ type: "range";
1224
+ gte: string;
1225
+ lte: string;
1226
+ }, {
1227
+ type: "range";
1228
+ gte: string;
1229
+ lte: string;
1230
+ }>]>>>;
1231
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1232
+ type: z.ZodLiteral<"within">;
1233
+ location: z.ZodString;
1234
+ }, "strip", z.ZodTypeAny, {
1235
+ type: "within";
1236
+ location: string;
1237
+ }, {
1238
+ type: "within";
1239
+ location: string;
1240
+ }>, z.ZodObject<{
1241
+ type: z.ZodLiteral<"exact">;
1242
+ term: z.ZodString;
1243
+ }, "strip", z.ZodTypeAny, {
1244
+ type: "exact";
1245
+ term: string;
1246
+ }, {
1247
+ type: "exact";
1248
+ term: string;
1249
+ }>]>>>;
1250
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1251
+ type: z.ZodLiteral<"within">;
1252
+ location: z.ZodString;
1253
+ }, "strip", z.ZodTypeAny, {
1254
+ type: "within";
1255
+ location: string;
1256
+ }, {
1257
+ type: "within";
1258
+ location: string;
1259
+ }>, z.ZodObject<{
1260
+ type: z.ZodLiteral<"exact">;
1261
+ term: z.ZodString;
1262
+ }, "strip", z.ZodTypeAny, {
1263
+ type: "exact";
1264
+ term: string;
1265
+ }, {
1266
+ type: "exact";
1267
+ term: string;
1268
+ }>]>>>;
1269
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1270
+ type: z.ZodLiteral<"exact">;
1271
+ term: z.ZodString;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ type: "exact";
1274
+ term: string;
1275
+ }, {
1276
+ type: "exact";
1277
+ term: string;
1278
+ }>>>;
1279
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1280
+ type: z.ZodLiteral<"exact">;
1281
+ term: z.ZodString;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ type: "exact";
1284
+ term: string;
1285
+ }, {
1286
+ type: "exact";
1287
+ term: string;
1288
+ }>>>;
1289
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1290
+ type: z.ZodLiteral<"exact">;
1291
+ term: z.ZodString;
1292
+ }, "strip", z.ZodTypeAny, {
1293
+ type: "exact";
1294
+ term: string;
1295
+ }, {
1296
+ type: "exact";
1297
+ term: string;
1298
+ }>>>;
1299
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1300
+ type: z.ZodLiteral<"exact">;
1301
+ term: z.ZodString;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ type: "exact";
1304
+ term: string;
1305
+ }, {
1306
+ type: "exact";
1307
+ term: string;
1308
+ }>>>;
1309
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1310
+ type: z.ZodLiteral<"anyOf">;
1311
+ terms: z.ZodArray<z.ZodString, "many">;
1312
+ }, "strip", z.ZodTypeAny, {
1313
+ type: "anyOf";
1314
+ terms: string[];
1315
+ }, {
1316
+ type: "anyOf";
1317
+ terms: string[];
1318
+ }>, z.ZodObject<{
1319
+ type: z.ZodLiteral<"not">;
1320
+ term: z.ZodString;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ type: "not";
1323
+ term: string;
1324
+ }, {
1325
+ type: "not";
1326
+ term: string;
1327
+ }>]>, "many">>>;
1328
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1329
+ }, "strip", z.ZodTypeAny, {
741
1330
  status?: {
1331
+ type: "anyOf";
1332
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1333
+ } | {
1334
+ type: "exact";
1335
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1336
+ } | undefined;
1337
+ title?: string | undefined;
1338
+ data?: any;
1339
+ createdAt?: {
1340
+ type: "exact";
1341
+ term: string;
1342
+ } | {
1343
+ type: "range";
1344
+ gte: string;
1345
+ lte: string;
1346
+ } | undefined;
1347
+ createdBy?: {
1348
+ type: "exact";
1349
+ term: string;
1350
+ } | undefined;
1351
+ createdAtLocation?: {
1352
+ type: "exact";
1353
+ term: string;
1354
+ } | {
1355
+ type: "within";
1356
+ location: string;
1357
+ } | undefined;
1358
+ assignedTo?: {
1359
+ type: "exact";
1360
+ term: string;
1361
+ } | undefined;
1362
+ updatedAt?: {
1363
+ type: "exact";
1364
+ term: string;
1365
+ } | {
1366
+ type: "range";
1367
+ gte: string;
1368
+ lte: string;
1369
+ } | undefined;
1370
+ trackingId?: {
1371
+ type: "exact";
1372
+ term: string;
1373
+ } | undefined;
1374
+ updatedAtLocation?: {
742
1375
  type: "exact";
743
1376
  term: string;
744
1377
  } | {
1378
+ type: "within";
1379
+ location: string;
1380
+ } | undefined;
1381
+ updatedBy?: {
1382
+ type: "exact";
1383
+ term: string;
1384
+ } | undefined;
1385
+ flags?: ({
745
1386
  type: "anyOf";
746
1387
  terms: string[];
1388
+ } | {
1389
+ type: "not";
1390
+ term: string;
1391
+ })[] | undefined;
1392
+ eventType?: string | undefined;
1393
+ }, {
1394
+ status?: {
1395
+ type: "anyOf";
1396
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1397
+ } | {
1398
+ type: "exact";
1399
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
747
1400
  } | undefined;
1401
+ title?: string | undefined;
748
1402
  data?: any;
749
1403
  createdAt?: {
750
1404
  type: "exact";
@@ -758,13 +1412,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
758
1412
  type: "exact";
759
1413
  term: string;
760
1414
  } | undefined;
761
- updatedAtLocation?: {
1415
+ createdAtLocation?: {
762
1416
  type: "exact";
763
1417
  term: string;
764
1418
  } | {
765
1419
  type: "within";
766
1420
  location: string;
767
1421
  } | undefined;
1422
+ assignedTo?: {
1423
+ type: "exact";
1424
+ term: string;
1425
+ } | undefined;
768
1426
  updatedAt?: {
769
1427
  type: "exact";
770
1428
  term: string;
@@ -777,27 +1435,162 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
777
1435
  type: "exact";
778
1436
  term: string;
779
1437
  } | undefined;
1438
+ updatedAtLocation?: {
1439
+ type: "exact";
1440
+ term: string;
1441
+ } | {
1442
+ type: "within";
1443
+ location: string;
1444
+ } | undefined;
780
1445
  updatedBy?: {
781
1446
  type: "exact";
782
1447
  term: string;
783
1448
  } | undefined;
1449
+ flags?: ({
1450
+ type: "anyOf";
1451
+ terms: string[];
1452
+ } | {
1453
+ type: "not";
1454
+ term: string;
1455
+ })[] | undefined;
784
1456
  eventType?: string | undefined;
785
- searchType?: {
1457
+ }>, "many">;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ type: "and";
1460
+ clauses: {
1461
+ status?: {
1462
+ type: "anyOf";
1463
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1464
+ } | {
1465
+ type: "exact";
1466
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1467
+ } | undefined;
1468
+ title?: string | undefined;
1469
+ data?: any;
1470
+ createdAt?: {
1471
+ type: "exact";
1472
+ term: string;
1473
+ } | {
1474
+ type: "range";
1475
+ gte: string;
1476
+ lte: string;
1477
+ } | undefined;
1478
+ createdBy?: {
1479
+ type: "exact";
1480
+ term: string;
1481
+ } | undefined;
1482
+ createdAtLocation?: {
1483
+ type: "exact";
1484
+ term: string;
1485
+ } | {
1486
+ type: "within";
1487
+ location: string;
1488
+ } | undefined;
1489
+ assignedTo?: {
1490
+ type: "exact";
1491
+ term: string;
1492
+ } | undefined;
1493
+ updatedAt?: {
1494
+ type: "exact";
1495
+ term: string;
1496
+ } | {
1497
+ type: "range";
1498
+ gte: string;
1499
+ lte: string;
1500
+ } | undefined;
1501
+ trackingId?: {
1502
+ type: "exact";
1503
+ term: string;
1504
+ } | undefined;
1505
+ updatedAtLocation?: {
786
1506
  type: "exact";
787
1507
  term: string;
788
1508
  } | {
1509
+ type: "within";
1510
+ location: string;
1511
+ } | undefined;
1512
+ updatedBy?: {
1513
+ type: "exact";
1514
+ term: string;
1515
+ } | undefined;
1516
+ flags?: ({
789
1517
  type: "anyOf";
790
1518
  terms: string[];
1519
+ } | {
1520
+ type: "not";
1521
+ term: string;
1522
+ })[] | undefined;
1523
+ eventType?: string | undefined;
1524
+ }[];
1525
+ }, {
1526
+ type: "and";
1527
+ clauses: {
1528
+ status?: {
1529
+ type: "anyOf";
1530
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1531
+ } | {
1532
+ type: "exact";
1533
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1534
+ } | undefined;
1535
+ title?: string | undefined;
1536
+ data?: any;
1537
+ createdAt?: {
1538
+ type: "exact";
1539
+ term: string;
1540
+ } | {
1541
+ type: "range";
1542
+ gte: string;
1543
+ lte: string;
1544
+ } | undefined;
1545
+ createdBy?: {
1546
+ type: "exact";
1547
+ term: string;
1548
+ } | undefined;
1549
+ createdAtLocation?: {
1550
+ type: "exact";
1551
+ term: string;
1552
+ } | {
1553
+ type: "within";
1554
+ location: string;
1555
+ } | undefined;
1556
+ assignedTo?: {
1557
+ type: "exact";
1558
+ term: string;
1559
+ } | undefined;
1560
+ updatedAt?: {
1561
+ type: "exact";
1562
+ term: string;
1563
+ } | {
1564
+ type: "range";
1565
+ gte: string;
1566
+ lte: string;
1567
+ } | undefined;
1568
+ trackingId?: {
1569
+ type: "exact";
1570
+ term: string;
791
1571
  } | undefined;
792
- createAtLocation?: {
1572
+ updatedAtLocation?: {
793
1573
  type: "exact";
794
1574
  term: string;
795
1575
  } | {
796
1576
  type: "within";
797
1577
  location: string;
798
1578
  } | undefined;
1579
+ updatedBy?: {
1580
+ type: "exact";
1581
+ term: string;
1582
+ } | undefined;
1583
+ flags?: ({
1584
+ type: "anyOf";
1585
+ terms: string[];
1586
+ } | {
1587
+ type: "not";
1588
+ term: string;
1589
+ })[] | undefined;
1590
+ eventType?: string | undefined;
799
1591
  }[];
800
1592
  }>]>;
801
1593
  export type QueryType = z.infer<typeof QueryType>;
1594
+ export type QueryExpression = z.infer<typeof QueryExpression>;
802
1595
  export {};
803
1596
  //# sourceMappingURL=EventIndex.d.ts.map