@opencrvs/toolkit 2.1.0-rc.4308e66 → 2.1.0-rc.462d2a9

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/application-config/index.js +202 -190
  2. package/dist/commons/api/router.d.ts +3270 -3306
  3. package/dist/commons/application-config/index.d.ts +6 -6
  4. package/dist/commons/conditionals/conditionals.d.ts +259 -2102
  5. package/dist/commons/conditionals/validate.d.ts +2 -1
  6. package/dist/commons/events/ActionConfig.d.ts +126 -105
  7. package/dist/commons/events/ActionDocument.d.ts +117 -123
  8. package/dist/commons/events/ActionInput.d.ts +0 -6
  9. package/dist/commons/events/ActionStatus.d.ts +14 -0
  10. package/dist/commons/events/ActionType.d.ts +62 -62
  11. package/dist/commons/events/AdvancedSearchConfig.d.ts +513 -507
  12. package/dist/commons/events/AuditLog.d.ts +43 -43
  13. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  14. package/dist/commons/events/Conditional.d.ts +3 -3
  15. package/dist/commons/events/CountryConfigQueryInput.d.ts +608 -590
  16. package/dist/commons/events/Draft.d.ts +37 -37
  17. package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
  18. package/dist/commons/events/EventConfig.d.ts +5 -5
  19. package/dist/commons/events/EventDocument.d.ts +48 -48
  20. package/dist/commons/events/EventIndex.d.ts +52 -71
  21. package/dist/commons/events/EventMetadata.d.ts +41 -40
  22. package/dist/commons/events/FieldConfig.d.ts +341 -336
  23. package/dist/commons/events/FieldType.d.ts +51 -51
  24. package/dist/commons/events/FieldTypeMapping.d.ts +90 -90
  25. package/dist/commons/events/FieldValue.d.ts +12 -12
  26. package/dist/commons/events/Flag.d.ts +63 -15
  27. package/dist/commons/events/TemplateConfig.d.ts +1 -1
  28. package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
  29. package/dist/commons/events/WorkqueueConfig.d.ts +829 -814
  30. package/dist/commons/events/deduplication.d.ts +1 -1
  31. package/dist/commons/events/event.d.ts +2 -2
  32. package/dist/commons/events/field.d.ts +78 -895
  33. package/dist/commons/events/locations.d.ts +4 -4
  34. package/dist/commons/events/mocks.test.utils.d.ts +2 -2
  35. package/dist/commons/events/scopes.d.ts +4 -4
  36. package/dist/commons/events/state/index.d.ts +17 -17
  37. package/dist/commons/events/state/utils.d.ts +7 -7
  38. package/dist/commons/events/test.utils.d.ts +35 -38
  39. package/dist/commons/events/utils.d.ts +114 -114
  40. package/dist/commons/notification/UserNotifications.d.ts +10 -10
  41. package/dist/conditionals/index.js +303 -55
  42. package/dist/environment/derived-variables.d.ts +119 -119
  43. package/dist/environment/derived-variables.d.ts.map +1 -1
  44. package/dist/environment/logger.d.ts.map +1 -1
  45. package/dist/environment/questions.d.ts +75 -74
  46. package/dist/environment/questions.d.ts.map +1 -1
  47. package/dist/environment/setup-environment.js +8 -14
  48. package/dist/environment/utils.d.ts +1 -1
  49. package/dist/events/deduplication.d.ts +1 -1
  50. package/dist/events/index.js +3204 -3167
  51. package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
  52. package/dist/notification/index.js +1443 -882
  53. package/dist/scopes/index.d.ts +396 -146
  54. package/dist/scopes/index.js +304 -55
  55. package/opencrvs-toolkit-2.1.0-rc.462d2a9.tgz +0 -0
  56. package/package.json +3 -4
  57. package/tsconfig.tsbuildinfo +1 -1
  58. package/opencrvs-toolkit-2.1.0-rc.4308e66.tgz +0 -0
