@opencrvs/toolkit 1.8.0-rc.fa8bcf6 → 1.8.0-rc.facf9d6
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/commons/api/router.d.ts +7597 -4530
- package/dist/commons/conditionals/conditionals.d.ts +7 -6
- package/dist/commons/events/ActionConfig.d.ts +47498 -39631
- package/dist/commons/events/ActionDocument.d.ts +620 -413
- package/dist/commons/events/ActionInput.d.ts +255 -183
- package/dist/commons/events/AdvancedSearchConfig.d.ts +637 -48
- package/dist/commons/events/Constants.d.ts +2 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
- package/dist/commons/events/Draft.d.ts +29 -26
- package/dist/commons/events/EventConfig.d.ts +18414 -16593
- package/dist/commons/events/EventDocument.d.ts +373 -325
- package/dist/commons/events/EventIndex.d.ts +706 -291
- package/dist/commons/events/EventInput.d.ts +0 -13
- package/dist/commons/events/EventMetadata.d.ts +290 -14
- package/dist/commons/events/FieldConfig.d.ts +1305 -441
- package/dist/commons/events/FieldType.d.ts +3 -2
- package/dist/commons/events/FieldTypeMapping.d.ts +16 -6
- package/dist/commons/events/FieldValue.d.ts +8 -3
- package/dist/commons/events/FormConfig.d.ts +8993 -3809
- package/dist/commons/events/PageConfig.d.ts +1912 -636
- package/dist/commons/events/SummaryConfig.d.ts +17 -0
- package/dist/commons/events/User.d.ts +31 -7
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +4491 -10
- package/dist/commons/events/defineConfig.d.ts +3576 -3692
- package/dist/commons/events/event.d.ts +37 -8
- package/dist/commons/events/field.d.ts +28 -23
- package/dist/commons/events/index.d.ts +4 -0
- package/dist/commons/events/scopes.d.ts +21 -2
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +33 -13
- package/dist/commons/events/utils.d.ts +619 -291
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +28 -8
- package/dist/events/index.js +3204 -1546
- package/dist/scopes/index.d.ts +158 -1
- package/dist/scopes/index.js +152 -1
- package/package.json +1 -1
@@ -12,51 +12,367 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
12
12
|
readonly REJECTED: "REJECTED";
|
13
13
|
readonly ARCHIVED: "ARCHIVED";
|
14
14
|
}>;
|
15
|
+
legalStatuses: z.ZodObject<{
|
16
|
+
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
17
|
+
createdAt: z.ZodString;
|
18
|
+
createdBy: z.ZodString;
|
19
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
20
|
+
acceptedAt: z.ZodString;
|
21
|
+
createdByRole: z.ZodString;
|
22
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
24
|
+
createdAt: string;
|
25
|
+
createdBy: string;
|
26
|
+
createdByRole: string;
|
27
|
+
acceptedAt: string;
|
28
|
+
createdBySignature?: string | null | undefined;
|
29
|
+
createdAtLocation?: string | null | undefined;
|
30
|
+
}, {
|
31
|
+
createdAt: string;
|
32
|
+
createdBy: string;
|
33
|
+
createdByRole: string;
|
34
|
+
acceptedAt: string;
|
35
|
+
createdBySignature?: string | null | undefined;
|
36
|
+
createdAtLocation?: string | null | undefined;
|
37
|
+
}>>>;
|
38
|
+
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
39
|
+
createdAt: z.ZodString;
|
40
|
+
createdBy: z.ZodString;
|
41
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
42
|
+
acceptedAt: z.ZodString;
|
43
|
+
createdByRole: z.ZodString;
|
44
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
45
|
+
}, {
|
46
|
+
registrationNumber: z.ZodString;
|
47
|
+
}>, "strip", z.ZodTypeAny, {
|
48
|
+
createdAt: string;
|
49
|
+
createdBy: string;
|
50
|
+
createdByRole: string;
|
51
|
+
registrationNumber: string;
|
52
|
+
acceptedAt: string;
|
53
|
+
createdBySignature?: string | null | undefined;
|
54
|
+
createdAtLocation?: string | null | undefined;
|
55
|
+
}, {
|
56
|
+
createdAt: string;
|
57
|
+
createdBy: string;
|
58
|
+
createdByRole: string;
|
59
|
+
registrationNumber: string;
|
60
|
+
acceptedAt: string;
|
61
|
+
createdBySignature?: string | null | undefined;
|
62
|
+
createdAtLocation?: string | null | undefined;
|
63
|
+
}>>>;
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
65
|
+
DECLARED?: {
|
66
|
+
createdAt: string;
|
67
|
+
createdBy: string;
|
68
|
+
createdByRole: string;
|
69
|
+
acceptedAt: string;
|
70
|
+
createdBySignature?: string | null | undefined;
|
71
|
+
createdAtLocation?: string | null | undefined;
|
72
|
+
} | null | undefined;
|
73
|
+
REGISTERED?: {
|
74
|
+
createdAt: string;
|
75
|
+
createdBy: string;
|
76
|
+
createdByRole: string;
|
77
|
+
registrationNumber: string;
|
78
|
+
acceptedAt: string;
|
79
|
+
createdBySignature?: string | null | undefined;
|
80
|
+
createdAtLocation?: string | null | undefined;
|
81
|
+
} | null | undefined;
|
82
|
+
}, {
|
83
|
+
DECLARED?: {
|
84
|
+
createdAt: string;
|
85
|
+
createdBy: string;
|
86
|
+
createdByRole: string;
|
87
|
+
acceptedAt: string;
|
88
|
+
createdBySignature?: string | null | undefined;
|
89
|
+
createdAtLocation?: string | null | undefined;
|
90
|
+
} | null | undefined;
|
91
|
+
REGISTERED?: {
|
92
|
+
createdAt: string;
|
93
|
+
createdBy: string;
|
94
|
+
createdByRole: string;
|
95
|
+
registrationNumber: string;
|
96
|
+
acceptedAt: string;
|
97
|
+
createdBySignature?: string | null | undefined;
|
98
|
+
createdAtLocation?: string | null | undefined;
|
99
|
+
} | null | undefined;
|
100
|
+
}>;
|
15
101
|
createdAt: z.ZodString;
|
16
102
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
17
103
|
createdBy: z.ZodString;
|
18
104
|
updatedByUserRole: z.ZodString;
|
19
|
-
createdAtLocation: z.ZodString
|
20
|
-
|
105
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
106
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
107
|
+
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
21
108
|
updatedAt: z.ZodString;
|
22
109
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
23
|
-
updatedBy: z.ZodString
|
110
|
+
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
24
111
|
trackingId: z.ZodString;
|
25
|
-
|
112
|
+
flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
113
|
+
readonly CERTIFICATE_PRINTED: "certificate-printed";
|
114
|
+
}>]>, "many">;
|
26
115
|
}, {
|
27
|
-
declaration: z.ZodRecord<z.ZodString, z.
|
116
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
117
|
+
filename: z.ZodString;
|
118
|
+
originalFilename: z.ZodString;
|
119
|
+
type: z.ZodString;
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
121
|
+
type: string;
|
122
|
+
filename: string;
|
123
|
+
originalFilename: string;
|
124
|
+
}, {
|
125
|
+
type: string;
|
126
|
+
filename: string;
|
127
|
+
originalFilename: string;
|
128
|
+
}>, z.ZodArray<z.ZodObject<{
|
129
|
+
filename: z.ZodString;
|
130
|
+
originalFilename: z.ZodString;
|
131
|
+
type: z.ZodString;
|
132
|
+
option: z.ZodString;
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
134
|
+
type: string;
|
135
|
+
option: string;
|
136
|
+
filename: string;
|
137
|
+
originalFilename: string;
|
138
|
+
}, {
|
139
|
+
type: string;
|
140
|
+
option: string;
|
141
|
+
filename: string;
|
142
|
+
originalFilename: string;
|
143
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
144
|
+
country: z.ZodString;
|
145
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
146
|
+
province: z.ZodString;
|
147
|
+
district: z.ZodString;
|
148
|
+
}, {
|
149
|
+
urbanOrRural: z.ZodLiteral<"URBAN">;
|
150
|
+
town: z.ZodOptional<z.ZodString>;
|
151
|
+
residentialArea: z.ZodOptional<z.ZodString>;
|
152
|
+
street: z.ZodOptional<z.ZodString>;
|
153
|
+
number: z.ZodOptional<z.ZodString>;
|
154
|
+
zipCode: z.ZodOptional<z.ZodString>;
|
155
|
+
}>, "strip", z.ZodTypeAny, {
|
156
|
+
country: string;
|
157
|
+
district: string;
|
158
|
+
addressType: "DOMESTIC";
|
159
|
+
province: string;
|
160
|
+
urbanOrRural: "URBAN";
|
161
|
+
number?: string | undefined;
|
162
|
+
town?: string | undefined;
|
163
|
+
residentialArea?: string | undefined;
|
164
|
+
street?: string | undefined;
|
165
|
+
zipCode?: string | undefined;
|
166
|
+
}, {
|
167
|
+
country: string;
|
168
|
+
district: string;
|
169
|
+
addressType: "DOMESTIC";
|
170
|
+
province: string;
|
171
|
+
urbanOrRural: "URBAN";
|
172
|
+
number?: string | undefined;
|
173
|
+
town?: string | undefined;
|
174
|
+
residentialArea?: string | undefined;
|
175
|
+
street?: string | undefined;
|
176
|
+
zipCode?: string | undefined;
|
177
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
178
|
+
country: z.ZodString;
|
179
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
180
|
+
province: z.ZodString;
|
181
|
+
district: z.ZodString;
|
182
|
+
}, {
|
183
|
+
urbanOrRural: z.ZodLiteral<"RURAL">;
|
184
|
+
village: z.ZodOptional<z.ZodString>;
|
185
|
+
}>, "strip", z.ZodTypeAny, {
|
186
|
+
country: string;
|
187
|
+
district: string;
|
188
|
+
addressType: "DOMESTIC";
|
189
|
+
province: string;
|
190
|
+
urbanOrRural: "RURAL";
|
191
|
+
village?: string | undefined;
|
192
|
+
}, {
|
193
|
+
country: string;
|
194
|
+
district: string;
|
195
|
+
addressType: "DOMESTIC";
|
196
|
+
province: string;
|
197
|
+
urbanOrRural: "RURAL";
|
198
|
+
village?: string | undefined;
|
199
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
200
|
+
country: z.ZodString;
|
201
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
202
|
+
state: z.ZodString;
|
203
|
+
district2: z.ZodString;
|
204
|
+
cityOrTown: z.ZodOptional<z.ZodString>;
|
205
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
206
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
207
|
+
addressLine3: z.ZodOptional<z.ZodString>;
|
208
|
+
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
210
|
+
country: string;
|
211
|
+
state: string;
|
212
|
+
addressType: "INTERNATIONAL";
|
213
|
+
district2: string;
|
214
|
+
cityOrTown?: string | undefined;
|
215
|
+
addressLine1?: string | undefined;
|
216
|
+
addressLine2?: string | undefined;
|
217
|
+
addressLine3?: string | undefined;
|
218
|
+
postcodeOrZip?: string | undefined;
|
219
|
+
}, {
|
220
|
+
country: string;
|
221
|
+
state: string;
|
222
|
+
addressType: "INTERNATIONAL";
|
223
|
+
district2: string;
|
224
|
+
cityOrTown?: string | undefined;
|
225
|
+
addressLine1?: string | undefined;
|
226
|
+
addressLine2?: string | undefined;
|
227
|
+
addressLine3?: string | undefined;
|
228
|
+
postcodeOrZip?: string | undefined;
|
229
|
+
}>]>>;
|
28
230
|
}>, "strip", z.ZodTypeAny, {
|
29
231
|
type: string;
|
30
232
|
id: string;
|
31
233
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
32
234
|
createdAt: string;
|
33
235
|
createdBy: string;
|
34
|
-
declaration: Record<string,
|
35
|
-
|
36
|
-
|
236
|
+
declaration: Record<string, string | number | boolean | {
|
237
|
+
type: string;
|
238
|
+
filename: string;
|
239
|
+
originalFilename: string;
|
240
|
+
} | {
|
241
|
+
country: string;
|
242
|
+
district: string;
|
243
|
+
addressType: "DOMESTIC";
|
244
|
+
province: string;
|
245
|
+
urbanOrRural: "URBAN";
|
246
|
+
number?: string | undefined;
|
247
|
+
town?: string | undefined;
|
248
|
+
residentialArea?: string | undefined;
|
249
|
+
street?: string | undefined;
|
250
|
+
zipCode?: string | undefined;
|
251
|
+
} | {
|
252
|
+
country: string;
|
253
|
+
district: string;
|
254
|
+
addressType: "DOMESTIC";
|
255
|
+
province: string;
|
256
|
+
urbanOrRural: "RURAL";
|
257
|
+
village?: string | undefined;
|
258
|
+
} | {
|
259
|
+
country: string;
|
260
|
+
state: string;
|
261
|
+
addressType: "INTERNATIONAL";
|
262
|
+
district2: string;
|
263
|
+
cityOrTown?: string | undefined;
|
264
|
+
addressLine1?: string | undefined;
|
265
|
+
addressLine2?: string | undefined;
|
266
|
+
addressLine3?: string | undefined;
|
267
|
+
postcodeOrZip?: string | undefined;
|
268
|
+
} | {
|
269
|
+
type: string;
|
270
|
+
option: string;
|
271
|
+
filename: string;
|
272
|
+
originalFilename: string;
|
273
|
+
}[] | [string, string] | undefined>;
|
37
274
|
updatedAt: string;
|
38
275
|
trackingId: string;
|
276
|
+
legalStatuses: {
|
277
|
+
DECLARED?: {
|
278
|
+
createdAt: string;
|
279
|
+
createdBy: string;
|
280
|
+
createdByRole: string;
|
281
|
+
acceptedAt: string;
|
282
|
+
createdBySignature?: string | null | undefined;
|
283
|
+
createdAtLocation?: string | null | undefined;
|
284
|
+
} | null | undefined;
|
285
|
+
REGISTERED?: {
|
286
|
+
createdAt: string;
|
287
|
+
createdBy: string;
|
288
|
+
createdByRole: string;
|
289
|
+
registrationNumber: string;
|
290
|
+
acceptedAt: string;
|
291
|
+
createdBySignature?: string | null | undefined;
|
292
|
+
createdAtLocation?: string | null | undefined;
|
293
|
+
} | null | undefined;
|
294
|
+
};
|
39
295
|
updatedByUserRole: string;
|
40
|
-
|
296
|
+
flags: string[];
|
297
|
+
createdBySignature?: string | null | undefined;
|
298
|
+
createdAtLocation?: string | null | undefined;
|
41
299
|
assignedTo?: string | null | undefined;
|
42
|
-
registrationNumber?: string | null | undefined;
|
43
300
|
dateOfEvent?: string | null | undefined;
|
301
|
+
updatedAtLocation?: string | null | undefined;
|
302
|
+
updatedBy?: string | null | undefined;
|
44
303
|
}, {
|
45
304
|
type: string;
|
46
305
|
id: string;
|
47
306
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
48
307
|
createdAt: string;
|
49
308
|
createdBy: string;
|
50
|
-
declaration: Record<string,
|
51
|
-
|
52
|
-
|
309
|
+
declaration: Record<string, string | number | boolean | {
|
310
|
+
type: string;
|
311
|
+
filename: string;
|
312
|
+
originalFilename: string;
|
313
|
+
} | {
|
314
|
+
country: string;
|
315
|
+
district: string;
|
316
|
+
addressType: "DOMESTIC";
|
317
|
+
province: string;
|
318
|
+
urbanOrRural: "URBAN";
|
319
|
+
number?: string | undefined;
|
320
|
+
town?: string | undefined;
|
321
|
+
residentialArea?: string | undefined;
|
322
|
+
street?: string | undefined;
|
323
|
+
zipCode?: string | undefined;
|
324
|
+
} | {
|
325
|
+
country: string;
|
326
|
+
district: string;
|
327
|
+
addressType: "DOMESTIC";
|
328
|
+
province: string;
|
329
|
+
urbanOrRural: "RURAL";
|
330
|
+
village?: string | undefined;
|
331
|
+
} | {
|
332
|
+
country: string;
|
333
|
+
state: string;
|
334
|
+
addressType: "INTERNATIONAL";
|
335
|
+
district2: string;
|
336
|
+
cityOrTown?: string | undefined;
|
337
|
+
addressLine1?: string | undefined;
|
338
|
+
addressLine2?: string | undefined;
|
339
|
+
addressLine3?: string | undefined;
|
340
|
+
postcodeOrZip?: string | undefined;
|
341
|
+
} | {
|
342
|
+
type: string;
|
343
|
+
option: string;
|
344
|
+
filename: string;
|
345
|
+
originalFilename: string;
|
346
|
+
}[] | [string, string] | undefined>;
|
53
347
|
updatedAt: string;
|
54
348
|
trackingId: string;
|
349
|
+
legalStatuses: {
|
350
|
+
DECLARED?: {
|
351
|
+
createdAt: string;
|
352
|
+
createdBy: string;
|
353
|
+
createdByRole: string;
|
354
|
+
acceptedAt: string;
|
355
|
+
createdBySignature?: string | null | undefined;
|
356
|
+
createdAtLocation?: string | null | undefined;
|
357
|
+
} | null | undefined;
|
358
|
+
REGISTERED?: {
|
359
|
+
createdAt: string;
|
360
|
+
createdBy: string;
|
361
|
+
createdByRole: string;
|
362
|
+
registrationNumber: string;
|
363
|
+
acceptedAt: string;
|
364
|
+
createdBySignature?: string | null | undefined;
|
365
|
+
createdAtLocation?: string | null | undefined;
|
366
|
+
} | null | undefined;
|
367
|
+
};
|
55
368
|
updatedByUserRole: string;
|
56
|
-
|
369
|
+
flags: string[];
|
370
|
+
createdBySignature?: string | null | undefined;
|
371
|
+
createdAtLocation?: string | null | undefined;
|
57
372
|
assignedTo?: string | null | undefined;
|
58
|
-
registrationNumber?: string | null | undefined;
|
59
373
|
dateOfEvent?: string | null | undefined;
|
374
|
+
updatedAtLocation?: string | null | undefined;
|
375
|
+
updatedBy?: string | null | undefined;
|
60
376
|
}>;
|
61
377
|
export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
62
378
|
type: z.ZodString;
|
@@ -67,7 +383,7 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
|
|
67
383
|
}>>;
|
68
384
|
export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
|
69
385
|
export type EventIndex = z.infer<typeof EventIndex>;
|
70
|
-
declare const Fuzzy: z.ZodObject<{
|
386
|
+
export declare const Fuzzy: z.ZodObject<{
|
71
387
|
type: z.ZodLiteral<"fuzzy">;
|
72
388
|
term: z.ZodString;
|
73
389
|
}, "strip", z.ZodTypeAny, {
|
@@ -77,7 +393,7 @@ declare const Fuzzy: z.ZodObject<{
|
|
77
393
|
type: "fuzzy";
|
78
394
|
term: string;
|
79
395
|
}>;
|
80
|
-
declare const Exact: z.ZodObject<{
|
396
|
+
export declare const Exact: z.ZodObject<{
|
81
397
|
type: z.ZodLiteral<"exact">;
|
82
398
|
term: z.ZodString;
|
83
399
|
}, "strip", z.ZodTypeAny, {
|
@@ -87,7 +403,7 @@ declare const Exact: z.ZodObject<{
|
|
87
403
|
type: "exact";
|
88
404
|
term: string;
|
89
405
|
}>;
|
90
|
-
declare const AnyOf: z.ZodObject<{
|
406
|
+
export declare const AnyOf: z.ZodObject<{
|
91
407
|
type: z.ZodLiteral<"anyOf">;
|
92
408
|
terms: z.ZodArray<z.ZodString, "many">;
|
93
409
|
}, "strip", z.ZodTypeAny, {
|
@@ -97,7 +413,27 @@ declare const AnyOf: z.ZodObject<{
|
|
97
413
|
type: "anyOf";
|
98
414
|
terms: string[];
|
99
415
|
}>;
|
100
|
-
declare const
|
416
|
+
export declare const ExactStatus: z.ZodObject<{
|
417
|
+
type: z.ZodLiteral<"exact">;
|
418
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
419
|
+
}, "strip", z.ZodTypeAny, {
|
420
|
+
type: "exact";
|
421
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
422
|
+
}, {
|
423
|
+
type: "exact";
|
424
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
425
|
+
}>;
|
426
|
+
export declare const AnyOfStatus: z.ZodObject<{
|
427
|
+
type: z.ZodLiteral<"anyOf">;
|
428
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
|
429
|
+
}, "strip", z.ZodTypeAny, {
|
430
|
+
type: "anyOf";
|
431
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
432
|
+
}, {
|
433
|
+
type: "anyOf";
|
434
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
435
|
+
}>;
|
436
|
+
export declare const Range: z.ZodObject<{
|
101
437
|
type: z.ZodLiteral<"range">;
|
102
438
|
gte: z.ZodString;
|
103
439
|
lte: z.ZodString;
|
@@ -110,7 +446,17 @@ declare const Range: z.ZodObject<{
|
|
110
446
|
gte: string;
|
111
447
|
lte: string;
|
112
448
|
}>;
|
113
|
-
declare const
|
449
|
+
export declare const Not: z.ZodObject<{
|
450
|
+
type: z.ZodLiteral<"not">;
|
451
|
+
term: z.ZodString;
|
452
|
+
}, "strip", z.ZodTypeAny, {
|
453
|
+
type: "not";
|
454
|
+
term: string;
|
455
|
+
}, {
|
456
|
+
type: "not";
|
457
|
+
term: string;
|
458
|
+
}>;
|
459
|
+
export declare const Within: z.ZodObject<{
|
114
460
|
type: z.ZodLiteral<"within">;
|
115
461
|
location: z.ZodString;
|
116
462
|
}, "strip", z.ZodTypeAny, {
|
@@ -120,33 +466,54 @@ declare const Within: z.ZodObject<{
|
|
120
466
|
type: "within";
|
121
467
|
location: string;
|
122
468
|
}>;
|
469
|
+
export declare const DateCondition: z.ZodUnion<[z.ZodObject<{
|
470
|
+
type: z.ZodLiteral<"exact">;
|
471
|
+
term: z.ZodString;
|
472
|
+
}, "strip", z.ZodTypeAny, {
|
473
|
+
type: "exact";
|
474
|
+
term: string;
|
475
|
+
}, {
|
476
|
+
type: "exact";
|
477
|
+
term: string;
|
478
|
+
}>, z.ZodObject<{
|
479
|
+
type: z.ZodLiteral<"range">;
|
480
|
+
gte: z.ZodString;
|
481
|
+
lte: z.ZodString;
|
482
|
+
}, "strip", z.ZodTypeAny, {
|
483
|
+
type: "range";
|
484
|
+
gte: string;
|
485
|
+
lte: string;
|
486
|
+
}, {
|
487
|
+
type: "range";
|
488
|
+
gte: string;
|
489
|
+
lte: string;
|
490
|
+
}>]>;
|
123
491
|
export declare const QueryInput: ZodType;
|
124
|
-
export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
|
492
|
+
export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf> | z.infer<typeof Not>;
|
125
493
|
type QueryMap = {
|
126
494
|
[key: string]: BaseInput | QueryMap;
|
127
495
|
};
|
128
496
|
export type QueryInputType = BaseInput | QueryMap;
|
129
|
-
declare const QueryExpression: z.ZodObject<{
|
130
|
-
type: z.ZodOptional<z.ZodLiteral<"and">>;
|
497
|
+
export declare const QueryExpression: z.ZodObject<{
|
131
498
|
eventType: z.ZodOptional<z.ZodString>;
|
132
499
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
133
500
|
type: z.ZodLiteral<"anyOf">;
|
134
|
-
terms: z.ZodArray<z.
|
501
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
|
135
502
|
}, "strip", z.ZodTypeAny, {
|
136
503
|
type: "anyOf";
|
137
|
-
terms:
|
504
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
138
505
|
}, {
|
139
506
|
type: "anyOf";
|
140
|
-
terms:
|
507
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
141
508
|
}>, z.ZodObject<{
|
142
509
|
type: z.ZodLiteral<"exact">;
|
143
|
-
term: z.
|
510
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
144
511
|
}, "strip", z.ZodTypeAny, {
|
145
512
|
type: "exact";
|
146
|
-
term:
|
513
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
147
514
|
}, {
|
148
515
|
type: "exact";
|
149
|
-
term:
|
516
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
150
517
|
}>]>>>;
|
151
518
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
152
519
|
type: z.ZodLiteral<"exact">;
|
@@ -192,206 +559,7 @@ declare const QueryExpression: z.ZodObject<{
|
|
192
559
|
gte: string;
|
193
560
|
lte: string;
|
194
561
|
}>]>>>;
|
195
|
-
|
196
|
-
type: z.ZodLiteral<"within">;
|
197
|
-
location: z.ZodString;
|
198
|
-
}, "strip", z.ZodTypeAny, {
|
199
|
-
type: "within";
|
200
|
-
location: string;
|
201
|
-
}, {
|
202
|
-
type: "within";
|
203
|
-
location: string;
|
204
|
-
}>, z.ZodObject<{
|
205
|
-
type: z.ZodLiteral<"exact">;
|
206
|
-
term: z.ZodString;
|
207
|
-
}, "strip", z.ZodTypeAny, {
|
208
|
-
type: "exact";
|
209
|
-
term: string;
|
210
|
-
}, {
|
211
|
-
type: "exact";
|
212
|
-
term: string;
|
213
|
-
}>]>>>;
|
214
|
-
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
215
|
-
type: z.ZodLiteral<"within">;
|
216
|
-
location: z.ZodString;
|
217
|
-
}, "strip", z.ZodTypeAny, {
|
218
|
-
type: "within";
|
219
|
-
location: string;
|
220
|
-
}, {
|
221
|
-
type: "within";
|
222
|
-
location: string;
|
223
|
-
}>, z.ZodObject<{
|
224
|
-
type: z.ZodLiteral<"exact">;
|
225
|
-
term: z.ZodString;
|
226
|
-
}, "strip", z.ZodTypeAny, {
|
227
|
-
type: "exact";
|
228
|
-
term: string;
|
229
|
-
}, {
|
230
|
-
type: "exact";
|
231
|
-
term: string;
|
232
|
-
}>]>>>;
|
233
|
-
createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
234
|
-
type: z.ZodLiteral<"exact">;
|
235
|
-
term: z.ZodString;
|
236
|
-
}, "strip", z.ZodTypeAny, {
|
237
|
-
type: "exact";
|
238
|
-
term: string;
|
239
|
-
}, {
|
240
|
-
type: "exact";
|
241
|
-
term: string;
|
242
|
-
}>>>;
|
243
|
-
updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
244
|
-
type: z.ZodLiteral<"exact">;
|
245
|
-
term: z.ZodString;
|
246
|
-
}, "strip", z.ZodTypeAny, {
|
247
|
-
type: "exact";
|
248
|
-
term: string;
|
249
|
-
}, {
|
250
|
-
type: "exact";
|
251
|
-
term: string;
|
252
|
-
}>>>;
|
253
|
-
trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
254
|
-
type: z.ZodLiteral<"exact">;
|
255
|
-
term: z.ZodString;
|
256
|
-
}, "strip", z.ZodTypeAny, {
|
257
|
-
type: "exact";
|
258
|
-
term: string;
|
259
|
-
}, {
|
260
|
-
type: "exact";
|
261
|
-
term: string;
|
262
|
-
}>>>;
|
263
|
-
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
264
|
-
}, "strip", z.ZodTypeAny, {
|
265
|
-
type?: "and" | undefined;
|
266
|
-
status?: {
|
267
|
-
type: "exact";
|
268
|
-
term: string;
|
269
|
-
} | {
|
270
|
-
type: "anyOf";
|
271
|
-
terms: string[];
|
272
|
-
} | undefined;
|
273
|
-
data?: any;
|
274
|
-
createdAt?: {
|
275
|
-
type: "exact";
|
276
|
-
term: string;
|
277
|
-
} | {
|
278
|
-
type: "range";
|
279
|
-
gte: string;
|
280
|
-
lte: string;
|
281
|
-
} | undefined;
|
282
|
-
createdBy?: {
|
283
|
-
type: "exact";
|
284
|
-
term: string;
|
285
|
-
} | undefined;
|
286
|
-
updatedAtLocation?: {
|
287
|
-
type: "exact";
|
288
|
-
term: string;
|
289
|
-
} | {
|
290
|
-
type: "within";
|
291
|
-
location: string;
|
292
|
-
} | undefined;
|
293
|
-
updatedAt?: {
|
294
|
-
type: "exact";
|
295
|
-
term: string;
|
296
|
-
} | {
|
297
|
-
type: "range";
|
298
|
-
gte: string;
|
299
|
-
lte: string;
|
300
|
-
} | undefined;
|
301
|
-
trackingId?: {
|
302
|
-
type: "exact";
|
303
|
-
term: string;
|
304
|
-
} | undefined;
|
305
|
-
updatedBy?: {
|
306
|
-
type: "exact";
|
307
|
-
term: string;
|
308
|
-
} | undefined;
|
309
|
-
eventType?: string | undefined;
|
310
|
-
createAtLocation?: {
|
311
|
-
type: "exact";
|
312
|
-
term: string;
|
313
|
-
} | {
|
314
|
-
type: "within";
|
315
|
-
location: string;
|
316
|
-
} | undefined;
|
317
|
-
}, {
|
318
|
-
type?: "and" | undefined;
|
319
|
-
status?: {
|
320
|
-
type: "exact";
|
321
|
-
term: string;
|
322
|
-
} | {
|
323
|
-
type: "anyOf";
|
324
|
-
terms: string[];
|
325
|
-
} | undefined;
|
326
|
-
data?: any;
|
327
|
-
createdAt?: {
|
328
|
-
type: "exact";
|
329
|
-
term: string;
|
330
|
-
} | {
|
331
|
-
type: "range";
|
332
|
-
gte: string;
|
333
|
-
lte: string;
|
334
|
-
} | undefined;
|
335
|
-
createdBy?: {
|
336
|
-
type: "exact";
|
337
|
-
term: string;
|
338
|
-
} | undefined;
|
339
|
-
updatedAtLocation?: {
|
340
|
-
type: "exact";
|
341
|
-
term: string;
|
342
|
-
} | {
|
343
|
-
type: "within";
|
344
|
-
location: string;
|
345
|
-
} | undefined;
|
346
|
-
updatedAt?: {
|
347
|
-
type: "exact";
|
348
|
-
term: string;
|
349
|
-
} | {
|
350
|
-
type: "range";
|
351
|
-
gte: string;
|
352
|
-
lte: string;
|
353
|
-
} | undefined;
|
354
|
-
trackingId?: {
|
355
|
-
type: "exact";
|
356
|
-
term: string;
|
357
|
-
} | undefined;
|
358
|
-
updatedBy?: {
|
359
|
-
type: "exact";
|
360
|
-
term: string;
|
361
|
-
} | undefined;
|
362
|
-
eventType?: string | undefined;
|
363
|
-
createAtLocation?: {
|
364
|
-
type: "exact";
|
365
|
-
term: string;
|
366
|
-
} | {
|
367
|
-
type: "within";
|
368
|
-
location: string;
|
369
|
-
} | undefined;
|
370
|
-
}>;
|
371
|
-
export type QueryExpression = z.infer<typeof QueryExpression>;
|
372
|
-
export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
373
|
-
type: z.ZodOptional<z.ZodLiteral<"and">>;
|
374
|
-
eventType: z.ZodOptional<z.ZodString>;
|
375
|
-
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
376
|
-
type: z.ZodLiteral<"anyOf">;
|
377
|
-
terms: z.ZodArray<z.ZodString, "many">;
|
378
|
-
}, "strip", z.ZodTypeAny, {
|
379
|
-
type: "anyOf";
|
380
|
-
terms: string[];
|
381
|
-
}, {
|
382
|
-
type: "anyOf";
|
383
|
-
terms: string[];
|
384
|
-
}>, z.ZodObject<{
|
385
|
-
type: z.ZodLiteral<"exact">;
|
386
|
-
term: z.ZodString;
|
387
|
-
}, "strip", z.ZodTypeAny, {
|
388
|
-
type: "exact";
|
389
|
-
term: string;
|
390
|
-
}, {
|
391
|
-
type: "exact";
|
392
|
-
term: string;
|
393
|
-
}>]>>>;
|
394
|
-
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
562
|
+
'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
395
563
|
type: z.ZodLiteral<"exact">;
|
396
564
|
term: z.ZodString;
|
397
565
|
}, "strip", z.ZodTypeAny, {
|
@@ -413,7 +581,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
413
581
|
gte: string;
|
414
582
|
lte: string;
|
415
583
|
}>]>>>;
|
416
|
-
|
584
|
+
'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
585
|
+
type: z.ZodLiteral<"within">;
|
586
|
+
location: z.ZodString;
|
587
|
+
}, "strip", z.ZodTypeAny, {
|
588
|
+
type: "within";
|
589
|
+
location: string;
|
590
|
+
}, {
|
591
|
+
type: "within";
|
592
|
+
location: string;
|
593
|
+
}>, z.ZodObject<{
|
417
594
|
type: z.ZodLiteral<"exact">;
|
418
595
|
term: z.ZodString;
|
419
596
|
}, "strip", z.ZodTypeAny, {
|
@@ -422,20 +599,8 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
422
599
|
}, {
|
423
600
|
type: "exact";
|
424
601
|
term: string;
|
425
|
-
}>, z.ZodObject<{
|
426
|
-
type: z.ZodLiteral<"range">;
|
427
|
-
gte: z.ZodString;
|
428
|
-
lte: z.ZodString;
|
429
|
-
}, "strip", z.ZodTypeAny, {
|
430
|
-
type: "range";
|
431
|
-
gte: string;
|
432
|
-
lte: string;
|
433
|
-
}, {
|
434
|
-
type: "range";
|
435
|
-
gte: string;
|
436
|
-
lte: string;
|
437
602
|
}>]>>>;
|
438
|
-
|
603
|
+
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
439
604
|
type: z.ZodLiteral<"within">;
|
440
605
|
location: z.ZodString;
|
441
606
|
}, "strip", z.ZodTypeAny, {
|
@@ -473,6 +638,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
473
638
|
type: "exact";
|
474
639
|
term: string;
|
475
640
|
}>]>>>;
|
641
|
+
assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
642
|
+
type: z.ZodLiteral<"exact">;
|
643
|
+
term: z.ZodString;
|
644
|
+
}, "strip", z.ZodTypeAny, {
|
645
|
+
type: "exact";
|
646
|
+
term: string;
|
647
|
+
}, {
|
648
|
+
type: "exact";
|
649
|
+
term: string;
|
650
|
+
}>>>;
|
476
651
|
createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
477
652
|
type: z.ZodLiteral<"exact">;
|
478
653
|
term: z.ZodString;
|
@@ -503,15 +678,33 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
503
678
|
type: "exact";
|
504
679
|
term: string;
|
505
680
|
}>>>;
|
681
|
+
flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
682
|
+
type: z.ZodLiteral<"anyOf">;
|
683
|
+
terms: z.ZodArray<z.ZodString, "many">;
|
684
|
+
}, "strip", z.ZodTypeAny, {
|
685
|
+
type: "anyOf";
|
686
|
+
terms: string[];
|
687
|
+
}, {
|
688
|
+
type: "anyOf";
|
689
|
+
terms: string[];
|
690
|
+
}>, z.ZodObject<{
|
691
|
+
type: z.ZodLiteral<"not">;
|
692
|
+
term: z.ZodString;
|
693
|
+
}, "strip", z.ZodTypeAny, {
|
694
|
+
type: "not";
|
695
|
+
term: string;
|
696
|
+
}, {
|
697
|
+
type: "not";
|
698
|
+
term: string;
|
699
|
+
}>]>, "many">>>;
|
506
700
|
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
507
701
|
}, "strip", z.ZodTypeAny, {
|
508
|
-
type?: "and" | undefined;
|
509
702
|
status?: {
|
510
703
|
type: "exact";
|
511
|
-
term:
|
704
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
512
705
|
} | {
|
513
706
|
type: "anyOf";
|
514
|
-
terms:
|
707
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
515
708
|
} | undefined;
|
516
709
|
data?: any;
|
517
710
|
createdAt?: {
|
@@ -526,13 +719,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
526
719
|
type: "exact";
|
527
720
|
term: string;
|
528
721
|
} | undefined;
|
529
|
-
|
722
|
+
createdAtLocation?: {
|
530
723
|
type: "exact";
|
531
724
|
term: string;
|
532
725
|
} | {
|
533
726
|
type: "within";
|
534
727
|
location: string;
|
535
728
|
} | undefined;
|
729
|
+
assignedTo?: {
|
730
|
+
type: "exact";
|
731
|
+
term: string;
|
732
|
+
} | undefined;
|
536
733
|
updatedAt?: {
|
537
734
|
type: "exact";
|
538
735
|
term: string;
|
@@ -545,12 +742,34 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
545
742
|
type: "exact";
|
546
743
|
term: string;
|
547
744
|
} | undefined;
|
745
|
+
updatedAtLocation?: {
|
746
|
+
type: "exact";
|
747
|
+
term: string;
|
748
|
+
} | {
|
749
|
+
type: "within";
|
750
|
+
location: string;
|
751
|
+
} | undefined;
|
548
752
|
updatedBy?: {
|
549
753
|
type: "exact";
|
550
754
|
term: string;
|
551
755
|
} | undefined;
|
756
|
+
flags?: ({
|
757
|
+
type: "anyOf";
|
758
|
+
terms: string[];
|
759
|
+
} | {
|
760
|
+
type: "not";
|
761
|
+
term: string;
|
762
|
+
})[] | undefined;
|
552
763
|
eventType?: string | undefined;
|
553
|
-
|
764
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
765
|
+
type: "exact";
|
766
|
+
term: string;
|
767
|
+
} | {
|
768
|
+
type: "range";
|
769
|
+
gte: string;
|
770
|
+
lte: string;
|
771
|
+
} | undefined;
|
772
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
554
773
|
type: "exact";
|
555
774
|
term: string;
|
556
775
|
} | {
|
@@ -558,13 +777,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
558
777
|
location: string;
|
559
778
|
} | undefined;
|
560
779
|
}, {
|
561
|
-
type?: "and" | undefined;
|
562
780
|
status?: {
|
563
781
|
type: "exact";
|
564
|
-
term:
|
782
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
565
783
|
} | {
|
566
784
|
type: "anyOf";
|
567
|
-
terms:
|
785
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
568
786
|
} | undefined;
|
569
787
|
data?: any;
|
570
788
|
createdAt?: {
|
@@ -579,13 +797,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
579
797
|
type: "exact";
|
580
798
|
term: string;
|
581
799
|
} | undefined;
|
582
|
-
|
800
|
+
createdAtLocation?: {
|
583
801
|
type: "exact";
|
584
802
|
term: string;
|
585
803
|
} | {
|
586
804
|
type: "within";
|
587
805
|
location: string;
|
588
806
|
} | undefined;
|
807
|
+
assignedTo?: {
|
808
|
+
type: "exact";
|
809
|
+
term: string;
|
810
|
+
} | undefined;
|
589
811
|
updatedAt?: {
|
590
812
|
type: "exact";
|
591
813
|
term: string;
|
@@ -598,33 +820,65 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
598
820
|
type: "exact";
|
599
821
|
term: string;
|
600
822
|
} | undefined;
|
823
|
+
updatedAtLocation?: {
|
824
|
+
type: "exact";
|
825
|
+
term: string;
|
826
|
+
} | {
|
827
|
+
type: "within";
|
828
|
+
location: string;
|
829
|
+
} | undefined;
|
601
830
|
updatedBy?: {
|
602
831
|
type: "exact";
|
603
832
|
term: string;
|
604
833
|
} | undefined;
|
834
|
+
flags?: ({
|
835
|
+
type: "anyOf";
|
836
|
+
terms: string[];
|
837
|
+
} | {
|
838
|
+
type: "not";
|
839
|
+
term: string;
|
840
|
+
})[] | undefined;
|
605
841
|
eventType?: string | undefined;
|
606
|
-
|
842
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
843
|
+
type: "exact";
|
844
|
+
term: string;
|
845
|
+
} | {
|
846
|
+
type: "range";
|
847
|
+
gte: string;
|
848
|
+
lte: string;
|
849
|
+
} | undefined;
|
850
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
607
851
|
type: "exact";
|
608
852
|
term: string;
|
609
853
|
} | {
|
610
854
|
type: "within";
|
611
855
|
location: string;
|
612
856
|
} | undefined;
|
613
|
-
}
|
614
|
-
|
615
|
-
|
616
|
-
|
857
|
+
}>;
|
858
|
+
export declare const QueryType: z.ZodObject<{
|
859
|
+
type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
|
860
|
+
clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
617
861
|
eventType: z.ZodOptional<z.ZodString>;
|
618
862
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
619
863
|
type: z.ZodLiteral<"anyOf">;
|
620
|
-
terms: z.ZodArray<z.
|
864
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
|
621
865
|
}, "strip", z.ZodTypeAny, {
|
622
866
|
type: "anyOf";
|
623
|
-
terms:
|
867
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
624
868
|
}, {
|
625
869
|
type: "anyOf";
|
626
|
-
terms:
|
870
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
627
871
|
}>, z.ZodObject<{
|
872
|
+
type: z.ZodLiteral<"exact">;
|
873
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
874
|
+
}, "strip", z.ZodTypeAny, {
|
875
|
+
type: "exact";
|
876
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
877
|
+
}, {
|
878
|
+
type: "exact";
|
879
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
880
|
+
}>]>>>;
|
881
|
+
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
628
882
|
type: z.ZodLiteral<"exact">;
|
629
883
|
term: z.ZodString;
|
630
884
|
}, "strip", z.ZodTypeAny, {
|
@@ -633,8 +887,20 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
633
887
|
}, {
|
634
888
|
type: "exact";
|
635
889
|
term: string;
|
890
|
+
}>, z.ZodObject<{
|
891
|
+
type: z.ZodLiteral<"range">;
|
892
|
+
gte: z.ZodString;
|
893
|
+
lte: z.ZodString;
|
894
|
+
}, "strip", z.ZodTypeAny, {
|
895
|
+
type: "range";
|
896
|
+
gte: string;
|
897
|
+
lte: string;
|
898
|
+
}, {
|
899
|
+
type: "range";
|
900
|
+
gte: string;
|
901
|
+
lte: string;
|
636
902
|
}>]>>>;
|
637
|
-
|
903
|
+
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
638
904
|
type: z.ZodLiteral<"exact">;
|
639
905
|
term: z.ZodString;
|
640
906
|
}, "strip", z.ZodTypeAny, {
|
@@ -656,7 +922,7 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
656
922
|
gte: string;
|
657
923
|
lte: string;
|
658
924
|
}>]>>>;
|
659
|
-
|
925
|
+
'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
660
926
|
type: z.ZodLiteral<"exact">;
|
661
927
|
term: z.ZodString;
|
662
928
|
}, "strip", z.ZodTypeAny, {
|
@@ -678,7 +944,26 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
678
944
|
gte: string;
|
679
945
|
lte: string;
|
680
946
|
}>]>>>;
|
681
|
-
|
947
|
+
'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
948
|
+
type: z.ZodLiteral<"within">;
|
949
|
+
location: z.ZodString;
|
950
|
+
}, "strip", z.ZodTypeAny, {
|
951
|
+
type: "within";
|
952
|
+
location: string;
|
953
|
+
}, {
|
954
|
+
type: "within";
|
955
|
+
location: string;
|
956
|
+
}>, z.ZodObject<{
|
957
|
+
type: z.ZodLiteral<"exact">;
|
958
|
+
term: z.ZodString;
|
959
|
+
}, "strip", z.ZodTypeAny, {
|
960
|
+
type: "exact";
|
961
|
+
term: string;
|
962
|
+
}, {
|
963
|
+
type: "exact";
|
964
|
+
term: string;
|
965
|
+
}>]>>>;
|
966
|
+
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
682
967
|
type: z.ZodLiteral<"within">;
|
683
968
|
location: z.ZodString;
|
684
969
|
}, "strip", z.ZodTypeAny, {
|
@@ -716,6 +1001,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
716
1001
|
type: "exact";
|
717
1002
|
term: string;
|
718
1003
|
}>]>>>;
|
1004
|
+
assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
1005
|
+
type: z.ZodLiteral<"exact">;
|
1006
|
+
term: z.ZodString;
|
1007
|
+
}, "strip", z.ZodTypeAny, {
|
1008
|
+
type: "exact";
|
1009
|
+
term: string;
|
1010
|
+
}, {
|
1011
|
+
type: "exact";
|
1012
|
+
term: string;
|
1013
|
+
}>>>;
|
719
1014
|
createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
720
1015
|
type: z.ZodLiteral<"exact">;
|
721
1016
|
term: z.ZodString;
|
@@ -746,15 +1041,33 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
746
1041
|
type: "exact";
|
747
1042
|
term: string;
|
748
1043
|
}>>>;
|
1044
|
+
flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
1045
|
+
type: z.ZodLiteral<"anyOf">;
|
1046
|
+
terms: z.ZodArray<z.ZodString, "many">;
|
1047
|
+
}, "strip", z.ZodTypeAny, {
|
1048
|
+
type: "anyOf";
|
1049
|
+
terms: string[];
|
1050
|
+
}, {
|
1051
|
+
type: "anyOf";
|
1052
|
+
terms: string[];
|
1053
|
+
}>, z.ZodObject<{
|
1054
|
+
type: z.ZodLiteral<"not">;
|
1055
|
+
term: z.ZodString;
|
1056
|
+
}, "strip", z.ZodTypeAny, {
|
1057
|
+
type: "not";
|
1058
|
+
term: string;
|
1059
|
+
}, {
|
1060
|
+
type: "not";
|
1061
|
+
term: string;
|
1062
|
+
}>]>, "many">>>;
|
749
1063
|
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
750
1064
|
}, "strip", z.ZodTypeAny, {
|
751
|
-
type?: "and" | undefined;
|
752
1065
|
status?: {
|
753
1066
|
type: "exact";
|
754
|
-
term:
|
1067
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
755
1068
|
} | {
|
756
1069
|
type: "anyOf";
|
757
|
-
terms:
|
1070
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
758
1071
|
} | undefined;
|
759
1072
|
data?: any;
|
760
1073
|
createdAt?: {
|
@@ -769,13 +1082,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
769
1082
|
type: "exact";
|
770
1083
|
term: string;
|
771
1084
|
} | undefined;
|
772
|
-
|
1085
|
+
createdAtLocation?: {
|
773
1086
|
type: "exact";
|
774
1087
|
term: string;
|
775
1088
|
} | {
|
776
1089
|
type: "within";
|
777
1090
|
location: string;
|
778
1091
|
} | undefined;
|
1092
|
+
assignedTo?: {
|
1093
|
+
type: "exact";
|
1094
|
+
term: string;
|
1095
|
+
} | undefined;
|
779
1096
|
updatedAt?: {
|
780
1097
|
type: "exact";
|
781
1098
|
term: string;
|
@@ -788,12 +1105,34 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
788
1105
|
type: "exact";
|
789
1106
|
term: string;
|
790
1107
|
} | undefined;
|
1108
|
+
updatedAtLocation?: {
|
1109
|
+
type: "exact";
|
1110
|
+
term: string;
|
1111
|
+
} | {
|
1112
|
+
type: "within";
|
1113
|
+
location: string;
|
1114
|
+
} | undefined;
|
791
1115
|
updatedBy?: {
|
792
1116
|
type: "exact";
|
793
1117
|
term: string;
|
794
1118
|
} | undefined;
|
1119
|
+
flags?: ({
|
1120
|
+
type: "anyOf";
|
1121
|
+
terms: string[];
|
1122
|
+
} | {
|
1123
|
+
type: "not";
|
1124
|
+
term: string;
|
1125
|
+
})[] | undefined;
|
795
1126
|
eventType?: string | undefined;
|
796
|
-
|
1127
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
1128
|
+
type: "exact";
|
1129
|
+
term: string;
|
1130
|
+
} | {
|
1131
|
+
type: "range";
|
1132
|
+
gte: string;
|
1133
|
+
lte: string;
|
1134
|
+
} | undefined;
|
1135
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
797
1136
|
type: "exact";
|
798
1137
|
term: string;
|
799
1138
|
} | {
|
@@ -801,13 +1140,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
801
1140
|
location: string;
|
802
1141
|
} | undefined;
|
803
1142
|
}, {
|
804
|
-
type?: "and" | undefined;
|
805
1143
|
status?: {
|
806
1144
|
type: "exact";
|
807
|
-
term:
|
1145
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
808
1146
|
} | {
|
809
1147
|
type: "anyOf";
|
810
|
-
terms:
|
1148
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
811
1149
|
} | undefined;
|
812
1150
|
data?: any;
|
813
1151
|
createdAt?: {
|
@@ -822,13 +1160,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
822
1160
|
type: "exact";
|
823
1161
|
term: string;
|
824
1162
|
} | undefined;
|
825
|
-
|
1163
|
+
createdAtLocation?: {
|
826
1164
|
type: "exact";
|
827
1165
|
term: string;
|
828
1166
|
} | {
|
829
1167
|
type: "within";
|
830
1168
|
location: string;
|
831
1169
|
} | undefined;
|
1170
|
+
assignedTo?: {
|
1171
|
+
type: "exact";
|
1172
|
+
term: string;
|
1173
|
+
} | undefined;
|
832
1174
|
updatedAt?: {
|
833
1175
|
type: "exact";
|
834
1176
|
term: string;
|
@@ -841,29 +1183,47 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
841
1183
|
type: "exact";
|
842
1184
|
term: string;
|
843
1185
|
} | undefined;
|
1186
|
+
updatedAtLocation?: {
|
1187
|
+
type: "exact";
|
1188
|
+
term: string;
|
1189
|
+
} | {
|
1190
|
+
type: "within";
|
1191
|
+
location: string;
|
1192
|
+
} | undefined;
|
844
1193
|
updatedBy?: {
|
845
1194
|
type: "exact";
|
846
1195
|
term: string;
|
847
1196
|
} | undefined;
|
1197
|
+
flags?: ({
|
1198
|
+
type: "anyOf";
|
1199
|
+
terms: string[];
|
1200
|
+
} | {
|
1201
|
+
type: "not";
|
1202
|
+
term: string;
|
1203
|
+
})[] | undefined;
|
848
1204
|
eventType?: string | undefined;
|
849
|
-
|
1205
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
1206
|
+
type: "exact";
|
1207
|
+
term: string;
|
1208
|
+
} | {
|
1209
|
+
type: "range";
|
1210
|
+
gte: string;
|
1211
|
+
lte: string;
|
1212
|
+
} | undefined;
|
1213
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
850
1214
|
type: "exact";
|
851
1215
|
term: string;
|
852
1216
|
} | {
|
853
1217
|
type: "within";
|
854
1218
|
location: string;
|
855
1219
|
} | undefined;
|
856
|
-
}>, "many"
|
857
|
-
}, "strip", z.ZodTypeAny, {
|
858
|
-
type: "or";
|
859
|
-
clauses: {
|
860
|
-
type?: "and" | undefined;
|
1220
|
+
}>, "many">, {
|
861
1221
|
status?: {
|
862
1222
|
type: "exact";
|
863
|
-
term:
|
1223
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
864
1224
|
} | {
|
865
1225
|
type: "anyOf";
|
866
|
-
terms:
|
1226
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
867
1227
|
} | undefined;
|
868
1228
|
data?: any;
|
869
1229
|
createdAt?: {
|
@@ -878,13 +1238,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
878
1238
|
type: "exact";
|
879
1239
|
term: string;
|
880
1240
|
} | undefined;
|
881
|
-
|
1241
|
+
createdAtLocation?: {
|
882
1242
|
type: "exact";
|
883
1243
|
term: string;
|
884
1244
|
} | {
|
885
1245
|
type: "within";
|
886
1246
|
location: string;
|
887
1247
|
} | undefined;
|
1248
|
+
assignedTo?: {
|
1249
|
+
type: "exact";
|
1250
|
+
term: string;
|
1251
|
+
} | undefined;
|
888
1252
|
updatedAt?: {
|
889
1253
|
type: "exact";
|
890
1254
|
term: string;
|
@@ -897,29 +1261,50 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
897
1261
|
type: "exact";
|
898
1262
|
term: string;
|
899
1263
|
} | undefined;
|
1264
|
+
updatedAtLocation?: {
|
1265
|
+
type: "exact";
|
1266
|
+
term: string;
|
1267
|
+
} | {
|
1268
|
+
type: "within";
|
1269
|
+
location: string;
|
1270
|
+
} | undefined;
|
900
1271
|
updatedBy?: {
|
901
1272
|
type: "exact";
|
902
1273
|
term: string;
|
903
1274
|
} | undefined;
|
1275
|
+
flags?: ({
|
1276
|
+
type: "anyOf";
|
1277
|
+
terms: string[];
|
1278
|
+
} | {
|
1279
|
+
type: "not";
|
1280
|
+
term: string;
|
1281
|
+
})[] | undefined;
|
904
1282
|
eventType?: string | undefined;
|
905
|
-
|
1283
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
1284
|
+
type: "exact";
|
1285
|
+
term: string;
|
1286
|
+
} | {
|
1287
|
+
type: "range";
|
1288
|
+
gte: string;
|
1289
|
+
lte: string;
|
1290
|
+
} | undefined;
|
1291
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
906
1292
|
type: "exact";
|
907
1293
|
term: string;
|
908
1294
|
} | {
|
909
1295
|
type: "within";
|
910
1296
|
location: string;
|
911
1297
|
} | undefined;
|
912
|
-
}[]
|
913
|
-
}, {
|
914
|
-
type: "or";
|
1298
|
+
}[], unknown>;
|
1299
|
+
}, "strip", z.ZodTypeAny, {
|
1300
|
+
type: "and" | "or";
|
915
1301
|
clauses: {
|
916
|
-
type?: "and" | undefined;
|
917
1302
|
status?: {
|
918
1303
|
type: "exact";
|
919
|
-
term:
|
1304
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
920
1305
|
} | {
|
921
1306
|
type: "anyOf";
|
922
|
-
terms:
|
1307
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
923
1308
|
} | undefined;
|
924
1309
|
data?: any;
|
925
1310
|
createdAt?: {
|
@@ -934,13 +1319,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
934
1319
|
type: "exact";
|
935
1320
|
term: string;
|
936
1321
|
} | undefined;
|
937
|
-
|
1322
|
+
createdAtLocation?: {
|
938
1323
|
type: "exact";
|
939
1324
|
term: string;
|
940
1325
|
} | {
|
941
1326
|
type: "within";
|
942
1327
|
location: string;
|
943
1328
|
} | undefined;
|
1329
|
+
assignedTo?: {
|
1330
|
+
type: "exact";
|
1331
|
+
term: string;
|
1332
|
+
} | undefined;
|
944
1333
|
updatedAt?: {
|
945
1334
|
type: "exact";
|
946
1335
|
term: string;
|
@@ -953,12 +1342,34 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
953
1342
|
type: "exact";
|
954
1343
|
term: string;
|
955
1344
|
} | undefined;
|
1345
|
+
updatedAtLocation?: {
|
1346
|
+
type: "exact";
|
1347
|
+
term: string;
|
1348
|
+
} | {
|
1349
|
+
type: "within";
|
1350
|
+
location: string;
|
1351
|
+
} | undefined;
|
956
1352
|
updatedBy?: {
|
957
1353
|
type: "exact";
|
958
1354
|
term: string;
|
959
1355
|
} | undefined;
|
1356
|
+
flags?: ({
|
1357
|
+
type: "anyOf";
|
1358
|
+
terms: string[];
|
1359
|
+
} | {
|
1360
|
+
type: "not";
|
1361
|
+
term: string;
|
1362
|
+
})[] | undefined;
|
960
1363
|
eventType?: string | undefined;
|
961
|
-
|
1364
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
1365
|
+
type: "exact";
|
1366
|
+
term: string;
|
1367
|
+
} | {
|
1368
|
+
type: "range";
|
1369
|
+
gte: string;
|
1370
|
+
lte: string;
|
1371
|
+
} | undefined;
|
1372
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
962
1373
|
type: "exact";
|
963
1374
|
term: string;
|
964
1375
|
} | {
|
@@ -966,7 +1377,11 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
966
1377
|
location: string;
|
967
1378
|
} | undefined;
|
968
1379
|
}[];
|
969
|
-
}
|
1380
|
+
}, {
|
1381
|
+
type: "and" | "or";
|
1382
|
+
clauses?: unknown;
|
1383
|
+
}>;
|
970
1384
|
export type QueryType = z.infer<typeof QueryType>;
|
1385
|
+
export type QueryExpression = z.infer<typeof QueryExpression>;
|
971
1386
|
export {};
|
972
1387
|
//# sourceMappingURL=EventIndex.d.ts.map
|