@opencrvs/toolkit 1.8.0-rc.f9fb039 → 1.8.0-rc.fa49ae3

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