@opencrvs/toolkit 2.0.0-rc.ff99998 → 2.1.0-rc.0066f38

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 (108) hide show
  1. package/README.md +15 -0
  2. package/build.sh +5 -4
  3. package/create-countryconfig/package.json +1 -1
  4. package/dist/application-config/index.js +36 -7
  5. package/dist/cli.js +3186 -4921
  6. package/dist/commons/api/router.d.ts +634 -22
  7. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  8. package/dist/commons/events/ActionConfig.d.ts +237 -2
  9. package/dist/commons/events/ActionDocument.d.ts +44 -0
  10. package/dist/commons/events/ActionInput.d.ts +26 -0
  11. package/dist/commons/events/ActionType.d.ts +6 -1
  12. package/dist/commons/events/AdvancedSearchConfig.d.ts +18 -0
  13. package/dist/commons/events/AuditLog.d.ts +2 -0
  14. package/dist/commons/events/CountryConfigQueryInput.d.ts +42 -0
  15. package/dist/commons/events/Draft.d.ts +2 -0
  16. package/dist/commons/events/EventConfig.d.ts +2 -0
  17. package/dist/commons/events/EventDocument.d.ts +22 -0
  18. package/dist/commons/events/EventIndex.d.ts +25 -0
  19. package/dist/commons/events/EventMetadata.d.ts +26 -0
  20. package/dist/commons/events/FieldConfig.d.ts +16 -0
  21. package/dist/commons/events/FieldType.d.ts +1 -0
  22. package/dist/commons/events/FieldTypeMapping.d.ts +1 -1
  23. package/dist/commons/events/WorkqueueConfig.d.ts +44 -2
  24. package/dist/commons/events/locations.d.ts +1 -0
  25. package/dist/commons/events/scopes.d.ts +1 -0
  26. package/dist/commons/events/state/index.d.ts +8 -0
  27. package/dist/commons/events/state/utils.d.ts +9 -0
  28. package/dist/commons/events/test.utils.d.ts +9 -1
  29. package/dist/commons/events/utils.d.ts +23 -1
  30. package/dist/conditionals/index.js +12 -5
  31. package/dist/environment/custom-types.d.ts +33 -0
  32. package/dist/environment/custom-types.d.ts.map +1 -0
  33. package/dist/environment/custom-types.js +12 -0
  34. package/dist/environment/derived-variables.d.ts +134 -0
  35. package/dist/environment/derived-variables.d.ts.map +1 -0
  36. package/dist/environment/derived-variables.js +169 -0
  37. package/dist/environment/editor-questions.d.ts +4 -0
  38. package/dist/environment/editor-questions.d.ts.map +1 -0
  39. package/dist/environment/editor-questions.js +67 -0
  40. package/dist/environment/git.d.ts +5 -0
  41. package/dist/environment/git.d.ts.map +1 -0
  42. package/dist/environment/git.js +38 -0
  43. package/dist/environment/github.d.ts +26 -0
  44. package/dist/environment/github.d.ts.map +1 -0
  45. package/dist/environment/github.js +247 -0
  46. package/dist/environment/index.d.ts +5 -0
  47. package/dist/environment/index.d.ts.map +1 -0
  48. package/dist/environment/index.js +71 -0
  49. package/dist/environment/logger.d.ts +15 -0
  50. package/dist/environment/logger.d.ts.map +1 -0
  51. package/dist/environment/logger.js +25 -0
  52. package/dist/environment/manage-users.d.ts +11 -0
  53. package/dist/environment/manage-users.d.ts.map +1 -0
  54. package/dist/environment/manage-users.js +497 -0
  55. package/dist/environment/questions-helper.d.ts +15 -0
  56. package/dist/environment/questions-helper.d.ts.map +1 -0
  57. package/dist/environment/questions-helper.js +70 -0
  58. package/dist/environment/questions.d.ts +199 -0
  59. package/dist/environment/questions.d.ts.map +1 -0
  60. package/dist/environment/questions.js +412 -0
  61. package/dist/environment/setup-environment.d.ts +2 -0
  62. package/dist/environment/setup-environment.d.ts.map +1 -0
  63. package/dist/environment/setup-environment.js +794 -0
  64. package/dist/environment/ssh-keygen.d.ts +5 -0
  65. package/dist/environment/ssh-keygen.d.ts.map +1 -0
  66. package/dist/environment/ssh-keygen.js +21 -0
  67. package/dist/environment/swarm-to-k8s.d.ts +2 -0
  68. package/dist/environment/swarm-to-k8s.d.ts.map +1 -0
  69. package/dist/environment/swarm-to-k8s.js +173 -0
  70. package/dist/environment/templates.d.ts +27 -0
  71. package/dist/environment/templates.d.ts.map +1 -0
  72. package/dist/environment/templates.js +163 -0
  73. package/dist/environment/update-workflows.d.ts +2 -0
  74. package/dist/environment/update-workflows.d.ts.map +1 -0
  75. package/dist/environment/update-workflows.js +169 -0
  76. package/dist/environment/users.d.ts +2 -0
  77. package/dist/environment/users.d.ts.map +1 -0
  78. package/dist/environment/users.js +112 -0
  79. package/dist/environment/utils.d.ts +18 -0
  80. package/dist/environment/utils.d.ts.map +1 -0
  81. package/dist/environment/utils.js +100 -0
  82. package/dist/events/index.js +379 -89
  83. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +1 -1
  84. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  85. package/dist/migrations/v2.0/checkout-upstream-files.js +1 -1
  86. package/dist/migrations/v2.0/index.js +88 -5139
  87. package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +3 -0
  88. package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +1 -0
  89. package/dist/migrations/v2.1/add-explicit-correction-flags.js +234 -0
  90. package/dist/migrations/v2.1/index.d.ts +6 -0
  91. package/dist/migrations/v2.1/index.d.ts.map +1 -0
  92. package/dist/migrations/v2.1/index.js +218 -0
  93. package/dist/notification/index.js +250 -22
  94. package/dist/scopes/index.d.ts +96 -2
  95. package/dist/scopes/index.js +12 -5
  96. package/dist/templates/charts-values/dependencies/values.override.yaml +4 -0
  97. package/dist/templates/charts-values/dependencies/values.yaml +83 -0
  98. package/dist/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
  99. package/dist/templates/charts-values/opencrvs-services/values.yaml +81 -0
  100. package/dist/templates/charts-values/traefik/values.override.yaml +4 -0
  101. package/dist/templates/charts-values/traefik/values.yaml +115 -0
  102. package/dist/templates/inventory/inventory.template.yml +100 -0
  103. package/dist/templates/inventory/production.example.yml +77 -0
  104. package/dist/templates/inventory/qa.example.yml +48 -0
  105. package/opencrvs-toolkit-2.1.0-rc.0066f38.tgz +0 -0
  106. package/package.json +15 -1
  107. package/tsconfig.tsbuildinfo +1 -1
  108. package/opencrvs-toolkit-2.0.0-rc.ff99998.tgz +0 -0
