@opencrvs/toolkit 1.8.0-rc.fde984c → 1.8.0-rc.fe4d9d5

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.
@@ -2,10 +2,12 @@ import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
3
  export declare const mandatoryColumns: {
4
4
  value: {
5
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
5
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
6
6
  };
7
7
  label: TranslationConfig;
8
8
  }[];
9
+ export declare const WorkqueueActionsWithDefault: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN", "DEFAULT"]>;
10
+ export type WorkqueueActionsWithDefault = z.infer<typeof WorkqueueActionsWithDefault>;
9
11
  /**
10
12
  * Configuration for workqueue. Workqueues are used to display a list of events.
11
13
  */
@@ -39,20 +41,25 @@ export declare const WorkqueueConfig: z.ZodObject<{
39
41
  type: "exact";
40
42
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
41
43
  }>]>>>;
42
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
44
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
43
45
  type: z.ZodLiteral<"exact">;
44
46
  term: z.ZodString;
45
- }, "strip", z.ZodTypeAny, {
47
+ }, {
48
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
49
+ }>, "strip", z.ZodTypeAny, {
46
50
  type: "exact";
47
51
  term: string;
48
52
  }, {
49
53
  type: "exact";
50
54
  term: string;
51
- }>, z.ZodObject<{
55
+ }>, z.ZodObject<z.objectUtil.extendShape<{
52
56
  type: z.ZodLiteral<"range">;
53
57
  gte: z.ZodString;
54
58
  lte: z.ZodString;
55
- }, "strip", z.ZodTypeAny, {
59
+ }, {
60
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
61
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
62
+ }>, "strip", z.ZodTypeAny, {
56
63
  type: "range";
57
64
  gte: string;
58
65
  lte: string;
@@ -61,20 +68,25 @@ export declare const WorkqueueConfig: z.ZodObject<{
61
68
  gte: string;
62
69
  lte: string;
63
70
  }>]>>>;
64
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
71
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
65
72
  type: z.ZodLiteral<"exact">;
66
73
  term: z.ZodString;
67
- }, "strip", z.ZodTypeAny, {
74
+ }, {
75
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
76
+ }>, "strip", z.ZodTypeAny, {
68
77
  type: "exact";
69
78
  term: string;
70
79
  }, {
71
80
  type: "exact";
72
81
  term: string;
73
- }>, z.ZodObject<{
82
+ }>, z.ZodObject<z.objectUtil.extendShape<{
74
83
  type: z.ZodLiteral<"range">;
75
84
  gte: z.ZodString;
76
85
  lte: z.ZodString;
77
- }, "strip", z.ZodTypeAny, {
86
+ }, {
87
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
88
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
89
+ }>, "strip", z.ZodTypeAny, {
78
90
  type: "range";
79
91
  gte: string;
80
92
  lte: string;
@@ -201,6 +213,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
201
213
  $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
202
214
  };
203
215
  }>>>;
216
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
204
217
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
205
218
  type: z.ZodLiteral<"exact">;
206
219
  term: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -260,13 +273,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
260
273
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
261
274
  } | undefined;
262
275
  data?: any;
276
+ createdByUserType?: "system" | "user" | undefined;
263
277
  createdAt?: {
264
- type: "exact";
265
- term: string;
266
- } | {
267
278
  type: "range";
268
279
  gte: string;
269
280
  lte: string;
281
+ } | {
282
+ type: "exact";
283
+ term: string;
270
284
  } | undefined;
271
285
  createdBy?: {
272
286
  type: "exact";
@@ -292,12 +306,12 @@ export declare const WorkqueueConfig: z.ZodObject<{
292
306
  };
293
307
  } | undefined;
294
308
  updatedAt?: {
295
- type: "exact";
296
- term: string;
297
- } | {
298
309
  type: "range";
299
310
  gte: string;
300
311
  lte: string;
312
+ } | {
313
+ type: "exact";
314
+ term: string;
301
315
  } | undefined;
302
316
  trackingId?: {
303
317
  type: "exact";
@@ -337,13 +351,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
337
351
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
338
352
  } | undefined;
339
353
  data?: any;
354
+ createdByUserType?: "system" | "user" | undefined;
340
355
  createdAt?: {
341
- type: "exact";
342
- term: string;
343
- } | {
344
356
  type: "range";
345
357
  gte: string;
346
358
  lte: string;
359
+ } | {
360
+ type: "exact";
361
+ term: string;
347
362
  } | undefined;
348
363
  createdBy?: {
349
364
  type: "exact";
@@ -369,12 +384,12 @@ export declare const WorkqueueConfig: z.ZodObject<{
369
384
  };
370
385
  } | undefined;
371
386
  updatedAt?: {
372
- type: "exact";
373
- term: string;
374
- } | {
375
387
  type: "range";
376
388
  gte: string;
377
389
  lte: string;
390
+ } | {
391
+ type: "exact";
392
+ term: string;
378
393
  } | undefined;
379
394
  trackingId?: {
380
395
  type: "exact";
@@ -417,13 +432,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
417
432
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
418
433
  } | undefined;
419
434
  data?: any;
435
+ createdByUserType?: "system" | "user" | undefined;
420
436
  createdAt?: {
421
- type: "exact";
422
- term: string;
423
- } | {
424
437
  type: "range";
425
438
  gte: string;
426
439
  lte: string;
440
+ } | {
441
+ type: "exact";
442
+ term: string;
427
443
  } | undefined;
428
444
  createdBy?: {
429
445
  type: "exact";
@@ -449,12 +465,12 @@ export declare const WorkqueueConfig: z.ZodObject<{
449
465
  };
450
466
  } | undefined;
451
467
  updatedAt?: {
452
- type: "exact";
453
- term: string;
454
- } | {
455
468
  type: "range";
456
469
  gte: string;
457
470
  lte: string;
471
+ } | {
472
+ type: "exact";
473
+ term: string;
458
474
  } | undefined;
459
475
  trackingId?: {
460
476
  type: "exact";
@@ -497,13 +513,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
497
513
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
498
514
  } | undefined;
499
515
  data?: any;
516
+ createdByUserType?: "system" | "user" | undefined;
500
517
  createdAt?: {
501
- type: "exact";
502
- term: string;
503
- } | {
504
518
  type: "range";
505
519
  gte: string;
506
520
  lte: string;
521
+ } | {
522
+ type: "exact";
523
+ term: string;
507
524
  } | undefined;
508
525
  createdBy?: {
509
526
  type: "exact";
@@ -529,12 +546,12 @@ export declare const WorkqueueConfig: z.ZodObject<{
529
546
  };
530
547
  } | undefined;
531
548
  updatedAt?: {
532
- type: "exact";
533
- term: string;
534
- } | {
535
549
  type: "range";
536
550
  gte: string;
537
551
  lte: string;
552
+ } | {
553
+ type: "exact";
554
+ term: string;
538
555
  } | undefined;
539
556
  trackingId?: {
540
557
  type: "exact";
@@ -589,20 +606,25 @@ export declare const WorkqueueConfig: z.ZodObject<{
589
606
  type: "exact";
590
607
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
591
608
  }>]>>>;
592
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
609
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
593
610
  type: z.ZodLiteral<"exact">;
594
611
  term: z.ZodString;
595
- }, "strip", z.ZodTypeAny, {
612
+ }, {
613
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
614
+ }>, "strip", z.ZodTypeAny, {
596
615
  type: "exact";
597
616
  term: string;
598
617
  }, {
599
618
  type: "exact";
600
619
  term: string;
601
- }>, z.ZodObject<{
620
+ }>, z.ZodObject<z.objectUtil.extendShape<{
602
621
  type: z.ZodLiteral<"range">;
603
622
  gte: z.ZodString;
604
623
  lte: z.ZodString;
605
- }, "strip", z.ZodTypeAny, {
624
+ }, {
625
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
626
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
627
+ }>, "strip", z.ZodTypeAny, {
606
628
  type: "range";
607
629
  gte: string;
608
630
  lte: string;
@@ -611,20 +633,25 @@ export declare const WorkqueueConfig: z.ZodObject<{
611
633
  gte: string;
612
634
  lte: string;
613
635
  }>]>>>;
614
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
636
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
615
637
  type: z.ZodLiteral<"exact">;
616
638
  term: z.ZodString;
617
- }, "strip", z.ZodTypeAny, {
639
+ }, {
640
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
641
+ }>, "strip", z.ZodTypeAny, {
618
642
  type: "exact";
619
643
  term: string;
620
644
  }, {
621
645
  type: "exact";
622
646
  term: string;
623
- }>, z.ZodObject<{
647
+ }>, z.ZodObject<z.objectUtil.extendShape<{
624
648
  type: z.ZodLiteral<"range">;
625
649
  gte: z.ZodString;
626
650
  lte: z.ZodString;
627
- }, "strip", z.ZodTypeAny, {
651
+ }, {
652
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
653
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
654
+ }>, "strip", z.ZodTypeAny, {
628
655
  type: "range";
629
656
  gte: string;
630
657
  lte: string;
@@ -751,6 +778,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
751
778
  $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
752
779
  };
753
780
  }>>>;
781
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
754
782
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
755
783
  type: z.ZodLiteral<"exact">;
756
784
  term: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -810,13 +838,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
810
838
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
811
839
  } | undefined;
812
840
  data?: any;
841
+ createdByUserType?: "system" | "user" | undefined;
813
842
  createdAt?: {
814
- type: "exact";
815
- term: string;
816
- } | {
817
843
  type: "range";
818
844
  gte: string;
819
845
  lte: string;
846
+ } | {
847
+ type: "exact";
848
+ term: string;
820
849
  } | undefined;
821
850
  createdBy?: {
822
851
  type: "exact";
@@ -842,12 +871,12 @@ export declare const WorkqueueConfig: z.ZodObject<{
842
871
  };
843
872
  } | undefined;
844
873
  updatedAt?: {
845
- type: "exact";
846
- term: string;
847
- } | {
848
874
  type: "range";
849
875
  gte: string;
850
876
  lte: string;
877
+ } | {
878
+ type: "exact";
879
+ term: string;
851
880
  } | undefined;
852
881
  trackingId?: {
853
882
  type: "exact";
@@ -887,13 +916,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
887
916
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
888
917
  } | undefined;
889
918
  data?: any;
919
+ createdByUserType?: "system" | "user" | undefined;
890
920
  createdAt?: {
891
- type: "exact";
892
- term: string;
893
- } | {
894
921
  type: "range";
895
922
  gte: string;
896
923
  lte: string;
924
+ } | {
925
+ type: "exact";
926
+ term: string;
897
927
  } | undefined;
898
928
  createdBy?: {
899
929
  type: "exact";
@@ -919,12 +949,12 @@ export declare const WorkqueueConfig: z.ZodObject<{
919
949
  };
920
950
  } | undefined;
921
951
  updatedAt?: {
922
- type: "exact";
923
- term: string;
924
- } | {
925
952
  type: "range";
926
953
  gte: string;
927
954
  lte: string;
955
+ } | {
956
+ type: "exact";
957
+ term: string;
928
958
  } | undefined;
929
959
  trackingId?: {
930
960
  type: "exact";
@@ -967,13 +997,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
967
997
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
968
998
  } | undefined;
969
999
  data?: any;
1000
+ createdByUserType?: "system" | "user" | undefined;
970
1001
  createdAt?: {
971
- type: "exact";
972
- term: string;
973
- } | {
974
1002
  type: "range";
975
1003
  gte: string;
976
1004
  lte: string;
1005
+ } | {
1006
+ type: "exact";
1007
+ term: string;
977
1008
  } | undefined;
978
1009
  createdBy?: {
979
1010
  type: "exact";
@@ -999,12 +1030,12 @@ export declare const WorkqueueConfig: z.ZodObject<{
999
1030
  };
1000
1031
  } | undefined;
1001
1032
  updatedAt?: {
1002
- type: "exact";
1003
- term: string;
1004
- } | {
1005
1033
  type: "range";
1006
1034
  gte: string;
1007
1035
  lte: string;
1036
+ } | {
1037
+ type: "exact";
1038
+ term: string;
1008
1039
  } | undefined;
1009
1040
  trackingId?: {
1010
1041
  type: "exact";
@@ -1047,13 +1078,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
1047
1078
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1048
1079
  } | undefined;
1049
1080
  data?: any;
1081
+ createdByUserType?: "system" | "user" | undefined;
1050
1082
  createdAt?: {
1051
- type: "exact";
1052
- term: string;
1053
- } | {
1054
1083
  type: "range";
1055
1084
  gte: string;
1056
1085
  lte: string;
1086
+ } | {
1087
+ type: "exact";
1088
+ term: string;
1057
1089
  } | undefined;
1058
1090
  createdBy?: {
1059
1091
  type: "exact";
@@ -1079,12 +1111,12 @@ export declare const WorkqueueConfig: z.ZodObject<{
1079
1111
  };
1080
1112
  } | undefined;
1081
1113
  updatedAt?: {
1082
- type: "exact";
1083
- term: string;
1084
- } | {
1085
1114
  type: "range";
1086
1115
  gte: string;
1087
1116
  lte: string;
1117
+ } | {
1118
+ type: "exact";
1119
+ term: string;
1088
1120
  } | undefined;
1089
1121
  trackingId?: {
1090
1122
  type: "exact";
@@ -1118,13 +1150,13 @@ export declare const WorkqueueConfig: z.ZodObject<{
1118
1150
  }[];
1119
1151
  }>]>;
1120
1152
  actions: z.ZodArray<z.ZodObject<{
1121
- type: z.ZodString;
1153
+ type: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN", "DEFAULT"]>;
1122
1154
  conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
1123
1155
  }, "strip", z.ZodTypeAny, {
1124
- type: string;
1156
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
1125
1157
  conditionals?: import(".").JSONSchema[] | undefined;
1126
1158
  }, {
1127
- type: string;
1159
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
1128
1160
  conditionals?: import(".").JSONSchema[] | undefined;
1129
1161
  }>, "many">;
1130
1162
  columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1134,20 +1166,20 @@ export declare const WorkqueueConfig: z.ZodObject<{
1134
1166
  defaultMessage: string;
1135
1167
  }>;
1136
1168
  value: z.ZodObject<{
1137
- $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
1169
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
1138
1170
  }, "strip", z.ZodTypeAny, {
1139
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1171
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
1140
1172
  }, {
1141
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1173
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
1142
1174
  }>;
