@opencrvs/toolkit 1.8.0-rc.f7a451a → 1.8.0-rc.f7aaf07

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 (38) hide show
  1. package/dist/commons/api/router.d.ts +14932 -5124
  2. package/dist/commons/conditionals/conditionals.d.ts +6 -2
  3. package/dist/commons/conditionals/validate.d.ts +6 -0
  4. package/dist/commons/events/ActionConfig.d.ts +32976 -12647
  5. package/dist/commons/events/ActionDocument.d.ts +2005 -309
  6. package/dist/commons/events/ActionInput.d.ts +1455 -183
  7. package/dist/commons/events/ActionType.d.ts +6 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +279 -3
  9. package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +314 -254
  12. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  13. package/dist/commons/events/Draft.d.ts +127 -21
  14. package/dist/commons/events/EventConfig.d.ts +22415 -12245
  15. package/dist/commons/events/EventDocument.d.ts +1308 -232
  16. package/dist/commons/events/EventIndex.d.ts +616 -423
  17. package/dist/commons/events/EventMetadata.d.ts +104 -81
  18. package/dist/commons/events/FieldConfig.d.ts +2082 -1191
  19. package/dist/commons/events/FieldType.d.ts +4 -1
  20. package/dist/commons/events/FieldTypeMapping.d.ts +94 -52
  21. package/dist/commons/events/FieldValue.d.ts +43 -5
  22. package/dist/commons/events/FormConfig.d.ts +10259 -4769
  23. package/dist/commons/events/PageConfig.d.ts +3480 -2134
  24. package/dist/commons/events/SummaryConfig.d.ts +0 -5
  25. package/dist/commons/events/WorkqueueColumnConfig.d.ts +17 -6
  26. package/dist/commons/events/WorkqueueConfig.d.ts +2589 -1640
  27. package/dist/commons/events/defineConfig.d.ts +2439 -679
  28. package/dist/commons/events/event.d.ts +2 -2
  29. package/dist/commons/events/field.d.ts +10 -10
  30. package/dist/commons/events/index.d.ts +2 -0
  31. package/dist/commons/events/scopes.d.ts +1 -2
  32. package/dist/commons/events/test.utils.d.ts +158 -40
  33. package/dist/commons/events/utils.d.ts +10021 -326
  34. package/dist/conditionals/index.js +26 -6
  35. package/dist/events/index.js +2401 -1217
  36. package/dist/scopes/index.d.ts +6 -2
  37. package/dist/scopes/index.js +70 -17
  38. package/package.json +1 -1
@@ -1,99 +1,111 @@
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;
5
4
  type: z.ZodString;
6
- status: z.ZodNativeEnum<{
7
- readonly CREATED: "CREATED";
8
- readonly NOTIFIED: "NOTIFIED";
9
- readonly DECLARED: "DECLARED";
10
- readonly VALIDATED: "VALIDATED";
11
- readonly REGISTERED: "REGISTERED";
12
- readonly CERTIFIED: "CERTIFIED";
13
- readonly REJECTED: "REJECTED";
14
- readonly ARCHIVED: "ARCHIVED";
15
- }>;
5
+ status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
16
6
  legalStatuses: z.ZodObject<{
17
7
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
8
  createdAt: z.ZodString;
19
9
  createdBy: z.ZodString;
20
- createdAtLocation: z.ZodString;
10
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
21
12
  acceptedAt: z.ZodString;
22
13
  createdByRole: z.ZodString;
14
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
15
  }, "strip", z.ZodTypeAny, {
24
16
  createdAt: string;
25
17
  createdBy: string;
26
18
  createdByRole: string;
27
- createdAtLocation: string;
28
19
  acceptedAt: string;
20
+ createdByUserType?: "system" | "user" | null | undefined;
21
+ createdBySignature?: string | null | undefined;
22
+ createdAtLocation?: string | null | undefined;
29
23
  }, {
30
24
  createdAt: string;
31
25
  createdBy: string;
32
26
  createdByRole: string;
33
- createdAtLocation: string;
34
27
  acceptedAt: string;
28
+ createdByUserType?: "system" | "user" | null | undefined;
29
+ createdBySignature?: string | null | undefined;
30
+ createdAtLocation?: string | null | undefined;
35
31
  }>>>;
36
32
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
37
33
  createdAt: z.ZodString;
38
34
  createdBy: z.ZodString;
39
- createdAtLocation: z.ZodString;
35
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
40
37
  acceptedAt: z.ZodString;
41
38
  createdByRole: z.ZodString;
39
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
40
  }, {
43
41
  registrationNumber: z.ZodString;
44
42
  }>, "strip", z.ZodTypeAny, {
45
43
  createdAt: string;
46
44
  createdBy: string;
47
45
  createdByRole: string;
48
- createdAtLocation: string;
49
46
  registrationNumber: string;
50
47
  acceptedAt: string;
48
+ createdByUserType?: "system" | "user" | null | undefined;
49
+ createdBySignature?: string | null | undefined;
50
+ createdAtLocation?: string | null | undefined;
51
51
  }, {
52
52
  createdAt: string;
53
53
  createdBy: string;
54
54
  createdByRole: string;
55
- createdAtLocation: string;
56
55
  registrationNumber: string;
57
56
  acceptedAt: string;
57
+ createdByUserType?: "system" | "user" | null | undefined;
58
+ createdBySignature?: string | null | undefined;
59
+ createdAtLocation?: string | null | undefined;
58
60
  }>>>;
59
61
  }, "strip", z.ZodTypeAny, {
60
62
  DECLARED?: {
61
63
  createdAt: string;
62
64
  createdBy: string;
63
65
  createdByRole: string;
64
- createdAtLocation: string;
65
66
  acceptedAt: string;
67
+ createdByUserType?: "system" | "user" | null | undefined;
68
+ createdBySignature?: string | null | undefined;
69
+ createdAtLocation?: string | null | undefined;
66
70
  } | null | undefined;
67
71
  REGISTERED?: {
68
72
  createdAt: string;
69
73
  createdBy: string;
70
74
  createdByRole: string;
71
- createdAtLocation: string;
72
75
  registrationNumber: string;
73
76
  acceptedAt: string;
77
+ createdByUserType?: "system" | "user" | null | undefined;
78
+ createdBySignature?: string | null | undefined;
79
+ createdAtLocation?: string | null | undefined;
74
80
  } | null | undefined;
75
81
  }, {
76
82
  DECLARED?: {
77
83
  createdAt: string;
78
84
  createdBy: string;
79
85
  createdByRole: string;
80
- createdAtLocation: string;
81
86
  acceptedAt: string;
87
+ createdByUserType?: "system" | "user" | null | undefined;
88
+ createdBySignature?: string | null | undefined;
89
+ createdAtLocation?: string | null | undefined;
82
90
  } | null | undefined;
83
91
  REGISTERED?: {
84
92
  createdAt: string;
85
93
  createdBy: string;
86
94
  createdByRole: string;
87
- createdAtLocation: string;
88
95
  registrationNumber: string;
89
96
  acceptedAt: string;
97
+ createdByUserType?: "system" | "user" | null | undefined;
98
+ createdBySignature?: string | null | undefined;
99
+ createdAtLocation?: string | null | undefined;
90
100
  } | null | undefined;
91
101
  }>;
92
102
  createdAt: z.ZodString;
93
103
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
104
  createdBy: z.ZodString;
105
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
95
106
  updatedByUserRole: z.ZodString;
96
- createdAtLocation: z.ZodString;
107
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
109
  updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
110
  updatedAt: z.ZodString;
99
111
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -216,12 +228,35 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
216
228
  addressLine2?: string | undefined;
217
229
  addressLine3?: string | undefined;
