@opencrvs/toolkit 1.9.2-rc.c3822a1 → 1.9.2-rc.f6dcfa6

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 (56) hide show
  1. package/dist/commons/api/router.d.ts +1620 -26666
  2. package/dist/commons/conditionals/conditionals.d.ts +1 -10
  3. package/dist/commons/conditionals/validate.d.ts +4 -11
  4. package/dist/commons/events/ActionConfig.d.ts +1525 -21293
  5. package/dist/commons/events/ActionDocument.d.ts +1849 -764
  6. package/dist/commons/events/ActionInput.d.ts +1066 -264
  7. package/dist/commons/events/ActionType.d.ts +8 -85
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1238 -211
  9. package/dist/commons/events/CompositeFieldValue.d.ts +176 -25
  10. package/dist/commons/events/Conditional.d.ts +38 -26
  11. package/dist/commons/events/Constants.d.ts +1 -1
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +4169 -919
  13. package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
  14. package/dist/commons/events/DeduplicationConfig.d.ts +150 -15
  15. package/dist/commons/events/Draft.d.ts +105 -70
  16. package/dist/commons/events/DynamicFieldValue.d.ts +91 -7
  17. package/dist/commons/events/EventConfig.d.ts +2096 -17110
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +1326 -311
  20. package/dist/commons/events/EventIndex.d.ts +967 -191
  21. package/dist/commons/events/EventInput.d.ts +8 -2
  22. package/dist/commons/events/EventMetadata.d.ts +345 -102
  23. package/dist/commons/events/FieldConfig.d.ts +11775 -4088
  24. package/dist/commons/events/FieldType.d.ts +2 -6
  25. package/dist/commons/events/FieldTypeMapping.d.ts +810 -164
  26. package/dist/commons/events/FieldValue.d.ts +354 -80
  27. package/dist/commons/events/FormConfig.d.ts +697 -12636
  28. package/dist/commons/events/PageConfig.d.ts +314 -8441
  29. package/dist/commons/events/SummaryConfig.d.ts +161 -14
  30. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  31. package/dist/commons/events/WorkqueueColumnConfig.d.ts +36 -70
  32. package/dist/commons/events/WorkqueueConfig.d.ts +7080 -1597
  33. package/dist/commons/events/deduplication.d.ts +3 -3
  34. package/dist/commons/events/defineConfig.d.ts +155 -24703
  35. package/dist/commons/events/index.d.ts +0 -1
  36. package/dist/commons/events/locations.d.ts +19 -15
  37. package/dist/commons/events/scopes.d.ts +0 -1
  38. package/dist/commons/events/state/availableActions.d.ts +1 -2
  39. package/dist/commons/events/state/flags.d.ts +3 -21
  40. package/dist/commons/events/state/index.d.ts +19 -17
  41. package/dist/commons/events/state/utils.d.ts +112 -127
  42. package/dist/commons/events/test.utils.d.ts +5 -11
  43. package/dist/commons/events/transactions.d.ts +1 -1
  44. package/dist/commons/events/utils.d.ts +359 -49444
  45. package/dist/commons/notification/UserNotifications.d.ts +636 -55
  46. package/dist/conditionals/index.d.ts.map +1 -1
  47. package/dist/conditionals/index.js +5 -38
  48. package/dist/events/deduplication.d.ts +3 -3
  49. package/dist/events/index.js +1360 -1502
  50. package/dist/notification/index.d.ts.map +1 -1
  51. package/dist/notification/index.js +1279 -1276
  52. package/dist/scopes/index.d.ts +136 -106
  53. package/dist/scopes/index.d.ts.map +1 -1
  54. package/dist/scopes/index.js +93 -116
  55. package/package.json +5 -5
  56. package/dist/commons/events/Flag.d.ts +0 -43
@@ -1,7 +1,13 @@
1
- import * as z from 'zod/v4';
1
+ import { z } from 'zod';
2
2
  export declare const EventInput: z.ZodObject<{
3
3
  transactionId: z.ZodString;
4
4
  type: z.ZodString;
5
- }, z.core.$strip>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ type: string;
7
+ transactionId: string;
8
+ }, {
9
+ type: string;
10
+ transactionId: string;
11
+ }>;
6
12
  export type EventInput = z.infer<typeof EventInput>;
7
13
  //# sourceMappingURL=EventInput.d.ts.map
@@ -1,160 +1,403 @@
1
- import * as z from 'zod/v4';
1
+ import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
3
  /**
4
4
  * Event statuses recognized by the system
5
5
  */
6
- export declare const EventStatus: z.ZodEnum<{
7
- ARCHIVED: "ARCHIVED";
8
- DECLARED: "DECLARED";
9
- REGISTERED: "REGISTERED";
10
- CREATED: "CREATED";
11
- NOTIFIED: "NOTIFIED";
12
- }>;
6
+ export declare const EventStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
13
7
  export type EventStatus = z.infer<typeof EventStatus>;
14
- export declare const ZodDate: z.ZodISODate;
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;
15
27
  export declare const ActionCreationMetadata: z.ZodObject<{
16
- createdAt: z.ZodISODateTime;
28
+ createdAt: z.ZodString;
17
29
  createdBy: z.ZodString;
18
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
19
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
20
- system: "system";
21
- user: "user";
22
- }>>>;
23
- acceptedAt: z.ZodISODateTime;
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;
24
33
  createdByRole: z.ZodString;