1143
1175
  }, "strip", z.ZodTypeAny, {
1144
1176
  value: {
1145
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1177
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
1146
1178
  };
1147
1179
  label: TranslationConfig;
1148
1180
  }, {
1149
1181
  value: {
1150
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1182
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
1151
1183
  };
1152
1184
  label: {
1153
1185
  id: string;
@@ -1159,7 +1191,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
1159
1191
  }, "strip", z.ZodTypeAny, {
1160
1192
  name: TranslationConfig;
1161
1193
  actions: {
1162
- type: string;
1194
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
1163
1195
  conditionals?: import(".").JSONSchema[] | undefined;
1164
1196
  }[];
1165
1197
  query: {
@@ -1173,13 +1205,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
1173
1205
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1174
1206
  } | undefined;
1175
1207
  data?: any;
1208
+ createdByUserType?: "system" | "user" | undefined;
1176
1209
  createdAt?: {
1177
- type: "exact";
1178
- term: string;
1179
- } | {
1180
1210
  type: "range";
1181
1211
  gte: string;
1182
1212
  lte: string;
1213
+ } | {
1214
+ type: "exact";
1215
+ term: string;
1183
1216
  } | undefined;
1184
1217
  createdBy?: {
1185
1218
  type: "exact";
@@ -1205,12 +1238,12 @@ export declare const WorkqueueConfig: z.ZodObject<{
1205
1238
  };
1206
1239
  } | undefined;
1207
1240
  updatedAt?: {
1208
- type: "exact";
1209
- term: string;
1210
- } | {
1211
1241
  type: "range";
1212
1242
  gte: string;
1213
1243
  lte: string;
1244
+ } | {
1245
+ type: "exact";
1246
+ term: string;
1214
1247
  } | undefined;
1215
1248
  trackingId?: {
1216
1249
  type: "exact";
@@ -1253,13 +1286,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
1253
1286
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1254
1287
  } | undefined;
1255
1288
  data?: any;
1289
+ createdByUserType?: "system" | "user" | undefined;
1256
1290
  createdAt?: {
1257
- type: "exact";
1258
- term: string;
1259
- } | {
1260
1291
  type: "range";
1261
1292
  gte: string;
1262
1293
  lte: string;
1294
+ } | {
1295
+ type: "exact";
1296
+ term: string;
1263
1297
  } | undefined;
1264
1298
  createdBy?: {
1265
1299
  type: "exact";
@@ -1285,12 +1319,12 @@ export declare const WorkqueueConfig: z.ZodObject<{
1285
1319
  };
1286
1320
  } | undefined;
1287
1321
  updatedAt?: {
1288
- type: "exact";
1289
- term: string;
1290
- } | {
1291
1322
  type: "range";
1292
1323
  gte: string;
1293
1324
  lte: string;
1325
+ } | {
1326
+ type: "exact";
1327
+ term: string;
1294
1328
  } | undefined;
1295
1329
  trackingId?: {
1296
1330
  type: "exact";
@@ -1326,7 +1360,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
1326
1360
  slug: string;
1327
1361
  columns: {
1328
1362
  value: {
1329
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1363
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
1330
1364
  };
1331
1365
  label: TranslationConfig;
1332
1366
  }[];
@@ -1338,7 +1372,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
1338
1372
  defaultMessage: string;
1339
1373
  };
1340
1374
  actions: {
1341
- type: string;
1375
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
1342
1376
  conditionals?: import(".").JSONSchema[] | undefined;
1343
1377
  }[];
1344
1378
  query: {
@@ -1352,13 +1386,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
1352
1386
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1353
1387
  } | undefined;
1354
1388
  data?: any;
1389
+ createdByUserType?: "system" | "user" | undefined;
1355
1390
  createdAt?: {
1356
- type: "exact";
1357
- term: string;
1358
- } | {
1359
1391
  type: "range";
1360
1392
  gte: string;
1361
1393
  lte: string;
1394
+ } | {
1395
+ type: "exact";
1396
+ term: string;
1362
1397
  } | undefined;
1363
1398
  createdBy?: {
1364
1399
  type: "exact";
@@ -1384,12 +1419,12 @@ export declare const WorkqueueConfig: z.ZodObject<{
1384
1419
  };
1385
1420
  } | undefined;
1386
1421
  updatedAt?: {
1387
- type: "exact";
1388
- term: string;
1389
- } | {
1390
1422
  type: "range";
1391
1423
  gte: string;
1392
1424
  lte: string;
1425
+ } | {
1426
+ type: "exact";
1427
+ term: string;
1393
1428
  } | undefined;
1394
1429
  trackingId?: {
1395
1430
  type: "exact";
@@ -1432,13 +1467,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
1432
1467
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1433
1468
  } | undefined;
1434
1469
  data?: any;
1470
+ createdByUserType?: "system" | "user" | undefined;
1435
1471
  createdAt?: {
1436
- type: "exact";
1437
- term: string;
1438
- } | {
1439
1472
  type: "range";
1440
1473
  gte: string;
1441
1474
  lte: string;
1475
+ } | {
1476
+ type: "exact";
1477
+ term: string;
1442
1478
  } | undefined;
1443
1479
  createdBy?: {
1444
1480
  type: "exact";
@@ -1464,12 +1500,12 @@ export declare const WorkqueueConfig: z.ZodObject<{
1464
1500
  };
1465
1501
  } | undefined;
1466
1502
  updatedAt?: {
1467
- type: "exact";
1468
- term: string;
1469
- } | {
1470
1503
  type: "range";
1471
1504
  gte: string;
1472
1505
  lte: string;
1506
+ } | {
1507
+ type: "exact";
1508
+ term: string;
1473
1509
  } | undefined;
1474
1510
  trackingId?: {
1475
1511
  type: "exact";
@@ -1506,7 +1542,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
1506
1542
  icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "DownloadSimple" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
1507
1543
  columns?: {
1508
1544
  value: {
1509
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1545
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
1510
1546
  };
1511
1547
  label: {
1512
1548
  id: string;
@@ -1515,99 +1551,1307 @@ export declare const WorkqueueConfig: z.ZodObject<{
1515
1551
  };
1516
1552
  }[] | undefined;
1517
1553
  }>;
1518
- export declare const WorkqueueConfigInput: z.ZodObject<{
1554
+ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<Omit<{
1519
1555
  slug: z.ZodString;
1520
1556
  name: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1521
1557
  id: string;
1522
1558
  description: string;
1523
1559
  defaultMessage: string;
1524
1560
  }>;
1525
- query: z.ZodUnion<[z.ZodObject<{
1526
- eventType: z.ZodOptional<z.ZodString>;
1527
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1528
- type: z.ZodLiteral<"anyOf">;
1529
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1530
- }, "strip", z.ZodTypeAny, {
1531
- type: "anyOf";
1532
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1533
- }, {
1534
- type: "anyOf";
1535
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1536
- }>, z.ZodObject<{
1537
- type: z.ZodLiteral<"exact">;
1538
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1539
- }, "strip", z.ZodTypeAny, {
1540
- type: "exact";
1541
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1542
- }, {
1543
- type: "exact";
1544
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1545
- }>]>>>;
1546
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1547
- type: z.ZodLiteral<"exact">;
1548
- term: z.ZodString;
1549
- }, "strip", z.ZodTypeAny, {
1550
- type: "exact";
1551
- term: string;
1552
- }, {
1553
- type: "exact";
1554
- term: string;
1555
- }>, z.ZodObject<{
1556
- type: z.ZodLiteral<"range">;
1557
- gte: z.ZodString;
1558
- lte: z.ZodString;
1559
- }, "strip", z.ZodTypeAny, {
1560
- type: "range";
1561
- gte: string;
1562
- lte: string;
1563
- }, {
1564
- type: "range";
1565
- gte: string;
1566
- lte: string;
1567
- }>]>>>;
1568
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1569
- type: z.ZodLiteral<"exact">;
1570
- term: z.ZodString;
1571
- }, "strip", z.ZodTypeAny, {
1572
- type: "exact";
1573
- term: string;
1574
- }, {
1575
- type: "exact";
1576
- term: string;
1577
- }>, z.ZodObject<{
1578
- type: z.ZodLiteral<"range">;
1579
- gte: z.ZodString;
1580
- lte: z.ZodString;
1581
- }, "strip", z.ZodTypeAny, {
1582
- type: "range";
1583
- gte: string;
1584
- lte: string;
1585
- }, {
1586
- type: "range";
1587
- gte: string;
1588
- lte: string;
1589
- }>]>>>;
1590
- createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1591
- type: z.ZodLiteral<"within">;
1592
- location: z.ZodUnion<[z.ZodString, z.ZodObject<{
1593
- $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1561
+ query: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1562
+ type: z.ZodLiteral<"and">;
1563
+ clauses: z.ZodArray<z.ZodObject<{
1564
+ eventType: z.ZodOptional<z.ZodString>;
1565
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1566
+ type: z.ZodLiteral<"anyOf">;
1567
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1594
1568
  }, "strip", z.ZodTypeAny, {
1595
- $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1569
+ type: "anyOf";
1570
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1596
1571
  }, {
1597
- $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1598
- }>]>;
1599
- }, "strip", z.ZodTypeAny, {
1600
- type: "within";
1601
- location: string | {
1602
- $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1603
- };
1604
- }, {
1605
- type: "within";
1606
- location: string | {
1607
- $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1608
- };
1609
- }>, z.ZodObject<{
1610
- type: z.ZodLiteral<"exact">;
1572
+ type: "anyOf";
1573
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1574
+ }>, z.ZodObject<{
1575
+ type: z.ZodLiteral<"exact">;
1576
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1577
+ }, "strip", z.ZodTypeAny, {
1578
+ type: "exact";
1579
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1580
+ }, {
1581
+ type: "exact";
1582
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1583
+ }>]>>>;
1584
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1585
+ type: z.ZodLiteral<"exact">;
1586
+ term: z.ZodString;
1587
+ }, {
1588
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1589
+ }>, "strip", z.ZodTypeAny, {
1590
+ type: "exact";
1591
+ term: string;
1592
+ }, {
1593
+ type: "exact";
1594
+ term: string;
1595
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1596
+ type: z.ZodLiteral<"range">;
1597
+ gte: z.ZodString;
1598
+ lte: z.ZodString;
1599
+ }, {
1600
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1601
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1602
+ }>, "strip", z.ZodTypeAny, {
1603
+ type: "range";
1604
+ gte: string;
1605
+ lte: string;
1606
+ }, {
1607
+ type: "range";
1608
+ gte: string;
1609
+ lte: string;
1610
+ }>]>>>;
1611
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1612
+ type: z.ZodLiteral<"exact">;
1613
+ term: z.ZodString;
1614
+ }, {
1615
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1616
+ }>, "strip", z.ZodTypeAny, {
1617
+ type: "exact";
1618
+ term: string;
1619
+ }, {
1620
+ type: "exact";
1621
+ term: string;
1622
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1623
+ type: z.ZodLiteral<"range">;
1624
+ gte: z.ZodString;
1625
+ lte: z.ZodString;
1626
+ }, {
1627
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1628
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1629
+ }>, "strip", z.ZodTypeAny, {
1630
+ type: "range";
1631
+ gte: string;
1632
+ lte: string;
1633
+ }, {
1634
+ type: "range";
1635
+ gte: string;
1636
+ lte: string;
1637
+ }>]>>>;
1638
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1639
+ type: z.ZodLiteral<"within">;
1640
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
1641
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1642
+ }, "strip", z.ZodTypeAny, {
1643
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1644
+ }, {
1645
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1646
+ }>]>;
1647
+ }, "strip", z.ZodTypeAny, {
1648
+ type: "within";
1649
+ location: string | {
1650
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1651
+ };
1652
+ }, {
1653
+ type: "within";
1654
+ location: string | {
1655
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1656
+ };
1657
+ }>, z.ZodObject<{
1658
+ type: z.ZodLiteral<"exact">;
1659
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1660
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1661
+ }, "strip", z.ZodTypeAny, {
1662
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1663
+ }, {
1664
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1665
+ }>]>;
1666
+ }, "strip", z.ZodTypeAny, {
1667
+ type: "exact";
1668
+ term: string | {
1669
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1670
+ };
1671
+ }, {
1672
+ type: "exact";
1673
+ term: string | {
1674
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1675
+ };
1676
+ }>]>>>;
1677
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1678
+ type: z.ZodLiteral<"within">;
1679
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
1680
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1681
+ }, "strip", z.ZodTypeAny, {
1682
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1683
+ }, {
1684
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1685
+ }>]>;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ type: "within";
1688
+ location: string | {
1689
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1690
+ };
1691
+ }, {
1692
+ type: "within";
1693
+ location: string | {
1694
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1695
+ };
1696
+ }>, z.ZodObject<{
1697
+ type: z.ZodLiteral<"exact">;
1698
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1699
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1700
+ }, "strip", z.ZodTypeAny, {
1701
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1702
+ }, {
1703
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1704
+ }>]>;
1705
+ }, "strip", z.ZodTypeAny, {
1706
+ type: "exact";
1707
+ term: string | {
1708
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1709
+ };
1710
+ }, {
1711
+ type: "exact";
1712
+ term: string | {
1713
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1714
+ };
1715
+ }>]>>>;
1716
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1717
+ type: z.ZodLiteral<"exact">;
1718
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1719
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1720
+ }, "strip", z.ZodTypeAny, {
1721
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1722
+ }, {
1723
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1724
+ }>]>;
1725
+ }, "strip", z.ZodTypeAny, {
1726
+ type: "exact";
1727
+ term: string | {
1728
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1729
+ };
1730
+ }, {
1731
+ type: "exact";
1732
+ term: string | {
1733
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1734
+ };
1735
+ }>>>;
1736
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1737
+ type: z.ZodLiteral<"exact">;
1738
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1739
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1740
+ }, "strip", z.ZodTypeAny, {
1741
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1742
+ }, {
1743
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1744
+ }>]>;
1745
+ }, "strip", z.ZodTypeAny, {
1746
+ type: "exact";
1747
+ term: string | {
1748
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1749
+ };
1750
+ }, {
1751
+ type: "exact";
1752
+ term: string | {
1753
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1754
+ };
1755
+ }>>>;
1756
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
1757
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1758
+ type: z.ZodLiteral<"exact">;
1759
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1760
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1761
+ }, "strip", z.ZodTypeAny, {
1762
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1763
+ }, {
1764
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1765
+ }>]>;
1766
+ }, "strip", z.ZodTypeAny, {
1767
+ type: "exact";
1768
+ term: string | {
1769
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1770
+ };
1771
+ }, {
1772
+ type: "exact";
1773
+ term: string | {
1774
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1775
+ };
1776
+ }>>>;
1777
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1778
+ type: z.ZodLiteral<"exact">;
1779
+ term: z.ZodString;
1780
+ }, "strip", z.ZodTypeAny, {
1781
+ type: "exact";
1782
+ term: string;
1783
+ }, {
1784
+ type: "exact";
1785
+ term: string;
1786
+ }>>>;
1787
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1788
+ type: z.ZodLiteral<"anyOf">;
1789
+ terms: z.ZodArray<z.ZodString, "many">;
1790
+ }, "strip", z.ZodTypeAny, {
1791
+ type: "anyOf";
1792
+ terms: string[];
1793
+ }, {
1794
+ type: "anyOf";
1795
+ terms: string[];
1796
+ }>, z.ZodObject<{
1797
+ type: z.ZodLiteral<"not">;
1798
+ term: z.ZodString;
1799
+ }, "strip", z.ZodTypeAny, {
1800
+ type: "not";
1801
+ term: string;
1802
+ }, {
1803
+ type: "not";
1804
+ term: string;
1805
+ }>]>, "many">>>;
1806
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1807
+ }, "strip", z.ZodTypeAny, {
1808
+ status?: {
1809
+ type: "exact";
1810
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1811
+ } | {
1812
+ type: "anyOf";
1813
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1814
+ } | undefined;
1815
+ data?: any;
1816
+ createdByUserType?: "system" | "user" | undefined;
1817
+ createdAt?: {
1818
+ type: "range";
1819
+ gte: string;
1820
+ lte: string;
1821
+ } | {
1822
+ type: "exact";
1823
+ term: string;
1824
+ } | undefined;
1825
+ createdBy?: {
1826
+ type: "exact";
1827
+ term: string | {
1828
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1829
+ };
1830
+ } | undefined;
1831
+ createdAtLocation?: {
1832
+ type: "exact";
1833
+ term: string | {
1834
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1835
+ };
1836
+ } | {
1837
+ type: "within";
1838
+ location: string | {
1839
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1840
+ };
1841
+ } | undefined;
1842
+ assignedTo?: {
1843
+ type: "exact";
1844
+ term: string | {
1845
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1846
+ };
1847
+ } | undefined;
1848
+ updatedAt?: {
1849
+ type: "range";
1850
+ gte: string;
1851
+ lte: string;
1852
+ } | {
1853
+ type: "exact";
1854
+ term: string;
1855
+ } | undefined;
1856
+ trackingId?: {
1857
+ type: "exact";
1858
+ term: string;
1859
+ } | undefined;
1860
+ updatedAtLocation?: {
1861
+ type: "exact";
1862
+ term: string | {
1863
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1864
+ };
1865
+ } | {
1866
+ type: "within";
1867
+ location: string | {
1868
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1869
+ };
1870
+ } | undefined;
1871
+ updatedBy?: {
1872
+ type: "exact";
1873
+ term: string | {
1874
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1875
+ };
1876
+ } | undefined;
1877
+ flags?: ({
1878
+ type: "anyOf";
1879
+ terms: string[];
1880
+ } | {
1881
+ type: "not";
1882
+ term: string;
1883
+ })[] | undefined;
1884
+ eventType?: string | undefined;
1885
+ }, {
1886
+ status?: {
1887
+ type: "exact";
1888
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1889
+ } | {
1890
+ type: "anyOf";
1891
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1892
+ } | undefined;
1893
+ data?: any;
1894
+ createdByUserType?: "system" | "user" | undefined;
1895
+ createdAt?: {
1896
+ type: "range";
1897
+ gte: string;
1898
+ lte: string;
1899
+ } | {
1900
+ type: "exact";
1901
+ term: string;
1902
+ } | undefined;
1903
+ createdBy?: {
1904
+ type: "exact";
1905
+ term: string | {
1906
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1907
+ };
1908
+ } | undefined;
1909
+ createdAtLocation?: {
1910
+ type: "exact";
1911
+ term: string | {
1912
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1913
+ };
1914
+ } | {
1915
+ type: "within";
1916
+ location: string | {
1917
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1918
+ };
1919
+ } | undefined;
1920
+ assignedTo?: {
1921
+ type: "exact";
1922
+ term: string | {
1923
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1924
+ };
1925
+ } | undefined;
1926
+ updatedAt?: {
1927
+ type: "range";
1928
+ gte: string;
1929
+ lte: string;
1930
+ } | {
1931
+ type: "exact";
1932
+ term: string;
1933
+ } | undefined;
1934
+ trackingId?: {
1935
+ type: "exact";
1936
+ term: string;
1937
+ } | undefined;
1938
+ updatedAtLocation?: {
1939
+ type: "exact";
1940
+ term: string | {
1941
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1942
+ };
1943
+ } | {
1944
+ type: "within";
1945
+ location: string | {
1946
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1947
+ };
1948
+ } | undefined;
1949
+ updatedBy?: {
1950
+ type: "exact";
1951
+ term: string | {
1952
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1953
+ };
1954
+ } | undefined;
1955
+ flags?: ({
1956
+ type: "anyOf";
1957
+ terms: string[];
1958
+ } | {
1959
+ type: "not";
1960
+ term: string;
1961
+ })[] | undefined;
1962
+ eventType?: string | undefined;
1963
+ }>, "many">;
1964
+ }, "strip", z.ZodTypeAny, {
1965
+ type: "and";
1966
+ clauses: {
1967
+ status?: {
1968
+ type: "exact";
1969
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1970
+ } | {
1971
+ type: "anyOf";
1972
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1973
+ } | undefined;
1974
+ data?: any;
1975
+ createdByUserType?: "system" | "user" | undefined;
1976
+ createdAt?: {
1977
+ type: "range";
1978
+ gte: string;
1979
+ lte: string;
1980
+ } | {
1981
+ type: "exact";
1982
+ term: string;
1983
+ } | undefined;
1984
+ createdBy?: {
1985
+ type: "exact";
1986
+ term: string | {
1987
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1988
+ };
1989
+ } | undefined;
1990
+ createdAtLocation?: {
1991
+ type: "exact";
1992
+ term: string | {
1993
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1994
+ };
1995
+ } | {
1996
+ type: "within";
1997
+ location: string | {
1998
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1999
+ };
2000
+ } | undefined;
2001
+ assignedTo?: {
2002
+ type: "exact";
2003
+ term: string | {
2004
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2005
+ };
2006
+ } | undefined;
2007
+ updatedAt?: {
2008
+ type: "range";
2009
+ gte: string;
2010
+ lte: string;
2011
+ } | {
2012
+ type: "exact";
2013
+ term: string;
2014
+ } | undefined;
2015
+ trackingId?: {
2016
+ type: "exact";
2017
+ term: string;
2018
+ } | undefined;
2019
+ updatedAtLocation?: {
2020
+ type: "exact";
2021
+ term: string | {
2022
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2023
+ };
2024
+ } | {
2025
+ type: "within";
2026
+ location: string | {
2027
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2028
+ };
2029
+ } | undefined;
2030
+ updatedBy?: {
2031
+ type: "exact";
2032
+ term: string | {
2033
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2034
+ };
2035
+ } | undefined;
2036
+ flags?: ({
2037
+ type: "anyOf";
2038
+ terms: string[];
2039
+ } | {
2040
+ type: "not";
2041
+ term: string;
2042
+ })[] | undefined;
2043
+ eventType?: string | undefined;
2044
+ }[];
2045
+ }, {
2046
+ type: "and";
2047
+ clauses: {
2048
+ status?: {
2049
+ type: "exact";
2050
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2051
+ } | {
2052
+ type: "anyOf";
2053
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2054
+ } | undefined;
2055
+ data?: any;
2056
+ createdByUserType?: "system" | "user" | undefined;
2057
+ createdAt?: {
2058
+ type: "range";
2059
+ gte: string;
2060
+ lte: string;
2061
+ } | {
2062
+ type: "exact";
2063
+ term: string;
2064
+ } | undefined;
2065
+ createdBy?: {
2066
+ type: "exact";
2067
+ term: string | {
2068
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2069
+ };
2070
+ } | undefined;
2071
+ createdAtLocation?: {
2072
+ type: "exact";
2073
+ term: string | {
2074
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2075
+ };
2076
+ } | {
2077
+ type: "within";
2078
+ location: string | {
2079
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2080
+ };
2081
+ } | undefined;
2082
+ assignedTo?: {
2083
+ type: "exact";
2084
+ term: string | {
2085
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2086
+ };
2087
+ } | undefined;
2088
+ updatedAt?: {
2089
+ type: "range";
2090
+ gte: string;
2091
+ lte: string;
2092
+ } | {
2093
+ type: "exact";
2094
+ term: string;
2095
+ } | undefined;
2096
+ trackingId?: {
2097
+ type: "exact";
2098
+ term: string;
2099
+ } | undefined;
2100
+ updatedAtLocation?: {
2101
+ type: "exact";
2102
+ term: string | {
2103
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2104
+ };
2105
+ } | {
2106
+ type: "within";
2107
+ location: string | {
2108
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2109
+ };
2110
+ } | undefined;
2111
+ updatedBy?: {
2112
+ type: "exact";
2113
+ term: string | {
2114
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2115
+ };
2116
+ } | undefined;
2117
+ flags?: ({
2118
+ type: "anyOf";
2119
+ terms: string[];
2120
+ } | {
2121
+ type: "not";
2122
+ term: string;
2123
+ })[] | undefined;
2124
+ eventType?: string | undefined;
2125
+ }[];
2126
+ }>, z.ZodObject<{
2127
+ type: z.ZodLiteral<"or">;
2128
+ clauses: z.ZodArray<z.ZodObject<{
2129
+ eventType: z.ZodOptional<z.ZodString>;
2130
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2131
+ type: z.ZodLiteral<"anyOf">;
2132
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
2133
+ }, "strip", z.ZodTypeAny, {
2134
+ type: "anyOf";
2135
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2136
+ }, {
2137
+ type: "anyOf";
2138
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2139
+ }>, z.ZodObject<{
2140
+ type: z.ZodLiteral<"exact">;
2141
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
2142
+ }, "strip", z.ZodTypeAny, {
2143
+ type: "exact";
2144
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2145
+ }, {
2146
+ type: "exact";
2147
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2148
+ }>]>>>;
2149
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2150
+ type: z.ZodLiteral<"exact">;
2151
+ term: z.ZodString;
2152
+ }, {
2153
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
2154
+ }>, "strip", z.ZodTypeAny, {
2155
+ type: "exact";
2156
+ term: string;
2157
+ }, {
2158
+ type: "exact";
2159
+ term: string;
2160
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2161
+ type: z.ZodLiteral<"range">;
2162
+ gte: z.ZodString;
2163
+ lte: z.ZodString;
2164
+ }, {
2165
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2166
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2167
+ }>, "strip", z.ZodTypeAny, {
2168
+ type: "range";
2169
+ gte: string;
2170
+ lte: string;
2171
+ }, {
2172
+ type: "range";
2173
+ gte: string;
2174
+ lte: string;
2175
+ }>]>>>;
2176
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2177
+ type: z.ZodLiteral<"exact">;
2178
+ term: z.ZodString;
2179
+ }, {
2180
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
2181
+ }>, "strip", z.ZodTypeAny, {
2182
+ type: "exact";
2183
+ term: string;
2184
+ }, {
2185
+ type: "exact";
2186
+ term: string;
2187
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2188
+ type: z.ZodLiteral<"range">;
2189
+ gte: z.ZodString;
2190
+ lte: z.ZodString;
2191
+ }, {
2192
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2193
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2194
+ }>, "strip", z.ZodTypeAny, {
2195
+ type: "range";
2196
+ gte: string;
2197
+ lte: string;
2198
+ }, {
2199
+ type: "range";
2200
+ gte: string;
2201
+ lte: string;
2202
+ }>]>>>;
2203
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2204
+ type: z.ZodLiteral<"within">;
2205
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
2206
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2207
+ }, "strip", z.ZodTypeAny, {
2208
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2209
+ }, {
2210
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2211
+ }>]>;
2212
+ }, "strip", z.ZodTypeAny, {
2213
+ type: "within";
2214
+ location: string | {
2215
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2216
+ };
2217
+ }, {
2218
+ type: "within";
2219
+ location: string | {
2220
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2221
+ };
2222
+ }>, z.ZodObject<{
2223
+ type: z.ZodLiteral<"exact">;
2224
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2225
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2226
+ }, "strip", z.ZodTypeAny, {
2227
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2228
+ }, {
2229
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2230
+ }>]>;
2231
+ }, "strip", z.ZodTypeAny, {
2232
+ type: "exact";
2233
+ term: string | {
2234
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2235
+ };
2236
+ }, {
2237
+ type: "exact";
2238
+ term: string | {
2239
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2240
+ };
2241
+ }>]>>>;
2242
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2243
+ type: z.ZodLiteral<"within">;
2244
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
2245
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2246
+ }, "strip", z.ZodTypeAny, {
2247
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2248
+ }, {
2249
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2250
+ }>]>;
2251
+ }, "strip", z.ZodTypeAny, {
2252
+ type: "within";
2253
+ location: string | {
2254
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2255
+ };
2256
+ }, {
2257
+ type: "within";
2258
+ location: string | {
2259
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2260
+ };
2261
+ }>, z.ZodObject<{
2262
+ type: z.ZodLiteral<"exact">;
2263
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2264
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2265
+ }, "strip", z.ZodTypeAny, {
2266
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2267
+ }, {
2268
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2269
+ }>]>;
2270
+ }, "strip", z.ZodTypeAny, {
2271
+ type: "exact";
2272
+ term: string | {
2273
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2274
+ };
2275
+ }, {
2276
+ type: "exact";
2277
+ term: string | {
2278
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2279
+ };
2280
+ }>]>>>;
2281
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2282
+ type: z.ZodLiteral<"exact">;
2283
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2284
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2285
+ }, "strip", z.ZodTypeAny, {
2286
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2287
+ }, {
2288
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2289
+ }>]>;
2290
+ }, "strip", z.ZodTypeAny, {
2291
+ type: "exact";
2292
+ term: string | {
2293
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2294
+ };
2295
+ }, {
2296
+ type: "exact";
2297
+ term: string | {
2298
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2299
+ };
2300
+ }>>>;
2301
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2302
+ type: z.ZodLiteral<"exact">;
2303
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2304
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2305
+ }, "strip", z.ZodTypeAny, {
2306
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2307
+ }, {
2308
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2309
+ }>]>;
2310
+ }, "strip", z.ZodTypeAny, {
2311
+ type: "exact";
2312
+ term: string | {
2313
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2314
+ };
2315
+ }, {
2316
+ type: "exact";
2317
+ term: string | {
2318
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2319
+ };
2320
+ }>>>;
2321
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
2322
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2323
+ type: z.ZodLiteral<"exact">;
2324
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2325
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2326
+ }, "strip", z.ZodTypeAny, {
2327
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2328
+ }, {
2329
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2330
+ }>]>;
2331
+ }, "strip", z.ZodTypeAny, {
2332
+ type: "exact";
2333
+ term: string | {
2334
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2335
+ };
2336
+ }, {
2337
+ type: "exact";
2338
+ term: string | {
2339
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2340
+ };
2341
+ }>>>;
2342
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2343
+ type: z.ZodLiteral<"exact">;
2344
+ term: z.ZodString;
2345
+ }, "strip", z.ZodTypeAny, {
2346
+ type: "exact";
2347
+ term: string;
2348
+ }, {
2349
+ type: "exact";
2350
+ term: string;
2351
+ }>>>;
2352
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
2353
+ type: z.ZodLiteral<"anyOf">;
2354
+ terms: z.ZodArray<z.ZodString, "many">;
2355
+ }, "strip", z.ZodTypeAny, {
2356
+ type: "anyOf";
2357
+ terms: string[];
2358
+ }, {
2359
+ type: "anyOf";
2360
+ terms: string[];
2361
+ }>, z.ZodObject<{
2362
+ type: z.ZodLiteral<"not">;
2363
+ term: z.ZodString;
2364
+ }, "strip", z.ZodTypeAny, {
2365
+ type: "not";
2366
+ term: string;
2367
+ }, {
2368
+ type: "not";
2369
+ term: string;
2370
+ }>]>, "many">>>;
2371
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
2372
+ }, "strip", z.ZodTypeAny, {
2373
+ status?: {
2374
+ type: "exact";
2375
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2376
+ } | {
2377
+ type: "anyOf";
2378
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2379
+ } | undefined;
2380
+ data?: any;
2381
+ createdByUserType?: "system" | "user" | undefined;
2382
+ createdAt?: {
2383
+ type: "range";
2384
+ gte: string;
2385
+ lte: string;
2386
+ } | {
2387
+ type: "exact";
2388
+ term: string;
2389
+ } | undefined;
2390
+ createdBy?: {
2391
+ type: "exact";
2392
+ term: string | {
2393
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2394
+ };
2395
+ } | undefined;
2396
+ createdAtLocation?: {
2397
+ type: "exact";
2398
+ term: string | {
2399
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2400
+ };
2401
+ } | {
2402
+ type: "within";
2403
+ location: string | {
2404
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2405
+ };
2406
+ } | undefined;
2407
+ assignedTo?: {
2408
+ type: "exact";
2409
+ term: string | {
2410
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2411
+ };
2412
+ } | undefined;
2413
+ updatedAt?: {
2414
+ type: "range";
2415
+ gte: string;
2416
+ lte: string;
2417
+ } | {
2418
+ type: "exact";
2419
+ term: string;
2420
+ } | undefined;
2421
+ trackingId?: {
2422
+ type: "exact";
2423
+ term: string;
2424
+ } | undefined;
2425
+ updatedAtLocation?: {
2426
+ type: "exact";
2427
+ term: string | {
2428
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2429
+ };
2430
+ } | {
2431
+ type: "within";
2432
+ location: string | {
2433
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2434
+ };
2435
+ } | undefined;
2436
+ updatedBy?: {
2437
+ type: "exact";
2438
+ term: string | {
2439
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2440
+ };
2441
+ } | undefined;
2442
+ flags?: ({
2443
+ type: "anyOf";
2444
+ terms: string[];
2445
+ } | {
2446
+ type: "not";
2447
+ term: string;
2448
+ })[] | undefined;
2449
+ eventType?: string | undefined;
2450
+ }, {
2451
+ status?: {
2452
+ type: "exact";
2453
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2454
+ } | {
2455
+ type: "anyOf";
2456
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2457
+ } | undefined;
2458
+ data?: any;
2459
+ createdByUserType?: "system" | "user" | undefined;
2460
+ createdAt?: {
2461
+ type: "range";
2462
+ gte: string;
2463
+ lte: string;
2464
+ } | {
2465
+ type: "exact";
2466
+ term: string;
2467
+ } | undefined;
2468
+ createdBy?: {
2469
+ type: "exact";
2470
+ term: string | {
2471
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2472
+ };
2473
+ } | undefined;
2474
+ createdAtLocation?: {
2475
+ type: "exact";
2476
+ term: string | {
2477
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2478
+ };
2479
+ } | {
2480
+ type: "within";
2481
+ location: string | {
2482
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2483
+ };
2484
+ } | undefined;
2485
+ assignedTo?: {
2486
+ type: "exact";
2487
+ term: string | {
2488
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2489
+ };
2490
+ } | undefined;
2491
+ updatedAt?: {
2492
+ type: "range";
2493
+ gte: string;
2494
+ lte: string;
2495
+ } | {
2496
+ type: "exact";
2497
+ term: string;
2498
+ } | undefined;
2499
+ trackingId?: {
2500
+ type: "exact";
2501
+ term: string;
2502
+ } | undefined;
2503
+ updatedAtLocation?: {
2504
+ type: "exact";
2505
+ term: string | {
2506
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2507
+ };
2508
+ } | {
2509
+ type: "within";
2510
+ location: string | {
2511
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2512
+ };
2513
+ } | undefined;
2514
+ updatedBy?: {
2515
+ type: "exact";
2516
+ term: string | {
2517
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2518
+ };
2519
+ } | undefined;
2520
+ flags?: ({
2521
+ type: "anyOf";
2522
+ terms: string[];
2523
+ } | {
2524
+ type: "not";
2525
+ term: string;
2526
+ })[] | undefined;
2527
+ eventType?: string | undefined;
2528
+ }>, "many">;
2529
+ }, "strip", z.ZodTypeAny, {
2530
+ type: "or";
2531
+ clauses: {
2532
+ status?: {
2533
+ type: "exact";
2534
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2535
+ } | {
2536
+ type: "anyOf";
2537
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2538
+ } | undefined;
2539
+ data?: any;
2540
+ createdByUserType?: "system" | "user" | undefined;
2541
+ createdAt?: {
2542
+ type: "range";
2543
+ gte: string;
2544
+ lte: string;
2545
+ } | {
2546
+ type: "exact";
2547
+ term: string;
2548
+ } | undefined;
2549
+ createdBy?: {
2550
+ type: "exact";
2551
+ term: string | {
2552
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2553
+ };
2554
+ } | undefined;
2555
+ createdAtLocation?: {
2556
+ type: "exact";
2557
+ term: string | {
2558
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2559
+ };
2560
+ } | {
2561
+ type: "within";
2562
+ location: string | {
2563
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2564
+ };
2565
+ } | undefined;
2566
+ assignedTo?: {
2567
+ type: "exact";
2568
+ term: string | {
2569
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2570
+ };
2571
+ } | undefined;
2572
+ updatedAt?: {
2573
+ type: "range";
2574
+ gte: string;
2575
+ lte: string;
2576
+ } | {
2577
+ type: "exact";
2578
+ term: string;
2579
+ } | undefined;
2580
+ trackingId?: {
2581
+ type: "exact";
2582
+ term: string;
2583
+ } | undefined;
2584
+ updatedAtLocation?: {
2585
+ type: "exact";
2586
+ term: string | {
2587
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2588
+ };
2589
+ } | {
2590
+ type: "within";
2591
+ location: string | {
2592
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2593
+ };
2594
+ } | undefined;
2595
+ updatedBy?: {
2596
+ type: "exact";
2597
+ term: string | {
2598
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2599
+ };
2600
+ } | undefined;
2601
+ flags?: ({
2602
+ type: "anyOf";
2603
+ terms: string[];
2604
+ } | {
2605
+ type: "not";
2606
+ term: string;
2607
+ })[] | undefined;
2608
+ eventType?: string | undefined;
2609
+ }[];
2610
+ }, {
2611
+ type: "or";
2612
+ clauses: {
2613
+ status?: {
2614
+ type: "exact";
2615
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2616
+ } | {
2617
+ type: "anyOf";
2618
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2619
+ } | undefined;
2620
+ data?: any;
2621
+ createdByUserType?: "system" | "user" | undefined;
2622
+ createdAt?: {
2623
+ type: "range";
2624
+ gte: string;
2625
+ lte: string;
2626
+ } | {
2627
+ type: "exact";
2628
+ term: string;
2629
+ } | undefined;
2630
+ createdBy?: {
2631
+ type: "exact";
2632
+ term: string | {
2633
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2634
+ };
2635
+ } | undefined;
2636
+ createdAtLocation?: {
2637
+ type: "exact";
2638
+ term: string | {
2639
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2640
+ };
2641
+ } | {
2642
+ type: "within";
2643
+ location: string | {
2644
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2645
+ };
2646
+ } | undefined;
2647
+ assignedTo?: {
2648
+ type: "exact";
2649
+ term: string | {
2650
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2651
+ };
2652
+ } | undefined;
2653
+ updatedAt?: {
2654
+ type: "range";
2655
+ gte: string;
2656
+ lte: string;
2657
+ } | {
2658
+ type: "exact";
2659
+ term: string;
2660
+ } | undefined;
2661
+ trackingId?: {
2662
+ type: "exact";
2663
+ term: string;
2664
+ } | undefined;
2665
+ updatedAtLocation?: {
2666
+ type: "exact";
2667
+ term: string | {
2668
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2669
+ };
2670
+ } | {
2671
+ type: "within";
2672
+ location: string | {
2673
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2674
+ };
2675
+ } | undefined;
2676
+ updatedBy?: {
2677
+ type: "exact";
2678
+ term: string | {
2679
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2680
+ };
2681
+ } | undefined;
2682
+ flags?: ({
2683
+ type: "anyOf";
2684
+ terms: string[];
2685
+ } | {
2686
+ type: "not";
2687
+ term: string;
2688
+ })[] | undefined;
2689
+ eventType?: string | undefined;
2690
+ }[];
2691
+ }>]>;
2692
+ actions: z.ZodArray<z.ZodObject<{
2693
+ type: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN", "DEFAULT"]>;
2694
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
2695
+ }, "strip", z.ZodTypeAny, {
2696
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
2697
+ conditionals?: import(".").JSONSchema[] | undefined;
2698
+ }, {
2699
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
2700
+ conditionals?: import(".").JSONSchema[] | undefined;
2701
+ }>, "many">;
2702
+ columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
2703
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2704
+ id: string;
2705
+ description: string;
2706
+ defaultMessage: string;
2707
+ }>;
2708
+ value: z.ZodObject<{
2709
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
2710
+ }, "strip", z.ZodTypeAny, {
2711
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
2712
+ }, {
2713
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
2714
+ }>;
2715
+ }, "strip", z.ZodTypeAny, {
2716
+ value: {
2717
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
2718
+ };
2719
+ label: TranslationConfig;
2720
+ }, {
2721
+ value: {
2722
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
2723
+ };
2724
+ label: {
2725
+ id: string;
2726
+ description: string;
2727
+ defaultMessage: string;
2728
+ };
2729
+ }>, "many">>;
2730
+ icon: z.ZodEnum<["Archived", "Assigned", "Certified", "Close", "Collapse", "Draft", "DuplicateYellow", "Expand", "ExternalValidate", "FilledCheck", "InReview", "Offline", "Registered", "RequiresUpdates", "Sent", "Validated", "WaitingApproval", "ChartActivity", "Activity", "Archive", "ArchiveTray", "ArrowLeft", "ArrowRight", "Buildings", "Circle", "CaretDown", "CaretLeft", "CaretRight", "ChartBar", "ChartLine", "ChatCircle", "CheckSquare", "Compass", "Check", "Copy", "Database", "DotsThreeVertical", "DownloadSimple", "ArrowCounterClockwise", "MagnifyingGlassMinus", "MagnifyingGlassPlus", "Export", "Eye", "EyeSlash", "Envelope", "File", "FileSearch", "FileMinus", "FilePlus", "FileText", "FileX", "Handshake", "Gear", "GitBranch", "IdentificationCard", "List", "ListBullets", "Lock", "MagnifyingGlass", "MapPin", "Medal", "NotePencil", "Paperclip", "PaperPlaneTilt", "Pen", "Pencil", "PencilSimpleLine", "Phone", "Plus", "Printer", "SignOut", "Star", "Target", "TextT", "Trash", "UploadSimple", "User", "UserPlus", "Users", "WarningCircle", "X", "CircleWavyCheck", "CircleWavyQuestion", "ArchiveBox", "ArrowCircleDown", "FileArrowUp", "FileDotted", "Files", "PencilLine", "PencilCircle", "UserCircle", "Clock", "QrCode", "Webcam", "Sun", "DeviceTabletCamera", "Globe", "Fingerprint", "PushPin", "Timer"]>;
2731
+ }, "query" | "columns">, "strip", z.ZodTypeAny, {
2732
+ name: TranslationConfig;
2733
+ actions: {
2734
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
2735
+ conditionals?: import(".").JSONSchema[] | undefined;
2736
+ }[];
2737
+ slug: string;
2738
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "DownloadSimple" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
2739
+ }, {
2740
+ name: {
2741
+ id: string;
2742
+ description: string;
2743
+ defaultMessage: string;
2744
+ };
2745
+ actions: {
2746
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
2747
+ conditionals?: import(".").JSONSchema[] | undefined;
2748
+ }[];
2749
+ slug: string;
2750
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "DownloadSimple" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
2751
+ }>;
2752
+ export declare const WorkqueueConfigInput: z.ZodObject<{
2753
+ slug: z.ZodString;
2754
+ name: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2755
+ id: string;
2756
+ description: string;
2757
+ defaultMessage: string;
2758
+ }>;
2759
+ query: z.ZodUnion<[z.ZodObject<{
2760
+ eventType: z.ZodOptional<z.ZodString>;
2761
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2762
+ type: z.ZodLiteral<"anyOf">;
2763
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
2764
+ }, "strip", z.ZodTypeAny, {
2765
+ type: "anyOf";
2766
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2767
+ }, {
2768
+ type: "anyOf";
2769
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2770
+ }>, z.ZodObject<{
2771
+ type: z.ZodLiteral<"exact">;
2772
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
2773
+ }, "strip", z.ZodTypeAny, {
2774
+ type: "exact";
2775
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2776
+ }, {
2777
+ type: "exact";
2778
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2779
+ }>]>>>;
2780
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2781
+ type: z.ZodLiteral<"exact">;
2782
+ term: z.ZodString;
2783
+ }, {
2784
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
2785
+ }>, "strip", z.ZodTypeAny, {
2786
+ type: "exact";
2787
+ term: string;
2788
+ }, {
2789
+ type: "exact";
2790
+ term: string;
2791
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2792
+ type: z.ZodLiteral<"range">;
2793
+ gte: z.ZodString;
2794
+ lte: z.ZodString;
2795
+ }, {
2796
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2797
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2798
+ }>, "strip", z.ZodTypeAny, {
2799
+ type: "range";
2800
+ gte: string;
2801
+ lte: string;
2802
+ }, {
2803
+ type: "range";
2804
+ gte: string;
2805
+ lte: string;
2806
+ }>]>>>;
2807
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2808
+ type: z.ZodLiteral<"exact">;
2809
+ term: z.ZodString;
2810
+ }, {
2811
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
2812
+ }>, "strip", z.ZodTypeAny, {
2813
+ type: "exact";
2814
+ term: string;
2815
+ }, {
2816
+ type: "exact";
2817
+ term: string;
2818
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2819
+ type: z.ZodLiteral<"range">;
2820
+ gte: z.ZodString;
2821
+ lte: z.ZodString;
2822
+ }, {
2823
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2824
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2825
+ }>, "strip", z.ZodTypeAny, {
2826
+ type: "range";
2827
+ gte: string;
2828
+ lte: string;
2829
+ }, {
2830
+ type: "range";
2831
+ gte: string;
2832
+ lte: string;
2833
+ }>]>>>;
2834
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2835
+ type: z.ZodLiteral<"within">;
2836
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
2837
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2838
+ }, "strip", z.ZodTypeAny, {
2839
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2840
+ }, {
2841
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2842
+ }>]>;
2843
+ }, "strip", z.ZodTypeAny, {
2844
+ type: "within";
2845
+ location: string | {
2846
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2847
+ };
2848
+ }, {
2849
+ type: "within";
2850
+ location: string | {
2851
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2852
+ };
2853
+ }>, z.ZodObject<{
2854
+ type: z.ZodLiteral<"exact">;
1611
2855
  term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1612
2856
  $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1613
2857
  }, "strip", z.ZodTypeAny, {
@@ -1705,6 +2949,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1705
2949
  $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1706
2950
  };
