@opencrvs/toolkit 1.8.1-rc.bbbfede → 1.8.1-rc.bbdfdc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/build.sh +5 -0
  2. package/dist/commons/api/router.d.ts +433 -800
  3. package/dist/commons/conditionals/validate.d.ts +8 -0
  4. package/dist/commons/events/ActionConfig.d.ts +2004 -366
  5. package/dist/commons/events/ActionDocument.d.ts +1302 -1389
  6. package/dist/commons/events/ActionInput.d.ts +658 -1136
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +83 -65
  8. package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
  9. package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
  10. package/dist/commons/events/Draft.d.ts +48 -92
  11. package/dist/commons/events/EventConfig.d.ts +695 -168
  12. package/dist/commons/events/EventDocument.d.ts +475 -846
  13. package/dist/commons/events/EventIndex.d.ts +184 -68
  14. package/dist/commons/events/EventMetadata.d.ts +9 -15
  15. package/dist/commons/events/FieldConfig.d.ts +254 -43
  16. package/dist/commons/events/FieldTypeMapping.d.ts +16 -16
  17. package/dist/commons/events/FieldValue.d.ts +12 -12
  18. package/dist/commons/events/FormConfig.d.ts +1032 -246
  19. package/dist/commons/events/PageConfig.d.ts +264 -46
  20. package/dist/commons/events/WorkqueueConfig.d.ts +288 -164
  21. package/dist/commons/events/defineConfig.d.ts +129 -30
  22. package/dist/commons/events/event.d.ts +14 -6
  23. package/dist/commons/events/field.d.ts +14 -0
  24. package/dist/commons/events/test.utils.d.ts +17 -13
  25. package/dist/commons/events/utils.d.ts +236 -64
  26. package/dist/commons/notification/UserNotifications.d.ts +547 -0
  27. package/dist/commons/notification/index.d.ts +2 -0
  28. package/dist/conditionals/index.js +3 -2
  29. package/dist/events/index.js +162 -87
  30. package/dist/notification/index.d.ts +2 -0
  31. package/dist/notification/index.d.ts.map +1 -0
  32. package/dist/notification/index.js +5362 -0
  33. package/package.json +3 -2
  34. package/tsconfig.json +3 -2
  35. package/tsconfig.tsbuildinfo +1 -1
  36. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  37. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  38. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  39. package/dist/commons/events/utils.test.d.ts +0 -2
@@ -2,7 +2,7 @@ import { z, ZodType } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
3
  id: z.ZodBranded<z.ZodString, "UUID">;
4
4
  type: z.ZodString;
5
- status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
5
+ status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
6
6
  legalStatuses: z.ZodObject<{
7
7
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8
8
  createdAt: z.ZodString;
@@ -112,13 +112,11 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
112
112
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
113
  trackingId: z.ZodString;
114
114
  flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
115
- readonly PRINTED: "printed";
115
+ readonly PENDING_CERTIFICATION: "pending-certification";
116
116
  readonly INCOMPLETE: "incomplete";
117
117
  readonly REJECTED: "rejected";
118
118
  readonly CORRECTION_REQUESTED: "correction-requested";
119
119
  }>]>, "many">;
