@opencrvs/toolkit 2.1.0-rc.4c1664c → 2.1.0-rc.4f33a57

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 +3 -1
  2. package/dist/commons/api/router.d.ts +3382 -3314
  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/events/ActionConfig.d.ts +105 -105
  6. package/dist/commons/events/ActionDocument.d.ts +119 -119
  7. package/dist/commons/events/ActionInput.d.ts +0 -6
  8. package/dist/commons/events/ActionType.d.ts +62 -62
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +513 -507
  10. package/dist/commons/events/AuditLog.d.ts +79 -42
  11. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  12. package/dist/commons/events/Conditional.d.ts +3 -3
  13. package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
  14. package/dist/commons/events/Draft.d.ts +37 -37
  15. package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
  16. package/dist/commons/events/EventConfig.d.ts +5 -5
  17. package/dist/commons/events/EventDocument.d.ts +48 -48
  18. package/dist/commons/events/EventIndex.d.ts +62 -62
  19. package/dist/commons/events/EventMetadata.d.ts +40 -40
  20. package/dist/commons/events/FieldConfig.d.ts +341 -336
  21. package/dist/commons/events/FieldType.d.ts +51 -51
  22. package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
  23. package/dist/commons/events/FieldValue.d.ts +12 -12
  24. package/dist/commons/events/Flag.d.ts +15 -15
  25. package/dist/commons/events/TemplateConfig.d.ts +1 -1
  26. package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
  27. package/dist/commons/events/WorkqueueConfig.d.ts +826 -826
  28. package/dist/commons/events/deduplication.d.ts +1 -1
  29. package/dist/commons/events/event.d.ts +2 -2
  30. package/dist/commons/events/field.d.ts +78 -895
  31. package/dist/commons/events/index.d.ts +1 -0
  32. package/dist/commons/events/locationPayloads.d.ts +95 -0
  33. package/dist/commons/events/locations.d.ts +103 -6
  34. package/dist/commons/events/mocks.test.utils.d.ts +18 -4
  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 +40 -43
  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 +1 -0
  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 +150 -58
  51. package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
  52. package/dist/notification/index.js +147 -82
  53. package/dist/scopes/index.d.ts +148 -146
  54. package/dist/scopes/index.js +1 -0
  55. package/opencrvs-toolkit-2.1.0-rc.4f33a57.tgz +0 -0
  56. package/package.json +5 -5
  57. package/tsconfig.tsbuildinfo +1 -1
  58. package/opencrvs-toolkit-2.1.0-rc.4c1664c.tgz +0 -0
@@ -3,11 +3,11 @@ export declare const EventIndex: z.ZodObject<{
3
3
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
4
4
  type: z.ZodString;
5
5
  status: z.ZodEnum<{
6
+ ARCHIVED: "ARCHIVED";
6
7
  CREATED: "CREATED";
7
- NOTIFIED: "NOTIFIED";
8
8
  DECLARED: "DECLARED";
9
+ NOTIFIED: "NOTIFIED";
9
10
  REGISTERED: "REGISTERED";
10
- ARCHIVED: "ARCHIVED";
11
11
  }>;
12
12
  legalStatuses: z.ZodObject<{
13
13
  NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -15,8 +15,8 @@ export declare const EventIndex: z.ZodObject<{
15
15
  createdBy: z.ZodString;
16
16
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
17
17
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
18
- user: "user";
19
18
  system: "system";
19
+ user: "user";
20
20
  }>>>;
21
21
  acceptedAt: z.ZodISODateTime;
22
22
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -26,8 +26,8 @@ export declare const EventIndex: z.ZodObject<{
26
26
  createdBy: z.ZodString;
27
27
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
28
28
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
29
- user: "user";
30
29
  system: "system";
30
+ user: "user";
31
31
  }>>>;
32
32
  acceptedAt: z.ZodISODateTime;
33
33
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -37,8 +37,8 @@ export declare const EventIndex: z.ZodObject<{
37
37
  createdBy: z.ZodString;
38
38
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
39
39
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40
- user: "user";
41
40
  system: "system";
41
+ user: "user";
42
42
  }>>>;
43
43
  acceptedAt: z.ZodISODateTime;
44
44
  createdByRole: z.ZodOptional<z.ZodString>;
@@ -50,8 +50,8 @@ export declare const EventIndex: z.ZodObject<{
50
50
  placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
51
51
  createdBy: z.ZodString;
52
52
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
53
- user: "user";
54
53
  system: "system";
54
+ user: "user";
55
55
  }>>>;
56
56
  updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
57
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
@@ -65,13 +65,13 @@ export declare const EventIndex: z.ZodObject<{
65
65
  trackingId: z.ZodString;
66
66
  }, z.core.$strip>>;
67
67
  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";
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';
73
73
  }>]>, z.ZodString]>>;
