@nira-opencrvs/toolkit 1.9.11-rc.39d8d68

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 (77) hide show
  1. package/README.md +70 -0
  2. package/build.sh +56 -0
  3. package/dist/api/index.d.ts +11 -0
  4. package/dist/api/index.d.ts.map +1 -0
  5. package/dist/api/index.js +52 -0
  6. package/dist/commons/api/router.d.ts +4125 -0
  7. package/dist/commons/conditionals/conditionals.d.ts +824 -0
  8. package/dist/commons/conditionals/index.d.ts +2 -0
  9. package/dist/commons/conditionals/validate.d.ts +101 -0
  10. package/dist/commons/events/ActionConfig.d.ts +1609 -0
  11. package/dist/commons/events/ActionDocument.d.ts +2180 -0
  12. package/dist/commons/events/ActionInput.d.ts +1229 -0
  13. package/dist/commons/events/ActionType.d.ts +52 -0
  14. package/dist/commons/events/AdvancedSearchConfig.d.ts +1538 -0
  15. package/dist/commons/events/CompositeFieldValue.d.ts +280 -0
  16. package/dist/commons/events/Conditional.d.ts +55 -0
  17. package/dist/commons/events/Constants.d.ts +3 -0
  18. package/dist/commons/events/CountryConfigQueryInput.d.ts +4784 -0
  19. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  20. package/dist/commons/events/DeduplicationConfig.d.ts +233 -0
  21. package/dist/commons/events/Draft.d.ts +118 -0
  22. package/dist/commons/events/DynamicFieldValue.d.ts +139 -0
  23. package/dist/commons/events/EventConfig.d.ts +2255 -0
  24. package/dist/commons/events/EventConfigInput.d.ts +10 -0
  25. package/dist/commons/events/EventDocument.d.ts +1457 -0
  26. package/dist/commons/events/EventIndex.d.ts +1134 -0
  27. package/dist/commons/events/EventInput.d.ts +13 -0
  28. package/dist/commons/events/EventMetadata.d.ts +413 -0
  29. package/dist/commons/events/FieldConfig.d.ts +12935 -0
  30. package/dist/commons/events/FieldType.d.ts +55 -0
  31. package/dist/commons/events/FieldTypeMapping.d.ts +1289 -0
  32. package/dist/commons/events/FieldValue.d.ts +512 -0
  33. package/dist/commons/events/FileUtils.d.ts +4 -0
  34. package/dist/commons/events/FormConfig.d.ts +755 -0
  35. package/dist/commons/events/PageConfig.d.ts +342 -0
  36. package/dist/commons/events/PlainDate.d.ts +19 -0
  37. package/dist/commons/events/SummaryConfig.d.ts +170 -0
  38. package/dist/commons/events/TemplateConfig.d.ts +66 -0
  39. package/dist/commons/events/TranslationConfig.d.ts +15 -0
  40. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  41. package/dist/commons/events/WorkqueueConfig.d.ts +7957 -0
  42. package/dist/commons/events/deduplication.d.ts +69 -0
  43. package/dist/commons/events/defineConfig.d.ts +234 -0
  44. package/dist/commons/events/event.d.ts +80 -0
  45. package/dist/commons/events/field.d.ts +514 -0
  46. package/dist/commons/events/index.d.ts +45 -0
  47. package/dist/commons/events/locations.d.ts +24 -0
  48. package/dist/commons/events/scopes.d.ts +55 -0
  49. package/dist/commons/events/serializer.d.ts +2 -0
  50. package/dist/commons/events/state/availableActions.d.ts +6 -0
  51. package/dist/commons/events/state/flags.d.ts +4 -0
  52. package/dist/commons/events/state/index.d.ts +119 -0
  53. package/dist/commons/events/state/utils.d.ts +311 -0
  54. package/dist/commons/events/test.utils.d.ts +248 -0
  55. package/dist/commons/events/transactions.d.ts +2 -0
  56. package/dist/commons/events/utils.d.ts +486 -0
  57. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  58. package/dist/commons/notification/UserNotifications.d.ts +762 -0
  59. package/dist/commons/notification/index.d.ts +2 -0
  60. package/dist/conditionals/index.d.ts +2 -0
  61. package/dist/conditionals/index.d.ts.map +1 -0
  62. package/dist/conditionals/index.js +689 -0
  63. package/dist/events/deduplication.d.ts +69 -0
  64. package/dist/events/deduplication.d.ts.map +1 -0
  65. package/dist/events/deduplication.js +101 -0
  66. package/dist/events/index.d.ts +2 -0
  67. package/dist/events/index.d.ts.map +1 -0
  68. package/dist/events/index.js +9327 -0
  69. package/dist/notification/index.d.ts +2 -0
  70. package/dist/notification/index.d.ts.map +1 -0
  71. package/dist/notification/index.js +6674 -0
  72. package/dist/scopes/index.d.ts +385 -0
  73. package/dist/scopes/index.d.ts.map +1 -0
  74. package/dist/scopes/index.js +349 -0
  75. package/package.json +40 -0
  76. package/tsconfig.json +27 -0
  77. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,1457 @@
