@opencrvs/toolkit 1.8.0-rc.fb2e700 → 1.8.0-rc.fbb40d1

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 (41) hide show
  1. package/dist/commons/api/router.d.ts +11542 -4327
  2. package/dist/commons/conditionals/conditionals.d.ts +11 -7
  3. package/dist/commons/conditionals/validate.d.ts +4 -6
  4. package/dist/commons/events/ActionConfig.d.ts +104357 -1720
  5. package/dist/commons/events/ActionDocument.d.ts +865 -452
  6. package/dist/commons/events/ActionInput.d.ts +443 -363
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  8. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  9. package/dist/commons/events/Constants.d.ts +2 -0
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  11. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  12. package/dist/commons/events/Draft.d.ts +52 -39
  13. package/dist/commons/events/EventConfig.d.ts +50126 -1345
  14. package/dist/commons/events/EventDocument.d.ts +550 -330
  15. package/dist/commons/events/EventIndex.d.ts +1327 -18
  16. package/dist/commons/events/EventMetadata.d.ts +269 -16
  17. package/dist/commons/events/FieldConfig.d.ts +4280 -754
  18. package/dist/commons/events/FieldType.d.ts +3 -3
  19. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  20. package/dist/commons/events/FieldValue.d.ts +7 -4
  21. package/dist/commons/events/FormConfig.d.ts +43591 -439
  22. package/dist/commons/events/PageConfig.d.ts +10860 -204
  23. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  24. package/dist/commons/events/User.d.ts +31 -2
  25. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  26. package/dist/commons/events/WorkqueueConfig.d.ts +4525 -20
  27. package/dist/commons/events/defineConfig.d.ts +7940 -28
  28. package/dist/commons/events/event.d.ts +54 -0
  29. package/dist/commons/events/field.d.ts +82 -0
  30. package/dist/commons/events/index.d.ts +7 -0
  31. package/dist/commons/events/scopes.d.ts +45 -0
  32. package/dist/commons/events/serializer.d.ts +2 -0
  33. package/dist/commons/events/test.utils.d.ts +22 -51
  34. package/dist/commons/events/transactions.d.ts +1 -1
  35. package/dist/commons/events/utils.d.ts +3670 -71
  36. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  37. package/dist/conditionals/index.js +55 -35
  38. package/dist/events/index.js +3662 -1691
  39. package/dist/scopes/index.d.ts +94 -6
  40. package/dist/scopes/index.js +42 -21
  41. package/package.json +3 -2
@@ -1,6 +1,6 @@
1
- import { z } from 'zod';
1
+ import { z, ZodType } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
- id: z.ZodString;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
4
  type: z.ZodString;
5
5
  status: z.ZodNativeEnum<{
6
6
  readonly CREATED: "CREATED";
@@ -12,42 +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.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
20
+ acceptedAt: z.ZodString;
21
+ createdByRole: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ createdAt: string;
24
+ createdBy: string;
25
+ createdByRole: string;
26
+ acceptedAt: string;
27
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
28
+ }, {
29
+ createdAt: string;
30
+ createdBy: string;
31
+ createdByRole: string;
32
+ acceptedAt: string;
33
+ createdAtLocation?: string | null | undefined;
34
+ }>>>;
35
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
36
+ createdAt: z.ZodString;
37
+ createdBy: z.ZodString;
38
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
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
+ registrationNumber: string;
48
+ acceptedAt: string;
49
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
50
+ }, {
51
+ createdAt: string;
52
+ createdBy: string;
53
+ createdByRole: string;
54
+ registrationNumber: string;
55
+ acceptedAt: string;
56
+ createdAtLocation?: string | null | undefined;
57
+ }>>>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ DECLARED?: {
60
+ createdAt: string;
61
+ createdBy: string;
62
+ createdByRole: string;
63
+ acceptedAt: string;
64
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
65
+ } | null | undefined;
66
+ REGISTERED?: {
67
+ createdAt: string;
68
+ createdBy: string;
69
+ createdByRole: string;
70
+ registrationNumber: string;
71
+ acceptedAt: string;
72
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
73
+ } | null | undefined;
74
+ }, {
75
+ DECLARED?: {
76
+ createdAt: string;
77
+ createdBy: string;
78
+ createdByRole: string;
79
+ acceptedAt: string;
80
+ createdAtLocation?: string | null | undefined;
81
+ } | null | undefined;
82
+ REGISTERED?: {
83
+ createdAt: string;
84
+ createdBy: string;
85
+ createdByRole: string;
86
+ registrationNumber: string;
87
+ acceptedAt: string;
88
+ createdAtLocation?: string | null | undefined;
89
+ } | null | undefined;
90
+ }>;
15
91
  createdAt: z.ZodString;
92
+ dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
93
  createdBy: z.ZodString;