@@ -1,13 +1,14 @@
1
1
  import { z, ZodType } from 'zod/v4';
2
+ export { ContainsFlags } from './Flag';
2
3
  export declare const EventIndex: z.ZodObject<{
3
4
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
4
5
  type: z.ZodString;
5
6
  status: z.ZodEnum<{
7
+ ARCHIVED: "ARCHIVED";
6
8
  CREATED: "CREATED";
7
- NOTIFIED: "NOTIFIED";
8
9
  DECLARED: "DECLARED";
10
+ NOTIFIED: "NOTIFIED";
9
11
  REGISTERED: "REGISTERED";
10
- ARCHIVED: "ARCHIVED";
11
12
  }>;
12
13
  legalStatuses: z.ZodObject<{
13
14
  NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -15,8 +16,8 @@ export declare const EventIndex: z.ZodObject<{
15
16
  createdBy: z.ZodString;
16
17
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
17
18
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
18
- user: "user";
19
19
  system: "system";
20
+ user: "user";
20
21
  }>>>;
21
22
  acceptedAt: z.ZodISODateTime;
22
23
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -26,8 +27,8 @@ export declare const EventIndex: z.ZodObject<{
26
27
  createdBy: z.ZodString;
27
28
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
28
29
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
29
- user: "user";
30
30
  system: "system";
31
+ user: "user";
31
32
  }>>>;
32
33
  acceptedAt: z.ZodISODateTime;
33
34
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -37,8 +38,8 @@ export declare const EventIndex: z.ZodObject<{
37
38
  createdBy: z.ZodString;
38
39
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
39
40
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40
- user: "user";
41
41
  system: "system";
42
+ user: "user";
42
43
  }>>>;
43
44
  acceptedAt: z.ZodISODateTime;
44
45
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -50,8 +51,8 @@ export declare const EventIndex: z.ZodObject<{
50
51
  placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
51
52
  createdBy: z.ZodString;
52
53
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
53
- user: "user";
54
54
  system: "system";
55
+ user: "user";
55
56
  }>>>;
56
57
  updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
58
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
@@ -65,13 +66,14 @@ export declare const EventIndex: z.ZodObject<{
65
66
  trackingId: z.ZodString;
66
67
  }, z.core.$strip>>;
67
68
  flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
68
- readonly INCOMPLETE: "incomplete";
69
- readonly REJECTED: "rejected";
70
- readonly CORRECTION_REQUESTED: "correction-requested";
71
- readonly POTENTIAL_DUPLICATE: "potential-duplicate";
72
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
69
+ readonly INCOMPLETE: 'incomplete';
70
+ readonly REJECTED: 'rejected';
71
+ readonly CORRECTION_REQUESTED: 'correction-requested';
72
+ readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
73
+ readonly EDIT_IN_PROGRESS: 'edit-in-progress';
74
+ readonly SEALED: 'sealed';
73
75
  }>]>, z.ZodString]>>;
74
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
76
+ declaration: z.ZodRecord<z.ZodString, ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
75
77
  }, z.core.$strip>;
76
78
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
77
79
  type: z.ZodString;
@@ -90,18 +92,18 @@ export type Exact = z.infer<typeof Exact>;
90
92
  export declare const ExactStatus: z.ZodObject<{
91
93
  type: z.ZodLiteral<"exact">;
92
94
  term: z.ZodEnum<{
95
+ ARCHIVED: "ARCHIVED";
93
96
  CREATED: "CREATED";
94
- NOTIFIED: "NOTIFIED";
95
97
  DECLARED: "DECLARED";
98
+ NOTIFIED: "NOTIFIED";
96
99
  REGISTERED: "REGISTERED";
97
- ARCHIVED: "ARCHIVED";
98
100
  }>;
99
101
  }, z.core.$strip>;