218
230
  postcodeOrZip?: string | undefined;
219
- }>]>>;
231
+ }>, z.ZodObject<{
232
+ firstname: z.ZodString;
233
+ surname: z.ZodString;
234
+ middlename: z.ZodOptional<z.ZodString>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ firstname: string;
237
+ surname: string;
238
+ middlename?: string | undefined;
239
+ }, {
240
+ firstname: string;
241
+ surname: string;
242
+ middlename?: string | undefined;
243
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
244
+ firstname: z.ZodString;
245
+ surname: z.ZodString;
246
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ firstname: string;
249
+ surname: string;
250
+ middlename?: string | null | undefined;
251
+ }, {
252
+ firstname: string;
253
+ surname: string;
254
+ middlename?: string | null | undefined;
255
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
220
256
  }>, "strip", z.ZodTypeAny, {
221
257
  type: string;
222
258
  id: string;
223
259
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
224
- title: string;
225
260
  createdAt: string;
226
261
  createdBy: string;
227
262
  declaration: Record<string, string | number | boolean | {
@@ -246,6 +281,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
246
281
  province: string;
247
282
  urbanOrRural: "RURAL";
248
283
  village?: string | undefined;
284
+ } | {
285
+ firstname: string;
286
+ surname: string;
287
+ middlename?: string | undefined;
288
+ } | {
289
+ firstname: string;
290
+ surname: string;
291
+ middlename?: string | null | undefined;
249
292
  } | {
250
293
  country: string;
251
294
  state: string;
@@ -261,8 +304,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
261
304
  option: string;
262
305
  filename: string;
263
306
  originalFilename: string;
264
- }[] | [string, string] | undefined>;
265
- createdAtLocation: string;
307
+ }[] | [string, string] | null | undefined>;
266
308
  updatedAt: string;
267
309
  trackingId: string;
268
310
  legalStatuses: {
@@ -270,20 +312,27 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
270
312
  createdAt: string;
271
313
  createdBy: string;
272
314
  createdByRole: string;
273
- createdAtLocation: string;
274
315
  acceptedAt: string;
316
+ createdByUserType?: "system" | "user" | null | undefined;
317
+ createdBySignature?: string | null | undefined;
318
+ createdAtLocation?: string | null | undefined;
275
319
  } | null | undefined;
276
320
  REGISTERED?: {
277
321
  createdAt: string;
278
322
  createdBy: string;
279
323
  createdByRole: string;
280
- createdAtLocation: string;
281
324
  registrationNumber: string;
282
325
  acceptedAt: string;
326
+ createdByUserType?: "system" | "user" | null | undefined;
327
+ createdBySignature?: string | null | undefined;
328
+ createdAtLocation?: string | null | undefined;
283
329
  } | null | undefined;
284
330
  };
285
331
  updatedByUserRole: string;
286
332
  flags: string[];
333
+ createdByUserType?: "system" | "user" | null | undefined;
334
+ createdBySignature?: string | null | undefined;
335
+ createdAtLocation?: string | null | undefined;
287
336
  assignedTo?: string | null | undefined;
288
337
  dateOfEvent?: string | null | undefined;
289
338
  updatedAtLocation?: string | null | undefined;
@@ -292,7 +341,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
292
341
  type: string;
293
342
  id: string;
294
343
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
295
- title: string;
296
344
  createdAt: string;
297
345
  createdBy: string;
298
346
  declaration: Record<string, string | number | boolean | {
@@ -317,6 +365,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
317
365
  province: string;
318
366
  urbanOrRural: "RURAL";
319
367
  village?: string | undefined;
368
+ } | {
369
+ firstname: string;
370
+ surname: string;
371
+ middlename?: string | undefined;
372
+ } | {
373
+ firstname: string;
374
+ surname: string;
375
+ middlename?: string | null | undefined;
320
376
  } | {
321
377
  country: string;
322
378
  state: string;
@@ -332,8 +388,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
332
388
  option: string;
333
389
  filename: string;
334
390
  originalFilename: string;
335
- }[] | [string, string] | undefined>;
336
- createdAtLocation: string;
391
+ }[] | [string, string] | null | undefined>;
337
392
  updatedAt: string;
338
393
  trackingId: string;
339
394
  legalStatuses: {
@@ -341,20 +396,27 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
341
396
  createdAt: string;
342
397
  createdBy: string;
343
398
  createdByRole: string;
344
- createdAtLocation: string;
345
399
  acceptedAt: string;
400
+ createdByUserType?: "system" | "user" | null | undefined;
401
+ createdBySignature?: string | null | undefined;
402
+ createdAtLocation?: string | null | undefined;
346
403
  } | null | undefined;
347
404
  REGISTERED?: {
348
405
  createdAt: string;
349
406
  createdBy: string;
350
407
  createdByRole: string;
351
- createdAtLocation: string;
352
408
  registrationNumber: string;
353
409
  acceptedAt: string;
410
+ createdByUserType?: "system" | "user" | null | undefined;
411
+ createdBySignature?: string | null | undefined;
412
+ createdAtLocation?: string | null | undefined;
354
413
  } | null | undefined;
355
414
  };
356
415
  updatedByUserRole: string;
357
416
  flags: string[];
417
+ createdByUserType?: "system" | "user" | null | undefined;
418
+ createdBySignature?: string | null | undefined;
419
+ createdAtLocation?: string | null | undefined;
358
420
  assignedTo?: string | null | undefined;
359
421
  dateOfEvent?: string | null | undefined;
360
422
  updatedAtLocation?: string | null | undefined;
@@ -369,7 +431,7 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
369
431
  }>>;
370
432
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
371
433
  export type EventIndex = z.infer<typeof EventIndex>;
