@opencrvs/toolkit 2.1.0-rc.b0003b1 → 2.1.0-rc.b061691

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 (57) hide show
  1. package/build.sh +2 -2
  2. package/dist/application-config/index.js +212 -188
  3. package/dist/cli.js +165 -5154
  4. package/dist/commons/api/router.d.ts +758 -201
  5. package/dist/commons/conditionals/conditionals.d.ts +1592 -40
  6. package/dist/commons/conditionals/validate.d.ts +2 -1
  7. package/dist/commons/events/ActionConfig.d.ts +230 -0
  8. package/dist/commons/events/ActionDocument.d.ts +51 -13
  9. package/dist/commons/events/ActionInput.d.ts +26 -6
  10. package/dist/commons/events/ActionStatus.d.ts +14 -0
  11. package/dist/commons/events/ActionType.d.ts +6 -1
  12. package/dist/commons/events/AdvancedSearchConfig.d.ts +12 -0
  13. package/dist/commons/events/AuditLog.d.ts +2 -0
  14. package/dist/commons/events/CountryConfigQueryInput.d.ts +18 -0
  15. package/dist/commons/events/Draft.d.ts +2 -0
  16. package/dist/commons/events/EventDocument.d.ts +24 -2
  17. package/dist/commons/events/EventIndex.d.ts +5 -24
  18. package/dist/commons/events/EventMetadata.d.ts +2 -1
  19. package/dist/commons/events/FieldConfig.d.ts +10 -0
  20. package/dist/commons/events/Flag.d.ts +48 -0
  21. package/dist/commons/events/WorkqueueColumnConfig.d.ts +4 -4
  22. package/dist/commons/events/WorkqueueConfig.d.ts +25 -7
  23. package/dist/commons/events/field.d.ts +722 -34
  24. package/dist/commons/events/scopes.d.ts +1 -0
  25. package/dist/commons/events/test.utils.d.ts +9 -4
  26. package/dist/commons/events/utils.d.ts +26 -4
  27. package/dist/conditionals/index.js +305 -55
  28. package/dist/environment/derived-variables.d.ts +0 -12
  29. package/dist/environment/derived-variables.d.ts.map +1 -1
  30. package/dist/environment/derived-variables.js +0 -14
  31. package/dist/environment/logger.d.ts +3 -12
  32. package/dist/environment/logger.d.ts.map +1 -1
  33. package/dist/environment/manage-users.js +17 -7
  34. package/dist/environment/setup-environment.js +0 -14
  35. package/dist/environment/swarm-to-k8s.js +17 -7
  36. package/dist/environment/update-workflows.js +17 -7
  37. package/dist/environment/users.js +17 -7
  38. package/dist/environment/utils.js +17 -7
  39. package/dist/events/index.js +3330 -3128
  40. package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
  41. package/dist/migrations/v2.0/index.js +88 -5144
  42. package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
  43. package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +3 -0
  44. package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +1 -0
  45. package/dist/migrations/v2.1/add-explicit-correction-flags.js +234 -0
  46. package/dist/migrations/v2.1/index.d.ts +6 -0
  47. package/dist/migrations/v2.1/index.d.ts.map +1 -0
  48. package/dist/migrations/v2.1/index.js +218 -0
  49. package/dist/notification/index.js +1557 -872
  50. package/dist/scopes/index.d.ts +257 -1
  51. package/dist/scopes/index.js +306 -55
  52. package/dist/templates/charts-values/dependencies/values.yaml +0 -3
  53. package/dist/templates/charts-values/opencrvs-services/values.yaml +0 -4
  54. package/opencrvs-toolkit-2.1.0-rc.b061691.tgz +0 -0
  55. package/package.json +3 -3
  56. package/tsconfig.tsbuildinfo +1 -1
  57. package/opencrvs-toolkit-2.1.0-rc.b0003b1.tgz +0 -0
@@ -6,7 +6,7 @@ export declare const mandatoryColumns: {
6
6
  description: string;
7
7
  };
8
8
  value: {
9
- $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
9
+ $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "flags" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
10
10
  };
