@nira-opencrvs/toolkit 1.9.11-rc.1f36427

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