@opencrvs/toolkit 1.8.0-rc.f9d33b7 → 1.8.0-rc.f9db4f0

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