17
- createdAtLocation: z.ZodString;
18
- modifiedAt: z.ZodString;
94
+ updatedByUserRole: z.ZodString;
95
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
96
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
97
+ updatedAt: z.ZodString;
19
98
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- updatedBy: z.ZodString;
99
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
100
  trackingId: z.ZodString;
22
- 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">;
23
104
  }, {
24
- 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
+ }>]>>;
25
219
  }>, "strip", z.ZodTypeAny, {
26
220
  type: string;
27
- id: string;
221
+ id: string & z.BRAND<"UUID">;
28
222
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
29
223
  createdAt: string;
30
224
  createdBy: string;
31
- declaration: Record<string, any>;
32
- createdAtLocation: 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>;
263
+ updatedAt: string;
33
264
  trackingId: string;
34
- modifiedAt: string;
35
- updatedBy: string;
265
+ legalStatuses: {
266
+ DECLARED?: {
267
+ createdAt: string;
268
+ createdBy: string;
269
+ createdByRole: string;
270
+ acceptedAt: string;
271
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
272
+ } | null | undefined;
273
+ REGISTERED?: {
274
+ createdAt: string;
275
+ createdBy: string;
276
+ createdByRole: string;
277
+ registrationNumber: string;
278
+ acceptedAt: string;
279
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
280
+ } | null | undefined;
281
+ };
282
+ updatedByUserRole: string;
283
+ flags: string[];
284
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
36
285
  assignedTo?: string | null | undefined;
37
- registrationNumber?: string | null | undefined;
286
+ dateOfEvent?: string | null | undefined;
287
+ updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
288
+ updatedBy?: string | null | undefined;
38
289
  }, {
39
290
  type: string;
40
291
  id: string;
41
292
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
42
293
  createdAt: string;
43
294
  createdBy: string;
44
- declaration: Record<string, any>;
45
- createdAtLocation: 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>;
333
+ updatedAt: string;
46
334
  trackingId: string;
47
- modifiedAt: string;
48
- updatedBy: string;
335
+ legalStatuses: {
336
+ DECLARED?: {
337
+ createdAt: string;
338
+ createdBy: string;
339
+ createdByRole: string;
340
+ acceptedAt: string;
341
+ createdAtLocation?: string | null | undefined;
342
+ } | null | undefined;
343
+ REGISTERED?: {
344
+ createdAt: string;
345
+ createdBy: string;
346
+ createdByRole: string;
347
+ registrationNumber: string;
348
+ acceptedAt: string;
349
+ createdAtLocation?: string | null | undefined;
350
+ } | null | undefined;
351
+ };
352
+ updatedByUserRole: string;
353
+ flags: string[];
354
+ createdAtLocation?: string | null | undefined;
49
355
  assignedTo?: string | null | undefined;
50
- registrationNumber?: string | null | undefined;
356
+ dateOfEvent?: string | null | undefined;
357
+ updatedAtLocation?: string | null | undefined;
358
+ updatedBy?: string | null | undefined;
51
359
  }>;
52
360
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
53
361
  type: z.ZodString;
@@ -58,4 +366,1005 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
58
366
  }>>;
59
367
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
60
368
  export type EventIndex = z.infer<typeof EventIndex>;