@@ -346,6 +346,13 @@ export declare const SerializedQueryExpression: z.ZodObject<{
346
346
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
347
347
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
348
348
  }>]>, z.ZodString]>>>;
349
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
350
+ readonly INCOMPLETE: "incomplete";
351
+ readonly REJECTED: "rejected";
352
+ readonly CORRECTION_REQUESTED: "correction-requested";
353
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
354
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
355
+ }>]>, z.ZodString]>>>;
349
356
  }, z.core.$strip>>>;
350
357
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
351
358
  }, z.core.$strip>;
@@ -657,6 +664,13 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
657
664
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
658
665
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
659
666
  }>]>, z.ZodString]>>>;
667
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
668
+ readonly INCOMPLETE: "incomplete";
669
+ readonly REJECTED: "rejected";
670
+ readonly CORRECTION_REQUESTED: "correction-requested";
671
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
672
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
673
+ }>]>, z.ZodString]>>>;
660
674
  }, z.core.$strip>>>;
661
675
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
662
676
  }, z.core.$strip>>;
@@ -967,6 +981,13 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
967
981
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
968
982
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
969
983
  }>]>, z.ZodString]>>>;
984
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
985
+ readonly INCOMPLETE: "incomplete";
986
+ readonly REJECTED: "rejected";
987
+ readonly CORRECTION_REQUESTED: "correction-requested";
988
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
989
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
990
+ }>]>, z.ZodString]>>>;
970
991
  }, z.core.$strip>>>;
971
992
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
972
993
  }, z.core.$strip>>;
@@ -1277,6 +1298,13 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1277
1298
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1278
1299
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1279
1300
  }>]>, z.ZodString]>>>;
1301
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1302
+ readonly INCOMPLETE: "incomplete";
1303
+ readonly REJECTED: "rejected";
1304
+ readonly CORRECTION_REQUESTED: "correction-requested";
1305
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1306
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
1307
+ }>]>, z.ZodString]>>>;
1280
1308
  }, z.core.$strip>>>;