74
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
74
+ declaration: z.ZodRecord<z.ZodString, ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
75
75
  }, z.core.$strip>;
76
76
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
77
77
  type: z.ZodString;
@@ -90,18 +90,18 @@ export type Exact = z.infer<typeof Exact>;
90
90
  export declare const ExactStatus: z.ZodObject<{
91
91
  type: z.ZodLiteral<"exact">;
92
92
  term: z.ZodEnum<{
93
+ ARCHIVED: "ARCHIVED";
93
94
  CREATED: "CREATED";
94
- NOTIFIED: "NOTIFIED";
95
95
  DECLARED: "DECLARED";
96
+ NOTIFIED: "NOTIFIED";
96
97
  REGISTERED: "REGISTERED";
97
- ARCHIVED: "ARCHIVED";
98
98
  }>;
99
99
  }, z.core.$strip>;
100
100
  export declare const ExactUserType: z.ZodObject<{
101
101
  type: z.ZodLiteral<"exact">;
102
102
  term: z.ZodEnum<{
103
- user: "user";
104
103
  system: "system";
104
+ user: "user";
105
105
  }>;
106
106
  }, z.core.$strip>;
107
107
  export declare const AnyOf: z.ZodObject<{
@@ -111,11 +111,11 @@ export declare const AnyOf: z.ZodObject<{
111
111
  export declare const AnyOfStatus: z.ZodObject<{
112
112
  type: z.ZodLiteral<"anyOf">;
113
113
  terms: z.ZodArray<z.ZodEnum<{
114
+ ARCHIVED: "ARCHIVED";
114
115
  CREATED: "CREATED";
115
- NOTIFIED: "NOTIFIED";
116
116
  DECLARED: "DECLARED";
117
+ NOTIFIED: "NOTIFIED";
117
118
  REGISTERED: "REGISTERED";
118
- ARCHIVED: "ARCHIVED";
119
119
  }>>;
120
120
  }, z.core.$strip>;
121
121
  export declare const Range: z.ZodObject<{
@@ -125,25 +125,25 @@ export declare const Range: z.ZodObject<{
125
125
  }, z.core.$strip>;
126
126
  export declare const ContainsFlags: z.ZodObject<{
127
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";
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
133
  }>]>, z.ZodString]>>>;
134
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";
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
140
  }>]>, z.ZodString]>>>;
141
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";
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
147
  }>]>, z.ZodString]>>>;
148
148
  }, z.core.$strip>;
149
149
  export declare const Within: z.ZodObject<{
@@ -165,10 +165,10 @@ export declare const DateCondition: z.ZodUnion<readonly [z.ZodObject<{
165
165
  }, z.core.$strip>, z.ZodObject<{
166
166
  type: z.ZodLiteral<"timePeriod">;
167
167
  term: z.ZodEnum<{
168
- last7Days: "last7Days";
169
168
  last30Days: "last30Days";
170
- last90Days: "last90Days";
171
169
  last365Days: "last365Days";
170
+ last7Days: "last7Days";
171
+ last90Days: "last90Days";
172
172
  }>;
173
173
  }, z.core.$strip>]>;
174
174
  export type DateCondition = z.infer<typeof DateCondition>;
@@ -184,20 +184,20 @@ export declare const QueryExpression: z.ZodObject<{
184
184
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
185
185
  type: z.ZodLiteral<"anyOf">;
186
186
  terms: z.ZodArray<z.ZodEnum<{
187
+ ARCHIVED: "ARCHIVED";
187
188
  CREATED: "CREATED";
188
- NOTIFIED: "NOTIFIED";
189
189
  DECLARED: "DECLARED";
190
+ NOTIFIED: "NOTIFIED";
190
191
  REGISTERED: "REGISTERED";
191
- ARCHIVED: "ARCHIVED";
192
192
  }>>;
193
193
  }, z.core.$strip>, z.ZodObject<{
194
194
  type: z.ZodLiteral<"exact">;
195
195
  term: z.ZodEnum<{
196
+ ARCHIVED: "ARCHIVED";
196
197
  CREATED: "CREATED";
197
- NOTIFIED: "NOTIFIED";
198
198
  DECLARED: "DECLARED";
199
+ NOTIFIED: "NOTIFIED";
199
200
  REGISTERED: "REGISTERED";
200
- ARCHIVED: "ARCHIVED";
201
201
  }>;
202
202
  }, z.core.$strip>]>>>;
