@opencrvs/toolkit 1.8.1-rc.e23b224 → 1.8.1-rc.e59d03c

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 (32) hide show
  1. package/dist/commons/api/router.d.ts +433 -410
  2. package/dist/commons/conditionals/validate.d.ts +11 -2
  3. package/dist/commons/events/ActionConfig.d.ts +2004 -366
  4. package/dist/commons/events/ActionDocument.d.ts +795 -759
  5. package/dist/commons/events/ActionInput.d.ts +650 -614
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +83 -65
  7. package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
  9. package/dist/commons/events/Draft.d.ts +48 -48
  10. package/dist/commons/events/EventConfig.d.ts +695 -168
  11. package/dist/commons/events/EventDocument.d.ts +471 -445
  12. package/dist/commons/events/EventIndex.d.ts +184 -62
  13. package/dist/commons/events/EventMetadata.d.ts +9 -9
  14. package/dist/commons/events/FieldConfig.d.ts +254 -43
  15. package/dist/commons/events/FieldTypeMapping.d.ts +16 -16
  16. package/dist/commons/events/FieldValue.d.ts +12 -12
  17. package/dist/commons/events/FormConfig.d.ts +1032 -246
  18. package/dist/commons/events/PageConfig.d.ts +264 -46
  19. package/dist/commons/events/WorkqueueConfig.d.ts +288 -164
  20. package/dist/commons/events/defineConfig.d.ts +129 -30
  21. package/dist/commons/events/event.d.ts +68 -6
  22. package/dist/commons/events/field.d.ts +14 -0
  23. package/dist/commons/events/test.utils.d.ts +17 -13
  24. package/dist/commons/events/utils.d.ts +236 -60
  25. package/dist/conditionals/index.js +3 -2
  26. package/dist/events/index.js +260 -99
  27. package/package.json +1 -1
  28. package/tsconfig.json +1 -1
  29. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  30. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  31. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  32. 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,7 +112,7 @@ 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";
@@ -253,22 +253,22 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
253
253
  surname: string;
254
254
  middlename?: string | undefined;
255
255
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
256
- firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
+ firstname: z.ZodString;
257
+ surname: z.ZodString;
258
258
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
259
  }, "strip", z.ZodTypeAny, {
260
- firstname?: string | null | undefined;
261
- surname?: string | null | undefined;
260
+ firstname: string;
261
+ surname: string;
262
262
  middlename?: string | null | undefined;
263
263
  }, {
264
- firstname?: string | null | undefined;
265
- surname?: string | null | undefined;
264
+ firstname: string;
265
+ surname: string;
266
266
  middlename?: string | null | undefined;
267
267
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
268
268
  }>, "strip", z.ZodTypeAny, {
269
269
  type: string;
270
270
  id: string & z.BRAND<"UUID">;
271
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
271
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
272
272
  createdAt: string;
273
273
  createdBy: string;
274
274
  declaration: Record<string, string | number | boolean | {
@@ -298,8 +298,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
298
298
  surname: string;
299
299
  middlename?: string | undefined;
300
300
  } | {
301
- firstname?: string | null | undefined;
302
- surname?: string | null | undefined;
301
+ firstname: string;
302
+ surname: string;
303
303
  middlename?: string | null | undefined;
304
304
  } | {
305
305
  country: string;
@@ -355,7 +355,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
355
355
  }, {
356
356
  type: string;
357
357
  id: string;
358
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
358
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
359
359
  createdAt: string;
360
360
  createdBy: string;
361
361
  declaration: Record<string, string | number | boolean | {
@@ -385,8 +385,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
385
385
  surname: string;
386
386
  middlename?: string | undefined;
387
387
  } | {
388
- firstname?: string | null | undefined;
389
- surname?: string | null | undefined;
388
+ firstname: string;
389
+ surname: string;
390
390
  middlename?: string | null | undefined;
391
391
  } | {
392
392
  country: string;
@@ -471,13 +471,13 @@ export declare const Exact: z.ZodObject<{
471
471
  }>;
472
472
  export declare const ExactStatus: z.ZodObject<{
473
473
  type: z.ZodLiteral<"exact">;
474
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
474
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
475
475
  }, "strip", z.ZodTypeAny, {
476
476
  type: "exact";
477
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
477
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
478
478
  }, {
479
479
  type: "exact";
480
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
480
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
481
481
  }>;
482
482
  export declare const ExactUserType: z.ZodObject<{
483
483
  type: z.ZodLiteral<"exact">;
@@ -501,13 +501,13 @@ export declare const AnyOf: z.ZodObject<{
501
501
  }>;
502
502
  export declare const AnyOfStatus: z.ZodObject<{
503
503
  type: z.ZodLiteral<"anyOf">;
504
- 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">;
505
505
  }, "strip", z.ZodTypeAny, {
506
506
  type: "anyOf";
507
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
507
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
508
508
  }, {
509
509
  type: "anyOf";
510
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
510
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
511
511
  }>;
512
512
  export declare const Range: z.ZodObject<{
513
513
  type: z.ZodLiteral<"range">;
@@ -524,13 +524,13 @@ export declare const Range: z.ZodObject<{
524
524
  }>;
525
525
  export declare const ContainsFlags: z.ZodObject<{
526
526
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
527
- readonly PRINTED: "printed";
527
+ readonly PENDING_CERTIFICATION: "pending-certification";
528
528
  readonly INCOMPLETE: "incomplete";
529
529
  readonly REJECTED: "rejected";
530
530
  readonly CORRECTION_REQUESTED: "correction-requested";
531
531
  }>]>, "many">>;
532
532
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
533
- readonly PRINTED: "printed";
533
+ readonly PENDING_CERTIFICATION: "pending-certification";
534
534
  readonly INCOMPLETE: "incomplete";
535
535
  readonly REJECTED: "rejected";
536
536
  readonly CORRECTION_REQUESTED: "correction-requested";
@@ -609,22 +609,22 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
609
609
  eventType: z.ZodOptional<z.ZodString>;
610
610
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
611
611
  type: z.ZodLiteral<"anyOf">;
612
- 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">;
613
613
  }, "strip", z.ZodTypeAny, {
614
614
  type: "anyOf";
615
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
615
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
616
616
  }, {
617
617
  type: "anyOf";
618
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
618
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
619
619
  }>, z.ZodObject<{
620
620
  type: z.ZodLiteral<"exact">;
621
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
621
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
622
622
  }, "strip", z.ZodTypeAny, {
623
623
  type: "exact";
624
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
624
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
625
625
  }, {
626
626
  type: "exact";
627
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
627
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
628
628
  }>]>>>;
629
629
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
630
630
  type: z.ZodLiteral<"exact">;
@@ -725,6 +725,25 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
725
725
  type: "timePeriod";
726
726
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
727
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
+ }>]>>>;
728
747
  'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
