@opencrvs/toolkit 1.8.0-rc.f872339 → 1.8.0-rc.f881988

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 (29) hide show
  1. package/dist/commons/api/router.d.ts +7266 -4144
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/events/ActionConfig.d.ts +86380 -1682
  4. package/dist/commons/events/ActionDocument.d.ts +418 -107
  5. package/dist/commons/events/ActionInput.d.ts +68 -60
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +371 -25
  7. package/dist/commons/events/Draft.d.ts +24 -9
  8. package/dist/commons/events/EventConfig.d.ts +40980 -1394
  9. package/dist/commons/events/EventDocument.d.ts +331 -82
  10. package/dist/commons/events/EventIndex.d.ts +912 -4
  11. package/dist/commons/events/EventInput.d.ts +13 -0
  12. package/dist/commons/events/EventMetadata.d.ts +10 -3
  13. package/dist/commons/events/FieldConfig.d.ts +3415 -711
  14. package/dist/commons/events/FieldType.d.ts +1 -2
  15. package/dist/commons/events/FieldValue.d.ts +1 -1
  16. package/dist/commons/events/FormConfig.d.ts +38845 -517
  17. package/dist/commons/events/PageConfig.d.ts +9671 -203
  18. package/dist/commons/events/SummaryConfig.d.ts +0 -47
  19. package/dist/commons/events/WorkqueueConfig.d.ts +44 -20
  20. package/dist/commons/events/defineConfig.d.ts +6669 -30
  21. package/dist/commons/events/event.d.ts +25 -0
  22. package/dist/commons/events/field.d.ts +68 -0
  23. package/dist/commons/events/index.d.ts +2 -0
  24. package/dist/commons/events/scopes.d.ts +1 -0
  25. package/dist/commons/events/test.utils.d.ts +1 -38
  26. package/dist/commons/events/utils.d.ts +3401 -90
  27. package/dist/conditionals/index.js +36 -33
  28. package/dist/events/index.js +707 -577
  29. package/package.json +3 -2
@@ -1,51 +1,397 @@
1
1
  import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
