@ecrvs/opencrvs-toolkit 1.8.1-rc.a7ee8fb

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