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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/commons/api/router.d.ts +8083 -4833
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -69
  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/Draft.d.ts +38 -30
  10. package/dist/commons/events/EventConfig.d.ts +42787 -1385
  11. package/dist/commons/events/EventDocument.d.ts +413 -312
  12. package/dist/commons/events/EventIndex.d.ts +862 -155
  13. package/dist/commons/events/EventInput.d.ts +13 -0
  14. package/dist/commons/events/EventMetadata.d.ts +271 -11
  15. package/dist/commons/events/FieldConfig.d.ts +3778 -769
  16. package/dist/commons/events/FieldType.d.ts +3 -3
  17. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  18. package/dist/commons/events/FieldValue.d.ts +7 -4
  19. package/dist/commons/events/FormConfig.d.ts +40417 -439
  20. package/dist/commons/events/PageConfig.d.ts +10077 -203
  21. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  22. package/dist/commons/events/User.d.ts +5 -0
  23. package/dist/commons/events/WorkqueueConfig.d.ts +1257 -19
  24. package/dist/commons/events/defineConfig.d.ts +7008 -81
  25. package/dist/commons/events/event.d.ts +27 -0
  26. package/dist/commons/events/field.d.ts +68 -0
  27. package/dist/commons/events/index.d.ts +3 -0
  28. package/dist/commons/events/scopes.d.ts +45 -0
  29. package/dist/commons/events/test.utils.d.ts +7 -44
  30. package/dist/commons/events/utils.d.ts +3551 -65
  31. package/dist/conditionals/index.js +35 -81
  32. package/dist/events/index.js +1691 -1021
  33. package/dist/scopes/index.d.ts +137 -1
  34. package/dist/scopes/index.js +147 -0
  35. package/package.json +3 -2
@@ -12,45 +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;
92
+ dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
93
  createdBy: z.ZodString;
94
+ updatedByUserRole: z.ZodString;
17
95
  createdAtLocation: z.ZodString;
18
- updatedAtLocation: z.ZodString;
96
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
97
  updatedAt: z.ZodString;
20
98
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- updatedBy: z.ZodString;
99
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
100
  trackingId: z.ZodString;
23
- registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
102
+ readonly CERTIFICATE_PRINTED: "certificate-printed";
103
+ }>]>, "many">;
24
104
  }, {
25
- declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
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
+ }>]>>;
26
219
  }>, "strip", z.ZodTypeAny, {
27
220
  type: string;
28
221
  id: string;
29
222
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
30
223
  createdAt: string;
31
224
  createdBy: string;
32
- declaration: Record<string, any>;
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>;
33
263
  createdAtLocation: string;
34
- updatedAtLocation: string;
35
264
  updatedAt: string;
36
265
  trackingId: string;
37
- updatedBy: 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
+ };
283
+ updatedByUserRole: string;
284
+ flags: string[];
38
285
  assignedTo?: string | null | undefined;
39
- registrationNumber?: string | null | undefined;
286
+ dateOfEvent?: string | null | undefined;
287
+ updatedAtLocation?: string | null | undefined;
288
+ updatedBy?: string | null | undefined;
40
289
  }, {
41
290
  type: string;
42
291
  id: string;
43
292
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
44
293
  createdAt: string;
45
294
  createdBy: string;
46
- declaration: Record<string, any>;
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>;
47
333
  createdAtLocation: string;
48
- updatedAtLocation: string;
49
334
  updatedAt: string;
50
335
  trackingId: string;
51
- updatedBy: 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
+ };
353
+ updatedByUserRole: string;
354
+ flags: string[];
52
355
  assignedTo?: string | null | undefined;
53
- registrationNumber?: string | null | undefined;
356
+ dateOfEvent?: string | null | undefined;
357
+ updatedAtLocation?: string | null | undefined;
358
+ updatedBy?: string | null | undefined;
54
359
  }>;
55
360
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
56
361
  type: z.ZodString;