1707
2951
  }>>>;
2952
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
1708
2953
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1709
2954
  type: z.ZodLiteral<"exact">;
1710
2955
  term: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -1764,13 +3009,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1764
3009
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1765
3010
  } | undefined;
1766
3011
  data?: any;
3012
+ createdByUserType?: "system" | "user" | undefined;
1767
3013
  createdAt?: {
1768
- type: "exact";
1769
- term: string;
1770
- } | {
1771
3014
  type: "range";
1772
3015
  gte: string;
1773
3016
  lte: string;
3017
+ } | {
3018
+ type: "exact";
3019
+ term: string;
1774
3020
  } | undefined;
1775
3021
  createdBy?: {
1776
3022
  type: "exact";
@@ -1796,12 +3042,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1796
3042
  };
1797
3043
  } | undefined;
1798
3044
  updatedAt?: {
1799
- type: "exact";
1800
- term: string;
1801
- } | {
1802
3045
  type: "range";
1803
3046
  gte: string;
1804
3047
  lte: string;
3048
+ } | {
3049
+ type: "exact";
3050
+ term: string;
1805
3051
  } | undefined;
1806
3052
  trackingId?: {
1807
3053
  type: "exact";
@@ -1841,13 +3087,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1841
3087
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1842
3088
  } | undefined;