11
11
  }[];
12
12
  /**
@@ -314,6 +314,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
314
314
  readonly CORRECTION_REQUESTED: "correction-requested";
315
315
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
316
316
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
317
+ readonly SEALED: "sealed";
317
318
  }>]>, z.ZodString]>>>;
318
319
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
319
320
  readonly INCOMPLETE: "incomplete";
@@ -321,6 +322,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
321
322
  readonly CORRECTION_REQUESTED: "correction-requested";
322
323
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
323
324
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
325
+ readonly SEALED: "sealed";
324
326
  }>]>, z.ZodString]>>>;
325
327
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
326
328
  readonly INCOMPLETE: "incomplete";
@@ -328,6 +330,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
328
330
  readonly CORRECTION_REQUESTED: "correction-requested";
329
331
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
330
332
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
333
+ readonly SEALED: "sealed";
331
334
  }>]>, z.ZodString]>>>;
332
335
  }, z.core.$strip>>>;
333
336
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -631,6 +634,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
631
634
  readonly CORRECTION_REQUESTED: "correction-requested";
632
635
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
633
636
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
637
+ readonly SEALED: "sealed";
634
638
  }>]>, z.ZodString]>>>;
635
639
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
636
640
  readonly INCOMPLETE: "incomplete";
@@ -638,6 +642,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
638
642
  readonly CORRECTION_REQUESTED: "correction-requested";
639
643
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
640
644
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
645
+ readonly SEALED: "sealed";
641
646
  }>]>, z.ZodString]>>>;
642
647
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
643
648
  readonly INCOMPLETE: "incomplete";
@@ -645,6 +650,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
645
650
  readonly CORRECTION_REQUESTED: "correction-requested";
646
651
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
647
652
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
653
+ readonly SEALED: "sealed";
648
654
  }>]>, z.ZodString]>>>;
649
655
  }, z.core.$strip>>>;
650
656
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -659,6 +665,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
659
665
  REJECT: "REJECT";
660
666
  MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
661
667
  ARCHIVE: "ARCHIVE";
668
+ UNARCHIVE: "UNARCHIVE";
662
669
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
663
670
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
664
671
  READ: "READ";
@@ -673,6 +680,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
673
680
  type: "type";
674
681
  updatedAt: "updatedAt";
675
682
  placeOfEvent: "placeOfEvent";
683
+ flags: "flags";
676
684
  createdByUserType: "createdByUserType";
677
685
  createdAt: "createdAt";
678
686
  createdBy: "createdBy";
@@ -685,7 +693,6 @@ export declare const WorkqueueConfig: z.ZodObject<{
685
693
  updatedByUserRole: "updatedByUserRole";
686
694
  updatedAtLocation: "updatedAtLocation";
687
695
  updatedBy: "updatedBy";
688
- flags: "flags";
689
696
  outbox: "outbox";
690
697
  }>;
691
698
  }, z.core.$strip>;
@@ -913,6 +920,7 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<{
913
920
  REJECT: "REJECT";
914
921
  MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
915
922
  ARCHIVE: "ARCHIVE";
923
+ UNARCHIVE: "UNARCHIVE";
916
924
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
917
925
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
918
926
  READ: "READ";
@@ -933,6 +941,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
933
941
  REJECT: "REJECT";
934
942
  MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
935
943
  ARCHIVE: "ARCHIVE";
944
+ UNARCHIVE: "UNARCHIVE";
936
945
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
937
946
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
938
947
  READ: "READ";
@@ -947,6 +956,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
947
956
  type: "type";
948
957
  updatedAt: "updatedAt";
949
958
  placeOfEvent: "placeOfEvent";
959
+ flags: "flags";
950
960
  createdByUserType: "createdByUserType";
951
961
  createdAt: "createdAt";
952
962
  createdBy: "createdBy";
@@ -959,7 +969,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
959
969
  updatedByUserRole: "updatedByUserRole";
960
970
  updatedAtLocation: "updatedAtLocation";
961
971
  updatedBy: "updatedBy";
962
- flags: "flags";
963
972
  outbox: "outbox";
964
973
  }>;
965
974
  }, z.core.$strip>;
@@ -1367,6 +1376,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1367
1376
  readonly CORRECTION_REQUESTED: "correction-requested";
1368
1377
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1369
1378
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1379
+ readonly SEALED: "sealed";
1370
1380
  }>]>, z.ZodString]>>>;
1371
1381
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1372
1382
  readonly INCOMPLETE: "incomplete";
@@ -1374,6 +1384,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1374
1384
  readonly CORRECTION_REQUESTED: "correction-requested";
1375
1385
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1376
1386
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1387
+ readonly SEALED: "sealed";
1377
1388
  }>]>, z.ZodString]>>>;
1378
1389
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1379
1390
  readonly INCOMPLETE: "incomplete";
@@ -1381,6 +1392,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1381
1392
  readonly CORRECTION_REQUESTED: "correction-requested";
1382
1393
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1383
1394
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1395
+ readonly SEALED: "sealed";
1384
1396
  }>]>, z.ZodString]>>>;
1385
1397
  }, z.core.$strip>>>;
1386
1398
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -1683,6 +1695,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1683
1695
  readonly CORRECTION_REQUESTED: "correction-requested";
1684
1696
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1685
1697
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1698
+ readonly SEALED: "sealed";
1686
1699
  }>]>, z.ZodString]>>>;
1687
1700
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1688
1701
  readonly INCOMPLETE: "incomplete";
@@ -1690,6 +1703,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1690
1703
  readonly CORRECTION_REQUESTED: "correction-requested";
1691
1704
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1692
1705
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1706
+ readonly SEALED: "sealed";
1693
1707
  }>]>, z.ZodString]>>>;
1694
1708
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1695
1709
  readonly INCOMPLETE: "incomplete";
@@ -1697,6 +1711,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1697
1711
  readonly CORRECTION_REQUESTED: "correction-requested";
1698
1712
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1699
1713
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1714
+ readonly SEALED: "sealed";
1700
1715
  }>]>, z.ZodString]>>>;
1701
1716
  }, z.core.$strip>>>;
1702
1717
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -2000,6 +2015,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2000
2015
  readonly CORRECTION_REQUESTED: "correction-requested";
2001
2016
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
2002
2017
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
2018
+ readonly SEALED: "sealed";
2003
2019
  }>]>, z.ZodString]>>>;
2004
2020
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
2005
2021
  readonly INCOMPLETE: "incomplete";
@@ -2007,6 +2023,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2007
2023
  readonly CORRECTION_REQUESTED: "correction-requested";
2008
2024
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
2009
2025
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
2026
+ readonly SEALED: "sealed";
2010
2027
  }>]>, z.ZodString]>>>;
2011
2028
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
2012
2029
  readonly INCOMPLETE: "incomplete";
@@ -2014,6 +2031,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
2014
2031
  readonly CORRECTION_REQUESTED: "correction-requested";
2015
2032
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
2016
2033
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
2034
+ readonly SEALED: "sealed";
2017
2035
  }>]>, z.ZodString]>>>;
2018
2036
  }, z.core.$strip>>>;
2019
2037
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -2316,12 +2334,12 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2316
2334
  description: string;
2317
2335
  };
2318
2336
  value: {
2319
- $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
2337
+ $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "flags" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
2320
2338
  };
2321
2339
  }[];
2322
2340
  icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
2323
2341
  action?: {
2324
- type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
2342
+ type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
2325
2343
  } | undefined;
2326
2344
  emptyMessage?: {
2327
2345
  id: string;
@@ -2627,12 +2645,12 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2627
2645
  description: string;
2628
2646
  };
2629
2647
  value: {
2630
- $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
2648
+ $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "flags" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
2631
2649
  };
2632
2650
  }[];
2633
2651
  icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
2634
2652
  action?: {
2635
- type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
2653
+ type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
2636
2654
  } | undefined;
2637
2655
  emptyMessage?: {
2638
2656
  id: string;