1281
1309
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1282
1310
  }, z.core.$strip>, z.ZodObject<{
@@ -1586,6 +1614,13 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1586
1614
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1587
1615
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1588
1616
  }>]>, z.ZodString]>>>;
1617
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1618
+ readonly INCOMPLETE: "incomplete";
1619
+ readonly REJECTED: "rejected";
1620
+ readonly CORRECTION_REQUESTED: "correction-requested";
1621
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1622
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
1623
+ }>]>, z.ZodString]>>>;
1589
1624
  }, z.core.$strip>>>;
1590
1625
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1591
1626
  }, z.core.$strip>>;
@@ -1896,6 +1931,13 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1896
1931
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1897
1932
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1898
1933
  }>]>, z.ZodString]>>>;
1934
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1935
+ readonly INCOMPLETE: "incomplete";
1936
+ readonly REJECTED: "rejected";
1937
+ readonly CORRECTION_REQUESTED: "correction-requested";
1938
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1939
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
1940
+ }>]>, z.ZodString]>>>;
1899
1941
  }, z.core.$strip>>>;
1900
1942
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1901
1943
  }, z.core.$strip>>;
@@ -17,6 +17,7 @@ export declare const Draft: z.ZodObject<{
17
17
  MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
18
18
  MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
19
19
  ARCHIVE: "ARCHIVE";
20
+ UNARCHIVE: "UNARCHIVE";
20
21
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
21
22
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
22
23
  REJECT_CORRECTION: "REJECT_CORRECTION";
@@ -66,6 +67,7 @@ export declare const DraftInput: z.ZodObject<{
66
67
  MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
67
68
  MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
68
69
  ARCHIVE: "ARCHIVE";
70
+ UNARCHIVE: "UNARCHIVE";
69
71
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
70
72
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
71
73
  REJECT_CORRECTION: "REJECT_CORRECTION";
@@ -10,6 +10,8 @@ export declare const EventFieldReference: z.ZodObject<{
10
10
  $$event: z.ZodEnum<{
11
11
  updatedAt: "updatedAt";
12
12
  createdAt: "createdAt";
13
+ "legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
14
+ "legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
13
15
  "legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
14
16
  "legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
15
17
  "legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
@@ -145,6 +145,27 @@ export declare const EventDocument: z.ZodObject<{
145
145
  content: z.ZodObject<{
146
146
  reason: z.ZodString;
147
147
  }, z.core.$strip>;
148
+ }, z.core.$strip>, z.ZodObject<{
149
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
150
+ transactionId: z.ZodString;
151
+ createdByUserType: z.ZodEnum<{
152
+ user: "user";
153
+ system: "system";
154
+ }>;
155
+ createdAt: z.ZodString;
156
+ createdBy: z.ZodString;
157
+ createdByRole: z.ZodOptional<z.ZodString>;
158
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
159
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
160
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
161
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
162
+ status: z.ZodEnum<{
163
+ Requested: "Requested";
164
+ Accepted: "Accepted";
165
+ Rejected: "Rejected";
166
+ }>;
167
+ originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
168
+ type: z.ZodLiteral<"UNARCHIVE">;
148
169
  }, z.core.$strip>, z.ZodObject<{
149
170
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
150
171
  transactionId: z.ZodString;
@@ -435,6 +456,7 @@ export declare const EventDocument: z.ZodObject<{
435
456
  EDIT: "EDIT";
436
457
  REJECT: "REJECT";
437
458
  ARCHIVE: "ARCHIVE";
459
+ UNARCHIVE: "UNARCHIVE";
438
460
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
439
461
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
440
462
  REJECT_CORRECTION: "REJECT_CORRECTION";
@@ -10,6 +10,17 @@ export declare const EventIndex: z.ZodObject<{
10
10
  ARCHIVED: "ARCHIVED";
11
11
  }>;
12
12
  legalStatuses: z.ZodObject<{
13
+ NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ createdAt: z.ZodISODateTime;
15
+ createdBy: z.ZodString;
16
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
17
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
18
+ user: "user";
19
+ system: "system";
20
+ }>>>;
21
+ acceptedAt: z.ZodISODateTime;
22
+ createdByRole: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>>>;
13
24
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
25
  createdAt: z.ZodISODateTime;
15
26
  createdBy: z.ZodString;
@@ -127,6 +138,13 @@ export declare const ContainsFlags: z.ZodObject<{
127
138
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
128
139
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
129
140
  }>]>, z.ZodString]>>>;
141
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
142
+ readonly INCOMPLETE: "incomplete";
143
+ readonly REJECTED: "rejected";
144
+ readonly CORRECTION_REQUESTED: "correction-requested";
145
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
146
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
147
+ }>]>, z.ZodString]>>>;
130
148
  }, z.core.$strip>;