372
- declare const Fuzzy: z.ZodObject<{
434
+ export declare const Fuzzy: z.ZodObject<{
373
435
  type: z.ZodLiteral<"fuzzy">;
374
436
  term: z.ZodString;
375
437
  }, "strip", z.ZodTypeAny, {
@@ -379,7 +441,7 @@ declare const Fuzzy: z.ZodObject<{
379
441
  type: "fuzzy";
380
442
  term: string;
381
443
  }>;
382
- declare const Exact: z.ZodObject<{
444
+ export declare const Exact: z.ZodObject<{
383
445
  type: z.ZodLiteral<"exact">;
384
446
  term: z.ZodString;
385
447
  }, "strip", z.ZodTypeAny, {
@@ -389,7 +451,17 @@ declare const Exact: z.ZodObject<{
389
451
  type: "exact";
390
452
  term: string;
391
453
  }>;
392
- declare const AnyOf: z.ZodObject<{
454
+ export declare const ExactStatus: z.ZodObject<{
455
+ type: z.ZodLiteral<"exact">;
456
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ type: "exact";
459
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
460
+ }, {
461
+ type: "exact";
462
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
463
+ }>;
464
+ export declare const AnyOf: z.ZodObject<{
393
465
  type: z.ZodLiteral<"anyOf">;
394
466
  terms: z.ZodArray<z.ZodString, "many">;
395
467
  }, "strip", z.ZodTypeAny, {
@@ -399,7 +471,17 @@ declare const AnyOf: z.ZodObject<{
399
471
  type: "anyOf";
400
472
  terms: string[];
401
473
  }>;
402
- declare const Range: z.ZodObject<{
474
+ export declare const AnyOfStatus: z.ZodObject<{
475
+ type: z.ZodLiteral<"anyOf">;
476
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
477
+ }, "strip", z.ZodTypeAny, {
478
+ type: "anyOf";
479
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
480
+ }, {
481
+ type: "anyOf";
482
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
483
+ }>;
484
+ export declare const Range: z.ZodObject<{
403
485
  type: z.ZodLiteral<"range">;
404
486
  gte: z.ZodString;
405
487
  lte: z.ZodString;
@@ -412,7 +494,7 @@ declare const Range: z.ZodObject<{
412
494
  gte: string;
413
495
  lte: string;
414
496
  }>;
415
- declare const Not: z.ZodObject<{
497
+ export declare const Not: z.ZodObject<{
416
498
  type: z.ZodLiteral<"not">;
417
499
  term: z.ZodString;
418
500
  }, "strip", z.ZodTypeAny, {
@@ -422,7 +504,7 @@ declare const Not: z.ZodObject<{
422
504
  type: "not";
423
505
  term: string;
424
506
  }>;
425
- declare const Within: z.ZodObject<{
507
+ export declare const Within: z.ZodObject<{
426
508
  type: z.ZodLiteral<"within">;
427
509
  location: z.ZodString;
428
510
  }, "strip", z.ZodTypeAny, {
@@ -432,14 +514,69 @@ declare const Within: z.ZodObject<{
432
514
  type: "within";
433
515
  location: string;
434
516
  }>;
517
+ export declare const RangeDate: z.ZodObject<z.objectUtil.extendShape<{
518
+ type: z.ZodLiteral<"range">;
519
+ gte: z.ZodString;
520
+ lte: z.ZodString;
521
+ }, {
522
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
523
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
524
+ }>, "strip", z.ZodTypeAny, {
525
+ type: "range";
526
+ gte: string;
527
+ lte: string;
528
+ }, {
529
+ type: "range";
530
+ gte: string;
531
+ lte: string;
532
+ }>;
533
+ export declare const ExactDate: z.ZodObject<z.objectUtil.extendShape<{
534
+ type: z.ZodLiteral<"exact">;
535
+ term: z.ZodString;
536
+ }, {
537
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
538
+ }>, "strip", z.ZodTypeAny, {
539
+ type: "exact";
540
+ term: string;
541
+ }, {
542
+ type: "exact";
543
+ term: string;
544
+ }>;
545
+ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
546
+ type: z.ZodLiteral<"exact">;
547
+ term: z.ZodString;
548
+ }, {
549
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
550
+ }>, "strip", z.ZodTypeAny, {
551
+ type: "exact";
552
+ term: string;
553
+ }, {
554
+ type: "exact";
555
+ term: string;
556
+ }>, z.ZodObject<z.objectUtil.extendShape<{
557
+ type: z.ZodLiteral<"range">;
558
+ gte: z.ZodString;
559
+ lte: z.ZodString;
560
+ }, {
561
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
562
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
563
+ }>, "strip", z.ZodTypeAny, {
564
+ type: "range";
565
+ gte: string;
566
+ lte: string;
567
+ }, {
568
+ type: "range";
569
+ gte: string;
570
+ lte: string;
571
+ }>]>;
435
572
  export declare const QueryInput: ZodType;
436
573
  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>;
437
574
  type QueryMap = {
438
575
  [key: string]: BaseInput | QueryMap;
439
576
  };
440
577
  export type QueryInputType = BaseInput | QueryMap;
441
- export declare const QueryExpression: z.ZodObject<{
442
- title: z.ZodOptional<z.ZodString>;
578
+ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
579
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
443
580
  eventType: z.ZodOptional<z.ZodString>;
444
581
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
445
582
  type: z.ZodLiteral<"anyOf">;
@@ -460,20 +597,25 @@ export declare const QueryExpression: z.ZodObject<{
460
597
  type: "exact";
461
598
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
462
599
  }>]>>>;
463
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
600
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
464
601
  type: z.ZodLiteral<"exact">;
465
602
  term: z.ZodString;
466
- }, "strip", z.ZodTypeAny, {
603
+ }, {
604
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
605
+ }>, "strip", z.ZodTypeAny, {
467
606
  type: "exact";
468
607
  term: string;
469
608
  }, {
470
609
  type: "exact";
471
610
  term: string;
472
- }>, z.ZodObject<{
611
+ }>, z.ZodObject<z.objectUtil.extendShape<{
473
612
  type: z.ZodLiteral<"range">;
474
613
  gte: z.ZodString;
475
614
  lte: z.ZodString;
476
- }, "strip", z.ZodTypeAny, {
615
+ }, {
616
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
617
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
618
+ }>, "strip", z.ZodTypeAny, {
477
619
  type: "range";
478
620
  gte: string;
479
621
  lte: string;
@@ -482,20 +624,25 @@ export declare const QueryExpression: z.ZodObject<{
482
624
  gte: string;
483
625
  lte: string;
484
626
  }>]>>>;
485
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
627
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
486
628
  type: z.ZodLiteral<"exact">;
487
629
  term: z.ZodString;
488
- }, "strip", z.ZodTypeAny, {
630
+ }, {
631
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
632
+ }>, "strip", z.ZodTypeAny, {
489
633
  type: "exact";
490
634
  term: string;
491
635
  }, {
492
636
  type: "exact";
493
637
  term: string;
494
- }>, z.ZodObject<{
638
+ }>, z.ZodObject<z.objectUtil.extendShape<{
495
639
  type: z.ZodLiteral<"range">;
496
640
  gte: z.ZodString;
497
641
  lte: z.ZodString;
498
- }, "strip", z.ZodTypeAny, {
642
+ }, {
643
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
644
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
645
+ }>, "strip", z.ZodTypeAny, {
499
646
  type: "range";
500
647
  gte: string;
501
648
  lte: string;
@@ -504,20 +651,25 @@ export declare const QueryExpression: z.ZodObject<{
504
651
  gte: string;
505
652
  lte: string;
506
653
  }>]>>>;
507
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
654
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
508
655
  type: z.ZodLiteral<"exact">;
509
656
  term: z.ZodString;
510
- }, "strip", z.ZodTypeAny, {
657
+ }, {
658
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
659
+ }>, "strip", z.ZodTypeAny, {
511
660
  type: "exact";
512
661
  term: string;
513
662
  }, {
514
663
  type: "exact";
515
664
  term: string;
516
- }>, z.ZodObject<{
665
+ }>, z.ZodObject<z.objectUtil.extendShape<{
517
666
  type: z.ZodLiteral<"range">;
518
667
  gte: z.ZodString;
519
668
  lte: z.ZodString;
520
- }, "strip", z.ZodTypeAny, {
669
+ }, {
670
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
671
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
672
+ }>, "strip", z.ZodTypeAny, {
521
673
  type: "range";
522
674
  gte: string;
523
675
  lte: string;
@@ -545,6 +697,16 @@ export declare const QueryExpression: z.ZodObject<{
545
697
  type: "exact";
546
698
  term: string;
547
699
  }>]>>>;
700
+ 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
701
+ type: z.ZodLiteral<"exact">;
702
+ term: z.ZodString;
703
+ }, "strip", z.ZodTypeAny, {
704
+ type: "exact";
705
+ term: string;
706
+ }, {
707
+ type: "exact";
708
+ term: string;
709
+ }>>>;
548
710
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
549
711
  type: z.ZodLiteral<"within">;
550
712
  location: z.ZodString;
@@ -593,6 +755,7 @@ export declare const QueryExpression: z.ZodObject<{
593
755
  type: "exact";
594
756
  term: string;
595
757
  }>>>;
758
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
596
759
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
597
760
  type: z.ZodLiteral<"exact">;
598
761
  term: z.ZodString;
@@ -644,22 +807,23 @@ export declare const QueryExpression: z.ZodObject<{
644
807
  }>]>, "many">>>;
645
808
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
646
809
  }, "strip", z.ZodTypeAny, {
810
+ id?: string | undefined;
647
811
  status?: {
648
- type: "anyOf";
649
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
650
- } | {
651
812
  type: "exact";
652
813
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
814
+ } | {
815
+ type: "anyOf";
816
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
653
817
  } | undefined;
654
- title?: string | undefined;
655
818
  data?: any;
819
+ createdByUserType?: "system" | "user" | undefined;
656
820
  createdAt?: {
657
- type: "exact";
658
- term: string;
659
- } | {
660
821
  type: "range";
661
822
  gte: string;
662
823
  lte: string;
824
+ } | {
825
+ type: "exact";
826
+ term: string;
663
827
  } | undefined;
664
828
  createdBy?: {
665
829
  type: "exact";
@@ -677,12 +841,12 @@ export declare const QueryExpression: z.ZodObject<{
677
841
  term: string;
678
842
  } | undefined;
679
843
  updatedAt?: {
680
- type: "exact";
681
- term: string;
682
- } | {
683
844
  type: "range";
684
845
  gte: string;
685
846
  lte: string;
847
+ } | {
848
+ type: "exact";
849
+ term: string;
686
850
  } | undefined;
687
851
  trackingId?: {
688
852
  type: "exact";
@@ -708,12 +872,12 @@ export declare const QueryExpression: z.ZodObject<{
708
872
  })[] | undefined;
709
873
  eventType?: string | undefined;
710
874
  'legalStatus.REGISTERED.createdAt'?: {
711
- type: "exact";
712
- term: string;
713
- } | {
714
875
  type: "range";
715
876
  gte: string;
716
877
  lte: string;
878
+ } | {
879
+ type: "exact";
880
+ term: string;
717
881
  } | undefined;
718
882
  'legalStatus.REGISTERED.createdAtLocation'?: {
719
883
  type: "exact";
@@ -722,23 +886,28 @@ export declare const QueryExpression: z.ZodObject<{
722
886
  type: "within";
723
887
  location: string;
724
888
  } | undefined;
889
+ 'legalStatus.REGISTERED.registrationNumber'?: {
890
+ type: "exact";
891
+ term: string;
892
+ } | undefined;
725
893
  }, {
894
+ id?: string | undefined;
726
895
  status?: {
727
- type: "anyOf";
728
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
729
- } | {
730
896
  type: "exact";
731
897
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
898
+ } | {
899
+ type: "anyOf";
900
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
732
901
  } | undefined;
733
- title?: string | undefined;
734
902
  data?: any;
903
+ createdByUserType?: "system" | "user" | undefined;
735
904
  createdAt?: {
736
- type: "exact";
737
- term: string;
738
- } | {
739
905
  type: "range";
740
906
  gte: string;
741
907
  lte: string;
908
+ } | {
909
+ type: "exact";
910
+ term: string;
742
911
  } | undefined;
743
912
  createdBy?: {
744
913
  type: "exact";
@@ -756,12 +925,96 @@ export declare const QueryExpression: z.ZodObject<{
756
925
  term: string;
757
926
  } | undefined;
758
927
  updatedAt?: {
928
+ type: "range";
929
+ gte: string;
930
+ lte: string;
931
+ } | {
932
+ type: "exact";
933
+ term: string;
934
+ } | undefined;
935
+ trackingId?: {
936
+ type: "exact";
937
+ term: string;
938
+ } | undefined;
939
+ updatedAtLocation?: {
940
+ type: "exact";
941
+ term: string;
942
+ } | {
943
+ type: "within";
944
+ location: string;
945
+ } | undefined;
946
+ updatedBy?: {
947
+ type: "exact";
948
+ term: string;
949
+ } | undefined;
950
+ flags?: ({
951
+ type: "anyOf";
952
+ terms: string[];
953
+ } | {
954
+ type: "not";
955
+ term: string;
956
+ })[] | undefined;
957
+ eventType?: string | undefined;
958
+ 'legalStatus.REGISTERED.createdAt'?: {
959
+ type: "range";
960
+ gte: string;
961
+ lte: string;
962
+ } | {
963
+ type: "exact";
964
+ term: string;
965
+ } | undefined;
966
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
967
+ type: "exact";
968
+ term: string;
969
+ } | {
970
+ type: "within";
971
+ location: string;
972
+ } | undefined;
973
+ 'legalStatus.REGISTERED.registrationNumber'?: {
974
+ type: "exact";
975
+ term: string;
976
+ } | undefined;
977
+ }>, {
978
+ id?: string | undefined;
979
+ status?: {
980
+ type: "exact";
981
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
982
+ } | {
983
+ type: "anyOf";
984
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
985
+ } | undefined;
986
+ data?: any;
987
+ createdByUserType?: "system" | "user" | undefined;
988
+ createdAt?: {
989
+ type: "range";
990
+ gte: string;
991
+ lte: string;
992
+ } | {
993
+ type: "exact";
994
+ term: string;
995
+ } | undefined;
996
+ createdBy?: {
997
+ type: "exact";
998
+ term: string;
999
+ } | undefined;
1000
+ createdAtLocation?: {
759
1001
  type: "exact";
760
1002
  term: string;
761
1003
  } | {
1004
+ type: "within";
1005
+ location: string;
1006
+ } | undefined;
1007
+ assignedTo?: {
1008
+ type: "exact";
1009
+ term: string;
1010
+ } | undefined;
1011
+ updatedAt?: {
762
1012
  type: "range";
763
1013
  gte: string;
764
1014
  lte: string;
1015
+ } | {
1016
+ type: "exact";
1017
+ term: string;
765
1018
  } | undefined;
766
1019
  trackingId?: {
767
1020
  type: "exact";
@@ -787,28 +1040,116 @@ export declare const QueryExpression: z.ZodObject<{
787
1040
  })[] | undefined;
788
1041
  eventType?: string | undefined;
789
1042
  'legalStatus.REGISTERED.createdAt'?: {
1043
+ type: "range";
1044
+ gte: string;
1045
+ lte: string;
1046
+ } | {
1047
+ type: "exact";
1048
+ term: string;
1049
+ } | undefined;
1050
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1051
+ type: "exact";
1052
+ term: string;
1053
+ } | {
1054
+ type: "within";
1055
+ location: string;
1056
+ } | undefined;
1057
+ 'legalStatus.REGISTERED.registrationNumber'?: {
790
1058
  type: "exact";
791
1059
  term: string;
1060
+ } | undefined;
1061
+ }, {
1062
+ id?: string | undefined;
1063
+ status?: {
1064
+ type: "exact";
1065
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
792
1066
  } | {
1067
+ type: "anyOf";
1068
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1069
+ } | undefined;
1070
+ data?: any;
1071
+ createdByUserType?: "system" | "user" | undefined;
1072
+ createdAt?: {
793
1073
  type: "range";
794
1074
  gte: string;
795
1075
  lte: string;
1076
+ } | {
1077
+ type: "exact";
1078
+ term: string;
796
1079
  } | undefined;
797
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1080
+ createdBy?: {
1081
+ type: "exact";
1082
+ term: string;
1083
+ } | undefined;
1084
+ createdAtLocation?: {
798
1085
  type: "exact";
799
1086
  term: string;
800
1087
  } | {
801
1088
  type: "within";
802
1089
  location: string;
803
1090
  } | undefined;
804
- }>;
805
- export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
806
- type: z.ZodLiteral<"or">;
807
- clauses: z.ZodArray<z.ZodObject<{
808
- title: z.ZodOptional<z.ZodString>;
809
- eventType: z.ZodOptional<z.ZodString>;
810
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
811
- type: z.ZodLiteral<"anyOf">;
1091
+ assignedTo?: {
1092
+ type: "exact";
1093
+ term: string;
1094
+ } | undefined;
1095
+ updatedAt?: {
1096
+ type: "range";
1097
+ gte: string;
1098
+ lte: string;
1099
+ } | {
1100
+ type: "exact";
1101
+ term: string;
1102
+ } | undefined;
1103
+ trackingId?: {
1104
+ type: "exact";
1105
+ term: string;
1106
+ } | undefined;
1107
+ updatedAtLocation?: {
1108
+ type: "exact";
1109
+ term: string;
1110
+ } | {
1111
+ type: "within";
1112
+ location: string;
1113
+ } | undefined;
1114
+ updatedBy?: {
1115
+ type: "exact";
1116
+ term: string;
1117
+ } | undefined;
1118
+ flags?: ({
1119
+ type: "anyOf";
1120
+ terms: string[];
1121
+ } | {
1122
+ type: "not";
1123
+ term: string;
1124
+ })[] | undefined;
1125
+ eventType?: string | undefined;
1126
+ 'legalStatus.REGISTERED.createdAt'?: {
1127
+ type: "range";
1128
+ gte: string;
1129
+ lte: string;
1130
+ } | {
1131
+ type: "exact";
1132
+ term: string;
1133
+ } | undefined;
1134
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1135
+ type: "exact";
1136
+ term: string;
1137
+ } | {
1138
+ type: "within";
1139
+ location: string;
1140
+ } | undefined;
1141
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1142
+ type: "exact";
1143
+ term: string;
1144
+ } | undefined;
1145
+ }>;
1146
+ export declare const QueryType: z.ZodObject<{
1147
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
1148
+ clauses: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
1149
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1150
+ eventType: z.ZodOptional<z.ZodString>;
1151
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1152
+ type: z.ZodLiteral<"anyOf">;
812
1153
  terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
813
1154
  }, "strip", z.ZodTypeAny, {
814
1155
  type: "anyOf";
@@ -826,20 +1167,25 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
826
1167
  type: "exact";
827
1168
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
828
1169
  }>]>>>;
829
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1170
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
830
1171
  type: z.ZodLiteral<"exact">;
831
1172
  term: z.ZodString;
832
- }, "strip", z.ZodTypeAny, {
1173
+ }, {
1174
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1175
+ }>, "strip", z.ZodTypeAny, {
833
1176
  type: "exact";
834
1177
  term: string;
835
1178
  }, {
836
1179
  type: "exact";
837
1180
  term: string;
838
- }>, z.ZodObject<{
1181
+ }>, z.ZodObject<z.objectUtil.extendShape<{
839
1182
  type: z.ZodLiteral<"range">;
840
1183
  gte: z.ZodString;
841
1184
  lte: z.ZodString;
842
- }, "strip", z.ZodTypeAny, {
1185
+ }, {
1186
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1187
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1188
+ }>, "strip", z.ZodTypeAny, {
843
1189
  type: "range";
844
1190
  gte: string;
845
1191
  lte: string;
@@ -848,20 +1194,25 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
848
1194
  gte: string;
849
1195
  lte: string;
850
1196
  }>]>>>;