@@ -104,6 +409,16 @@ declare const Range: z.ZodObject<{
104
409
  gte: string;
105
410
  lte: string;
106
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
+ }>;
107
422
  declare const Within: z.ZodObject<{
108
423
  type: z.ZodLiteral<"within">;
109
424
  location: z.ZodString;
@@ -115,51 +430,31 @@ declare const Within: z.ZodObject<{
115
430
  location: string;
116
431
  }>;
117
432
  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>;
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>;
119
434
  type QueryMap = {
120
435
  [key: string]: BaseInput | QueryMap;
121
436
  };
122
437
  export type QueryInputType = BaseInput | QueryMap;
123
- export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
124
- type: z.ZodOptional<z.ZodLiteral<"and">>;
438
+ declare const QueryExpression: z.ZodObject<{
125
439
  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
440
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
146
441
  type: z.ZodLiteral<"anyOf">;
147
- terms: z.ZodArray<z.ZodString, "many">;
442
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
148
443
  }, "strip", z.ZodTypeAny, {
149
444
  type: "anyOf";
150
- terms: string[];
445
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
151
446
  }, {
152
447
  type: "anyOf";
153
- terms: string[];
448
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
154
449
  }>, z.ZodObject<{
155
450
  type: z.ZodLiteral<"exact">;
156
- term: z.ZodString;
451
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
157
452
  }, "strip", z.ZodTypeAny, {
158
453
  type: "exact";
159
- term: string;
454
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
160
455
  }, {
161
456
  type: "exact";
162
- term: string;
457
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
163
458
  }>]>>>;
164
459
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
165
460
  type: z.ZodLiteral<"exact">;
@@ -273,15 +568,33 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
273
568
  type: "exact";
274
569
  term: string;