+ export declare const MatchType: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
4
+ export type MatchType = z.infer<typeof MatchType>;
5
+ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
6
+ config: z.ZodObject<{
7
+ type: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
10
+ }, {
11
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
12
+ }>;
13
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
+ value: z.ZodString;
15
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
16
+ id: string;
17
+ description: string;
18
+ defaultMessage: string;
19
+ }>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ value: string;
22
+ label: TranslationConfig;
23
+ }, {
24
+ value: string;
25
+ label: {
26
+ id: string;
27
+ description: string;
28
+ defaultMessage: string;
29
+ };
30
+ }>, "many">>;
31
+ }, {
32
+ fieldId: z.ZodString;
33
+ fieldType: z.ZodLiteral<"field">;
34
+ }>, "strip", z.ZodTypeAny, {
35
+ config: {
36
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
37
+ };
38
+ fieldId: string;
39
+ fieldType: "field";
40
+ options?: {
41
+ value: string;
42
+ label: TranslationConfig;
43
+ }[] | undefined;
44
+ }, {
45
+ config: {
46
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
47
+ };
48
+ fieldId: string;
49
+ fieldType: "field";
50
+ options?: {
51
+ value: string;
52
+ label: {
53
+ id: string;
54
+ description: string;
55
+ defaultMessage: string;
56
+ };
57
+ }[] | undefined;
58
+ }>;
59
+ export declare const EventFieldId: z.ZodEnum<["trackingId", "status"]>;
60
+ export type EventFieldId = z.infer<typeof EventFieldId>;
61
+ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
62
+ config: z.ZodObject<{
63
+ type: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
66
+ }, {
67
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
68
+ }>;
69
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
+ value: z.ZodString;
71
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
72
+ id: string;
73
+ description: string;
74
+ defaultMessage: string;
75
+ }>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ value: string;
78
+ label: TranslationConfig;
79
+ }, {
80
+ value: string;
81
+ label: {
82
+ id: string;
83
+ description: string;
84
+ defaultMessage: string;
85
+ };
86
+ }>, "many">>;
87
+ }, {
88
+ fieldId: z.ZodEnum<["trackingId", "status"]>;
89
+ fieldType: z.ZodLiteral<"event">;
90
+ }>, "strip", z.ZodTypeAny, {
91
+ config: {
92
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
93
+ };
94
+ fieldId: "status" | "trackingId";
95
+ fieldType: "event";
96
+ options?: {
97
+ value: string;
98
+ label: TranslationConfig;
99
+ }[] | undefined;
100
+ }, {
101
+ config: {
102
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
103
+ };
104
+ fieldId: "status" | "trackingId";
105
+ fieldType: "event";
106
+ options?: {
107
+ value: string;
108
+ label: {
109
+ id: string;
110
+ description: string;
111
+ defaultMessage: string;
112
+ };
113
+ }[] | undefined;
114
+ }>;
115
+ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
116
+ config: z.ZodObject<{
117
+ type: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
120
+ }, {
121
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
122
+ }>;
123
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
124
+ value: z.ZodString;
125
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
126
+ id: string;
127
+ description: string;
128
+ defaultMessage: string;
129
+ }>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ value: string;
132
+ label: TranslationConfig;
133
+ }, {
134
+ value: string;
135
+ label: {
136
+ id: string;
137
+ description: string;
138
+ defaultMessage: string;
139
+ };
140
+ }>, "many">>;
141
+ }, {
142
+ fieldId: z.ZodString;
143
+ fieldType: z.ZodLiteral<"field">;
144
+ }>, "strip", z.ZodTypeAny, {
145
+ config: {
146
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
147
+ };
148
+ fieldId: string;
149
+ fieldType: "field";
150
+ options?: {
151
+ value: string;
152
+ label: TranslationConfig;
153
+ }[] | undefined;
154
+ }, {
155
+ config: {
156
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
157
+ };
158
+ fieldId: string;
159
+ fieldType: "field";
160
+ options?: {
161
+ value: string;
162
+ label: {
163
+ id: string;
164
+ description: string;
165
+ defaultMessage: string;
166
+ };
167
+ }[] | undefined;
168
+ }>, z.ZodObject<z.objectUtil.extendShape<{
169
+ config: z.ZodObject<{
170
+ type: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
173
+ }, {
174
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
175
+ }>;
176
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
177
+ value: z.ZodString;
178
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
179
+ id: string;
180
+ description: string;
181
+ defaultMessage: string;
182
+ }>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ value: string;
185
+ label: TranslationConfig;
186
+ }, {
187
+ value: string;
188
+ label: {
189
+ id: string;
190
+ description: string;
191
+ defaultMessage: string;
192
+ };
193
+ }>, "many">>;
194
+ }, {
195
+ fieldId: z.ZodEnum<["trackingId", "status"]>;
196
+ fieldType: z.ZodLiteral<"event">;
197
+ }>, "strip", z.ZodTypeAny, {
198
+ config: {
199
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
200
+ };
201
+ fieldId: "status" | "trackingId";
202
+ fieldType: "event";
203
+ options?: {
204
+ value: string;
205
+ label: TranslationConfig;
206
+ }[] | undefined;
207
+ }, {
208
+ config: {
209
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
210
+ };
211
+ fieldId: "status" | "trackingId";
212
+ fieldType: "event";
213
+ options?: {
214
+ value: string;
215
+ label: {
216
+ id: string;
217
+ description: string;
218
+ defaultMessage: string;
219
+ };
220
+ }[] | undefined;
221
+ }>]>;
222
+ export type SearchField = z.infer<typeof SearchField>;
3
223
  export declare const AdvancedSearchConfig: z.ZodObject<{
4
224
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5
225
  id: string;
6
226
  description: string;
7
227
  defaultMessage: string;
8
228
  }>;
