@opencrvs/toolkit 2.2.0-rc.ab91cce → 2.2.0-rc.ac299dc

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/application-config/index.js +36 -3
  2. package/dist/authentication/index.js +14 -1
  3. package/dist/commons/api/router.d.ts +1374 -71
  4. package/dist/commons/conditionals/conditionals.d.ts +3 -3
  5. package/dist/commons/events/ActionConfig.d.ts +54 -0
  6. package/dist/commons/events/ActionDocument.d.ts +88 -0
  7. package/dist/commons/events/ActionInput.d.ts +52 -0
  8. package/dist/commons/events/ActionType.d.ts +11 -1
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +18 -0
  10. package/dist/commons/events/AuditLog.d.ts +4 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +192 -0
  12. package/dist/commons/events/Draft.d.ts +2 -0
  13. package/dist/commons/events/EventDocument.d.ts +88 -0
  14. package/dist/commons/events/EventIndex.d.ts +41 -0
  15. package/dist/commons/events/EventMetadata.d.ts +23 -0
  16. package/dist/commons/events/EventStatus.d.ts +1 -0
  17. package/dist/commons/events/FieldConfig.d.ts +10 -0
  18. package/dist/commons/events/WorkqueueConfig.d.ts +216 -10
  19. package/dist/commons/events/field.d.ts +5 -0
  20. package/dist/commons/events/scopes.d.ts +2 -0
  21. package/dist/commons/events/state/index.d.ts +10 -2
  22. package/dist/commons/events/state/utils.d.ts +11 -1
  23. package/dist/commons/events/test.utils.d.ts +23 -1
  24. package/dist/commons/events/utils.d.ts +29 -1
  25. package/dist/conditionals/index.js +14 -1
  26. package/dist/events/index.js +134 -8
  27. package/dist/notification/index.js +91 -5
  28. package/dist/scopes/index.d.ts +29 -6
  29. package/dist/scopes/index.js +14 -1
  30. package/opencrvs-toolkit-2.2.0-rc.ac299dc.tgz +0 -0
  31. package/package.json +1 -1
  32. package/opencrvs-toolkit-2.2.0-rc.ab91cce.tgz +0 -0
@@ -51,6 +51,17 @@ export declare const SerializedQueryExpression: z.ZodObject<{
51
51
  DECLARED: "DECLARED";
52
52
  NOTIFIED: "NOTIFIED";
53
53
  REGISTERED: "REGISTERED";
54
+ REVOKED: "REVOKED";
55
+ }>>;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ type: z.ZodLiteral<"noneOf">;
58
+ terms: z.ZodArray<z.ZodEnum<{
59
+ ARCHIVED: "ARCHIVED";
60
+ CREATED: "CREATED";
61
+ DECLARED: "DECLARED";
62
+ NOTIFIED: "NOTIFIED";
63
+ REGISTERED: "REGISTERED";
64
+ REVOKED: "REVOKED";
54
65
  }>>;
55
66
  }, z.core.$strip>, z.ZodObject<{
56
67
  type: z.ZodLiteral<"exact">;
@@ -60,6 +71,7 @@ export declare const SerializedQueryExpression: z.ZodObject<{
60
71
  DECLARED: "DECLARED";
61
72
  NOTIFIED: "NOTIFIED";
62
73
  REGISTERED: "REGISTERED";
74
+ REVOKED: "REVOKED";
63
75
  }>;
64
76
  }, z.core.$strip>]>>>;
65
77
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -162,6 +174,26 @@ export declare const SerializedQueryExpression: z.ZodObject<{
162
174
  type: z.ZodLiteral<"exact">;
163
175
  term: z.ZodString;
164
176
  }, z.core.$strip>>>;