1843
3089
  data?: any;
3090
+ createdByUserType?: "system" | "user" | undefined;
1844
3091
  createdAt?: {
1845
- type: "exact";
1846
- term: string;
1847
- } | {
1848
3092
  type: "range";
1849
3093
  gte: string;
1850
3094
  lte: string;
3095
+ } | {
3096
+ type: "exact";
3097
+ term: string;
1851
3098
  } | undefined;
1852
3099
  createdBy?: {
1853
3100
  type: "exact";
@@ -1873,12 +3120,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1873
3120
  };
1874
3121
  } | undefined;
1875
3122
  updatedAt?: {
1876
- type: "exact";
1877
- term: string;
1878
- } | {
1879
3123
  type: "range";
1880
3124
  gte: string;
1881
3125
  lte: string;
3126
+ } | {
3127
+ type: "exact";
3128
+ term: string;
1882
3129
  } | undefined;
1883
3130
  trackingId?: {
1884
3131
  type: "exact";
@@ -1932,20 +3179,25 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1932
3179
  type: "exact";
1933
3180
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1934
3181
  }>]>>>;
1935
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3182
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1936
3183
  type: z.ZodLiteral<"exact">;
1937
3184
  term: z.ZodString;
1938
- }, "strip", z.ZodTypeAny, {
3185
+ }, {
3186
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
3187
+ }>, "strip", z.ZodTypeAny, {
1939
3188
  type: "exact";
1940
3189
  term: string;
1941
3190
  }, {
1942
3191
  type: "exact";
1943
3192
  term: string;
1944
- }>, z.ZodObject<{
3193
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1945
3194
  type: z.ZodLiteral<"range">;
1946
3195
  gte: z.ZodString;
1947
3196
  lte: z.ZodString;
1948
- }, "strip", z.ZodTypeAny, {
3197
+ }, {
3198
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
3199
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
3200
+ }>, "strip", z.ZodTypeAny, {
1949
3201
  type: "range";
1950
3202
  gte: string;
1951
3203
  lte: string;
@@ -1954,20 +3206,25 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1954
3206
  gte: string;
1955
3207
  lte: string;
1956
3208
  }>]>>>;