9
- fields: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
10
- fieldId: z.ZodString;
11
- config: z.ZodOptional<z.ZodObject<{
12
- type: z.ZodEnum<["FUZZY", "EXACT", "RANGE"]>;
229
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
230
+ config: z.ZodObject<{
231
+ type: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
13
232
  }, "strip", z.ZodTypeAny, {
14
- type: "FUZZY" | "EXACT" | "RANGE";
233
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
15
234
  }, {
16
- type: "FUZZY" | "EXACT" | "RANGE";
17
- }>>;
18
- }, "strip", z.ZodTypeAny, {
235
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
236
+ }>;
237
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
238
+ value: z.ZodString;
239
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
240
+ id: string;
241
+ description: string;
242
+ defaultMessage: string;
243
+ }>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ value: string;
246
+ label: TranslationConfig;
247
+ }, {
248
+ value: string;
249
+ label: {
250
+ id: string;
251
+ description: string;
252
+ defaultMessage: string;
253
+ };
254
+ }>, "many">>;
255
+ }, {
256
+ fieldId: z.ZodString;
257
+ fieldType: z.ZodLiteral<"field">;
258
+ }>, "strip", z.ZodTypeAny, {
259
+ config: {
260
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
261
+ };
19
262
  fieldId: string;
20
- config?: {
21
- type: "FUZZY" | "EXACT" | "RANGE";
22
- } | undefined;
263
+ fieldType: "field";
264
+ options?: {
265
+ value: string;
266
+ label: TranslationConfig;
267
+ }[] | undefined;
23
268
  }, {
269
+ config: {
270
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
271
+ };
24
272
  fieldId: string;
25
- config?: {
26
- type: "FUZZY" | "EXACT" | "RANGE";
27
- } | undefined;
28
- }>, "many">>>;
273
+ fieldType: "field";
274
+ options?: {
275
+ value: string;
276
+ label: {
277
+ id: string;
278
+ description: string;
279
+ defaultMessage: string;
280
+ };
281
+ }[] | undefined;
282
+ }>, z.ZodObject<z.objectUtil.extendShape<{
283
+ config: z.ZodObject<{
284
+ type: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
287
+ }, {
288
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
289
+ }>;
290
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
291
+ value: z.ZodString;
292
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
293
+ id: string;
294
+ description: string;
295
+ defaultMessage: string;
296
+ }>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ value: string;
299
+ label: TranslationConfig;
300
+ }, {
301
+ value: string;
302
+ label: {
303
+ id: string;
304
+ description: string;
305
+ defaultMessage: string;
306
+ };
307
+ }>, "many">>;
308
+ }, {
309
+ fieldId: z.ZodEnum<["trackingId", "status"]>;
310
+ fieldType: z.ZodLiteral<"event">;
311
+ }>, "strip", z.ZodTypeAny, {
312
+ config: {
313
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
314
+ };
315
+ fieldId: "status" | "trackingId";
316
+ fieldType: "event";
317
+ options?: {
318
+ value: string;
319
+ label: TranslationConfig;
320
+ }[] | undefined;
321
+ }, {
322
+ config: {
323
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
324
+ };
325
+ fieldId: "status" | "trackingId";
326
+ fieldType: "event";
327
+ options?: {
328
+ value: string;
329
+ label: {
330
+ id: string;
331
+ description: string;
332
+ defaultMessage: string;
333
+ };
334
+ }[] | undefined;
335
+ }>]>, "many">;
29
336
  }, "strip", z.ZodTypeAny, {
30
337
  title: TranslationConfig;
31
- fields: {
338
+ fields: ({
339
+ config: {
340
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
341
+ };
32
342
  fieldId: string;
33
- config?: {
34
- type: "FUZZY" | "EXACT" | "RANGE";
35
- } | undefined;
36
- }[];
343
+ fieldType: "field";
344
+ options?: {
345
+ value: string;
346
+ label: TranslationConfig;
347
+ }[] | undefined;
348
+ } | {
349
+ config: {
350
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
351
+ };
352
+ fieldId: "status" | "trackingId";
353
+ fieldType: "event";
354
+ options?: {
355
+ value: string;
356
+ label: TranslationConfig;
357
+ }[] | undefined;
358
+ })[];
37
359
  }, {
38
360
  title: {
39
361
  id: string;
40
362
  description: string;
41
363
  defaultMessage: string;
42
364
  };
43
- fields?: {
365
+ fields: ({
366
+ config: {
367
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
368
+ };
44
369
  fieldId: string;
45
- config?: {
46
- type: "FUZZY" | "EXACT" | "RANGE";
47
- } | undefined;
48
- }[] | undefined;
370
+ fieldType: "field";
371
+ options?: {
372
+ value: string;
373
+ label: {
374
+ id: string;
375
+ description: string;
376
+ defaultMessage: string;
377
+ };
378
+ }[] | undefined;
379
+ } | {
380
+ config: {
381
+ type: "FUZZY" | "EXACT" | "RANGE" | "ANY_OF";
382
+ };
383
+ fieldId: "status" | "trackingId";
384
+ fieldType: "event";
385
+ options?: {
386
+ value: string;
387
+ label: {
388
+ id: string;
389
+ description: string;
390
+ defaultMessage: string;
391
+ };
392
+ }[] | undefined;
393
+ })[];
49
394
  }>;