177
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
178
+ type: z.ZodLiteral<"within">;
179
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
180
+ $userField: z.ZodEnum<{
181
+ administrativeAreaId: "administrativeAreaId";
182
+ avatar: "avatar";
183
+ device: "device";
184
+ firstname: "firstname";
185
+ fullHonorificName: "fullHonorificName";
186
+ id: "id";
187
+ middlename: "middlename";
188
+ name: "name";
189
+ primaryOfficeId: "primaryOfficeId";
190
+ role: "role";
191
+ signature: "signature";
192
+ surname: "surname";
193
+ }>;
194
+ $location: z.ZodOptional<z.ZodString>;
195
+ }, z.core.$strip>]>;
196
+ }, z.core.$strip>>>;
165
197
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
166
198
  type: z.ZodLiteral<"within">;
167
199
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -369,6 +401,17 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
369
401
  DECLARED: "DECLARED";
370
402
  NOTIFIED: "NOTIFIED";
371
403
  REGISTERED: "REGISTERED";
404
+ REVOKED: "REVOKED";
405
+ }>>;
406
+ }, z.core.$strip>, z.ZodObject<{
407
+ type: z.ZodLiteral<"noneOf">;
408
+ terms: z.ZodArray<z.ZodEnum<{
409
+ ARCHIVED: "ARCHIVED";
410
+ CREATED: "CREATED";
411
+ DECLARED: "DECLARED";
412
+ NOTIFIED: "NOTIFIED";
413
+ REGISTERED: "REGISTERED";
414
+ REVOKED: "REVOKED";
372
415
  }>>;
373
416
  }, z.core.$strip>, z.ZodObject<{
374
417
  type: z.ZodLiteral<"exact">;
@@ -378,6 +421,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
378
421
  DECLARED: "DECLARED";
379
422
  NOTIFIED: "NOTIFIED";
380
423
  REGISTERED: "REGISTERED";
424
+ REVOKED: "REVOKED";
381
425
  }>;
382
426
  }, z.core.$strip>]>>>;
383
427
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -480,6 +524,26 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
480
524
  type: z.ZodLiteral<"exact">;
481
525
  term: z.ZodString;
482
526
  }, z.core.$strip>>>;
527
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
528
+ type: z.ZodLiteral<"within">;
529
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
530
+ $userField: z.ZodEnum<{
531
+ administrativeAreaId: "administrativeAreaId";
532
+ avatar: "avatar";
533
+ device: "device";
534
+ firstname: "firstname";
535
+ fullHonorificName: "fullHonorificName";
536
+ id: "id";
537
+ middlename: "middlename";
538
+ name: "name";
539
+ primaryOfficeId: "primaryOfficeId";
540
+ role: "role";
541
+ signature: "signature";
542
+ surname: "surname";
543
+ }>;
544
+ $location: z.ZodOptional<z.ZodString>;
545
+ }, z.core.$strip>]>;
546
+ }, z.core.$strip>>>;
483
547
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
484
548
  type: z.ZodLiteral<"within">;
485
549
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -686,6 +750,17 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
686
750
  DECLARED: "DECLARED";
687
751
  NOTIFIED: "NOTIFIED";
688
752
  REGISTERED: "REGISTERED";
753
+ REVOKED: "REVOKED";
754
+ }>>;
755
+ }, z.core.$strip>, z.ZodObject<{
756
+ type: z.ZodLiteral<"noneOf">;
757
+ terms: z.ZodArray<z.ZodEnum<{
758
+ ARCHIVED: "ARCHIVED";
759
+ CREATED: "CREATED";
760
+ DECLARED: "DECLARED";
761
+ NOTIFIED: "NOTIFIED";
762
+ REGISTERED: "REGISTERED";
763
+ REVOKED: "REVOKED";
689
764
  }>>;
690
765
  }, z.core.$strip>, z.ZodObject<{
691
766
  type: z.ZodLiteral<"exact">;
@@ -695,6 +770,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
695
770
  DECLARED: "DECLARED";
696
771
  NOTIFIED: "NOTIFIED";
697
772
  REGISTERED: "REGISTERED";
773
+ REVOKED: "REVOKED";
698
774
  }>;