203
203
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -210,10 +210,10 @@ export declare const QueryExpression: z.ZodObject<{
210
210
  }, z.core.$strip>, z.ZodObject<{
211
211
  type: z.ZodLiteral<"timePeriod">;
212
212
  term: z.ZodEnum<{
213
- last7Days: "last7Days";
214
213
  last30Days: "last30Days";
215
- last90Days: "last90Days";
216
214
  last365Days: "last365Days";
215
+ last7Days: "last7Days";
216
+ last90Days: "last90Days";
217
217
  }>;
218
218
  }, z.core.$strip>]>>>;
219
219
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -226,10 +226,10 @@ export declare const QueryExpression: z.ZodObject<{
226
226
  }, z.core.$strip>, z.ZodObject<{
227
227
  type: z.ZodLiteral<"timePeriod">;
228
228
  term: z.ZodEnum<{
229
- last7Days: "last7Days";
230
229
  last30Days: "last30Days";
231
- last90Days: "last90Days";
232
230
  last365Days: "last365Days";
231
+ last7Days: "last7Days";
232
+ last90Days: "last90Days";
233
233
  }>;
234
234
  }, z.core.$strip>]>>>;
235
235
  'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -250,10 +250,10 @@ export declare const QueryExpression: z.ZodObject<{
250
250
  }, z.core.$strip>, z.ZodObject<{
251
251
  type: z.ZodLiteral<"timePeriod">;
252
252
  term: z.ZodEnum<{
253
- last7Days: "last7Days";
254
253
  last30Days: "last30Days";
255
- last90Days: "last90Days";
256
254
  last365Days: "last365Days";
255
+ last7Days: "last7Days";
256
+ last90Days: "last90Days";
257
257
  }>;
258
258
  }, z.core.$strip>]>>>;
259
259
  'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -289,8 +289,8 @@ export declare const QueryExpression: z.ZodObject<{
289
289
  createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
290
290
  type: z.ZodLiteral<"exact">;
291
291
  term: z.ZodEnum<{
292
- user: "user";
293
292
  system: "system";
293
+ user: "user";
294
294
  }>;
295
295
  }, z.core.$strip>>>;
296
296
  updatedByUserRole: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -311,28 +311,28 @@ export declare const QueryExpression: z.ZodObject<{
311
311
  }, z.core.$strip>>>;
312
312
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
313
313
  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";
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';
319
319
  }>]>, z.ZodString]>>>;
320
320
  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";
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';
326
326
  }>]>, z.ZodString]>>>;
327
327
  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";
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';
333
333
  }>]>, z.ZodString]>>>;
334
334
  }, z.core.$strip>>>;
335
- data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
335
+ data: z.ZodOptional<ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
336
336
  }, z.core.$strip>;
337
337
  export type QueryTypeShape = {
338
338
  type: 'and' | 'or';
@@ -340,7 +340,7 @@ export type QueryTypeShape = {
340
340
  };
341
341
  export declare const QueryType: z.ZodType<QueryTypeShape>;
342
342
  export declare const SearchQuery: z.ZodObject<{
343
- query: z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
343
+ query: z.ZodPipe<z.ZodTransform<any, unknown>, ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
344
344
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
345
345
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
346
346
  sort: z.ZodOptional<z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodArray<z.ZodObject<{
@@ -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,33 @@ 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
153
  }>]>, z.ZodString]>>;