395
+ export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
50
396
  export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
51
397
  //# sourceMappingURL=AdvancedSearchConfig.d.ts.map
@@ -6,8 +6,10 @@ export declare const Draft: z.ZodObject<{
6
6
  createdAt: z.ZodString;
7
7
  action: z.ZodObject<Omit<z.objectUtil.extendShape<{
8
8
  id: z.ZodString;
9
+ transactionId: z.ZodString;
9
10
  createdAt: z.ZodString;
10
11
  createdBy: z.ZodString;
12
+ createdByRole: z.ZodString;
11
13
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
14
  filename: z.ZodString;
13
15
  originalFilename: z.ZodString;
@@ -236,7 +238,8 @@ export declare const Draft: z.ZodObject<{
236
238
  addressLine3?: string | null | undefined;
237
239
  postcodeOrZip?: string | null | undefined;
238
240
  }>]>>>;
239
- createdAtLocation: z.ZodString;
241
+ createdAtLocation: z.ZodOptional<z.ZodString>;
242
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
240
243
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
241
244
  originalActionId: z.ZodOptional<z.ZodString>;
242
245
  }, {
@@ -244,8 +247,10 @@ export declare const Draft: z.ZodObject<{
244
247
  }>, "id">, "strip", z.ZodTypeAny, {
245
248
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
246
249
  status: "Rejected" | "Requested" | "Accepted";
250
+ transactionId: string;
247
251
  createdAt: string;
248
252
  createdBy: string;
253
+ createdByRole: string;
249
254
  declaration: Record<string, string | number | boolean | {
250
255
  type: string;
251
256
  filename: string;
@@ -284,7 +289,6 @@ export declare const Draft: z.ZodObject<{
284
289
  filename: string;
285
290
  originalFilename: string;
286
291
  }[] | undefined>;
287
- createdAtLocation: string;
288
292
  annotation?: Record<string, string | number | boolean | {
289
293
  type: string;
290
294
  filename: string;
@@ -323,12 +327,16 @@ export declare const Draft: z.ZodObject<{
323
327
  filename: string;
324
328
  originalFilename: string;
325
329
  }[] | undefined> | undefined;
330
+ createdAtLocation?: string | undefined;
331
+ updatedAtLocation?: string | undefined;
326
332
  originalActionId?: string | undefined;
327
333
  }, {
328
334
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
329
335
  status: "Rejected" | "Requested" | "Accepted";
336
+ transactionId: string;
330
337
  createdAt: string;
331
338
  createdBy: string;
339
+ createdByRole: string;
332
340
  declaration: Record<string, string | number | boolean | {
333
341
  type: string;
334
342
  filename: string;
@@ -367,7 +375,6 @@ export declare const Draft: z.ZodObject<{
367
375
  filename: string;
368
376
  originalFilename: string;
369
377
  }[] | undefined>;
370
- createdAtLocation: string;
371
378
  annotation?: Record<string, string | number | boolean | {
372
379
  type: string;
373
380
  filename: string;
@@ -406,18 +413,22 @@ export declare const Draft: z.ZodObject<{
406
413
  filename: string;
407
414
  originalFilename: string;
408
415
  }[] | undefined> | undefined;
416
+ createdAtLocation?: string | undefined;
417
+ updatedAtLocation?: string | undefined;
409
418
  originalActionId?: string | undefined;
410
419
  }>;
411
420
  }, "strip", z.ZodTypeAny, {
412
421
  id: string;
422
+ transactionId: string;
413
423
  createdAt: string;
414
424
  eventId: string;
415
- transactionId: string;
416
425
  action: {
417
426
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
418
427
  status: "Rejected" | "Requested" | "Accepted";
428
+ transactionId: string;
419
429
  createdAt: string;
420
430
  createdBy: string;
431
+ createdByRole: string;
421
432
  declaration: Record<string, string | number | boolean | {
422
433
  type: string;
423
434
  filename: string;
@@ -456,7 +467,6 @@ export declare const Draft: z.ZodObject<{
456
467
  filename: string;
457
468
  originalFilename: string;
458
469
  }[] | undefined>;
459
- createdAtLocation: string;
460
470
  annotation?: Record<string, string | number | boolean | {
461
471
  type: string;
462
472
  filename: string;
@@ -495,18 +505,22 @@ export declare const Draft: z.ZodObject<{
495
505
  filename: string;
496
506
  originalFilename: string;
497
507
  }[] | undefined> | undefined;
508
+ createdAtLocation?: string | undefined;
509
+ updatedAtLocation?: string | undefined;
498
510
  originalActionId?: string | undefined;
499
511
  };
500
512
  }, {
501
513
  id: string;
514
+ transactionId: string;
502
515
  createdAt: string;
503
516
  eventId: string;
504
- transactionId: string;
505
517
  action: {
506
518
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
507
519
  status: "Rejected" | "Requested" | "Accepted";
520
+ transactionId: string;
508
521
  createdAt: string;
509
522
  createdBy: string;
523
+ createdByRole: string;
510
524
  declaration: Record<string, string | number | boolean | {
511
525
  type: string;
512
526
  filename: string;
@@ -545,7 +559,6 @@ export declare const Draft: z.ZodObject<{
545
559
  filename: string;
546
560
  originalFilename: string;
547
561
  }[] | undefined>;
548
- createdAtLocation: string;
549
562
  annotation?: Record<string, string | number | boolean | {
550
563
  type: string;
551
564
  filename: string;
@@ -584,6 +597,8 @@ export declare const Draft: z.ZodObject<{
584
597
  filename: string;
585
598
  originalFilename: string;
586
599
  }[] | undefined> | undefined;
600
+ createdAtLocation?: string | undefined;
601
+ updatedAtLocation?: string | undefined;
587
602
  originalActionId?: string | undefined;
588
603
  };
589
604
  }>;
@@ -824,6 +839,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
824
839
  type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
825
840
  }>, "strip", z.ZodTypeAny, {
826
841
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
842
+ transactionId: string;
827
843
  declaration: Record<string, string | number | boolean | {
828
844
  type: string;
829
845
  filename: string;
@@ -863,7 +879,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
863
879
  originalFilename: string;
864
880
  }[] | undefined>;
865
881
  eventId: string;
866
- transactionId: string;
867
882
  annotation?: Record<string, string | number | boolean | {
868
883
  type: string;
869
884
  filename: string;
@@ -906,8 +921,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
906
921
  keepAssignment?: boolean | undefined;
907
922
  }, {
908
923
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
909
- eventId: string;
910
924
  transactionId: string;
925
+ eventId: string;
911
926
  declaration?: Record<string, string | number | boolean | {
912
927
  type: string;
913
928
  filename: string;