131
149
  export declare const Within: z.ZodObject<{
132
150
  type: z.ZodLiteral<"within">;
@@ -306,6 +324,13 @@ export declare const QueryExpression: z.ZodObject<{
306
324
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
307
325
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
308
326
  }>]>, z.ZodString]>>>;
327
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
328
+ readonly INCOMPLETE: "incomplete";
329
+ readonly REJECTED: "rejected";
330
+ readonly CORRECTION_REQUESTED: "correction-requested";
331
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
332
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
333
+ }>]>, z.ZodString]>>>;
309
334
  }, z.core.$strip>>>;
310
335
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
311
336
  }, z.core.$strip>;
@@ -39,6 +39,17 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
39
39
  }, z.core.$strip>;
40
40
  export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
41
41
  export declare const LegalStatuses: z.ZodObject<{
42
+ NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
+ createdAt: z.ZodISODateTime;
44
+ createdBy: z.ZodString;
45
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
46
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
47
+ user: "user";
48
+ system: "system";
49
+ }>>>;
50
+ acceptedAt: z.ZodISODateTime;
51
+ createdByRole: z.ZodOptional<z.ZodString>;
52
+ }, z.core.$strip>>>;
42
53
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
54
  createdAt: z.ZodISODateTime;
44
55
  createdBy: z.ZodString;
@@ -79,6 +90,17 @@ export declare const EventMetadata: z.ZodObject<{
79
90
  ARCHIVED: "ARCHIVED";
80
91
  }>;
81
92
  legalStatuses: z.ZodObject<{
93
+ NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
94
+ createdAt: z.ZodISODateTime;
95
+ createdBy: z.ZodString;
96
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
97
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
98
+ user: "user";
99
+ system: "system";
100
+ }>>>;
101
+ acceptedAt: z.ZodISODateTime;
102
+ createdByRole: z.ZodOptional<z.ZodString>;
103
+ }, z.core.$strip>>>;
82
104
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
83
105
  createdAt: z.ZodISODateTime;
84
106
  createdBy: z.ZodString;
