@opencrvs/toolkit 1.8.1-rc.4f4b65a → 1.8.1-rc.5130256

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