369
+ export declare const Fuzzy: z.ZodObject<{
370
+ type: z.ZodLiteral<"fuzzy">;
371
+ term: z.ZodString;
372
+ }, "strip", z.ZodTypeAny, {
373
+ type: "fuzzy";
374
+ term: string;
375
+ }, {
376
+ type: "fuzzy";
377
+ term: string;
378
+ }>;
379
+ export declare const Exact: z.ZodObject<{
380
+ type: z.ZodLiteral<"exact">;
381
+ term: z.ZodString;
382
+ }, "strip", z.ZodTypeAny, {
383
+ type: "exact";
384
+ term: string;
385
+ }, {
386
+ type: "exact";
387
+ term: string;
388
+ }>;
389
+ export declare const AnyOf: z.ZodObject<{
390
+ type: z.ZodLiteral<"anyOf">;
391
+ terms: z.ZodArray<z.ZodString, "many">;
392
+ }, "strip", z.ZodTypeAny, {
393
+ type: "anyOf";
394
+ terms: string[];
395
+ }, {
396
+ type: "anyOf";
397
+ terms: string[];
398
+ }>;
399
+ export declare const ExactStatus: z.ZodObject<{
400
+ type: z.ZodLiteral<"exact">;
401
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
402
+ }, "strip", z.ZodTypeAny, {
403
+ type: "exact";
404
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
405
+ }, {
406
+ type: "exact";
407
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
408
+ }>;
409
+ export declare const AnyOfStatus: z.ZodObject<{
410
+ type: z.ZodLiteral<"anyOf">;
411
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
412
+ }, "strip", z.ZodTypeAny, {
413
+ type: "anyOf";
414
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
415
+ }, {
416
+ type: "anyOf";
417
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
418
+ }>;
419
+ export declare const Range: z.ZodObject<{
420
+ type: z.ZodLiteral<"range">;
421
+ gte: z.ZodString;
422
+ lte: z.ZodString;
423
+ }, "strip", z.ZodTypeAny, {
424
+ type: "range";
425
+ gte: string;
426
+ lte: string;
427
+ }, {
428
+ type: "range";
429
+ gte: string;
430
+ lte: string;
431
+ }>;
432
+ export declare const Not: z.ZodObject<{
433
+ type: z.ZodLiteral<"not">;
434
+ term: z.ZodString;
435
+ }, "strip", z.ZodTypeAny, {
436
+ type: "not";
437
+ term: string;
438
+ }, {
439
+ type: "not";
440
+ term: string;
441
+ }>;
442
+ export declare const Within: z.ZodObject<{
443
+ type: z.ZodLiteral<"within">;
444
+ location: z.ZodString;
445
+ }, "strip", z.ZodTypeAny, {
446
+ type: "within";
447
+ location: string;
448
+ }, {
449
+ type: "within";
450
+ location: string;
451
+ }>;
452
+ export declare const DateCondition: z.ZodUnion<[z.ZodObject<{
453
+ type: z.ZodLiteral<"exact">;
454
+ term: z.ZodString;
455
+ }, "strip", z.ZodTypeAny, {
456
+ type: "exact";
457
+ term: string;
458
+ }, {
459
+ type: "exact";
460
+ term: string;
461
+ }>, z.ZodObject<{
462
+ type: z.ZodLiteral<"range">;
463
+ gte: z.ZodString;
464
+ lte: z.ZodString;
465
+ }, "strip", z.ZodTypeAny, {
466
+ type: "range";
467
+ gte: string;
468
+ lte: string;
469
+ }, {
470
+ type: "range";
471
+ gte: string;
472
+ lte: string;
473
+ }>]>;
474
+ export declare const QueryInput: ZodType;
475
+ 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>;
476
+ type QueryMap = {
477
+ [key: string]: BaseInput | QueryMap;
478
+ };
479
+ export type QueryInputType = BaseInput | QueryMap;
480
+ export declare const QueryExpression: z.ZodObject<{
481
+ eventType: z.ZodOptional<z.ZodString>;
482
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
483
+ type: z.ZodLiteral<"anyOf">;
484
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
485
+ }, "strip", z.ZodTypeAny, {
486
+ type: "anyOf";
487
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
488
+ }, {
489
+ type: "anyOf";
490
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
491
+ }>, z.ZodObject<{
492
+ type: z.ZodLiteral<"exact">;
493
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
494
+ }, "strip", z.ZodTypeAny, {
495
+ type: "exact";
496
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
497
+ }, {
498
+ type: "exact";
499
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
500
+ }>]>>>;
501
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
502
+ type: z.ZodLiteral<"exact">;
503
+ term: z.ZodString;
504
+ }, "strip", z.ZodTypeAny, {
505
+ type: "exact";
506
+ term: string;
507
+ }, {
508
+ type: "exact";
509
+ term: string;
510
+ }>, z.ZodObject<{
511
+ type: z.ZodLiteral<"range">;
512
+ gte: z.ZodString;
513
+ lte: z.ZodString;
514
+ }, "strip", z.ZodTypeAny, {
515
+ type: "range";
516
+ gte: string;
517
+ lte: string;
518
+ }, {
519
+ type: "range";
520
+ gte: string;
521
+ lte: string;
522
+ }>]>>>;
523
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
524
+ type: z.ZodLiteral<"exact">;
525
+ term: z.ZodString;
526
+ }, "strip", z.ZodTypeAny, {
527
+ type: "exact";
528
+ term: string;
529
+ }, {
530
+ type: "exact";
531
+ term: string;
532
+ }>, z.ZodObject<{
533
+ type: z.ZodLiteral<"range">;
534
+ gte: z.ZodString;
535
+ lte: z.ZodString;
536
+ }, "strip", z.ZodTypeAny, {
537
+ type: "range";
538
+ gte: string;
539
+ lte: string;
540
+ }, {
541
+ type: "range";
542
+ gte: string;
543
+ lte: string;
544
+ }>]>>>;
545
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[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
+ }>, z.ZodObject<{
555
+ type: z.ZodLiteral<"range">;
556
+ gte: z.ZodString;
557
+ lte: z.ZodString;
558
+ }, "strip", z.ZodTypeAny, {
559
+ type: "range";
560
+ gte: string;
561
+ lte: string;
562
+ }, {
563
+ type: "range";
564
+ gte: string;
565
+ lte: string;
566
+ }>]>>>;
567
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
568
+ type: z.ZodLiteral<"within">;
569
+ location: z.ZodString;
570
+ }, "strip", z.ZodTypeAny, {
571
+ type: "within";
572
+ location: string;
573
+ }, {
574
+ type: "within";
575
+ location: string;
576
+ }>, z.ZodObject<{
577
+ type: z.ZodLiteral<"exact">;
578
+ term: z.ZodString;
579
+ }, "strip", z.ZodTypeAny, {
580
+ type: "exact";
581
+ term: string;
582
+ }, {
583
+ type: "exact";
584
+ term: string;
585
+ }>]>>>;
586
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
587
+ type: z.ZodLiteral<"within">;
588
+ location: z.ZodString;
589
+ }, "strip", z.ZodTypeAny, {
590
+ type: "within";
591
+ location: string;
592
+ }, {
593
+ type: "within";
594
+ location: string;
595
+ }>, z.ZodObject<{
596
+ type: z.ZodLiteral<"exact">;
597
+ term: z.ZodString;
598
+ }, "strip", z.ZodTypeAny, {
599
+ type: "exact";
600
+ term: string;
601
+ }, {
602
+ type: "exact";
603
+ term: string;
604
+ }>]>>>;
605
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
606
+ type: z.ZodLiteral<"within">;
607
+ location: z.ZodString;
608
+ }, "strip", z.ZodTypeAny, {
609
+ type: "within";
610
+ location: string;
611
+ }, {
612
+ type: "within";
613
+ location: string;
614
+ }>, z.ZodObject<{
615
+ type: z.ZodLiteral<"exact">;
616
+ term: z.ZodString;
617
+ }, "strip", z.ZodTypeAny, {
618
+ type: "exact";
619
+ term: string;
620
+ }, {
621
+ type: "exact";
622
+ term: string;
623
+ }>]>>>;
624
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
625
+ type: z.ZodLiteral<"exact">;
626
+ term: z.ZodString;
627
+ }, "strip", z.ZodTypeAny, {
628
+ type: "exact";
629
+ term: string;
630
+ }, {
631
+ type: "exact";
632
+ term: string;
633
+ }>>>;
634
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
635
+ type: z.ZodLiteral<"exact">;
636
+ term: z.ZodString;
637
+ }, "strip", z.ZodTypeAny, {
638
+ type: "exact";
639
+ term: string;
640
+ }, {
641
+ type: "exact";
642
+ term: string;
643
+ }>>>;
644
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
645
+ type: z.ZodLiteral<"exact">;
646
+ term: z.ZodString;
647
+ }, "strip", z.ZodTypeAny, {
648
+ type: "exact";
649
+ term: string;
650
+ }, {
651
+ type: "exact";
652
+ term: string;
653
+ }>>>;
654
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
655
+ type: z.ZodLiteral<"exact">;
656
+ term: z.ZodString;
657
+ }, "strip", z.ZodTypeAny, {
658
+ type: "exact";
659
+ term: string;
660
+ }, {
661
+ type: "exact";
662
+ term: string;
663
+ }>>>;
664
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
665
+ type: z.ZodLiteral<"anyOf">;
666
+ terms: z.ZodArray<z.ZodString, "many">;
667
+ }, "strip", z.ZodTypeAny, {
668
+ type: "anyOf";
669
+ terms: string[];
670
+ }, {
671
+ type: "anyOf";
672
+ terms: string[];
673
+ }>, z.ZodObject<{
674
+ type: z.ZodLiteral<"not">;
675
+ term: z.ZodString;
676
+ }, "strip", z.ZodTypeAny, {
677
+ type: "not";
678
+ term: string;
679
+ }, {
680
+ type: "not";
681
+ term: string;
682
+ }>]>, "many">>>;
683
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
684
+ }, "strip", z.ZodTypeAny, {
685
+ status?: {
686
+ type: "exact";
687
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
688
+ } | {
689
+ type: "anyOf";
690
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
691
+ } | undefined;
692
+ data?: any;
693
+ createdAt?: {
694
+ type: "exact";
695
+ term: string;
696
+ } | {
697
+ type: "range";
698
+ gte: string;
699
+ lte: string;
700
+ } | undefined;
701
+ createdBy?: {
702
+ type: "exact";
703
+ term: string;
704
+ } | undefined;
705
+ createdAtLocation?: {
706
+ type: "exact";
707
+ term: string;
708
+ } | {
709
+ type: "within";
710
+ location: string;
711
+ } | undefined;
712
+ assignedTo?: {
713
+ type: "exact";
714
+ term: string;
715
+ } | undefined;
716
+ updatedAt?: {
717
+ type: "exact";
718
+ term: string;
719
+ } | {
720
+ type: "range";
721
+ gte: string;
722
+ lte: string;
723
+ } | undefined;
724
+ trackingId?: {
725
+ type: "exact";
726
+ term: string;
727
+ } | undefined;
728
+ updatedAtLocation?: {
729
+ type: "exact";
730
+ term: string;
731
+ } | {
732
+ type: "within";
733
+ location: string;
734
+ } | undefined;
735
+ updatedBy?: {
736
+ type: "exact";
737
+ term: string;
738
+ } | undefined;
739
+ flags?: ({
740
+ type: "anyOf";
741
+ terms: string[];
742
+ } | {
743
+ type: "not";
744
+ term: string;
745
+ })[] | undefined;
746
+ eventType?: string | undefined;
747
+ 'legalStatus.REGISTERED.createdAt'?: {
748
+ type: "exact";
749
+ term: string;
750
+ } | {
751
+ type: "range";
752
+ gte: string;
753
+ lte: string;
754
+ } | undefined;
755
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
756
+ type: "exact";
757
+ term: string;
758
+ } | {
759
+ type: "within";
760
+ location: string;
761
+ } | undefined;
762
+ }, {
763
+ status?: {
764
+ type: "exact";
765
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
766
+ } | {
767
+ type: "anyOf";
768
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
769
+ } | undefined;
770
+ data?: any;
771
+ createdAt?: {
772
+ type: "exact";
773
+ term: string;
774
+ } | {
775
+ type: "range";
776
+ gte: string;
777
+ lte: string;
778
+ } | undefined;
779
+ createdBy?: {
780
+ type: "exact";
781
+ term: string;
782
+ } | undefined;
783
+ createdAtLocation?: {
784
+ type: "exact";
785
+ term: string;
786
+ } | {
787
+ type: "within";
788
+ location: string;
789
+ } | undefined;
790
+ assignedTo?: {
791
+ type: "exact";
792
+ term: string;
793
+ } | undefined;
794
+ updatedAt?: {
795
+ type: "exact";
796
+ term: string;
797
+ } | {
798
+ type: "range";
799
+ gte: string;
800
+ lte: string;
801
+ } | undefined;
802
+ trackingId?: {
803
+ type: "exact";
804
+ term: string;
805
+ } | undefined;
806
+ updatedAtLocation?: {
807
+ type: "exact";
808
+ term: string;
809
+ } | {
810
+ type: "within";
811
+ location: string;
812
+ } | undefined;
813
+ updatedBy?: {
814
+ type: "exact";
815
+ term: string;
816
+ } | undefined;
817
+ flags?: ({
818
+ type: "anyOf";
819
+ terms: string[];
820
+ } | {
821
+ type: "not";
822
+ term: string;
823
+ })[] | undefined;
824
+ eventType?: string | undefined;
825
+ 'legalStatus.REGISTERED.createdAt'?: {
826
+ type: "exact";
827
+ term: string;
828
+ } | {
829
+ type: "range";
830
+ gte: string;
831
+ lte: string;
832
+ } | undefined;
833
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
834
+ type: "exact";
835
+ term: string;
836
+ } | {
837
+ type: "within";
838
+ location: string;
839
+ } | undefined;
840
+ }>;
841
+ export declare const QueryType: z.ZodObject<{
842
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
843
+ clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
844
+ eventType: z.ZodOptional<z.ZodString>;
845
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
846
+ type: z.ZodLiteral<"anyOf">;
847
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
848
+ }, "strip", z.ZodTypeAny, {
849
+ type: "anyOf";
850
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
851
+ }, {
852
+ type: "anyOf";
853
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
854
+ }>, z.ZodObject<{
855
+ type: z.ZodLiteral<"exact">;
856
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
857
+ }, "strip", z.ZodTypeAny, {
858
+ type: "exact";
859
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
860
+ }, {
861
+ type: "exact";
862
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
863
+ }>]>>>;
864
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
865
+ type: z.ZodLiteral<"exact">;
866
+ term: z.ZodString;
867
+ }, "strip", z.ZodTypeAny, {
868
+ type: "exact";
869
+ term: string;
870
+ }, {
871
+ type: "exact";
872
+ term: string;
873
+ }>, z.ZodObject<{
874
+ type: z.ZodLiteral<"range">;
875
+ gte: z.ZodString;
876
+ lte: z.ZodString;
877
+ }, "strip", z.ZodTypeAny, {
878
+ type: "range";
879
+ gte: string;
880
+ lte: string;
881
+ }, {
882
+ type: "range";
883
+ gte: string;
884
+ lte: string;
885
+ }>]>>>;
886
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
887
+ type: z.ZodLiteral<"exact">;
888
+ term: z.ZodString;
889
+ }, "strip", z.ZodTypeAny, {
890
+ type: "exact";
891
+ term: string;
892
+ }, {
893
+ type: "exact";
894
+ term: string;
895
+ }>, z.ZodObject<{
896
+ type: z.ZodLiteral<"range">;
897
+ gte: z.ZodString;
898
+ lte: z.ZodString;
899
+ }, "strip", z.ZodTypeAny, {
900
+ type: "range";
901
+ gte: string;
902
+ lte: string;
903
+ }, {
904
+ type: "range";
905
+ gte: string;
906
+ lte: string;
907
+ }>]>>>;
908
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
909
+ type: z.ZodLiteral<"exact">;
910
+ term: z.ZodString;
911
+ }, "strip", z.ZodTypeAny, {
912
+ type: "exact";
913
+ term: string;
914
+ }, {
915
+ type: "exact";
916
+ term: string;
917
+ }>, z.ZodObject<{
918
+ type: z.ZodLiteral<"range">;
919
+ gte: z.ZodString;
920
+ lte: z.ZodString;
921
+ }, "strip", z.ZodTypeAny, {
922
+ type: "range";
923
+ gte: string;
924
+ lte: string;
925
+ }, {
926
+ type: "range";
927
+ gte: string;
928
+ lte: string;
929
+ }>]>>>;
930
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
931
+ type: z.ZodLiteral<"within">;
932
+ location: z.ZodString;
933
+ }, "strip", z.ZodTypeAny, {
934
+ type: "within";
935
+ location: string;
936
+ }, {
937
+ type: "within";
938
+ location: string;
939
+ }>, z.ZodObject<{
940
+ type: z.ZodLiteral<"exact">;
941
+ term: z.ZodString;
942
+ }, "strip", z.ZodTypeAny, {
943
+ type: "exact";
944
+ term: string;
945
+ }, {
946
+ type: "exact";
947
+ term: string;
948
+ }>]>>>;
949
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
950
+ type: z.ZodLiteral<"within">;
951
+ location: z.ZodString;
952
+ }, "strip", z.ZodTypeAny, {
953
+ type: "within";
954
+ location: string;
955
+ }, {
956
+ type: "within";
957
+ location: string;
958
+ }>, z.ZodObject<{
959
+ type: z.ZodLiteral<"exact">;
960
+ term: z.ZodString;
961
+ }, "strip", z.ZodTypeAny, {
962
+ type: "exact";
963
+ term: string;
964
+ }, {
965
+ type: "exact";
966
+ term: string;
967
+ }>]>>>;
968
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
969
+ type: z.ZodLiteral<"within">;
970
+ location: z.ZodString;
971
+ }, "strip", z.ZodTypeAny, {
972
+ type: "within";
973
+ location: string;
974
+ }, {
975
+ type: "within";
976
+ location: string;
977
+ }>, z.ZodObject<{
978
+ type: z.ZodLiteral<"exact">;
979
+ term: z.ZodString;
980
+ }, "strip", z.ZodTypeAny, {
981
+ type: "exact";
982
+ term: string;
983
+ }, {
984
+ type: "exact";
985
+ term: string;
986
+ }>]>>>;
987
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
988
+ type: z.ZodLiteral<"exact">;
989
+ term: z.ZodString;
990
+ }, "strip", z.ZodTypeAny, {
991
+ type: "exact";
992
+ term: string;
993
+ }, {
994
+ type: "exact";
995
+ term: string;
996
+ }>>>;
997
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
998
+ type: z.ZodLiteral<"exact">;
999
+ term: z.ZodString;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ type: "exact";
1002
+ term: string;
1003
+ }, {
1004
+ type: "exact";
1005
+ term: string;
1006
+ }>>>;
1007
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1008
+ type: z.ZodLiteral<"exact">;
1009
+ term: z.ZodString;
1010
+ }, "strip", z.ZodTypeAny, {
1011
+ type: "exact";
1012
+ term: string;
1013
+ }, {
1014
+ type: "exact";
1015
+ term: string;
1016
+ }>>>;
1017
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1018
+ type: z.ZodLiteral<"exact">;
1019
+ term: z.ZodString;
1020
+ }, "strip", z.ZodTypeAny, {
1021
+ type: "exact";
1022
+ term: string;
1023
+ }, {
1024
+ type: "exact";
1025
+ term: string;
1026
+ }>>>;
1027
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1028
+ type: z.ZodLiteral<"anyOf">;
1029
+ terms: z.ZodArray<z.ZodString, "many">;
1030
+ }, "strip", z.ZodTypeAny, {
1031
+ type: "anyOf";
1032
+ terms: string[];
1033
+ }, {
1034
+ type: "anyOf";
1035
+ terms: string[];
1036
+ }>, z.ZodObject<{
1037
+ type: z.ZodLiteral<"not">;
1038
+ term: z.ZodString;
1039
+ }, "strip", z.ZodTypeAny, {
1040
+ type: "not";
1041
+ term: string;
1042
+ }, {
1043
+ type: "not";
1044
+ term: string;
1045
+ }>]>, "many">>>;
1046
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ status?: {
1049
+ type: "exact";
1050
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1051
+ } | {
1052
+ type: "anyOf";
1053
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1054
+ } | undefined;
1055
+ data?: any;
1056
+ createdAt?: {
1057
+ type: "exact";
1058
+ term: string;
1059
+ } | {
1060
+ type: "range";
1061
+ gte: string;
1062
+ lte: string;
1063
+ } | undefined;
1064
+ createdBy?: {
1065
+ type: "exact";
1066
+ term: string;
1067
+ } | undefined;
1068
+ createdAtLocation?: {
1069
+ type: "exact";
1070
+ term: string;
1071
+ } | {
1072
+ type: "within";
1073
+ location: string;
1074
+ } | undefined;
1075
+ assignedTo?: {
1076
+ type: "exact";
1077
+ term: string;
1078
+ } | undefined;
1079
+ updatedAt?: {
1080
+ type: "exact";
1081
+ term: string;
1082
+ } | {
1083
+ type: "range";
1084
+ gte: string;
1085
+ lte: string;
1086
+ } | undefined;
1087
+ trackingId?: {
1088
+ type: "exact";
1089
+ term: string;
1090
+ } | undefined;
1091
+ updatedAtLocation?: {
1092
+ type: "exact";
1093
+ term: string;
1094
+ } | {
1095
+ type: "within";
1096
+ location: string;
1097
+ } | undefined;
1098
+ updatedBy?: {
1099
+ type: "exact";
1100
+ term: string;
1101
+ } | undefined;
1102
+ flags?: ({
1103
+ type: "anyOf";
1104
+ terms: string[];
1105
+ } | {
1106
+ type: "not";
1107
+ term: string;
1108
+ })[] | undefined;
1109
+ eventType?: string | undefined;
1110
+ 'legalStatus.REGISTERED.createdAt'?: {
1111
+ type: "exact";
1112
+ term: string;
1113
+ } | {
1114
+ type: "range";
1115
+ gte: string;
1116
+ lte: string;
1117
+ } | undefined;
1118
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1119
+ type: "exact";
1120
+ term: string;
1121
+ } | {
1122
+ type: "within";
1123
+ location: string;
1124
+ } | undefined;
1125
+ }, {
1126
+ status?: {
1127
+ type: "exact";
1128
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1129
+ } | {
1130
+ type: "anyOf";
1131
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1132
+ } | undefined;
1133
+ data?: any;
1134
+ createdAt?: {
1135
+ type: "exact";
1136
+ term: string;
1137
+ } | {
1138
+ type: "range";
1139
+ gte: string;
1140
+ lte: string;
1141
+ } | undefined;
1142
+ createdBy?: {
1143
+ type: "exact";
1144
+ term: string;
1145
+ } | undefined;
1146
+ createdAtLocation?: {
1147
+ type: "exact";
1148
+ term: string;
1149
+ } | {
1150
+ type: "within";
1151
+ location: string;
1152
+ } | undefined;
1153
+ assignedTo?: {
1154
+ type: "exact";
1155
+ term: string;
1156
+ } | undefined;
1157
+ updatedAt?: {
1158
+ type: "exact";
1159
+ term: string;
1160
+ } | {
1161
+ type: "range";
1162
+ gte: string;
1163
+ lte: string;
1164
+ } | undefined;
1165
+ trackingId?: {
1166
+ type: "exact";
1167
+ term: string;
1168
+ } | undefined;
1169
+ updatedAtLocation?: {
1170
+ type: "exact";
1171
+ term: string;
1172
+ } | {
1173
+ type: "within";
1174
+ location: string;
1175
+ } | undefined;
1176
+ updatedBy?: {
1177
+ type: "exact";
1178
+ term: string;
1179
+ } | undefined;
1180
+ flags?: ({
1181
+ type: "anyOf";
1182
+ terms: string[];
1183
+ } | {
1184
+ type: "not";
1185
+ term: string;
1186
+ })[] | undefined;
1187
+ eventType?: string | undefined;
1188
+ 'legalStatus.REGISTERED.createdAt'?: {
1189
+ type: "exact";
1190
+ term: string;
1191
+ } | {
1192
+ type: "range";
1193
+ gte: string;
1194
+ lte: string;
1195
+ } | undefined;
1196
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1197
+ type: "exact";
1198
+ term: string;
1199
+ } | {
1200
+ type: "within";
1201
+ location: string;
1202
+ } | undefined;
1203
+ }>, "many">, {
1204
+ status?: {
1205
+ type: "exact";
1206
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1207
+ } | {
1208
+ type: "anyOf";
1209
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1210
+ } | undefined;
1211
+ data?: any;
1212
+ createdAt?: {
1213
+ type: "exact";
1214
+ term: string;
1215
+ } | {
1216
+ type: "range";
1217
+ gte: string;
1218
+ lte: string;
1219
+ } | undefined;
1220
+ createdBy?: {
1221
+ type: "exact";
1222
+ term: string;
1223
+ } | undefined;
1224
+ createdAtLocation?: {
1225
+ type: "exact";
1226
+ term: string;
1227
+ } | {
1228
+ type: "within";
1229
+ location: string;
1230
+ } | undefined;
1231
+ assignedTo?: {
1232
+ type: "exact";
1233
+ term: string;
1234
+ } | undefined;
1235
+ updatedAt?: {
1236
+ type: "exact";
1237
+ term: string;
1238
+ } | {
1239
+ type: "range";
1240
+ gte: string;
1241
+ lte: string;
1242
+ } | undefined;
1243
+ trackingId?: {
1244
+ type: "exact";
1245
+ term: string;
1246
+ } | undefined;
1247
+ updatedAtLocation?: {
1248
+ type: "exact";
1249
+ term: string;
1250
+ } | {
1251
+ type: "within";
1252
+ location: string;
1253
+ } | undefined;
1254
+ updatedBy?: {
1255
+ type: "exact";
1256
+ term: string;
1257
+ } | undefined;
1258
+ flags?: ({
1259
+ type: "anyOf";
1260
+ terms: string[];
1261
+ } | {
1262
+ type: "not";
1263
+ term: string;
1264
+ })[] | undefined;
1265
+ eventType?: string | undefined;
1266
+ 'legalStatus.REGISTERED.createdAt'?: {
1267
+ type: "exact";
1268
+ term: string;
1269
+ } | {
1270
+ type: "range";
1271
+ gte: string;
1272
+ lte: string;
1273
+ } | undefined;
1274
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1275
+ type: "exact";
1276
+ term: string;
1277
+ } | {
1278
+ type: "within";
1279
+ location: string;
1280
+ } | undefined;
1281
+ }[], unknown>;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ type: "and" | "or";
1284
+ clauses: {
1285
+ status?: {
1286
+ type: "exact";
1287
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1288
+ } | {
1289
+ type: "anyOf";
1290
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1291
+ } | undefined;
1292
+ data?: any;
1293
+ createdAt?: {
1294
+ type: "exact";
1295
+ term: string;
1296
+ } | {
1297
+ type: "range";
1298
+ gte: string;
1299
+ lte: string;
1300
+ } | undefined;
1301
+ createdBy?: {
1302
+ type: "exact";
1303
+ term: string;
1304
+ } | undefined;
1305
+ createdAtLocation?: {
1306
+ type: "exact";
1307
+ term: string;
1308
+ } | {
1309
+ type: "within";
1310
+ location: string;
1311
+ } | undefined;
1312
+ assignedTo?: {
1313
+ type: "exact";
1314
+ term: string;
1315
+ } | undefined;
1316
+ updatedAt?: {
1317
+ type: "exact";
1318
+ term: string;
1319
+ } | {
1320
+ type: "range";
1321
+ gte: string;
1322
+ lte: string;
1323
+ } | undefined;
1324
+ trackingId?: {
1325
+ type: "exact";
1326
+ term: string;
1327
+ } | undefined;
1328
+ updatedAtLocation?: {
1329
+ type: "exact";
1330
+ term: string;
1331
+ } | {
1332
+ type: "within";
1333
+ location: string;
1334
+ } | undefined;
1335
+ updatedBy?: {
1336
+ type: "exact";
1337
+ term: string;
1338
+ } | undefined;
1339
+ flags?: ({
1340
+ type: "anyOf";
1341
+ terms: string[];
1342
+ } | {
1343
+ type: "not";
1344
+ term: string;
1345
+ })[] | undefined;
1346
+ eventType?: string | undefined;
1347
+ 'legalStatus.REGISTERED.createdAt'?: {
1348
+ type: "exact";
1349
+ term: string;
1350
+ } | {
1351
+ type: "range";
1352
+ gte: string;
1353
+ lte: string;
1354
+ } | undefined;
1355
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1356
+ type: "exact";
1357
+ term: string;
1358
+ } | {
1359
+ type: "within";
1360
+ location: string;
1361
+ } | undefined;
1362
+ }[];
1363
+ }, {
1364
+ type: "and" | "or";
1365
+ clauses?: unknown;
1366
+ }>;
1367
+ export type QueryType = z.infer<typeof QueryType>;
1368
+ export type QueryExpression = z.infer<typeof QueryExpression>;
1369
+ export {};
61
1370
  //# sourceMappingURL=EventIndex.d.ts.map