120
- copiesPrintedForTemplate: z.ZodOptional<z.ZodNumber>;
121
- modifiedAt: z.ZodOptional<z.ZodString>;
122
120
  }, {
123
121
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
124
122
  start: z.ZodString;
@@ -255,22 +253,22 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
255
253
  surname: string;
256
254
  middlename?: string | undefined;
257
255
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
258
- firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
+ firstname: z.ZodString;
257
+ surname: z.ZodString;
260
258
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
259
  }, "strip", z.ZodTypeAny, {
262
- firstname?: string | null | undefined;
263
- surname?: string | null | undefined;
260
+ firstname: string;
261
+ surname: string;
264
262
  middlename?: string | null | undefined;
265
263
  }, {
266
- firstname?: string | null | undefined;
267
- surname?: string | null | undefined;
264
+ firstname: string;
265
+ surname: string;
268
266
  middlename?: string | null | undefined;
269
267
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
270
268
  }>, "strip", z.ZodTypeAny, {
271
269
  type: string;
272
270
  id: string & z.BRAND<"UUID">;
273
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
271
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
274
272
  createdAt: string;
275
273
  createdBy: string;
276
274
  declaration: Record<string, string | number | boolean | {
@@ -300,8 +298,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
300
298
  surname: string;
301
299
  middlename?: string | undefined;
302
300
  } | {
303
- firstname?: string | null | undefined;
304
- surname?: string | null | undefined;
301
+ firstname: string;
302
+ surname: string;
305
303
  middlename?: string | null | undefined;
306
304
  } | {
307
305
  country: string;
@@ -354,12 +352,10 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
354
352
  dateOfEvent?: string | null | undefined;
355
353
  updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
356
354
  updatedBy?: string | null | undefined;
357
- copiesPrintedForTemplate?: number | undefined;
358
- modifiedAt?: string | undefined;
359
355
  }, {
360
356
  type: string;
361
357
  id: string;
362
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
358
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
363
359
  createdAt: string;
364
360
  createdBy: string;
365
361
  declaration: Record<string, string | number | boolean | {
@@ -389,8 +385,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
389
385
  surname: string;
390
386
  middlename?: string | undefined;
391
387
  } | {
392
- firstname?: string | null | undefined;
393
- surname?: string | null | undefined;
388
+ firstname: string;
389
+ surname: string;
394
390
  middlename?: string | null | undefined;
395
391
  } | {
396
392
  country: string;
@@ -443,8 +439,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
443
439
  dateOfEvent?: string | null | undefined;
444
440
  updatedAtLocation?: string | null | undefined;
445
441
  updatedBy?: string | null | undefined;
446
- copiesPrintedForTemplate?: number | undefined;
447
- modifiedAt?: string | undefined;
448
442
  }>;
449
443
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
450
444
  type: z.ZodString;
@@ -477,13 +471,13 @@ export declare const Exact: z.ZodObject<{
477
471
  }>;
478
472
  export declare const ExactStatus: z.ZodObject<{
479
473
  type: z.ZodLiteral<"exact">;
480
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
474
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
481
475
  }, "strip", z.ZodTypeAny, {
482
476
  type: "exact";
483
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
477
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
484
478
  }, {
485
479
  type: "exact";
486
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
480
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
487
481
  }>;
488
482
  export declare const ExactUserType: z.ZodObject<{
489
483
  type: z.ZodLiteral<"exact">;
@@ -507,13 +501,13 @@ export declare const AnyOf: z.ZodObject<{
507
501
  }>;
508
502
  export declare const AnyOfStatus: z.ZodObject<{
509
503
  type: z.ZodLiteral<"anyOf">;
510
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>, "many">;
504
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
511
505
  }, "strip", z.ZodTypeAny, {
512
506
  type: "anyOf";
513
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
507
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
514
508
  }, {
515
509
  type: "anyOf";
516
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
510
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
517
511
  }>;
518
512
  export declare const Range: z.ZodObject<{
519
513
  type: z.ZodLiteral<"range">;
@@ -530,13 +524,13 @@ export declare const Range: z.ZodObject<{
530
524
  }>;
531
525
  export declare const ContainsFlags: z.ZodObject<{
532
526
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
533
- readonly PRINTED: "printed";
527
+ readonly PENDING_CERTIFICATION: "pending-certification";
534
528
  readonly INCOMPLETE: "incomplete";
535
529
  readonly REJECTED: "rejected";
536
530
  readonly CORRECTION_REQUESTED: "correction-requested";
537
531
  }>]>, "many">>;
538
532
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
539
- readonly PRINTED: "printed";
533
+ readonly PENDING_CERTIFICATION: "pending-certification";
540
534
  readonly INCOMPLETE: "incomplete";
541
535
  readonly REJECTED: "rejected";
542
536
  readonly CORRECTION_REQUESTED: "correction-requested";
@@ -615,22 +609,22 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
615
609
  eventType: z.ZodOptional<z.ZodString>;
616
610
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
617
611
  type: z.ZodLiteral<"anyOf">;
618
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>, "many">;
612
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
619
613
  }, "strip", z.ZodTypeAny, {
620
614
  type: "anyOf";
621
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
615
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
622
616
  }, {
623
617
  type: "anyOf";
624
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
618
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
625
619
  }>, z.ZodObject<{
626
620
  type: z.ZodLiteral<"exact">;
627
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
621
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
628
622
  }, "strip", z.ZodTypeAny, {
629
623
  type: "exact";
630
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
624
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
631
625
  }, {
632
626
  type: "exact";
633
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
627
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
634
628
  }>]>>>;
635
629
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
636
630
  type: z.ZodLiteral<"exact">;
@@ -731,6 +725,25 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
731
725
  type: "timePeriod";
732
726
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
733
727
  }>]>>>;