1957
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3209
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1958
3210
  type: z.ZodLiteral<"exact">;
1959
3211
  term: z.ZodString;
1960
- }, "strip", z.ZodTypeAny, {
3212
+ }, {
3213
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
3214
+ }>, "strip", z.ZodTypeAny, {
1961
3215
  type: "exact";
1962
3216
  term: string;
1963
3217
  }, {
1964
3218
  type: "exact";
1965
3219
  term: string;
1966
- }>, z.ZodObject<{
3220
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1967
3221
  type: z.ZodLiteral<"range">;
1968
3222
  gte: z.ZodString;
1969
3223
  lte: z.ZodString;
1970
- }, "strip", z.ZodTypeAny, {
3224
+ }, {
3225
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
3226
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
3227
+ }>, "strip", z.ZodTypeAny, {
1971
3228
  type: "range";
1972
3229
  gte: string;
1973
3230
  lte: string;
@@ -2094,6 +3351,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2094
3351
  $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2095
3352
  };
2096
3353
  }>>>;
3354
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
2097
3355
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2098
3356
  type: z.ZodLiteral<"exact">;
2099
3357
  term: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -2153,13 +3411,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2153
3411
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2154
3412
  } | undefined;
2155
3413
  data?: any;
3414
+ createdByUserType?: "system" | "user" | undefined;
2156
3415
  createdAt?: {
2157
- type: "exact";
2158
- term: string;
2159
- } | {
2160
3416
  type: "range";
2161
3417
  gte: string;
2162
3418
  lte: string;
3419
+ } | {
3420
+ type: "exact";
3421
+ term: string;
2163
3422
  } | undefined;
2164
3423
  createdBy?: {
2165
3424
  type: "exact";
@@ -2185,12 +3444,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2185
3444
  };
2186
3445
  } | undefined;
2187
3446
  updatedAt?: {
2188
- type: "exact";
2189
- term: string;
2190
- } | {
2191
3447
  type: "range";
2192
3448
  gte: string;
2193
3449
  lte: string;
3450
+ } | {
3451
+ type: "exact";
3452
+ term: string;
2194
3453
  } | undefined;
2195
3454
  trackingId?: {
2196
3455
  type: "exact";
@@ -2230,13 +3489,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2230
3489
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2231
3490
  } | undefined;
2232
3491
  data?: any;
3492
+ createdByUserType?: "system" | "user" | undefined;
2233
3493
  createdAt?: {
2234
- type: "exact";
2235
- term: string;
2236
- } | {
2237
3494
  type: "range";
2238
3495
  gte: string;
2239
3496
  lte: string;
3497
+ } | {
3498
+ type: "exact";
3499
+ term: string;
2240
3500
  } | undefined;
2241
3501
  createdBy?: {
2242
3502
  type: "exact";
@@ -2262,12 +3522,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2262
3522
  };
2263
3523
  } | undefined;
2264
3524
  updatedAt?: {
2265
- type: "exact";
2266
- term: string;
2267
- } | {
2268
3525
  type: "range";
2269
3526
  gte: string;
2270
3527
  lte: string;
3528
+ } | {
3529
+ type: "exact";
3530
+ term: string;
2271
3531
  } | undefined;
2272
3532
  trackingId?: {
2273
3533
  type: "exact";
@@ -2310,13 +3570,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2310
3570
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2311
3571
  } | undefined;
2312
3572
  data?: any;
3573
+ createdByUserType?: "system" | "user" | undefined;
2313
3574
  createdAt?: {
2314
- type: "exact";
2315
- term: string;
2316
- } | {
2317
3575
  type: "range";
2318
3576
  gte: string;
2319
3577
  lte: string;
3578
+ } | {
3579
+ type: "exact";
3580
+ term: string;
2320
3581
  } | undefined;
2321
3582
  createdBy?: {
2322
3583
  type: "exact";
@@ -2342,12 +3603,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2342
3603
  };
2343
3604
  } | undefined;
2344
3605
  updatedAt?: {
2345
- type: "exact";
2346
- term: string;
2347
- } | {
2348
3606
  type: "range";
2349
3607
  gte: string;
2350
3608
  lte: string;
3609
+ } | {
3610
+ type: "exact";
3611
+ term: string;
2351
3612
  } | undefined;
2352
3613
  trackingId?: {
2353
3614
  type: "exact";
@@ -2390,13 +3651,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2390
3651
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2391
3652
  } | undefined;
2392
3653
  data?: any;
3654
+ createdByUserType?: "system" | "user" | undefined;
2393
3655
  createdAt?: {
2394
- type: "exact";
2395
- term: string;
2396
- } | {
2397
3656
  type: "range";
2398
3657
  gte: string;
2399
3658
  lte: string;
3659
+ } | {
3660
+ type: "exact";
3661
+ term: string;
2400
3662
  } | undefined;
2401
3663
  createdBy?: {
2402
3664
  type: "exact";
@@ -2422,12 +3684,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2422
3684
  };
2423
3685
  } | undefined;
2424
3686
  updatedAt?: {
2425
- type: "exact";
2426
- term: string;
2427
- } | {
2428
3687
  type: "range";
2429
3688
  gte: string;
2430
3689
  lte: string;
3690
+ } | {
3691
+ type: "exact";
3692
+ term: string;
2431
3693
  } | undefined;
2432
3694
  trackingId?: {
2433
3695
  type: "exact";
@@ -2482,20 +3744,25 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2482
3744
  type: "exact";
2483
3745
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2484
3746
  }>]>>>;
2485
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3747
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2486
3748
  type: z.ZodLiteral<"exact">;
2487
3749
  term: z.ZodString;
2488
- }, "strip", z.ZodTypeAny, {
3750
+ }, {
3751
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
3752
+ }>, "strip", z.ZodTypeAny, {
2489
3753
  type: "exact";
2490
3754
  term: string;
2491
3755
  }, {
2492
3756
  type: "exact";
2493
3757
  term: string;
2494
- }>, z.ZodObject<{
3758
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2495
3759
  type: z.ZodLiteral<"range">;
2496
3760
  gte: z.ZodString;
2497
3761
  lte: z.ZodString;
2498
- }, "strip", z.ZodTypeAny, {
3762
+ }, {
3763
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
3764
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
3765
+ }>, "strip", z.ZodTypeAny, {
2499
3766
  type: "range";
2500
3767
  gte: string;
2501
3768
  lte: string;
@@ -2504,20 +3771,25 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2504
3771
  gte: string;
2505
3772
  lte: string;
2506
3773
  }>]>>>;
2507
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3774
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2508
3775
  type: z.ZodLiteral<"exact">;
2509
3776
  term: z.ZodString;
2510
- }, "strip", z.ZodTypeAny, {
3777
+ }, {
3778
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
3779
+ }>, "strip", z.ZodTypeAny, {
2511
3780
  type: "exact";
2512
3781
  term: string;
2513
3782
  }, {
2514
3783
  type: "exact";
2515
3784
  term: string;
2516
- }>, z.ZodObject<{
3785
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2517
3786
  type: z.ZodLiteral<"range">;
2518
3787
  gte: z.ZodString;
2519
3788
  lte: z.ZodString;
2520
- }, "strip", z.ZodTypeAny, {
3789
+ }, {
3790
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
3791
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
3792
+ }>, "strip", z.ZodTypeAny, {
2521
3793
  type: "range";
2522
3794
  gte: string;
2523
3795
  lte: string;
@@ -2644,6 +3916,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2644
3916
  $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2645
3917
  };
2646
3918
  }>>>;
3919
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
2647
3920
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2648
3921
  type: z.ZodLiteral<"exact">;
2649
3922
  term: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -2703,13 +3976,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2703
3976
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2704
3977
  } | undefined;
2705
3978
  data?: any;
3979
+ createdByUserType?: "system" | "user" | undefined;
2706
3980
  createdAt?: {
2707
- type: "exact";
2708
- term: string;
2709
- } | {
2710
3981
  type: "range";
2711
3982
  gte: string;
2712
3983
  lte: string;
3984
+ } | {
3985
+ type: "exact";
3986
+ term: string;
2713
3987
  } | undefined;
2714
3988
  createdBy?: {
2715
3989
  type: "exact";
@@ -2735,12 +4009,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2735
4009
  };
2736
4010
  } | undefined;
2737
4011
  updatedAt?: {
2738
- type: "exact";
2739
- term: string;
2740
- } | {
2741
4012
  type: "range";
2742
4013
  gte: string;
2743
4014
  lte: string;
4015
+ } | {
4016
+ type: "exact";
4017
+ term: string;
2744
4018
  } | undefined;
2745
4019
  trackingId?: {
2746
4020
  type: "exact";
@@ -2780,13 +4054,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2780
4054
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2781
4055
  } | undefined;
2782
4056
  data?: any;
4057
+ createdByUserType?: "system" | "user" | undefined;
2783
4058
  createdAt?: {
2784
- type: "exact";
2785
- term: string;
2786
- } | {
2787
4059
  type: "range";
2788
4060
  gte: string;
2789
4061
  lte: string;
4062
+ } | {
4063
+ type: "exact";
4064
+ term: string;
2790
4065
  } | undefined;
2791
4066
  createdBy?: {
2792
4067
  type: "exact";
@@ -2812,12 +4087,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2812
4087
  };
2813
4088
  } | undefined;
2814
4089
  updatedAt?: {
2815
- type: "exact";
2816
- term: string;
2817
- } | {
2818
4090
  type: "range";
2819
4091
  gte: string;
2820
4092
  lte: string;
4093
+ } | {
4094
+ type: "exact";
4095
+ term: string;
2821
4096
  } | undefined;
2822
4097
  trackingId?: {
2823
4098
  type: "exact";
@@ -2860,13 +4135,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2860
4135
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2861
4136
  } | undefined;