1
+ import { z } from 'zod';
2
+ export declare const EventDocument: z.ZodObject<{
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
+ type: z.ZodString;
5
+ createdAt: z.ZodString;
6
+ updatedAt: z.ZodString;
7
+ actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
+ id: z.ZodBranded<z.ZodString, "UUID">;
9
+ transactionId: z.ZodString;
10
+ createdByUserType: z.ZodEnum<["user", "system"]>;
11
+ createdAt: z.ZodString;
12
+ createdBy: z.ZodString;
13
+ createdByRole: z.ZodString;
14
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
16
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
17
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
18
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
19
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
20
+ }, {
21
+ type: z.ZodLiteral<"CREATE">;
22
+ }>, "strip", z.ZodTypeAny, {
23
+ type: "CREATE";
24
+ id: string & z.BRAND<"UUID">;
25
+ status: "Rejected" | "Requested" | "Accepted";
26
+ transactionId: string;
27
+ createdByUserType: "system" | "user";
28
+ createdAt: string;
29
+ createdBy: string;
30
+ createdByRole: string;
31
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
32
+ createdBySignature?: string | null | undefined;
33
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
34
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
35
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
36
+ }, {
37
+ type: "CREATE";
38
+ id: string;
39
+ status: "Rejected" | "Requested" | "Accepted";
40
+ transactionId: string;
41
+ createdByUserType: "system" | "user";
42
+ createdAt: string;
43
+ createdBy: string;
44
+ createdByRole: string;
45
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
46
+ createdBySignature?: string | null | undefined;
47
+ createdAtLocation?: string | null | undefined;
48
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
49
+ originalActionId?: string | null | undefined;
50
+ }>, z.ZodObject<z.objectUtil.extendShape<{
51
+ id: z.ZodBranded<z.ZodString, "UUID">;
52
+ transactionId: z.ZodString;
53
+ createdByUserType: z.ZodEnum<["user", "system"]>;
54
+ createdAt: z.ZodString;
55
+ createdBy: z.ZodString;
56
+ createdByRole: z.ZodString;
57
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
59
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
60
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
61
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
62
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
63
+ }, {
64
+ type: z.ZodLiteral<"VALIDATE">;
65
+ }>, "strip", z.ZodTypeAny, {
66
+ type: "VALIDATE";
67
+ id: string & z.BRAND<"UUID">;
68
+ status: "Rejected" | "Requested" | "Accepted";
69
+ transactionId: string;
70
+ createdByUserType: "system" | "user";
71
+ createdAt: string;
72
+ createdBy: string;
73
+ createdByRole: string;
74
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
75
+ createdBySignature?: string | null | undefined;
76
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
77
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
78
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
79
+ }, {
80
+ type: "VALIDATE";
81
+ id: string;
82
+ status: "Rejected" | "Requested" | "Accepted";
83
+ transactionId: string;
84
+ createdByUserType: "system" | "user";
85
+ createdAt: string;
86
+ createdBy: string;
87
+ createdByRole: string;
88
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
89
+ createdBySignature?: string | null | undefined;
90
+ createdAtLocation?: string | null | undefined;
91
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
92
+ originalActionId?: string | null | undefined;
93
+ }>, z.ZodObject<z.objectUtil.extendShape<{
94
+ id: z.ZodBranded<z.ZodString, "UUID">;
95
+ transactionId: z.ZodString;
96
+ createdByUserType: z.ZodEnum<["user", "system"]>;
97
+ createdAt: z.ZodString;
98
+ createdBy: z.ZodString;
99
+ createdByRole: z.ZodString;
100
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
102
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
103
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
104
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
105
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
106
+ }, {
107
+ type: z.ZodLiteral<"REJECT">;
108
+ content: z.ZodObject<{
109
+ reason: z.ZodString;
110
+ }, "strip", z.ZodTypeAny, {
111
+ reason: string;
112
+ }, {
113
+ reason: string;
114
+ }>;
115
+ }>, "strip", z.ZodTypeAny, {
116
+ type: "REJECT";
117
+ id: string & z.BRAND<"UUID">;
118
+ status: "Rejected" | "Requested" | "Accepted";
119
+ content: {
120
+ reason: string;
121
+ };
122
+ transactionId: string;
123
+ createdByUserType: "system" | "user";
124
+ createdAt: string;
125
+ createdBy: string;
126
+ createdByRole: string;
127
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
128
+ createdBySignature?: string | null | undefined;
129
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
130
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
131
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
132
+ }, {
133
+ type: "REJECT";
134
+ id: string;
135
+ status: "Rejected" | "Requested" | "Accepted";
136
+ content: {
137
+ reason: string;
138
+ };
139
+ transactionId: string;
140
+ createdByUserType: "system" | "user";
141
+ createdAt: string;
142
+ createdBy: string;
143
+ createdByRole: string;
144
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
145
+ createdBySignature?: string | null | undefined;
146
+ createdAtLocation?: string | null | undefined;
147
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
148
+ originalActionId?: string | null | undefined;
149
+ }>, z.ZodObject<z.objectUtil.extendShape<{
150
+ id: z.ZodBranded<z.ZodString, "UUID">;
151
+ transactionId: z.ZodString;
152
+ createdByUserType: z.ZodEnum<["user", "system"]>;
153
+ createdAt: z.ZodString;
154
+ createdBy: z.ZodString;
155
+ createdByRole: z.ZodString;
156
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
158
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
159
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
160
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
161
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
162
+ }, {
163
+ type: z.ZodLiteral<"DUPLICATE_DETECTED">;
164
+ content: z.ZodObject<{
165
+ duplicates: z.ZodArray<z.ZodObject<{
166
+ id: z.ZodBranded<z.ZodString, "UUID">;
167
+ trackingId: z.ZodString;
168
+ }, "strip", z.ZodTypeAny, {
169
+ id: string & z.BRAND<"UUID">;
170
+ trackingId: string;
171
+ }, {
172
+ id: string;
173
+ trackingId: string;
174
+ }>, "many">;
175
+ }, "strip", z.ZodTypeAny, {
176
+ duplicates: {
177
+ id: string & z.BRAND<"UUID">;
178
+ trackingId: string;
179
+ }[];
180
+ }, {
181
+ duplicates: {
182
+ id: string;
183
+ trackingId: string;
184
+ }[];
185
+ }>;
186
+ }>, "strip", z.ZodTypeAny, {
187
+ type: "DUPLICATE_DETECTED";
188
+ id: string & z.BRAND<"UUID">;
189
+ status: "Rejected" | "Requested" | "Accepted";
190
+ content: {
191
+ duplicates: {
192
+ id: string & z.BRAND<"UUID">;
193
+ trackingId: string;
194
+ }[];
195
+ };
196
+ transactionId: string;
197
+ createdByUserType: "system" | "user";
198
+ createdAt: string;
199
+ createdBy: string;
200
+ createdByRole: string;
201
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
202
+ createdBySignature?: string | null | undefined;
203
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
204
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
205
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
206
+ }, {
207
+ type: "DUPLICATE_DETECTED";
208
+ id: string;
209
+ status: "Rejected" | "Requested" | "Accepted";
210
+ content: {
211
+ duplicates: {
212
+ id: string;
213
+ trackingId: string;
214
+ }[];
215
+ };
216
+ transactionId: string;
217
+ createdByUserType: "system" | "user";
218
+ createdAt: string;
219
+ createdBy: string;
220
+ createdByRole: string;
221
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
222
+ createdBySignature?: string | null | undefined;
223
+ createdAtLocation?: string | null | undefined;
224
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
225
+ originalActionId?: string | null | undefined;
226
+ }>, z.ZodObject<z.objectUtil.extendShape<{
227
+ id: z.ZodBranded<z.ZodString, "UUID">;
228
+ transactionId: z.ZodString;
229
+ createdByUserType: z.ZodEnum<["user", "system"]>;
230
+ createdAt: z.ZodString;
231
+ createdBy: z.ZodString;
232
+ createdByRole: z.ZodString;
233
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
235
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
236
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
237
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
238
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
239
+ }, {
240
+ type: z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">;
241
+ }>, "strip", z.ZodTypeAny, {
242
+ type: "MARK_AS_NOT_DUPLICATE";
243
+ id: string & z.BRAND<"UUID">;
244
+ status: "Rejected" | "Requested" | "Accepted";
245
+ transactionId: string;
246
+ createdByUserType: "system" | "user";
247
+ createdAt: string;
248
+ createdBy: string;
249
+ createdByRole: string;
250
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
251
+ createdBySignature?: string | null | undefined;
252
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
253
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
254
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
255
+ }, {
256
+ type: "MARK_AS_NOT_DUPLICATE";
257
+ id: string;
258
+ status: "Rejected" | "Requested" | "Accepted";
259
+ transactionId: string;
260
+ createdByUserType: "system" | "user";
261
+ createdAt: string;
262
+ createdBy: string;
263
+ createdByRole: string;
264
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
265
+ createdBySignature?: string | null | undefined;
266
+ createdAtLocation?: string | null | undefined;
267
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
268
+ originalActionId?: string | null | undefined;
269
+ }>, z.ZodObject<z.objectUtil.extendShape<{
270
+ id: z.ZodBranded<z.ZodString, "UUID">;
271
+ transactionId: z.ZodString;
272
+ createdByUserType: z.ZodEnum<["user", "system"]>;
273
+ createdAt: z.ZodString;
274
+ createdBy: z.ZodString;
275
+ createdByRole: z.ZodString;
276
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
278
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
279
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
280
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
281
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
282
+ }, {
283
+ type: z.ZodLiteral<"MARK_AS_DUPLICATE">;
284
+ content: z.ZodOptional<z.ZodObject<{
285
+ duplicateOf: z.ZodBranded<z.ZodString, "UUID">;
286
+ }, "strip", z.ZodTypeAny, {
287
+ duplicateOf: string & z.BRAND<"UUID">;
288
+ }, {
289
+ duplicateOf: string;
290
+ }>>;
291
+ }>, "strip", z.ZodTypeAny, {
292
+ type: "MARK_AS_DUPLICATE";
293
+ id: string & z.BRAND<"UUID">;
294
+ status: "Rejected" | "Requested" | "Accepted";
295
+ transactionId: string;
296
+ createdByUserType: "system" | "user";
297
+ createdAt: string;
298
+ createdBy: string;
299
+ createdByRole: string;
300
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
301
+ content?: {
302
+ duplicateOf: string & z.BRAND<"UUID">;
303
+ } | undefined;
304
+ createdBySignature?: string | null | undefined;
305
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
306
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
307
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
308
+ }, {
309
+ type: "MARK_AS_DUPLICATE";
310
+ id: string;
311
+ status: "Rejected" | "Requested" | "Accepted";
312
+ transactionId: string;
313
+ createdByUserType: "system" | "user";
314
+ createdAt: string;
315
+ createdBy: string;
316
+ createdByRole: string;
317
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
318
+ content?: {
319
+ duplicateOf: string;
320
+ } | undefined;
321
+ createdBySignature?: string | null | undefined;
322
+ createdAtLocation?: string | null | undefined;
323
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
324
+ originalActionId?: string | null | undefined;
325
+ }>, z.ZodObject<z.objectUtil.extendShape<{
326
+ id: z.ZodBranded<z.ZodString, "UUID">;
327
+ transactionId: z.ZodString;
328
+ createdByUserType: z.ZodEnum<["user", "system"]>;
329
+ createdAt: z.ZodString;
330
+ createdBy: z.ZodString;
331
+ createdByRole: z.ZodString;
332
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
334
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
335
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
336
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
337
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
338
+ }, {
339
+ type: z.ZodLiteral<"ARCHIVE">;
340
+ content: z.ZodObject<{
341
+ reason: z.ZodString;
342
+ }, "strip", z.ZodTypeAny, {
343
+ reason: string;
344
+ }, {
345
+ reason: string;
346
+ }>;
347
+ }>, "strip", z.ZodTypeAny, {
348
+ type: "ARCHIVE";
349
+ id: string & z.BRAND<"UUID">;
350
+ status: "Rejected" | "Requested" | "Accepted";
351
+ content: {
352
+ reason: string;
353
+ };
354
+ transactionId: string;
355
+ createdByUserType: "system" | "user";
356
+ createdAt: string;
357
+ createdBy: string;
358
+ createdByRole: string;
359
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
360
+ createdBySignature?: string | null | undefined;
361
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
362
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
363
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
364
+ }, {
365
+ type: "ARCHIVE";
366
+ id: string;
367
+ status: "Rejected" | "Requested" | "Accepted";
368
+ content: {
369
+ reason: string;
370
+ };
371
+ transactionId: string;
372
+ createdByUserType: "system" | "user";
373
+ createdAt: string;
374
+ createdBy: string;
375
+ createdByRole: string;
376
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
377
+ createdBySignature?: string | null | undefined;
378
+ createdAtLocation?: string | null | undefined;
379
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
380
+ originalActionId?: string | null | undefined;
381
+ }>, z.ZodObject<z.objectUtil.extendShape<{
382
+ id: z.ZodBranded<z.ZodString, "UUID">;
383
+ transactionId: z.ZodString;
384
+ createdByUserType: z.ZodEnum<["user", "system"]>;
385
+ createdAt: z.ZodString;
386
+ createdBy: z.ZodString;
387
+ createdByRole: z.ZodString;
388
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
389
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
390
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
391
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
392
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
393
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
394
+ }, {
395
+ type: z.ZodLiteral<"NOTIFY">;
396
+ }>, "strip", z.ZodTypeAny, {
397
+ type: "NOTIFY";
398
+ id: string & z.BRAND<"UUID">;
399
+ status: "Rejected" | "Requested" | "Accepted";
400
+ transactionId: string;
401
+ createdByUserType: "system" | "user";
402
+ createdAt: string;
403
+ createdBy: string;
404
+ createdByRole: string;
405
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
406
+ createdBySignature?: string | null | undefined;
407
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
408
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
409
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
410
+ }, {
411
+ type: "NOTIFY";
412
+ id: string;
413
+ status: "Rejected" | "Requested" | "Accepted";
414
+ transactionId: string;
415
+ createdByUserType: "system" | "user";
416
+ createdAt: string;
417
+ createdBy: string;
418
+ createdByRole: string;
419
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
420
+ createdBySignature?: string | null | undefined;
421
+ createdAtLocation?: string | null | undefined;
422
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
423
+ originalActionId?: string | null | undefined;
424
+ }>, z.ZodObject<z.objectUtil.extendShape<{
425
+ id: z.ZodBranded<z.ZodString, "UUID">;
426
+ transactionId: z.ZodString;
427
+ createdByUserType: z.ZodEnum<["user", "system"]>;
428
+ createdAt: z.ZodString;
429
+ createdBy: z.ZodString;
430
+ createdByRole: z.ZodString;
431
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
432
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
433
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
434
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
435
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
436
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
437
+ }, {
438
+ type: z.ZodLiteral<"REGISTER">;
439
+ registrationNumber: z.ZodOptional<z.ZodString>;
440
+ }>, "strip", z.ZodTypeAny, {
441
+ type: "REGISTER";
442
+ id: string & z.BRAND<"UUID">;
443
+ status: "Rejected" | "Requested" | "Accepted";
444
+ transactionId: string;
445
+ createdByUserType: "system" | "user";
446
+ createdAt: string;
447
+ createdBy: string;
448
+ createdByRole: string;
449
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
450
+ createdBySignature?: string | null | undefined;
451
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
452
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
453
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
454
+ registrationNumber?: string | undefined;
455
+ }, {
456
+ type: "REGISTER";
457
+ id: string;
458
+ status: "Rejected" | "Requested" | "Accepted";
459
+ transactionId: string;
460
+ createdByUserType: "system" | "user";
461
+ createdAt: string;
462
+ createdBy: string;
463
+ createdByRole: string;
464
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
465
+ createdBySignature?: string | null | undefined;
466
+ createdAtLocation?: string | null | undefined;
467
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
468
+ originalActionId?: string | null | undefined;
469
+ registrationNumber?: string | undefined;
470
+ }>, z.ZodObject<z.objectUtil.extendShape<{
471
+ id: z.ZodBranded<z.ZodString, "UUID">;
472
+ transactionId: z.ZodString;
473
+ createdByUserType: z.ZodEnum<["user", "system"]>;
474
+ createdAt: z.ZodString;
475
+ createdBy: z.ZodString;
476
+ createdByRole: z.ZodString;
477
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
478
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
479
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
480
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
481
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
482
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
483
+ }, {
484
+ type: z.ZodLiteral<"DECLARE">;
485
+ }>, "strip", z.ZodTypeAny, {
486
+ type: "DECLARE";
487
+ id: string & z.BRAND<"UUID">;
488
+ status: "Rejected" | "Requested" | "Accepted";
489
+ transactionId: string;
490
+ createdByUserType: "system" | "user";
491
+ createdAt: string;
492
+ createdBy: string;
493
+ createdByRole: string;
494
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
495
+ createdBySignature?: string | null | undefined;
496
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
497
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
498
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
499
+ }, {
500
+ type: "DECLARE";
501
+ id: string;
502
+ status: "Rejected" | "Requested" | "Accepted";
503
+ transactionId: string;
504
+ createdByUserType: "system" | "user";
505
+ createdAt: string;
506
+ createdBy: string;
507
+ createdByRole: string;
508
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
509
+ createdBySignature?: string | null | undefined;
510
+ createdAtLocation?: string | null | undefined;
511
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
512
+ originalActionId?: string | null | undefined;
513
+ }>, z.ZodObject<z.objectUtil.extendShape<{
514
+ id: z.ZodBranded<z.ZodString, "UUID">;
515
+ transactionId: z.ZodString;
516
+ createdByUserType: z.ZodEnum<["user", "system"]>;
517
+ createdAt: z.ZodString;
518
+ createdBy: z.ZodString;
519
+ createdByRole: z.ZodString;
520
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
521
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
522
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
523
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
524
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
525
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
526
+ }, {
527
+ type: z.ZodLiteral<"ASSIGN">;
528
+ assignedTo: z.ZodString;
529
+ }>, "strip", z.ZodTypeAny, {
530
+ type: "ASSIGN";
531
+ id: string & z.BRAND<"UUID">;
532
+ status: "Rejected" | "Requested" | "Accepted";
533
+ transactionId: string;
534
+ createdByUserType: "system" | "user";
535
+ createdAt: string;
536
+ createdBy: string;
537
+ createdByRole: string;
538
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
539
+ assignedTo: string;
540
+ createdBySignature?: string | null | undefined;
541
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
542
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
543
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
544
+ }, {
545
+ type: "ASSIGN";
546
+ id: string;
547
+ status: "Rejected" | "Requested" | "Accepted";
548
+ transactionId: string;
549
+ createdByUserType: "system" | "user";
550
+ createdAt: string;
551
+ createdBy: string;
552
+ createdByRole: string;
553
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
554
+ assignedTo: string;
555
+ createdBySignature?: string | null | undefined;
556
+ createdAtLocation?: string | null | undefined;
557
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
558
+ originalActionId?: string | null | undefined;
559
+ }>, z.ZodObject<z.objectUtil.extendShape<{
560
+ id: z.ZodBranded<z.ZodString, "UUID">;
561
+ transactionId: z.ZodString;
562
+ createdByUserType: z.ZodEnum<["user", "system"]>;
563
+ createdAt: z.ZodString;
564
+ createdBy: z.ZodString;
565
+ createdByRole: z.ZodString;
566
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
568
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
569
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
570
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
571
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
572
+ }, {
573
+ type: z.ZodLiteral<"REQUEST_CORRECTION">;
574
+ }>, "strip", z.ZodTypeAny, {
575
+ type: "REQUEST_CORRECTION";
576
+ id: string & z.BRAND<"UUID">;
577
+ status: "Rejected" | "Requested" | "Accepted";
578
+ transactionId: string;
579
+ createdByUserType: "system" | "user";
580
+ createdAt: string;
581
+ createdBy: string;
582
+ createdByRole: string;
583
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
584
+ createdBySignature?: string | null | undefined;
585
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
586
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
587
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
588
+ }, {
589
+ type: "REQUEST_CORRECTION";
590
+ id: string;
591
+ status: "Rejected" | "Requested" | "Accepted";
592
+ transactionId: string;
593
+ createdByUserType: "system" | "user";
594
+ createdAt: string;
595
+ createdBy: string;
596
+ createdByRole: string;
597
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
598
+ createdBySignature?: string | null | undefined;
599
+ createdAtLocation?: string | null | undefined;
600
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
601
+ originalActionId?: string | null | undefined;
602
+ }>, z.ZodObject<z.objectUtil.extendShape<{
603
+ id: z.ZodBranded<z.ZodString, "UUID">;
604
+ transactionId: z.ZodString;
605
+ createdByUserType: z.ZodEnum<["user", "system"]>;
606
+ createdAt: z.ZodString;
607
+ createdBy: z.ZodString;
608
+ createdByRole: z.ZodString;
609
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
610
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
611
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
612
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
613
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
614
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
615
+ }, {
616
+ type: z.ZodLiteral<"APPROVE_CORRECTION">;
617
+ requestId: z.ZodString;
618
+ }>, "strip", z.ZodTypeAny, {
619
+ type: "APPROVE_CORRECTION";
620
+ id: string & z.BRAND<"UUID">;
621
+ status: "Rejected" | "Requested" | "Accepted";
622
+ transactionId: string;
623
+ createdByUserType: "system" | "user";
624
+ createdAt: string;
625
+ createdBy: string;
626
+ createdByRole: string;
627
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
628
+ requestId: string;
629
+ createdBySignature?: string | null | undefined;
630
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
631
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
632
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
633
+ }, {
634
+ type: "APPROVE_CORRECTION";
635
+ id: string;
636
+ status: "Rejected" | "Requested" | "Accepted";
637
+ transactionId: string;
638
+ createdByUserType: "system" | "user";
639
+ createdAt: string;
640
+ createdBy: string;
641
+ createdByRole: string;
642
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
643
+ requestId: string;
644
+ createdBySignature?: string | null | undefined;
645
+ createdAtLocation?: string | null | undefined;
646
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
647
+ originalActionId?: string | null | undefined;
648
+ }>, z.ZodObject<z.objectUtil.extendShape<{
649
+ id: z.ZodBranded<z.ZodString, "UUID">;
650
+ transactionId: z.ZodString;
651
+ createdByUserType: z.ZodEnum<["user", "system"]>;
652
+ createdAt: z.ZodString;
653
+ createdBy: z.ZodString;
654
+ createdByRole: z.ZodString;
655
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
656
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
657
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
658
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
659
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
660
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
661
+ }, {
662
+ type: z.ZodLiteral<"REJECT_CORRECTION">;
663
+ requestId: z.ZodString;
664
+ content: z.ZodObject<{
665
+ reason: z.ZodString;
666
+ }, "strip", z.ZodTypeAny, {
667
+ reason: string;
668
+ }, {
669
+ reason: string;
670
+ }>;
671
+ }>, "strip", z.ZodTypeAny, {
672
+ type: "REJECT_CORRECTION";
673
+ id: string & z.BRAND<"UUID">;
674
+ status: "Rejected" | "Requested" | "Accepted";
675
+ content: {
676
+ reason: string;
677
+ };
678
+ transactionId: string;
679
+ createdByUserType: "system" | "user";
680
+ createdAt: string;
681
+ createdBy: string;
682
+ createdByRole: string;
683
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
684
+ requestId: string;
685
+ createdBySignature?: string | null | undefined;
686
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
687
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
688
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
689
+ }, {
690
+ type: "REJECT_CORRECTION";
691
+ id: string;
692
+ status: "Rejected" | "Requested" | "Accepted";
693
+ content: {
694
+ reason: string;
695
+ };
696
+ transactionId: string;
697
+ createdByUserType: "system" | "user";
698
+ createdAt: string;
699
+ createdBy: string;
700
+ createdByRole: string;
701
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
702
+ requestId: string;
703
+ createdBySignature?: string | null | undefined;
704
+ createdAtLocation?: string | null | undefined;
705
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
706
+ originalActionId?: string | null | undefined;
707
+ }>, z.ZodObject<z.objectUtil.extendShape<{
708
+ id: z.ZodBranded<z.ZodString, "UUID">;
709
+ transactionId: z.ZodString;
710
+ createdByUserType: z.ZodEnum<["user", "system"]>;
711
+ createdAt: z.ZodString;
712
+ createdBy: z.ZodString;
713
+ createdByRole: z.ZodString;
714
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
715
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
716
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
717
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
718
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
719
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
720
+ }, {
721
+ type: z.ZodLiteral<"UNASSIGN">;
722
+ }>, "strip", z.ZodTypeAny, {
723
+ type: "UNASSIGN";
724
+ id: string & z.BRAND<"UUID">;
725
+ status: "Rejected" | "Requested" | "Accepted";
726
+ transactionId: string;
727
+ createdByUserType: "system" | "user";
728
+ createdAt: string;
729
+ createdBy: string;
730
+ createdByRole: string;
731
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
732
+ createdBySignature?: string | null | undefined;
733
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
734
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
735
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
736
+ }, {
737
+ type: "UNASSIGN";
738
+ id: string;
739
+ status: "Rejected" | "Requested" | "Accepted";
740
+ transactionId: string;
741
+ createdByUserType: "system" | "user";
742
+ createdAt: string;
743
+ createdBy: string;
744
+ createdByRole: string;
745
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
746
+ createdBySignature?: string | null | undefined;
747
+ createdAtLocation?: string | null | undefined;
748
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
749
+ originalActionId?: string | null | undefined;
750
+ }>, z.ZodObject<z.objectUtil.extendShape<{
751
+ id: z.ZodBranded<z.ZodString, "UUID">;
752
+ transactionId: z.ZodString;
753
+ createdByUserType: z.ZodEnum<["user", "system"]>;
754
+ createdAt: z.ZodString;
755
+ createdBy: z.ZodString;
756
+ createdByRole: z.ZodString;
757
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
758
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
759
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
760
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
761
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
762
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
763
+ }, {
764
+ type: z.ZodLiteral<"PRINT_CERTIFICATE">;
765
+ content: z.ZodNullable<z.ZodOptional<z.ZodObject<{
766
+ templateId: z.ZodOptional<z.ZodString>;
767
+ }, "strip", z.ZodTypeAny, {
768
+ templateId?: string | undefined;
769
+ }, {
770
+ templateId?: string | undefined;
771
+ }>>>;
772
+ }>, "strip", z.ZodTypeAny, {
773
+ type: "PRINT_CERTIFICATE";
774
+ id: string & z.BRAND<"UUID">;
775
+ status: "Rejected" | "Requested" | "Accepted";
776
+ transactionId: string;
777
+ createdByUserType: "system" | "user";
778
+ createdAt: string;
779
+ createdBy: string;
780
+ createdByRole: string;
781
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
782
+ content?: {
783
+ templateId?: string | undefined;
784
+ } | null | undefined;
785
+ createdBySignature?: string | null | undefined;
786
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
787
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
788
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
789
+ }, {
790
+ type: "PRINT_CERTIFICATE";
791
+ id: string;
792
+ status: "Rejected" | "Requested" | "Accepted";
793
+ transactionId: string;
794
+ createdByUserType: "system" | "user";
795
+ createdAt: string;
796
+ createdBy: string;
797
+ createdByRole: string;
798
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
799
+ content?: {
800
+ templateId?: string | undefined;
801
+ } | null | undefined;
802
+ createdBySignature?: string | null | undefined;
803
+ createdAtLocation?: string | null | undefined;
804
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
805
+ originalActionId?: string | null | undefined;
806
+ }>, z.ZodObject<z.objectUtil.extendShape<{
807
+ id: z.ZodBranded<z.ZodString, "UUID">;
808
+ transactionId: z.ZodString;
809
+ createdByUserType: z.ZodEnum<["user", "system"]>;
810
+ createdAt: z.ZodString;
811
+ createdBy: z.ZodString;
812
+ createdByRole: z.ZodString;
813
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
814
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
815
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
816
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
817
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
818
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
819
+ }, {
820
+ type: z.ZodLiteral<"READ">;
821
+ }>, "strip", z.ZodTypeAny, {
822
+ type: "READ";
823
+ id: string & z.BRAND<"UUID">;
824
+ status: "Rejected" | "Requested" | "Accepted";
825
+ transactionId: string;
826
+ createdByUserType: "system" | "user";
827
+ createdAt: string;
828
+ createdBy: string;
829
+ createdByRole: string;
830
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
831
+ createdBySignature?: string | null | undefined;
832
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
833
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
834
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
835
+ }, {
836
+ type: "READ";
837
+ id: string;
838
+ status: "Rejected" | "Requested" | "Accepted";
839
+ transactionId: string;
840
+ createdByUserType: "system" | "user";
841
+ createdAt: string;
842
+ createdBy: string;
843
+ createdByRole: string;
844
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
845
+ createdBySignature?: string | null | undefined;
846
+ createdAtLocation?: string | null | undefined;
847
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
848
+ originalActionId?: string | null | undefined;
849
+ }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
850
+ id: z.ZodBranded<z.ZodString, "UUID">;
851
+ transactionId: z.ZodString;
852
+ createdByUserType: z.ZodEnum<["user", "system"]>;
853
+ createdAt: z.ZodString;
854
+ createdBy: z.ZodString;
855
+ createdByRole: z.ZodString;
856
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
857
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
858
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>;
859
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>>;
860
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
861
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
862
+ }, "declaration" | "annotation">, {
863
+ type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION"]>;
864
+ status: z.ZodLiteral<"Rejected">;
865
+ }>, "strip", z.ZodTypeAny, {
866
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
867
+ id: string & z.BRAND<"UUID">;
868
+ status: "Rejected";
869
+ transactionId: string;
870
+ createdByUserType: "system" | "user";
871
+ createdAt: string;
872
+ createdBy: string;
873
+ createdByRole: string;
874
+ createdBySignature?: string | null | undefined;
875
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
876
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
877
+ }, {
878
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
879
+ id: string;
880
+ status: "Rejected";
881
+ transactionId: string;
882
+ createdByUserType: "system" | "user";
883
+ createdAt: string;
884
+ createdBy: string;
885
+ createdByRole: string;
886
+ createdBySignature?: string | null | undefined;
887
+ createdAtLocation?: string | null | undefined;
888
+ originalActionId?: string | null | undefined;
889
+ }>]>, "many">;
890
+ trackingId: z.ZodString;
891
+ }, "strip", z.ZodTypeAny, {
892
+ type: string;
893
+ id: string & z.BRAND<"UUID">;
894
+ createdAt: string;
895
+ trackingId: string;
896
+ updatedAt: string;
897
+ actions: ({
898
+ type: "ASSIGN";
899
+ id: string & z.BRAND<"UUID">;
900
+ status: "Rejected" | "Requested" | "Accepted";
901
+ transactionId: string;
902
+ createdByUserType: "system" | "user";
903
+ createdAt: string;
904
+ createdBy: string;
905
+ createdByRole: string;
906
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
907
+ assignedTo: string;
908
+ createdBySignature?: string | null | undefined;
909
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
910
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
911
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
912
+ } | {
913
+ type: "UNASSIGN";
914
+ id: string & z.BRAND<"UUID">;
915
+ status: "Rejected" | "Requested" | "Accepted";
916
+ transactionId: string;
917
+ createdByUserType: "system" | "user";
918
+ createdAt: string;
919
+ createdBy: string;
920
+ createdByRole: string;
921
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
922
+ createdBySignature?: string | null | undefined;
923
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
924
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
925
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
926
+ } | {
927
+ type: "REGISTER";
928
+ id: string & z.BRAND<"UUID">;
929
+ status: "Rejected" | "Requested" | "Accepted";
930
+ transactionId: string;
931
+ createdByUserType: "system" | "user";
932
+ createdAt: string;
933
+ createdBy: string;
934
+ createdByRole: string;
935
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
936
+ createdBySignature?: string | null | undefined;
937
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
938
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
939
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
940
+ registrationNumber?: string | undefined;
941
+ } | {
942
+ type: "DECLARE";
943
+ id: string & z.BRAND<"UUID">;
944
+ status: "Rejected" | "Requested" | "Accepted";
945
+ transactionId: string;
946
+ createdByUserType: "system" | "user";
947
+ createdAt: string;
948
+ createdBy: string;
949
+ createdByRole: string;
950
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
951
+ createdBySignature?: string | null | undefined;
952
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
953
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
954
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
955
+ } | {
956
+ type: "VALIDATE";
957
+ id: string & z.BRAND<"UUID">;
958
+ status: "Rejected" | "Requested" | "Accepted";
959
+ transactionId: string;
960
+ createdByUserType: "system" | "user";
961
+ createdAt: string;
962
+ createdBy: string;
963
+ createdByRole: string;
964
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
965
+ createdBySignature?: string | null | undefined;
966
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
967
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
968
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
969
+ } | {
970
+ type: "REJECT";
971
+ id: string & z.BRAND<"UUID">;
972
+ status: "Rejected" | "Requested" | "Accepted";
973
+ content: {
974
+ reason: string;
975
+ };
976
+ transactionId: string;
977
+ createdByUserType: "system" | "user";
978
+ createdAt: string;
979
+ createdBy: string;
980
+ createdByRole: string;
981
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
982
+ createdBySignature?: string | null | undefined;
983
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
984
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
985
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
986
+ } | {
987
+ type: "DUPLICATE_DETECTED";
988
+ id: string & z.BRAND<"UUID">;
989
+ status: "Rejected" | "Requested" | "Accepted";
990
+ content: {
991
+ duplicates: {
992
+ id: string & z.BRAND<"UUID">;
993
+ trackingId: string;
994
+ }[];
995
+ };
996
+ transactionId: string;
997
+ createdByUserType: "system" | "user";
998
+ createdAt: string;
999
+ createdBy: string;
1000
+ createdByRole: string;
1001
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1002
+ createdBySignature?: string | null | undefined;
1003
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1004
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1005
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1006
+ } | {
1007
+ type: "MARK_AS_NOT_DUPLICATE";
1008
+ id: string & z.BRAND<"UUID">;
1009
+ status: "Rejected" | "Requested" | "Accepted";
1010
+ transactionId: string;
1011
+ createdByUserType: "system" | "user";
1012
+ createdAt: string;
1013
+ createdBy: string;
1014
+ createdByRole: string;
1015
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1016
+ createdBySignature?: string | null | undefined;
1017
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1018
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1019
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1020
+ } | {
1021
+ type: "MARK_AS_DUPLICATE";
1022
+ id: string & z.BRAND<"UUID">;
1023
+ status: "Rejected" | "Requested" | "Accepted";
1024
+ transactionId: string;
1025
+ createdByUserType: "system" | "user";
1026
+ createdAt: string;
1027
+ createdBy: string;
1028
+ createdByRole: string;
1029
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1030
+ content?: {
1031
+ duplicateOf: string & z.BRAND<"UUID">;
1032
+ } | undefined;
1033
+ createdBySignature?: string | null | undefined;
1034
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1035
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1036
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1037
+ } | {
1038
+ type: "ARCHIVE";
1039
+ id: string & z.BRAND<"UUID">;
1040
+ status: "Rejected" | "Requested" | "Accepted";
1041
+ content: {
1042
+ reason: string;
1043
+ };
1044
+ transactionId: string;
1045
+ createdByUserType: "system" | "user";
1046
+ createdAt: string;
1047
+ createdBy: string;
1048
+ createdByRole: string;
1049
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1050
+ createdBySignature?: string | null | undefined;
1051
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1052
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1053
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1054
+ } | {
1055
+ type: "CREATE";
1056
+ id: string & z.BRAND<"UUID">;
1057
+ status: "Rejected" | "Requested" | "Accepted";
1058
+ transactionId: string;
1059
+ createdByUserType: "system" | "user";
1060
+ createdAt: string;
1061
+ createdBy: string;
1062
+ createdByRole: string;
1063
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1064
+ createdBySignature?: string | null | undefined;
1065
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1066
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1067
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1068
+ } | {
1069
+ type: "NOTIFY";
1070
+ id: string & z.BRAND<"UUID">;
1071
+ status: "Rejected" | "Requested" | "Accepted";
1072
+ transactionId: string;
1073
+ createdByUserType: "system" | "user";
1074
+ createdAt: string;
1075
+ createdBy: string;
1076
+ createdByRole: string;
1077
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1078
+ createdBySignature?: string | null | undefined;
1079
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1080
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1081
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1082
+ } | {
1083
+ type: "PRINT_CERTIFICATE";
1084
+ id: string & z.BRAND<"UUID">;
1085
+ status: "Rejected" | "Requested" | "Accepted";
1086
+ transactionId: string;
1087
+ createdByUserType: "system" | "user";
1088
+ createdAt: string;
1089
+ createdBy: string;
1090
+ createdByRole: string;
1091
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1092
+ content?: {
1093
+ templateId?: string | undefined;
1094
+ } | null | undefined;
1095
+ createdBySignature?: string | null | undefined;
1096
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1097
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1098
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1099
+ } | {
1100
+ type: "REQUEST_CORRECTION";
1101
+ id: string & z.BRAND<"UUID">;
1102
+ status: "Rejected" | "Requested" | "Accepted";
1103
+ transactionId: string;
1104
+ createdByUserType: "system" | "user";
1105
+ createdAt: string;
1106
+ createdBy: string;
1107
+ createdByRole: string;
1108
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1109
+ createdBySignature?: string | null | undefined;
1110
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1111
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1112
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1113
+ } | {
1114
+ type: "APPROVE_CORRECTION";
1115
+ id: string & z.BRAND<"UUID">;
1116
+ status: "Rejected" | "Requested" | "Accepted";
1117
+ transactionId: string;
1118
+ createdByUserType: "system" | "user";
1119
+ createdAt: string;
1120
+ createdBy: string;
1121
+ createdByRole: string;
1122
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1123
+ requestId: string;
1124
+ createdBySignature?: string | null | undefined;
1125
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1126
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1127
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1128
+ } | {
1129
+ type: "REJECT_CORRECTION";
1130
+ id: string & z.BRAND<"UUID">;
1131
+ status: "Rejected" | "Requested" | "Accepted";
1132
+ content: {
1133
+ reason: string;
1134
+ };
1135
+ transactionId: string;
1136
+ createdByUserType: "system" | "user";
1137
+ createdAt: string;
1138
+ createdBy: string;
1139
+ createdByRole: string;
1140
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1141
+ requestId: string;
1142
+ createdBySignature?: string | null | undefined;
1143
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1144
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1145
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1146
+ } | {
1147
+ type: "READ";
1148
+ id: string & z.BRAND<"UUID">;
1149
+ status: "Rejected" | "Requested" | "Accepted";
1150
+ transactionId: string;
1151
+ createdByUserType: "system" | "user";
1152
+ createdAt: string;
1153
+ createdBy: string;
1154
+ createdByRole: string;
1155
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1156
+ createdBySignature?: string | null | undefined;
1157
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1158
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1159
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1160
+ } | {
1161
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1162
+ id: string & z.BRAND<"UUID">;
1163
+ status: "Rejected";
1164
+ transactionId: string;
1165
+ createdByUserType: "system" | "user";
1166
+ createdAt: string;
1167
+ createdBy: string;
1168
+ createdByRole: string;
1169
+ createdBySignature?: string | null | undefined;
1170
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1171
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1172
+ })[];
1173
+ }, {
1174
+ type: string;
1175
+ id: string;
1176
+ createdAt: string;
1177
+ trackingId: string;
1178
+ updatedAt: string;
1179
+ actions: ({
1180
+ type: "ASSIGN";
1181
+ id: string;
1182
+ status: "Rejected" | "Requested" | "Accepted";
1183
+ transactionId: string;
1184
+ createdByUserType: "system" | "user";
1185
+ createdAt: string;
1186
+ createdBy: string;
1187
+ createdByRole: string;
1188
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1189
+ assignedTo: string;
1190
+ createdBySignature?: string | null | undefined;
1191
+ createdAtLocation?: string | null | undefined;
1192
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1193
+ originalActionId?: string | null | undefined;
1194
+ } | {
1195
+ type: "UNASSIGN";
1196
+ id: string;
1197
+ status: "Rejected" | "Requested" | "Accepted";
1198
+ transactionId: string;
1199
+ createdByUserType: "system" | "user";
1200
+ createdAt: string;
1201
+ createdBy: string;
1202
+ createdByRole: string;
1203
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1204
+ createdBySignature?: string | null | undefined;
1205
+ createdAtLocation?: string | null | undefined;
1206
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1207
+ originalActionId?: string | null | undefined;
1208
+ } | {
1209
+ type: "REGISTER";
1210
+ id: string;
1211
+ status: "Rejected" | "Requested" | "Accepted";
1212
+ transactionId: string;
1213
+ createdByUserType: "system" | "user";
1214
+ createdAt: string;
1215
+ createdBy: string;
1216
+ createdByRole: string;
1217
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1218
+ createdBySignature?: string | null | undefined;
1219
+ createdAtLocation?: string | null | undefined;
1220
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1221
+ originalActionId?: string | null | undefined;
1222
+ registrationNumber?: string | undefined;
1223
+ } | {
1224
+ type: "DECLARE";
1225
+ id: string;
1226
+ status: "Rejected" | "Requested" | "Accepted";
1227
+ transactionId: string;
1228
+ createdByUserType: "system" | "user";
1229
+ createdAt: string;
1230
+ createdBy: string;
1231
+ createdByRole: string;
1232
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1233
+ createdBySignature?: string | null | undefined;
1234
+ createdAtLocation?: string | null | undefined;
1235
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1236
+ originalActionId?: string | null | undefined;
1237
+ } | {
1238
+ type: "VALIDATE";
1239
+ id: string;
1240
+ status: "Rejected" | "Requested" | "Accepted";
1241
+ transactionId: string;
1242
+ createdByUserType: "system" | "user";
1243
+ createdAt: string;
1244
+ createdBy: string;
1245
+ createdByRole: string;
1246
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1247
+ createdBySignature?: string | null | undefined;
1248
+ createdAtLocation?: string | null | undefined;
1249
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1250
+ originalActionId?: string | null | undefined;
1251
+ } | {
1252
+ type: "REJECT";
1253
+ id: string;
1254
+ status: "Rejected" | "Requested" | "Accepted";
1255
+ content: {
1256
+ reason: string;
1257
+ };
1258
+ transactionId: string;
1259
+ createdByUserType: "system" | "user";
1260
+ createdAt: string;
1261
+ createdBy: string;
1262
+ createdByRole: string;
1263
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1264
+ createdBySignature?: string | null | undefined;
1265
+ createdAtLocation?: string | null | undefined;
1266
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1267
+ originalActionId?: string | null | undefined;
1268
+ } | {
1269
+ type: "DUPLICATE_DETECTED";
1270
+ id: string;
1271
+ status: "Rejected" | "Requested" | "Accepted";
1272
+ content: {
1273
+ duplicates: {
1274
+ id: string;
1275
+ trackingId: string;
1276
+ }[];
1277
+ };
1278
+ transactionId: string;
1279
+ createdByUserType: "system" | "user";
1280
+ createdAt: string;
1281
+ createdBy: string;
1282
+ createdByRole: string;
1283
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1284
+ createdBySignature?: string | null | undefined;
1285
+ createdAtLocation?: string | null | undefined;
1286
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1287
+ originalActionId?: string | null | undefined;
1288
+ } | {
1289
+ type: "MARK_AS_NOT_DUPLICATE";
1290
+ id: string;
1291
+ status: "Rejected" | "Requested" | "Accepted";
1292
+ transactionId: string;
1293
+ createdByUserType: "system" | "user";
1294
+ createdAt: string;
1295
+ createdBy: string;
1296
+ createdByRole: string;
1297
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1298
+ createdBySignature?: string | null | undefined;
1299
+ createdAtLocation?: string | null | undefined;
1300
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1301
+ originalActionId?: string | null | undefined;
1302
+ } | {
1303
+ type: "MARK_AS_DUPLICATE";
1304
+ id: string;
1305
+ status: "Rejected" | "Requested" | "Accepted";
1306
+ transactionId: string;
1307
+ createdByUserType: "system" | "user";
1308
+ createdAt: string;
1309
+ createdBy: string;
1310
+ createdByRole: string;
1311
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1312
+ content?: {
1313
+ duplicateOf: string;
1314
+ } | undefined;
1315
+ createdBySignature?: string | null | undefined;
1316
+ createdAtLocation?: string | null | undefined;
1317
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1318
+ originalActionId?: string | null | undefined;
1319
+ } | {
1320
+ type: "ARCHIVE";
1321
+ id: string;
1322
+ status: "Rejected" | "Requested" | "Accepted";
1323
+ content: {
1324
+ reason: string;
1325
+ };
1326
+ transactionId: string;
1327
+ createdByUserType: "system" | "user";
1328
+ createdAt: string;
1329
+ createdBy: string;
1330
+ createdByRole: string;
1331
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1332
+ createdBySignature?: string | null | undefined;
1333
+ createdAtLocation?: string | null | undefined;
1334
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1335
+ originalActionId?: string | null | undefined;
1336
+ } | {
1337
+ type: "CREATE";
1338
+ id: string;
1339
+ status: "Rejected" | "Requested" | "Accepted";
1340
+ transactionId: string;
1341
+ createdByUserType: "system" | "user";
1342
+ createdAt: string;
1343
+ createdBy: string;
1344
+ createdByRole: string;
1345
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1346
+ createdBySignature?: string | null | undefined;
1347
+ createdAtLocation?: string | null | undefined;
1348
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1349
+ originalActionId?: string | null | undefined;
1350
+ } | {
1351
+ type: "NOTIFY";
1352
+ id: string;
1353
+ status: "Rejected" | "Requested" | "Accepted";
1354
+ transactionId: string;
1355
+ createdByUserType: "system" | "user";
1356
+ createdAt: string;
1357
+ createdBy: string;
1358
+ createdByRole: string;
1359
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1360
+ createdBySignature?: string | null | undefined;
1361
+ createdAtLocation?: string | null | undefined;
1362
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1363
+ originalActionId?: string | null | undefined;
1364
+ } | {
1365
+ type: "PRINT_CERTIFICATE";
1366
+ id: string;
1367
+ status: "Rejected" | "Requested" | "Accepted";
1368
+ transactionId: string;
1369
+ createdByUserType: "system" | "user";
1370
+ createdAt: string;
1371
+ createdBy: string;
1372
+ createdByRole: string;
1373
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1374
+ content?: {
1375
+ templateId?: string | undefined;
1376
+ } | null | undefined;
1377
+ createdBySignature?: string | null | undefined;
1378
+ createdAtLocation?: string | null | undefined;
1379
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1380
+ originalActionId?: string | null | undefined;
1381
+ } | {
1382
+ type: "REQUEST_CORRECTION";
1383
+ id: string;
1384
+ status: "Rejected" | "Requested" | "Accepted";
1385
+ transactionId: string;
1386
+ createdByUserType: "system" | "user";
1387
+ createdAt: string;
1388
+ createdBy: string;
1389
+ createdByRole: string;
1390
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1391
+ createdBySignature?: string | null | undefined;
1392
+ createdAtLocation?: string | null | undefined;
1393
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1394
+ originalActionId?: string | null | undefined;
1395
+ } | {
1396
+ type: "APPROVE_CORRECTION";
1397
+ id: string;
1398
+ status: "Rejected" | "Requested" | "Accepted";
1399
+ transactionId: string;
1400
+ createdByUserType: "system" | "user";
1401
+ createdAt: string;
1402
+ createdBy: string;
1403
+ createdByRole: string;
1404
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1405
+ requestId: string;
1406
+ createdBySignature?: string | null | undefined;
1407
+ createdAtLocation?: string | null | undefined;
1408
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1409
+ originalActionId?: string | null | undefined;
1410
+ } | {
1411
+ type: "REJECT_CORRECTION";
1412
+ id: string;
1413
+ status: "Rejected" | "Requested" | "Accepted";
1414
+ content: {
1415
+ reason: string;
1416
+ };
1417
+ transactionId: string;
1418
+ createdByUserType: "system" | "user";
1419
+ createdAt: string;
1420
+ createdBy: string;
1421
+ createdByRole: string;
1422
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1423
+ requestId: string;
1424
+ createdBySignature?: string | null | undefined;
1425
+ createdAtLocation?: string | null | undefined;
1426
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1427
+ originalActionId?: string | null | undefined;
1428
+ } | {
1429
+ type: "READ";
1430
+ id: string;
1431
+ status: "Rejected" | "Requested" | "Accepted";
1432
+ transactionId: string;
1433
+ createdByUserType: "system" | "user";
1434
+ createdAt: string;
1435
+ createdBy: string;
1436
+ createdByRole: string;
1437
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
1438
+ createdBySignature?: string | null | undefined;
1439
+ createdAtLocation?: string | null | undefined;
1440
+ annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
1441
+ originalActionId?: string | null | undefined;
1442
+ } | {
1443
+ type: "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1444
+ id: string;
1445
+ status: "Rejected";
1446
+ transactionId: string;
1447
+ createdByUserType: "system" | "user";
1448
+ createdAt: string;
1449
+ createdBy: string;
1450
+ createdByRole: string;
1451
+ createdBySignature?: string | null | undefined;
1452
+ createdAtLocation?: string | null | undefined;
1453
+ originalActionId?: string | null | undefined;
1454
+ })[];
1455
+ }>;
1456
+ export type EventDocument = z.infer<typeof EventDocument>;
1457
+ //# sourceMappingURL=EventDocument.d.ts.map