699
775
  }, z.core.$strip>]>>>;
700
776
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -797,6 +873,26 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
797
873
  type: z.ZodLiteral<"exact">;
798
874
  term: z.ZodString;
799
875
  }, z.core.$strip>>>;
876
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
877
+ type: z.ZodLiteral<"within">;
878
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
879
+ $userField: z.ZodEnum<{
880
+ administrativeAreaId: "administrativeAreaId";
881
+ avatar: "avatar";
882
+ device: "device";
883
+ firstname: "firstname";
884
+ fullHonorificName: "fullHonorificName";
885
+ id: "id";
886
+ middlename: "middlename";
887
+ name: "name";
888
+ primaryOfficeId: "primaryOfficeId";
889
+ role: "role";
890
+ signature: "signature";
891
+ surname: "surname";
892
+ }>;
893
+ $location: z.ZodOptional<z.ZodString>;
894
+ }, z.core.$strip>]>;
895
+ }, z.core.$strip>>>;
800
896
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
801
897
  type: z.ZodLiteral<"within">;
802
898
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -1003,6 +1099,17 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1003
1099
  DECLARED: "DECLARED";
1004
1100
  NOTIFIED: "NOTIFIED";
1005
1101
  REGISTERED: "REGISTERED";
1102
+ REVOKED: "REVOKED";
1103
+ }>>;
1104
+ }, z.core.$strip>, z.ZodObject<{
1105
+ type: z.ZodLiteral<"noneOf">;
1106
+ terms: z.ZodArray<z.ZodEnum<{
1107
+ ARCHIVED: "ARCHIVED";
1108
+ CREATED: "CREATED";
1109
+ DECLARED: "DECLARED";
1110
+ NOTIFIED: "NOTIFIED";
1111
+ REGISTERED: "REGISTERED";
1112
+ REVOKED: "REVOKED";
1006
1113
  }>>;
1007
1114
  }, z.core.$strip>, z.ZodObject<{
1008
1115
  type: z.ZodLiteral<"exact">;
@@ -1012,6 +1119,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1012
1119
  DECLARED: "DECLARED";
1013
1120
  NOTIFIED: "NOTIFIED";
1014
1121
  REGISTERED: "REGISTERED";
1122
+ REVOKED: "REVOKED";
1015
1123
  }>;
1016
1124
  }, z.core.$strip>]>>>;
1017
1125
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -1114,6 +1222,26 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1114
1222
  type: z.ZodLiteral<"exact">;
1115
1223
  term: z.ZodString;
1116
1224
  }, z.core.$strip>>>;
1225
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1226
+ type: z.ZodLiteral<"within">;
1227
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1228
+ $userField: z.ZodEnum<{
1229
+ administrativeAreaId: "administrativeAreaId";
1230
+ avatar: "avatar";
1231
+ device: "device";
1232
+ firstname: "firstname";
1233
+ fullHonorificName: "fullHonorificName";
1234
+ id: "id";
1235
+ middlename: "middlename";
1236
+ name: "name";
1237
+ primaryOfficeId: "primaryOfficeId";
1238
+ role: "role";
1239
+ signature: "signature";
1240
+ surname: "surname";
1241
+ }>;
1242
+ $location: z.ZodOptional<z.ZodString>;
1243
+ }, z.core.$strip>]>;
1244
+ }, z.core.$strip>>>;
1117
1245
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1118
1246
  type: z.ZodLiteral<"within">;
1119
1247
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -1319,6 +1447,17 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1319
1447
  DECLARED: "DECLARED";
1320
1448
  NOTIFIED: "NOTIFIED";
1321
1449
  REGISTERED: "REGISTERED";