@@ -161,6 +183,8 @@ export declare const eventMetadataLabelMap: Record<Exclude<`event.${EventMetadat
161
183
  export declare const EventMetadataDateFieldIdInput: z.ZodEnum<{
162
184
  updatedAt: "updatedAt";
163
185
  createdAt: "createdAt";
186
+ "legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
187
+ "legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
164
188
  "legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
165
189
  "legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
166
190
  "legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
@@ -170,6 +194,8 @@ export type EventMetadataDateFieldIdInput = z.infer<typeof EventMetadataDateFiel
170
194
  export declare const EventMetadataDateFieldId: z.ZodEnum<{
171
195
  "event.updatedAt": "event.updatedAt";
172
196
  "event.createdAt": "event.createdAt";
197
+ "event.legalStatuses.NOTIFIED.createdAt": "event.legalStatuses.NOTIFIED.createdAt";
198
+ "event.legalStatuses.NOTIFIED.acceptedAt": "event.legalStatuses.NOTIFIED.acceptedAt";
173
199
  "event.legalStatuses.DECLARED.createdAt": "event.legalStatuses.DECLARED.createdAt";
174
200
  "event.legalStatuses.DECLARED.acceptedAt": "event.legalStatuses.DECLARED.acceptedAt";
175
201
  "event.legalStatuses.REGISTERED.createdAt": "event.legalStatuses.REGISTERED.createdAt";
@@ -267,6 +267,7 @@ declare const NumberField: z.ZodObject<{
267
267
  configuration: z.ZodOptional<z.ZodObject<{
268
268
  min: z.ZodOptional<z.ZodNumber>;
269
269
  max: z.ZodOptional<z.ZodNumber>;
270
+ integer: z.ZodOptional<z.ZodBoolean>;
270
271
  prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
271
272
  postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
272
273
  }, z.core.$strip>>;
@@ -1885,6 +1886,7 @@ declare const AdministrativeAreaField: z.ZodObject<{
1885
1886
  "record.edit": "record.edit";
1886
1887
  "record.reject": "record.reject";
1887
1888
  "record.archive": "record.archive";
1889
+ "record.unarchive": "record.unarchive";
1888
1890
  "record.review-duplicates": "record.review-duplicates";
1889
1891
  "record.register": "record.register";
1890
1892
  "record.print-certified-copies": "record.print-certified-copies";
@@ -1918,6 +1920,8 @@ declare const AdministrativeAreaField: z.ZodObject<{
1918
1920
  role: "role";
1919
1921
  event: "event";
1920
1922
  placeOfEvent: "placeOfEvent";
1923
+ notifiedIn: "notifiedIn";
1924
+ notifiedBy: "notifiedBy";
1921
1925
  declaredIn: "declaredIn";
1922
1926
  declaredBy: "declaredBy";
1923
1927
  registeredIn: "registeredIn";
@@ -2011,6 +2015,7 @@ declare const LocationInput: z.ZodObject<{
2011
2015
  "record.edit": "record.edit";
2012
2016
  "record.reject": "record.reject";
2013
2017
  "record.archive": "record.archive";
2018
+ "record.unarchive": "record.unarchive";
2014
2019
  "record.review-duplicates": "record.review-duplicates";
2015
2020
  "record.register": "record.register";
2016
2021
  "record.print-certified-copies": "record.print-certified-copies";
@@ -2044,6 +2049,8 @@ declare const LocationInput: z.ZodObject<{
2044
2049
  role: "role";
2045
2050
  event: "event";
2046
2051
  placeOfEvent: "placeOfEvent";
2052
+ notifiedIn: "notifiedIn";
2053
+ notifiedBy: "notifiedBy";
2047
2054
  declaredIn: "declaredIn";
2048
2055
  declaredBy: "declaredBy";
2049
2056
  registeredIn: "registeredIn";
@@ -2208,6 +2215,7 @@ declare const Facility: z.ZodObject<{
2208
2215
  "record.edit": "record.edit";
2209
2216
  "record.reject": "record.reject";
2210
2217
  "record.archive": "record.archive";
2218
+ "record.unarchive": "record.unarchive";
2211
2219
  "record.review-duplicates": "record.review-duplicates";
2212
2220
  "record.register": "record.register";
2213
2221
  "record.print-certified-copies": "record.print-certified-copies";
@@ -2241,6 +2249,8 @@ declare const Facility: z.ZodObject<{
2241
2249
  role: "role";
2242
2250
  event: "event";
2243
2251
  placeOfEvent: "placeOfEvent";
2252
+ notifiedIn: "notifiedIn";
2253
+ notifiedBy: "notifiedBy";
2244
2254
  declaredIn: "declaredIn";
2245
2255
  declaredBy: "declaredBy";
2246
2256
  registeredIn: "registeredIn";
@@ -2320,6 +2330,7 @@ declare const Office: z.ZodObject<{
2320
2330
  "record.edit": "record.edit";
2321
2331
  "record.reject": "record.reject";
2322
2332
  "record.archive": "record.archive";
2333
+ "record.unarchive": "record.unarchive";
2323
2334
  "record.review-duplicates": "record.review-duplicates";
2324
2335
  "record.register": "record.register";
2325
2336
  "record.print-certified-copies": "record.print-certified-copies";
@@ -2353,6 +2364,8 @@ declare const Office: z.ZodObject<{
2353
2364
  role: "role";
2354
2365
  event: "event";
2355
2366
  placeOfEvent: "placeOfEvent";
2367
+ notifiedIn: "notifiedIn";
2368
+ notifiedBy: "notifiedBy";
2356
2369
  declaredIn: "declaredIn";
2357
2370
  declaredBy: "declaredBy";
2358
2371
  registeredIn: "registeredIn";
@@ -2518,6 +2531,7 @@ declare const Address: z.ZodObject<{
2518
2531
  "record.edit": "record.edit";
2519
2532
  "record.reject": "record.reject";
2520
2533
  "record.archive": "record.archive";
2534
+ "record.unarchive": "record.unarchive";
2521
2535
  "record.review-duplicates": "record.review-duplicates";
2522
2536
  "record.register": "record.register";
2523
2537
  "record.print-certified-copies": "record.print-certified-copies";
@@ -2551,6 +2565,8 @@ declare const Address: z.ZodObject<{
2551
2565
  role: "role";
2552
2566
  event: "event";
2553
2567
  placeOfEvent: "placeOfEvent";
2568
+ notifiedIn: "notifiedIn";
2569
+ notifiedBy: "notifiedBy";
2554
2570
  declaredIn: "declaredIn";
2555
2571
  declaredBy: "declaredBy";
2556
2572
  registeredIn: "registeredIn";
@@ -75,4 +75,5 @@ export type FieldType = (typeof fieldTypes)[number];
75
75
  */
76
76
  export declare const compositeFieldTypes: ("NAME" | "ADDRESS" | "DATE_RANGE" | "FILE" | "FILE_WITH_OPTIONS" | "DATA" | "ID_READER")[];
77
77
  export declare const FieldTypesToHideInReview: ("IMAGE_VIEW" | "PARAGRAPH" | "PAGE_HEADER" | "BULLET_LIST" | "DIVIDER" | "DATA" | "ALPHA_PRINT_BUTTON" | "HTTP" | "QUERY_PARAM_READER" | "ID_READER" | "LOADER" | "ALPHA_HIDDEN")[];
78
+ export declare const HiddenFieldTypes: ("HTTP" | "QUERY_PARAM_READER" | "ALPHA_HIDDEN")[];
78
79
  //# sourceMappingURL=FieldType.d.ts.map
@@ -690,7 +690,7 @@ export declare const isHiddenFieldType: (field: {
690
690
  value: undefined;
691
691
  config: HiddenField;
692
692
  };
693
- export type NonInteractiveFieldType = Divider | PageHeader | ImageViewField | Paragraph | Heading | BulletList | DataField | AlphaPrintButton | HttpField | LinkButtonField | QueryParamReaderField | LoaderField | AutocompleteField;
693
+ export type NonInteractiveFieldType = Divider | PageHeader | ImageViewField | Paragraph | Heading | BulletList | DataField | AlphaPrintButton | LinkButtonField | LoaderField | AutocompleteField;
694
694
  export type InteractiveFieldType = Exclude<FieldConfig, NonInteractiveFieldType>;
695
695
  export declare const isNonInteractiveFieldType: (field: FieldConfig) => field is NonInteractiveFieldType;
696
696
  export {};
@@ -322,6 +322,13 @@ export declare const WorkqueueConfig: z.ZodObject<{
322
322
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
323
323
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
324
324
  }>]>, z.ZodString]>>>;
325
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
326
+ readonly INCOMPLETE: "incomplete";
327
+ readonly REJECTED: "rejected";
328
+ readonly CORRECTION_REQUESTED: "correction-requested";
329
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
330
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
331
+ }>]>, z.ZodString]>>>;
325
332
  }, z.core.$strip>>>;
326
333
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
327
334
  }, z.core.$strip>>;
@@ -632,6 +639,13 @@ export declare const WorkqueueConfig: z.ZodObject<{
632
639
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
633
640
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
634
641
  }>]>, z.ZodString]>>>;
642
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
643
+ readonly INCOMPLETE: "incomplete";
644
+ readonly REJECTED: "rejected";
645
+ readonly CORRECTION_REQUESTED: "correction-requested";
646
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
647
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
648
+ }>]>, z.ZodString]>>>;
635
649
  }, z.core.$strip>>>;
636
650
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
637
651
  }, z.core.$strip>>;
@@ -645,6 +659,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
645
659
  REJECT: "REJECT";
646
660
  MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
647
661
  ARCHIVE: "ARCHIVE";
662
+ UNARCHIVE: "UNARCHIVE";
648
663
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
649
664
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
650
665
  READ: "READ";
@@ -899,6 +914,7 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<{
899
914
  REJECT: "REJECT";
900
915
  MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
901
916
  ARCHIVE: "ARCHIVE";
917
+ UNARCHIVE: "UNARCHIVE";
902
918
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
903
919
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
904
920
  READ: "READ";
@@ -919,6 +935,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
919
935
  REJECT: "REJECT";
920
936
  MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
921
937
  ARCHIVE: "ARCHIVE";
938
+ UNARCHIVE: "UNARCHIVE";
922
939
  PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
923
940
  REQUEST_CORRECTION: "REQUEST_CORRECTION";
924
941
  READ: "READ";
@@ -1361,6 +1378,13 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1361
1378
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1362
1379
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1363
1380
  }>]>, z.ZodString]>>>;
1381
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1382
+ readonly INCOMPLETE: "incomplete";
1383
+ readonly REJECTED: "rejected";
1384
+ readonly CORRECTION_REQUESTED: "correction-requested";
1385
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1386
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
1387
+ }>]>, z.ZodString]>>>;
1364
1388
  }, z.core.$strip>>>;
1365
1389
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1366
1390
  }, z.core.$strip>, z.ZodObject<{
@@ -1670,6 +1694,13 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1670
1694
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1671
1695
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1672
1696
  }>]>, z.ZodString]>>>;
1697
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
1698
+ readonly INCOMPLETE: "incomplete";
1699
+ readonly REJECTED: "rejected";
1700
+ readonly CORRECTION_REQUESTED: "correction-requested";
1701
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1702
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
1703
+ }>]>, z.ZodString]>>>;
1673
1704
  }, z.core.$strip>>>;
1674
1705
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1675
1706
  }, z.core.$strip>>;
@@ -1980,6 +2011,13 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1980
2011
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1981
2012
  readonly EDIT_IN_PROGRESS: "edit-in-progress";
1982
2013
  }>]>, z.ZodString]>>>;
2014
+ allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
2015
+ readonly INCOMPLETE: "incomplete";
2016
+ readonly REJECTED: "rejected";
2017
+ readonly CORRECTION_REQUESTED: "correction-requested";
2018
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
2019
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
2020
+ }>]>, z.ZodString]>>>;
1983
2021
  }, z.core.$strip>>>;
1984
2022
  data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1985
2023
  }, z.core.$strip>>;
@@ -2130,6 +2168,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2130
2168
  flags?: {
2131
2169
  anyOf?: string[] | undefined;
2132
2170
  noneOf?: string[] | undefined;
2171
+ allOf?: string[] | undefined;
2133
2172
  } | undefined;
2134
2173
  data?: unknown;
2135
2174
  }[];
@@ -2268,6 +2307,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2268
2307
  flags?: {
2269
2308
  anyOf?: string[] | undefined;
2270
2309
  noneOf?: string[] | undefined;
2310
+ allOf?: string[] | undefined;
2271
2311
  } | undefined;
2272
2312
  data?: unknown;
2273
2313
  }[];
@@ -2284,7 +2324,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2284
2324
  }[];
2285
2325
  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";
2286
2326
  action?: {
2287
- type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
2327
+ type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
2288
2328
  } | undefined;
2289
2329
  emptyMessage?: {
2290
2330
  id: string;
@@ -2439,6 +2479,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2439
2479
  flags?: {
2440
2480
  anyOf?: string[] | undefined;
2441
2481
  noneOf?: string[] | undefined;
2482
+ allOf?: string[] | undefined;
2442
2483
  } | undefined;
2443
2484
  data?: unknown;
2444
2485
  }[];
@@ -2577,6 +2618,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2577
2618
  flags?: {
2578
2619
  anyOf?: string[] | undefined;
2579
2620
  noneOf?: string[] | undefined;
2621
+ allOf?: string[] | undefined;
2580
2622
  } | undefined;
2581
2623
  data?: unknown;
2582
2624
  }[];
@@ -2593,7 +2635,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2593
2635
  }[];
2594
2636
  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";
2595
2637
  action?: {
2596
- type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
2638
+ type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
2597
2639
  } | undefined;
2598
2640
  emptyMessage?: {
2599
2641
  id: string;
@@ -40,6 +40,7 @@ type ToArrayFields<T, K extends PropertyKey> = T extends unknown ? T extends obj
40
40
  */
41
41
  export type EventIndexWithAdministrativeHierarchy = Omit<ToArrayFields<EventIndex, 'createdAtLocation' | 'updatedAtLocation' | 'placeOfEvent'>, 'legalStatuses'> & {
42
42
  legalStatuses: {
43
+ NOTIFIED: ToArrayFields<ActionCreationMetadata, 'createdAtLocation'> | undefined;
43
44
  DECLARED: ToArrayFields<ActionCreationMetadata, 'createdAtLocation'> | undefined;
44
45
  REGISTERED: ToArrayFields<RegistrationCreationMetadata, 'createdAtLocation'> | undefined;
45
46
  };
@@ -20,6 +20,7 @@ export declare const ACTION_SCOPE_MAP: {
20
20
  MARK_AS_DUPLICATE: "record.review-duplicates"[];
21
21
  MARK_AS_NOT_DUPLICATE: "record.review-duplicates"[];
22
22
  ARCHIVE: "record.archive"[];
23
+ UNARCHIVE: "record.unarchive"[];
23
24
  REJECT: "record.reject"[];
24
25
  ASSIGN: null;
25
26
  UNASSIGN: null;
@@ -65,6 +65,14 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
65
65
  type: string;
66
66
  status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
67
67
  legalStatuses: {
68
+ NOTIFIED?: {
69
+ createdAt: string;
70
+ createdBy: string;
71
+ acceptedAt: string;
72
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
73
+ createdByUserType?: "user" | "system" | null | undefined;
74
+ createdByRole?: string | undefined;
75
+ } | null | undefined;
68
76
  DECLARED?: {
69
77
  createdAt: string;
70
78
  createdBy: string;
@@ -30,6 +30,15 @@ export declare function getActionUpdateMetadata(actions: Action[]): Pick<{
30
30
  * @see EventIndex for the description of the returned object.
31
31
  */
32
32
  export declare function getLegalStatuses(actions: Action[]): {
33
+ NOTIFIED: {
34
+ createdAt: string;
35
+ createdBy: string;
36
+ createdByUserType: "user" | "system";
37
+ createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
38
+ acceptedAt: string;
39
+ createdByRole: string | undefined;
40
+ registrationNumber: string | null | undefined;
41
+ } | null;
33
42
  DECLARED: {
34
43
  createdAt: string;
35
44
  createdBy: string;
@@ -1,6 +1,6 @@
1
1
  import { UUID } from '../uuid';
2
2
  import { ActionDocument, ActionUpdate } from './ActionDocument';
3
- import { ApproveCorrectionActionInput, ArchiveActionInput, AssignActionInput, DeclareActionInput, EditActionInput, MarkAsDuplicateActionInput, MarkNotDuplicateActionInput, NotifyActionInput, RegisterActionInput, RejectCorrectionActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, UnassignActionInput } from './ActionInput';
3
+ import { ApproveCorrectionActionInput, ArchiveActionInput, AssignActionInput, DeclareActionInput, EditActionInput, MarkAsDuplicateActionInput, MarkNotDuplicateActionInput, NotifyActionInput, RegisterActionInput, RejectCorrectionActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, UnarchiveActionInput, UnassignActionInput } from './ActionInput';
4
4
  import { ActionType } from './ActionType';
5
5
  import { Draft } from './Draft';
6
6
  import { EventConfig } from './EventConfig';
@@ -131,6 +131,14 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
131
131
  reason: string;
132
132
  };
133
133
  };
134
+ unarchive: (eventId: string, input?: Partial<Pick<UnarchiveActionInput, "transactionId" | "declaration" | "keepAssignment">>) => {
135
+ transactionId: string;
136
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
137
+ keepAssignment?: boolean | undefined;
138
+ type: "UNARCHIVE";
139
+ annotation: {};
140
+ eventId: string;
141
+ };
134
142
  reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput, "transactionId" | "annotation" | "keepAssignment">>) => {
135
143
  transactionId: string;
136
144
  annotation: {};
@@ -50,6 +50,14 @@ export declare function getActionConfig({ eventConfiguration, actionType, custom
50
50
  customActionType?: string;
51
51
  }): ActionConfig | undefined;
52
52
  export declare function getCustomActionFields(eventConfiguration: EventConfig, customActionType: string): FieldConfig[];
53
+ /**
54
+ * Returns the fields configured for an action's confirmation dialog.
55
+ *
56
+ * Unlike review fields and supporting copy, NOTIFY does NOT fall back to the
57
+ * DECLARE config here: dialog fields always come from the action's own
58
+ * configuration entry.
59
+ */
60
+ export declare function getActionFormFields(eventConfiguration: EventConfig, actionType: ActionType, customActionType?: string): FieldConfig[];
53
61
  export declare function getPrintCertificatePages(configuration: EventConfig): ({
54
62
  id: string;
55
63
  title: {
@@ -328,6 +336,20 @@ export declare function findLastAssignmentAction(actions: Action[]): {
328
336
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
329
337
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
330
338
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
339
+ } | {
340
+ id: string & import("zod").$brand<"UUID">;
341
+ transactionId: string;
342
+ createdByUserType: "user" | "system";
343
+ createdAt: string;
344
+ createdBy: string;
345
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
346
+ status: "Requested" | "Accepted" | "Rejected";
347
+ type: "UNARCHIVE";
348
+ createdByRole?: string | undefined;
349
+ createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
350
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
351
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
352
+ originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
331
353
  } | {
332
354
  id: string & import("zod").$brand<"UUID">;
333
355
  transactionId: string;
@@ -441,7 +463,7 @@ export declare function findLastAssignmentAction(actions: Action[]): {
441
463
  createdByUserType: "user" | "system";
442
464
  createdAt: string;
443
465
  createdBy: string;
444
- type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
466
+ type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
445
467
  status: "Rejected";
446
468
  createdByRole?: string | undefined;
447
469
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;