@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,6 +1,5 @@
1
1
  import { z } from 'zod';
2
2
  export declare const SerializedQueryExpression: z.ZodObject<{
3
- title: z.ZodOptional<z.ZodString>;
4
3
  eventType: z.ZodOptional<z.ZodString>;
5
4
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
6
5
  type: z.ZodLiteral<"anyOf">;
@@ -21,20 +20,25 @@ export declare const SerializedQueryExpression: z.ZodObject<{
21
20
  type: "exact";
22
21
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
23
22
  }>]>>>;
24
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
23
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
25
24
  type: z.ZodLiteral<"exact">;
26
25
  term: z.ZodString;
27
- }, "strip", z.ZodTypeAny, {
26
+ }, {
27
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
28
+ }>, "strip", z.ZodTypeAny, {
28
29
  type: "exact";
29
30
  term: string;
30
31
  }, {
31
32
  type: "exact";
32
33
  term: string;
33
- }>, z.ZodObject<{
34
+ }>, z.ZodObject<z.objectUtil.extendShape<{
34
35
  type: z.ZodLiteral<"range">;
35
36
  gte: z.ZodString;
36
37
  lte: z.ZodString;
37
- }, "strip", z.ZodTypeAny, {
38
+ }, {
39
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
40
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
41
+ }>, "strip", z.ZodTypeAny, {
38
42
  type: "range";
39
43
  gte: string;
40
44
  lte: string;
@@ -43,20 +47,25 @@ export declare const SerializedQueryExpression: z.ZodObject<{
43
47
  gte: string;
44
48
  lte: string;
45
49
  }>]>>>;
46
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
50
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
47
51
  type: z.ZodLiteral<"exact">;
48
52
  term: z.ZodString;
49
- }, "strip", z.ZodTypeAny, {
53
+ }, {
54
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
55
+ }>, "strip", z.ZodTypeAny, {
50
56
  type: "exact";
51
57
  term: string;
52
58
  }, {
53
59
  type: "exact";
54
60
  term: string;
55
- }>, z.ZodObject<{
61
+ }>, z.ZodObject<z.objectUtil.extendShape<{
56
62
  type: z.ZodLiteral<"range">;
57
63
  gte: z.ZodString;
58
64
  lte: z.ZodString;
59
- }, "strip", z.ZodTypeAny, {
65
+ }, {
66
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
67
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
68
+ }>, "strip", z.ZodTypeAny, {
60
69
  type: "range";
61
70
  gte: string;
62
71
  lte: string;
@@ -183,6 +192,7 @@ export declare const SerializedQueryExpression: z.ZodObject<{
183
192
  $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
184
193
  };
185
194
  }>>>;
195
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
186
196
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
187
197
  type: z.ZodLiteral<"exact">;
188
198
  term: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -235,21 +245,21 @@ export declare const SerializedQueryExpression: z.ZodObject<{
235
245
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
236
246
  }, "strip", z.ZodTypeAny, {
237
247
  status?: {
238
- type: "anyOf";
239
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
240
- } | {
241
248
  type: "exact";
242
249
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
250
+ } | {
251
+ type: "anyOf";
252
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
243
253
  } | undefined;
244
- title?: string | undefined;
245
254
  data?: any;
255
+ createdByUserType?: "system" | "user" | undefined;
246
256
  createdAt?: {
247
- type: "exact";
248
- term: string;
249
- } | {
250
257
  type: "range";
251
258
  gte: string;
252
259
  lte: string;
260
+ } | {
261
+ type: "exact";
262
+ term: string;
253
263
  } | undefined;
254
264
  createdBy?: {
255
265
  type: "exact";
@@ -275,12 +285,12 @@ export declare const SerializedQueryExpression: z.ZodObject<{
275
285
  };
276
286
  } | undefined;
277
287
  updatedAt?: {
278
- type: "exact";
279
- term: string;
280
- } | {
281
288
  type: "range";
282
289
  gte: string;
283
290
  lte: string;
291
+ } | {
292
+ type: "exact";
293
+ term: string;
284
294
  } | undefined;
285
295
  trackingId?: {
286
296
  type: "exact";
@@ -313,21 +323,21 @@ export declare const SerializedQueryExpression: z.ZodObject<{
313
323
  eventType?: string | undefined;
314
324
  }, {
315
325
  status?: {
316
- type: "anyOf";
317
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
318
- } | {
319
326
  type: "exact";
320
327
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
328
+ } | {
329
+ type: "anyOf";
330
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
321
331
  } | undefined;
322
- title?: string | undefined;
323
332
  data?: any;
333
+ createdByUserType?: "system" | "user" | undefined;
324
334
  createdAt?: {
325
- type: "exact";
326
- term: string;
327
- } | {
328
335
  type: "range";
329
336
  gte: string;
330
337
  lte: string;
338
+ } | {
339
+ type: "exact";
340
+ term: string;
331
341
  } | undefined;
332
342
  createdBy?: {
333
343
  type: "exact";
@@ -353,12 +363,12 @@ export declare const SerializedQueryExpression: z.ZodObject<{
353
363
  };
354
364
  } | undefined;
355
365
  updatedAt?: {
356
- type: "exact";
357
- term: string;
358
- } | {
359
366
  type: "range";
360
367
  gte: string;
361
368
  lte: string;
369
+ } | {
370
+ type: "exact";
371
+ term: string;
362
372
  } | undefined;
363
373
  trackingId?: {
364
374
  type: "exact";
@@ -394,7 +404,6 @@ export type SerializedQueryExpression = z.infer<typeof SerializedQueryExpression
394
404
  export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
395
405
  type: z.ZodLiteral<"and">;
396
406
  clauses: z.ZodArray<z.ZodObject<{
397
- title: z.ZodOptional<z.ZodString>;
398
407
  eventType: z.ZodOptional<z.ZodString>;
399
408
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
400
409
  type: z.ZodLiteral<"anyOf">;
@@ -415,20 +424,25 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
415
424
  type: "exact";
416
425
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
417
426
  }>]>>>;
418
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
427
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
419
428
  type: z.ZodLiteral<"exact">;
420
429
  term: z.ZodString;
421
- }, "strip", z.ZodTypeAny, {
430
+ }, {
431
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
432
+ }>, "strip", z.ZodTypeAny, {
422
433
  type: "exact";
423
434
  term: string;
424
435
  }, {
425
436
  type: "exact";
426
437
  term: string;
427
- }>, z.ZodObject<{
438
+ }>, z.ZodObject<z.objectUtil.extendShape<{
428
439
  type: z.ZodLiteral<"range">;
429
440
  gte: z.ZodString;
430
441
  lte: z.ZodString;
431
- }, "strip", z.ZodTypeAny, {
442
+ }, {
443
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
444
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
445
+ }>, "strip", z.ZodTypeAny, {
432
446
  type: "range";
433
447
  gte: string;
434
448
  lte: string;
@@ -437,20 +451,25 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
437
451
  gte: string;
438
452
  lte: string;
439
453
  }>]>>>;
440
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
454
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
441
455
  type: z.ZodLiteral<"exact">;
442
456
  term: z.ZodString;
443
- }, "strip", z.ZodTypeAny, {
457
+ }, {
458
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
459
+ }>, "strip", z.ZodTypeAny, {
444
460
  type: "exact";
445
461
  term: string;
446
462
  }, {
447
463
  type: "exact";
448
464
  term: string;
449
- }>, z.ZodObject<{
465
+ }>, z.ZodObject<z.objectUtil.extendShape<{
450
466
  type: z.ZodLiteral<"range">;
451
467
  gte: z.ZodString;
452
468
  lte: z.ZodString;
453
- }, "strip", z.ZodTypeAny, {
469
+ }, {
470
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
471
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
472
+ }>, "strip", z.ZodTypeAny, {
454
473
  type: "range";
455
474
  gte: string;
456
475
  lte: string;
@@ -577,6 +596,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
577
596
  $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
578
597
  };