1450
+ REVOKED: "REVOKED";
1451
+ }>>;
1452
+ }, z.core.$strip>, z.ZodObject<{
1453
+ type: z.ZodLiteral<"noneOf">;
1454
+ terms: z.ZodArray<z.ZodEnum<{
1455
+ ARCHIVED: "ARCHIVED";
1456
+ CREATED: "CREATED";
1457
+ DECLARED: "DECLARED";
1458
+ NOTIFIED: "NOTIFIED";
1459
+ REGISTERED: "REGISTERED";
1460
+ REVOKED: "REVOKED";
1322
1461
  }>>;
1323
1462
  }, z.core.$strip>, z.ZodObject<{
1324
1463
  type: z.ZodLiteral<"exact">;
@@ -1328,6 +1467,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1328
1467
  DECLARED: "DECLARED";
1329
1468
  NOTIFIED: "NOTIFIED";
1330
1469
  REGISTERED: "REGISTERED";
1470
+ REVOKED: "REVOKED";
1331
1471
  }>;
1332
1472
  }, z.core.$strip>]>>>;
1333
1473
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -1430,6 +1570,26 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1430
1570
  type: z.ZodLiteral<"exact">;
1431
1571
  term: z.ZodString;
1432
1572
  }, z.core.$strip>>>;
1573
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1574
+ type: z.ZodLiteral<"within">;
1575
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1576
+ $userField: z.ZodEnum<{
1577
+ administrativeAreaId: "administrativeAreaId";
1578
+ avatar: "avatar";
1579
+ device: "device";
1580
+ firstname: "firstname";
1581
+ fullHonorificName: "fullHonorificName";
1582
+ id: "id";
1583
+ middlename: "middlename";
1584
+ name: "name";
1585
+ primaryOfficeId: "primaryOfficeId";
1586
+ role: "role";
1587
+ signature: "signature";
1588
+ surname: "surname";
1589
+ }>;
1590
+ $location: z.ZodOptional<z.ZodString>;
1591
+ }, z.core.$strip>]>;
1592
+ }, z.core.$strip>>>;
1433
1593
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1434
1594
  type: z.ZodLiteral<"within">;
1435
1595
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -1636,6 +1796,17 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1636
1796
  DECLARED: "DECLARED";
1637
1797
  NOTIFIED: "NOTIFIED";
1638
1798
  REGISTERED: "REGISTERED";
1799
+ REVOKED: "REVOKED";
1800
+ }>>;
1801
+ }, z.core.$strip>, z.ZodObject<{
1802
+ type: z.ZodLiteral<"noneOf">;
1803
+ terms: z.ZodArray<z.ZodEnum<{
1804
+ ARCHIVED: "ARCHIVED";
1805
+ CREATED: "CREATED";
1806
+ DECLARED: "DECLARED";
1807
+ NOTIFIED: "NOTIFIED";
1808
+ REGISTERED: "REGISTERED";
1809
+ REVOKED: "REVOKED";
1639
1810
  }>>;
1640
1811
  }, z.core.$strip>, z.ZodObject<{
1641
1812
  type: z.ZodLiteral<"exact">;
@@ -1645,6 +1816,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1645
1816
  DECLARED: "DECLARED";
1646
1817
  NOTIFIED: "NOTIFIED";
1647
1818
  REGISTERED: "REGISTERED";
1819
+ REVOKED: "REVOKED";
1648
1820
  }>;
1649
1821
  }, z.core.$strip>]>>>;
1650
1822
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -1747,6 +1919,26 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1747
1919
  type: z.ZodLiteral<"exact">;
1748
1920
  term: z.ZodString;
1749
1921
  }, z.core.$strip>>>;
1922
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1923
+ type: z.ZodLiteral<"within">;
1924
+ location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1925
+ $userField: z.ZodEnum<{
1926
+ administrativeAreaId: "administrativeAreaId";
1927
+ avatar: "avatar";
1928
+ device: "device";
1929
+ firstname: "firstname";
1930
+ fullHonorificName: "fullHonorificName";
1931
+ id: "id";
1932
+ middlename: "middlename";
1933
+ name: "name";
1934
+ primaryOfficeId: "primaryOfficeId";
1935
+ role: "role";
1936
+ signature: "signature";
1937
+ surname: "surname";
1938
+ }>;
1939
+ $location: z.ZodOptional<z.ZodString>;
1940
+ }, z.core.$strip>]>;
1941
+ }, z.core.$strip>>>;
1750
1942
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1751
1943
  type: z.ZodLiteral<"within">;
