@opencrvs/toolkit 2.1.0-rc.b061691 → 2.1.0-rc.b263ac1
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.
- package/README.md +1 -0
- package/dist/application-config/index.js +34 -11
- package/dist/cli.js +174 -58
- package/dist/commons/api/router.d.ts +3528 -3251
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +259 -2102
- package/dist/commons/conditionals/validate.d.ts +9 -3
- package/dist/commons/events/ActionConfig.d.ts +105 -126
- package/dist/commons/events/ActionDocument.d.ts +110 -110
- package/dist/commons/events/ActionStatus.d.ts +3 -3
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +525 -513
- package/dist/commons/events/AuditLog.d.ts +189 -42
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -608
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +8 -5
- package/dist/commons/events/EventDocument.d.ts +46 -46
- package/dist/commons/events/EventIndex.d.ts +48 -52
- package/dist/commons/events/EventMetadata.d.ts +40 -41
- package/dist/commons/events/FieldConfig.d.ts +413 -396
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +90 -90
- package/dist/commons/events/FieldValue.d.ts +14 -14
- package/dist/commons/events/Flag.d.ts +30 -36
- package/dist/commons/events/PlainDate.d.ts +8 -0
- package/dist/commons/events/SummaryConfig.d.ts +249 -0
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +817 -829
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +14 -2
- package/dist/commons/events/field.d.ts +78 -895
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locationPayloads.d.ts +95 -0
- package/dist/commons/events/locations.d.ts +192 -12
- package/dist/commons/events/mocks.test.utils.d.ts +48 -4
- package/dist/commons/events/scopes.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +40 -40
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/conditionals/index.js +6 -4
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/index.d.ts +1 -0
- package/dist/environment/index.d.ts.map +1 -1
- package/dist/environment/index.js +10 -0
- package/dist/environment/logger.d.ts +12 -3
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/paths.d.ts +7 -0
- package/dist/environment/paths.d.ts.map +1 -0
- package/dist/environment/paths.js +72 -0
- package/dist/environment/questions.d.ts +75 -74
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +10 -15
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/environment/templates.js +2 -1
- package/dist/environment/update-workflows.d.ts.map +1 -1
- package/dist/environment/update-workflows.js +17 -5
- package/dist/environment/upgrade.d.ts +2 -0
- package/dist/environment/upgrade.d.ts.map +1 -0
- package/dist/environment/upgrade.js +82 -0
- package/dist/environment/users.js +11 -13
- package/dist/environment/utils.d.ts +1 -1
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +568 -265
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/notification/index.js +578 -316
- package/dist/scopes/index.d.ts +350 -332
- package/dist/scopes/index.js +6 -4
- package/dist/templates/charts-values/opencrvs-services/values.yaml +4 -3
- package/dist/templates/charts-values/opentelemetry/values.yaml +73 -0
- package/opencrvs-toolkit-2.1.0-rc.b263ac1.tgz +0 -0
- package/package.json +6 -6
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.b061691.tgz +0 -0
|
@@ -4,11 +4,11 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
4
4
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
5
5
|
type: z.ZodString;
|
|
6
6
|
status: 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
|
legalStatuses: z.ZodObject<{
|
|
14
14
|
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -16,8 +16,8 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
16
16
|
createdBy: z.ZodString;
|
|
17
17
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
18
18
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
19
|
-
user: "user";
|
|
20
19
|
system: "system";
|
|
20
|
+
user: "user";
|
|
21
21
|
}>>>;
|
|
22
22
|
acceptedAt: z.ZodISODateTime;
|
|
23
23
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -27,8 +27,8 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
27
27
|
createdBy: z.ZodString;
|
|
28
28
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
29
29
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
30
|
-
user: "user";
|
|
31
30
|
system: "system";
|
|
31
|
+
user: "user";
|
|
32
32
|
}>>>;
|
|
33
33
|
acceptedAt: z.ZodISODateTime;
|
|
34
34
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -38,8 +38,8 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
38
38
|
createdBy: z.ZodString;
|
|
39
39
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
40
40
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
41
|
-
user: "user";
|
|
42
41
|
system: "system";
|
|
42
|
+
user: "user";
|
|
43
43
|
}>>>;
|
|
44
44
|
acceptedAt: z.ZodISODateTime;
|
|
45
45
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -51,8 +51,8 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
51
51
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
52
52
|
createdBy: z.ZodString;
|
|
53
53
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
54
|
-
user: "user";
|
|
55
54
|
system: "system";
|
|
55
|
+
user: "user";
|
|
56
56
|
}>>>;
|
|
57
57
|
updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
58
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -66,14 +66,13 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
66
66
|
trackingId: z.ZodString;
|
|
67
67
|
}, z.core.$strip>>;
|
|
68
68
|
flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
69
|
-
readonly INCOMPLETE:
|
|
70
|
-
readonly REJECTED:
|
|
71
|
-
readonly CORRECTION_REQUESTED:
|
|
72
|
-
readonly POTENTIAL_DUPLICATE:
|
|
73
|
-
readonly EDIT_IN_PROGRESS:
|
|
74
|
-
readonly SEALED: "sealed";
|
|
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';
|
|
75
74
|
}>]>, z.ZodString]>>;
|
|
76
|
-
declaration: z.ZodRecord<z.ZodString,
|
|
75
|
+
declaration: z.ZodRecord<z.ZodString, ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
|
|
77
76
|
}, z.core.$strip>;
|
|
78
77
|
export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
|
79
78
|
type: z.ZodString;
|
|
@@ -92,18 +91,18 @@ export type Exact = z.infer<typeof Exact>;
|
|
|
92
91
|
export declare const ExactStatus: z.ZodObject<{
|
|
93
92
|
type: z.ZodLiteral<"exact">;
|
|
94
93
|
term: z.ZodEnum<{
|
|
94
|
+
ARCHIVED: "ARCHIVED";
|
|
95
95
|
CREATED: "CREATED";
|
|
96
|
-
NOTIFIED: "NOTIFIED";
|
|
97
96
|
DECLARED: "DECLARED";
|
|
97
|
+
NOTIFIED: "NOTIFIED";
|
|
98
98
|
REGISTERED: "REGISTERED";
|
|
99
|
-
ARCHIVED: "ARCHIVED";
|
|
100
99
|
}>;
|
|
101
100
|
}, z.core.$strip>;
|
|
102
101
|
export declare const ExactUserType: z.ZodObject<{
|
|
103
102
|
type: z.ZodLiteral<"exact">;
|
|
104
103
|
term: z.ZodEnum<{
|
|
105
|
-
user: "user";
|
|
106
104
|
system: "system";
|
|
105
|
+
user: "user";
|
|
107
106
|
}>;
|
|
108
107
|
}, z.core.$strip>;
|
|
109
108
|
export declare const AnyOf: z.ZodObject<{
|
|
@@ -113,11 +112,11 @@ export declare const AnyOf: z.ZodObject<{
|
|
|
113
112
|
export declare const AnyOfStatus: z.ZodObject<{
|
|
114
113
|
type: z.ZodLiteral<"anyOf">;
|
|
115
114
|
terms: z.ZodArray<z.ZodEnum<{
|
|
115
|
+
ARCHIVED: "ARCHIVED";
|
|
116
116
|
CREATED: "CREATED";
|
|
117
|
-
NOTIFIED: "NOTIFIED";
|
|
118
117
|
DECLARED: "DECLARED";
|
|
118
|
+
NOTIFIED: "NOTIFIED";
|
|
119
119
|
REGISTERED: "REGISTERED";
|
|
120
|
-
ARCHIVED: "ARCHIVED";
|
|
121
120
|
}>>;
|
|
122
121
|
}, z.core.$strip>;
|
|
123
122
|
export declare const Range: z.ZodObject<{
|
|
@@ -144,10 +143,10 @@ export declare const DateCondition: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
144
143
|
}, z.core.$strip>, z.ZodObject<{
|
|
145
144
|
type: z.ZodLiteral<"timePeriod">;
|
|
146
145
|
term: z.ZodEnum<{
|
|
147
|
-
last7Days: "last7Days";
|
|
148
146
|
last30Days: "last30Days";
|
|
149
|
-
last90Days: "last90Days";
|
|
150
147
|
last365Days: "last365Days";
|
|
148
|
+
last7Days: "last7Days";
|
|
149
|
+
last90Days: "last90Days";
|
|
151
150
|
}>;
|
|
152
151
|
}, z.core.$strip>]>;
|
|
153
152
|
export type DateCondition = z.infer<typeof DateCondition>;
|
|
@@ -163,20 +162,20 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
163
162
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
164
163
|
type: z.ZodLiteral<"anyOf">;
|
|
165
164
|
terms: z.ZodArray<z.ZodEnum<{
|
|
165
|
+
ARCHIVED: "ARCHIVED";
|
|
166
166
|
CREATED: "CREATED";
|
|
167
|
-
NOTIFIED: "NOTIFIED";
|
|
168
167
|
DECLARED: "DECLARED";
|
|
168
|
+
NOTIFIED: "NOTIFIED";
|
|
169
169
|
REGISTERED: "REGISTERED";
|
|
170
|
-
ARCHIVED: "ARCHIVED";
|
|
171
170
|
}>>;
|
|
172
171
|
}, z.core.$strip>, z.ZodObject<{
|
|
173
172
|
type: z.ZodLiteral<"exact">;
|
|
174
173
|
term: z.ZodEnum<{
|
|
174
|
+
ARCHIVED: "ARCHIVED";
|
|
175
175
|
CREATED: "CREATED";
|
|
176
|
-
NOTIFIED: "NOTIFIED";
|
|
177
176
|
DECLARED: "DECLARED";
|
|
177
|
+
NOTIFIED: "NOTIFIED";
|
|
178
178
|
REGISTERED: "REGISTERED";
|
|
179
|
-
ARCHIVED: "ARCHIVED";
|
|
180
179
|
}>;
|
|
181
180
|
}, z.core.$strip>]>>>;
|
|
182
181
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -189,10 +188,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
189
188
|
}, z.core.$strip>, z.ZodObject<{
|
|
190
189
|
type: z.ZodLiteral<"timePeriod">;
|
|
191
190
|
term: z.ZodEnum<{
|
|
192
|
-
last7Days: "last7Days";
|
|
193
191
|
last30Days: "last30Days";
|
|
194
|
-
last90Days: "last90Days";
|
|
195
192
|
last365Days: "last365Days";
|
|
193
|
+
last7Days: "last7Days";
|
|
194
|
+
last90Days: "last90Days";
|
|
196
195
|
}>;
|
|
197
196
|
}, z.core.$strip>]>>>;
|
|
198
197
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -205,10 +204,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
205
204
|
}, z.core.$strip>, z.ZodObject<{
|
|
206
205
|
type: z.ZodLiteral<"timePeriod">;
|
|
207
206
|
term: z.ZodEnum<{
|
|
208
|
-
last7Days: "last7Days";
|
|
209
207
|
last30Days: "last30Days";
|
|
210
|
-
last90Days: "last90Days";
|
|
211
208
|
last365Days: "last365Days";
|
|
209
|
+
last7Days: "last7Days";
|
|
210
|
+
last90Days: "last90Days";
|
|
212
211
|
}>;
|
|
213
212
|
}, z.core.$strip>]>>>;
|
|
214
213
|
'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -229,10 +228,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
229
228
|
}, z.core.$strip>, z.ZodObject<{
|
|
230
229
|
type: z.ZodLiteral<"timePeriod">;
|
|
231
230
|
term: z.ZodEnum<{
|
|
232
|
-
last7Days: "last7Days";
|
|
233
231
|
last30Days: "last30Days";
|
|
234
|
-
last90Days: "last90Days";
|
|
235
232
|
last365Days: "last365Days";
|
|
233
|
+
last7Days: "last7Days";
|
|
234
|
+
last90Days: "last90Days";
|
|
236
235
|
}>;
|
|
237
236
|
}, z.core.$strip>]>>>;
|
|
238
237
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -268,8 +267,8 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
268
267
|
createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
269
268
|
type: z.ZodLiteral<"exact">;
|
|
270
269
|
term: z.ZodEnum<{
|
|
271
|
-
user: "user";
|
|
272
270
|
system: "system";
|
|
271
|
+
user: "user";
|
|
273
272
|
}>;
|
|
274
273
|
}, z.core.$strip>>>;
|
|
275
274
|
updatedByUserRole: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -290,31 +289,28 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
290
289
|
}, z.core.$strip>>>;
|
|
291
290
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
292
291
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
293
|
-
readonly INCOMPLETE:
|
|
294
|
-
readonly REJECTED:
|
|
295
|
-
readonly CORRECTION_REQUESTED:
|
|
296
|
-
readonly POTENTIAL_DUPLICATE:
|
|
297
|
-
readonly EDIT_IN_PROGRESS:
|
|
298
|
-
readonly SEALED: "sealed";
|
|
292
|
+
readonly INCOMPLETE: 'incomplete';
|
|
293
|
+
readonly REJECTED: 'rejected';
|
|
294
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
295
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
296
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
299
297
|
}>]>, z.ZodString]>>>;
|
|
300
298
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
301
|
-
readonly INCOMPLETE:
|
|
302
|
-
readonly REJECTED:
|
|
303
|
-
readonly CORRECTION_REQUESTED:
|
|
304
|
-
readonly POTENTIAL_DUPLICATE:
|
|
305
|
-
readonly EDIT_IN_PROGRESS:
|
|
306
|
-
readonly SEALED: "sealed";
|
|
299
|
+
readonly INCOMPLETE: 'incomplete';
|
|
300
|
+
readonly REJECTED: 'rejected';
|
|
301
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
302
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
303
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
307
304
|
}>]>, z.ZodString]>>>;
|
|
308
305
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
309
|
-
readonly INCOMPLETE:
|
|
310
|
-
readonly REJECTED:
|
|
311
|
-
readonly CORRECTION_REQUESTED:
|
|
312
|
-
readonly POTENTIAL_DUPLICATE:
|
|
313
|
-
readonly EDIT_IN_PROGRESS:
|
|
314
|
-
readonly SEALED: "sealed";
|
|
306
|
+
readonly INCOMPLETE: 'incomplete';
|
|
307
|
+
readonly REJECTED: 'rejected';
|
|
308
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
309
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
310
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
315
311
|
}>]>, z.ZodString]>>>;
|
|
316
312
|
}, z.core.$strip>>>;
|
|
317
|
-
data: z.ZodOptional<
|
|
313
|
+
data: z.ZodOptional<ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
318
314
|
}, z.core.$strip>;
|
|
319
315
|
export type QueryTypeShape = {
|
|
320
316
|
type: 'and' | 'or';
|
|
@@ -322,10 +318,10 @@ export type QueryTypeShape = {
|
|
|
322
318
|
};
|
|
323
319
|
export declare const QueryType: z.ZodType<QueryTypeShape>;
|
|
324
320
|
export declare const SearchQuery: z.ZodObject<{
|
|
325
|
-
query: z.
|
|
321
|
+
query: z.ZodPreprocess<ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
|
|
326
322
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
327
323
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
328
|
-
sort: z.ZodOptional<z.
|
|
324
|
+
sort: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
|
|
329
325
|
field: z.ZodString;
|
|
330
326
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
331
327
|
asc: "asc";
|
|
@@ -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,34 +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:
|
|
149
|
-
readonly REJECTED:
|
|
150
|
-
readonly CORRECTION_REQUESTED:
|
|
151
|
-
readonly POTENTIAL_DUPLICATE:
|
|
152
|
-
readonly EDIT_IN_PROGRESS:
|
|
153
|
-
readonly SEALED: "sealed";
|
|
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';
|
|
154
153
|
}>]>, z.ZodString]>>;
|
|
155
154
|
}, z.core.$strip>;
|
|
156
155
|
export type EventMetadata = z.infer<typeof EventMetadata>;
|
|
157
|
-
export declare const EventMetadataKeysArray: readonly [
|
|
156
|
+
export declare const EventMetadataKeysArray: readonly ['id', 'type', 'status', 'createdAt', 'dateOfEvent', 'placeOfEvent', 'createdBy', 'createdByUserType', 'updatedByUserRole', 'createdAtLocation', 'updatedAtLocation', 'updatedAt', 'assignedTo', 'updatedBy', 'trackingId', 'legalStatuses', 'flags'];
|
|
158
157
|
export declare const EventMetadataKeys: z.ZodEnum<{
|
|
159
|
-
|
|
160
|
-
type: "type";
|
|
161
|
-
updatedAt: "updatedAt";
|
|
162
|
-
placeOfEvent: "placeOfEvent";
|
|
163
|
-
flags: "flags";
|
|
164
|
-
createdByUserType: "createdByUserType";
|
|
158
|
+
assignedTo: "assignedTo";
|
|
165
159
|
createdAt: "createdAt";
|
|
166
|
-
createdBy: "createdBy";
|
|
167
160
|
createdAtLocation: "createdAtLocation";
|
|
161
|
+
createdBy: "createdBy";
|
|
162
|
+
createdByUserType: "createdByUserType";
|
|
163
|
+
dateOfEvent: "dateOfEvent";
|
|
164
|
+
flags: "flags";
|
|
165
|
+
id: "id";
|
|
166
|
+
legalStatuses: "legalStatuses";
|
|
167
|
+
placeOfEvent: "placeOfEvent";
|
|
168
168
|
status: "status";
|
|
169
|
-
assignedTo: "assignedTo";
|
|
170
169
|
trackingId: "trackingId";
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
updatedByUserRole: "updatedByUserRole";
|
|
170
|
+
type: "type";
|
|
171
|
+
updatedAt: "updatedAt";
|
|
174
172
|
updatedAtLocation: "updatedAtLocation";
|
|
175
173
|
updatedBy: "updatedBy";
|
|
174
|
+
updatedByUserRole: "updatedByUserRole";
|
|
176
175
|
}>;
|
|
177
176
|
export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
|
|
178
177
|
/**
|
|
@@ -182,25 +181,25 @@ export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
|
|
|
182
181
|
*/
|
|
183
182
|
export declare const eventMetadataLabelMap: Record<Exclude<`event.${EventMetadataKeys}`, 'event.legalStatuses'>, TranslationConfig>;
|
|
184
183
|
export declare const EventMetadataDateFieldIdInput: z.ZodEnum<{
|
|
185
|
-
updatedAt: "updatedAt";
|
|
186
184
|
createdAt: "createdAt";
|
|
187
|
-
"legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
|
|
188
|
-
"legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
|
|
189
|
-
"legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
|
|
190
185
|
"legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
|
|
191
|
-
"legalStatuses.
|
|
186
|
+
"legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
|
|
187
|
+
"legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
|
|
188
|
+
"legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
|
|
192
189
|
"legalStatuses.REGISTERED.acceptedAt": "legalStatuses.REGISTERED.acceptedAt";
|
|
190
|
+
"legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
|
|
191
|
+
updatedAt: "updatedAt";
|
|
193
192
|
}>;
|
|
194
193
|
export type EventMetadataDateFieldIdInput = z.infer<typeof EventMetadataDateFieldIdInput>;
|
|
195
194
|
export declare const EventMetadataDateFieldId: z.ZodEnum<{
|
|
196
|
-
"event.updatedAt": "event.updatedAt";
|
|
197
195
|
"event.createdAt": "event.createdAt";
|
|
198
|
-
"event.legalStatuses.NOTIFIED.createdAt": "event.legalStatuses.NOTIFIED.createdAt";
|
|
199
|
-
"event.legalStatuses.NOTIFIED.acceptedAt": "event.legalStatuses.NOTIFIED.acceptedAt";
|
|
200
|
-
"event.legalStatuses.DECLARED.createdAt": "event.legalStatuses.DECLARED.createdAt";
|
|
201
196
|
"event.legalStatuses.DECLARED.acceptedAt": "event.legalStatuses.DECLARED.acceptedAt";
|
|
202
|
-
"event.legalStatuses.
|
|
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";
|
|
203
200
|
"event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
|
|
201
|
+
"event.legalStatuses.REGISTERED.createdAt": "event.legalStatuses.REGISTERED.createdAt";
|
|
202
|
+
"event.updatedAt": "event.updatedAt";
|
|
204
203
|
}>;
|
|
205
204
|
export type EventMetadataDateFieldId = z.infer<typeof EventMetadataDateFieldId>;
|
|
206
205
|
//# sourceMappingURL=EventMetadata.d.ts.map
|