579
598
  }>>>;
599
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
580
600
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
581
601
  type: z.ZodLiteral<"exact">;
582
602
  term: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -629,21 +649,21 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
629
649
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
630
650
  }, "strip", z.ZodTypeAny, {
631
651
  status?: {
632
- type: "anyOf";
633
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
634
- } | {
635
652
  type: "exact";
636
653
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
654
+ } | {
655
+ type: "anyOf";
656
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
637
657
  } | undefined;
638
- title?: string | undefined;
639
658
  data?: any;
659
+ createdByUserType?: "system" | "user" | undefined;
640
660
  createdAt?: {
641
- type: "exact";
642
- term: string;
643
- } | {
644
661
  type: "range";
645
662
  gte: string;
646
663
  lte: string;
664
+ } | {
665
+ type: "exact";
666
+ term: string;
647
667
  } | undefined;
648
668
  createdBy?: {
649
669
  type: "exact";
@@ -669,12 +689,12 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
669
689
  };
670
690
  } | undefined;
671
691
  updatedAt?: {
672
- type: "exact";
673
- term: string;
674
- } | {
675
692
  type: "range";
676
693
  gte: string;
677
694
  lte: string;
695
+ } | {
696
+ type: "exact";
697
+ term: string;
678
698
  } | undefined;
679
699
  trackingId?: {
680
700
  type: "exact";
@@ -707,21 +727,21 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
707
727
  eventType?: string | undefined;
708
728
  }, {
709
729
  status?: {
710
- type: "anyOf";
711
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
712
- } | {
713
730
  type: "exact";
714
731
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
732
+ } | {
733
+ type: "anyOf";
734
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
715
735
  } | undefined;
716
- title?: string | undefined;
717
736
  data?: any;
737
+ createdByUserType?: "system" | "user" | undefined;
718
738
  createdAt?: {
719
- type: "exact";
720
- term: string;
721
- } | {
722
739
  type: "range";
723
740
  gte: string;
724
741
  lte: string;
742
+ } | {
743
+ type: "exact";
744
+ term: string;
725
745
  } | undefined;
726
746
  createdBy?: {
727
747
  type: "exact";
@@ -747,12 +767,12 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
747
767
  };
748
768
  } | undefined;
749
769
  updatedAt?: {
750
- type: "exact";
751
- term: string;
752
- } | {
753
770
  type: "range";
754
771
  gte: string;
755
772
  lte: string;
773
+ } | {
774
+ type: "exact";
775
+ term: string;
756
776
  } | undefined;