1752
1944
  location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -37,9 +37,11 @@ export declare const Draft: z.ZodObject<{
37
37
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
38
38
  READ: "READ";
39
39
  REGISTER: "REGISTER";
40
+ REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
40
41
  REJECT: "REJECT";
41
42
  REJECT_CORRECTION: "REJECT_CORRECTION";
42
43
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
44
+ REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
43
45
  UNARCHIVE: "UNARCHIVE";
44
46
  UNASSIGN: "UNASSIGN";
45
47
  }>;
@@ -166,6 +166,48 @@ export declare const EventDocument: z.ZodObject<{
166
166
  }>;
167
167
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
168
168
  type: z.ZodLiteral<"UNARCHIVE">;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
171
+ transactionId: z.ZodString;
172
+ createdByUserType: z.ZodEnum<{
173
+ system: "system";
174
+ user: "user";
175
+ }>;
176
+ createdAt: z.ZodString;
177
+ createdBy: z.ZodString;
178
+ createdByRole: z.ZodOptional<z.ZodString>;
179
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
180
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
181
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
182
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
183
+ status: z.ZodEnum<{
184
+ Accepted: "Accepted";
185
+ Rejected: "Rejected";
186
+ Requested: "Requested";
187
+ }>;
188
+ originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
189
+ type: z.ZodLiteral<"REVOKE_REGISTRATION">;
190
+ }, z.core.$strip>, z.ZodObject<{
191
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
192
+ transactionId: z.ZodString;
193
+ createdByUserType: z.ZodEnum<{
194
+ system: "system";
195
+ user: "user";
196
+ }>;
197
+ createdAt: z.ZodString;
198
+ createdBy: z.ZodString;
199
+ createdByRole: z.ZodOptional<z.ZodString>;
200
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
201
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
202
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
203
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
204
+ status: z.ZodEnum<{
205
+ Accepted: "Accepted";
206
+ Rejected: "Rejected";
207
+ Requested: "Requested";
208
+ }>;
209
+ originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
210
+ type: z.ZodLiteral<"REINSTATE_REGISTRATION">;
169
211
  }, z.core.$strip>, z.ZodObject<{
170
212
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
171
213
  transactionId: z.ZodString;
@@ -457,9 +499,11 @@ export declare const EventDocument: z.ZodObject<{
457
499
  NOTIFY: "NOTIFY";
458
500
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
459
501
  REGISTER: "REGISTER";
502
+ REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
460
503
  REJECT: "REJECT";
461
504
  REJECT_CORRECTION: "REJECT_CORRECTION";
462
505
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
506
+ REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
463
507
  UNARCHIVE: "UNARCHIVE";
464
508
  }>;
465
509
  status: z.ZodLiteral<"Rejected">;
@@ -635,6 +679,48 @@ export declare const EventDocumentOnlyLastAction: z.core.$ZodBranded<z.ZodObject
635
679
  }>;
636
680
  originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
637
681
  type: z.ZodLiteral<"UNARCHIVE">;
