@opencrvs/toolkit 1.8.0-rc.ffbb9d7 → 1.8.0-rc.ffe24c3

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 (44) hide show
  1. package/dist/commons/api/router.d.ts +14748 -727
  2. package/dist/commons/conditionals/conditionals.d.ts +14 -6
  3. package/dist/commons/conditionals/validate.d.ts +11 -11
  4. package/dist/commons/events/ActionConfig.d.ts +117418 -1729
  5. package/dist/commons/events/ActionDocument.d.ts +2581 -554
  6. package/dist/commons/events/ActionInput.d.ts +1795 -425
  7. package/dist/commons/events/ActionType.d.ts +8 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1233 -22
  9. package/dist/commons/events/CompositeFieldValue.d.ts +31 -0
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +3730 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +165 -43
  14. package/dist/commons/events/EventConfig.d.ts +56501 -1354
  15. package/dist/commons/events/EventDocument.d.ts +1635 -391
  16. package/dist/commons/events/EventIndex.d.ts +2007 -27
  17. package/dist/commons/events/EventMetadata.d.ts +343 -45
  18. package/dist/commons/events/FieldConfig.d.ts +5450 -1033
  19. package/dist/commons/events/FieldType.d.ts +6 -3
  20. package/dist/commons/events/FieldTypeMapping.d.ts +103 -54
  21. package/dist/commons/events/FieldValue.d.ts +49 -8
  22. package/dist/commons/events/FormConfig.d.ts +49156 -514
  23. package/dist/commons/events/PageConfig.d.ts +12206 -204
  24. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  25. package/dist/commons/events/TemplateConfig.d.ts +4 -4
  26. package/dist/commons/events/User.d.ts +31 -2
  27. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  28. package/dist/commons/events/WorkqueueConfig.d.ts +7300 -20
  29. package/dist/commons/events/defineConfig.d.ts +9001 -58
  30. package/dist/commons/events/event.d.ts +54 -0
  31. package/dist/commons/events/field.d.ts +82 -0
  32. package/dist/commons/events/index.d.ts +8 -0
  33. package/dist/commons/events/scopes.d.ts +44 -0
  34. package/dist/commons/events/serializer.d.ts +2 -0
  35. package/dist/commons/events/test.utils.d.ts +171 -79
  36. package/dist/commons/events/transactions.d.ts +1 -1
  37. package/dist/commons/events/utils.d.ts +13375 -73
  38. package/dist/commons/events/utils.test.d.ts +2 -0
  39. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  40. package/dist/conditionals/index.js +76 -36
  41. package/dist/events/index.js +4630 -1941
  42. package/dist/scopes/index.d.ts +161 -1
  43. package/dist/scopes/index.js +202 -1
  44. package/package.json +4 -3
@@ -3,27 +3,174 @@ import { TranslationConfig } from './TranslationConfig';
3
3
  /**
4
4
  * Event statuses recognized by the system
5
5
  */