729
748
  type: z.ZodLiteral<"within">;
730
749
  location: z.ZodString;
@@ -844,13 +863,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
844
863
  }>>>;
845
864
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
846
865
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
847
- readonly PRINTED: "printed";
866
+ readonly PENDING_CERTIFICATION: "pending-certification";
848
867
  readonly INCOMPLETE: "incomplete";
849
868
  readonly REJECTED: "rejected";
850
869
  readonly CORRECTION_REQUESTED: "correction-requested";
851
870
  }>]>, "many">>;
852
871
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
853
- readonly PRINTED: "printed";
872
+ readonly PENDING_CERTIFICATION: "pending-certification";
854
873
  readonly INCOMPLETE: "incomplete";
855
874
  readonly REJECTED: "rejected";
856
875
  readonly CORRECTION_REQUESTED: "correction-requested";
@@ -867,10 +886,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
867
886
  id?: string | undefined;
868
887
  status?: {
869
888
  type: "exact";
870
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
889
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
871
890
  } | {
872
891
  type: "anyOf";
873
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
892
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
874
893
  } | undefined;
875
894
  data?: any;
876
895
  createdByUserType?: {
@@ -945,6 +964,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
945
964
  type: "timePeriod";
946
965
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
947
966
  } | undefined;
967
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
968
+ type: "exact";
969
+ term: string;
970
+ } | {
971
+ type: "within";
972
+ location: string;
973
+ } | undefined;
948
974
  'legalStatuses.REGISTERED.createdAtLocation'?: {
949
975
  type: "exact";
950
976
  term: string;
@@ -960,10 +986,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
960
986
  id?: string | undefined;
961
987
  status?: {
962
988
  type: "exact";
963
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
989
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
964
990
  } | {
965
991
  type: "anyOf";
966
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
992
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
967
993
  } | undefined;
968
994
  data?: any;
969
995
  createdByUserType?: {
@@ -1038,6 +1064,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1038
1064
  type: "timePeriod";
1039
1065
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1040
1066
  } | undefined;
1067
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1068
+ type: "exact";
1069
+ term: string;
1070
+ } | {
1071
+ type: "within";
1072
+ location: string;
1073
+ } | undefined;
1041
1074
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1042
1075
  type: "exact";
1043
1076
  term: string;
@@ -1053,10 +1086,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1053
1086
  id?: string | undefined;