757
777
  trackingId?: {
758
778
  type: "exact";
@@ -788,21 +808,21 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
788
808
  type: "and";
789
809
  clauses: {
790
810
  status?: {
791
- type: "anyOf";
792
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
793
- } | {
794
811
  type: "exact";
795
812
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
813
+ } | {
814
+ type: "anyOf";
815
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
796
816
  } | undefined;
797
- title?: string | undefined;
798
817
  data?: any;
818
+ createdByUserType?: "system" | "user" | undefined;
799
819
  createdAt?: {
800
- type: "exact";
801
- term: string;
802
- } | {
803
820
  type: "range";
804
821
  gte: string;
805
822
  lte: string;
823
+ } | {
824
+ type: "exact";
825
+ term: string;
806
826
  } | undefined;
807
827
  createdBy?: {
808
828
  type: "exact";
@@ -828,12 +848,12 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
828
848
  };
829
849
  } | undefined;
830
850
  updatedAt?: {
831
- type: "exact";
832
- term: string;
833
- } | {
834
851
  type: "range";
835
852
  gte: string;
836
853
  lte: string;
854
+ } | {
855
+ type: "exact";
856
+ term: string;
837
857
  } | undefined;
838
858
  trackingId?: {
839
859
  type: "exact";
@@ -869,21 +889,21 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
869
889
  type: "and";
870
890
  clauses: {
871
891
  status?: {
872
- type: "anyOf";
873
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
874
- } | {
875
892
  type: "exact";
876
893
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
894
+ } | {
895
+ type: "anyOf";
896
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
877
897
  } | undefined;
878
- title?: string | undefined;
879
898
  data?: any;
899
+ createdByUserType?: "system" | "user" | undefined;
880
900
  createdAt?: {
881
- type: "exact";
882
- term: string;
883
- } | {
884
901
  type: "range";
885
902
  gte: string;
886
903
  lte: string;
904
+ } | {
905
+ type: "exact";
906
+ term: string;
887
907
  } | undefined;
888
908
  createdBy?: {
889
909
  type: "exact";
@@ -909,12 +929,12 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
909
929
  };
910
930
  } | undefined;
911
931
  updatedAt?: {
912
- type: "exact";
913
- term: string;
914
- } | {
915
932
  type: "range";
916
933
  gte: string;
917
934
  lte: string;
935
+ } | {
936
+ type: "exact";
937
+ term: string;
918
938
  } | undefined;
919
939
  trackingId?: {
920
940
  type: "exact";
@@ -949,7 +969,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
949
969
  }>, z.ZodObject<{
950
970
  type: z.ZodLiteral<"or">;
951
971
  clauses: z.ZodArray<z.ZodObject<{
952
- title: z.ZodOptional<z.ZodString>;
953
972
  eventType: z.ZodOptional<z.ZodString>;
954
973
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
955
974
  type: z.ZodLiteral<"anyOf">;
@@ -970,20 +989,25 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
970
989
  type: "exact";
971
990
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
972
991
  }>]>>>;
973
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
992
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
974
993
  type: z.ZodLiteral<"exact">;
975
994
  term: z.ZodString;
976
- }, "strip", z.ZodTypeAny, {
995
+ }, {
996
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
997
+ }>, "strip", z.ZodTypeAny, {
977
998
  type: "exact";
978
999
  term: string;
979
1000
  }, {
980
1001
  type: "exact";
981
1002
  term: string;
982
- }>, z.ZodObject<{
1003
+ }>, z.ZodObject<z.objectUtil.extendShape<{
983
1004
  type: z.ZodLiteral<"range">;
984
1005
  gte: z.ZodString;
985
1006
  lte: z.ZodString;
986
- }, "strip", z.ZodTypeAny, {
1007
+ }, {
1008
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1009
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1010
+ }>, "strip", z.ZodTypeAny, {
987
1011
  type: "range";
988
1012
  gte: string;
989
1013
  lte: string;
@@ -992,20 +1016,25 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
992
1016
  gte: string;
993
1017
  lte: string;
994
1018
  }>]>>>;
995
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1019
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
996
1020
  type: z.ZodLiteral<"exact">;
997
1021
  term: z.ZodString;
998
- }, "strip", z.ZodTypeAny, {
1022
+ }, {
1023
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1024
+ }>, "strip", z.ZodTypeAny, {
999
1025
  type: "exact";
1000
1026
  term: string;
1001
1027
  }, {
1002
1028
  type: "exact";
1003
1029
  term: string;
1004
- }>, z.ZodObject<{
1030
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1005
1031
  type: z.ZodLiteral<"range">;
1006
1032
  gte: z.ZodString;
1007
1033
  lte: z.ZodString;
1008
- }, "strip", z.ZodTypeAny, {
1034
+ }, {
1035
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1036
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1037
+ }>, "strip", z.ZodTypeAny, {
1009
1038
  type: "range";
1010
1039
  gte: string;
1011
1040
  lte: string;
@@ -1132,6 +1161,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
1132
1161
  $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1133
1162
  };
1134
1163
  }>>>;
1164
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
1135
1165
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1136
1166
  type: z.ZodLiteral<"exact">;
1137
1167
  term: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -1184,21 +1214,21 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
1184
1214
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1185
1215
  }, "strip", z.ZodTypeAny, {
1186
1216
  status?: {
1187
- type: "anyOf";
1188
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1189
- } | {
1190
1217
  type: "exact";
1191
1218
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1219
+ } | {
1220
+ type: "anyOf";
1221
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1192
1222
  } | undefined;
1193
- title?: string | undefined;
1194
1223
  data?: any;
1224
+ createdByUserType?: "system" | "user" | undefined;
1195
1225
  createdAt?: {
1196
- type: "exact";
1197
- term: string;
1198
- } | {
1199
1226
  type: "range";
1200
1227
  gte: string;
1201
1228
  lte: string;
1229
+ } | {
1230
+ type: "exact";
1231
+ term: string;
1202
1232
  } | undefined;
1203
1233
  createdBy?: {
1204
1234
  type: "exact";
@@ -1224,12 +1254,12 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
1224
1254
  };
1225
1255
  } | undefined;