6
- export declare const EventStatus: {
7
- readonly CREATED: "CREATED";
8
- readonly NOTIFIED: "NOTIFIED";
9
- readonly DECLARED: "DECLARED";
10
- readonly VALIDATED: "VALIDATED";
11
- readonly REGISTERED: "REGISTERED";
12
- readonly CERTIFIED: "CERTIFIED";
13
- readonly REJECTED: "REJECTED";
14
- readonly ARCHIVED: "ARCHIVED";
6
+ export declare const EventStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
7
+ export type EventStatus = z.infer<typeof EventStatus>;
8
+ export declare const InherentFlags: {
9
+ readonly PRINTED: "printed";
10
+ readonly INCOMPLETE: "incomplete";
11
+ readonly REJECTED: "rejected";
12
+ readonly CORRECTION_REQUESTED: "correction-requested";
15
13
  };
16
- export type EventStatus = (typeof EventStatus)[keyof typeof EventStatus];
17
- export declare const eventStatuses: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
18
- export declare const EventStatuses: z.ZodNativeEnum<{
19
- readonly CREATED: "CREATED";
20
- readonly NOTIFIED: "NOTIFIED";
21
- readonly DECLARED: "DECLARED";
22
- readonly VALIDATED: "VALIDATED";
23
- readonly REGISTERED: "REGISTERED";
24
- readonly CERTIFIED: "CERTIFIED";
25
- readonly REJECTED: "REJECTED";
26
- readonly ARCHIVED: "ARCHIVED";
14
+ export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
15
+ export declare const Flag: z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
16
+ readonly PRINTED: "printed";
17
+ readonly INCOMPLETE: "incomplete";
18
+ readonly REJECTED: "rejected";
19
+ readonly CORRECTION_REQUESTED: "correction-requested";
20
+ }>]>;
21
+ export type Flag = z.infer<typeof Flag>;
22
+ export declare const ZodDate: z.ZodString;
23
+ export declare const ActionCreationMetadata: z.ZodObject<{
24
+ createdAt: z.ZodString;
25
+ createdBy: z.ZodString;
26
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
27
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
28
+ acceptedAt: z.ZodString;
29
+ createdByRole: z.ZodString;
30
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ createdAt: string;
33
+ createdBy: string;
34
+ createdByRole: string;
35
+ acceptedAt: string;
36
+ createdByUserType?: "system" | "user" | null | undefined;
37
+ createdBySignature?: string | null | undefined;
38
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
39
+ }, {
40
+ createdAt: string;
41
+ createdBy: string;
42
+ createdByRole: string;
43
+ acceptedAt: string;
44
+ createdByUserType?: "system" | "user" | null | undefined;
45
+ createdBySignature?: string | null | undefined;
46
+ createdAtLocation?: string | null | undefined;
47
+ }>;
48
+ export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
49
+ export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.extendShape<{
50
+ createdAt: z.ZodString;
51
+ createdBy: z.ZodString;
52
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
53
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
54
+ acceptedAt: z.ZodString;
55
+ createdByRole: z.ZodString;
56
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ }, {
58
+ registrationNumber: z.ZodString;
59
+ }>, "strip", z.ZodTypeAny, {
60
+ createdAt: string;
61
+ createdBy: string;
62
+ createdByRole: string;
63
+ registrationNumber: string;
64
+ acceptedAt: string;
65
+ createdByUserType?: "system" | "user" | null | undefined;
66
+ createdBySignature?: string | null | undefined;
67
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
68
+ }, {
69
+ createdAt: string;
70
+ createdBy: string;
71
+ createdByRole: string;
72
+ registrationNumber: string;
73
+ acceptedAt: string;
74
+ createdByUserType?: "system" | "user" | null | undefined;
75
+ createdBySignature?: string | null | undefined;
76
+ createdAtLocation?: string | null | undefined;
77
+ }>;
78
+ export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
79
+ export declare const LegalStatuses: z.ZodObject<{
80
+ DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
81
+ createdAt: z.ZodString;
82
+ createdBy: z.ZodString;
83
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
84
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
85
+ acceptedAt: z.ZodString;
86
+ createdByRole: z.ZodString;
87
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ createdAt: string;
90
+ createdBy: string;
91
+ createdByRole: string;
92
+ acceptedAt: string;
93
+ createdByUserType?: "system" | "user" | null | undefined;
94
+ createdBySignature?: string | null | undefined;
95
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
96
+ }, {
97
+ createdAt: string;
98
+ createdBy: string;
99
+ createdByRole: string;
100
+ acceptedAt: string;
101
+ createdByUserType?: "system" | "user" | null | undefined;
102
+ createdBySignature?: string | null | undefined;
103
+ createdAtLocation?: string | null | undefined;
104
+ }>>>;
105
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
106
+ createdAt: z.ZodString;
107
+ createdBy: z.ZodString;
108
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
109
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
110
+ acceptedAt: z.ZodString;
111
+ createdByRole: z.ZodString;
112
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ }, {
114
+ registrationNumber: z.ZodString;
115
+ }>, "strip", z.ZodTypeAny, {
116
+ createdAt: string;
117
+ createdBy: string;
118
+ createdByRole: string;
119
+ registrationNumber: string;
120
+ acceptedAt: string;
121
+ createdByUserType?: "system" | "user" | null | undefined;
122
+ createdBySignature?: string | null | undefined;
123
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
124
+ }, {
125
+ createdAt: string;
126
+ createdBy: string;
127
+ createdByRole: string;
128
+ registrationNumber: string;
129
+ acceptedAt: string;
130
+ createdByUserType?: "system" | "user" | null | undefined;
131
+ createdBySignature?: string | null | undefined;
132
+ createdAtLocation?: string | null | undefined;
133
+ }>>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ DECLARED?: {
136
+ createdAt: string;
137
+ createdBy: string;
138
+ createdByRole: string;
139
+ acceptedAt: string;
140
+ createdByUserType?: "system" | "user" | null | undefined;
141
+ createdBySignature?: string | null | undefined;
142
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
143
+ } | null | undefined;
144
+ REGISTERED?: {
145
+ createdAt: string;
146
+ createdBy: string;
147
+ createdByRole: string;
148
+ registrationNumber: string;
149
+ acceptedAt: string;
150
+ createdByUserType?: "system" | "user" | null | undefined;
151
+ createdBySignature?: string | null | undefined;
152
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
153
+ } | null | undefined;
154
+ }, {
155
+ DECLARED?: {
156
+ createdAt: string;
157
+ createdBy: string;
158
+ createdByRole: string;
159
+ acceptedAt: string;
160
+ createdByUserType?: "system" | "user" | null | undefined;
161
+ createdBySignature?: string | null | undefined;
162
+ createdAtLocation?: string | null | undefined;
163
+ } | null | undefined;
164
+ REGISTERED?: {
165
+ createdAt: string;
166
+ createdBy: string;
167
+ createdByRole: string;
168
+ registrationNumber: string;
169
+ acceptedAt: string;
170
+ createdByUserType?: "system" | "user" | null | undefined;
171
+ createdBySignature?: string | null | undefined;
172
+ createdAtLocation?: string | null | undefined;
173
+ } | null | undefined;
27
174
  }>;