275
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">>>;
276
590
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
277
591
  }, "strip", z.ZodTypeAny, {
278
- type?: "and" | undefined;
279
592
  status?: {
280
593
  type: "exact";
281
- term: string;
594
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
282
595
  } | {
283
596
  type: "anyOf";
284
- terms: string[];
597
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
285
598
  } | undefined;
286
599
  data?: any;
287
600
  createdAt?: {
@@ -296,13 +609,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
296
609
  type: "exact";
297
610
  term: string;
298
611
  } | undefined;
299
- updatedAtLocation?: {
300
- type: "exact";
301
- term: string;
302
- } | {
303
- type: "within";
304
- location: string;
305
- } | undefined;
306
612
  updatedAt?: {
307
613
  type: "exact";
308
614
  term: string;
@@ -315,18 +621,25 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
315
621
  type: "exact";
316
622
  term: string;
317
623
  } | undefined;
318
- updatedBy?: {
624
+ updatedAtLocation?: {
319
625
  type: "exact";
320
626
  term: string;
627
+ } | {
628
+ type: "within";
629
+ location: string;
321
630
  } | undefined;
322
- eventType?: string | undefined;
323
- searchType?: {
631
+ updatedBy?: {
324
632
  type: "exact";
325
633
  term: string;
326
- } | {
634
+ } | undefined;
635
+ flags?: ({
327
636
  type: "anyOf";
328
637
  terms: string[];
329
- } | undefined;
638
+ } | {
639
+ type: "not";
640
+ term: string;
641
+ })[] | undefined;
642
+ eventType?: string | undefined;
330
643
  createAtLocation?: {
331
644
  type: "exact";
332
645
  term: string;
@@ -335,13 +648,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
335
648
  location: string;
336
649
  } | undefined;
337
650
  }, {
338
- type?: "and" | undefined;
339
651
  status?: {
340
652
  type: "exact";
341
- term: string;
653
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
342
654
  } | {
343
655
  type: "anyOf";
344
- terms: string[];
656
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
345
657
  } | undefined;
346
658
  data?: any;
347
659
  createdAt?: {
@@ -356,13 +668,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
356
668
  type: "exact";
357
669
  term: string;
358
670
  } | undefined;
359
- updatedAtLocation?: {
360
- type: "exact";
361
- term: string;
362
- } | {
363
- type: "within";
364
- location: string;
365
- } | undefined;
366
671
  updatedAt?: {
367
672
  type: "exact";
368
673
  term: string;
@@ -375,18 +680,25 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
375
680
  type: "exact";
376
681
  term: string;
377
682
  } | undefined;
378
- updatedBy?: {
683
+ updatedAtLocation?: {
379
684
  type: "exact";
380
685
  term: string;
686
+ } | {
687
+ type: "within";
688
+ location: string;
381
689
  } | undefined;
382
- eventType?: string | undefined;
383
- searchType?: {
690
+ updatedBy?: {
384
691
  type: "exact";
385
692
  term: string;
386
- } | {
693
+ } | undefined;
694
+ flags?: ({
387
695
  type: "anyOf";
388
696
  terms: string[];
389
- } | undefined;
697
+ } | {
698
+ type: "not";
699
+ term: string;
700
+ })[] | undefined;
701
+ eventType?: string | undefined;
390
702
  createAtLocation?: {
391
703
  type: "exact";
392
704
  term: string;
@@ -394,48 +706,29 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
394
706
  type: "within";
395
707
  location: string;
396
708
  } | undefined;
397
- }>, z.ZodObject<{
709
+ }>;
710
+ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
398
711
  type: z.ZodLiteral<"or">;
399
712
  clauses: z.ZodArray<z.ZodObject<{
400
- type: z.ZodOptional<z.ZodLiteral<"and">>;
401
713
  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
714
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
422
715
  type: z.ZodLiteral<"anyOf">;
423
- terms: z.ZodArray<z.ZodString, "many">;
716
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
424
717
  }, "strip", z.ZodTypeAny, {
425
718
  type: "anyOf";
426
- terms: string[];
719
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
427
720
  }, {
428
721
  type: "anyOf";
429
- terms: string[];
722
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
430
723
  }>, z.ZodObject<{
431
724
  type: z.ZodLiteral<"exact">;
432
- term: z.ZodString;
725
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
433
726
  }, "strip", z.ZodTypeAny, {
434
727
  type: "exact";
435
- term: string;
728
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
436
729
  }, {
437
730
  type: "exact";
438
- term: string;
731
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
439
732
  }>]>>>;
440
733
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
441
734
  type: z.ZodLiteral<"exact">;
@@ -549,15 +842,33 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
549
842
  type: "exact";
550
843
  term: string;
551
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">>>;
552
864
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
553
865
  }, "strip", z.ZodTypeAny, {
554
- type?: "and" | undefined;
555
866
  status?: {
556
867
  type: "exact";
557
- term: string;
868
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
558
869
  } | {
559
870
  type: "anyOf";
560
- terms: string[];
871
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
561
872
  } | undefined;
562
873
  data?: any;
563
874
  createdAt?: {
@@ -572,13 +883,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
572
883
  type: "exact";
573
884
  term: string;
574
885
  } | undefined;
575
- updatedAtLocation?: {
576
- type: "exact";
577
- term: string;
578
- } | {
579
- type: "within";
580
- location: string;
581
- } | undefined;
582
886
  updatedAt?: {
583
887
  type: "exact";
584
888
  term: string;
@@ -591,18 +895,25 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
591
895
  type: "exact";
592
896
  term: string;
593
897
  } | undefined;
594
- updatedBy?: {
898
+ updatedAtLocation?: {
595
899
  type: "exact";
596
900
  term: string;
901
+ } | {
902
+ type: "within";
903
+ location: string;
597
904
  } | undefined;
598
- eventType?: string | undefined;
599
- searchType?: {
905
+ updatedBy?: {
600
906
  type: "exact";
601
907
  term: string;
602
- } | {
908
+ } | undefined;
909
+ flags?: ({
603
910
  type: "anyOf";
604
911
  terms: string[];
605
- } | undefined;
912
+ } | {
913
+ type: "not";
914
+ term: string;
915
+ })[] | undefined;
916
+ eventType?: string | undefined;
606
917
  createAtLocation?: {
607
918
  type: "exact";
608
919
  term: string;
@@ -611,13 +922,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
611
922
  location: string;
612
923
  } | undefined;
613
924
  }, {
614
- type?: "and" | undefined;
615
925
  status?: {
616
926
  type: "exact";
617
- term: string;
927
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
618
928
  } | {
619
929
  type: "anyOf";
620
- terms: string[];
930
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
621
931
  } | undefined;
622
932
  data?: any;
623
933
  createdAt?: {
@@ -632,13 +942,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
632
942
  type: "exact";
633
943
  term: string;
634
944
  } | undefined;
635
- updatedAtLocation?: {
636
- type: "exact";
637
- term: string;
638
- } | {
639
- type: "within";
640
- location: string;
641
- } | undefined;
642
945
  updatedAt?: {
643
946
  type: "exact";
644
947
  term: string;
@@ -651,18 +954,25 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
651
954
  type: "exact";
652
955
  term: string;
653
956
  } | undefined;
654
- updatedBy?: {
957
+ updatedAtLocation?: {
655
958
  type: "exact";
656
959
  term: string;
960
+ } | {
961
+ type: "within";
962
+ location: string;
657
963
  } | undefined;
658
- eventType?: string | undefined;
659
- searchType?: {
964
+ updatedBy?: {
660
965
  type: "exact";
661
966
  term: string;
662
- } | {
967
+ } | undefined;
968
+ flags?: ({
663
969
  type: "anyOf";
664
970
  terms: string[];
665
- } | undefined;
971
+ } | {
972
+ type: "not";
973
+ term: string;
974
+ })[] | undefined;
975
+ eventType?: string | undefined;
666
976
  createAtLocation?: {
667
977
  type: "exact";
668
978
  term: string;
@@ -674,13 +984,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
674
984
  }, "strip", z.ZodTypeAny, {
675
985
  type: "or";
676
986
  clauses: {
677
- type?: "and" | undefined;
678
987
  status?: {
679
988
  type: "exact";
680
- term: string;
989
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
681
990
  } | {
682
991
  type: "anyOf";
683
- terms: string[];
992
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
684
993
  } | undefined;
685
994
  data?: any;
686
995
  createdAt?: {
@@ -695,13 +1004,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
695
1004
  type: "exact";
696
1005
  term: string;
697
1006
  } | undefined;
698
- updatedAtLocation?: {
699
- type: "exact";
700
- term: string;
701
- } | {
702
- type: "within";
703
- location: string;
704
- } | undefined;
705
1007
  updatedAt?: {
706
1008
  type: "exact";
707
1009
  term: string;
@@ -714,18 +1016,25 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
714
1016
  type: "exact";
715
1017
  term: string;
716
1018
  } | undefined;
717
- updatedBy?: {
1019
+ updatedAtLocation?: {
718
1020
  type: "exact";
719
1021
  term: string;
1022
+ } | {
1023
+ type: "within";
1024
+ location: string;
720
1025
  } | undefined;
721
- eventType?: string | undefined;
722
- searchType?: {
1026
+ updatedBy?: {
723
1027
  type: "exact";
724
1028
  term: string;
725
- } | {
1029
+ } | undefined;
1030
+ flags?: ({
726
1031
  type: "anyOf";
727
1032
  terms: string[];
728
- } | undefined;
1033
+ } | {
1034
+ type: "not";
1035
+ term: string;
1036
+ })[] | undefined;
1037
+ eventType?: string | undefined;
729
1038
  createAtLocation?: {
730
1039
  type: "exact";
731
1040
  term: string;
@@ -737,13 +1046,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
737
1046
  }, {
738
1047
  type: "or";
739
1048
  clauses: {
740
- type?: "and" | undefined;
741
1049
  status?: {
742
1050
  type: "exact";
743
- term: string;
1051
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
744
1052
  } | {
745
1053
  type: "anyOf";
746
- terms: string[];
1054
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
747
1055
  } | undefined;
748
1056
  data?: any;
749
1057
  createdAt?: {
@@ -758,13 +1066,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
758
1066
  type: "exact";
759
1067
  term: string;
760
1068
  } | undefined;
761
- updatedAtLocation?: {
762
- type: "exact";
763
- term: string;
764
- } | {
765
- type: "within";
766
- location: string;
767
- } | undefined;
768
1069
  updatedAt?: {
769
1070
  type: "exact";
770
1071
  term: string;
@@ -777,18 +1078,423 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
777
1078
  type: "exact";
778
1079
  term: string;
779
1080
  } | undefined;
1081
+ updatedAtLocation?: {
1082
+ type: "exact";
1083
+ term: string;
1084
+ } | {
1085
+ type: "within";
1086
+ location: string;
1087
+ } | undefined;
780
1088
  updatedBy?: {
781
1089
  type: "exact";
782
1090
  term: string;
783
1091
  } | undefined;
1092
+ flags?: ({
1093
+ type: "anyOf";
1094
+ terms: string[];
1095
+ } | {
1096
+ type: "not";
1097
+ term: string;
1098
+ })[] | undefined;
784
1099
  eventType?: string | undefined;
785
- searchType?: {
1100
+ createAtLocation?: {
786
1101
  type: "exact";
787
1102
  term: string;
788
1103
  } | {
789
- type: "anyOf";
790
- terms: string[];
1104
+ type: "within";
1105
+ location: string;
791
1106
  } | undefined;
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.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1115
+ }, "strip", z.ZodTypeAny, {
1116
+ type: "anyOf";
1117
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1118
+ }, {
1119
+ type: "anyOf";
1120
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1121
+ }>, z.ZodObject<{
1122
+ type: z.ZodLiteral<"exact">;
1123
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ type: "exact";
1126
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1127
+ }, {
1128
+ type: "exact";
1129
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
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, {
1264
+ status?: {
1265
+ type: "exact";
1266
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1267
+ } | {
1268
+ type: "anyOf";
1269
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1270
+ } | undefined;
1271
+ data?: any;
1272
+ createdAt?: {
1273
+ type: "exact";
1274
+ term: string;
1275
+ } | {
1276
+ type: "range";
1277
+ gte: string;
1278
+ lte: string;
1279
+ } | undefined;
1280
+ createdBy?: {
1281
+ type: "exact";
1282
+ term: string;
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;
1296
+ updatedAtLocation?: {
1297
+ type: "exact";
1298
+ term: string;
1299
+ } | {
1300
+ type: "within";
1301
+ location: string;
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: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1326
+ } | {
1327
+ type: "anyOf";
1328
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
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;
1343
+ updatedAt?: {
1344
+ type: "exact";
1345
+ term: string;
1346
+ } | {
1347
+ type: "range";
1348
+ gte: string;
1349
+ lte: string;
1350
+ } | undefined;
1351
+ trackingId?: {
1352
+ type: "exact";
1353
+ term: string;
1354
+ } | undefined;
1355
+ updatedAtLocation?: {
1356
+ type: "exact";
1357
+ term: string;
1358
+ } | {
1359
+ type: "within";
1360
+ location: string;
1361
+ } | undefined;
1362
+ updatedBy?: {
1363
+ type: "exact";
1364
+ term: string;
1365
+ } | undefined;
1366
+ flags?: ({
1367
+ type: "anyOf";
1368
+ terms: string[];
1369
+ } | {
1370
+ type: "not";
1371
+ term: string;
1372
+ })[] | undefined;
1373
+ eventType?: string | undefined;
1374
+ createAtLocation?: {
1375
+ type: "exact";
1376
+ term: string;
1377
+ } | {
1378
+ type: "within";
1379
+ location: string;
1380
+ } | undefined;
1381
+ }>, "many">;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ type: "and";
1384
+ clauses: {
1385
+ status?: {
1386
+ type: "exact";
1387
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1388
+ } | {
1389
+ type: "anyOf";
1390
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1391
+ } | undefined;
1392
+ data?: any;
1393
+ createdAt?: {
1394
+ type: "exact";
1395
+ term: string;
1396
+ } | {
1397
+ type: "range";
1398
+ gte: string;
1399
+ lte: string;
1400
+ } | undefined;
1401
+ createdBy?: {
1402
+ type: "exact";
1403
+ term: string;
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;
1417
+ updatedAtLocation?: {
1418
+ type: "exact";
1419
+ term: string;
1420
+ } | {
1421
+ type: "within";
1422
+ location: string;
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: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1450
+ } | {
1451
+ type: "anyOf";
1452
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
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;
1467
+ updatedAt?: {
1468
+ type: "exact";
1469
+ term: string;
1470
+ } | {
1471
+ type: "range";
1472
+ gte: string;
1473
+ lte: string;
1474
+ } | undefined;
1475
+ trackingId?: {
1476
+ type: "exact";
1477
+ term: string;
1478
+ } | undefined;
1479
+ updatedAtLocation?: {
1480
+ type: "exact";
1481
+ term: string;
1482
+ } | {
1483
+ type: "within";
1484
+ location: string;
1485
+ } | undefined;
1486
+ updatedBy?: {
1487
+ type: "exact";
1488
+ term: string;
1489
+ } | undefined;
1490
+ flags?: ({
1491
+ type: "anyOf";
1492
+ terms: string[];
1493
+ } | {
1494
+ type: "not";
1495
+ term: string;
1496
+ })[] | undefined;
1497
+ eventType?: string | undefined;
792
1498
  createAtLocation?: {
793
1499
  type: "exact";
794
1500
  term: string;
@@ -799,5 +1505,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
799
1505
  }[];
800
1506
  }>]>;
801
1507
  export type QueryType = z.infer<typeof QueryType>;
1508
+ export type QueryExpression = z.infer<typeof QueryExpression>;
802
1509
  export {};
803
1510
  //# sourceMappingURL=EventIndex.d.ts.map