1226
1256
  updatedAt?: {
1227
- type: "exact";
1228
- term: string;
1229
- } | {
1230
1257
  type: "range";
1231
1258
  gte: string;
1232
1259
  lte: string;
1260
+ } | {
1261
+ type: "exact";
1262
+ term: string;
1233
1263
  } | undefined;
1234
1264
  trackingId?: {
1235
1265
  type: "exact";
@@ -1262,21 +1292,21 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
1262
1292
  eventType?: string | undefined;
1263
1293
  }, {
1264
1294
  status?: {
1265
- type: "anyOf";
1266
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1267
- } | {
1268
1295
  type: "exact";
1269
1296
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1297
+ } | {
1298
+ type: "anyOf";
1299
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1270
1300
  } | undefined;
1271
- title?: string | undefined;
1272
1301
  data?: any;
1302
+ createdByUserType?: "system" | "user" | undefined;
1273
1303
  createdAt?: {
1274
- type: "exact";
1275
- term: string;
1276
- } | {
1277
1304
  type: "range";
1278
1305
  gte: string;
1279
1306
  lte: string;
1307
+ } | {
1308
+ type: "exact";
1309
+ term: string;
1280
1310
  } | undefined;
1281
1311
  createdBy?: {
1282
1312
  type: "exact";
@@ -1302,12 +1332,12 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
1302
1332
  };
1303
1333
  } | undefined;
1304
1334
  updatedAt?: {
1305
- type: "exact";
1306
- term: string;
1307
- } | {
1308
1335
  type: "range";
1309
1336
  gte: string;
1310
1337
  lte: string;
1338
+ } | {
1339
+ type: "exact";
1340
+ term: string;
1311
1341
  } | undefined;
1312
1342
  trackingId?: {
1313
1343
  type: "exact";
@@ -1343,21 +1373,21 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
1343
1373
  type: "or";
1344
1374
  clauses: {
1345
1375
  status?: {
1346
- type: "anyOf";
1347
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1348
- } | {
1349
1376
  type: "exact";
1350
1377
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1378
+ } | {
1379
+ type: "anyOf";
1380
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1351
1381
  } | undefined;
1352
- title?: string | undefined;
1353
1382
  data?: any;
1383
+ createdByUserType?: "system" | "user" | undefined;
1354
1384
  createdAt?: {
1355
- type: "exact";
1356
- term: string;
1357
- } | {
1358
1385
  type: "range";
1359
1386
  gte: string;
1360
1387
  lte: string;
1388
+ } | {
1389
+ type: "exact";
1390
+ term: string;
1361
1391
  } | undefined;
1362
1392
  createdBy?: {
1363
1393
  type: "exact";
@@ -1383,12 +1413,12 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
1383
1413
  };
1384
1414
  } | undefined;
1385
1415
  updatedAt?: {
1386
- type: "exact";
1387
- term: string;
1388
- } | {
1389
1416
  type: "range";
1390
1417
  gte: string;
1391
1418
  lte: string;
1419
+ } | {
1420
+ type: "exact";
1421
+ term: string;
1392
1422
  } | undefined;
1393
1423
  trackingId?: {
1394
1424
  type: "exact";
@@ -1424,21 +1454,21 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
1424
1454
  type: "or";
1425
1455
  clauses: {
1426
1456
  status?: {
1427
- type: "anyOf";
1428
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1429
- } | {
1430
1457
  type: "exact";
1431
1458
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1459
+ } | {
1460
+ type: "anyOf";
1461
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1432
1462
  } | undefined;
1433
- title?: string | undefined;
1434
1463
  data?: any;
1464
+ createdByUserType?: "system" | "user" | undefined;
1435
1465
  createdAt?: {
1436
- type: "exact";
1437
- term: string;
1438
- } | {
1439
1466
  type: "range";
1440
1467
  gte: string;
1441
1468
  lte: string;
1469
+ } | {
1470
+ type: "exact";
1471
+ term: string;
1442
1472
  } | undefined;
1443
1473
  createdBy?: {
1444
1474
  type: "exact";
@@ -1464,12 +1494,12 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
1464
1494
  };
1465
1495
  } | undefined;
1466
1496
  updatedAt?: {
1467
- type: "exact";
1468
- term: string;
1469
- } | {
1470
1497
  type: "range";
1471
1498
  gte: string;
1472
1499
  lte: string;
1500
+ } | {
1501
+ type: "exact";
1502
+ term: string;
1473
1503
  } | undefined;
1474
1504
  trackingId?: {
1475
1505
  type: "exact";
@@ -1504,7 +1534,6 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<"type", [z.
1504
1534
  }>]>;
1505
1535
  export type CountryConfigQueryType = z.infer<typeof CountryConfigQueryType>;
1506
1536
  export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
1507
- title: z.ZodOptional<z.ZodString>;
1508
1537
  eventType: z.ZodOptional<z.ZodString>;
1509
1538
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1510
1539
  type: z.ZodLiteral<"anyOf">;
@@ -1525,20 +1554,25 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
1525
1554
  type: "exact";
1526
1555
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1527
1556
  }>]>>>;