851
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1197
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
852
1198
  type: z.ZodLiteral<"exact">;
853
1199
  term: z.ZodString;
854
- }, "strip", z.ZodTypeAny, {
1200
+ }, {
1201
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1202
+ }>, "strip", z.ZodTypeAny, {
855
1203
  type: "exact";
856
1204
  term: string;
857
1205
  }, {
858
1206
  type: "exact";
859
1207
  term: string;
860
- }>, z.ZodObject<{
1208
+ }>, z.ZodObject<z.objectUtil.extendShape<{
861
1209
  type: z.ZodLiteral<"range">;
862
1210
  gte: z.ZodString;
863
1211
  lte: z.ZodString;
864
- }, "strip", z.ZodTypeAny, {
1212
+ }, {
1213
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1214
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1215
+ }>, "strip", z.ZodTypeAny, {
865
1216
  type: "range";
866
1217
  gte: string;
867
1218
  lte: string;
@@ -870,20 +1221,25 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
870
1221
  gte: string;
871
1222
  lte: string;
872
1223
  }>]>>>;
873
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1224
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
874
1225
  type: z.ZodLiteral<"exact">;
875
1226
  term: z.ZodString;
876
- }, "strip", z.ZodTypeAny, {
1227
+ }, {
1228
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1229
+ }>, "strip", z.ZodTypeAny, {
877
1230
  type: "exact";
878
1231
  term: string;
879
1232
  }, {
880
1233
  type: "exact";
881
1234
  term: string;
882
- }>, z.ZodObject<{
1235
+ }>, z.ZodObject<z.objectUtil.extendShape<{
883
1236
  type: z.ZodLiteral<"range">;
884
1237
  gte: z.ZodString;
885
1238
  lte: z.ZodString;
886
- }, "strip", z.ZodTypeAny, {
1239
+ }, {
1240
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1241
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1242
+ }>, "strip", z.ZodTypeAny, {
887
1243
  type: "range";
888
1244
  gte: string;
889
1245
  lte: string;
@@ -911,6 +1267,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
911
1267
  type: "exact";
912
1268
  term: string;
913
1269
  }>]>>>;