2862
4137
  data?: any;
4138
+ createdByUserType?: "system" | "user" | undefined;
2863
4139
  createdAt?: {
2864
- type: "exact";
2865
- term: string;
2866
- } | {
2867
4140
  type: "range";
2868
4141
  gte: string;
2869
4142
  lte: string;
4143
+ } | {
4144
+ type: "exact";
4145
+ term: string;
2870
4146
  } | undefined;
2871
4147
  createdBy?: {
2872
4148
  type: "exact";
@@ -2892,12 +4168,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2892
4168
  };
2893
4169
  } | undefined;
2894
4170
  updatedAt?: {
2895
- type: "exact";
2896
- term: string;
2897
- } | {
2898
4171
  type: "range";
2899
4172
  gte: string;
2900
4173
  lte: string;
4174
+ } | {
4175
+ type: "exact";
4176
+ term: string;
2901
4177
  } | undefined;
2902
4178
  trackingId?: {
2903
4179
  type: "exact";
@@ -2940,13 +4216,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2940
4216
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2941
4217
  } | undefined;
2942
4218
  data?: any;
4219
+ createdByUserType?: "system" | "user" | undefined;
2943
4220
  createdAt?: {
2944
- type: "exact";
2945
- term: string;
2946
- } | {
2947
4221
  type: "range";
2948
4222
  gte: string;
2949
4223
  lte: string;
4224
+ } | {
4225
+ type: "exact";
4226
+ term: string;
2950
4227
  } | undefined;
2951
4228
  createdBy?: {
2952
4229
  type: "exact";
@@ -2972,12 +4249,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2972
4249
  };
2973
4250
  } | undefined;
2974
4251
  updatedAt?: {
2975
- type: "exact";
2976
- term: string;
2977
- } | {
2978
4252
  type: "range";
2979
4253
  gte: string;
2980
4254
  lte: string;
4255
+ } | {
4256
+ type: "exact";
4257
+ term: string;
2981
4258
  } | undefined;
2982
4259
  trackingId?: {
2983
4260
  type: "exact";
@@ -3011,13 +4288,13 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3011
4288
  }[];
3012
4289
  }>]>;
3013
4290
  actions: z.ZodArray<z.ZodObject<{
3014
- type: z.ZodString;
4291
+ type: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN", "DEFAULT"]>;
3015
4292
  conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
3016
4293
  }, "strip", z.ZodTypeAny, {
3017
- type: string;
4294
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3018
4295
  conditionals?: import(".").JSONSchema[] | undefined;
3019
4296
  }, {
3020
- type: string;
4297
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3021
4298
  conditionals?: import(".").JSONSchema[] | undefined;
3022
4299
  }>, "many">;
3023
4300
  columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3027,20 +4304,20 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3027
4304
  defaultMessage: string;
3028
4305
  }>;
3029
4306
  value: z.ZodObject<{
3030
- $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
4307
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
3031
4308
  }, "strip", z.ZodTypeAny, {
3032
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
4309
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
3033
4310
  }, {
3034
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
4311
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
3035
4312
  }>;
3036
4313
  }, "strip", z.ZodTypeAny, {
3037
4314
  value: {
3038
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
4315
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
3039
4316
  };
3040
4317
  label: TranslationConfig;
3041
4318
  }, {
3042
4319
  value: {
3043
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
4320
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
3044
4321
  };
3045
4322
  label: {
3046
4323
  id: string;
@@ -3052,7 +4329,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3052
4329
  }, "strip", z.ZodTypeAny, {
3053
4330
  name: TranslationConfig;
3054
4331
  actions: {
3055
- type: string;
4332
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3056
4333
  conditionals?: import(".").JSONSchema[] | undefined;
3057
4334
  }[];
3058
4335
  query: {
@@ -3064,13 +4341,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3064
4341
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3065
4342
  } | undefined;
3066
4343
  data?: any;
4344
+ createdByUserType?: "system" | "user" | undefined;
3067
4345
  createdAt?: {
3068
- type: "exact";
3069
- term: string;
3070
- } | {
3071
4346
  type: "range";
3072
4347
  gte: string;
3073
4348
  lte: string;
4349
+ } | {
4350
+ type: "exact";
4351
+ term: string;
3074
4352
  } | undefined;
3075
4353
  createdBy?: {
3076
4354
  type: "exact";
@@ -3096,12 +4374,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3096
4374
  };
3097
4375
  } | undefined;
3098
4376
  updatedAt?: {
3099
- type: "exact";
3100
- term: string;
3101
- } | {
3102
4377
  type: "range";
3103
4378
  gte: string;
3104
4379
  lte: string;
4380
+ } | {
4381
+ type: "exact";
4382
+ term: string;
3105
4383
  } | undefined;
3106
4384
  trackingId?: {
3107
4385
  type: "exact";
@@ -3143,13 +4421,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3143
4421
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3144
4422
  } | undefined;
3145
4423
  data?: any;
4424
+ createdByUserType?: "system" | "user" | undefined;
3146
4425
  createdAt?: {
3147
- type: "exact";
3148
- term: string;
3149
- } | {
3150
4426
  type: "range";
3151
4427
  gte: string;
3152
4428
  lte: string;
4429
+ } | {
4430
+ type: "exact";
4431
+ term: string;
3153
4432
  } | undefined;
3154
4433
  createdBy?: {
3155
4434
  type: "exact";
@@ -3175,12 +4454,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3175
4454
  };
3176
4455
  } | undefined;
3177
4456
  updatedAt?: {
3178
- type: "exact";
3179
- term: string;
3180
- } | {
3181
4457
  type: "range";
3182
4458
  gte: string;
3183
4459
  lte: string;
4460
+ } | {
4461
+ type: "exact";
4462
+ term: string;
3184
4463
  } | undefined;
3185
4464
  trackingId?: {
3186
4465
  type: "exact";
@@ -3223,13 +4502,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3223
4502
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3224
4503
  } | undefined;
3225
4504
  data?: any;
4505
+ createdByUserType?: "system" | "user" | undefined;
3226
4506
  createdAt?: {
3227
- type: "exact";
3228
- term: string;
3229
- } | {
3230
4507
  type: "range";
3231
4508
  gte: string;
3232
4509
  lte: string;
4510
+ } | {
4511
+ type: "exact";
4512
+ term: string;
3233
4513
  } | undefined;
3234
4514
  createdBy?: {
3235
4515
  type: "exact";
@@ -3255,12 +4535,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3255
4535
  };
3256
4536
  } | undefined;
3257
4537
  updatedAt?: {
3258
- type: "exact";
3259
- term: string;
3260
- } | {
3261
4538
  type: "range";
3262
4539
  gte: string;
3263
4540
  lte: string;
4541
+ } | {
4542
+ type: "exact";
4543
+ term: string;
3264
4544
  } | undefined;
3265
4545
  trackingId?: {
3266
4546
  type: "exact";
@@ -3296,7 +4576,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3296
4576
  slug: string;
3297
4577
  columns: {
3298
4578
  value: {
3299
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
4579
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
3300
4580
  };
3301
4581
  label: TranslationConfig;
3302
4582
  }[];
@@ -3308,7 +4588,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3308
4588
  defaultMessage: string;
3309
4589
  };
3310
4590
  actions: {
3311
- type: string;
4591
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3312
4592
  conditionals?: import(".").JSONSchema[] | undefined;
3313
4593
  }[];
3314
4594
  query: {
@@ -3320,13 +4600,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3320
4600
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3321
4601
  } | undefined;
3322
4602
  data?: any;
4603
+ createdByUserType?: "system" | "user" | undefined;
3323
4604
  createdAt?: {
3324
- type: "exact";
3325
- term: string;
3326
- } | {
3327
4605
  type: "range";
3328
4606
  gte: string;
3329
4607
  lte: string;
4608
+ } | {
4609
+ type: "exact";
4610
+ term: string;
3330
4611
  } | undefined;
3331
4612
  createdBy?: {
3332
4613
  type: "exact";
@@ -3352,12 +4633,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3352
4633
  };
3353
4634
  } | undefined;
3354
4635
  updatedAt?: {
3355
- type: "exact";
3356
- term: string;
3357
- } | {
3358
4636
  type: "range";
3359
4637
  gte: string;
3360
4638
  lte: string;
4639
+ } | {
4640
+ type: "exact";
4641
+ term: string;
3361
4642
  } | undefined;
3362
4643
  trackingId?: {
3363
4644
  type: "exact";
@@ -3399,13 +4680,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3399
4680
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3400
4681
  } | undefined;
3401
4682
  data?: any;
4683
+ createdByUserType?: "system" | "user" | undefined;
3402
4684
  createdAt?: {
3403
- type: "exact";
3404
- term: string;
3405
- } | {
3406
4685
  type: "range";
3407
4686
  gte: string;
3408
4687
  lte: string;
4688
+ } | {
4689
+ type: "exact";
4690
+ term: string;
3409
4691
  } | undefined;
3410
4692
  createdBy?: {
3411
4693
  type: "exact";
@@ -3431,12 +4713,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3431
4713
  };
3432
4714
  } | undefined;
3433
4715
  updatedAt?: {
3434
- type: "exact";
3435
- term: string;
3436
- } | {
3437
4716
  type: "range";
3438
4717
  gte: string;
3439
4718
  lte: string;
4719
+ } | {
4720
+ type: "exact";
4721
+ term: string;
3440
4722
  } | undefined;
3441
4723
  trackingId?: {
3442
4724
  type: "exact";
@@ -3479,13 +4761,14 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3479
4761
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3480
4762
  } | undefined;
3481
4763
  data?: any;
4764
+ createdByUserType?: "system" | "user" | undefined;
3482
4765
  createdAt?: {
3483
- type: "exact";
3484
- term: string;
3485
- } | {
3486
4766
  type: "range";
3487
4767
  gte: string;
3488
4768
  lte: string;
4769
+ } | {
4770
+ type: "exact";
4771
+ term: string;
3489
4772
  } | undefined;
3490
4773
  createdBy?: {
3491
4774
  type: "exact";
@@ -3511,12 +4794,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3511
4794
  };
3512
4795
  } | undefined;
3513
4796
  updatedAt?: {
3514
- type: "exact";
3515
- term: string;
3516
- } | {
3517
4797
  type: "range";
3518
4798
  gte: string;
3519
4799
  lte: string;
4800
+ } | {
4801
+ type: "exact";
4802
+ term: string;
3520
4803
  } | undefined;
3521
4804
  trackingId?: {
3522
4805
  type: "exact";
@@ -3553,7 +4836,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3553
4836
  icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "DownloadSimple" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
3554
4837
  columns?: {
3555
4838
  value: {
3556
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
4839
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
3557
4840
  };
3558
4841
  label: {
3559
4842
  id: string;
@@ -3563,11 +4846,12 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
3563
4846
  }[] | undefined;
3564
4847
  }>;
3565
4848
  export type WorkqueueConfig = z.infer<typeof WorkqueueConfig>;
4849
+ export type WorkqueueConfigWithoutQuery = z.infer<typeof WorkqueueConfigWithoutQuery>;
3566
4850
  export type WorkqueueConfigInput = z.input<typeof WorkqueueConfigInput>;
3567
4851
  export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
3568
4852
  name: TranslationConfig;
3569
4853
  actions: {
3570
- type: string;
4854
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3571
4855
  conditionals?: import(".").JSONSchema[] | undefined;
3572
4856
  }[];
3573
4857
  query: {
@@ -3581,13 +4865,14 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
3581
4865
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3582
4866
  } | undefined;
3583
4867
  data?: any;
4868
+ createdByUserType?: "system" | "user" | undefined;
3584
4869
  createdAt?: {
3585
- type: "exact";
3586
- term: string;
3587
- } | {
3588
4870
  type: "range";
3589
4871
  gte: string;
3590
4872
  lte: string;
4873
+ } | {
4874
+ type: "exact";
4875
+ term: string;
3591
4876
  } | undefined;
3592
4877
  createdBy?: {
3593
4878
  type: "exact";
@@ -3613,12 +4898,12 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
3613
4898
  };
3614
4899
  } | undefined;
3615
4900
  updatedAt?: {
3616
- type: "exact";
3617
- term: string;
3618
- } | {
3619
4901
  type: "range";
3620
4902
  gte: string;
3621
4903
  lte: string;
4904
+ } | {
4905
+ type: "exact";
4906
+ term: string;
3622
4907
  } | undefined;
3623
4908
  trackingId?: {
3624
4909
  type: "exact";
@@ -3661,13 +4946,14 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
3661
4946
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3662
4947
  } | undefined;
3663
4948
  data?: any;
4949
+ createdByUserType?: "system" | "user" | undefined;
3664
4950
  createdAt?: {
3665
- type: "exact";
3666
- term: string;
3667
- } | {
3668
4951
  type: "range";
3669
4952
  gte: string;
3670
4953
  lte: string;
4954
+ } | {
4955
+ type: "exact";
4956
+ term: string;
3671
4957
  } | undefined;
3672
4958
  createdBy?: {
3673
4959
  type: "exact";
@@ -3693,12 +4979,12 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
3693
4979
  };
3694
4980
  } | undefined;
3695
4981
  updatedAt?: {
3696
- type: "exact";
3697
- term: string;
3698
- } | {
3699
4982
  type: "range";
3700
4983
  gte: string;
3701
4984
  lte: string;
4985
+ } | {
4986
+ type: "exact";
4987
+ term: string;
3702
4988
  } | undefined;
3703
4989
  trackingId?: {
3704
4990
  type: "exact";
@@ -3734,7 +5020,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
3734
5020
  slug: string;
3735
5021
  columns: {
3736
5022
  value: {
3737
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
5023
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
3738
5024
  };
3739
5025
  label: TranslationConfig;
3740
5026
  }[];
@@ -3743,7 +5029,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
3743
5029
  export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
3744
5030
  name: TranslationConfig;
3745
5031
  actions: {
3746
- type: string;
5032
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3747
5033
  conditionals?: import(".").JSONSchema[] | undefined;
3748
5034
  }[];
3749
5035
  query: {
@@ -3757,13 +5043,14 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
3757
5043
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3758
5044
  } | undefined;
3759
5045
  data?: any;
5046
+ createdByUserType?: "system" | "user" | undefined;
3760
5047
  createdAt?: {
3761
- type: "exact";
3762
- term: string;
3763
- } | {
3764
5048
  type: "range";
3765
5049
  gte: string;
3766
5050
  lte: string;
5051
+ } | {
5052
+ type: "exact";
5053
+ term: string;
3767
5054
  } | undefined;
3768
5055
  createdBy?: {
3769
5056
  type: "exact";
@@ -3789,12 +5076,12 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
3789
5076
  };
3790
5077
  } | undefined;