1528
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1557
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1529
1558
  type: z.ZodLiteral<"exact">;
1530
1559
  term: z.ZodString;
1531
- }, "strip", z.ZodTypeAny, {
1560
+ }, {
1561
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1562
+ }>, "strip", z.ZodTypeAny, {
1532
1563
  type: "exact";
1533
1564
  term: string;
1534
1565
  }, {
1535
1566
  type: "exact";
1536
1567
  term: string;
1537
- }>, z.ZodObject<{
1568
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1538
1569
  type: z.ZodLiteral<"range">;
1539
1570
  gte: z.ZodString;
1540
1571
  lte: z.ZodString;
1541
- }, "strip", z.ZodTypeAny, {
1572
+ }, {
1573
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1574
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1575
+ }>, "strip", z.ZodTypeAny, {
1542
1576
  type: "range";
1543
1577
  gte: string;
1544
1578
  lte: string;
@@ -1547,20 +1581,25 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
1547
1581
  gte: string;
1548
1582
  lte: string;
1549
1583
  }>]>>>;
1550
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1584
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1551
1585
  type: z.ZodLiteral<"exact">;
1552
1586
  term: z.ZodString;
1553
- }, "strip", z.ZodTypeAny, {
1587
+ }, {
1588
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1589
+ }>, "strip", z.ZodTypeAny, {
1554
1590
  type: "exact";
1555
1591
  term: string;
1556
1592
  }, {
1557
1593
  type: "exact";
1558
1594
  term: string;
1559
- }>, z.ZodObject<{
1595
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1560
1596
  type: z.ZodLiteral<"range">;
1561
1597
  gte: z.ZodString;
1562
1598
  lte: z.ZodString;
1563
- }, "strip", z.ZodTypeAny, {
1599
+ }, {
1600
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1601
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1602
+ }>, "strip", z.ZodTypeAny, {
1564
1603
  type: "range";
1565
1604
  gte: string;
1566
1605
  lte: string;
@@ -1687,6 +1726,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
1687
1726
  $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1688
1727
  };
1689
1728
  }>>>;
1729
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
1690
1730
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1691
1731
  type: z.ZodLiteral<"exact">;
1692
1732
  term: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -1739,21 +1779,21 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
1739
1779
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1740
1780
  }, "strip", z.ZodTypeAny, {
1741
1781
  status?: {
1742
- type: "anyOf";
1743
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1744
- } | {
1745
1782
  type: "exact";
1746
1783
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1784
+ } | {
1785
+ type: "anyOf";
1786
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1747
1787
  } | undefined;
1748
- title?: string | undefined;
1749
1788
  data?: any;
1789
+ createdByUserType?: "system" | "user" | undefined;
1750
1790
  createdAt?: {
1751
- type: "exact";
1752
- term: string;
1753
- } | {
1754
1791
  type: "range";
1755
1792
  gte: string;
1756
1793
  lte: string;
1794
+ } | {
1795
+ type: "exact";
1796
+ term: string;
1757
1797
  } | undefined;
1758
1798
  createdBy?: {
1759
1799
  type: "exact";
@@ -1779,12 +1819,12 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
1779
1819
  };
1780
1820
  } | undefined;
1781
1821
  updatedAt?: {
1782
- type: "exact";
1783
- term: string;
1784
- } | {
1785
1822
  type: "range";
1786
1823
  gte: string;
1787
1824
  lte: string;
1825
+ } | {
1826
+ type: "exact";
1827
+ term: string;
1788
1828
  } | undefined;
1789
1829
  trackingId?: {
1790
1830
  type: "exact";
@@ -1817,21 +1857,21 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
1817
1857
  eventType?: string | undefined;
1818
1858
  }, {
1819
1859
  status?: {
1820
- type: "anyOf";
1821
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1822
- } | {
1823
1860
  type: "exact";
1824
1861
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1862
+ } | {
1863
+ type: "anyOf";
1864
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1825
1865
  } | undefined;
1826
- title?: string | undefined;
1827
1866
  data?: any;
1867
+ createdByUserType?: "system" | "user" | undefined;
1828
1868
  createdAt?: {
1829
- type: "exact";
1830
- term: string;
1831
- } | {
1832
1869
  type: "range";
1833
1870
  gte: string;
1834
1871
  lte: string;
1872
+ } | {
1873
+ type: "exact";
1874
+ term: string;
1835
1875
  } | undefined;
1836
1876
  createdBy?: {
1837
1877
  type: "exact";
@@ -1857,12 +1897,12 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
1857
1897
  };
1858
1898
  } | undefined;
1859
1899
  updatedAt?: {
1860
- type: "exact";
1861
- term: string;
1862
- } | {
1863
1900
  type: "range";
1864
1901
  gte: string;
1865
1902
  lte: string;
1903
+ } | {
1904
+ type: "exact";
1905
+ term: string;
1866
1906
  } | undefined;
1867
1907
  trackingId?: {
1868
1908
  type: "exact";
@@ -1896,7 +1936,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
1896
1936
  }>, z.ZodObject<{
1897
1937
  type: z.ZodLiteral<"and">;
1898
1938
  clauses: z.ZodArray<z.ZodObject<{
1899
- title: z.ZodOptional<z.ZodString>;
1900
1939
  eventType: z.ZodOptional<z.ZodString>;
1901
1940
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1902
1941
  type: z.ZodLiteral<"anyOf">;
@@ -1917,20 +1956,25 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
1917
1956
  type: "exact";
1918
1957
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1919
1958
  }>]>>>;