728
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
729
+ type: z.ZodLiteral<"within">;
730
+ location: z.ZodString;
731
+ }, "strip", z.ZodTypeAny, {
732
+ type: "within";
733
+ location: string;
734
+ }, {
735
+ type: "within";
736
+ location: string;
737
+ }>, z.ZodObject<{
738
+ type: z.ZodLiteral<"exact">;
739
+ term: z.ZodString;
740
+ }, "strip", z.ZodTypeAny, {
741
+ type: "exact";
742
+ term: string;
743
+ }, {
744
+ type: "exact";
745
+ term: string;
746
+ }>]>>>;
734
747
  'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
735
748
  type: z.ZodLiteral<"within">;
736
749
  location: z.ZodString;
@@ -850,13 +863,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
850
863
  }>>>;
851
864
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
852
865
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
853
- readonly PRINTED: "printed";
866
+ readonly PENDING_CERTIFICATION: "pending-certification";
854
867
  readonly INCOMPLETE: "incomplete";
855
868
  readonly REJECTED: "rejected";
856
869
  readonly CORRECTION_REQUESTED: "correction-requested";
857
870
  }>]>, "many">>;
858
871
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
859
- readonly PRINTED: "printed";
872
+ readonly PENDING_CERTIFICATION: "pending-certification";
860
873
  readonly INCOMPLETE: "incomplete";
861
874
  readonly REJECTED: "rejected";
862
875
  readonly CORRECTION_REQUESTED: "correction-requested";
@@ -873,10 +886,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
873
886
  id?: string | undefined;
874
887
  status?: {
875
888
  type: "exact";
876
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
889
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
877
890
  } | {
878
891
  type: "anyOf";
879
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
892
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
880
893
  } | undefined;
881
894
  data?: any;
882
895
  createdByUserType?: {
@@ -951,6 +964,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
951
964
  type: "timePeriod";
952
965
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
953
966
  } | undefined;
967
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
968
+ type: "exact";
969
+ term: string;
970
+ } | {
971
+ type: "within";
972
+ location: string;
973
+ } | undefined;
954
974
  'legalStatuses.REGISTERED.createdAtLocation'?: {
955
975
  type: "exact";
956
976
  term: string;
@@ -966,10 +986,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
966
986
  id?: string | undefined;
967
987
  status?: {
968
988
  type: "exact";
969
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
989
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
970
990
  } | {
971
991
  type: "anyOf";
972
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
992
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
973
993
  } | undefined;
974
994
  data?: any;
975
995
  createdByUserType?: {
@@ -1044,6 +1064,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1044
1064
  type: "timePeriod";
1045
1065
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1046
1066
  } | undefined;
1067
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1068
+ type: "exact";
1069
+ term: string;
1070
+ } | {
1071
+ type: "within";
1072
+ location: string;
1073
+ } | undefined;
1047
1074
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1048
1075
  type: "exact";
1049
1076
  term: string;
@@ -1059,10 +1086,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1059
1086
  id?: string | undefined;
1060
1087
  status?: {
1061
1088
  type: "exact";
1062
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1089
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1063
1090
  } | {
1064
1091
  type: "anyOf";
1065
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1092
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1066
1093
  } | undefined;
1067
1094
  data?: any;
1068
1095
  createdByUserType?: {
@@ -1137,6 +1164,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1137
1164
  type: "timePeriod";
1138
1165
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1139
1166
  } | undefined;
1167
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1168
+ type: "exact";
1169
+ term: string;
1170
+ } | {
1171
+ type: "within";
1172
+ location: string;
1173
+ } | undefined;
1140
1174
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1141
1175
  type: "exact";
1142
1176
  term: string;
@@ -1152,10 +1186,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1152
1186
  id?: string | undefined;
1153
1187
  status?: {
1154
1188
  type: "exact";
1155
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1189
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1156
1190
  } | {
1157
1191
  type: "anyOf";
1158
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1192
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1159
1193
  } | undefined;
1160
1194
  data?: any;
1161
1195
  createdByUserType?: {
@@ -1230,6 +1264,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1230
1264
  type: "timePeriod";
1231
1265
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1232
1266
  } | undefined;
1267
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1268
+ type: "exact";
1269
+ term: string;
1270
+ } | {
1271
+ type: "within";
1272
+ location: string;
1273
+ } | undefined;
1233
1274
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1234
1275
  type: "exact";
1235
1276
  term: string;
@@ -1249,22 +1290,22 @@ export declare const QueryType: z.ZodObject<{
1249
1290
  eventType: z.ZodOptional<z.ZodString>;
1250
1291
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1251
1292
  type: z.ZodLiteral<"anyOf">;
1252
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>, "many">;
1293
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
1253
1294
  }, "strip", z.ZodTypeAny, {
1254
1295
  type: "anyOf";
1255
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1296
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1256
1297
  }, {
1257
1298
  type: "anyOf";
1258
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1299
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1259
1300
  }>, z.ZodObject<{
1260
1301
  type: z.ZodLiteral<"exact">;
1261
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
1302
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
1262
1303
  }, "strip", z.ZodTypeAny, {
1263
1304
  type: "exact";
1264
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1305
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1265
1306
  }, {
1266
1307
  type: "exact";
1267
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1308
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1268
1309
  }>]>>>;