100
102
  export declare const ExactUserType: z.ZodObject<{
101
103
  type: z.ZodLiteral<"exact">;
102
104
  term: z.ZodEnum<{
103
- user: "user";
104
105
  system: "system";
106
+ user: "user";
105
107
  }>;
106
108
  }, z.core.$strip>;
107
109
  export declare const AnyOf: z.ZodObject<{
@@ -111,11 +113,11 @@ export declare const AnyOf: z.ZodObject<{
111
113
  export declare const AnyOfStatus: z.ZodObject<{
112
114
  type: z.ZodLiteral<"anyOf">;
113
115
  terms: z.ZodArray<z.ZodEnum<{
116
+ ARCHIVED: "ARCHIVED";
114
117
  CREATED: "CREATED";
115
- NOTIFIED: "NOTIFIED";
116
118
  DECLARED: "DECLARED";
119
+ NOTIFIED: "NOTIFIED";
117
120
  REGISTERED: "REGISTERED";
118
- ARCHIVED: "ARCHIVED";
119
121
  }>>;
120
122
  }, z.core.$strip>;
121
123
  export declare const Range: z.ZodObject<{
@@ -123,29 +125,6 @@ export declare const Range: z.ZodObject<{
123
125
  gte: z.ZodString;
124
126
  lte: z.ZodString;
125
127
  }, z.core.$strip>;
126
- export declare const ContainsFlags: z.ZodObject<{
127
- anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
128
- readonly INCOMPLETE: "incomplete";
129
- readonly REJECTED: "rejected";
130
- readonly CORRECTION_REQUESTED: "correction-requested";
131
- readonly POTENTIAL_DUPLICATE: "potential-duplicate";
132
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
133
- }>]>, z.ZodString]>>>;
134
- noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
135
- readonly INCOMPLETE: "incomplete";
136
- readonly REJECTED: "rejected";
137
- readonly CORRECTION_REQUESTED: "correction-requested";
138
- readonly POTENTIAL_DUPLICATE: "potential-duplicate";
139
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
140
- }>]>, z.ZodString]>>>;
141
- allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
142
- readonly INCOMPLETE: "incomplete";
143
- readonly REJECTED: "rejected";
144
- readonly CORRECTION_REQUESTED: "correction-requested";
145
- readonly POTENTIAL_DUPLICATE: "potential-duplicate";
146
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
147
- }>]>, z.ZodString]>>>;
148
- }, z.core.$strip>;
149
128
  export declare const Within: z.ZodObject<{
150
129
  type: z.ZodLiteral<"within">;
151
130
  location: z.ZodString;
@@ -165,10 +144,10 @@ export declare const DateCondition: z.ZodUnion<readonly [z.ZodObject<{
165
144
  }, z.core.$strip>, z.ZodObject<{
166
145
  type: z.ZodLiteral<"timePeriod">;
167
146
  term: z.ZodEnum<{
168
- last7Days: "last7Days";
169
147
  last30Days: "last30Days";
170
- last90Days: "last90Days";
171
148
  last365Days: "last365Days";
149
+ last7Days: "last7Days";
150
+ last90Days: "last90Days";
172
151
  }>;
173
152
  }, z.core.$strip>]>;
174
153
  export type DateCondition = z.infer<typeof DateCondition>;
@@ -184,20 +163,20 @@ export declare const QueryExpression: z.ZodObject<{
184
163
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
185
164
  type: z.ZodLiteral<"anyOf">;
186
165
  terms: z.ZodArray<z.ZodEnum<{
166
+ ARCHIVED: "ARCHIVED";
187
167
  CREATED: "CREATED";
188
- NOTIFIED: "NOTIFIED";
189
168
  DECLARED: "DECLARED";
169
+ NOTIFIED: "NOTIFIED";
190
170
  REGISTERED: "REGISTERED";
191
- ARCHIVED: "ARCHIVED";
192
171
  }>>;
193
172
  }, z.core.$strip>, z.ZodObject<{
194
173
  type: z.ZodLiteral<"exact">;
195
174
  term: z.ZodEnum<{
175
+ ARCHIVED: "ARCHIVED";
196
176
  CREATED: "CREATED";
197
- NOTIFIED: "NOTIFIED";
198
177
  DECLARED: "DECLARED";
178
+ NOTIFIED: "NOTIFIED";
199
179
  REGISTERED: "REGISTERED";
200
- ARCHIVED: "ARCHIVED";
201
180
  }>;
202
181
  }, z.core.$strip>]>>>;