682
+ }, z.core.$strip>, z.ZodObject<{
683
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
684
+ transactionId: z.ZodString;
685
+ createdByUserType: z.ZodEnum<{
686
+ system: "system";
687
+ user: "user";
688
+ }>;
689
+ createdAt: z.ZodString;
690
+ createdBy: z.ZodString;
691
+ createdByRole: z.ZodOptional<z.ZodString>;
692
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
693
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
694
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
695
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
696
+ status: z.ZodEnum<{
697
+ Accepted: "Accepted";
698
+ Rejected: "Rejected";
699
+ Requested: "Requested";
700
+ }>;
701
+ originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
702
+ type: z.ZodLiteral<"REVOKE_REGISTRATION">;
703
+ }, z.core.$strip>, z.ZodObject<{
704
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
705
+ transactionId: z.ZodString;
706
+ createdByUserType: z.ZodEnum<{
707
+ system: "system";
708
+ user: "user";
709
+ }>;
710
+ createdAt: z.ZodString;
711
+ createdBy: z.ZodString;
712
+ createdByRole: z.ZodOptional<z.ZodString>;
713
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
714
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
715
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
716
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
717
+ status: z.ZodEnum<{
718
+ Accepted: "Accepted";
719
+ Rejected: "Rejected";
720
+ Requested: "Requested";
721
+ }>;
722
+ originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
723
+ type: z.ZodLiteral<"REINSTATE_REGISTRATION">;
638
724
  }, z.core.$strip>, z.ZodObject<{
639
725
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
640
726
  transactionId: z.ZodString;
@@ -926,9 +1012,11 @@ export declare const EventDocumentOnlyLastAction: z.core.$ZodBranded<z.ZodObject
926
1012
  NOTIFY: "NOTIFY";
927
1013
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
928
1014
  REGISTER: "REGISTER";
1015
+ REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
929
1016
  REJECT: "REJECT";
930
1017
  REJECT_CORRECTION: "REJECT_CORRECTION";
931
1018
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
1019
+ REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
932
1020
  UNARCHIVE: "UNARCHIVE";
933
1021
  }>;
934
1022
  status: z.ZodLiteral<"Rejected">;
@@ -9,6 +9,7 @@ export declare const EventIndex: z.ZodObject<{
9
9
  DECLARED: "DECLARED";
10
10
  NOTIFIED: "NOTIFIED";
11
11
  REGISTERED: "REGISTERED";
12
+ REVOKED: "REVOKED";
12
13
  }>;
13
14
  legalStatuses: z.ZodObject<{
14
15
  NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -45,6 +46,17 @@ export declare const EventIndex: z.ZodObject<{
45
46
  createdByRole: z.ZodOptional<z.ZodString>;
46
47
  registrationNumber: z.ZodString;
47
48
  }, z.core.$strip>>>;
49
+ REVOKED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
50
+ createdAt: z.ZodISODateTime;
51
+ createdBy: z.ZodString;
52
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
53
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
54
+ system: "system";
55
+ user: "user";
56
+ }>>>;
57
+ acceptedAt: z.ZodISODateTime;
58
+ createdByRole: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strip>>>;
48
60
  }, z.core.$strip>;
49
61
  createdAt: z.ZodISODateTime;
50
62
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
@@ -96,6 +108,7 @@ export declare const ExactStatus: z.ZodObject<{
96
108
  DECLARED: "DECLARED";
97
109
  NOTIFIED: "NOTIFIED";
98
110
  REGISTERED: "REGISTERED";
111
+ REVOKED: "REVOKED";
99
112
  }>;
100
113
  }, z.core.$strip>;
101
114
  export declare const ExactUserType: z.ZodObject<{
@@ -117,6 +130,18 @@ export declare const AnyOfStatus: z.ZodObject<{
117
130
  DECLARED: "DECLARED";
118
131
  NOTIFIED: "NOTIFIED";
119
132
  REGISTERED: "REGISTERED";
133
+ REVOKED: "REVOKED";
134
+ }>>;
135
+ }, z.core.$strip>;
136
+ export declare const NoneOfStatus: z.ZodObject<{
137
+ type: z.ZodLiteral<"noneOf">;
138
+ terms: z.ZodArray<z.ZodEnum<{
139
+ ARCHIVED: "ARCHIVED";
140
+ CREATED: "CREATED";
141
+ DECLARED: "DECLARED";
142
+ NOTIFIED: "NOTIFIED";
143
+ REGISTERED: "REGISTERED";
144
+ REVOKED: "REVOKED";
120
145
  }>>;
121
146
  }, z.core.$strip>;
