@opencrvs/toolkit 1.8.0-rc.fc4c805 → 1.8.0-rc.fc76588
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 +10346 -4518
- package/dist/commons/conditionals/conditionals.d.ts +8 -3
- package/dist/commons/conditionals/validate.d.ts +6 -0
- package/dist/commons/events/ActionConfig.d.ts +56387 -29043
- package/dist/commons/events/ActionDocument.d.ts +2110 -519
- package/dist/commons/events/ActionInput.d.ts +1577 -305
- package/dist/commons/events/ActionType.d.ts +4 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +675 -12
- package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
- package/dist/commons/events/Constants.d.ts +3 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
- package/dist/commons/events/Draft.d.ts +137 -36
- package/dist/commons/events/EventConfig.d.ts +27593 -14046
- package/dist/commons/events/EventDocument.d.ts +1374 -391
- package/dist/commons/events/EventIndex.d.ts +589 -357
- package/dist/commons/events/EventInput.d.ts +0 -13
- package/dist/commons/events/EventMetadata.d.ts +74 -80
- package/dist/commons/events/FieldConfig.d.ts +2500 -1111
- package/dist/commons/events/FieldType.d.ts +4 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +94 -52
- package/dist/commons/events/FieldValue.d.ts +43 -5
- package/dist/commons/events/FormConfig.d.ts +18485 -9821
- package/dist/commons/events/PageConfig.d.ts +3600 -1472
- package/dist/commons/events/SummaryConfig.d.ts +0 -5
- 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 +4205 -538
- package/dist/commons/events/defineConfig.d.ts +2639 -635
- package/dist/commons/events/event.d.ts +37 -10
- package/dist/commons/events/field.d.ts +26 -17
- package/dist/commons/events/index.d.ts +4 -0
- package/dist/commons/events/scopes.d.ts +20 -1
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +149 -42
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +10115 -313
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +45 -8
- package/dist/events/index.js +2682 -1019
- package/dist/scopes/index.d.ts +158 -1
- package/dist/scopes/index.js +152 -1
- package/package.json +1 -1
|
@@ -1,99 +1,101 @@
|
|
|
1
1
|
import { z, ZodType } from 'zod';
|
|
2
2
|
export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
-
id: z.ZodString
|
|
3
|
+
id: z.ZodBranded<z.ZodString, "UUID">;
|
|
4
4
|
type: z.ZodString;
|
|
5
|
-
status: z.
|
|
6
|
-
readonly CREATED: "CREATED";
|
|
7
|
-
readonly NOTIFIED: "NOTIFIED";
|
|
8
|
-
readonly DECLARED: "DECLARED";
|
|
9
|
-
readonly VALIDATED: "VALIDATED";
|
|
10
|
-
readonly REGISTERED: "REGISTERED";
|
|
11
|
-
readonly CERTIFIED: "CERTIFIED";
|
|
12
|
-
readonly REJECTED: "REJECTED";
|
|
13
|
-
readonly ARCHIVED: "ARCHIVED";
|
|
14
|
-
}>;
|
|
5
|
+
status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
|
15
6
|
legalStatuses: z.ZodObject<{
|
|
16
7
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
8
|
createdAt: z.ZodString;
|
|
18
9
|
createdBy: z.ZodString;
|
|
19
|
-
createdAtLocation: z.ZodString
|
|
10
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
|
20
11
|
acceptedAt: z.ZodString;
|
|
21
12
|
createdByRole: z.ZodString;
|
|
13
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
14
|
}, "strip", z.ZodTypeAny, {
|
|
23
15
|
createdAt: string;
|
|
24
16
|
createdBy: string;
|
|
25
17
|
createdByRole: string;
|
|
26
|
-
createdAtLocation: string;
|
|
27
18
|
acceptedAt: string;
|
|
19
|
+
createdBySignature?: string | null | undefined;
|
|
20
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
|
28
21
|
}, {
|
|
29
22
|
createdAt: string;
|
|
30
23
|
createdBy: string;
|
|
31
24
|
createdByRole: string;
|
|
32
|
-
createdAtLocation: string;
|
|
33
25
|
acceptedAt: string;
|
|
26
|
+
createdBySignature?: string | null | undefined;
|
|
27
|
+
createdAtLocation?: string | null | undefined;
|
|
34
28
|
}>>>;
|
|
35
29
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
|
36
30
|
createdAt: z.ZodString;
|
|
37
31
|
createdBy: z.ZodString;
|
|
38
|
-
createdAtLocation: z.ZodString
|
|
32
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
|
39
33
|
acceptedAt: z.ZodString;
|
|
40
34
|
createdByRole: z.ZodString;
|
|
35
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
36
|
}, {
|
|
42
37
|
registrationNumber: z.ZodString;
|
|
43
38
|
}>, "strip", z.ZodTypeAny, {
|
|
44
39
|
createdAt: string;
|
|
45
40
|
createdBy: string;
|
|
46
41
|
createdByRole: string;
|
|
47
|
-
createdAtLocation: string;
|
|
48
42
|
registrationNumber: string;
|
|
49
43
|
acceptedAt: string;
|
|
44
|
+
createdBySignature?: string | null | undefined;
|
|
45
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
|
50
46
|
}, {
|
|
51
47
|
createdAt: string;
|
|
52
48
|
createdBy: string;
|
|
53
49
|
createdByRole: string;
|
|
54
|
-
createdAtLocation: string;
|
|
55
50
|
registrationNumber: string;
|
|
56
51
|
acceptedAt: string;
|
|
52
|
+
createdBySignature?: string | null | undefined;
|
|
53
|
+
createdAtLocation?: string | null | undefined;
|
|
57
54
|
}>>>;
|
|
58
55
|
}, "strip", z.ZodTypeAny, {
|
|
59
56
|
DECLARED?: {
|
|
60
57
|
createdAt: string;
|
|
61
58
|
createdBy: string;
|
|
62
59
|
createdByRole: string;
|
|
63
|
-
createdAtLocation: string;
|
|
64
60
|
acceptedAt: string;
|
|
61
|
+
createdBySignature?: string | null | undefined;
|
|
62
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
|
65
63
|
} | null | undefined;
|
|
66
64
|
REGISTERED?: {
|
|
67
65
|
createdAt: string;
|
|
68
66
|
createdBy: string;
|
|
69
67
|
createdByRole: string;
|
|
70
|
-
createdAtLocation: string;
|
|
71
68
|
registrationNumber: string;
|
|
72
69
|
acceptedAt: string;
|
|
70
|
+
createdBySignature?: string | null | undefined;
|
|
71
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
|
73
72
|
} | null | undefined;
|
|
74
73
|
}, {
|
|
75
74
|
DECLARED?: {
|
|
76
75
|
createdAt: string;
|
|
77
76
|
createdBy: string;
|
|
78
77
|
createdByRole: string;
|
|
79
|
-
createdAtLocation: string;
|
|
80
78
|
acceptedAt: string;
|
|
79
|
+
createdBySignature?: string | null | undefined;
|
|
80
|
+
createdAtLocation?: string | null | undefined;
|
|
81
81
|
} | null | undefined;
|
|
82
82
|
REGISTERED?: {
|
|
83
83
|
createdAt: string;
|
|
84
84
|
createdBy: string;
|
|
85
85
|
createdByRole: string;
|
|
86
|
-
createdAtLocation: string;
|
|
87
86
|
registrationNumber: string;
|
|
88
87
|
acceptedAt: string;
|
|
88
|
+
createdBySignature?: string | null | undefined;
|
|
89
|
+
createdAtLocation?: string | null | undefined;
|
|
89
90
|
} | null | undefined;
|
|
90
91
|
}>;
|
|
91
92
|
createdAt: z.ZodString;
|
|
92
93
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
94
|
createdBy: z.ZodString;
|
|
94
95
|
updatedByUserRole: z.ZodString;
|
|
95
|
-
createdAtLocation: z.ZodString
|
|
96
|
-
|
|
96
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
|
97
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
|
97
99
|
updatedAt: z.ZodString;
|
|
98
100
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
101
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -215,10 +217,34 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
215
217
|
addressLine2?: string | undefined;
|
|
216
218
|
addressLine3?: string | undefined;
|
|
217
219
|
postcodeOrZip?: string | undefined;
|
|
218
|
-
}
|
|
220
|
+
}>, z.ZodObject<{
|
|
221
|
+
firstname: z.ZodString;
|
|
222
|
+
surname: z.ZodString;
|
|
223
|
+
middlename: z.ZodOptional<z.ZodString>;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
firstname: string;
|
|
226
|
+
surname: string;
|
|
227
|
+
middlename?: string | undefined;
|
|
228
|
+
}, {
|
|
229
|
+
firstname: string;
|
|
230
|
+
surname: string;
|
|
231
|
+
middlename?: string | undefined;
|
|
232
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
233
|
+
firstname: z.ZodString;
|
|
234
|
+
surname: z.ZodString;
|
|
235
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
firstname: string;
|
|
238
|
+
surname: string;
|
|
239
|
+
middlename?: string | null | undefined;
|
|
240
|
+
}, {
|
|
241
|
+
firstname: string;
|
|
242
|
+
surname: string;
|
|
243
|
+
middlename?: string | null | undefined;
|
|
244
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>;
|
|
219
245
|
}>, "strip", z.ZodTypeAny, {
|
|
220
246
|
type: string;
|
|
221
|
-
id: string
|
|
247
|
+
id: string & z.BRAND<"UUID">;
|
|
222
248
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
223
249
|
createdAt: string;
|
|
224
250
|
createdBy: string;
|
|
@@ -244,6 +270,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
244
270
|
province: string;
|
|
245
271
|
urbanOrRural: "RURAL";
|
|
246
272
|
village?: string | undefined;
|
|
273
|
+
} | {
|
|
274
|
+
firstname: string;
|
|
275
|
+
surname: string;
|
|
276
|
+
middlename?: string | undefined;
|
|
277
|
+
} | {
|
|
278
|
+
firstname: string;
|
|
279
|
+
surname: string;
|
|
280
|
+
middlename?: string | null | undefined;
|
|
247
281
|
} | {
|
|
248
282
|
country: string;
|
|
249
283
|
state: string;
|
|
@@ -259,8 +293,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
259
293
|
option: string;
|
|
260
294
|
filename: string;
|
|
261
295
|
originalFilename: string;
|
|
262
|
-
}[] | [string, string] | undefined>;
|
|
263
|
-
createdAtLocation: string;
|
|
296
|
+
}[] | [string, string] | null | undefined>;
|
|
264
297
|
updatedAt: string;
|
|
265
298
|
trackingId: string;
|
|
266
299
|
legalStatuses: {
|
|
@@ -268,23 +301,27 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
268
301
|
createdAt: string;
|
|
269
302
|
createdBy: string;
|
|
270
303
|
createdByRole: string;
|
|
271
|
-
createdAtLocation: string;
|
|
272
304
|
acceptedAt: string;
|
|
305
|
+
createdBySignature?: string | null | undefined;
|
|
306
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
|
273
307
|
} | null | undefined;
|
|
274
308
|
REGISTERED?: {
|
|
275
309
|
createdAt: string;
|
|
276
310
|
createdBy: string;
|
|
277
311
|
createdByRole: string;
|
|
278
|
-
createdAtLocation: string;
|
|
279
312
|
registrationNumber: string;
|
|
280
313
|
acceptedAt: string;
|
|
314
|
+
createdBySignature?: string | null | undefined;
|
|
315
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
|
281
316
|
} | null | undefined;
|
|
282
317
|
};
|
|
283
318
|
updatedByUserRole: string;
|
|
284
319
|
flags: string[];
|
|
320
|
+
createdBySignature?: string | null | undefined;
|
|
321
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
|
285
322
|
assignedTo?: string | null | undefined;
|
|
286
323
|
dateOfEvent?: string | null | undefined;
|
|
287
|
-
updatedAtLocation?: string | null | undefined;
|
|
324
|
+
updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
|
288
325
|
updatedBy?: string | null | undefined;
|
|
289
326
|
}, {
|
|
290
327
|
type: string;
|
|
@@ -314,6 +351,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
314
351
|
province: string;
|
|
315
352
|
urbanOrRural: "RURAL";
|
|
316
353
|
village?: string | undefined;
|
|
354
|
+
} | {
|
|
355
|
+
firstname: string;
|
|
356
|
+
surname: string;
|
|
357
|
+
middlename?: string | undefined;
|
|
358
|
+
} | {
|
|
359
|
+
firstname: string;
|
|
360
|
+
surname: string;
|
|
361
|
+
middlename?: string | null | undefined;
|
|
317
362
|
} | {
|
|
318
363
|
country: string;
|
|
319
364
|
state: string;
|
|
@@ -329,8 +374,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
329
374
|
option: string;
|
|
330
375
|
filename: string;
|
|
331
376
|
originalFilename: string;
|
|
332
|
-
}[] | [string, string] | undefined>;
|
|
333
|
-
createdAtLocation: string;
|
|
377
|
+
}[] | [string, string] | null | undefined>;
|
|
334
378
|
updatedAt: string;
|
|
335
379
|
trackingId: string;
|
|
336
380
|
legalStatuses: {
|
|
@@ -338,20 +382,24 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
338
382
|
createdAt: string;
|
|
339
383
|
createdBy: string;
|
|
340
384
|
createdByRole: string;
|
|
341
|
-
createdAtLocation: string;
|
|
342
385
|
acceptedAt: string;
|
|
386
|
+
createdBySignature?: string | null | undefined;
|
|
387
|
+
createdAtLocation?: string | null | undefined;
|
|
343
388
|
} | null | undefined;
|
|
344
389
|
REGISTERED?: {
|
|
345
390
|
createdAt: string;
|
|
346
391
|
createdBy: string;
|
|
347
392
|
createdByRole: string;
|
|
348
|
-
createdAtLocation: string;
|
|
349
393
|
registrationNumber: string;
|
|
350
394
|
acceptedAt: string;
|
|
395
|
+
createdBySignature?: string | null | undefined;
|
|
396
|
+
createdAtLocation?: string | null | undefined;
|
|
351
397
|
} | null | undefined;
|
|
352
398
|
};
|
|
353
399
|
updatedByUserRole: string;
|
|
354
400
|
flags: string[];
|
|
401
|
+
createdBySignature?: string | null | undefined;
|
|
402
|
+
createdAtLocation?: string | null | undefined;
|
|
355
403
|
assignedTo?: string | null | undefined;
|
|
356
404
|
dateOfEvent?: string | null | undefined;
|
|
357
405
|
updatedAtLocation?: string | null | undefined;
|
|
@@ -366,7 +414,7 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
|
|
|
366
414
|
}>>;
|
|
367
415
|
export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
|
|
368
416
|
export type EventIndex = z.infer<typeof EventIndex>;
|
|
369
|
-
declare const Fuzzy: z.ZodObject<{
|
|
417
|
+
export declare const Fuzzy: z.ZodObject<{
|
|
370
418
|
type: z.ZodLiteral<"fuzzy">;
|
|
371
419
|
term: z.ZodString;
|
|
372
420
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -376,7 +424,7 @@ declare const Fuzzy: z.ZodObject<{
|
|
|
376
424
|
type: "fuzzy";
|
|
377
425
|
term: string;
|
|
378
426
|
}>;
|
|
379
|
-
declare const Exact: z.ZodObject<{
|
|
427
|
+
export declare const Exact: z.ZodObject<{
|
|
380
428
|
type: z.ZodLiteral<"exact">;
|
|
381
429
|
term: z.ZodString;
|
|
382
430
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -386,7 +434,7 @@ declare const Exact: z.ZodObject<{
|
|
|
386
434
|
type: "exact";
|
|
387
435
|
term: string;
|
|
388
436
|
}>;
|
|
389
|
-
declare const AnyOf: z.ZodObject<{
|
|
437
|
+
export declare const AnyOf: z.ZodObject<{
|
|
390
438
|
type: z.ZodLiteral<"anyOf">;
|
|
391
439
|
terms: z.ZodArray<z.ZodString, "many">;
|
|
392
440
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -396,7 +444,27 @@ declare const AnyOf: z.ZodObject<{
|
|
|
396
444
|
type: "anyOf";
|
|
397
445
|
terms: string[];
|
|
398
446
|
}>;
|
|
399
|
-
declare const
|
|
447
|
+
export declare const ExactStatus: z.ZodObject<{
|
|
448
|
+
type: z.ZodLiteral<"exact">;
|
|
449
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
|
450
|
+
}, "strip", z.ZodTypeAny, {
|
|
451
|
+
type: "exact";
|
|
452
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
453
|
+
}, {
|
|
454
|
+
type: "exact";
|
|
455
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
456
|
+
}>;
|
|
457
|
+
export declare const AnyOfStatus: z.ZodObject<{
|
|
458
|
+
type: z.ZodLiteral<"anyOf">;
|
|
459
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
|
|
460
|
+
}, "strip", z.ZodTypeAny, {
|
|
461
|
+
type: "anyOf";
|
|
462
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
463
|
+
}, {
|
|
464
|
+
type: "anyOf";
|
|
465
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
466
|
+
}>;
|
|
467
|
+
export declare const Range: z.ZodObject<{
|
|
400
468
|
type: z.ZodLiteral<"range">;
|
|
401
469
|
gte: z.ZodString;
|
|
402
470
|
lte: z.ZodString;
|
|
@@ -409,7 +477,7 @@ declare const Range: z.ZodObject<{
|
|
|
409
477
|
gte: string;
|
|
410
478
|
lte: string;
|
|
411
479
|
}>;
|
|
412
|
-
declare const Not: z.ZodObject<{
|
|
480
|
+
export declare const Not: z.ZodObject<{
|
|
413
481
|
type: z.ZodLiteral<"not">;
|
|
414
482
|
term: z.ZodString;
|
|
415
483
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -419,7 +487,7 @@ declare const Not: z.ZodObject<{
|
|
|
419
487
|
type: "not";
|
|
420
488
|
term: string;
|
|
421
489
|
}>;
|
|
422
|
-
declare const Within: z.ZodObject<{
|
|
490
|
+
export declare const Within: z.ZodObject<{
|
|
423
491
|
type: z.ZodLiteral<"within">;
|
|
424
492
|
location: z.ZodString;
|
|
425
493
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -429,25 +497,56 @@ declare const Within: z.ZodObject<{
|
|
|
429
497
|
type: "within";
|
|
430
498
|
location: string;
|
|
431
499
|
}>;
|
|
500
|
+
export declare const DateCondition: z.ZodUnion<[z.ZodObject<{
|
|
501
|
+
type: z.ZodLiteral<"exact">;
|
|
502
|
+
term: z.ZodString;
|
|
503
|
+
}, "strip", z.ZodTypeAny, {
|
|
504
|
+
type: "exact";
|
|
505
|
+
term: string;
|
|
506
|
+
}, {
|
|
507
|
+
type: "exact";
|
|
508
|
+
term: string;
|
|
509
|
+
}>, z.ZodObject<{
|
|
510
|
+
type: z.ZodLiteral<"range">;
|
|
511
|
+
gte: z.ZodString;
|
|
512
|
+
lte: z.ZodString;
|
|
513
|
+
}, "strip", z.ZodTypeAny, {
|
|
514
|
+
type: "range";
|
|
515
|
+
gte: string;
|
|
516
|
+
lte: string;
|
|
517
|
+
}, {
|
|
518
|
+
type: "range";
|
|
519
|
+
gte: string;
|
|
520
|
+
lte: string;
|
|
521
|
+
}>]>;
|
|
432
522
|
export declare const QueryInput: ZodType;
|
|
433
523
|
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>;
|
|
434
524
|
type QueryMap = {
|
|
435
525
|
[key: string]: BaseInput | QueryMap;
|
|
436
526
|
};
|
|
437
527
|
export type QueryInputType = BaseInput | QueryMap;
|
|
438
|
-
declare const QueryExpression: z.ZodObject<{
|
|
439
|
-
type: z.ZodOptional<z.ZodLiteral<"and">>;
|
|
528
|
+
export declare const QueryExpression: z.ZodObject<{
|
|
440
529
|
eventType: z.ZodOptional<z.ZodString>;
|
|
441
530
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
442
531
|
type: z.ZodLiteral<"anyOf">;
|
|
443
|
-
terms: z.ZodArray<z.
|
|
532
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
|
|
444
533
|
}, "strip", z.ZodTypeAny, {
|
|
445
534
|
type: "anyOf";
|
|
446
|
-
terms:
|
|
535
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
447
536
|
}, {
|
|
448
537
|
type: "anyOf";
|
|
449
|
-
terms:
|
|
538
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
450
539
|
}>, z.ZodObject<{
|
|
540
|
+
type: z.ZodLiteral<"exact">;
|
|
541
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
|
542
|
+
}, "strip", z.ZodTypeAny, {
|
|
543
|
+
type: "exact";
|
|
544
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
545
|
+
}, {
|
|
546
|
+
type: "exact";
|
|
547
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
548
|
+
}>]>>>;
|
|
549
|
+
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
451
550
|
type: z.ZodLiteral<"exact">;
|
|
452
551
|
term: z.ZodString;
|
|
453
552
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -456,8 +555,20 @@ declare const QueryExpression: z.ZodObject<{
|
|
|
456
555
|
}, {
|
|
457
556
|
type: "exact";
|
|
458
557
|
term: string;
|
|
558
|
+
}>, z.ZodObject<{
|
|
559
|
+
type: z.ZodLiteral<"range">;
|
|
560
|
+
gte: z.ZodString;
|
|
561
|
+
lte: z.ZodString;
|
|
562
|
+
}, "strip", z.ZodTypeAny, {
|
|
563
|
+
type: "range";
|
|
564
|
+
gte: string;
|
|
565
|
+
lte: string;
|
|
566
|
+
}, {
|
|
567
|
+
type: "range";
|
|
568
|
+
gte: string;
|
|
569
|
+
lte: string;
|
|
459
570
|
}>]>>>;
|
|
460
|
-
|
|
571
|
+
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
461
572
|
type: z.ZodLiteral<"exact">;
|
|
462
573
|
term: z.ZodString;
|
|
463
574
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -479,7 +590,7 @@ declare const QueryExpression: z.ZodObject<{
|
|
|
479
590
|
gte: string;
|
|
480
591
|
lte: string;
|
|
481
592
|
}>]>>>;
|
|
482
|
-
|
|
593
|
+
'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
483
594
|
type: z.ZodLiteral<"exact">;
|
|
484
595
|
term: z.ZodString;
|
|
485
596
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -501,7 +612,36 @@ declare const QueryExpression: z.ZodObject<{
|
|
|
501
612
|
gte: string;
|
|
502
613
|
lte: string;
|
|
503
614
|
}>]>>>;
|
|
504
|
-
|
|
615
|
+
'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
616
|
+
type: z.ZodLiteral<"within">;
|
|
617
|
+
location: z.ZodString;
|
|
618
|
+
}, "strip", z.ZodTypeAny, {
|
|
619
|
+
type: "within";
|
|
620
|
+
location: string;
|
|
621
|
+
}, {
|
|
622
|
+
type: "within";
|
|
623
|
+
location: string;
|
|
624
|
+
}>, z.ZodObject<{
|
|
625
|
+
type: z.ZodLiteral<"exact">;
|
|
626
|
+
term: z.ZodString;
|
|
627
|
+
}, "strip", z.ZodTypeAny, {
|
|
628
|
+
type: "exact";
|
|
629
|
+
term: string;
|
|
630
|
+
}, {
|
|
631
|
+
type: "exact";
|
|
632
|
+
term: string;
|
|
633
|
+
}>]>>>;
|
|
634
|
+
'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
635
|
+
type: z.ZodLiteral<"exact">;
|
|
636
|
+
term: z.ZodString;
|
|
637
|
+
}, "strip", z.ZodTypeAny, {
|
|
638
|
+
type: "exact";
|
|
639
|
+
term: string;
|
|
640
|
+
}, {
|
|
641
|
+
type: "exact";
|
|
642
|
+
term: string;
|
|
643
|
+
}>>>;
|
|
644
|
+
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
505
645
|
type: z.ZodLiteral<"within">;
|
|
506
646
|
location: z.ZodString;
|
|
507
647
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -539,6 +679,16 @@ declare const QueryExpression: z.ZodObject<{
|
|
|
539
679
|
type: "exact";
|
|
540
680
|
term: string;
|
|
541
681
|
}>]>>>;
|
|
682
|
+
assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
683
|
+
type: z.ZodLiteral<"exact">;
|
|
684
|
+
term: z.ZodString;
|
|
685
|
+
}, "strip", z.ZodTypeAny, {
|
|
686
|
+
type: "exact";
|
|
687
|
+
term: string;
|
|
688
|
+
}, {
|
|
689
|
+
type: "exact";
|
|
690
|
+
term: string;
|
|
691
|
+
}>>>;
|
|
542
692
|
createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
543
693
|
type: z.ZodLiteral<"exact">;
|
|
544
694
|
term: z.ZodString;
|
|
@@ -590,13 +740,12 @@ declare const QueryExpression: z.ZodObject<{
|
|
|
590
740
|
}>]>, "many">>>;
|
|
591
741
|
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
592
742
|
}, "strip", z.ZodTypeAny, {
|
|
593
|
-
type?: "and" | undefined;
|
|
594
743
|
status?: {
|
|
595
744
|
type: "exact";
|
|
596
|
-
term:
|
|
745
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
597
746
|
} | {
|
|
598
747
|
type: "anyOf";
|
|
599
|
-
terms:
|
|
748
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
600
749
|
} | undefined;
|
|
601
750
|
data?: any;
|
|
602
751
|
createdAt?: {
|
|
@@ -611,6 +760,17 @@ declare const QueryExpression: z.ZodObject<{
|
|
|
611
760
|
type: "exact";
|
|
612
761
|
term: string;
|
|
613
762
|
} | undefined;
|
|
763
|
+
createdAtLocation?: {
|
|
764
|
+
type: "exact";
|
|
765
|
+
term: string;
|
|
766
|
+
} | {
|
|
767
|
+
type: "within";
|
|
768
|
+
location: string;
|
|
769
|
+
} | undefined;
|
|
770
|
+
assignedTo?: {
|
|
771
|
+
type: "exact";
|
|
772
|
+
term: string;
|
|
773
|
+
} | undefined;
|
|
614
774
|
updatedAt?: {
|
|
615
775
|
type: "exact";
|
|
616
776
|
term: string;
|
|
@@ -642,21 +802,32 @@ declare const QueryExpression: z.ZodObject<{
|
|
|
642
802
|
term: string;
|
|
643
803
|
})[] | undefined;
|
|
644
804
|
eventType?: string | undefined;
|
|
645
|
-
|
|
805
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
|
806
|
+
type: "exact";
|
|
807
|
+
term: string;
|
|
808
|
+
} | {
|
|
809
|
+
type: "range";
|
|
810
|
+
gte: string;
|
|
811
|
+
lte: string;
|
|
812
|
+
} | undefined;
|
|
813
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
|
646
814
|
type: "exact";
|
|
647
815
|
term: string;
|
|
648
816
|
} | {
|
|
649
817
|
type: "within";
|
|
650
818
|
location: string;
|
|
651
819
|
} | undefined;
|
|
820
|
+
'legalStatus.REGISTERED.registrationNumber'?: {
|
|
821
|
+
type: "exact";
|
|
822
|
+
term: string;
|
|
823
|
+
} | undefined;
|
|
652
824
|
}, {
|
|
653
|
-
type?: "and" | undefined;
|
|
654
825
|
status?: {
|
|
655
826
|
type: "exact";
|
|
656
|
-
term:
|
|
827
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
657
828
|
} | {
|
|
658
829
|
type: "anyOf";
|
|
659
|
-
terms:
|
|
830
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
660
831
|
} | undefined;
|
|
661
832
|
data?: any;
|
|
662
833
|
createdAt?: {
|
|
@@ -671,6 +842,17 @@ declare const QueryExpression: z.ZodObject<{
|
|
|
671
842
|
type: "exact";
|
|
672
843
|
term: string;
|
|
673
844
|
} | undefined;
|
|
845
|
+
createdAtLocation?: {
|
|
846
|
+
type: "exact";
|
|
847
|
+
term: string;
|
|
848
|
+
} | {
|
|
849
|
+
type: "within";
|
|
850
|
+
location: string;
|
|
851
|
+
} | undefined;
|
|
852
|
+
assignedTo?: {
|
|
853
|
+
type: "exact";
|
|
854
|
+
term: string;
|
|
855
|
+
} | undefined;
|
|
674
856
|
updatedAt?: {
|
|
675
857
|
type: "exact";
|
|
676
858
|
term: string;
|
|
@@ -702,304 +884,50 @@ declare const QueryExpression: z.ZodObject<{
|
|
|
702
884
|
term: string;
|
|
703
885
|
})[] | undefined;
|
|
704
886
|
eventType?: string | undefined;
|
|
705
|
-
|
|
887
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
|
706
888
|
type: "exact";
|
|
707
889
|
term: string;
|
|
708
890
|
} | {
|
|
709
|
-
type: "within";
|
|
710
|
-
location: string;
|
|
711
|
-
} | undefined;
|
|
712
|
-
}>;
|
|
713
|
-
export type QueryExpression = z.infer<typeof QueryExpression>;
|
|
714
|
-
export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
715
|
-
type: z.ZodOptional<z.ZodLiteral<"and">>;
|
|
716
|
-
eventType: z.ZodOptional<z.ZodString>;
|
|
717
|
-
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
718
|
-
type: z.ZodLiteral<"anyOf">;
|
|
719
|
-
terms: z.ZodArray<z.ZodString, "many">;
|
|
720
|
-
}, "strip", z.ZodTypeAny, {
|
|
721
|
-
type: "anyOf";
|
|
722
|
-
terms: string[];
|
|
723
|
-
}, {
|
|
724
|
-
type: "anyOf";
|
|
725
|
-
terms: string[];
|
|
726
|
-
}>, z.ZodObject<{
|
|
727
|
-
type: z.ZodLiteral<"exact">;
|
|
728
|
-
term: z.ZodString;
|
|
729
|
-
}, "strip", z.ZodTypeAny, {
|
|
730
|
-
type: "exact";
|
|
731
|
-
term: string;
|
|
732
|
-
}, {
|
|
733
|
-
type: "exact";
|
|
734
|
-
term: string;
|
|
735
|
-
}>]>>>;
|
|
736
|
-
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
737
|
-
type: z.ZodLiteral<"exact">;
|
|
738
|
-
term: z.ZodString;
|
|
739
|
-
}, "strip", z.ZodTypeAny, {
|
|
740
|
-
type: "exact";
|
|
741
|
-
term: string;
|
|
742
|
-
}, {
|
|
743
|
-
type: "exact";
|
|
744
|
-
term: string;
|
|
745
|
-
}>, z.ZodObject<{
|
|
746
|
-
type: z.ZodLiteral<"range">;
|
|
747
|
-
gte: z.ZodString;
|
|
748
|
-
lte: z.ZodString;
|
|
749
|
-
}, "strip", z.ZodTypeAny, {
|
|
750
|
-
type: "range";
|
|
751
|
-
gte: string;
|
|
752
|
-
lte: string;
|
|
753
|
-
}, {
|
|
754
|
-
type: "range";
|
|
755
|
-
gte: string;
|
|
756
|
-
lte: string;
|
|
757
|
-
}>]>>>;
|
|
758
|
-
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
759
|
-
type: z.ZodLiteral<"exact">;
|
|
760
|
-
term: z.ZodString;
|
|
761
|
-
}, "strip", z.ZodTypeAny, {
|
|
762
|
-
type: "exact";
|
|
763
|
-
term: string;
|
|
764
|
-
}, {
|
|
765
|
-
type: "exact";
|
|
766
|
-
term: string;
|
|
767
|
-
}>, z.ZodObject<{
|
|
768
|
-
type: z.ZodLiteral<"range">;
|
|
769
|
-
gte: z.ZodString;
|
|
770
|
-
lte: z.ZodString;
|
|
771
|
-
}, "strip", z.ZodTypeAny, {
|
|
772
|
-
type: "range";
|
|
773
|
-
gte: string;
|
|
774
|
-
lte: string;
|
|
775
|
-
}, {
|
|
776
891
|
type: "range";
|
|
777
892
|
gte: string;
|
|
778
893
|
lte: string;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
type: z.ZodLiteral<"within">;
|
|
782
|
-
location: z.ZodString;
|
|
783
|
-
}, "strip", z.ZodTypeAny, {
|
|
784
|
-
type: "within";
|
|
785
|
-
location: string;
|
|
786
|
-
}, {
|
|
787
|
-
type: "within";
|
|
788
|
-
location: string;
|
|
789
|
-
}>, z.ZodObject<{
|
|
790
|
-
type: z.ZodLiteral<"exact">;
|
|
791
|
-
term: z.ZodString;
|
|
792
|
-
}, "strip", z.ZodTypeAny, {
|
|
793
|
-
type: "exact";
|
|
794
|
-
term: string;
|
|
795
|
-
}, {
|
|
894
|
+
} | undefined;
|
|
895
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
|
796
896
|
type: "exact";
|
|
797
897
|
term: string;
|
|
798
|
-
}
|
|
799
|
-
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
800
|
-
type: z.ZodLiteral<"within">;
|
|
801
|
-
location: z.ZodString;
|
|
802
|
-
}, "strip", z.ZodTypeAny, {
|
|
803
|
-
type: "within";
|
|
804
|
-
location: string;
|
|
805
|
-
}, {
|
|
898
|
+
} | {
|
|
806
899
|
type: "within";
|
|
807
900
|
location: string;
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
term: z.ZodString;
|
|
811
|
-
}, "strip", z.ZodTypeAny, {
|
|
812
|
-
type: "exact";
|
|
813
|
-
term: string;
|
|
814
|
-
}, {
|
|
815
|
-
type: "exact";
|
|
816
|
-
term: string;
|
|
817
|
-
}>]>>>;
|
|
818
|
-
createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
819
|
-
type: z.ZodLiteral<"exact">;
|
|
820
|
-
term: z.ZodString;
|
|
821
|
-
}, "strip", z.ZodTypeAny, {
|
|
822
|
-
type: "exact";
|
|
823
|
-
term: string;
|
|
824
|
-
}, {
|
|
825
|
-
type: "exact";
|
|
826
|
-
term: string;
|
|
827
|
-
}>>>;
|
|
828
|
-
updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
829
|
-
type: z.ZodLiteral<"exact">;
|
|
830
|
-
term: z.ZodString;
|
|
831
|
-
}, "strip", z.ZodTypeAny, {
|
|
832
|
-
type: "exact";
|
|
833
|
-
term: string;
|
|
834
|
-
}, {
|
|
835
|
-
type: "exact";
|
|
836
|
-
term: string;
|
|
837
|
-
}>>>;
|
|
838
|
-
trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
839
|
-
type: z.ZodLiteral<"exact">;
|
|
840
|
-
term: z.ZodString;
|
|
841
|
-
}, "strip", z.ZodTypeAny, {
|
|
842
|
-
type: "exact";
|
|
843
|
-
term: string;
|
|
844
|
-
}, {
|
|
845
|
-
type: "exact";
|
|
846
|
-
term: string;
|
|
847
|
-
}>>>;
|
|
848
|
-
flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
849
|
-
type: z.ZodLiteral<"anyOf">;
|
|
850
|
-
terms: z.ZodArray<z.ZodString, "many">;
|
|
851
|
-
}, "strip", z.ZodTypeAny, {
|
|
852
|
-
type: "anyOf";
|
|
853
|
-
terms: string[];
|
|
854
|
-
}, {
|
|
855
|
-
type: "anyOf";
|
|
856
|
-
terms: string[];
|
|
857
|
-
}>, z.ZodObject<{
|
|
858
|
-
type: z.ZodLiteral<"not">;
|
|
859
|
-
term: z.ZodString;
|
|
860
|
-
}, "strip", z.ZodTypeAny, {
|
|
861
|
-
type: "not";
|
|
862
|
-
term: string;
|
|
863
|
-
}, {
|
|
864
|
-
type: "not";
|
|
865
|
-
term: string;
|
|
866
|
-
}>]>, "many">>>;
|
|
867
|
-
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
868
|
-
}, "strip", z.ZodTypeAny, {
|
|
869
|
-
type?: "and" | undefined;
|
|
870
|
-
status?: {
|
|
871
|
-
type: "exact";
|
|
872
|
-
term: string;
|
|
873
|
-
} | {
|
|
874
|
-
type: "anyOf";
|
|
875
|
-
terms: string[];
|
|
876
|
-
} | undefined;
|
|
877
|
-
data?: any;
|
|
878
|
-
createdAt?: {
|
|
879
|
-
type: "exact";
|
|
880
|
-
term: string;
|
|
881
|
-
} | {
|
|
882
|
-
type: "range";
|
|
883
|
-
gte: string;
|
|
884
|
-
lte: string;
|
|
885
|
-
} | undefined;
|
|
886
|
-
createdBy?: {
|
|
901
|
+
} | undefined;
|
|
902
|
+
'legalStatus.REGISTERED.registrationNumber'?: {
|
|
887
903
|
type: "exact";
|
|
888
904
|
term: string;
|
|
889
905
|
} | undefined;
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
type: "range";
|
|
895
|
-
gte: string;
|
|
896
|
-
lte: string;
|
|
897
|
-
} | undefined;
|
|
898
|
-
trackingId?: {
|
|
899
|
-
type: "exact";
|
|
900
|
-
term: string;
|
|
901
|
-
} | undefined;
|
|
902
|
-
updatedAtLocation?: {
|
|
903
|
-
type: "exact";
|
|
904
|
-
term: string;
|
|
905
|
-
} | {
|
|
906
|
-
type: "within";
|
|
907
|
-
location: string;
|
|
908
|
-
} | undefined;
|
|
909
|
-
updatedBy?: {
|
|
910
|
-
type: "exact";
|
|
911
|
-
term: string;
|
|
912
|
-
} | undefined;
|
|
913
|
-
flags?: ({
|
|
914
|
-
type: "anyOf";
|
|
915
|
-
terms: string[];
|
|
916
|
-
} | {
|
|
917
|
-
type: "not";
|
|
918
|
-
term: string;
|
|
919
|
-
})[] | undefined;
|
|
920
|
-
eventType?: string | undefined;
|
|
921
|
-
createAtLocation?: {
|
|
922
|
-
type: "exact";
|
|
923
|
-
term: string;
|
|
924
|
-
} | {
|
|
925
|
-
type: "within";
|
|
926
|
-
location: string;
|
|
927
|
-
} | undefined;
|
|
928
|
-
}, {
|
|
929
|
-
type?: "and" | undefined;
|
|
930
|
-
status?: {
|
|
931
|
-
type: "exact";
|
|
932
|
-
term: string;
|
|
933
|
-
} | {
|
|
934
|
-
type: "anyOf";
|
|
935
|
-
terms: string[];
|
|
936
|
-
} | undefined;
|
|
937
|
-
data?: any;
|
|
938
|
-
createdAt?: {
|
|
939
|
-
type: "exact";
|
|
940
|
-
term: string;
|
|
941
|
-
} | {
|
|
942
|
-
type: "range";
|
|
943
|
-
gte: string;
|
|
944
|
-
lte: string;
|
|
945
|
-
} | undefined;
|
|
946
|
-
createdBy?: {
|
|
947
|
-
type: "exact";
|
|
948
|
-
term: string;
|
|
949
|
-
} | undefined;
|
|
950
|
-
updatedAt?: {
|
|
951
|
-
type: "exact";
|
|
952
|
-
term: string;
|
|
953
|
-
} | {
|
|
954
|
-
type: "range";
|
|
955
|
-
gte: string;
|
|
956
|
-
lte: string;
|
|
957
|
-
} | undefined;
|
|
958
|
-
trackingId?: {
|
|
959
|
-
type: "exact";
|
|
960
|
-
term: string;
|
|
961
|
-
} | undefined;
|
|
962
|
-
updatedAtLocation?: {
|
|
963
|
-
type: "exact";
|
|
964
|
-
term: string;
|
|
965
|
-
} | {
|
|
966
|
-
type: "within";
|
|
967
|
-
location: string;
|
|
968
|
-
} | undefined;
|
|
969
|
-
updatedBy?: {
|
|
970
|
-
type: "exact";
|
|
971
|
-
term: string;
|
|
972
|
-
} | undefined;
|
|
973
|
-
flags?: ({
|
|
974
|
-
type: "anyOf";
|
|
975
|
-
terms: string[];
|
|
976
|
-
} | {
|
|
977
|
-
type: "not";
|
|
978
|
-
term: string;
|
|
979
|
-
})[] | undefined;
|
|
980
|
-
eventType?: string | undefined;
|
|
981
|
-
createAtLocation?: {
|
|
982
|
-
type: "exact";
|
|
983
|
-
term: string;
|
|
984
|
-
} | {
|
|
985
|
-
type: "within";
|
|
986
|
-
location: string;
|
|
987
|
-
} | undefined;
|
|
988
|
-
}>, z.ZodObject<{
|
|
989
|
-
type: z.ZodLiteral<"or">;
|
|
990
|
-
clauses: z.ZodArray<z.ZodObject<{
|
|
991
|
-
type: z.ZodOptional<z.ZodLiteral<"and">>;
|
|
906
|
+
}>;
|
|
907
|
+
export declare const QueryType: z.ZodObject<{
|
|
908
|
+
type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
|
|
909
|
+
clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
992
910
|
eventType: z.ZodOptional<z.ZodString>;
|
|
993
911
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
994
912
|
type: z.ZodLiteral<"anyOf">;
|
|
995
|
-
terms: z.ZodArray<z.
|
|
913
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
|
|
996
914
|
}, "strip", z.ZodTypeAny, {
|
|
997
915
|
type: "anyOf";
|
|
998
|
-
terms:
|
|
916
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
999
917
|
}, {
|
|
1000
918
|
type: "anyOf";
|
|
1001
|
-
terms:
|
|
919
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
1002
920
|
}>, z.ZodObject<{
|
|
921
|
+
type: z.ZodLiteral<"exact">;
|
|
922
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
|
923
|
+
}, "strip", z.ZodTypeAny, {
|
|
924
|
+
type: "exact";
|
|
925
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
926
|
+
}, {
|
|
927
|
+
type: "exact";
|
|
928
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
929
|
+
}>]>>>;
|
|
930
|
+
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1003
931
|
type: z.ZodLiteral<"exact">;
|
|
1004
932
|
term: z.ZodString;
|
|
1005
933
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1008,8 +936,20 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1008
936
|
}, {
|
|
1009
937
|
type: "exact";
|
|
1010
938
|
term: string;
|
|
939
|
+
}>, z.ZodObject<{
|
|
940
|
+
type: z.ZodLiteral<"range">;
|
|
941
|
+
gte: z.ZodString;
|
|
942
|
+
lte: z.ZodString;
|
|
943
|
+
}, "strip", z.ZodTypeAny, {
|
|
944
|
+
type: "range";
|
|
945
|
+
gte: string;
|
|
946
|
+
lte: string;
|
|
947
|
+
}, {
|
|
948
|
+
type: "range";
|
|
949
|
+
gte: string;
|
|
950
|
+
lte: string;
|
|
1011
951
|
}>]>>>;
|
|
1012
|
-
|
|
952
|
+
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1013
953
|
type: z.ZodLiteral<"exact">;
|
|
1014
954
|
term: z.ZodString;
|
|
1015
955
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1031,7 +971,7 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1031
971
|
gte: string;
|
|
1032
972
|
lte: string;
|
|
1033
973
|
}>]>>>;
|
|
1034
|
-
|
|
974
|
+
'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1035
975
|
type: z.ZodLiteral<"exact">;
|
|
1036
976
|
term: z.ZodString;
|
|
1037
977
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1053,7 +993,36 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1053
993
|
gte: string;
|
|
1054
994
|
lte: string;
|
|
1055
995
|
}>]>>>;
|
|
1056
|
-
|
|
996
|
+
'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
997
|
+
type: z.ZodLiteral<"within">;
|
|
998
|
+
location: z.ZodString;
|
|
999
|
+
}, "strip", z.ZodTypeAny, {
|
|
1000
|
+
type: "within";
|
|
1001
|
+
location: string;
|
|
1002
|
+
}, {
|
|
1003
|
+
type: "within";
|
|
1004
|
+
location: string;
|
|
1005
|
+
}>, z.ZodObject<{
|
|
1006
|
+
type: z.ZodLiteral<"exact">;
|
|
1007
|
+
term: z.ZodString;
|
|
1008
|
+
}, "strip", z.ZodTypeAny, {
|
|
1009
|
+
type: "exact";
|
|
1010
|
+
term: string;
|
|
1011
|
+
}, {
|
|
1012
|
+
type: "exact";
|
|
1013
|
+
term: string;
|
|
1014
|
+
}>]>>>;
|
|
1015
|
+
'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1016
|
+
type: z.ZodLiteral<"exact">;
|
|
1017
|
+
term: z.ZodString;
|
|
1018
|
+
}, "strip", z.ZodTypeAny, {
|
|
1019
|
+
type: "exact";
|
|
1020
|
+
term: string;
|
|
1021
|
+
}, {
|
|
1022
|
+
type: "exact";
|
|
1023
|
+
term: string;
|
|
1024
|
+
}>>>;
|
|
1025
|
+
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1057
1026
|
type: z.ZodLiteral<"within">;
|
|
1058
1027
|
location: z.ZodString;
|
|
1059
1028
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1091,6 +1060,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1091
1060
|
type: "exact";
|
|
1092
1061
|
term: string;
|
|
1093
1062
|
}>]>>>;
|
|
1063
|
+
assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1064
|
+
type: z.ZodLiteral<"exact">;
|
|
1065
|
+
term: z.ZodString;
|
|
1066
|
+
}, "strip", z.ZodTypeAny, {
|
|
1067
|
+
type: "exact";
|
|
1068
|
+
term: string;
|
|
1069
|
+
}, {
|
|
1070
|
+
type: "exact";
|
|
1071
|
+
term: string;
|
|
1072
|
+
}>>>;
|
|
1094
1073
|
createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1095
1074
|
type: z.ZodLiteral<"exact">;
|
|
1096
1075
|
term: z.ZodString;
|
|
@@ -1142,13 +1121,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1142
1121
|
}>]>, "many">>>;
|
|
1143
1122
|
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
1144
1123
|
}, "strip", z.ZodTypeAny, {
|
|
1145
|
-
type?: "and" | undefined;
|
|
1146
1124
|
status?: {
|
|
1147
1125
|
type: "exact";
|
|
1148
|
-
term:
|
|
1126
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
1149
1127
|
} | {
|
|
1150
1128
|
type: "anyOf";
|
|
1151
|
-
terms:
|
|
1129
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
1152
1130
|
} | undefined;
|
|
1153
1131
|
data?: any;
|
|
1154
1132
|
createdAt?: {
|
|
@@ -1163,6 +1141,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1163
1141
|
type: "exact";
|
|
1164
1142
|
term: string;
|
|
1165
1143
|
} | undefined;
|
|
1144
|
+
createdAtLocation?: {
|
|
1145
|
+
type: "exact";
|
|
1146
|
+
term: string;
|
|
1147
|
+
} | {
|
|
1148
|
+
type: "within";
|
|
1149
|
+
location: string;
|
|
1150
|
+
} | undefined;
|
|
1151
|
+
assignedTo?: {
|
|
1152
|
+
type: "exact";
|
|
1153
|
+
term: string;
|
|
1154
|
+
} | undefined;
|
|
1166
1155
|
updatedAt?: {
|
|
1167
1156
|
type: "exact";
|
|
1168
1157
|
term: string;
|
|
@@ -1194,21 +1183,32 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1194
1183
|
term: string;
|
|
1195
1184
|
})[] | undefined;
|
|
1196
1185
|
eventType?: string | undefined;
|
|
1197
|
-
|
|
1186
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
|
1187
|
+
type: "exact";
|
|
1188
|
+
term: string;
|
|
1189
|
+
} | {
|
|
1190
|
+
type: "range";
|
|
1191
|
+
gte: string;
|
|
1192
|
+
lte: string;
|
|
1193
|
+
} | undefined;
|
|
1194
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
|
1198
1195
|
type: "exact";
|
|
1199
1196
|
term: string;
|
|
1200
1197
|
} | {
|
|
1201
1198
|
type: "within";
|
|
1202
1199
|
location: string;
|
|
1203
1200
|
} | undefined;
|
|
1201
|
+
'legalStatus.REGISTERED.registrationNumber'?: {
|
|
1202
|
+
type: "exact";
|
|
1203
|
+
term: string;
|
|
1204
|
+
} | undefined;
|
|
1204
1205
|
}, {
|
|
1205
|
-
type?: "and" | undefined;
|
|
1206
1206
|
status?: {
|
|
1207
1207
|
type: "exact";
|
|
1208
|
-
term:
|
|
1208
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
1209
1209
|
} | {
|
|
1210
1210
|
type: "anyOf";
|
|
1211
|
-
terms:
|
|
1211
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
1212
1212
|
} | undefined;
|
|
1213
1213
|
data?: any;
|
|
1214
1214
|
createdAt?: {
|
|
@@ -1223,6 +1223,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1223
1223
|
type: "exact";
|
|
1224
1224
|
term: string;
|
|
1225
1225
|
} | undefined;
|
|
1226
|
+
createdAtLocation?: {
|
|
1227
|
+
type: "exact";
|
|
1228
|
+
term: string;
|
|
1229
|
+
} | {
|
|
1230
|
+
type: "within";
|
|
1231
|
+
location: string;
|
|
1232
|
+
} | undefined;
|
|
1233
|
+
assignedTo?: {
|
|
1234
|
+
type: "exact";
|
|
1235
|
+
term: string;
|
|
1236
|
+
} | undefined;
|
|
1226
1237
|
updatedAt?: {
|
|
1227
1238
|
type: "exact";
|
|
1228
1239
|
term: string;
|
|
@@ -1254,24 +1265,114 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1254
1265
|
term: string;
|
|
1255
1266
|
})[] | undefined;
|
|
1256
1267
|
eventType?: string | undefined;
|
|
1257
|
-
|
|
1268
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
|
1269
|
+
type: "exact";
|
|
1270
|
+
term: string;
|
|
1271
|
+
} | {
|
|
1272
|
+
type: "range";
|
|
1273
|
+
gte: string;
|
|
1274
|
+
lte: string;
|
|
1275
|
+
} | undefined;
|
|
1276
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
|
1258
1277
|
type: "exact";
|
|
1259
1278
|
term: string;
|
|
1260
1279
|
} | {
|
|
1261
1280
|
type: "within";
|
|
1262
1281
|
location: string;
|
|
1263
1282
|
} | undefined;
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1283
|
+
'legalStatus.REGISTERED.registrationNumber'?: {
|
|
1284
|
+
type: "exact";
|
|
1285
|
+
term: string;
|
|
1286
|
+
} | undefined;
|
|
1287
|
+
}>, "atleastone">, [{
|
|
1269
1288
|
status?: {
|
|
1289
|
+
type: "exact";
|
|
1290
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
1291
|
+
} | {
|
|
1292
|
+
type: "anyOf";
|
|
1293
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
1294
|
+
} | undefined;
|
|
1295
|
+
data?: any;
|
|
1296
|
+
createdAt?: {
|
|
1297
|
+
type: "exact";
|
|
1298
|
+
term: string;
|
|
1299
|
+
} | {
|
|
1300
|
+
type: "range";
|
|
1301
|
+
gte: string;
|
|
1302
|
+
lte: string;
|
|
1303
|
+
} | undefined;
|
|
1304
|
+
createdBy?: {
|
|
1305
|
+
type: "exact";
|
|
1306
|
+
term: string;
|
|
1307
|
+
} | undefined;
|
|
1308
|
+
createdAtLocation?: {
|
|
1309
|
+
type: "exact";
|
|
1310
|
+
term: string;
|
|
1311
|
+
} | {
|
|
1312
|
+
type: "within";
|
|
1313
|
+
location: string;
|
|
1314
|
+
} | undefined;
|
|
1315
|
+
assignedTo?: {
|
|
1316
|
+
type: "exact";
|
|
1317
|
+
term: string;
|
|
1318
|
+
} | undefined;
|
|
1319
|
+
updatedAt?: {
|
|
1320
|
+
type: "exact";
|
|
1321
|
+
term: string;
|
|
1322
|
+
} | {
|
|
1323
|
+
type: "range";
|
|
1324
|
+
gte: string;
|
|
1325
|
+
lte: string;
|
|
1326
|
+
} | undefined;
|
|
1327
|
+
trackingId?: {
|
|
1328
|
+
type: "exact";
|
|
1329
|
+
term: string;
|
|
1330
|
+
} | undefined;
|
|
1331
|
+
updatedAtLocation?: {
|
|
1270
1332
|
type: "exact";
|
|
1271
1333
|
term: string;
|
|
1272
1334
|
} | {
|
|
1335
|
+
type: "within";
|
|
1336
|
+
location: string;
|
|
1337
|
+
} | undefined;
|
|
1338
|
+
updatedBy?: {
|
|
1339
|
+
type: "exact";
|
|
1340
|
+
term: string;
|
|
1341
|
+
} | undefined;
|
|
1342
|
+
flags?: ({
|
|
1273
1343
|
type: "anyOf";
|
|
1274
1344
|
terms: string[];
|
|
1345
|
+
} | {
|
|
1346
|
+
type: "not";
|
|
1347
|
+
term: string;
|
|
1348
|
+
})[] | undefined;
|
|
1349
|
+
eventType?: string | undefined;
|
|
1350
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
|
1351
|
+
type: "exact";
|
|
1352
|
+
term: string;
|
|
1353
|
+
} | {
|
|
1354
|
+
type: "range";
|
|
1355
|
+
gte: string;
|
|
1356
|
+
lte: string;
|
|
1357
|
+
} | undefined;
|
|
1358
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
|
1359
|
+
type: "exact";
|
|
1360
|
+
term: string;
|
|
1361
|
+
} | {
|
|
1362
|
+
type: "within";
|
|
1363
|
+
location: string;
|
|
1364
|
+
} | undefined;
|
|
1365
|
+
'legalStatus.REGISTERED.registrationNumber'?: {
|
|
1366
|
+
type: "exact";
|
|
1367
|
+
term: string;
|
|
1368
|
+
} | undefined;
|
|
1369
|
+
}, ...{
|
|
1370
|
+
status?: {
|
|
1371
|
+
type: "exact";
|
|
1372
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
1373
|
+
} | {
|
|
1374
|
+
type: "anyOf";
|
|
1375
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
1275
1376
|
} | undefined;
|
|
1276
1377
|
data?: any;
|
|
1277
1378
|
createdAt?: {
|
|
@@ -1286,6 +1387,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1286
1387
|
type: "exact";
|
|
1287
1388
|
term: string;
|
|
1288
1389
|
} | undefined;
|
|
1390
|
+
createdAtLocation?: {
|
|
1391
|
+
type: "exact";
|
|
1392
|
+
term: string;
|
|
1393
|
+
} | {
|
|
1394
|
+
type: "within";
|
|
1395
|
+
location: string;
|
|
1396
|
+
} | undefined;
|
|
1397
|
+
assignedTo?: {
|
|
1398
|
+
type: "exact";
|
|
1399
|
+
term: string;
|
|
1400
|
+
} | undefined;
|
|
1289
1401
|
updatedAt?: {
|
|
1290
1402
|
type: "exact";
|
|
1291
1403
|
term: string;
|
|
@@ -1317,24 +1429,117 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1317
1429
|
term: string;
|
|
1318
1430
|
})[] | undefined;
|
|
1319
1431
|
eventType?: string | undefined;
|
|
1320
|
-
|
|
1432
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
|
1433
|
+
type: "exact";
|
|
1434
|
+
term: string;
|
|
1435
|
+
} | {
|
|
1436
|
+
type: "range";
|
|
1437
|
+
gte: string;
|
|
1438
|
+
lte: string;
|
|
1439
|
+
} | undefined;
|
|
1440
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
|
1321
1441
|
type: "exact";
|
|
1322
1442
|
term: string;
|
|
1323
1443
|
} | {
|
|
1324
1444
|
type: "within";
|
|
1325
1445
|
location: string;
|
|
1326
1446
|
} | undefined;
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1447
|
+
'legalStatus.REGISTERED.registrationNumber'?: {
|
|
1448
|
+
type: "exact";
|
|
1449
|
+
term: string;
|
|
1450
|
+
} | undefined;
|
|
1451
|
+
}[]], unknown>;
|
|
1452
|
+
}, "strip", z.ZodTypeAny, {
|
|
1453
|
+
type: "and" | "or";
|
|
1454
|
+
clauses: [{
|
|
1332
1455
|
status?: {
|
|
1456
|
+
type: "exact";
|
|
1457
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
1458
|
+
} | {
|
|
1459
|
+
type: "anyOf";
|
|
1460
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
1461
|
+
} | undefined;
|
|
1462
|
+
data?: any;
|
|
1463
|
+
createdAt?: {
|
|
1333
1464
|
type: "exact";
|
|
1334
1465
|
term: string;
|
|
1335
1466
|
} | {
|
|
1467
|
+
type: "range";
|
|
1468
|
+
gte: string;
|
|
1469
|
+
lte: string;
|
|
1470
|
+
} | undefined;
|
|
1471
|
+
createdBy?: {
|
|
1472
|
+
type: "exact";
|
|
1473
|
+
term: string;
|
|
1474
|
+
} | undefined;
|
|
1475
|
+
createdAtLocation?: {
|
|
1476
|
+
type: "exact";
|
|
1477
|
+
term: string;
|
|
1478
|
+
} | {
|
|
1479
|
+
type: "within";
|
|
1480
|
+
location: string;
|
|
1481
|
+
} | undefined;
|
|
1482
|
+
assignedTo?: {
|
|
1483
|
+
type: "exact";
|
|
1484
|
+
term: string;
|
|
1485
|
+
} | undefined;
|
|
1486
|
+
updatedAt?: {
|
|
1487
|
+
type: "exact";
|
|
1488
|
+
term: string;
|
|
1489
|
+
} | {
|
|
1490
|
+
type: "range";
|
|
1491
|
+
gte: string;
|
|
1492
|
+
lte: string;
|
|
1493
|
+
} | undefined;
|
|
1494
|
+
trackingId?: {
|
|
1495
|
+
type: "exact";
|
|
1496
|
+
term: string;
|
|
1497
|
+
} | undefined;
|
|
1498
|
+
updatedAtLocation?: {
|
|
1499
|
+
type: "exact";
|
|
1500
|
+
term: string;
|
|
1501
|
+
} | {
|
|
1502
|
+
type: "within";
|
|
1503
|
+
location: string;
|
|
1504
|
+
} | undefined;
|
|
1505
|
+
updatedBy?: {
|
|
1506
|
+
type: "exact";
|
|
1507
|
+
term: string;
|
|
1508
|
+
} | undefined;
|
|
1509
|
+
flags?: ({
|
|
1336
1510
|
type: "anyOf";
|
|
1337
1511
|
terms: string[];
|
|
1512
|
+
} | {
|
|
1513
|
+
type: "not";
|
|
1514
|
+
term: string;
|
|
1515
|
+
})[] | undefined;
|
|
1516
|
+
eventType?: string | undefined;
|
|
1517
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
|
1518
|
+
type: "exact";
|
|
1519
|
+
term: string;
|
|
1520
|
+
} | {
|
|
1521
|
+
type: "range";
|
|
1522
|
+
gte: string;
|
|
1523
|
+
lte: string;
|
|
1524
|
+
} | undefined;
|
|
1525
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
|
1526
|
+
type: "exact";
|
|
1527
|
+
term: string;
|
|
1528
|
+
} | {
|
|
1529
|
+
type: "within";
|
|
1530
|
+
location: string;
|
|
1531
|
+
} | undefined;
|
|
1532
|
+
'legalStatus.REGISTERED.registrationNumber'?: {
|
|
1533
|
+
type: "exact";
|
|
1534
|
+
term: string;
|
|
1535
|
+
} | undefined;
|
|
1536
|
+
}, ...{
|
|
1537
|
+
status?: {
|
|
1538
|
+
type: "exact";
|
|
1539
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
|
1540
|
+
} | {
|
|
1541
|
+
type: "anyOf";
|
|
1542
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
|
1338
1543
|
} | undefined;
|
|
1339
1544
|
data?: any;
|
|
1340
1545
|
createdAt?: {
|
|
@@ -1349,6 +1554,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1349
1554
|
type: "exact";
|
|
1350
1555
|
term: string;
|
|
1351
1556
|
} | undefined;
|
|
1557
|
+
createdAtLocation?: {
|
|
1558
|
+
type: "exact";
|
|
1559
|
+
term: string;
|
|
1560
|
+
} | {
|
|
1561
|
+
type: "within";
|
|
1562
|
+
location: string;
|
|
1563
|
+
} | undefined;
|
|
1564
|
+
assignedTo?: {
|
|
1565
|
+
type: "exact";
|
|
1566
|
+
term: string;
|
|
1567
|
+
} | undefined;
|
|
1352
1568
|
updatedAt?: {
|
|
1353
1569
|
type: "exact";
|
|
1354
1570
|
term: string;
|
|
@@ -1380,15 +1596,31 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1380
1596
|
term: string;
|
|
1381
1597
|
})[] | undefined;
|
|
1382
1598
|
eventType?: string | undefined;
|
|
1383
|
-
|
|
1599
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
|
1600
|
+
type: "exact";
|
|
1601
|
+
term: string;
|
|
1602
|
+
} | {
|
|
1603
|
+
type: "range";
|
|
1604
|
+
gte: string;
|
|
1605
|
+
lte: string;
|
|
1606
|
+
} | undefined;
|
|
1607
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
|
1384
1608
|
type: "exact";
|
|
1385
1609
|
term: string;
|
|
1386
1610
|
} | {
|
|
1387
1611
|
type: "within";
|
|
1388
1612
|
location: string;
|
|
1389
1613
|
} | undefined;
|
|
1390
|
-
|
|
1391
|
-
|
|
1614
|
+
'legalStatus.REGISTERED.registrationNumber'?: {
|
|
1615
|
+
type: "exact";
|
|
1616
|
+
term: string;
|
|
1617
|
+
} | undefined;
|
|
1618
|
+
}[]];
|
|
1619
|
+
}, {
|
|
1620
|
+
type: "and" | "or";
|
|
1621
|
+
clauses?: unknown;
|
|
1622
|
+
}>;
|
|
1392
1623
|
export type QueryType = z.infer<typeof QueryType>;
|
|
1624
|
+
export type QueryExpression = z.infer<typeof QueryExpression>;
|
|
1393
1625
|
export {};
|
|
1394
1626
|
//# sourceMappingURL=EventIndex.d.ts.map
|