@opencrvs/toolkit 2.1.0-rc.811fc78 → 2.1.0-rc.83d4009
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 +190 -200
- package/dist/commons/api/router.d.ts +3433 -3243
- 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 +1 -2
- package/dist/commons/events/ActionConfig.d.ts +105 -126
- package/dist/commons/events/ActionDocument.d.ts +117 -111
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +513 -513
- package/dist/commons/events/AuditLog.d.ts +118 -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 +5 -5
- package/dist/commons/events/EventDocument.d.ts +46 -46
- package/dist/commons/events/EventIndex.d.ts +71 -52
- package/dist/commons/events/EventMetadata.d.ts +40 -41
- package/dist/commons/events/FieldConfig.d.ts +341 -341
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +15 -63
- 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 +826 -841
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +2 -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 +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 -40
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/conditionals/index.js +56 -303
- 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.map +1 -1
- 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/utils.d.ts +1 -1
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +2839 -2755
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/notification/index.js +1094 -1561
- package/dist/scopes/index.d.ts +148 -396
- package/dist/scopes/index.js +56 -304
- package/opencrvs-toolkit-2.1.0-rc.83d4009.tgz +0 -0
- package/package.json +3 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/commons/events/ActionStatus.d.ts +0 -14
- package/opencrvs-toolkit-2.1.0-rc.811fc78.tgz +0 -0
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { z, ZodType } from 'zod/v4';
|
|
2
|
-
export { ContainsFlags } from './Flag';
|
|
3
2
|
export declare const EventIndex: z.ZodObject<{
|
|
4
3
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
5
4
|
type: z.ZodString;
|
|
6
5
|
status: z.ZodEnum<{
|
|
6
|
+
ARCHIVED: "ARCHIVED";
|
|
7
7
|
CREATED: "CREATED";
|
|
8
|
-
NOTIFIED: "NOTIFIED";
|
|
9
8
|
DECLARED: "DECLARED";
|
|
9
|
+
NOTIFIED: "NOTIFIED";
|
|
10
10
|
REGISTERED: "REGISTERED";
|
|
11
|
-
ARCHIVED: "ARCHIVED";
|
|
12
11
|
}>;
|
|
13
12
|
legalStatuses: z.ZodObject<{
|
|
14
13
|
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -16,8 +15,8 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
16
15
|
createdBy: z.ZodString;
|
|
17
16
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
18
17
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
19
|
-
user: "user";
|
|
20
18
|
system: "system";
|
|
19
|
+
user: "user";
|
|
21
20
|
}>>>;
|
|
22
21
|
acceptedAt: z.ZodISODateTime;
|
|
23
22
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -27,8 +26,8 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
27
26
|
createdBy: z.ZodString;
|
|
28
27
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
29
28
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
30
|
-
user: "user";
|
|
31
29
|
system: "system";
|
|
30
|
+
user: "user";
|
|
32
31
|
}>>>;
|
|
33
32
|
acceptedAt: z.ZodISODateTime;
|
|
34
33
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -38,8 +37,8 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
38
37
|
createdBy: z.ZodString;
|
|
39
38
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
40
39
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
41
|
-
user: "user";
|
|
42
40
|
system: "system";
|
|
41
|
+
user: "user";
|
|
43
42
|
}>>>;
|
|
44
43
|
acceptedAt: z.ZodISODateTime;
|
|
45
44
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -51,8 +50,8 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
51
50
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
52
51
|
createdBy: z.ZodString;
|
|
53
52
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
54
|
-
user: "user";
|
|
55
53
|
system: "system";
|
|
54
|
+
user: "user";
|
|
56
55
|
}>>>;
|
|
57
56
|
updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
57
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -66,14 +65,13 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
66
65
|
trackingId: z.ZodString;
|
|
67
66
|
}, z.core.$strip>>;
|
|
68
67
|
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";
|
|
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';
|
|
75
73
|
}>]>, z.ZodString]>>;
|
|
76
|
-
declaration: z.ZodRecord<z.ZodString,
|
|
74
|
+
declaration: z.ZodRecord<z.ZodString, ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
|
|
77
75
|
}, z.core.$strip>;
|
|
78
76
|
export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
|
79
77
|
type: z.ZodString;
|
|
@@ -92,18 +90,18 @@ export type Exact = z.infer<typeof Exact>;
|
|
|
92
90
|
export declare const ExactStatus: z.ZodObject<{
|
|
93
91
|
type: z.ZodLiteral<"exact">;
|
|
94
92
|
term: z.ZodEnum<{
|
|
93
|
+
ARCHIVED: "ARCHIVED";
|
|
95
94
|
CREATED: "CREATED";
|
|
96
|
-
NOTIFIED: "NOTIFIED";
|
|
97
95
|
DECLARED: "DECLARED";
|
|
96
|
+
NOTIFIED: "NOTIFIED";
|
|
98
97
|
REGISTERED: "REGISTERED";
|
|
99
|
-
ARCHIVED: "ARCHIVED";
|
|
100
98
|
}>;
|
|
101
99
|
}, z.core.$strip>;
|
|
102
100
|
export declare const ExactUserType: z.ZodObject<{
|
|
103
101
|
type: z.ZodLiteral<"exact">;
|
|
104
102
|
term: z.ZodEnum<{
|
|
105
|
-
user: "user";
|
|
106
103
|
system: "system";
|
|
104
|
+
user: "user";
|
|
107
105
|
}>;
|
|
108
106
|
}, z.core.$strip>;
|
|
109
107
|
export declare const AnyOf: z.ZodObject<{
|
|
@@ -113,11 +111,11 @@ export declare const AnyOf: z.ZodObject<{
|
|
|
113
111
|
export declare const AnyOfStatus: z.ZodObject<{
|
|
114
112
|
type: z.ZodLiteral<"anyOf">;
|
|
115
113
|
terms: z.ZodArray<z.ZodEnum<{
|
|
114
|
+
ARCHIVED: "ARCHIVED";
|
|
116
115
|
CREATED: "CREATED";
|
|
117
|
-
NOTIFIED: "NOTIFIED";
|
|
118
116
|
DECLARED: "DECLARED";
|
|
117
|
+
NOTIFIED: "NOTIFIED";
|
|
119
118
|
REGISTERED: "REGISTERED";
|
|
120
|
-
ARCHIVED: "ARCHIVED";
|
|
121
119
|
}>>;
|
|
122
120
|
}, z.core.$strip>;
|
|
123
121
|
export declare const Range: z.ZodObject<{
|
|
@@ -125,6 +123,29 @@ export declare const Range: z.ZodObject<{
|
|
|
125
123
|
gte: z.ZodString;
|
|
126
124
|
lte: z.ZodString;
|
|
127
125
|
}, 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>;
|
|
128
149
|
export declare const Within: z.ZodObject<{
|
|
129
150
|
type: z.ZodLiteral<"within">;
|
|
130
151
|
location: z.ZodString;
|
|
@@ -144,10 +165,10 @@ export declare const DateCondition: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
144
165
|
}, z.core.$strip>, z.ZodObject<{
|
|
145
166
|
type: z.ZodLiteral<"timePeriod">;
|
|
146
167
|
term: z.ZodEnum<{
|
|
147
|
-
last7Days: "last7Days";
|
|
148
168
|
last30Days: "last30Days";
|
|
149
|
-
last90Days: "last90Days";
|
|
150
169
|
last365Days: "last365Days";
|
|
170
|
+
last7Days: "last7Days";
|
|
171
|
+
last90Days: "last90Days";
|
|
151
172
|
}>;
|
|
152
173
|
}, z.core.$strip>]>;
|
|
153
174
|
export type DateCondition = z.infer<typeof DateCondition>;
|
|
@@ -163,20 +184,20 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
163
184
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
164
185
|
type: z.ZodLiteral<"anyOf">;
|
|
165
186
|
terms: z.ZodArray<z.ZodEnum<{
|
|
187
|
+
ARCHIVED: "ARCHIVED";
|
|
166
188
|
CREATED: "CREATED";
|
|
167
|
-
NOTIFIED: "NOTIFIED";
|
|
168
189
|
DECLARED: "DECLARED";
|
|
190
|
+
NOTIFIED: "NOTIFIED";
|
|
169
191
|
REGISTERED: "REGISTERED";
|
|
170
|
-
ARCHIVED: "ARCHIVED";
|
|
171
192
|
}>>;
|
|
172
193
|
}, z.core.$strip>, z.ZodObject<{
|
|
173
194
|
type: z.ZodLiteral<"exact">;
|
|
174
195
|
term: z.ZodEnum<{
|
|
196
|
+
ARCHIVED: "ARCHIVED";
|
|
175
197
|
CREATED: "CREATED";
|
|
176
|
-
NOTIFIED: "NOTIFIED";
|
|
177
198
|
DECLARED: "DECLARED";
|
|
199
|
+
NOTIFIED: "NOTIFIED";
|
|
178
200
|
REGISTERED: "REGISTERED";
|
|
179
|
-
ARCHIVED: "ARCHIVED";
|
|
180
201
|
}>;
|
|
181
202
|
}, z.core.$strip>]>>>;
|
|
182
203
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -189,10 +210,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
189
210
|
}, z.core.$strip>, z.ZodObject<{
|
|
190
211
|
type: z.ZodLiteral<"timePeriod">;
|
|
191
212
|
term: z.ZodEnum<{
|
|
192
|
-
last7Days: "last7Days";
|
|
193
213
|
last30Days: "last30Days";
|
|
194
|
-
last90Days: "last90Days";
|
|
195
214
|
last365Days: "last365Days";
|
|
215
|
+
last7Days: "last7Days";
|
|
216
|
+
last90Days: "last90Days";
|
|
196
217
|
}>;
|
|
197
218
|
}, z.core.$strip>]>>>;
|
|
198
219
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -205,10 +226,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
205
226
|
}, z.core.$strip>, z.ZodObject<{
|
|
206
227
|
type: z.ZodLiteral<"timePeriod">;
|
|
207
228
|
term: z.ZodEnum<{
|
|
208
|
-
last7Days: "last7Days";
|
|
209
229
|
last30Days: "last30Days";
|
|
210
|
-
last90Days: "last90Days";
|
|
211
230
|
last365Days: "last365Days";
|
|
231
|
+
last7Days: "last7Days";
|
|
232
|
+
last90Days: "last90Days";
|
|
212
233
|
}>;
|
|
213
234
|
}, z.core.$strip>]>>>;
|
|
214
235
|
'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -229,10 +250,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
229
250
|
}, z.core.$strip>, z.ZodObject<{
|
|
230
251
|
type: z.ZodLiteral<"timePeriod">;
|
|
231
252
|
term: z.ZodEnum<{
|
|
232
|
-
last7Days: "last7Days";
|
|
233
253
|
last30Days: "last30Days";
|
|
234
|
-
last90Days: "last90Days";
|
|
235
254
|
last365Days: "last365Days";
|
|
255
|
+
last7Days: "last7Days";
|
|
256
|
+
last90Days: "last90Days";
|
|
236
257
|
}>;
|
|
237
258
|
}, z.core.$strip>]>>>;
|
|
238
259
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -268,8 +289,8 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
268
289
|
createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
269
290
|
type: z.ZodLiteral<"exact">;
|
|
270
291
|
term: z.ZodEnum<{
|
|
271
|
-
user: "user";
|
|
272
292
|
system: "system";
|
|
293
|
+
user: "user";
|
|
273
294
|
}>;
|
|
274
295
|
}, z.core.$strip>>>;
|
|
275
296
|
updatedByUserRole: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -290,31 +311,28 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
290
311
|
}, z.core.$strip>>>;
|
|
291
312
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
292
313
|
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";
|
|
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';
|
|
299
319
|
}>]>, z.ZodString]>>>;
|
|
300
320
|
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";
|
|
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';
|
|
307
326
|
}>]>, z.ZodString]>>>;
|
|
308
327
|
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";
|
|
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';
|
|
315
333
|
}>]>, z.ZodString]>>>;
|
|
316
334
|
}, z.core.$strip>>>;
|
|
317
|
-
data: z.ZodOptional<
|
|
335
|
+
data: z.ZodOptional<ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
318
336
|
}, z.core.$strip>;
|
|
319
337
|
export type QueryTypeShape = {
|
|
320
338
|
type: 'and' | 'or';
|
|
@@ -322,7 +340,7 @@ export type QueryTypeShape = {
|
|
|
322
340
|
};
|
|
323
341
|
export declare const QueryType: z.ZodType<QueryTypeShape>;
|
|
324
342
|
export declare const SearchQuery: z.ZodObject<{
|
|
325
|
-
query: z.ZodPipe<z.ZodTransform<any, unknown>,
|
|
343
|
+
query: z.ZodPipe<z.ZodTransform<any, unknown>, ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
|
|
326
344
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
327
345
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
328
346
|
sort: z.ZodOptional<z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodArray<z.ZodObject<{
|
|
@@ -336,4 +354,5 @@ export declare const SearchQuery: z.ZodObject<{
|
|
|
336
354
|
export type SearchQuery = z.infer<typeof SearchQuery>;
|
|
337
355
|
export type QueryType = z.infer<typeof QueryType>;
|
|
338
356
|
export type QueryExpression = z.infer<typeof QueryExpression>;
|
|
357
|
+
export {};
|
|
339
358
|
//# 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,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
|