1270
+ 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1271
+ type: z.ZodLiteral<"exact">;
1272
+ term: z.ZodString;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ type: "exact";
1275
+ term: string;
1276
+ }, {
1277
+ type: "exact";
1278
+ term: string;
1279
+ }>>>;
914
1280
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
915
1281
  type: z.ZodLiteral<"within">;
916
1282
  location: z.ZodString;
@@ -959,6 +1325,7 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
959
1325
  type: "exact";
960
1326
  term: string;
961
1327
  }>>>;
1328
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
962
1329
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
963
1330
  type: z.ZodLiteral<"exact">;
964
1331
  term: z.ZodString;
@@ -1010,22 +1377,23 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1010
1377
  }>]>, "many">>>;
1011
1378
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1012
1379
  }, "strip", z.ZodTypeAny, {
1380
+ id?: string | undefined;
1013
1381
  status?: {
1014
- type: "anyOf";
1015
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1016
- } | {
1017
1382
  type: "exact";
1018
1383
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1384
+ } | {
1385
+ type: "anyOf";
1386
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1019
1387
  } | undefined;
1020
- title?: string | undefined;
1021
1388
  data?: any;
1389
+ createdByUserType?: "system" | "user" | undefined;
1022
1390
  createdAt?: {
1023
- type: "exact";
1024
- term: string;
1025
- } | {
1026
1391
  type: "range";
1027
1392
  gte: string;
1028
1393
  lte: string;
1394
+ } | {
1395
+ type: "exact";
1396
+ term: string;
1029
1397
  } | undefined;
1030
1398
  createdBy?: {
1031
1399
  type: "exact";
@@ -1043,12 +1411,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1043
1411
  term: string;
1044
1412
  } | undefined;
1045
1413
  updatedAt?: {
1046
- type: "exact";
1047
- term: string;
1048
- } | {
1049
1414
  type: "range";
1050
1415
  gte: string;
1051
1416
  lte: string;
1417
+ } | {
1418
+ type: "exact";
1419
+ term: string;
1052
1420
  } | undefined;
1053
1421
  trackingId?: {
1054
1422
  type: "exact";
@@ -1074,12 +1442,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1074
1442
  })[] | undefined;
1075
1443
  eventType?: string | undefined;
1076
1444
  'legalStatus.REGISTERED.createdAt'?: {
1077
- type: "exact";
1078
- term: string;
1079
- } | {
1080
1445
  type: "range";
1081
1446
  gte: string;
1082
1447
  lte: string;
1448
+ } | {
1449
+ type: "exact";
1450
+ term: string;
1083
1451
  } | undefined;