203
182
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -210,10 +189,10 @@ export declare const QueryExpression: z.ZodObject<{
210
189
  }, z.core.$strip>, z.ZodObject<{
211
190
  type: z.ZodLiteral<"timePeriod">;
212
191
  term: z.ZodEnum<{
213
- last7Days: "last7Days";
214
192
  last30Days: "last30Days";
215
- last90Days: "last90Days";
216
193
  last365Days: "last365Days";
194
+ last7Days: "last7Days";
195
+ last90Days: "last90Days";
217
196
  }>;
218
197
  }, z.core.$strip>]>>>;
219
198
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -226,10 +205,10 @@ export declare const QueryExpression: z.ZodObject<{
226
205
  }, z.core.$strip>, z.ZodObject<{
227
206
  type: z.ZodLiteral<"timePeriod">;
228
207
  term: z.ZodEnum<{
229
- last7Days: "last7Days";
230
208
  last30Days: "last30Days";
231
- last90Days: "last90Days";
232
209
  last365Days: "last365Days";
210
+ last7Days: "last7Days";
211
+ last90Days: "last90Days";
233
212
  }>;
234
213
  }, z.core.$strip>]>>>;
235
214
  'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -250,10 +229,10 @@ export declare const QueryExpression: z.ZodObject<{
250
229
  }, z.core.$strip>, z.ZodObject<{
251
230
  type: z.ZodLiteral<"timePeriod">;
252
231
  term: z.ZodEnum<{
253
- last7Days: "last7Days";
254
232
  last30Days: "last30Days";
255
- last90Days: "last90Days";
256
233
  last365Days: "last365Days";
234
+ last7Days: "last7Days";
235
+ last90Days: "last90Days";
257
236
  }>;
258
237
  }, z.core.$strip>]>>>;
259
238
  'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -289,8 +268,8 @@ export declare const QueryExpression: z.ZodObject<{
289
268
  createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
290
269
  type: z.ZodLiteral<"exact">;
291
270
  term: z.ZodEnum<{
292
- user: "user";
293
271
  system: "system";
272
+ user: "user";
294
273
  }>;
295
274
  }, z.core.$strip>>>;
296
275
  updatedByUserRole: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -311,28 +290,31 @@ export declare const QueryExpression: z.ZodObject<{
311
290
  }, z.core.$strip>>>;
312
291
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
313
292
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
314
- readonly INCOMPLETE: "incomplete";
315
- readonly REJECTED: "rejected";
316
- readonly CORRECTION_REQUESTED: "correction-requested";
317
- readonly POTENTIAL_DUPLICATE: "potential-duplicate";
318
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
293
+ readonly INCOMPLETE: 'incomplete';
294
+ readonly REJECTED: 'rejected';
295
+ readonly CORRECTION_REQUESTED: 'correction-requested';
296
+ readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
297
+ readonly EDIT_IN_PROGRESS: 'edit-in-progress';
298
+ readonly SEALED: 'sealed';
319
299
  }>]>, z.ZodString]>>>;
320
300
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
321
- readonly INCOMPLETE: "incomplete";
322
- readonly REJECTED: "rejected";
323
- readonly CORRECTION_REQUESTED: "correction-requested";
324
- readonly POTENTIAL_DUPLICATE: "potential-duplicate";
325
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
301
+ readonly INCOMPLETE: 'incomplete';
302
+ readonly REJECTED: 'rejected';
303
+ readonly CORRECTION_REQUESTED: 'correction-requested';
304
+ readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
305
+ readonly EDIT_IN_PROGRESS: 'edit-in-progress';
306
+ readonly SEALED: 'sealed';
326
307
  }>]>, z.ZodString]>>>;