3791
5078
  updatedAt?: {
3792
- type: "exact";
3793
- term: string;
3794
- } | {
3795
5079
  type: "range";
3796
5080
  gte: string;
3797
5081
  lte: string;
5082
+ } | {
5083
+ type: "exact";
5084
+ term: string;
3798
5085
  } | undefined;
3799
5086
  trackingId?: {
3800
5087
  type: "exact";
@@ -3837,13 +5124,14 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
3837
5124
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3838
5125
  } | undefined;
3839
5126
  data?: any;
5127
+ createdByUserType?: "system" | "user" | undefined;
3840
5128
  createdAt?: {
3841
- type: "exact";
3842
- term: string;
3843
- } | {
3844
5129
  type: "range";
3845
5130
  gte: string;
3846
5131
  lte: string;
5132
+ } | {
5133
+ type: "exact";
5134
+ term: string;
3847
5135
  } | undefined;
3848
5136
  createdBy?: {
3849
5137
  type: "exact";
@@ -3869,12 +5157,12 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
3869
5157
  };
3870
5158
  } | undefined;
3871
5159
  updatedAt?: {
3872
- type: "exact";
3873
- term: string;
3874
- } | {
3875
5160
  type: "range";
3876
5161
  gte: string;
3877
5162
  lte: string;
5163
+ } | {
5164
+ type: "exact";
5165
+ term: string;
3878
5166
  } | undefined;
3879
5167
  trackingId?: {
3880
5168
  type: "exact";
@@ -3910,7 +5198,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
3910
5198
  slug: string;
3911
5199
  columns: {
3912
5200
  value: {
3913
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
5201
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
3914
5202
  };
3915
5203
  label: TranslationConfig;
3916
5204
  }[];
@@ -3920,7 +5208,8 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
3920
5208
  slug: z.ZodString;
3921
5209
  query: z.ZodObject<{
3922
5210
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
3923
- clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
5211
+ clauses: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
5212
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3924
5213
  eventType: z.ZodOptional<z.ZodString>;
3925
5214
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3926
5215
  type: z.ZodLiteral<"anyOf">;
@@ -3941,20 +5230,25 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
3941
5230
  type: "exact";
3942
5231
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3943
5232
  }>]>>>;
3944
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
5233
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
3945
5234
  type: z.ZodLiteral<"exact">;
3946
5235
  term: z.ZodString;
3947
- }, "strip", z.ZodTypeAny, {
5236
+ }, {
5237
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
5238
+ }>, "strip", z.ZodTypeAny, {
3948
5239
  type: "exact";
3949
5240
  term: string;
3950
5241
  }, {
3951
5242
  type: "exact";
3952
5243
  term: string;
3953
- }>, z.ZodObject<{
5244
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3954
5245
  type: z.ZodLiteral<"range">;
3955
5246
  gte: z.ZodString;
3956
5247
  lte: z.ZodString;
3957
- }, "strip", z.ZodTypeAny, {
5248
+ }, {
5249
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
5250
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
5251
+ }>, "strip", z.ZodTypeAny, {
3958
5252
  type: "range";
3959
5253
  gte: string;
3960
5254
  lte: string;
@@ -3963,20 +5257,25 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
3963
5257
  gte: string;
3964
5258
  lte: string;
3965
5259
  }>]>>>;
3966
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
5260
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
3967
5261
  type: z.ZodLiteral<"exact">;
3968
5262
  term: z.ZodString;
3969
- }, "strip", z.ZodTypeAny, {
5263
+ }, {
5264
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
5265
+ }>, "strip", z.ZodTypeAny, {
3970
5266
  type: "exact";
3971
5267
  term: string;
3972
5268
  }, {
3973
5269
  type: "exact";
3974
5270
  term: string;
3975
- }>, z.ZodObject<{
5271
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3976
5272
  type: z.ZodLiteral<"range">;
3977
5273
  gte: z.ZodString;
3978
5274
  lte: z.ZodString;
3979
- }, "strip", z.ZodTypeAny, {
5275
+ }, {
5276
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
5277
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
5278
+ }>, "strip", z.ZodTypeAny, {
3980
5279
  type: "range";
3981
5280
  gte: string;
3982
5281
  lte: string;
@@ -3985,20 +5284,25 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
3985
5284
  gte: string;
3986
5285
  lte: string;
3987
5286
  }>]>>>;
3988
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
5287
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
3989
5288
  type: z.ZodLiteral<"exact">;
3990
5289
  term: z.ZodString;
3991
- }, "strip", z.ZodTypeAny, {
5290
+ }, {
5291
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
5292
+ }>, "strip", z.ZodTypeAny, {
3992
5293
  type: "exact";
3993
5294
  term: string;
3994
5295
  }, {
3995
5296
  type: "exact";
3996
5297
  term: string;
3997
- }>, z.ZodObject<{
5298
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3998
5299
  type: z.ZodLiteral<"range">;
3999
5300
  gte: z.ZodString;
4000
5301
  lte: z.ZodString;
4001
- }, "strip", z.ZodTypeAny, {
5302
+ }, {
5303
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
5304
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
5305
+ }>, "strip", z.ZodTypeAny, {
4002
5306
  type: "range";
4003
5307
  gte: string;
4004
5308
  lte: string;
@@ -4064,77 +5368,247 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4064
5368
  }, {
4065
5369
  type: "within";
4066
5370
  location: string;
4067
- }>, z.ZodObject<{
4068
- type: z.ZodLiteral<"exact">;
4069
- term: z.ZodString;
4070
- }, "strip", z.ZodTypeAny, {
5371
+ }>, z.ZodObject<{
5372
+ type: z.ZodLiteral<"exact">;
5373
+ term: z.ZodString;
5374
+ }, "strip", z.ZodTypeAny, {
5375
+ type: "exact";
5376
+ term: string;
5377
+ }, {
5378
+ type: "exact";
5379
+ term: string;
5380
+ }>]>>>;
5381
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
5382
+ type: z.ZodLiteral<"exact">;
5383
+ term: z.ZodString;
5384
+ }, "strip", z.ZodTypeAny, {
5385
+ type: "exact";
5386
+ term: string;
5387
+ }, {
5388
+ type: "exact";
5389
+ term: string;
5390
+ }>>>;
5391
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
5392
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
5393
+ type: z.ZodLiteral<"exact">;
5394
+ term: z.ZodString;
5395
+ }, "strip", z.ZodTypeAny, {
5396
+ type: "exact";
5397
+ term: string;
5398
+ }, {
5399
+ type: "exact";
5400
+ term: string;
5401
+ }>>>;
5402
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
5403
+ type: z.ZodLiteral<"exact">;
5404
+ term: z.ZodString;
5405
+ }, "strip", z.ZodTypeAny, {
5406
+ type: "exact";
5407
+ term: string;
5408
+ }, {
5409
+ type: "exact";
5410
+ term: string;
5411
+ }>>>;
5412
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
5413
+ type: z.ZodLiteral<"exact">;
5414
+ term: z.ZodString;
5415
+ }, "strip", z.ZodTypeAny, {
5416
+ type: "exact";
5417
+ term: string;
5418
+ }, {
5419
+ type: "exact";
5420
+ term: string;
5421
+ }>>>;
5422
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
5423
+ type: z.ZodLiteral<"anyOf">;
5424
+ terms: z.ZodArray<z.ZodString, "many">;
5425
+ }, "strip", z.ZodTypeAny, {
5426
+ type: "anyOf";
5427
+ terms: string[];
5428
+ }, {
5429
+ type: "anyOf";
5430
+ terms: string[];
5431
+ }>, z.ZodObject<{
5432
+ type: z.ZodLiteral<"not">;
5433
+ term: z.ZodString;
5434
+ }, "strip", z.ZodTypeAny, {
5435
+ type: "not";
5436
+ term: string;
5437
+ }, {
5438
+ type: "not";
5439
+ term: string;
5440
+ }>]>, "many">>>;
5441
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
5442
+ }, "strip", z.ZodTypeAny, {
5443
+ id?: string | undefined;
5444
+ status?: {
5445
+ type: "exact";
5446
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
5447
+ } | {
5448
+ type: "anyOf";
5449
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
5450
+ } | undefined;
5451
+ data?: any;
5452
+ createdByUserType?: "system" | "user" | undefined;
5453
+ createdAt?: {
5454
+ type: "range";
5455
+ gte: string;
5456
+ lte: string;
5457
+ } | {
5458
+ type: "exact";
5459
+ term: string;
5460
+ } | undefined;
5461
+ createdBy?: {
5462
+ type: "exact";
5463
+ term: string;
5464
+ } | undefined;
5465
+ createdAtLocation?: {
5466
+ type: "exact";
5467
+ term: string;
5468
+ } | {
5469
+ type: "within";
5470
+ location: string;
5471
+ } | undefined;
5472
+ assignedTo?: {
5473
+ type: "exact";
5474
+ term: string;
5475
+ } | undefined;
5476
+ updatedAt?: {
5477
+ type: "range";
5478
+ gte: string;
5479
+ lte: string;
5480
+ } | {
5481
+ type: "exact";
5482
+ term: string;
5483
+ } | undefined;
5484
+ trackingId?: {
5485
+ type: "exact";
5486
+ term: string;
5487
+ } | undefined;
5488
+ updatedAtLocation?: {
5489
+ type: "exact";
5490
+ term: string;
5491
+ } | {
5492
+ type: "within";
5493
+ location: string;
5494
+ } | undefined;
5495
+ updatedBy?: {
5496
+ type: "exact";
5497
+ term: string;
5498
+ } | undefined;
5499
+ flags?: ({
5500
+ type: "anyOf";
5501
+ terms: string[];
5502
+ } | {
5503
+ type: "not";
5504
+ term: string;
5505
+ })[] | undefined;
5506
+ eventType?: string | undefined;
5507
+ 'legalStatus.REGISTERED.createdAt'?: {
5508
+ type: "range";
5509
+ gte: string;
5510
+ lte: string;
5511
+ } | {
5512
+ type: "exact";
5513
+ term: string;
5514
+ } | undefined;
5515
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
5516
+ type: "exact";
5517
+ term: string;
5518
+ } | {
5519
+ type: "within";
5520
+ location: string;
5521
+ } | undefined;
5522
+ 'legalStatus.REGISTERED.registrationNumber'?: {
4071
5523
  type: "exact";
4072
5524
  term: string;
4073
- }, {
5525
+ } | undefined;
5526
+ }, {
5527
+ id?: string | undefined;
5528
+ status?: {
4074
5529
  type: "exact";
4075
- term: string;
4076
- }>]>>>;
4077
- assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
4078
- type: z.ZodLiteral<"exact">;
4079
- term: z.ZodString;
4080
- }, "strip", z.ZodTypeAny, {
5530
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
5531
+ } | {
5532
+ type: "anyOf";
5533
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
5534
+ } | undefined;
5535
+ data?: any;
5536
+ createdByUserType?: "system" | "user" | undefined;
5537
+ createdAt?: {
5538
+ type: "range";
5539
+ gte: string;
5540
+ lte: string;
5541
+ } | {
4081
5542
  type: "exact";
4082
5543
  term: string;
4083
- }, {
5544
+ } | undefined;
5545
+ createdBy?: {
4084
5546
  type: "exact";
4085
5547
  term: string;
4086
- }>>>;
4087
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
4088
- type: z.ZodLiteral<"exact">;
4089
- term: z.ZodString;
4090
- }, "strip", z.ZodTypeAny, {
5548
+ } | undefined;
5549
+ createdAtLocation?: {
4091
5550
  type: "exact";
4092
5551
  term: string;
4093
- }, {
5552
+ } | {
5553
+ type: "within";
5554
+ location: string;
5555
+ } | undefined;
5556
+ assignedTo?: {
4094
5557
  type: "exact";
4095
5558
  term: string;
4096
- }>>>;
4097
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
4098
- type: z.ZodLiteral<"exact">;
4099
- term: z.ZodString;
4100
- }, "strip", z.ZodTypeAny, {
5559
+ } | undefined;
5560
+ updatedAt?: {
5561
+ type: "range";
5562
+ gte: string;
5563
+ lte: string;
5564
+ } | {
4101
5565
  type: "exact";
4102
5566
  term: string;
4103
- }, {
5567
+ } | undefined;
5568
+ trackingId?: {
4104
5569
  type: "exact";
4105
5570
  term: string;
4106
- }>>>;
4107
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
4108
- type: z.ZodLiteral<"exact">;
4109
- term: z.ZodString;
4110
- }, "strip", z.ZodTypeAny, {
5571
+ } | undefined;
5572
+ updatedAtLocation?: {
4111
5573
  type: "exact";
4112
5574
  term: string;
4113
- }, {
5575
+ } | {
5576
+ type: "within";
5577
+ location: string;
5578
+ } | undefined;
5579
+ updatedBy?: {
4114
5580
  type: "exact";
4115
5581
  term: string;
4116
- }>>>;
4117
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
4118
- type: z.ZodLiteral<"anyOf">;
4119
- terms: z.ZodArray<z.ZodString, "many">;
4120
- }, "strip", z.ZodTypeAny, {
4121
- type: "anyOf";
4122
- terms: string[];
4123
- }, {
5582
+ } | undefined;
5583
+ flags?: ({
4124
5584
  type: "anyOf";
4125
5585
  terms: string[];
4126
- }>, z.ZodObject<{
4127
- type: z.ZodLiteral<"not">;
4128
- term: z.ZodString;
4129
- }, "strip", z.ZodTypeAny, {
5586
+ } | {
4130
5587
  type: "not";
4131
5588
  term: string;
4132
- }, {
4133
- type: "not";
5589
+ })[] | undefined;
5590
+ eventType?: string | undefined;
5591
+ 'legalStatus.REGISTERED.createdAt'?: {
5592
+ type: "range";
5593
+ gte: string;
5594
+ lte: string;
5595
+ } | {
5596
+ type: "exact";
4134
5597
  term: string;
4135
- }>]>, "many">>>;
4136
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
4137
- }, "strip", z.ZodTypeAny, {
5598
+ } | undefined;
5599
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
5600
+ type: "exact";
5601
+ term: string;
5602
+ } | {
5603
+ type: "within";
5604
+ location: string;
5605
+ } | undefined;
5606
+ 'legalStatus.REGISTERED.registrationNumber'?: {
5607
+ type: "exact";
5608
+ term: string;
5609
+ } | undefined;
5610
+ }>, {
5611
+ id?: string | undefined;
4138
5612
  status?: {
4139
5613
  type: "exact";
4140
5614
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -4143,13 +5617,14 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4143
5617
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4144
5618
  } | undefined;
4145
5619
  data?: any;
5620
+ createdByUserType?: "system" | "user" | undefined;
4146
5621
  createdAt?: {
4147
- type: "exact";
4148
- term: string;
4149
- } | {
4150
5622
  type: "range";
4151
5623
  gte: string;
4152
5624
  lte: string;
5625
+ } | {
5626
+ type: "exact";
5627
+ term: string;
4153
5628
  } | undefined;
4154
5629
  createdBy?: {
4155
5630
  type: "exact";
@@ -4167,12 +5642,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4167
5642
  term: string;
4168
5643
  } | undefined;
4169
5644
  updatedAt?: {
4170
- type: "exact";
4171
- term: string;
4172
- } | {
4173
5645
  type: "range";
4174
5646
  gte: string;
4175
5647
  lte: string;
5648
+ } | {
5649
+ type: "exact";
5650
+ term: string;
4176
5651
  } | undefined;
4177
5652
  trackingId?: {
4178
5653
  type: "exact";
@@ -4198,12 +5673,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4198
5673
  })[] | undefined;