122
147
  export declare const Range: z.ZodObject<{
@@ -167,6 +192,17 @@ export declare const QueryExpression: z.ZodObject<{
167
192
  DECLARED: "DECLARED";
168
193
  NOTIFIED: "NOTIFIED";
169
194
  REGISTERED: "REGISTERED";
195
+ REVOKED: "REVOKED";
196
+ }>>;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ type: z.ZodLiteral<"noneOf">;
199
+ terms: z.ZodArray<z.ZodEnum<{
200
+ ARCHIVED: "ARCHIVED";
201
+ CREATED: "CREATED";
202
+ DECLARED: "DECLARED";
203
+ NOTIFIED: "NOTIFIED";
204
+ REGISTERED: "REGISTERED";
205
+ REVOKED: "REVOKED";
170
206
  }>>;
171
207
  }, z.core.$strip>, z.ZodObject<{
172
208
  type: z.ZodLiteral<"exact">;
@@ -176,6 +212,7 @@ export declare const QueryExpression: z.ZodObject<{
176
212
  DECLARED: "DECLARED";
177
213
  NOTIFIED: "NOTIFIED";
178
214
  REGISTERED: "REGISTERED";
215
+ REVOKED: "REVOKED";
179
216
  }>;
180
217
  }, z.core.$strip>]>>>;
181
218
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -246,6 +283,10 @@ export declare const QueryExpression: z.ZodObject<{
246
283
  type: z.ZodLiteral<"exact">;
247
284
  term: z.ZodString;
248
285
  }, z.core.$strip>>>;
286
+ 'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
287
+ type: z.ZodLiteral<"within">;
288
+ location: z.ZodString;
289
+ }, z.core.$strip>>>>;
249
290
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
250
291
  type: z.ZodLiteral<"within">;
251
292
  location: z.ZodString;
@@ -63,6 +63,17 @@ export declare const LegalStatuses: z.ZodObject<{
63
63
  createdByRole: z.ZodOptional<z.ZodString>;
64
64
  registrationNumber: z.ZodString;
65
65
  }, z.core.$strip>>>;
66
+ REVOKED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
67
+ createdAt: z.ZodISODateTime;
68
+ createdBy: z.ZodString;
69
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
70
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
71
+ system: "system";
72
+ user: "user";
73
+ }>>>;
74
+ acceptedAt: z.ZodISODateTime;
75
+ createdByRole: z.ZodOptional<z.ZodString>;
76
+ }, z.core.$strip>>>;
66
77
  }, z.core.$strip>;