1269
1310
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1270
1311
  type: z.ZodLiteral<"exact">;
@@ -1365,6 +1406,25 @@ export declare const QueryType: z.ZodObject<{
1365
1406
  type: "timePeriod";
1366
1407
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1367
1408
  }>]>>>;
1409
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1410
+ type: z.ZodLiteral<"within">;
1411
+ location: z.ZodString;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ type: "within";
1414
+ location: string;
1415
+ }, {
1416
+ type: "within";
1417
+ location: string;
1418
+ }>, z.ZodObject<{
1419
+ type: z.ZodLiteral<"exact">;
1420
+ term: z.ZodString;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ type: "exact";
1423
+ term: string;
1424
+ }, {
1425
+ type: "exact";
1426
+ term: string;
1427
+ }>]>>>;
1368
1428
  'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1369
1429
  type: z.ZodLiteral<"within">;
1370
1430
  location: z.ZodString;
@@ -1484,13 +1544,13 @@ export declare const QueryType: z.ZodObject<{
1484
1544
  }>>>;
1485
1545
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1486
1546
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1487
- readonly PRINTED: "printed";
1547
+ readonly PENDING_CERTIFICATION: "pending-certification";
1488
1548
  readonly INCOMPLETE: "incomplete";
1489
1549
  readonly REJECTED: "rejected";
1490
1550
  readonly CORRECTION_REQUESTED: "correction-requested";
1491
1551
  }>]>, "many">>;
1492
1552
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1493
- readonly PRINTED: "printed";
1553
+ readonly PENDING_CERTIFICATION: "pending-certification";
1494
1554
  readonly INCOMPLETE: "incomplete";
1495
1555
  readonly REJECTED: "rejected";
1496
1556
  readonly CORRECTION_REQUESTED: "correction-requested";