4199
5674
  eventType?: string | undefined;
4200
5675
  'legalStatus.REGISTERED.createdAt'?: {
4201
- type: "exact";
4202
- term: string;
4203
- } | {
4204
5676
  type: "range";
4205
5677
  gte: string;
4206
5678
  lte: string;
5679
+ } | {
5680
+ type: "exact";
5681
+ term: string;
4207
5682
  } | undefined;
4208
5683
  'legalStatus.REGISTERED.createdAtLocation'?: {
4209
5684
  type: "exact";
@@ -4217,6 +5692,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4217
5692
  term: string;
4218
5693
  } | undefined;
4219
5694
  }, {
5695
+ id?: string | undefined;
4220
5696
  status?: {
4221
5697
  type: "exact";
4222
5698
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -4225,13 +5701,14 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4225
5701
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4226
5702
  } | undefined;
4227
5703
  data?: any;
5704
+ createdByUserType?: "system" | "user" | undefined;
4228
5705
  createdAt?: {
4229
- type: "exact";
4230
- term: string;
4231
- } | {
4232
5706
  type: "range";
4233
5707
  gte: string;
4234
5708
  lte: string;
5709
+ } | {
5710
+ type: "exact";
5711
+ term: string;
4235
5712
  } | undefined;
4236
5713
  createdBy?: {
4237
5714
  type: "exact";
@@ -4249,12 +5726,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4249
5726
  term: string;
4250
5727
  } | undefined;
4251
5728
  updatedAt?: {
4252
- type: "exact";
4253
- term: string;
4254
- } | {
4255
5729
  type: "range";
4256
5730
  gte: string;
4257
5731
  lte: string;
5732
+ } | {
5733
+ type: "exact";
5734
+ term: string;
4258
5735
  } | undefined;
4259
5736
  trackingId?: {
4260
5737
  type: "exact";
@@ -4280,12 +5757,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4280
5757
  })[] | undefined;
4281
5758
  eventType?: string | undefined;
4282
5759
  'legalStatus.REGISTERED.createdAt'?: {
4283
- type: "exact";
4284
- term: string;
4285
- } | {
4286
5760
  type: "range";
4287
5761
  gte: string;
4288
5762
  lte: string;
5763
+ } | {
5764
+ type: "exact";
5765
+ term: string;
4289
5766
  } | undefined;
4290
5767
  'legalStatus.REGISTERED.createdAtLocation'?: {
4291
5768
  type: "exact";
@@ -4299,6 +5776,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4299
5776
  term: string;
4300
5777
  } | undefined;
4301
5778
  }>, "atleastone">, [{
5779
+ id?: string | undefined;
4302
5780
  status?: {
4303
5781
  type: "exact";
4304
5782
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -4307,13 +5785,14 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4307
5785
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4308
5786
  } | undefined;
4309
5787
  data?: any;
5788
+ createdByUserType?: "system" | "user" | undefined;
4310
5789
  createdAt?: {
4311
- type: "exact";
4312
- term: string;
4313
- } | {
4314
5790
  type: "range";
4315
5791
  gte: string;
4316
5792
  lte: string;
5793
+ } | {
5794
+ type: "exact";
5795
+ term: string;
4317
5796
  } | undefined;
4318
5797
  createdBy?: {
4319
5798
  type: "exact";
@@ -4331,12 +5810,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4331
5810
  term: string;
4332
5811
  } | undefined;
4333
5812
  updatedAt?: {
4334
- type: "exact";
4335
- term: string;
4336
- } | {
4337
5813
  type: "range";
4338
5814
  gte: string;
4339
5815
  lte: string;
5816
+ } | {
5817
+ type: "exact";
5818
+ term: string;
4340
5819
  } | undefined;
4341
5820
  trackingId?: {
4342
5821
  type: "exact";
@@ -4362,12 +5841,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4362
5841
  })[] | undefined;
4363
5842
  eventType?: string | undefined;
4364
5843
  'legalStatus.REGISTERED.createdAt'?: {
4365
- type: "exact";
4366
- term: string;
4367
- } | {
4368
5844
  type: "range";
4369
5845
  gte: string;
4370
5846
  lte: string;
5847
+ } | {
5848
+ type: "exact";
5849
+ term: string;
4371
5850
  } | undefined;
4372
5851
  'legalStatus.REGISTERED.createdAtLocation'?: {
4373
5852
  type: "exact";
@@ -4381,6 +5860,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4381
5860
  term: string;
4382
5861
  } | undefined;
4383
5862
  }, ...{
5863
+ id?: string | undefined;
4384
5864
  status?: {
4385
5865
  type: "exact";
4386
5866
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -4389,13 +5869,14 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4389
5869
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4390
5870
  } | undefined;
4391
5871
  data?: any;
5872
+ createdByUserType?: "system" | "user" | undefined;
4392
5873
  createdAt?: {
4393
- type: "exact";
4394
- term: string;
4395
- } | {
4396
5874
  type: "range";
4397
5875
  gte: string;
4398
5876
  lte: string;
5877
+ } | {
5878
+ type: "exact";
5879
+ term: string;
4399
5880
  } | undefined;
4400
5881
  createdBy?: {
4401
5882
  type: "exact";
@@ -4413,12 +5894,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4413
5894
  term: string;
4414
5895
  } | undefined;
4415
5896
  updatedAt?: {
4416
- type: "exact";
4417
- term: string;
4418
- } | {
4419
5897
  type: "range";
4420
5898
  gte: string;
4421
5899
  lte: string;
5900
+ } | {
5901
+ type: "exact";
5902
+ term: string;
4422
5903
  } | undefined;
4423
5904
  trackingId?: {
4424
5905
  type: "exact";
@@ -4444,12 +5925,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4444
5925
  })[] | undefined;
4445
5926
  eventType?: string | undefined;
4446
5927
  'legalStatus.REGISTERED.createdAt'?: {
4447
- type: "exact";
4448
- term: string;
4449
- } | {
4450
5928
  type: "range";
4451
5929
  gte: string;
4452
5930
  lte: string;
5931
+ } | {
5932
+ type: "exact";
5933
+ term: string;
4453
5934
  } | undefined;
4454
5935
  'legalStatus.REGISTERED.createdAtLocation'?: {
4455
5936
  type: "exact";
@@ -4466,6 +5947,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4466
5947
  }, "strip", z.ZodTypeAny, {
4467
5948
  type: "and" | "or";
4468
5949
  clauses: [{
5950
+ id?: string | undefined;
4469
5951
  status?: {
4470
5952
  type: "exact";
4471
5953
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -4474,13 +5956,14 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4474
5956
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4475
5957
  } | undefined;
4476
5958
  data?: any;
5959
+ createdByUserType?: "system" | "user" | undefined;
4477
5960
  createdAt?: {
4478
- type: "exact";
4479
- term: string;
4480
- } | {
4481
5961
  type: "range";
4482
5962
  gte: string;
4483
5963
  lte: string;
5964
+ } | {
5965
+ type: "exact";
5966
+ term: string;
4484
5967
  } | undefined;
4485
5968
  createdBy?: {
4486
5969
  type: "exact";
@@ -4498,12 +5981,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4498
5981
  term: string;
4499
5982
  } | undefined;
4500
5983
  updatedAt?: {
4501
- type: "exact";
4502
- term: string;
4503
- } | {
4504
5984
  type: "range";
4505
5985
  gte: string;
4506
5986
  lte: string;
5987
+ } | {
5988
+ type: "exact";
5989
+ term: string;
4507
5990
  } | undefined;
4508
5991
  trackingId?: {
4509
5992
  type: "exact";
@@ -4529,12 +6012,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4529
6012
  })[] | undefined;
4530
6013
  eventType?: string | undefined;
4531
6014
  'legalStatus.REGISTERED.createdAt'?: {
4532
- type: "exact";
4533
- term: string;
4534
- } | {
4535
6015
  type: "range";
4536
6016
  gte: string;
4537
6017
  lte: string;
6018
+ } | {
6019
+ type: "exact";
6020
+ term: string;
4538
6021
  } | undefined;
4539
6022
  'legalStatus.REGISTERED.createdAtLocation'?: {
4540
6023
  type: "exact";
@@ -4548,6 +6031,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4548
6031
  term: string;
4549
6032
  } | undefined;
4550
6033
  }, ...{
6034
+ id?: string | undefined;
4551
6035
  status?: {
4552
6036
  type: "exact";
4553
6037
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -4556,13 +6040,14 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4556
6040
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4557
6041
  } | undefined;
4558
6042
  data?: any;
6043
+ createdByUserType?: "system" | "user" | undefined;
4559
6044
  createdAt?: {
4560
- type: "exact";
4561
- term: string;
4562
- } | {
4563
6045
  type: "range";
4564
6046
  gte: string;
4565
6047
  lte: string;
6048
+ } | {
6049
+ type: "exact";
6050
+ term: string;
4566
6051
  } | undefined;
4567
6052
  createdBy?: {
4568
6053
  type: "exact";
@@ -4580,12 +6065,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4580
6065
  term: string;
4581
6066
  } | undefined;
4582
6067
  updatedAt?: {
4583
- type: "exact";
4584
- term: string;
4585
- } | {
4586
6068
  type: "range";
4587
6069
  gte: string;
4588
6070
  lte: string;
6071
+ } | {
6072
+ type: "exact";
6073
+ term: string;
4589
6074
  } | undefined;
4590
6075
  trackingId?: {
4591
6076
  type: "exact";
@@ -4611,12 +6096,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4611
6096
  })[] | undefined;
4612
6097
  eventType?: string | undefined;
4613
6098
  'legalStatus.REGISTERED.createdAt'?: {
4614
- type: "exact";
4615
- term: string;
4616
- } | {
4617
6099
  type: "range";
4618
6100
  gte: string;
4619
6101
  lte: string;
6102
+ } | {
6103
+ type: "exact";
6104
+ term: string;
4620
6105
  } | undefined;
4621
6106
  'legalStatus.REGISTERED.createdAtLocation'?: {
4622
6107
  type: "exact";
@@ -4638,6 +6123,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4638
6123
  query: {
4639
6124
  type: "and" | "or";
4640
6125
  clauses: [{
6126
+ id?: string | undefined;
4641
6127
  status?: {
4642
6128
  type: "exact";
4643
6129
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -4646,13 +6132,14 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4646
6132
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4647
6133
  } | undefined;
4648
6134
  data?: any;
6135
+ createdByUserType?: "system" | "user" | undefined;
4649
6136
  createdAt?: {
4650
- type: "exact";
4651
- term: string;
4652
- } | {
4653
6137
  type: "range";
4654
6138
  gte: string;
4655
6139
  lte: string;
6140
+ } | {
6141
+ type: "exact";
6142
+ term: string;
4656
6143
  } | undefined;
4657
6144
  createdBy?: {
4658
6145
  type: "exact";
@@ -4670,12 +6157,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4670
6157
  term: string;
4671
6158
  } | undefined;
4672
6159
  updatedAt?: {
4673
- type: "exact";
4674
- term: string;
4675
- } | {
4676
6160
  type: "range";
4677
6161
  gte: string;
4678
6162
  lte: string;
6163
+ } | {
6164
+ type: "exact";
6165
+ term: string;
4679
6166
  } | undefined;
4680
6167
  trackingId?: {
4681
6168
  type: "exact";
@@ -4701,12 +6188,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4701
6188
  })[] | undefined;
4702
6189
  eventType?: string | undefined;
4703
6190
  'legalStatus.REGISTERED.createdAt'?: {
4704
- type: "exact";
4705
- term: string;
4706
- } | {
4707
6191
  type: "range";
4708
6192
  gte: string;
4709
6193
  lte: string;
6194
+ } | {
6195
+ type: "exact";
6196
+ term: string;
4710
6197
  } | undefined;
4711
6198
  'legalStatus.REGISTERED.createdAtLocation'?: {
4712
6199
  type: "exact";
@@ -4720,6 +6207,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4720
6207
  term: string;
4721
6208
  } | undefined;
4722
6209
  }, ...{
6210
+ id?: string | undefined;
4723
6211
  status?: {
4724
6212
  type: "exact";
4725
6213
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -4728,13 +6216,14 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4728
6216
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4729
6217
  } | undefined;
4730
6218
  data?: any;
6219
+ createdByUserType?: "system" | "user" | undefined;
4731
6220
  createdAt?: {
4732
- type: "exact";
4733
- term: string;
4734
- } | {
4735
6221
  type: "range";
4736
6222
  gte: string;
4737
6223
  lte: string;
6224
+ } | {
6225
+ type: "exact";
6226
+ term: string;
4738
6227
  } | undefined;
4739
6228
  createdBy?: {
4740
6229
  type: "exact";
@@ -4752,12 +6241,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4752
6241
  term: string;
4753
6242
  } | undefined;
4754
6243
  updatedAt?: {
4755
- type: "exact";
4756
- term: string;
4757
- } | {
4758
6244
  type: "range";
4759
6245
  gte: string;
4760
6246
  lte: string;
6247
+ } | {
6248
+ type: "exact";
6249
+ term: string;
4761
6250
  } | undefined;
4762
6251
  trackingId?: {
4763
6252
  type: "exact";
@@ -4783,12 +6272,12 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
4783
6272
  })[] | undefined;
4784
6273
  eventType?: string | undefined;
4785
6274
  'legalStatus.REGISTERED.createdAt'?: {
4786
- type: "exact";
4787
- term: string;
4788
- } | {
4789
6275
  type: "range";
4790
6276
  gte: string;
4791
6277
  lte: string;
6278
+ } | {
6279
+ type: "exact";
6280
+ term: string;
4792
6281
  } | undefined;
4793
6282
  'legalStatus.REGISTERED.createdAtLocation'?: {
4794
6283
  type: "exact";