28
175
  /**
29
176
  * Event metadata exposed to client.
@@ -31,57 +178,208 @@ export declare const EventStatuses: z.ZodNativeEnum<{
31
178
  * Accessed through `event.` in configuration.
32
179
  */
33
180
  export declare const EventMetadata: z.ZodObject<{
34
- id: z.ZodString;
181
+ id: z.ZodBranded<z.ZodString, "UUID">;
35
182
  type: z.ZodString;
36
- status: z.ZodNativeEnum<{
37
- readonly CREATED: "CREATED";
38
- readonly NOTIFIED: "NOTIFIED";
39
- readonly DECLARED: "DECLARED";
40
- readonly VALIDATED: "VALIDATED";
41
- readonly REGISTERED: "REGISTERED";
42
- readonly CERTIFIED: "CERTIFIED";
43
- readonly REJECTED: "REJECTED";
44
- readonly ARCHIVED: "ARCHIVED";
183
+ status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
184
+ legalStatuses: z.ZodObject<{
185
+ DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
186
+ createdAt: z.ZodString;
187
+ createdBy: z.ZodString;
188
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
189
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
190
+ acceptedAt: z.ZodString;
191
+ createdByRole: z.ZodString;
192
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ createdAt: string;
195
+ createdBy: string;
196
+ createdByRole: string;
197
+ acceptedAt: string;
198
+ createdByUserType?: "system" | "user" | null | undefined;
199
+ createdBySignature?: string | null | undefined;
200
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
201
+ }, {
202
+ createdAt: string;
203
+ createdBy: string;
204
+ createdByRole: string;
205
+ acceptedAt: string;
206
+ createdByUserType?: "system" | "user" | null | undefined;
207
+ createdBySignature?: string | null | undefined;
208
+ createdAtLocation?: string | null | undefined;
209
+ }>>>;
210
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
211
+ createdAt: z.ZodString;
212
+ createdBy: z.ZodString;
213
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
214
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
215
+ acceptedAt: z.ZodString;
216
+ createdByRole: z.ZodString;
217
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ }, {
219
+ registrationNumber: z.ZodString;
220
+ }>, "strip", z.ZodTypeAny, {
221
+ createdAt: string;
222
+ createdBy: string;
223
+ createdByRole: string;
224
+ registrationNumber: string;
225
+ acceptedAt: string;
226
+ createdByUserType?: "system" | "user" | null | undefined;
227
+ createdBySignature?: string | null | undefined;
228
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
229
+ }, {
230
+ createdAt: string;
231
+ createdBy: string;
232
+ createdByRole: string;
233
+ registrationNumber: string;
234
+ acceptedAt: string;
235
+ createdByUserType?: "system" | "user" | null | undefined;
236
+ createdBySignature?: string | null | undefined;
237
+ createdAtLocation?: string | null | undefined;
238
+ }>>>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ DECLARED?: {
241
+ createdAt: string;
242
+ createdBy: string;
243
+ createdByRole: string;
244
+ acceptedAt: string;
245
+ createdByUserType?: "system" | "user" | null | undefined;
246
+ createdBySignature?: string | null | undefined;
247
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
248
+ } | null | undefined;
249
+ REGISTERED?: {
250
+ createdAt: string;
251
+ createdBy: string;
252
+ createdByRole: string;
253
+ registrationNumber: string;
254
+ acceptedAt: string;
255
+ createdByUserType?: "system" | "user" | null | undefined;
256
+ createdBySignature?: string | null | undefined;
257
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
258
+ } | null | undefined;
259
+ }, {
260
+ DECLARED?: {
261
+ createdAt: string;
262
+ createdBy: string;
263
+ createdByRole: string;
264
+ acceptedAt: string;
265
+ createdByUserType?: "system" | "user" | null | undefined;
266
+ createdBySignature?: string | null | undefined;
267
+ createdAtLocation?: string | null | undefined;
268
+ } | null | undefined;
269
+ REGISTERED?: {
270
+ createdAt: string;
271
+ createdBy: string;
272
+ createdByRole: string;
273
+ registrationNumber: string;
274
+ acceptedAt: string;
275
+ createdByUserType?: "system" | "user" | null | undefined;
276
+ createdBySignature?: string | null | undefined;
277
+ createdAtLocation?: string | null | undefined;
278
+ } | null | undefined;
45
279
  }>;