@@ -1507,10 +1567,10 @@ export declare const QueryType: z.ZodObject<{
1507
1567
  id?: string | undefined;
1508
1568
  status?: {
1509
1569
  type: "exact";
1510
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1570
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1511
1571
  } | {
1512
1572
  type: "anyOf";
1513
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1573
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1514
1574
  } | undefined;
1515
1575
  data?: any;
1516
1576
  createdByUserType?: {
@@ -1585,6 +1645,13 @@ export declare const QueryType: z.ZodObject<{
1585
1645
  type: "timePeriod";
1586
1646
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1587
1647
  } | undefined;
1648
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1649
+ type: "exact";
1650
+ term: string;
1651
+ } | {
1652
+ type: "within";
1653
+ location: string;
1654
+ } | undefined;
1588
1655
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1589
1656
  type: "exact";
1590
1657
  term: string;
@@ -1600,10 +1667,10 @@ export declare const QueryType: z.ZodObject<{
1600
1667
  id?: string | undefined;
1601
1668
  status?: {
1602
1669
  type: "exact";
1603
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1670
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1604
1671
  } | {
1605
1672
  type: "anyOf";
1606
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1673
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1607
1674
  } | undefined;
1608
1675
  data?: any;
1609
1676
  createdByUserType?: {
@@ -1678,6 +1745,13 @@ export declare const QueryType: z.ZodObject<{
1678
1745
  type: "timePeriod";
1679
1746
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1680
1747
  } | undefined;
1748
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1749
+ type: "exact";
1750
+ term: string;
1751
+ } | {
1752
+ type: "within";
1753
+ location: string;
1754
+ } | undefined;
1681
1755
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1682
1756
  type: "exact";
1683
1757
  term: string;
@@ -1693,10 +1767,10 @@ export declare const QueryType: z.ZodObject<{
1693
1767
  id?: string | undefined;
1694
1768
  status?: {
1695
1769
  type: "exact";
1696
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1770
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1697
1771
  } | {
1698
1772
  type: "anyOf";
1699
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1773
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1700
1774
  } | undefined;
1701
1775
  data?: any;
1702
1776
  createdByUserType?: {
@@ -1771,6 +1845,13 @@ export declare const QueryType: z.ZodObject<{
1771
1845
  type: "timePeriod";
1772
1846
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1773
1847
  } | undefined;
1848
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1849
+ type: "exact";
1850
+ term: string;
1851
+ } | {
1852
+ type: "within";
1853
+ location: string;
1854
+ } | undefined;
1774
1855
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1775
1856
  type: "exact";
1776
1857
  term: string;
@@ -1786,10 +1867,10 @@ export declare const QueryType: z.ZodObject<{
1786
1867
  id?: string | undefined;
1787
1868
  status?: {
1788
1869
  type: "exact";
1789
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1870
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1790
1871
  } | {
1791
1872
  type: "anyOf";
1792
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1873
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1793
1874
  } | undefined;
1794
1875
  data?: any;
1795
1876
  createdByUserType?: {
@@ -1864,6 +1945,13 @@ export declare const QueryType: z.ZodObject<{
1864
1945
  type: "timePeriod";
1865
1946
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1866
1947
  } | undefined;
1948
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1949
+ type: "exact";
1950
+ term: string;
1951
+ } | {
1952
+ type: "within";
1953
+ location: string;
1954
+ } | undefined;
1867
1955
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1868
1956
  type: "exact";
1869
1957
  term: string;
@@ -1879,10 +1967,10 @@ export declare const QueryType: z.ZodObject<{
1879
1967
  id?: string | undefined;
1880
1968
  status?: {
1881
1969
  type: "exact";
1882
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1970
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1883
1971
  } | {
1884
1972
  type: "anyOf";
1885
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1973
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1886
1974
  } | undefined;
1887
1975
  data?: any;
1888
1976
  createdByUserType?: {
@@ -1957,6 +2045,13 @@ export declare const QueryType: z.ZodObject<{
1957
2045
  type: "timePeriod";
1958
2046
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1959
2047
  } | undefined;
2048
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2049
+ type: "exact";
2050
+ term: string;
2051
+ } | {
2052
+ type: "within";
2053
+ location: string;
2054
+ } | undefined;
1960
2055
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1961
2056
  type: "exact";
1962
2057
  term: string;
@@ -1972,10 +2067,10 @@ export declare const QueryType: z.ZodObject<{
1972
2067
  id?: string | undefined;
1973
2068
  status?: {
1974
2069
  type: "exact";
1975
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2070
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1976
2071
  } | {
1977
2072
  type: "anyOf";
1978
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2073
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1979
2074
  } | undefined;
1980
2075
  data?: any;
1981
2076
  createdByUserType?: {
@@ -2050,6 +2145,13 @@ export declare const QueryType: z.ZodObject<{
2050
2145
  type: "timePeriod";
2051
2146
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2052
2147
  } | undefined;
2148
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2149
+ type: "exact";
2150
+ term: string;
2151
+ } | {
2152
+ type: "within";
2153
+ location: string;
2154
+ } | undefined;
2053
2155
  'legalStatuses.REGISTERED.createdAtLocation'?: {
2054
2156
  type: "exact";
2055
2157
  term: string;
@@ -2068,10 +2170,10 @@ export declare const QueryType: z.ZodObject<{
2068
2170
  id?: string | undefined;
2069
2171
  status?: {
2070
2172
  type: "exact";
2071
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2173
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2072
2174
  } | {
2073
2175
  type: "anyOf";
2074
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2176
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2075
2177
  } | undefined;
2076
2178
  data?: any;
2077
2179
  createdByUserType?: {
@@ -2146,6 +2248,13 @@ export declare const QueryType: z.ZodObject<{
2146
2248
  type: "timePeriod";
2147
2249
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2148
2250
  } | undefined;
2251
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2252
+ type: "exact";
2253
+ term: string;
2254
+ } | {
2255
+ type: "within";
2256
+ location: string;
2257
+ } | undefined;
2149
2258
  'legalStatuses.REGISTERED.createdAtLocation'?: {
2150
2259
  type: "exact";
2151
2260
  term: string;
@@ -2161,10 +2270,10 @@ export declare const QueryType: z.ZodObject<{
2161
2270
  id?: string | undefined;
2162
2271
  status?: {
2163
2272
  type: "exact";
2164
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2273
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2165
2274
  } | {
2166
2275
  type: "anyOf";
2167
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2276
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2168
2277
  } | undefined;
2169
2278
  data?: any;
2170
2279
  createdByUserType?: {
@@ -2239,6 +2348,13 @@ export declare const QueryType: z.ZodObject<{
2239
2348
  type: "timePeriod";
2240
2349
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2241
2350
  } | undefined;
2351
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2352
+ type: "exact";
2353
+ term: string;
2354
+ } | {
2355
+ type: "within";
2356
+ location: string;
2357
+ } | undefined;
2242
2358
  'legalStatuses.REGISTERED.createdAtLocation'?: {
2243
2359
  type: "exact";
2244
2360
  term: string;