1054
1087
  status?: {
1055
1088
  type: "exact";
1056
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1089
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1057
1090
  } | {
1058
1091
  type: "anyOf";
1059
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1092
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1060
1093
  } | undefined;
1061
1094
  data?: any;
1062
1095
  createdByUserType?: {
@@ -1131,6 +1164,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1131
1164
  type: "timePeriod";
1132
1165
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1133
1166
  } | undefined;
1167
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1168
+ type: "exact";
1169
+ term: string;
1170
+ } | {
1171
+ type: "within";
1172
+ location: string;
1173
+ } | undefined;
1134
1174
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1135
1175
  type: "exact";
1136
1176
  term: string;
@@ -1146,10 +1186,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1146
1186
  id?: string | undefined;
1147
1187
  status?: {
1148
1188
  type: "exact";
1149
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1189
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1150
1190
  } | {
1151
1191
  type: "anyOf";
1152
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1192
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1153
1193
  } | undefined;
1154
1194
  data?: any;
1155
1195
  createdByUserType?: {
@@ -1224,6 +1264,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1224
1264
  type: "timePeriod";
1225
1265
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1226
1266
  } | undefined;
1267
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1268
+ type: "exact";
1269
+ term: string;
1270
+ } | {
1271
+ type: "within";
1272
+ location: string;
1273
+ } | undefined;
1227
1274
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1228
1275
  type: "exact";
1229
1276
  term: string;
@@ -1243,22 +1290,22 @@ export declare const QueryType: z.ZodObject<{
1243
1290
  eventType: z.ZodOptional<z.ZodString>;
1244
1291
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1245
1292
  type: z.ZodLiteral<"anyOf">;
1246
- 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">;
1247
1294
  }, "strip", z.ZodTypeAny, {
1248
1295
  type: "anyOf";
1249
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1296
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1250
1297
  }, {
1251
1298
  type: "anyOf";
1252
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1299
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1253
1300
  }>, z.ZodObject<{
1254
1301
  type: z.ZodLiteral<"exact">;
1255
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
1302
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
1256
1303
  }, "strip", z.ZodTypeAny, {
1257
1304
  type: "exact";
1258
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1305
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1259
1306
  }, {
1260
1307
  type: "exact";
1261
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1308
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1262
1309
  }>]>>>;
1263
1310
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1264
1311
  type: z.ZodLiteral<"exact">;
@@ -1359,6 +1406,25 @@ export declare const QueryType: z.ZodObject<{
1359
1406
  type: "timePeriod";
1360
1407
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1361
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
+ }>]>>>;
1362
1428
  'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1363
1429
  type: z.ZodLiteral<"within">;
1364
1430
  location: z.ZodString;
@@ -1478,13 +1544,13 @@ export declare const QueryType: z.ZodObject<{
1478
1544
  }>>>;
1479
1545
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1480
1546
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1481
- readonly PRINTED: "printed";
1547
+ readonly PENDING_CERTIFICATION: "pending-certification";
1482
1548
  readonly INCOMPLETE: "incomplete";
1483
1549
  readonly REJECTED: "rejected";
1484
1550
  readonly CORRECTION_REQUESTED: "correction-requested";
1485
1551
  }>]>, "many">>;
1486
1552
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1487
- readonly PRINTED: "printed";
1553
+ readonly PENDING_CERTIFICATION: "pending-certification";
1488
1554
  readonly INCOMPLETE: "incomplete";
1489
1555
  readonly REJECTED: "rejected";
1490
1556
  readonly CORRECTION_REQUESTED: "correction-requested";