46
280
  createdAt: z.ZodString;
281
+ dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
282
  createdBy: z.ZodString;
48
- createdAtLocation: z.ZodString;
49
- modifiedAt: z.ZodString;
283
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
284
+ updatedByUserRole: z.ZodString;
285
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
286
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
288
+ updatedAt: z.ZodString;
50
289
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
- updatedBy: z.ZodString;
290
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
291
  trackingId: z.ZodString;
53
- registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
292
+ flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
293
+ readonly PRINTED: "printed";
294
+ readonly INCOMPLETE: "incomplete";
295
+ readonly REJECTED: "rejected";
296
+ readonly CORRECTION_REQUESTED: "correction-requested";
297
+ }>]>, "many">;
54
298
  }, "strip", z.ZodTypeAny, {
55
299
  type: string;
56
- id: string;
300
+ id: string & z.BRAND<"UUID">;
57
301
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
58
302
  createdAt: string;
59
303
  createdBy: string;
60
- createdAtLocation: string;
304
+ updatedAt: string;
61
305
  trackingId: string;
62
- modifiedAt: string;
63
- updatedBy: string;
306
+ legalStatuses: {
307
+ DECLARED?: {
308
+ createdAt: string;
309
+ createdBy: string;
310
+ createdByRole: string;
311
+ acceptedAt: string;
312
+ createdByUserType?: "system" | "user" | null | undefined;
313
+ createdBySignature?: string | null | undefined;
314
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
315
+ } | null | undefined;
316
+ REGISTERED?: {
317
+ createdAt: string;
318
+ createdBy: string;
319
+ createdByRole: string;
320
+ registrationNumber: string;
321
+ acceptedAt: string;
322
+ createdByUserType?: "system" | "user" | null | undefined;
323
+ createdBySignature?: string | null | undefined;
324
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
325
+ } | null | undefined;
326
+ };
327
+ updatedByUserRole: string;
328
+ flags: string[];
329
+ createdByUserType?: "system" | "user" | null | undefined;
330
+ createdBySignature?: string | null | undefined;
331
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
64
332
  assignedTo?: string | null | undefined;
65
- registrationNumber?: string | null | undefined;
333
+ dateOfEvent?: string | null | undefined;
334
+ updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
335
+ updatedBy?: string | null | undefined;
66
336
  }, {
67
337
  type: string;
68
338
  id: string;
69
339
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
70
340
  createdAt: string;
71
341
  createdBy: string;
72
- createdAtLocation: string;
342
+ updatedAt: string;
73
343
  trackingId: string;
74
- modifiedAt: string;
75
- updatedBy: string;
344
+ legalStatuses: {
345
+ DECLARED?: {
346
+ createdAt: string;
347
+ createdBy: string;
348
+ createdByRole: string;
349
+ acceptedAt: string;
350
+ createdByUserType?: "system" | "user" | null | undefined;
351
+ createdBySignature?: string | null | undefined;
352
+ createdAtLocation?: string | null | undefined;
353
+ } | null | undefined;
354
+ REGISTERED?: {
355
+ createdAt: string;
356
+ createdBy: string;
357
+ createdByRole: string;
358
+ registrationNumber: string;
359
+ acceptedAt: string;
360
+ createdByUserType?: "system" | "user" | null | undefined;
361
+ createdBySignature?: string | null | undefined;
362
+ createdAtLocation?: string | null | undefined;
363
+ } | null | undefined;
364
+ };
365
+ updatedByUserRole: string;
366
+ flags: string[];
367
+ createdByUserType?: "system" | "user" | null | undefined;
368
+ createdBySignature?: string | null | undefined;
369
+ createdAtLocation?: string | null | undefined;
76
370
  assignedTo?: string | null | undefined;
77
- registrationNumber?: string | null | undefined;
371
+ dateOfEvent?: string | null | undefined;
372
+ updatedAtLocation?: string | null | undefined;
373
+ updatedBy?: string | null | undefined;
78
374
  }>;
79
375
  export type EventMetadata = z.infer<typeof EventMetadata>;
80
- export type EventMetadataKeys = `event.${keyof EventMetadata}`;
376
+ export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"];
377
+ export declare const EventMetadataKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
378
+ export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
81
379
  /**
82
380
  * Mapping of event metadata keys to translation configuration.
83
381
  * Consider introducing type in same manner as we have in FieldConfig.
84
382
  * We need a way to know how to parse it.
85
383
  */
86
- export declare const eventMetadataLabelMap: Record<EventMetadataKeys, TranslationConfig>;
384
+ export declare const eventMetadataLabelMap: Record<Exclude<`event.${EventMetadataKeys}`, 'event.legalStatuses'>, TranslationConfig>;
87
385
  //# sourceMappingURL=EventMetadata.d.ts.map