154
154
  }, z.core.$strip>;
155
155
  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"];
156
+ export declare const EventMetadataKeysArray: readonly ['id', 'type', 'status', 'createdAt', 'dateOfEvent', 'placeOfEvent', 'createdBy', 'createdByUserType', 'updatedByUserRole', 'createdAtLocation', 'updatedAtLocation', 'updatedAt', 'assignedTo', 'updatedBy', 'trackingId', 'legalStatuses', 'flags'];
157
157
  export declare const EventMetadataKeys: z.ZodEnum<{
158
- id: "id";
159
- type: "type";
160
- updatedAt: "updatedAt";
161
- placeOfEvent: "placeOfEvent";
162
- createdByUserType: "createdByUserType";
158
+ assignedTo: "assignedTo";
163
159
  createdAt: "createdAt";
164
- createdBy: "createdBy";
165
160
  createdAtLocation: "createdAtLocation";
161
+ createdBy: "createdBy";
162
+ createdByUserType: "createdByUserType";
163
+ dateOfEvent: "dateOfEvent";
164
+ flags: "flags";
165
+ id: "id";
166
+ legalStatuses: "legalStatuses";
167
+ placeOfEvent: "placeOfEvent";
166
168
  status: "status";
167
- assignedTo: "assignedTo";
168
169
  trackingId: "trackingId";
169
- legalStatuses: "legalStatuses";
170
- dateOfEvent: "dateOfEvent";
171
- updatedByUserRole: "updatedByUserRole";
170
+ type: "type";
171
+ updatedAt: "updatedAt";
172
172
  updatedAtLocation: "updatedAtLocation";
173
173
  updatedBy: "updatedBy";
174
- flags: "flags";
174
+ updatedByUserRole: "updatedByUserRole";
175
175
  }>;
176
176
  export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
177
177
  /**
@@ -181,25 +181,25 @@ export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
181
181
  */
182
182
  export declare const eventMetadataLabelMap: Record<Exclude<`event.${EventMetadataKeys}`, 'event.legalStatuses'>, TranslationConfig>;
183
183
  export declare const EventMetadataDateFieldIdInput: z.ZodEnum<{
184
- updatedAt: "updatedAt";
185
184
  createdAt: "createdAt";
186
- "legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
187
- "legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
188
- "legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
189
185
  "legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
190
- "legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
186
+ "legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
187
+ "legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
188
+ "legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
191
189
  "legalStatuses.REGISTERED.acceptedAt": "legalStatuses.REGISTERED.acceptedAt";
190
+ "legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
191
+ updatedAt: "updatedAt";
192
192
  }>;
193
193
  export type EventMetadataDateFieldIdInput = z.infer<typeof EventMetadataDateFieldIdInput>;
194
194
  export declare const EventMetadataDateFieldId: z.ZodEnum<{
195
- "event.updatedAt": "event.updatedAt";
196
195
  "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
196
  "event.legalStatuses.DECLARED.acceptedAt": "event.legalStatuses.DECLARED.acceptedAt";
201
- "event.legalStatuses.REGISTERED.createdAt": "event.legalStatuses.REGISTERED.createdAt";
197
+ "event.legalStatuses.DECLARED.createdAt": "event.legalStatuses.DECLARED.createdAt";
198
+ "event.legalStatuses.NOTIFIED.acceptedAt": "event.legalStatuses.NOTIFIED.acceptedAt";
199
+ "event.legalStatuses.NOTIFIED.createdAt": "event.legalStatuses.NOTIFIED.createdAt";
202
200
  "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
201
+ "event.legalStatuses.REGISTERED.createdAt": "event.legalStatuses.REGISTERED.createdAt";
202
+ "event.updatedAt": "event.updatedAt";
203
203
  }>;
204
204
  export type EventMetadataDateFieldId = z.infer<typeof EventMetadataDateFieldId>;
205
205
  //# sourceMappingURL=EventMetadata.d.ts.map