1084
1452
  'legalStatus.REGISTERED.createdAtLocation'?: {
1085
1453
  type: "exact";
@@ -1088,23 +1456,28 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1088
1456
  type: "within";
1089
1457
  location: string;
1090
1458
  } | undefined;
1459
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1460
+ type: "exact";
1461
+ term: string;
1462
+ } | undefined;
1091
1463
  }, {
1464
+ id?: string | undefined;
1092
1465
  status?: {
1093
- type: "anyOf";
1094
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1095
- } | {
1096
1466
  type: "exact";
1097
1467
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1468
+ } | {
1469
+ type: "anyOf";
1470
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1098
1471
  } | undefined;
1099
- title?: string | undefined;
1100
1472
  data?: any;
1473
+ createdByUserType?: "system" | "user" | undefined;
1101
1474
  createdAt?: {
1102
- type: "exact";
1103
- term: string;
1104
- } | {
1105
1475
  type: "range";
1106
1476
  gte: string;
1107
1477
  lte: string;
1478
+ } | {
1479
+ type: "exact";
1480
+ term: string;
1108
1481
  } | undefined;
1109
1482
  createdBy?: {
1110
1483
  type: "exact";
@@ -1122,12 +1495,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1122
1495
  term: string;
1123
1496
  } | undefined;
1124
1497
  updatedAt?: {
1125
- type: "exact";
1126
- term: string;
1127
- } | {
1128
1498
  type: "range";
1129
1499
  gte: string;
1130
1500
  lte: string;
1501
+ } | {
1502
+ type: "exact";
1503
+ term: string;
1131
1504
  } | undefined;
1132
1505
  trackingId?: {
1133
1506
  type: "exact";
@@ -1153,12 +1526,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1153
1526
  })[] | undefined;
1154
1527
  eventType?: string | undefined;
1155
1528
  'legalStatus.REGISTERED.createdAt'?: {
1156
- type: "exact";
1157
- term: string;
1158
- } | {
1159
1529
  type: "range";
1160
1530
  gte: string;
1161
1531
  lte: string;
1532
+ } | {
1533
+ type: "exact";
1534
+ term: string;
1162
1535
  } | undefined;
1163
1536
  'legalStatus.REGISTERED.createdAtLocation'?: {
1164
1537
  type: "exact";
@@ -1167,26 +1540,28 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1167
1540
  type: "within";
1168
1541
  location: string;
1169
1542
  } | undefined;
1170
- }>, "many">;
1171
- }, "strip", z.ZodTypeAny, {
1172
- type: "or";
1173
- clauses: {
1543
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1544
+ type: "exact";
1545
+ term: string;
1546
+ } | undefined;
1547
+ }>, {
1548
+ id?: string | undefined;
1174
1549
  status?: {
1175
- type: "anyOf";
1176
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1177
- } | {
1178
1550
  type: "exact";
1179
1551
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1552
+ } | {
1553
+ type: "anyOf";
1554
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1180
1555
  } | undefined;
1181
- title?: string | undefined;
1182
1556
  data?: any;
1557
+ createdByUserType?: "system" | "user" | undefined;
1183
1558
  createdAt?: {
1184
- type: "exact";
1185
- term: string;
1186
- } | {
1187
1559
  type: "range";
1188
1560
  gte: string;
1189
1561
  lte: string;
1562
+ } | {
1563
+ type: "exact";
1564
+ term: string;
1190
1565
  } | undefined;
1191
1566
  createdBy?: {
1192
1567
  type: "exact";
@@ -1204,12 +1579,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1204
1579
  term: string;
1205
1580
  } | undefined;
1206
1581
  updatedAt?: {
1207
- type: "exact";
1208
- term: string;
1209
- } | {
1210
1582
  type: "range";
1211
1583
  gte: string;
1212
1584
  lte: string;
1585
+ } | {
1586
+ type: "exact";
1587
+ term: string;
1213
1588
  } | undefined;
1214
1589
  trackingId?: {
1215
1590
  type: "exact";
@@ -1235,12 +1610,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1235
1610
  })[] | undefined;
1236
1611
  eventType?: string | undefined;
1237
1612
  'legalStatus.REGISTERED.createdAt'?: {
1238
- type: "exact";
1239
- term: string;
1240
- } | {
1241
1613
  type: "range";
1242
1614
  gte: string;
1243
1615
  lte: string;
1616
+ } | {
1617
+ type: "exact";
1618
+ term: string;
1244
1619
  } | undefined;
1245
1620
  'legalStatus.REGISTERED.createdAtLocation'?: {
1246
1621
  type: "exact";
@@ -1249,26 +1624,28 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1249
1624
  type: "within";
1250
1625
  location: string;
1251
1626
  } | undefined;
1252
- }[];
1253
- }, {
1254
- type: "or";
1255
- clauses: {
1627
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1628
+ type: "exact";
1629
+ term: string;
1630
+ } | undefined;
1631
+ }, {
1632
+ id?: string | undefined;
1256
1633
  status?: {
1257
- type: "anyOf";
1258
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1259
- } | {
1260
1634
  type: "exact";
1261
1635
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1636
+ } | {
1637
+ type: "anyOf";
1638
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1262
1639
  } | undefined;
1263
- title?: string | undefined;
1264
1640
  data?: any;
1641
+ createdByUserType?: "system" | "user" | undefined;
1265
1642
  createdAt?: {
1266
- type: "exact";
1267
- term: string;
1268
- } | {
1269
1643
  type: "range";
1270
1644
  gte: string;
1271
1645
  lte: string;
1646
+ } | {
1647
+ type: "exact";
1648
+ term: string;
1272
1649
  } | undefined;
1273
1650
  createdBy?: {
1274
1651
  type: "exact";
@@ -1286,12 +1663,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1286
1663
  term: string;
1287
1664
  } | undefined;
1288
1665
  updatedAt?: {
1289
- type: "exact";
1290
- term: string;
1291
- } | {
1292
1666
  type: "range";
1293
1667
  gte: string;
1294
1668
  lte: string;
1669
+ } | {
1670
+ type: "exact";
1671
+ term: string;
1295
1672
  } | undefined;
1296
1673
  trackingId?: {
1297
1674
  type: "exact";
@@ -1317,12 +1694,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1317
1694
  })[] | undefined;
1318
1695
  eventType?: string | undefined;
1319
1696
  'legalStatus.REGISTERED.createdAt'?: {
1320
- type: "exact";
1321
- term: string;
1322
- } | {
1323
1697
  type: "range";
1324
1698
  gte: string;
1325
1699
  lte: string;
1700
+ } | {
1701
+ type: "exact";
1702
+ term: string;
1326
1703
  } | undefined;
1327
1704
  'legalStatus.REGISTERED.createdAtLocation'?: {
1328
1705
  type: "exact";
@@ -1331,231 +1708,28 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1331
1708
  type: "within";
1332
1709
  location: string;
1333
1710
  } | undefined;
