@opencrvs/toolkit 1.9.7-rc.9705feb → 1.9.7-rc.9f15ec3

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