1920
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1959
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1921
1960
  type: z.ZodLiteral<"exact">;
1922
1961
  term: z.ZodString;
1923
- }, "strip", z.ZodTypeAny, {
1962
+ }, {
1963
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1964
+ }>, "strip", z.ZodTypeAny, {
1924
1965
  type: "exact";
1925
1966
  term: string;
1926
1967
  }, {
1927
1968
  type: "exact";
1928
1969
  term: string;
1929
- }>, z.ZodObject<{
1970
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1930
1971
  type: z.ZodLiteral<"range">;
1931
1972
  gte: z.ZodString;
1932
1973
  lte: z.ZodString;
1933
- }, "strip", z.ZodTypeAny, {
1974
+ }, {
1975
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1976
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1977
+ }>, "strip", z.ZodTypeAny, {
1934
1978
  type: "range";
1935
1979
  gte: string;
1936
1980
  lte: string;
@@ -1939,20 +1983,25 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
1939
1983
  gte: string;
1940
1984
  lte: string;
1941
1985
  }>]>>>;
1942
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1986
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1943
1987
  type: z.ZodLiteral<"exact">;
1944
1988
  term: z.ZodString;
1945
- }, "strip", z.ZodTypeAny, {
1989
+ }, {
1990
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1991
+ }>, "strip", z.ZodTypeAny, {
1946
1992
  type: "exact";
1947
1993
  term: string;
1948
1994
  }, {
1949
1995
  type: "exact";
1950
1996
  term: string;
1951
- }>, z.ZodObject<{
1997
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1952
1998
  type: z.ZodLiteral<"range">;
1953
1999
  gte: z.ZodString;
1954
2000
  lte: z.ZodString;
1955
- }, "strip", z.ZodTypeAny, {
2001
+ }, {
2002
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2003
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2004
+ }>, "strip", z.ZodTypeAny, {
1956
2005
  type: "range";
1957
2006
  gte: string;
1958
2007
  lte: string;
@@ -2079,6 +2128,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2079
2128
  $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2080
2129
  };
2081
2130
  }>>>;
2131
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
2082
2132
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2083
2133
  type: z.ZodLiteral<"exact">;
2084
2134
  term: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -2131,21 +2181,21 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2131
2181
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
2132
2182
  }, "strip", z.ZodTypeAny, {
2133
2183
  status?: {
2134
- type: "anyOf";
2135
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2136
- } | {
2137
2184
  type: "exact";
2138
2185
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2186
+ } | {
2187
+ type: "anyOf";
2188
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2139
2189
  } | undefined;
2140
- title?: string | undefined;
2141
2190
  data?: any;
2191
+ createdByUserType?: "system" | "user" | undefined;
2142
2192
  createdAt?: {
2143
- type: "exact";
2144
- term: string;
2145
- } | {
2146
2193
  type: "range";
2147
2194
  gte: string;
2148
2195
  lte: string;
2196
+ } | {
2197
+ type: "exact";
2198
+ term: string;
2149
2199
  } | undefined;
2150
2200
  createdBy?: {
2151
2201
  type: "exact";
@@ -2171,12 +2221,12 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2171
2221
  };
2172
2222
  } | undefined;
2173
2223
  updatedAt?: {
2174
- type: "exact";
2175
- term: string;
2176
- } | {
2177
2224
  type: "range";
2178
2225
  gte: string;
2179
2226
  lte: string;
2227
+ } | {
2228
+ type: "exact";
2229
+ term: string;
2180
2230
  } | undefined;
2181
2231
  trackingId?: {
2182
2232
  type: "exact";
@@ -2209,21 +2259,21 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2209
2259
  eventType?: string | undefined;
2210
2260
  }, {
2211
2261
  status?: {
2212
- type: "anyOf";
2213
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2214
- } | {
2215
2262
  type: "exact";
2216
2263
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2264
+ } | {
2265
+ type: "anyOf";
2266
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2217
2267
  } | undefined;
2218
- title?: string | undefined;
2219
2268
  data?: any;
2269
+ createdByUserType?: "system" | "user" | undefined;
2220
2270
  createdAt?: {
2221
- type: "exact";
2222
- term: string;
2223
- } | {
2224
2271
  type: "range";
2225
2272
  gte: string;
2226
2273
  lte: string;
2274
+ } | {
2275
+ type: "exact";
2276
+ term: string;
2227
2277
  } | undefined;
2228
2278
  createdBy?: {
2229
2279
  type: "exact";
@@ -2249,12 +2299,12 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2249
2299
  };
2250
2300
  } | undefined;
2251
2301
  updatedAt?: {
2252
- type: "exact";
2253
- term: string;
2254
- } | {
2255
2302
  type: "range";
2256
2303
  gte: string;
2257
2304
  lte: string;
2305
+ } | {
2306
+ type: "exact";
2307
+ term: string;
2258
2308
  } | undefined;