67
78
  /**
68
79
  * Event metadata exposed to client.
@@ -78,6 +89,7 @@ export declare const EventMetadata: z.ZodObject<{
78
89
  DECLARED: "DECLARED";
79
90
  NOTIFIED: "NOTIFIED";
80
91
  REGISTERED: "REGISTERED";
92
+ REVOKED: "REVOKED";
81
93
  }>;
82
94
  legalStatuses: z.ZodObject<{
83
95
  NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -114,6 +126,17 @@ export declare const EventMetadata: z.ZodObject<{
114
126
  createdByRole: z.ZodOptional<z.ZodString>;
115
127
  registrationNumber: z.ZodString;
116
128
  }, z.core.$strip>>>;
129
+ REVOKED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
130
+ createdAt: z.ZodISODateTime;
131
+ createdBy: z.ZodString;
132
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
133
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
134
+ system: "system";
135
+ user: "user";
136
+ }>>>;
137
+ acceptedAt: z.ZodISODateTime;
138
+ createdByRole: z.ZodOptional<z.ZodString>;
139
+ }, z.core.$strip>>>;
117
140
  }, z.core.$strip>;
118
141
  createdAt: z.ZodISODateTime;
119
142
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
@@ -14,6 +14,7 @@ export declare const EventStatus: z.ZodEnum<{
14
14
  DECLARED: "DECLARED";
15
15
  NOTIFIED: "NOTIFIED";
16
16
  REGISTERED: "REGISTERED";
17
+ REVOKED: "REVOKED";
17
18
  }>;
18
19
  export type EventStatus = z.infer<typeof EventStatus>;
19
20
  //# sourceMappingURL=EventStatus.d.ts.map
@@ -1904,9 +1904,11 @@ declare const AdministrativeAreaField: z.ZodObject<{
1904
1904
  "record.read": "record.read";
1905
1905
  "record.register": "record.register";
1906
1906
  "record.reindex": "record.reindex";
1907
+ "record.reinstate-registration": "record.reinstate-registration";
1907
1908
  "record.reject": "record.reject";
1908
1909
  "record.request-correction": "record.request-correction";
1909
1910
  "record.review-duplicates": "record.review-duplicates";
1911
+ "record.revoke-registration": "record.revoke-registration";
1910
1912
  "record.search": "record.search";
1911
1913
  "record.unarchive": "record.unarchive";
1912
1914
  "record.unassign-others": "record.unassign-others";
@@ -2041,9 +2043,11 @@ declare const LocationInput: z.ZodObject<{
2041
2043
  "record.read": "record.read";
2042
2044
  "record.register": "record.register";
2043
2045
  "record.reindex": "record.reindex";
2046
+ "record.reinstate-registration": "record.reinstate-registration";
2044
2047
  "record.reject": "record.reject";
2045
2048
  "record.request-correction": "record.request-correction";
2046
2049
  "record.review-duplicates": "record.review-duplicates";
2050
+ "record.revoke-registration": "record.revoke-registration";
2047
2051
  "record.search": "record.search";
2048
2052
  "record.unarchive": "record.unarchive";
2049
2053
  "record.unassign-others": "record.unassign-others";
@@ -2249,9 +2253,11 @@ declare const Facility: z.ZodObject<{
2249
2253
  "record.read": "record.read";
2250
2254
  "record.register": "record.register";
2251
2255
  "record.reindex": "record.reindex";
2256
+ "record.reinstate-registration": "record.reinstate-registration";
2252
2257
  "record.reject": "record.reject";
2253
2258
  "record.request-correction": "record.request-correction";
2254
2259
  "record.review-duplicates": "record.review-duplicates";
2260
+ "record.revoke-registration": "record.revoke-registration";
2255
2261
  "record.search": "record.search";
2256
2262
  "record.unarchive": "record.unarchive";
2257
2263
  "record.unassign-others": "record.unassign-others";
@@ -2372,9 +2378,11 @@ declare const Office: z.ZodObject<{
2372
2378
  "record.read": "record.read";
2373
2379
  "record.register": "record.register";
2374
2380
  "record.reindex": "record.reindex";
2381
+ "record.reinstate-registration": "record.reinstate-registration";
2375
2382
  "record.reject": "record.reject";
2376
2383
  "record.request-correction": "record.request-correction";
2377
2384
  "record.review-duplicates": "record.review-duplicates";
2385
+ "record.revoke-registration": "record.revoke-registration";
2378
2386
  "record.search": "record.search";
2379
2387
  "record.unarchive": "record.unarchive";
2380
2388
  "record.unassign-others": "record.unassign-others";
@@ -2581,9 +2589,11 @@ declare const Address: z.ZodObject<{
2581
2589
  "record.read": "record.read";
2582
2590
  "record.register": "record.register";
2583
2591
  "record.reindex": "record.reindex";
2592
+ "record.reinstate-registration": "record.reinstate-registration";
2584
2593
  "record.reject": "record.reject";
2585
2594
  "record.request-correction": "record.request-correction";
2586
2595
  "record.review-duplicates": "record.review-duplicates";
2596
+ "record.revoke-registration": "record.revoke-registration";
2587
2597
  "record.search": "record.search";
2588
2598
  "record.unarchive": "record.unarchive";
2589
2599
  "record.unassign-others": "record.unassign-others";