327
308
  allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
328
- readonly INCOMPLETE: "incomplete";
329
- readonly REJECTED: "rejected";
330
- readonly CORRECTION_REQUESTED: "correction-requested";
331
- readonly POTENTIAL_DUPLICATE: "potential-duplicate";
332
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
309
+ readonly INCOMPLETE: 'incomplete';
310
+ readonly REJECTED: 'rejected';
311
+ readonly CORRECTION_REQUESTED: 'correction-requested';
312
+ readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
313
+ readonly EDIT_IN_PROGRESS: 'edit-in-progress';
314
+ readonly SEALED: 'sealed';
333
315
  }>]>, z.ZodString]>>>;
334
316
  }, z.core.$strip>>>;
335
- data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
317
+ data: z.ZodOptional<ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
336
318
  }, z.core.$strip>;
337
319
  export type QueryTypeShape = {
338
320
  type: 'and' | 'or';
@@ -340,7 +322,7 @@ export type QueryTypeShape = {
340
322
  };
341
323
  export declare const QueryType: z.ZodType<QueryTypeShape>;
342
324
  export declare const SearchQuery: z.ZodObject<{
343
- query: z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
325
+ query: z.ZodPipe<z.ZodTransform<any, unknown>, ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
344
326
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
345
327
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
346
328
  sort: z.ZodOptional<z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodArray<z.ZodObject<{
@@ -354,5 +336,4 @@ export declare const SearchQuery: z.ZodObject<{
354
336
  export type SearchQuery = z.infer<typeof SearchQuery>;
355
337
  export type QueryType = z.infer<typeof QueryType>;
356
338
  export type QueryExpression = z.infer<typeof QueryExpression>;
357
- export {};
358
339
  //# sourceMappingURL=EventIndex.d.ts.map
@@ -4,11 +4,11 @@ import { TranslationConfig } from './TranslationConfig';
4
4
  * Event statuses recognized by the system
5
5
  */
6
6
  export declare const EventStatus: z.ZodEnum<{
7
+ ARCHIVED: "ARCHIVED";
7
8
  CREATED: "CREATED";
8
- NOTIFIED: "NOTIFIED";
9
9
  DECLARED: "DECLARED";
10
+ NOTIFIED: "NOTIFIED";
10
11
  REGISTERED: "REGISTERED";
11
- ARCHIVED: "ARCHIVED";
12
12
  }>;
13
13
  export type EventStatus = z.infer<typeof EventStatus>;
14
14
  export declare const ZodDate: z.ZodISODate;
@@ -18,8 +18,8 @@ export declare const ActionCreationMetadata: z.ZodObject<{
18
18
  createdBy: z.ZodString;
19
19
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
20
20
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
21
- user: "user";
22
21
  system: "system";
22
+ user: "user";
23
23
  }>>>;
24
24
  acceptedAt: z.ZodISODateTime;
25
25
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -30,8 +30,8 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
30
30
  createdBy: z.ZodString;
31
31
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
32
32
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
33
- user: "user";
34
33
  system: "system";
34
+ user: "user";
35
35
  }>>>;
36
36
  acceptedAt: z.ZodISODateTime;
37
37
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -44,8 +44,8 @@ export declare const LegalStatuses: z.ZodObject<{
44
44
  createdBy: z.ZodString;
45
45
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
46
46
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
47
- user: "user";
48
47
  system: "system";
48
+ user: "user";
49
49
  }>>>;
50
50
  acceptedAt: z.ZodISODateTime;
51
51
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -55,8 +55,8 @@ export declare const LegalStatuses: z.ZodObject<{
55
55
  createdBy: z.ZodString;
56
56
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
57
57
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
58
- user: "user";
59
58
  system: "system";
59
+ user: "user";
60
60
  }>>>;
61
61
  acceptedAt: z.ZodISODateTime;
62
62
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -66,8 +66,8 @@ export declare const LegalStatuses: z.ZodObject<{
66
66
  createdBy: z.ZodString;
67
67
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
68
68
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
69
- user: "user";
70
69
  system: "system";
70
+ user: "user";
71
71
  }>>>;
72
72
  acceptedAt: z.ZodISODateTime;
73
73
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -83,11 +83,11 @@ export declare const EventMetadata: z.ZodObject<{
83
83
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
84
84
  type: z.ZodString;
85
85
  status: z.ZodEnum<{
86
+ ARCHIVED: "ARCHIVED";
86
87
  CREATED: "CREATED";
87
- NOTIFIED: "NOTIFIED";
88
88
  DECLARED: "DECLARED";
89
+ NOTIFIED: "NOTIFIED";
89
90
  REGISTERED: "REGISTERED";
90
- ARCHIVED: "ARCHIVED";
91
91
  }>;
92
92
  legalStatuses: z.ZodObject<{
93
93
  NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -95,8 +95,8 @@ export declare const EventMetadata: z.ZodObject<{
95
95
  createdBy: z.ZodString;
96
96
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
97
97
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
98
- user: "user";
99
98
  system: "system";
99
+ user: "user";
100
100
  }>>>;
101
101
  acceptedAt: z.ZodISODateTime;
102
102
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -106,8 +106,8 @@ export declare const EventMetadata: z.ZodObject<{
106
106
  createdBy: z.ZodString;
107
107
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
108
108
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
109
- user: "user";
110
109
  system: "system";
110
+ user: "user";
111
111
  }>>>;
112
112
  acceptedAt: z.ZodISODateTime;
113
113
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -117,8 +117,8 @@ export declare const EventMetadata: z.ZodObject<{
117
117
  createdBy: z.ZodString;
118
118
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
119
119
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
120
- user: "user";
121
120
  system: "system";
121
+ user: "user";
122
122
  }>>>;
123
123
  acceptedAt: z.ZodISODateTime;
124
124
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -130,8 +130,8 @@ export declare const EventMetadata: z.ZodObject<{
130
130
  placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
131
131
  createdBy: z.ZodString;
132
132
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
133
- user: "user";
134
133
  system: "system";
134
+ user: "user";
135
135
  }>>>;
136
136
  updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
137
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
@@ -145,33 +145,34 @@ export declare const EventMetadata: z.ZodObject<{
145
145
  trackingId: z.ZodString;
146
146
  }, z.core.$strip>>;
147
147
  flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
148
- readonly INCOMPLETE: "incomplete";
149
- readonly REJECTED: "rejected";
150
- readonly CORRECTION_REQUESTED: "correction-requested";
151
- readonly POTENTIAL_DUPLICATE: "potential-duplicate";
152
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
148
+ readonly INCOMPLETE: 'incomplete';
149
+ readonly REJECTED: 'rejected';
150
+ readonly CORRECTION_REQUESTED: 'correction-requested';
151
+ readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
152
+ readonly EDIT_IN_PROGRESS: 'edit-in-progress';
153
+ readonly SEALED: 'sealed';
153
154
  }>]>, z.ZodString]>>;
154
155
  }, z.core.$strip>;
155
156
  export type EventMetadata = z.infer<typeof EventMetadata>;
156
- export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "placeOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"];
157
+ export declare const EventMetadataKeysArray: readonly ['id', 'type', 'status', 'createdAt', 'dateOfEvent', 'placeOfEvent', 'createdBy', 'createdByUserType', 'updatedByUserRole', 'createdAtLocation', 'updatedAtLocation', 'updatedAt', 'assignedTo', 'updatedBy', 'trackingId', 'legalStatuses', 'flags'];
157
158
  export declare const EventMetadataKeys: z.ZodEnum<{
158
- id: "id";
159
- type: "type";
160
- updatedAt: "updatedAt";
161
- placeOfEvent: "placeOfEvent";
162
- createdByUserType: "createdByUserType";
159
+ assignedTo: "assignedTo";
163
160
  createdAt: "createdAt";
164
- createdBy: "createdBy";
165
161
  createdAtLocation: "createdAtLocation";
162
+ createdBy: "createdBy";
163
+ createdByUserType: "createdByUserType";
164
+ dateOfEvent: "dateOfEvent";
165
+ flags: "flags";
166
+ id: "id";
167
+ legalStatuses: "legalStatuses";
168
+ placeOfEvent: "placeOfEvent";
166
169
  status: "status";
167
- assignedTo: "assignedTo";
168
170
  trackingId: "trackingId";
169
- legalStatuses: "legalStatuses";
170
- dateOfEvent: "dateOfEvent";
171
- updatedByUserRole: "updatedByUserRole";
171
+ type: "type";
172
+ updatedAt: "updatedAt";
172
173
  updatedAtLocation: "updatedAtLocation";
173
174
  updatedBy: "updatedBy";
174
- flags: "flags";
175
+ updatedByUserRole: "updatedByUserRole";
175
176
  }>;