2259
2309
  trackingId?: {
2260
2310
  type: "exact";
@@ -2290,21 +2340,21 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2290
2340
  type: "and";
2291
2341
  clauses: {
2292
2342
  status?: {
2293
- type: "anyOf";
2294
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2295
- } | {
2296
2343
  type: "exact";
2297
2344
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2345
+ } | {
2346
+ type: "anyOf";
2347
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2298
2348
  } | undefined;
2299
- title?: string | undefined;
2300
2349
  data?: any;
2350
+ createdByUserType?: "system" | "user" | undefined;
2301
2351
  createdAt?: {
2302
- type: "exact";
2303
- term: string;
2304
- } | {
2305
2352
  type: "range";
2306
2353
  gte: string;
2307
2354
  lte: string;
2355
+ } | {
2356
+ type: "exact";
2357
+ term: string;
2308
2358
  } | undefined;
2309
2359
  createdBy?: {
2310
2360
  type: "exact";
@@ -2330,12 +2380,12 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2330
2380
  };
2331
2381
  } | undefined;
2332
2382
  updatedAt?: {
2333
- type: "exact";
2334
- term: string;
2335
- } | {
2336
2383
  type: "range";
2337
2384
  gte: string;
2338
2385
  lte: string;
2386
+ } | {
2387
+ type: "exact";
2388
+ term: string;
2339
2389
  } | undefined;
2340
2390
  trackingId?: {
2341
2391
  type: "exact";
@@ -2371,21 +2421,21 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2371
2421
  type: "and";
2372
2422
  clauses: {
2373
2423
  status?: {
2374
- type: "anyOf";
2375
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2376
- } | {
2377
2424
  type: "exact";
2378
2425
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2426
+ } | {
2427
+ type: "anyOf";
2428
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2379
2429
  } | undefined;
2380
- title?: string | undefined;
2381
2430
  data?: any;
2431
+ createdByUserType?: "system" | "user" | undefined;
2382
2432
  createdAt?: {
2383
- type: "exact";
2384
- term: string;
2385
- } | {
2386
2433
  type: "range";
2387
2434
  gte: string;
2388
2435
  lte: string;
2436
+ } | {
2437
+ type: "exact";
2438
+ term: string;
2389
2439
  } | undefined;
2390
2440
  createdBy?: {
2391
2441
  type: "exact";
@@ -2411,12 +2461,12 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2411
2461
  };
2412
2462
  } | undefined;
2413
2463
  updatedAt?: {
2414
- type: "exact";
2415
- term: string;
2416
- } | {
2417
2464
  type: "range";
2418
2465
  gte: string;
2419
2466
  lte: string;
2467
+ } | {
2468
+ type: "exact";
2469
+ term: string;
2420
2470
  } | undefined;
2421
2471
  trackingId?: {
2422
2472
  type: "exact";
@@ -2451,7 +2501,6 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2451
2501
  }>, z.ZodObject<{
2452
2502
  type: z.ZodLiteral<"or">;
2453
2503
  clauses: z.ZodArray<z.ZodObject<{
2454
- title: z.ZodOptional<z.ZodString>;
2455
2504
  eventType: z.ZodOptional<z.ZodString>;
2456
2505
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2457
2506
  type: z.ZodLiteral<"anyOf">;
@@ -2472,20 +2521,25 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2472
2521
  type: "exact";
2473
2522
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2474
2523
  }>]>>>;
2475
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2524
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2476
2525
  type: z.ZodLiteral<"exact">;
2477
2526
  term: z.ZodString;
2478
- }, "strip", z.ZodTypeAny, {
2527
+ }, {
2528
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
2529
+ }>, "strip", z.ZodTypeAny, {
2479
2530
  type: "exact";
2480
2531
  term: string;
2481
2532
  }, {
2482
2533
  type: "exact";
2483
2534
  term: string;
2484
- }>, z.ZodObject<{
2535
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2485
2536
  type: z.ZodLiteral<"range">;
2486
2537
  gte: z.ZodString;
2487
2538
  lte: z.ZodString;
2488
- }, "strip", z.ZodTypeAny, {
2539
+ }, {
2540
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2541
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2542
+ }>, "strip", z.ZodTypeAny, {
2489
2543
  type: "range";
2490
2544
  gte: string;
2491
2545
  lte: string;
@@ -2494,20 +2548,25 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2494
2548
  gte: string;
2495
2549
  lte: string;
2496
2550
  }>]>>>;
2497
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2551
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2498
2552
  type: z.ZodLiteral<"exact">;
2499
2553
  term: z.ZodString;
2500
- }, "strip", z.ZodTypeAny, {
2554
+ }, {
2555
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
2556
+ }>, "strip", z.ZodTypeAny, {
2501
2557
  type: "exact";
2502
2558
  term: string;
2503
2559
  }, {
2504
2560
  type: "exact";
2505
2561
  term: string;
2506
- }>, z.ZodObject<{
2562
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2507
2563
  type: z.ZodLiteral<"range">;
2508
2564
  gte: z.ZodString;
2509
2565
  lte: z.ZodString;
2510
- }, "strip", z.ZodTypeAny, {
2566
+ }, {
2567
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2568
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2569
+ }>, "strip", z.ZodTypeAny, {
2511
2570
  type: "range";
2512
2571
  gte: string;
2513
2572
  lte: string;
@@ -2634,6 +2693,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2634
2693
  $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2635
2694
  };
2636
2695
  }>>>;
2696
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
2637
2697
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2638
2698
  type: z.ZodLiteral<"exact">;
2639
2699
  term: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -2686,21 +2746,21 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2686
