@opencrvs/toolkit 1.8.0-rc.f8aa0c5 → 1.8.0-rc.f8e0ee5

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