@@ -1501,10 +1567,10 @@ export declare const QueryType: z.ZodObject<{
1501
1567
  id?: string | undefined;
1502
1568
  status?: {
1503
1569
  type: "exact";
1504
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1570
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1505
1571
  } | {
1506
1572
  type: "anyOf";
1507
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1573
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1508
1574
  } | undefined;
1509
1575
  data?: any;
1510
1576
  createdByUserType?: {
@@ -1579,6 +1645,13 @@ export declare const QueryType: z.ZodObject<{
1579
1645
  type: "timePeriod";
1580
1646
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1581
1647
  } | undefined;
1648
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1649
+ type: "exact";
1650
+ term: string;
1651
+ } | {
1652
+ type: "within";
1653
+ location: string;
1654
+ } | undefined;
1582
1655
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1583
1656
  type: "exact";
1584
1657
  term: string;
@@ -1594,10 +1667,10 @@ export declare const QueryType: z.ZodObject<{
1594
1667
  id?: string | undefined;
1595
1668
  status?: {
1596
1669
  type: "exact";
1597
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1670
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1598
1671
  } | {
1599
1672
  type: "anyOf";
1600
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1673
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1601
1674
  } | undefined;
1602
1675
  data?: any;
1603
1676
  createdByUserType?: {
@@ -1672,6 +1745,13 @@ export declare const QueryType: z.ZodObject<{
1672
1745
  type: "timePeriod";
1673
1746
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1674
1747
  } | undefined;
1748
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1749
+ type: "exact";
1750
+ term: string;
1751
+ } | {
1752
+ type: "within";
1753
+ location: string;
1754
+ } | undefined;
1675
1755
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1676
1756
  type: "exact";
1677
1757
  term: string;
@@ -1687,10 +1767,10 @@ export declare const QueryType: z.ZodObject<{
1687
1767
  id?: string | undefined;
1688
1768
  status?: {
1689
1769
  type: "exact";
1690
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1770
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1691
1771
  } | {
1692
1772
  type: "anyOf";
1693
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1773
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1694
1774
  } | undefined;
1695
1775
  data?: any;
1696
1776
  createdByUserType?: {
@@ -1765,6 +1845,13 @@ export declare const QueryType: z.ZodObject<{
1765
1845
  type: "timePeriod";
1766
1846
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1767
1847
  } | undefined;
1848
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1849
+ type: "exact";
1850
+ term: string;
1851
+ } | {
1852
+ type: "within";
1853
+ location: string;
1854
+ } | undefined;
1768
1855
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1769
1856
  type: "exact";
1770
1857
  term: string;
@@ -1780,10 +1867,10 @@ export declare const QueryType: z.ZodObject<{
1780
1867
  id?: string | undefined;
1781
1868
  status?: {
1782
1869
  type: "exact";
1783
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1870
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1784
1871
  } | {
1785
1872
  type: "anyOf";
1786
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1873
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1787
1874
  } | undefined;
1788
1875
  data?: any;
1789
1876
  createdByUserType?: {
@@ -1858,6 +1945,13 @@ export declare const QueryType: z.ZodObject<{
1858
1945
  type: "timePeriod";
1859
1946
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1860
1947
  } | undefined;
1948
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1949
+ type: "exact";
1950
+ term: string;
1951
+ } | {
1952
+ type: "within";
1953
+ location: string;
1954
+ } | undefined;
1861
1955
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1862
1956
  type: "exact";
1863
1957
  term: string;
@@ -1873,10 +1967,10 @@ export declare const QueryType: z.ZodObject<{
1873
1967
  id?: string | undefined;
1874
1968
  status?: {
1875
1969
  type: "exact";
1876
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1970
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1877
1971
  } | {
1878
1972
  type: "anyOf";
1879
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1973
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1880
1974
  } | undefined;
1881
1975
  data?: any;
1882
1976
  createdByUserType?: {
@@ -1951,6 +2045,13 @@ export declare const QueryType: z.ZodObject<{
1951
2045
  type: "timePeriod";
1952
2046
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1953
2047
  } | undefined;
2048
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2049
+ type: "exact";
2050
+ term: string;
2051
+ } | {
2052
+ type: "within";
2053
+ location: string;
2054
+ } | undefined;
1954
2055
  'legalStatuses.REGISTERED.createdAtLocation'?: {
1955
2056
  type: "exact";
1956
2057
  term: string;
@@ -1966,10 +2067,10 @@ export declare const QueryType: z.ZodObject<{
1966
2067
  id?: string | undefined;
1967
2068
  status?: {
1968
2069
  type: "exact";
1969
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2070
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1970
2071
  } | {
1971
2072
  type: "anyOf";
1972
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2073
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1973
2074
  } | undefined;
1974
2075
  data?: any;
1975
2076
  createdByUserType?: {
@@ -2044,6 +2145,13 @@ export declare const QueryType: z.ZodObject<{
2044
2145
  type: "timePeriod";
2045
2146
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2046
2147
  } | undefined;
2148
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2149
+ type: "exact";
2150
+ term: string;
2151
+ } | {
2152
+ type: "within";
2153
+ location: string;
2154
+ } | undefined;
2047
2155
  'legalStatuses.REGISTERED.createdAtLocation'?: {
2048
2156
  type: "exact";
2049
2157
  term: string;
@@ -2062,10 +2170,10 @@ export declare const QueryType: z.ZodObject<{
2062
2170
  id?: string | undefined;
2063
2171
  status?: {
2064
2172
  type: "exact";
2065
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2173
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2066
2174
  } | {
2067
2175
  type: "anyOf";
2068
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2176
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2069
2177
  } | undefined;
2070
2178
  data?: any;
2071
2179
  createdByUserType?: {
@@ -2140,6 +2248,13 @@ export declare const QueryType: z.ZodObject<{
2140
2248
  type: "timePeriod";
2141
2249
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2142
2250
  } | undefined;
2251
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2252
+ type: "exact";
2253
+ term: string;
2254
+ } | {
2255
+ type: "within";
2256
+ location: string;
2257
+ } | undefined;
2143
2258
  'legalStatuses.REGISTERED.createdAtLocation'?: {
2144
2259
  type: "exact";
2145
2260
  term: string;
@@ -2155,10 +2270,10 @@ export declare const QueryType: z.ZodObject<{
2155
2270
  id?: string | undefined;
2156
2271
  status?: {
2157
2272
  type: "exact";
2158
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2273
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2159
2274
  } | {
2160
2275
  type: "anyOf";
2161
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2276
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2162
2277
  } | undefined;
2163
2278
  data?: any;
2164
2279
  createdByUserType?: {
@@ -2233,6 +2348,13 @@ export declare const QueryType: z.ZodObject<{
2233
2348
  type: "timePeriod";
2234
2349
  term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2235
2350
  } | undefined;
2351
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2352
+ type: "exact";
2353
+ term: string;
2354
+ } | {
2355
+ type: "within";
2356
+ location: string;
2357
+ } | undefined;
2236
2358
  'legalStatuses.REGISTERED.createdAtLocation'?: {
2237
2359
  type: "exact";
2238
2360
  term: string;
@@ -3,23 +3,23 @@ import { TranslationConfig } from './TranslationConfig';
3
3
  /**
4
4
  * Event statuses recognized by the system
5
5
  */
6
- export declare const EventStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
6
+ export declare const EventStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
7
7
  export type EventStatus = z.infer<typeof EventStatus>;
8
- export declare const VisibleStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED", "REJECTED"]>;
9
- export type VisibleStatus = z.infer<typeof VisibleStatus>;
10
8
  export declare const InherentFlags: {
11
- readonly PRINTED: "printed";
9
+ readonly PENDING_CERTIFICATION: "pending-certification";
12
10
  readonly INCOMPLETE: "incomplete";
13
11
  readonly REJECTED: "rejected";
14
12
  readonly CORRECTION_REQUESTED: "correction-requested";
15
13
  };
16
14
  export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
15
+ export declare const ActionFlag: z.ZodString;
17
16
  export declare const Flag: z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
18
- readonly PRINTED: "printed";
17
+ readonly PENDING_CERTIFICATION: "pending-certification";
19
18
  readonly INCOMPLETE: "incomplete";
20
19
  readonly REJECTED: "rejected";
21
20
  readonly CORRECTION_REQUESTED: "correction-requested";
22
21
  }>]>;
22
+ export type ActionFlag = z.infer<typeof ActionFlag>;
23
23
  export type Flag = z.infer<typeof Flag>;
24
24
  export declare const ZodDate: z.ZodString;
25
25
  export declare const ActionCreationMetadata: z.ZodObject<{
@@ -182,7 +182,7 @@ export declare const LegalStatuses: z.ZodObject<{
182
182
  export declare const EventMetadata: z.ZodObject<{
183
183
  id: z.ZodBranded<z.ZodString, "UUID">;
184
184
  type: z.ZodString;
185
- status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
185
+ status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
186
186
  legalStatuses: z.ZodObject<{
187
187
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
188
188
  createdAt: z.ZodString;
@@ -292,7 +292,7 @@ export declare const EventMetadata: z.ZodObject<{
292
292
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
293
  trackingId: z.ZodString;
294
294
  flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
295
- readonly PRINTED: "printed";
295
+ readonly PENDING_CERTIFICATION: "pending-certification";
296
296
  readonly INCOMPLETE: "incomplete";
297
297
  readonly REJECTED: "rejected";
298
298
  readonly CORRECTION_REQUESTED: "correction-requested";
@@ -300,7 +300,7 @@ export declare const EventMetadata: z.ZodObject<{
300
300
  }, "strip", z.ZodTypeAny, {
301
301
  type: string;
302
302
  id: string & z.BRAND<"UUID">;
303
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
303
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
304
304
  createdAt: string;
305
305
  createdBy: string;
306
306
  updatedAt: string;
@@ -338,7 +338,7 @@ export declare const EventMetadata: z.ZodObject<{
338
338
  }, {
339
339
  type: string;
340
340
  id: string;
341
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
341
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
342
342
  createdAt: string;
343
343
  createdBy: string;
344
344
  updatedAt: string;