2746
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
2687
2747
  }, "strip", z.ZodTypeAny, {
2688
2748
  status?: {
2689
- type: "anyOf";
2690
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2691
- } | {
2692
2749
  type: "exact";
2693
2750
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2751
+ } | {
2752
+ type: "anyOf";
2753
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2694
2754
  } | undefined;
2695
- title?: string | undefined;
2696
2755
  data?: any;
2756
+ createdByUserType?: "system" | "user" | undefined;
2697
2757
  createdAt?: {
2698
- type: "exact";
2699
- term: string;
2700
- } | {
2701
2758
  type: "range";
2702
2759
  gte: string;
2703
2760
  lte: string;
2761
+ } | {
2762
+ type: "exact";
2763
+ term: string;
2704
2764
  } | undefined;
2705
2765
  createdBy?: {
2706
2766
  type: "exact";
@@ -2726,12 +2786,12 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2726
2786
  };
2727
2787
  } | undefined;
2728
2788
  updatedAt?: {
2729
- type: "exact";
2730
- term: string;
2731
- } | {
2732
2789
  type: "range";
2733
2790
  gte: string;
2734
2791
  lte: string;
2792
+ } | {
2793
+ type: "exact";
2794
+ term: string;
2735
2795
  } | undefined;
2736
2796
  trackingId?: {
2737
2797
  type: "exact";
@@ -2764,21 +2824,21 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2764
2824
  eventType?: string | undefined;
2765
2825
  }, {
2766
2826
  status?: {
2767
- type: "anyOf";
2768
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2769
- } | {
2770
2827
  type: "exact";
2771
2828
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2829
+ } | {
2830
+ type: "anyOf";
2831
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2772
2832
  } | undefined;
2773
- title?: string | undefined;
2774
2833
  data?: any;
2834
+ createdByUserType?: "system" | "user" | undefined;
2775
2835
  createdAt?: {
2776
- type: "exact";
2777
- term: string;
2778
- } | {
2779
2836
  type: "range";
2780
2837
  gte: string;
2781
2838
  lte: string;
2839
+ } | {
2840
+ type: "exact";
2841
+ term: string;
2782
2842
  } | undefined;
2783
2843
  createdBy?: {
2784
2844
  type: "exact";
@@ -2804,12 +2864,12 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2804
2864
  };
2805
2865
  } | undefined;
2806
2866
  updatedAt?: {
2807
- type: "exact";
2808
- term: string;
2809
- } | {
2810
2867
  type: "range";
2811
2868
  gte: string;
2812
2869
  lte: string;
2870
+ } | {
2871
+ type: "exact";
2872
+ term: string;
2813
2873
  } | undefined;
2814
2874
  trackingId?: {
2815
2875
  type: "exact";
@@ -2845,21 +2905,21 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2845
2905
  type: "or";
2846
2906
  clauses: {
2847
2907
  status?: {
2848
- type: "anyOf";
2849
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2850
- } | {
2851
2908
  type: "exact";
2852
2909
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2910
+ } | {
2911
+ type: "anyOf";
2912
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2853
2913
  } | undefined;
2854
- title?: string | undefined;
2855
2914
  data?: any;
2915
+ createdByUserType?: "system" | "user" | undefined;
2856
2916
  createdAt?: {
2857
- type: "exact";
2858
- term: string;
2859
- } | {
2860
2917
  type: "range";
2861
2918
  gte: string;
2862
2919
  lte: string;
2920
+ } | {
2921
+ type: "exact";
2922
+ term: string;
2863
2923
  } | undefined;
2864
2924
  createdBy?: {
2865
2925
  type: "exact";
@@ -2885,12 +2945,12 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2885
2945
  };
2886
2946
  } | undefined;
2887
2947
  updatedAt?: {
2888
- type: "exact";
2889
- term: string;
2890
- } | {
2891
2948
  type: "range";
2892
2949
  gte: string;
2893
2950
  lte: string;
2951
+ } | {
2952
+ type: "exact";
2953
+ term: string;
2894
2954
  } | undefined;
2895
2955
  trackingId?: {
2896
2956
  type: "exact";
@@ -2926,21 +2986,21 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2926
2986
  type: "or";
2927
2987
  clauses: {
2928
2988
  status?: {
2929
- type: "anyOf";
2930
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2931
- } | {
2932
2989
  type: "exact";
2933
2990
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2991
+ } | {
2992
+ type: "anyOf";
2993
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2934
2994
  } | undefined;
2935
- title?: string | undefined;
2936
2995
  data?: any;
2996
+ createdByUserType?: "system" | "user" | undefined;
2937
2997
  createdAt?: {
2938
- type: "exact";
2939
- term: string;
2940
- } | {
2941
2998
  type: "range";
2942
2999
  gte: string;
2943
3000
  lte: string;
3001
+ } | {
3002
+ type: "exact";
3003
+ term: string;
2944
3004
  } | undefined;
2945
3005
  createdBy?: {
2946
3006
  type: "exact";
@@ -2966,12 +3026,12 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<[z.ZodObject<{
2966
3026
  };
2967
3027
  } | undefined;
2968
3028
  updatedAt?: {
2969
- type: "exact";
2970
- term: string;
2971
- } | {
2972
3029
  type: "range";
2973
3030
  gte: string;
2974
3031
  lte: string;
3032
+ } | {
3033
+ type: "exact";
3034
+ term: string;
2975
3035
  } | undefined;
2976
3036
  trackingId?: {
2977
3037
  type: "exact";