1334
- }[];
1335
- }>, z.ZodObject<{
1336
- type: z.ZodLiteral<"and">;
1337
- clauses: z.ZodArray<z.ZodObject<{
1338
- title: z.ZodOptional<z.ZodString>;
1339
- eventType: z.ZodOptional<z.ZodString>;
1340
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1341
- type: z.ZodLiteral<"anyOf">;
1342
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1343
- }, "strip", z.ZodTypeAny, {
1344
- type: "anyOf";
1345
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1346
- }, {
1347
- type: "anyOf";
1348
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1349
- }>, z.ZodObject<{
1350
- type: z.ZodLiteral<"exact">;
1351
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1352
- }, "strip", z.ZodTypeAny, {
1353
- type: "exact";
1354
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1355
- }, {
1356
- type: "exact";
1357
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1358
- }>]>>>;
1359
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1360
- type: z.ZodLiteral<"exact">;
1361
- term: z.ZodString;
1362
- }, "strip", z.ZodTypeAny, {
1363
- type: "exact";
1364
- term: string;
1365
- }, {
1366
- type: "exact";
1367
- term: string;
1368
- }>, z.ZodObject<{
1369
- type: z.ZodLiteral<"range">;
1370
- gte: z.ZodString;
1371
- lte: z.ZodString;
1372
- }, "strip", z.ZodTypeAny, {
1373
- type: "range";
1374
- gte: string;
1375
- lte: string;
1376
- }, {
1377
- type: "range";
1378
- gte: string;
1379
- lte: string;
1380
- }>]>>>;
1381
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1382
- type: z.ZodLiteral<"exact">;
1383
- term: z.ZodString;
1384
- }, "strip", z.ZodTypeAny, {
1385
- type: "exact";
1386
- term: string;
1387
- }, {
1388
- type: "exact";
1389
- term: string;
1390
- }>, z.ZodObject<{
1391
- type: z.ZodLiteral<"range">;
1392
- gte: z.ZodString;
1393
- lte: z.ZodString;
1394
- }, "strip", z.ZodTypeAny, {
1395
- type: "range";
1396
- gte: string;
1397
- lte: string;
1398
- }, {
1399
- type: "range";
1400
- gte: string;
1401
- lte: string;
1402
- }>]>>>;
1403
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1404
- type: z.ZodLiteral<"exact">;
1405
- term: z.ZodString;
1406
- }, "strip", z.ZodTypeAny, {
1407
- type: "exact";
1408
- term: string;
1409
- }, {
1410
- type: "exact";
1411
- term: string;
1412
- }>, z.ZodObject<{
1413
- type: z.ZodLiteral<"range">;
1414
- gte: z.ZodString;
1415
- lte: z.ZodString;
1416
- }, "strip", z.ZodTypeAny, {
1417
- type: "range";
1418
- gte: string;
1419
- lte: string;
1420
- }, {
1421
- type: "range";
1422
- gte: string;
1423
- lte: string;
1424
- }>]>>>;
1425
- 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1426
- type: z.ZodLiteral<"within">;
1427
- location: z.ZodString;
1428
- }, "strip", z.ZodTypeAny, {
1429
- type: "within";
1430
- location: string;
1431
- }, {
1432
- type: "within";
1433
- location: string;
1434
- }>, z.ZodObject<{
1435
- type: z.ZodLiteral<"exact">;
1436
- term: z.ZodString;
1437
- }, "strip", z.ZodTypeAny, {
1438
- type: "exact";
1439
- term: string;
1440
- }, {
1441
- type: "exact";
1442
- term: string;
1443
- }>]>>>;
1444
- createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1445
- type: z.ZodLiteral<"within">;
1446
- location: z.ZodString;
1447
- }, "strip", z.ZodTypeAny, {
1448
- type: "within";
1449
- location: string;
1450
- }, {
1451
- type: "within";
1452
- location: string;
1453
- }>, z.ZodObject<{
1454
- type: z.ZodLiteral<"exact">;
1455
- term: z.ZodString;
1456
- }, "strip", z.ZodTypeAny, {
1711
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1457
1712
  type: "exact";
1458
1713
  term: string;
1459
- }, {
1460
- type: "exact";
1461
- term: string;
1462
- }>]>>>;
1463
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1464
- type: z.ZodLiteral<"within">;
1465
- location: z.ZodString;
1466
- }, "strip", z.ZodTypeAny, {
1467
- type: "within";
1468
- location: string;
1469
- }, {
1470
- type: "within";
1471
- location: string;
1472
- }>, z.ZodObject<{
1473
- type: z.ZodLiteral<"exact">;
1474
- term: z.ZodString;
1475
- }, "strip", z.ZodTypeAny, {
1476
- type: "exact";
1477
- term: string;
1478
- }, {
1479
- type: "exact";
1480
- term: string;
1481
- }>]>>>;
1482
- assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1483
- type: z.ZodLiteral<"exact">;
1484
- term: z.ZodString;
1485
- }, "strip", z.ZodTypeAny, {
1486
- type: "exact";
1487
- term: string;
1488
- }, {
1489
- type: "exact";
1490
- term: string;
1491
- }>>>;
1492
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1493
- type: z.ZodLiteral<"exact">;
1494
- term: z.ZodString;
1495
- }, "strip", z.ZodTypeAny, {
1496
- type: "exact";
1497
- term: string;
1498
- }, {
1499
- type: "exact";
1500
- term: string;
1501
- }>>>;
1502
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1503
- type: z.ZodLiteral<"exact">;
1504
- term: z.ZodString;
1505
- }, "strip", z.ZodTypeAny, {
1506
- type: "exact";
1507
- term: string;
1508
- }, {
1509
- type: "exact";
1510
- term: string;
1511
- }>>>;
1512
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1513
- type: z.ZodLiteral<"exact">;
1514
- term: z.ZodString;
1515
- }, "strip", z.ZodTypeAny, {
1516
- type: "exact";
1517
- term: string;
1518
- }, {
1519
- type: "exact";
1520
- term: string;
1521
- }>>>;
1522
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1523
- type: z.ZodLiteral<"anyOf">;
1524
- terms: z.ZodArray<z.ZodString, "many">;
1525
- }, "strip", z.ZodTypeAny, {
1526
- type: "anyOf";
1527
- terms: string[];
1528
- }, {
1529
- type: "anyOf";
1530
- terms: string[];
1531
- }>, z.ZodObject<{
1532
- type: z.ZodLiteral<"not">;
1533
- term: z.ZodString;
1534
- }, "strip", z.ZodTypeAny, {
1535
- type: "not";
1536
- term: string;
1537
- }, {
1538
- type: "not";
1539
- term: string;
1540
- }>]>, "many">>>;
1541
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1542
- }, "strip", z.ZodTypeAny, {
1714
+ } | undefined;
1715
+ }>, "atleastone">, [{
1716
+ id?: string | undefined;
1543
1717
  status?: {
1544
- type: "anyOf";
1545
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1546
- } | {
1547
1718
  type: "exact";
1548
1719
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1720
+ } | {
1721
+ type: "anyOf";
1722
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1549
1723
  } | undefined;
1550
- title?: string | undefined;
1551
1724
  data?: any;
1725
+ createdByUserType?: "system" | "user" | undefined;
1552
1726
  createdAt?: {
1553
- type: "exact";
1554
- term: string;
1555
- } | {
1556
1727
  type: "range";
1557
1728
  gte: string;
1558
1729
  lte: string;
1730
+ } | {
1731
+ type: "exact";
1732
+ term: string;
1559
1733
  } | undefined;
1560
1734
  createdBy?: {
1561
1735
  type: "exact";
@@ -1573,12 +1747,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1573
1747
  term: string;
1574
1748
  } | undefined;
1575
1749
  updatedAt?: {
1576
- type: "exact";
1577
- term: string;
1578
- } | {
1579
1750
  type: "range";
1580
1751
  gte: string;
1581
1752
  lte: string;
1753
+ } | {
1754
+ type: "exact";
1755
+ term: string;
1582
1756
  } | undefined;
1583
1757
  trackingId?: {
1584
1758
  type: "exact";
@@ -1604,12 +1778,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1604
1778
  })[] | undefined;
1605
1779
  eventType?: string | undefined;
1606
1780
  'legalStatus.REGISTERED.createdAt'?: {
1607
- type: "exact";
1608
- term: string;
1609
- } | {
1610
1781
  type: "range";
1611
1782
  gte: string;
1612
1783
  lte: string;
1784
+ } | {
1785
+ type: "exact";
1786
+ term: string;
1613
1787
  } | undefined;
1614
1788
  'legalStatus.REGISTERED.createdAtLocation'?: {
1615
1789
  type: "exact";
@@ -1618,23 +1792,28 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1618
1792
  type: "within";
1619
1793
  location: string;
1620
1794
  } | undefined;
1621
- }, {
1795
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1796
+ type: "exact";
1797
+ term: string;
1798
+ } | undefined;
1799
+ }, ...{
1800
+ id?: string | undefined;
1622
1801
  status?: {
1623
- type: "anyOf";
1624
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1625
- } | {
1626
1802
  type: "exact";
1627
1803
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1804
+ } | {
1805
+ type: "anyOf";
1806
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1628
1807
  } | undefined;
1629
- title?: string | undefined;
1630
1808
  data?: any;
1809
+ createdByUserType?: "system" | "user" | undefined;
1631
1810
  createdAt?: {
1632
- type: "exact";
1633
- term: string;
1634
- } | {
1635
1811
  type: "range";
1636
1812
  gte: string;
1637
1813
  lte: string;
1814
+ } | {
1815
+ type: "exact";
1816
+ term: string;
1638
1817
  } | undefined;
1639
1818
  createdBy?: {
1640
1819
  type: "exact";
@@ -1652,12 +1831,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1652
1831
  term: string;
1653
1832
  } | undefined;
1654
1833
  updatedAt?: {
1655
- type: "exact";
1656
- term: string;
1657
- } | {
1658
1834
  type: "range";
1659
1835
  gte: string;
1660
1836
  lte: string;
1837
+ } | {
1838
+ type: "exact";
1839
+ term: string;
1661
1840
  } | undefined;
1662
1841
  trackingId?: {
1663
1842
  type: "exact";
@@ -1683,12 +1862,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1683
1862
  })[] | undefined;