176
177
  export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
177
178
  /**
@@ -181,25 +182,25 @@ export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
181
182
  */
182
183
  export declare const eventMetadataLabelMap: Record<Exclude<`event.${EventMetadataKeys}`, 'event.legalStatuses'>, TranslationConfig>;
183
184
  export declare const EventMetadataDateFieldIdInput: z.ZodEnum<{
184
- updatedAt: "updatedAt";
185
185
  createdAt: "createdAt";
186
- "legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
187
- "legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
188
- "legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
189
186
  "legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
190
- "legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
187
+ "legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
188
+ "legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
189
+ "legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
191
190
  "legalStatuses.REGISTERED.acceptedAt": "legalStatuses.REGISTERED.acceptedAt";
191
+ "legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
192
+ updatedAt: "updatedAt";
192
193
  }>;
193
194
  export type EventMetadataDateFieldIdInput = z.infer<typeof EventMetadataDateFieldIdInput>;
194
195
  export declare const EventMetadataDateFieldId: z.ZodEnum<{
195
- "event.updatedAt": "event.updatedAt";
196
196
  "event.createdAt": "event.createdAt";
197
- "event.legalStatuses.NOTIFIED.createdAt": "event.legalStatuses.NOTIFIED.createdAt";
198
- "event.legalStatuses.NOTIFIED.acceptedAt": "event.legalStatuses.NOTIFIED.acceptedAt";
199
- "event.legalStatuses.DECLARED.createdAt": "event.legalStatuses.DECLARED.createdAt";
200
197
  "event.legalStatuses.DECLARED.acceptedAt": "event.legalStatuses.DECLARED.acceptedAt";
201
- "event.legalStatuses.REGISTERED.createdAt": "event.legalStatuses.REGISTERED.createdAt";
198
+ "event.legalStatuses.DECLARED.createdAt": "event.legalStatuses.DECLARED.createdAt";
199
+ "event.legalStatuses.NOTIFIED.acceptedAt": "event.legalStatuses.NOTIFIED.acceptedAt";
200
+ "event.legalStatuses.NOTIFIED.createdAt": "event.legalStatuses.NOTIFIED.createdAt";
202
201
  "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
202
+ "event.legalStatuses.REGISTERED.createdAt": "event.legalStatuses.REGISTERED.createdAt";
203
+ "event.updatedAt": "event.updatedAt";
203
204
  }>;
204
205
  export type EventMetadataDateFieldId = z.infer<typeof EventMetadataDateFieldId>;
205
206
  //# sourceMappingURL=EventMetadata.d.ts.map