25
34
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- }, z.core.$strip>;
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
+ }>;
27
52
  export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
28
- export declare const RegistrationCreationMetadata: z.ZodObject<{
29
- createdAt: z.ZodISODateTime;
53
+ export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.extendShape<{
54
+ createdAt: z.ZodString;
30
55
  createdBy: z.ZodString;
31
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
32
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
33
- system: "system";
34
- user: "user";
35
- }>>>;
36
- acceptedAt: z.ZodISODateTime;
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;
37
59
  createdByRole: z.ZodString;
38
60
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ }, {
39
62
  registrationNumber: z.ZodString;
40
- }, z.core.$strip>;
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
+ }>;
41
82
  export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
42
83
  export declare const LegalStatuses: z.ZodObject<{
43
84
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
- createdAt: z.ZodISODateTime;
85
+ createdAt: z.ZodString;
45
86
  createdBy: z.ZodString;
46
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
47
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
48
- system: "system";
49
- user: "user";
50
- }>>>;
51
- acceptedAt: z.ZodISODateTime;
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;
52
90
  createdByRole: z.ZodString;
53
91
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
- }, z.core.$strip>>>;
55
- REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
56
- createdAt: z.ZodISODateTime;
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;
57
111
  createdBy: z.ZodString;
58
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
59
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
60
- system: "system";
61
- user: "user";
62
- }>>>;
63
- acceptedAt: z.ZodISODateTime;
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;
64
115
  createdByRole: z.ZodString;
65
116
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ }, {
66
118
  registrationNumber: z.ZodString;
67
- }, z.core.$strip>>>;
68
- }, z.core.$strip>;
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
+ }>;
69
179
  /**
70
180
  * Event metadata exposed to client.
71
181
  *
72
182
  * Accessed through `event.` in configuration.
73
183
  */
74
184
  export declare const EventMetadata: z.ZodObject<{
75
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
185
+ id: z.ZodBranded<z.ZodString, "UUID">;
76
186
  type: z.ZodString;
77
- status: z.ZodEnum<{
78
- ARCHIVED: "ARCHIVED";
79
- DECLARED: "DECLARED";
80
- REGISTERED: "REGISTERED";
81
- CREATED: "CREATED";
82
- NOTIFIED: "NOTIFIED";
83
- }>;
187
+ status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
84
188
  legalStatuses: z.ZodObject<{
85
189
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
86
- createdAt: z.ZodISODateTime;
190
+ createdAt: z.ZodString;
87
191
  createdBy: z.ZodString;
88
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
89
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
90
- system: "system";
91
- user: "user";
92
- }>>>;
93
- acceptedAt: z.ZodISODateTime;
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;
94
195
  createdByRole: z.ZodString;
95
196
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
- }, z.core.$strip>>>;
97
- REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
98
- createdAt: z.ZodISODateTime;
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;
99
216
  createdBy: z.ZodString;
100
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
101
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
102
- system: "system";
103
- user: "user";
104
- }>>>;
105
- acceptedAt: z.ZodISODateTime;
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;
106
220
  createdByRole: z.ZodString;
107
221
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
+ }, {
108
223
  registrationNumber: z.ZodString;
109
- }, z.core.$strip>>>;
110
- }, z.core.$strip>;
111
- createdAt: z.ZodISODateTime;
112
- dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
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>>;
113
286
  createdBy: z.ZodString;
114
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
115
- system: "system";
116
- user: "user";
117
- }>>>;
287
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
118
288
  updatedByUserRole: z.ZodString;
119
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
289
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
120
290
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
122
- updatedAt: z.ZodISODateTime;
291
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
292
+ updatedAt: z.ZodString;
123
293
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
294
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
295
  trackingId: z.ZodString;
126
296
  potentialDuplicates: z.ZodArray<z.ZodObject<{
127
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
297
+ id: z.ZodBranded<z.ZodString, "UUID">;
128
298
  trackingId: z.ZodString;
129
- }, z.core.$strip>>;
130
- flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
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<{
131
307
  readonly PENDING_CERTIFICATION: "pending-certification";
132
308
  readonly INCOMPLETE: "incomplete";
133
309
  readonly REJECTED: "rejected";
134
310
  readonly CORRECTION_REQUESTED: "correction-requested";
135
311
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
136
- }>]>, z.ZodString]>>;
137
- }, z.core.$strip>;
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
+ }>;
138
398
  export type EventMetadata = z.infer<typeof EventMetadata>;
139
399
  export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"];
140
- export declare const EventMetadataKeys: z.ZodEnum<{
141
- type: "type";
142
- id: "id";
143
- status: "status";
144
- createdByUserType: "createdByUserType";
145
- createdAt: "createdAt";
146
- createdBy: "createdBy";
147
- createdAtLocation: "createdAtLocation";
148
- assignedTo: "assignedTo";
149
- trackingId: "trackingId";
150
- legalStatuses: "legalStatuses";
151
- dateOfEvent: "dateOfEvent";
152
- updatedByUserRole: "updatedByUserRole";
153
- updatedAtLocation: "updatedAtLocation";
154
- updatedAt: "updatedAt";
155
- updatedBy: "updatedBy";
156
- flags: "flags";
157
- }>;
400
+ export declare const EventMetadataKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
158
401
  export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
159
402
  /**
160
403
  * Mapping of event metadata keys to translation configuration.