1684
1863
  eventType?: string | undefined;
1685
1864
  'legalStatus.REGISTERED.createdAt'?: {
1686
- type: "exact";
1687
- term: string;
1688
- } | {
1689
1865
  type: "range";
1690
1866
  gte: string;
1691
1867
  lte: string;
1868
+ } | {
1869
+ type: "exact";
1870
+ term: string;
1692
1871
  } | undefined;
1693
1872
  'legalStatus.REGISTERED.createdAtLocation'?: {
1694
1873
  type: "exact";
@@ -1697,26 +1876,31 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1697
1876
  type: "within";
1698
1877
  location: string;
1699
1878
  } | undefined;
1700
- }>, "many">;
1879
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1880
+ type: "exact";
1881
+ term: string;
1882
+ } | undefined;
1883
+ }[]], unknown>;
1701
1884
  }, "strip", z.ZodTypeAny, {
1702
- type: "and";
1703
- clauses: {
1885
+ type: "and" | "or";
1886
+ clauses: [{
1887
+ id?: string | undefined;
1704
1888
  status?: {
1705
- type: "anyOf";
1706
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1707
- } | {
1708
1889
  type: "exact";
1709
1890
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1891
+ } | {
1892
+ type: "anyOf";
1893
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1710
1894
  } | undefined;
1711
- title?: string | undefined;
1712
1895
  data?: any;
1896
+ createdByUserType?: "system" | "user" | undefined;
1713
1897
  createdAt?: {
1714
- type: "exact";
1715
- term: string;
1716
- } | {
1717
1898
  type: "range";
1718
1899
  gte: string;
1719
1900
  lte: string;
1901
+ } | {
1902
+ type: "exact";
1903
+ term: string;
1720
1904
  } | undefined;
1721
1905
  createdBy?: {
1722
1906
  type: "exact";
@@ -1734,12 +1918,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1734
1918
  term: string;
1735
1919
  } | undefined;
1736
1920
  updatedAt?: {
1737
- type: "exact";
1738
- term: string;
1739
- } | {
1740
1921
  type: "range";
1741
1922
  gte: string;
1742
1923
  lte: string;
1924
+ } | {
1925
+ type: "exact";
1926
+ term: string;
1743
1927
  } | undefined;
1744
1928
  trackingId?: {
1745
1929
  type: "exact";
@@ -1765,12 +1949,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1765
1949
  })[] | undefined;
1766
1950
  eventType?: string | undefined;
1767
1951
  'legalStatus.REGISTERED.createdAt'?: {
1768
- type: "exact";
1769
- term: string;
1770
- } | {
1771
1952
  type: "range";
1772
1953
  gte: string;
1773
1954
  lte: string;
1955
+ } | {
1956
+ type: "exact";
1957
+ term: string;
1774
1958
  } | undefined;
1775
1959
  'legalStatus.REGISTERED.createdAtLocation'?: {
1776
1960
  type: "exact";
@@ -1779,26 +1963,28 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1779
1963
  type: "within";
1780
1964
  location: string;
1781
1965
  } | undefined;
1782
- }[];
1783
- }, {
1784
- type: "and";
1785
- clauses: {
1966
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1967
+ type: "exact";
1968
+ term: string;
1969
+ } | undefined;
1970
+ }, ...{
1971
+ id?: string | undefined;
1786
1972
  status?: {
1787
- type: "anyOf";
1788
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1789
- } | {
1790
1973
  type: "exact";
1791
1974
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1975
+ } | {
1976
+ type: "anyOf";
1977
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1792
1978
  } | undefined;
1793
- title?: string | undefined;
1794
1979
  data?: any;
1980
+ createdByUserType?: "system" | "user" | undefined;
1795
1981
  createdAt?: {
1796
- type: "exact";
1797
- term: string;
1798
- } | {
1799
1982
  type: "range";
1800
1983
  gte: string;
1801
1984
  lte: string;
1985
+ } | {
1986
+ type: "exact";
1987
+ term: string;
1802
1988
  } | undefined;
1803
1989
  createdBy?: {
1804
1990
  type: "exact";
@@ -1816,12 +2002,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1816
2002
  term: string;
1817
2003
  } | undefined;
1818
2004
  updatedAt?: {
1819
- type: "exact";
1820
- term: string;
1821
- } | {
1822
2005
  type: "range";
1823
2006
  gte: string;
1824
2007
  lte: string;
2008
+ } | {
2009
+ type: "exact";
2010
+ term: string;
1825
2011
  } | undefined;
1826
2012
  trackingId?: {
1827
2013
  type: "exact";
@@ -1847,12 +2033,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1847
2033
  })[] | undefined;
1848
2034
  eventType?: string | undefined;
1849
2035
  'legalStatus.REGISTERED.createdAt'?: {
1850
- type: "exact";
1851
- term: string;
1852
- } | {
1853
2036
  type: "range";
1854
2037
  gte: string;
1855
2038
  lte: string;
2039
+ } | {
2040
+ type: "exact";
2041
+ term: string;
1856
2042
  } | undefined;
1857
2043
  'legalStatus.REGISTERED.createdAtLocation'?: {
1858
2044
  type: "exact";
@@ -1861,8 +2047,15 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1861
2047
  type: "within";
1862
2048
  location: string;
1863
2049
  } | undefined;
1864
- }[];
1865
- }>]>;
2050
+ 'legalStatus.REGISTERED.registrationNumber'?: {
2051
+ type: "exact";
2052
+ term: string;
2053
+ } | undefined;
2054
+ }[]];
2055
+ }, {
2056
+ type: "and" | "or";
2057
+ clauses?: unknown;
2058
+ }>;
1866
2059
  export type QueryType = z.infer<typeof QueryType>;
1867
2060
  export type QueryExpression = z.infer<typeof QueryExpression>;
1868
2061
  export {};