@opencrvs/toolkit 2.1.0-rc.75e32d8 → 2.1.0-rc.786780d
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/dist/application-config/index.js +204 -192
- package/dist/commons/api/router.d.ts +3428 -3360
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +32 -323
- package/dist/commons/conditionals/validate.d.ts +16 -1
- package/dist/commons/events/ActionConfig.d.ts +105 -105
- package/dist/commons/events/ActionDocument.d.ts +117 -123
- package/dist/commons/events/ActionInput.d.ts +0 -6
- package/dist/commons/events/ActionStatus.d.ts +14 -0
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +519 -507
- package/dist/commons/events/AuditLog.d.ts +79 -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 -590
- 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 +48 -48
- package/dist/commons/events/EventIndex.d.ts +48 -71
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +398 -388
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +91 -91
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +57 -15
- 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 -814
- 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 +69 -198
- 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 +103 -6
- package/dist/commons/events/mocks.test.utils.d.ts +18 -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 -43
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/conditionals/index.js +303 -55
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/logger.d.ts +3 -12
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +17 -7
- package/dist/environment/questions.d.ts +75 -74
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +8 -14
- package/dist/environment/swarm-to-k8s.js +17 -7
- package/dist/environment/update-workflows.js +17 -7
- package/dist/environment/users.js +17 -7
- package/dist/environment/utils.d.ts +1 -1
- package/dist/environment/utils.js +17 -7
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +3481 -3303
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
- package/dist/notification/index.js +1714 -1046
- package/dist/scopes/index.d.ts +371 -146
- package/dist/scopes/index.js +304 -55
- package/opencrvs-toolkit-2.1.0-rc.786780d.tgz +0 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.75e32d8.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,13 @@ 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:
|
|
69
|
-
readonly REJECTED:
|
|
70
|
-
readonly CORRECTION_REQUESTED:
|
|
71
|
-
readonly POTENTIAL_DUPLICATE:
|
|
72
|
-
readonly 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';
|
|
73
74
|
}>]>, z.ZodString]>>;
|
|
74
|
-
declaration: z.ZodRecord<z.ZodString,
|
|
75
|
+
declaration: z.ZodRecord<z.ZodString, ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
|
|
75
76
|
}, z.core.$strip>;
|
|
76
77
|
export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
|
77
78
|
type: z.ZodString;
|
|
@@ -90,18 +91,18 @@ export type Exact = z.infer<typeof Exact>;
|
|
|
90
91
|
export declare const ExactStatus: z.ZodObject<{
|
|
91
92
|
type: z.ZodLiteral<"exact">;
|
|
92
93
|
term: z.ZodEnum<{
|
|
94
|
+
ARCHIVED: "ARCHIVED";
|
|
93
95
|
CREATED: "CREATED";
|
|
94
|
-
NOTIFIED: "NOTIFIED";
|
|
95
96
|
DECLARED: "DECLARED";
|
|
97
|
+
NOTIFIED: "NOTIFIED";
|
|
96
98
|
REGISTERED: "REGISTERED";
|
|
97
|
-
ARCHIVED: "ARCHIVED";
|
|
98
99
|
}>;
|
|
99
100
|
}, z.core.$strip>;
|
|
100
101
|
export declare const ExactUserType: z.ZodObject<{
|
|
101
102
|
type: z.ZodLiteral<"exact">;
|
|
102
103
|
term: z.ZodEnum<{
|
|
103
|
-
user: "user";
|
|
104
104
|
system: "system";
|
|
105
|
+
user: "user";
|
|
105
106
|
}>;
|
|
106
107
|
}, z.core.$strip>;
|
|
107
108
|
export declare const AnyOf: z.ZodObject<{
|
|
@@ -111,11 +112,11 @@ export declare const AnyOf: z.ZodObject<{
|
|
|
111
112
|
export declare const AnyOfStatus: z.ZodObject<{
|
|
112
113
|
type: z.ZodLiteral<"anyOf">;
|
|
113
114
|
terms: z.ZodArray<z.ZodEnum<{
|
|
115
|
+
ARCHIVED: "ARCHIVED";
|
|
114
116
|
CREATED: "CREATED";
|
|
115
|
-
NOTIFIED: "NOTIFIED";
|
|
116
117
|
DECLARED: "DECLARED";
|
|
118
|
+
NOTIFIED: "NOTIFIED";
|
|
117
119
|
REGISTERED: "REGISTERED";
|
|
118
|
-
ARCHIVED: "ARCHIVED";
|
|
119
120
|
}>>;
|
|
120
121
|
}, z.core.$strip>;
|
|
121
122
|
export declare const Range: z.ZodObject<{
|
|
@@ -123,29 +124,6 @@ export declare const Range: z.ZodObject<{
|
|
|
123
124
|
gte: z.ZodString;
|
|
124
125
|
lte: z.ZodString;
|
|
125
126
|
}, 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
127
|
export declare const Within: z.ZodObject<{
|
|
150
128
|
type: z.ZodLiteral<"within">;
|
|
151
129
|
location: z.ZodString;
|
|
@@ -165,10 +143,10 @@ export declare const DateCondition: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
165
143
|
}, z.core.$strip>, z.ZodObject<{
|
|
166
144
|
type: z.ZodLiteral<"timePeriod">;
|
|
167
145
|
term: z.ZodEnum<{
|
|
168
|
-
last7Days: "last7Days";
|
|
169
146
|
last30Days: "last30Days";
|
|
170
|
-
last90Days: "last90Days";
|
|
171
147
|
last365Days: "last365Days";
|
|
148
|
+
last7Days: "last7Days";
|
|
149
|
+
last90Days: "last90Days";
|
|
172
150
|
}>;
|
|
173
151
|
}, z.core.$strip>]>;
|
|
174
152
|
export type DateCondition = z.infer<typeof DateCondition>;
|
|
@@ -184,20 +162,20 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
184
162
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
185
163
|
type: z.ZodLiteral<"anyOf">;
|
|
186
164
|
terms: z.ZodArray<z.ZodEnum<{
|
|
165
|
+
ARCHIVED: "ARCHIVED";
|
|
187
166
|
CREATED: "CREATED";
|
|
188
|
-
NOTIFIED: "NOTIFIED";
|
|
189
167
|
DECLARED: "DECLARED";
|
|
168
|
+
NOTIFIED: "NOTIFIED";
|
|
190
169
|
REGISTERED: "REGISTERED";
|
|
191
|
-
ARCHIVED: "ARCHIVED";
|
|
192
170
|
}>>;
|
|
193
171
|
}, z.core.$strip>, z.ZodObject<{
|
|
194
172
|
type: z.ZodLiteral<"exact">;
|
|
195
173
|
term: z.ZodEnum<{
|
|
174
|
+
ARCHIVED: "ARCHIVED";
|
|
196
175
|
CREATED: "CREATED";
|
|
197
|
-
NOTIFIED: "NOTIFIED";
|
|
198
176
|
DECLARED: "DECLARED";
|
|
177
|
+
NOTIFIED: "NOTIFIED";
|
|
199
178
|
REGISTERED: "REGISTERED";
|
|
200
|
-
ARCHIVED: "ARCHIVED";
|
|
201
179
|
}>;
|
|
202
180
|
}, z.core.$strip>]>>>;
|
|
203
181
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -210,10 +188,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
210
188
|
}, z.core.$strip>, z.ZodObject<{
|
|
211
189
|
type: z.ZodLiteral<"timePeriod">;
|
|
212
190
|
term: z.ZodEnum<{
|
|
213
|
-
last7Days: "last7Days";
|
|
214
191
|
last30Days: "last30Days";
|
|
215
|
-
last90Days: "last90Days";
|
|
216
192
|
last365Days: "last365Days";
|
|
193
|
+
last7Days: "last7Days";
|
|
194
|
+
last90Days: "last90Days";
|
|
217
195
|
}>;
|
|
218
196
|
}, z.core.$strip>]>>>;
|
|
219
197
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -226,10 +204,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
226
204
|
}, z.core.$strip>, z.ZodObject<{
|
|
227
205
|
type: z.ZodLiteral<"timePeriod">;
|
|
228
206
|
term: z.ZodEnum<{
|
|
229
|
-
last7Days: "last7Days";
|
|
230
207
|
last30Days: "last30Days";
|
|
231
|
-
last90Days: "last90Days";
|
|
232
208
|
last365Days: "last365Days";
|
|
209
|
+
last7Days: "last7Days";
|
|
210
|
+
last90Days: "last90Days";
|
|
233
211
|
}>;
|
|
234
212
|
}, z.core.$strip>]>>>;
|
|
235
213
|
'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -250,10 +228,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
250
228
|
}, z.core.$strip>, z.ZodObject<{
|
|
251
229
|
type: z.ZodLiteral<"timePeriod">;
|
|
252
230
|
term: z.ZodEnum<{
|
|
253
|
-
last7Days: "last7Days";
|
|
254
231
|
last30Days: "last30Days";
|
|
255
|
-
last90Days: "last90Days";
|
|
256
232
|
last365Days: "last365Days";
|
|
233
|
+
last7Days: "last7Days";
|
|
234
|
+
last90Days: "last90Days";
|
|
257
235
|
}>;
|
|
258
236
|
}, z.core.$strip>]>>>;
|
|
259
237
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -289,8 +267,8 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
289
267
|
createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
290
268
|
type: z.ZodLiteral<"exact">;
|
|
291
269
|
term: z.ZodEnum<{
|
|
292
|
-
user: "user";
|
|
293
270
|
system: "system";
|
|
271
|
+
user: "user";
|
|
294
272
|
}>;
|
|
295
273
|
}, z.core.$strip>>>;
|
|
296
274
|
updatedByUserRole: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -311,28 +289,28 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
311
289
|
}, z.core.$strip>>>;
|
|
312
290
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
313
291
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
314
|
-
readonly INCOMPLETE:
|
|
315
|
-
readonly REJECTED:
|
|
316
|
-
readonly CORRECTION_REQUESTED:
|
|
317
|
-
readonly POTENTIAL_DUPLICATE:
|
|
318
|
-
readonly EDIT_IN_PROGRESS:
|
|
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';
|
|
319
297
|
}>]>, z.ZodString]>>>;
|
|
320
298
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
321
|
-
readonly INCOMPLETE:
|
|
322
|
-
readonly REJECTED:
|
|
323
|
-
readonly CORRECTION_REQUESTED:
|
|
324
|
-
readonly POTENTIAL_DUPLICATE:
|
|
325
|
-
readonly EDIT_IN_PROGRESS:
|
|
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';
|
|
326
304
|
}>]>, z.ZodString]>>>;
|
|
327
305
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
328
|
-
readonly INCOMPLETE:
|
|
329
|
-
readonly REJECTED:
|
|
330
|
-
readonly CORRECTION_REQUESTED:
|
|
331
|
-
readonly POTENTIAL_DUPLICATE:
|
|
332
|
-
readonly EDIT_IN_PROGRESS:
|
|
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';
|
|
333
311
|
}>]>, z.ZodString]>>>;
|
|
334
312
|
}, z.core.$strip>>>;
|
|
335
|
-
data: z.ZodOptional<
|
|
313
|
+
data: z.ZodOptional<ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
336
314
|
}, z.core.$strip>;
|
|
337
315
|
export type QueryTypeShape = {
|
|
338
316
|
type: 'and' | 'or';
|
|
@@ -340,7 +318,7 @@ export type QueryTypeShape = {
|
|
|
340
318
|
};
|
|
341
319
|
export declare const QueryType: z.ZodType<QueryTypeShape>;
|
|
342
320
|
export declare const SearchQuery: z.ZodObject<{
|
|
343
|
-
query: z.ZodPipe<z.ZodTransform<any, unknown>,
|
|
321
|
+
query: z.ZodPipe<z.ZodTransform<any, unknown>, ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
|
|
344
322
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
345
323
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
346
324
|
sort: z.ZodOptional<z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodArray<z.ZodObject<{
|
|
@@ -354,5 +332,4 @@ export declare const SearchQuery: z.ZodObject<{
|
|
|
354
332
|
export type SearchQuery = z.infer<typeof SearchQuery>;
|
|
355
333
|
export type QueryType = z.infer<typeof QueryType>;
|
|
356
334
|
export type QueryExpression = z.infer<typeof QueryExpression>;
|
|
357
|
-
export {};
|
|
358
335
|
//# 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,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:
|
|
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 [
|
|
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
|
-
|
|
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
|
-
|
|
170
|
-
|
|
171
|
-
updatedByUserRole: "updatedByUserRole";
|
|
170
|
+
type: "type";
|
|
171
|
+
updatedAt: "updatedAt";
|
|
172
172
|
updatedAtLocation: "updatedAtLocation";
|
|
173
173
|
updatedBy: "updatedBy";
|
|
174
|
-
|
|
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.
|
|
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.
|
|
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
|