@opencrvs/toolkit 1.8.0-rc.f7a451a → 1.8.0-rc.f7bcb31

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.
Files changed (38) hide show
  1. package/dist/commons/api/router.d.ts +4206 -8342
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -11
  3. package/dist/commons/conditionals/validate.d.ts +6 -4
  4. package/dist/commons/events/ActionConfig.d.ts +1727 -97087
  5. package/dist/commons/events/ActionDocument.d.ts +211 -542
  6. package/dist/commons/events/ActionInput.d.ts +240 -248
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +22 -957
  8. package/dist/commons/events/CompositeFieldValue.d.ts +0 -3
  9. package/dist/commons/events/Draft.d.ts +20 -33
  10. package/dist/commons/events/EventConfig.d.ts +1350 -46327
  11. package/dist/commons/events/EventDocument.d.ts +156 -324
  12. package/dist/commons/events/EventIndex.d.ts +13 -1821
  13. package/dist/commons/events/EventMetadata.d.ts +11 -277
  14. package/dist/commons/events/FieldConfig.d.ts +754 -4280
  15. package/dist/commons/events/FieldType.d.ts +3 -3
  16. package/dist/commons/events/FieldTypeMapping.d.ts +4 -11
  17. package/dist/commons/events/FieldValue.d.ts +4 -7
  18. package/dist/commons/events/FormConfig.d.ts +441 -43593
  19. package/dist/commons/events/PageConfig.d.ts +208 -10864
  20. package/dist/commons/events/SummaryConfig.d.ts +39 -95
  21. package/dist/commons/events/User.d.ts +2 -31
  22. package/dist/commons/events/WorkqueueConfig.d.ts +20 -5341
  23. package/dist/commons/events/defineConfig.d.ts +35 -7218
  24. package/dist/commons/events/index.d.ts +0 -6
  25. package/dist/commons/events/test.utils.d.ts +46 -10
  26. package/dist/commons/events/utils.d.ts +67 -3665
  27. package/dist/conditionals/index.js +35 -55
  28. package/dist/events/index.js +1075 -2461
  29. package/dist/scopes/index.d.ts +4 -91
  30. package/dist/scopes/index.js +21 -39
  31. package/package.json +2 -3
  32. package/dist/commons/events/CountryConfigQueryInput.d.ts +0 -3008
  33. package/dist/commons/events/WorkqueueColumnConfig.d.ts +0 -42
  34. package/dist/commons/events/event.d.ts +0 -54
  35. package/dist/commons/events/field.d.ts +0 -82
  36. package/dist/commons/events/scopes.d.ts +0 -45
  37. package/dist/commons/events/serializer.d.ts +0 -2
  38. package/dist/commons/events/workqueueDefaultColumns.d.ts +0 -3
@@ -1,7 +1,6 @@
1
- import { z, ZodType } from 'zod';
1
+ import { z } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
3
  id: z.ZodString;
4
- title: z.ZodString;
5
4
  type: z.ZodString;
6
5
  status: z.ZodNativeEnum<{
7
6
  readonly CREATED: "CREATED";
@@ -13,352 +12,42 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
13
12
  readonly REJECTED: "REJECTED";
14
13
  readonly ARCHIVED: "ARCHIVED";
15
14
  }>;
16
- legalStatuses: z.ZodObject<{
17
- DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
- createdAt: z.ZodString;
19
- createdBy: z.ZodString;
20
- createdAtLocation: z.ZodString;
21
- acceptedAt: z.ZodString;
22
- createdByRole: z.ZodString;
23
- }, "strip", z.ZodTypeAny, {
24
- createdAt: string;
25
- createdBy: string;
26
- createdByRole: string;
27
- createdAtLocation: string;
28
- acceptedAt: string;
29
- }, {
30
- createdAt: string;
31
- createdBy: string;
32
- createdByRole: string;
33
- createdAtLocation: string;
34
- acceptedAt: string;
35
- }>>>;
36
- REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
37
- createdAt: z.ZodString;
38
- createdBy: z.ZodString;
39
- createdAtLocation: z.ZodString;
40
- acceptedAt: z.ZodString;
41
- createdByRole: z.ZodString;
42
- }, {
43
- registrationNumber: z.ZodString;
44
- }>, "strip", z.ZodTypeAny, {
45
- createdAt: string;
46
- createdBy: string;
47
- createdByRole: string;
48
- createdAtLocation: string;
49
- registrationNumber: string;
50
- acceptedAt: string;
51
- }, {
52
- createdAt: string;
53
- createdBy: string;
54
- createdByRole: string;
55
- createdAtLocation: string;
56
- registrationNumber: string;
57
- acceptedAt: string;
58
- }>>>;
59
- }, "strip", z.ZodTypeAny, {
60
- DECLARED?: {
61
- createdAt: string;
62
- createdBy: string;
63
- createdByRole: string;
64
- createdAtLocation: string;
65
- acceptedAt: string;
66
- } | null | undefined;
67
- REGISTERED?: {
68
- createdAt: string;
69
- createdBy: string;
70
- createdByRole: string;
71
- createdAtLocation: string;
72
- registrationNumber: string;
73
- acceptedAt: string;
74
- } | null | undefined;
75
- }, {
76
- DECLARED?: {
77
- createdAt: string;
78
- createdBy: string;
79
- createdByRole: string;
80
- createdAtLocation: string;
81
- acceptedAt: string;
82
- } | null | undefined;
83
- REGISTERED?: {
84
- createdAt: string;
85
- createdBy: string;
86
- createdByRole: string;
87
- createdAtLocation: string;
88
- registrationNumber: string;
89
- acceptedAt: string;
90
- } | null | undefined;
91
- }>;
92
15
  createdAt: z.ZodString;
93
- dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
16
  createdBy: z.ZodString;
95
- updatedByUserRole: z.ZodString;
96
17
  createdAtLocation: z.ZodString;
97
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
- updatedAt: z.ZodString;
18
+ modifiedAt: z.ZodString;
99
19
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
- updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ updatedBy: z.ZodString;
101
21
  trackingId: z.ZodString;
102
- flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
103
- readonly CERTIFICATE_PRINTED: "certificate-printed";
104
- }>]>, "many">;
22
+ registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
23
  }, {
106
- 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<{
107
- filename: z.ZodString;
108
- originalFilename: z.ZodString;
109
- type: z.ZodString;
110
- }, "strip", z.ZodTypeAny, {
111
- type: string;
112
- filename: string;
113
- originalFilename: string;
114
- }, {
115
- type: string;
116
- filename: string;
117
- originalFilename: string;
118
- }>, z.ZodArray<z.ZodObject<{
119
- filename: z.ZodString;
120
- originalFilename: z.ZodString;
121
- type: z.ZodString;
122
- option: z.ZodString;
123
- }, "strip", z.ZodTypeAny, {
124
- type: string;
125
- option: string;
126
- filename: string;
127
- originalFilename: string;
128
- }, {
129
- type: string;
130
- option: string;
131
- filename: string;
132
- originalFilename: string;
133
- }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
134
- country: z.ZodString;
135
- addressType: z.ZodLiteral<"DOMESTIC">;
136
- province: z.ZodString;
137
- district: z.ZodString;
138
- }, {
139
- urbanOrRural: z.ZodLiteral<"URBAN">;
140
- town: z.ZodOptional<z.ZodString>;
141
- residentialArea: z.ZodOptional<z.ZodString>;
142
- street: z.ZodOptional<z.ZodString>;
143
- number: z.ZodOptional<z.ZodString>;
144
- zipCode: z.ZodOptional<z.ZodString>;
145
- }>, "strip", z.ZodTypeAny, {
146
- country: string;
147
- district: string;
148
- addressType: "DOMESTIC";
149
- province: string;
150
- urbanOrRural: "URBAN";
151
- number?: string | undefined;
152
- town?: string | undefined;
153
- residentialArea?: string | undefined;
154
- street?: string | undefined;
155
- zipCode?: string | undefined;
156
- }, {
157
- country: string;
158
- district: string;
159
- addressType: "DOMESTIC";
160
- province: string;
161
- urbanOrRural: "URBAN";
162
- number?: string | undefined;
163
- town?: string | undefined;
164
- residentialArea?: string | undefined;
165
- street?: string | undefined;
166
- zipCode?: string | undefined;
167
- }>, z.ZodObject<z.objectUtil.extendShape<{
168
- country: z.ZodString;
169
- addressType: z.ZodLiteral<"DOMESTIC">;
170
- province: z.ZodString;
171
- district: z.ZodString;
172
- }, {
173
- urbanOrRural: z.ZodLiteral<"RURAL">;
174
- village: z.ZodOptional<z.ZodString>;
175
- }>, "strip", z.ZodTypeAny, {
176
- country: string;
177
- district: string;
178
- addressType: "DOMESTIC";
179
- province: string;
180
- urbanOrRural: "RURAL";
181
- village?: string | undefined;
182
- }, {
183
- country: string;
184
- district: string;
185
- addressType: "DOMESTIC";
186
- province: string;
187
- urbanOrRural: "RURAL";
188
- village?: string | undefined;
189
- }>, z.ZodUndefined, z.ZodObject<{
190
- country: z.ZodString;
191
- addressType: z.ZodLiteral<"INTERNATIONAL">;
192
- state: z.ZodString;
193
- district2: z.ZodString;
194
- cityOrTown: z.ZodOptional<z.ZodString>;
195
- addressLine1: z.ZodOptional<z.ZodString>;
196
- addressLine2: z.ZodOptional<z.ZodString>;
197
- addressLine3: z.ZodOptional<z.ZodString>;
198
- postcodeOrZip: z.ZodOptional<z.ZodString>;
199
- }, "strip", z.ZodTypeAny, {
200
- country: string;
201
- state: string;
202
- addressType: "INTERNATIONAL";
203
- district2: string;
204
- cityOrTown?: string | undefined;
205
- addressLine1?: string | undefined;
206
- addressLine2?: string | undefined;
207
- addressLine3?: string | undefined;
208
- postcodeOrZip?: string | undefined;
209
- }, {
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
- }>]>>;
24
+ declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
220
25
  }>, "strip", z.ZodTypeAny, {
221
26
  type: string;
222
27
  id: string;
223
28
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
224
- title: string;
225
29
  createdAt: string;
226
30
  createdBy: string;
227
- declaration: Record<string, string | number | boolean | {
228
- type: string;
229
- filename: string;
230
- originalFilename: string;
231
- } | {
232
- country: string;
233
- district: string;
234
- addressType: "DOMESTIC";
235
- province: string;
236
- urbanOrRural: "URBAN";
237
- number?: string | undefined;
238
- town?: string | undefined;
239
- residentialArea?: string | undefined;
240
- street?: string | undefined;
241
- zipCode?: string | undefined;
242
- } | {
243
- country: string;
244
- district: string;
245
- addressType: "DOMESTIC";
246
- province: string;
247
- urbanOrRural: "RURAL";
248
- village?: string | undefined;
249
- } | {
250
- country: string;
251
- state: string;
252
- addressType: "INTERNATIONAL";
253
- district2: string;
254
- cityOrTown?: string | undefined;
255
- addressLine1?: string | undefined;
256
- addressLine2?: string | undefined;
257
- addressLine3?: string | undefined;
258
- postcodeOrZip?: string | undefined;
259
- } | {
260
- type: string;
261
- option: string;
262
- filename: string;
263
- originalFilename: string;
264
- }[] | [string, string] | undefined>;
31
+ declaration: Record<string, any>;
265
32
  createdAtLocation: string;
266
- updatedAt: string;
267
33
  trackingId: string;
268
- legalStatuses: {
269
- DECLARED?: {
270
- createdAt: string;
271
- createdBy: string;
272
- createdByRole: string;
273
- createdAtLocation: string;
274
- acceptedAt: string;
275
- } | null | undefined;
276
- REGISTERED?: {
277
- createdAt: string;
278
- createdBy: string;
279
- createdByRole: string;
280
- createdAtLocation: string;
281
- registrationNumber: string;
282
- acceptedAt: string;
283
- } | null | undefined;
284
- };
285
- updatedByUserRole: string;
286
- flags: string[];
34
+ modifiedAt: string;
35
+ updatedBy: string;
287
36
  assignedTo?: string | null | undefined;
288
- dateOfEvent?: string | null | undefined;
289
- updatedAtLocation?: string | null | undefined;
290
- updatedBy?: string | null | undefined;
37
+ registrationNumber?: string | null | undefined;
291
38
  }, {
292
39
  type: string;
293
40
  id: string;
294
41
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
295
- title: string;
296
42
  createdAt: string;
297
43
  createdBy: string;
298
- declaration: Record<string, string | number | boolean | {
299
- type: string;
300
- filename: string;
301
- originalFilename: string;
302
- } | {
303
- country: string;
304
- district: string;
305
- addressType: "DOMESTIC";
306
- province: string;
307
- urbanOrRural: "URBAN";
308
- number?: string | undefined;
309
- town?: string | undefined;
310
- residentialArea?: string | undefined;
311
- street?: string | undefined;
312
- zipCode?: string | undefined;
313
- } | {
314
- country: string;
315
- district: string;
316
- addressType: "DOMESTIC";
317
- province: string;
318
- urbanOrRural: "RURAL";
319
- village?: string | undefined;
320
- } | {
321
- country: string;
322
- state: string;
323
- addressType: "INTERNATIONAL";
324
- district2: string;
325
- cityOrTown?: string | undefined;
326
- addressLine1?: string | undefined;
327
- addressLine2?: string | undefined;
328
- addressLine3?: string | undefined;
329
- postcodeOrZip?: string | undefined;
330
- } | {
331
- type: string;
332
- option: string;
333
- filename: string;
334
- originalFilename: string;
335
- }[] | [string, string] | undefined>;
44
+ declaration: Record<string, any>;
336
45
  createdAtLocation: string;
337
- updatedAt: string;
338
46
  trackingId: string;
339
- legalStatuses: {
340
- DECLARED?: {
341
- createdAt: string;
342
- createdBy: string;
343
- createdByRole: string;
344
- createdAtLocation: string;
345
- acceptedAt: string;
346
- } | null | undefined;
347
- REGISTERED?: {
348
- createdAt: string;
349
- createdBy: string;
350
- createdByRole: string;
351
- createdAtLocation: string;
352
- registrationNumber: string;
353
- acceptedAt: string;
354
- } | null | undefined;
355
- };
356
- updatedByUserRole: string;
357
- flags: string[];
47
+ modifiedAt: string;
48
+ updatedBy: string;
358
49
  assignedTo?: string | null | undefined;
359
- dateOfEvent?: string | null | undefined;
360
- updatedAtLocation?: string | null | undefined;
361
- updatedBy?: string | null | undefined;
50
+ registrationNumber?: string | null | undefined;
362
51
  }>;
363
52
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
364
53
  type: z.ZodString;
@@ -369,1501 +58,4 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
369
58
  }>>;
370
59
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
371
60
  export type EventIndex = z.infer<typeof EventIndex>;
372
- declare const Fuzzy: z.ZodObject<{
373
- type: z.ZodLiteral<"fuzzy">;
374
- term: z.ZodString;
375
- }, "strip", z.ZodTypeAny, {
376
- type: "fuzzy";
377
- term: string;
378
- }, {
379
- type: "fuzzy";
380
- term: string;
381
- }>;
382
- declare const Exact: z.ZodObject<{
383
- type: z.ZodLiteral<"exact">;
384
- term: z.ZodString;
385
- }, "strip", z.ZodTypeAny, {
386
- type: "exact";
387
- term: string;
388
- }, {
389
- type: "exact";
390
- term: string;
391
- }>;
392
- declare const AnyOf: z.ZodObject<{
393
- type: z.ZodLiteral<"anyOf">;
394
- terms: z.ZodArray<z.ZodString, "many">;
395
- }, "strip", z.ZodTypeAny, {
396
- type: "anyOf";
397
- terms: string[];
398
- }, {
399
- type: "anyOf";
400
- terms: string[];
401
- }>;
402
- declare const Range: z.ZodObject<{
403
- type: z.ZodLiteral<"range">;
404
- gte: z.ZodString;
405
- lte: z.ZodString;
406
- }, "strip", z.ZodTypeAny, {
407
- type: "range";
408
- gte: string;
409
- lte: string;
410
- }, {
411
- type: "range";
412
- gte: string;
413
- lte: string;
414
- }>;
415
- declare const Not: z.ZodObject<{
416
- type: z.ZodLiteral<"not">;
417
- term: z.ZodString;
418
- }, "strip", z.ZodTypeAny, {
419
- type: "not";
420
- term: string;
421
- }, {
422
- type: "not";
423
- term: string;
424
- }>;
425
- declare const Within: z.ZodObject<{
426
- type: z.ZodLiteral<"within">;
427
- location: z.ZodString;
428
- }, "strip", z.ZodTypeAny, {
429
- type: "within";
430
- location: string;
431
- }, {
432
- type: "within";
433
- location: string;
434
- }>;
435
- export declare const QueryInput: ZodType;
436
- 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>;
437
- type QueryMap = {
438
- [key: string]: BaseInput | QueryMap;
439
- };
440
- export type QueryInputType = BaseInput | QueryMap;
441
- export declare const QueryExpression: z.ZodObject<{
442
- title: z.ZodOptional<z.ZodString>;
443
- eventType: z.ZodOptional<z.ZodString>;
444
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
445
- type: z.ZodLiteral<"anyOf">;
446
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
447
- }, "strip", z.ZodTypeAny, {
448
- type: "anyOf";
449
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
450
- }, {
451
- type: "anyOf";
452
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
453
- }>, z.ZodObject<{
454
- type: z.ZodLiteral<"exact">;
455
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
456
- }, "strip", z.ZodTypeAny, {
457
- type: "exact";
458
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
459
- }, {
460
- type: "exact";
461
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
462
- }>]>>>;
463
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
464
- type: z.ZodLiteral<"exact">;
465
- term: z.ZodString;
466
- }, "strip", z.ZodTypeAny, {
467
- type: "exact";
468
- term: string;
469
- }, {
470
- type: "exact";
471
- term: string;
472
- }>, z.ZodObject<{
473
- type: z.ZodLiteral<"range">;
474
- gte: z.ZodString;
475
- lte: z.ZodString;
476
- }, "strip", z.ZodTypeAny, {
477
- type: "range";
478
- gte: string;
479
- lte: string;
480
- }, {
481
- type: "range";
482
- gte: string;
483
- lte: string;
484
- }>]>>>;
485
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
486
- type: z.ZodLiteral<"exact">;
487
- term: z.ZodString;
488
- }, "strip", z.ZodTypeAny, {
489
- type: "exact";
490
- term: string;
491
- }, {
492
- type: "exact";
493
- term: string;
494
- }>, z.ZodObject<{
495
- type: z.ZodLiteral<"range">;
496
- gte: z.ZodString;
497
- lte: z.ZodString;
498
- }, "strip", z.ZodTypeAny, {
499
- type: "range";
500
- gte: string;
501
- lte: string;
502
- }, {
503
- type: "range";
504
- gte: string;
505
- lte: string;
506
- }>]>>>;
507
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
508
- type: z.ZodLiteral<"exact">;
509
- term: z.ZodString;
510
- }, "strip", z.ZodTypeAny, {
511
- type: "exact";
512
- term: string;
513
- }, {
514
- type: "exact";
515
- term: string;
516
- }>, z.ZodObject<{
517
- type: z.ZodLiteral<"range">;
518
- gte: z.ZodString;
519
- lte: z.ZodString;
520
- }, "strip", z.ZodTypeAny, {
521
- type: "range";
522
- gte: string;
523
- lte: string;
524
- }, {
525
- type: "range";
526
- gte: string;
527
- lte: string;
528
- }>]>>>;
529
- 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
530
- type: z.ZodLiteral<"within">;
531
- location: z.ZodString;
532
- }, "strip", z.ZodTypeAny, {
533
- type: "within";
534
- location: string;
535
- }, {
536
- type: "within";
537
- location: string;
538
- }>, z.ZodObject<{
539
- type: z.ZodLiteral<"exact">;
540
- term: z.ZodString;
541
- }, "strip", z.ZodTypeAny, {
542
- type: "exact";
543
- term: string;
544
- }, {
545
- type: "exact";
546
- term: string;
547
- }>]>>>;
548
- createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
549
- type: z.ZodLiteral<"within">;
550
- location: z.ZodString;
551
- }, "strip", z.ZodTypeAny, {
552
- type: "within";
553
- location: string;
554
- }, {
555
- type: "within";
556
- location: string;
557
- }>, z.ZodObject<{
558
- type: z.ZodLiteral<"exact">;
559
- term: z.ZodString;
560
- }, "strip", z.ZodTypeAny, {
561
- type: "exact";
562
- term: string;
563
- }, {
564
- type: "exact";
565
- term: string;
566
- }>]>>>;
567
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
568
- type: z.ZodLiteral<"within">;
569
- location: z.ZodString;
570
- }, "strip", z.ZodTypeAny, {
571
- type: "within";
572
- location: string;
573
- }, {
574
- type: "within";
575
- location: string;
576
- }>, z.ZodObject<{
577
- type: z.ZodLiteral<"exact">;
578
- term: z.ZodString;
579
- }, "strip", z.ZodTypeAny, {
580
- type: "exact";
581
- term: string;
582
- }, {
583
- type: "exact";
584
- term: string;
585
- }>]>>>;
586
- assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
587
- type: z.ZodLiteral<"exact">;
588
- term: z.ZodString;
589
- }, "strip", z.ZodTypeAny, {
590
- type: "exact";
591
- term: string;
592
- }, {
593
- type: "exact";
594
- term: string;
595
- }>>>;
596
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
597
- type: z.ZodLiteral<"exact">;
598
- term: z.ZodString;
599
- }, "strip", z.ZodTypeAny, {
600
- type: "exact";
601
- term: string;
602
- }, {
603
- type: "exact";
604
- term: string;
605
- }>>>;
606
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
607
- type: z.ZodLiteral<"exact">;
608
- term: z.ZodString;
609
- }, "strip", z.ZodTypeAny, {
610
- type: "exact";
611
- term: string;
612
- }, {
613
- type: "exact";
614
- term: string;
615
- }>>>;
616
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
617
- type: z.ZodLiteral<"exact">;
618
- term: z.ZodString;
619
- }, "strip", z.ZodTypeAny, {
620
- type: "exact";
621
- term: string;
622
- }, {
623
- type: "exact";
624
- term: string;
625
- }>>>;
626
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
627
- type: z.ZodLiteral<"anyOf">;
628
- terms: z.ZodArray<z.ZodString, "many">;
629
- }, "strip", z.ZodTypeAny, {
630
- type: "anyOf";
631
- terms: string[];
632
- }, {
633
- type: "anyOf";
634
- terms: string[];
635
- }>, z.ZodObject<{
636
- type: z.ZodLiteral<"not">;
637
- term: z.ZodString;
638
- }, "strip", z.ZodTypeAny, {
639
- type: "not";
640
- term: string;
641
- }, {
642
- type: "not";
643
- term: string;
644
- }>]>, "many">>>;
645
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
646
- }, "strip", z.ZodTypeAny, {
647
- status?: {
648
- type: "anyOf";
649
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
650
- } | {
651
- type: "exact";
652
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
653
- } | undefined;
654
- title?: string | undefined;
655
- data?: any;
656
- createdAt?: {
657
- type: "exact";
658
- term: string;
659
- } | {
660
- type: "range";
661
- gte: string;
662
- lte: string;
663
- } | undefined;
664
- createdBy?: {
665
- type: "exact";
666
- term: string;
667
- } | undefined;
668
- createdAtLocation?: {
669
- type: "exact";
670
- term: string;
671
- } | {
672
- type: "within";
673
- location: string;
674
- } | undefined;
675
- assignedTo?: {
676
- type: "exact";
677
- term: string;
678
- } | undefined;
679
- updatedAt?: {
680
- type: "exact";
681
- term: string;
682
- } | {
683
- type: "range";
684
- gte: string;
685
- lte: string;
686
- } | undefined;
687
- trackingId?: {
688
- type: "exact";
689
- term: string;
690
- } | undefined;
691
- updatedAtLocation?: {
692
- type: "exact";
693
- term: string;
694
- } | {
695
- type: "within";
696
- location: string;
697
- } | undefined;
698
- updatedBy?: {
699
- type: "exact";
700
- term: string;
701
- } | undefined;
702
- flags?: ({
703
- type: "anyOf";
704
- terms: string[];
705
- } | {
706
- type: "not";
707
- term: string;
708
- })[] | undefined;
709
- eventType?: string | undefined;
710
- 'legalStatus.REGISTERED.createdAt'?: {
711
- type: "exact";
712
- term: string;
713
- } | {
714
- type: "range";
715
- gte: string;
716
- lte: string;
717
- } | undefined;
718
- 'legalStatus.REGISTERED.createdAtLocation'?: {
719
- type: "exact";
720
- term: string;
721
- } | {
722
- type: "within";
723
- location: string;
724
- } | undefined;
725
- }, {
726
- status?: {
727
- type: "anyOf";
728
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
729
- } | {
730
- type: "exact";
731
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
732
- } | undefined;
733
- title?: string | undefined;
734
- data?: any;
735
- createdAt?: {
736
- type: "exact";
737
- term: string;
738
- } | {
739
- type: "range";
740
- gte: string;
741
- lte: string;
742
- } | undefined;
743
- createdBy?: {
744
- type: "exact";
745
- term: string;
746
- } | undefined;
747
- createdAtLocation?: {
748
- type: "exact";
749
- term: string;
750
- } | {
751
- type: "within";
752
- location: string;
753
- } | undefined;
754
- assignedTo?: {
755
- type: "exact";
756
- term: string;
757
- } | undefined;
758
- updatedAt?: {
759
- type: "exact";
760
- term: string;
761
- } | {
762
- type: "range";
763
- gte: string;
764
- lte: string;
765
- } | undefined;
766
- trackingId?: {
767
- type: "exact";
768
- term: string;
769
- } | undefined;
770
- updatedAtLocation?: {
771
- type: "exact";
772
- term: string;
773
- } | {
774
- type: "within";
775
- location: string;
776
- } | undefined;
777
- updatedBy?: {
778
- type: "exact";
779
- term: string;
780
- } | undefined;
781
- flags?: ({
782
- type: "anyOf";
783
- terms: string[];
784
- } | {
785
- type: "not";
786
- term: string;
787
- })[] | undefined;
788
- eventType?: string | undefined;
789
- 'legalStatus.REGISTERED.createdAt'?: {
790
- type: "exact";
791
- term: string;
792
- } | {
793
- type: "range";
794
- gte: string;
795
- lte: string;
796
- } | undefined;
797
- 'legalStatus.REGISTERED.createdAtLocation'?: {
798
- type: "exact";
799
- term: string;
800
- } | {
801
- type: "within";
802
- location: string;
803
- } | undefined;
804
- }>;
805
- export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
806
- type: z.ZodLiteral<"or">;
807
- clauses: z.ZodArray<z.ZodObject<{
808
- title: z.ZodOptional<z.ZodString>;
809
- eventType: z.ZodOptional<z.ZodString>;
810
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
811
- type: z.ZodLiteral<"anyOf">;
812
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
813
- }, "strip", z.ZodTypeAny, {
814
- type: "anyOf";
815
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
816
- }, {
817
- type: "anyOf";
818
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
819
- }>, z.ZodObject<{
820
- type: z.ZodLiteral<"exact">;
821
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
822
- }, "strip", z.ZodTypeAny, {
823
- type: "exact";
824
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
825
- }, {
826
- type: "exact";
827
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
828
- }>]>>>;
829
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
830
- type: z.ZodLiteral<"exact">;
831
- term: z.ZodString;
832
- }, "strip", z.ZodTypeAny, {
833
- type: "exact";
834
- term: string;
835
- }, {
836
- type: "exact";
837
- term: string;
838
- }>, z.ZodObject<{
839
- type: z.ZodLiteral<"range">;
840
- gte: z.ZodString;
841
- lte: z.ZodString;
842
- }, "strip", z.ZodTypeAny, {
843
- type: "range";
844
- gte: string;
845
- lte: string;
846
- }, {
847
- type: "range";
848
- gte: string;
849
- lte: string;
850
- }>]>>>;
851
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
852
- type: z.ZodLiteral<"exact">;
853
- term: z.ZodString;
854
- }, "strip", z.ZodTypeAny, {
855
- type: "exact";
856
- term: string;
857
- }, {
858
- type: "exact";
859
- term: string;
860
- }>, z.ZodObject<{
861
- type: z.ZodLiteral<"range">;
862
- gte: z.ZodString;
863
- lte: z.ZodString;
864
- }, "strip", z.ZodTypeAny, {
865
- type: "range";
866
- gte: string;
867
- lte: string;
868
- }, {
869
- type: "range";
870
- gte: string;
871
- lte: string;
872
- }>]>>>;
873
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
874
- type: z.ZodLiteral<"exact">;
875
- term: z.ZodString;
876
- }, "strip", z.ZodTypeAny, {
877
- type: "exact";
878
- term: string;
879
- }, {
880
- type: "exact";
881
- term: string;
882
- }>, z.ZodObject<{
883
- type: z.ZodLiteral<"range">;
884
- gte: z.ZodString;
885
- lte: z.ZodString;
886
- }, "strip", z.ZodTypeAny, {
887
- type: "range";
888
- gte: string;
889
- lte: string;
890
- }, {
891
- type: "range";
892
- gte: string;
893
- lte: string;
894
- }>]>>>;
895
- 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
896
- type: z.ZodLiteral<"within">;
897
- location: z.ZodString;
898
- }, "strip", z.ZodTypeAny, {
899
- type: "within";
900
- location: string;
901
- }, {
902
- type: "within";
903
- location: string;
904
- }>, z.ZodObject<{
905
- type: z.ZodLiteral<"exact">;
906
- term: z.ZodString;
907
- }, "strip", z.ZodTypeAny, {
908
- type: "exact";
909
- term: string;
910
- }, {
911
- type: "exact";
912
- term: string;
913
- }>]>>>;
914
- createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
915
- type: z.ZodLiteral<"within">;
916
- location: z.ZodString;
917
- }, "strip", z.ZodTypeAny, {
918
- type: "within";
919
- location: string;
920
- }, {
921
- type: "within";
922
- location: string;
923
- }>, z.ZodObject<{
924
- type: z.ZodLiteral<"exact">;
925
- term: z.ZodString;
926
- }, "strip", z.ZodTypeAny, {
927
- type: "exact";
928
- term: string;
929
- }, {
930
- type: "exact";
931
- term: string;
932
- }>]>>>;
933
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
934
- type: z.ZodLiteral<"within">;
935
- location: z.ZodString;
936
- }, "strip", z.ZodTypeAny, {
937
- type: "within";
938
- location: string;
939
- }, {
940
- type: "within";
941
- location: string;
942
- }>, z.ZodObject<{
943
- type: z.ZodLiteral<"exact">;
944
- term: z.ZodString;
945
- }, "strip", z.ZodTypeAny, {
946
- type: "exact";
947
- term: string;
948
- }, {
949
- type: "exact";
950
- term: string;
951
- }>]>>>;
952
- assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
953
- type: z.ZodLiteral<"exact">;
954
- term: z.ZodString;
955
- }, "strip", z.ZodTypeAny, {
956
- type: "exact";
957
- term: string;
958
- }, {
959
- type: "exact";
960
- term: string;
961
- }>>>;
962
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
963
- type: z.ZodLiteral<"exact">;
964
- term: z.ZodString;
965
- }, "strip", z.ZodTypeAny, {
966
- type: "exact";
967
- term: string;
968
- }, {
969
- type: "exact";
970
- term: string;
971
- }>>>;
972
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
973
- type: z.ZodLiteral<"exact">;
974
- term: z.ZodString;
975
- }, "strip", z.ZodTypeAny, {
976
- type: "exact";
977
- term: string;
978
- }, {
979
- type: "exact";
980
- term: string;
981
- }>>>;
982
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
983
- type: z.ZodLiteral<"exact">;
984
- term: z.ZodString;
985
- }, "strip", z.ZodTypeAny, {
986
- type: "exact";
987
- term: string;
988
- }, {
989
- type: "exact";
990
- term: string;
991
- }>>>;
992
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
993
- type: z.ZodLiteral<"anyOf">;
994
- terms: z.ZodArray<z.ZodString, "many">;
995
- }, "strip", z.ZodTypeAny, {
996
- type: "anyOf";
997
- terms: string[];
998
- }, {
999
- type: "anyOf";
1000
- terms: string[];
1001
- }>, z.ZodObject<{
1002
- type: z.ZodLiteral<"not">;
1003
- term: z.ZodString;
1004
- }, "strip", z.ZodTypeAny, {
1005
- type: "not";
1006
- term: string;
1007
- }, {
1008
- type: "not";
1009
- term: string;
1010
- }>]>, "many">>>;
1011
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1012
- }, "strip", z.ZodTypeAny, {
1013
- status?: {
1014
- type: "anyOf";
1015
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1016
- } | {
1017
- type: "exact";
1018
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1019
- } | undefined;
1020
- title?: string | undefined;
1021
- data?: any;
1022
- createdAt?: {
1023
- type: "exact";
1024
- term: string;
1025
- } | {
1026
- type: "range";
1027
- gte: string;
1028
- lte: string;
1029
- } | undefined;
1030
- createdBy?: {
1031
- type: "exact";
1032
- term: string;
1033
- } | undefined;
1034
- createdAtLocation?: {
1035
- type: "exact";
1036
- term: string;
1037
- } | {
1038
- type: "within";
1039
- location: string;
1040
- } | undefined;
1041
- assignedTo?: {
1042
- type: "exact";
1043
- term: string;
1044
- } | undefined;
1045
- updatedAt?: {
1046
- type: "exact";
1047
- term: string;
1048
- } | {
1049
- type: "range";
1050
- gte: string;
1051
- lte: string;
1052
- } | undefined;
1053
- trackingId?: {
1054
- type: "exact";
1055
- term: string;
1056
- } | undefined;
1057
- updatedAtLocation?: {
1058
- type: "exact";
1059
- term: string;
1060
- } | {
1061
- type: "within";
1062
- location: string;
1063
- } | undefined;
1064
- updatedBy?: {
1065
- type: "exact";
1066
- term: string;
1067
- } | undefined;
1068
- flags?: ({
1069
- type: "anyOf";
1070
- terms: string[];
1071
- } | {
1072
- type: "not";
1073
- term: string;
1074
- })[] | undefined;
1075
- eventType?: string | undefined;
1076
- 'legalStatus.REGISTERED.createdAt'?: {
1077
- type: "exact";
1078
- term: string;
1079
- } | {
1080
- type: "range";
1081
- gte: string;
1082
- lte: string;
1083
- } | undefined;
1084
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1085
- type: "exact";
1086
- term: string;
1087
- } | {
1088
- type: "within";
1089
- location: string;
1090
- } | undefined;
1091
- }, {
1092
- status?: {
1093
- type: "anyOf";
1094
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1095
- } | {
1096
- type: "exact";
1097
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1098
- } | undefined;
1099
- title?: string | undefined;
1100
- data?: any;
1101
- createdAt?: {
1102
- type: "exact";
1103
- term: string;
1104
- } | {
1105
- type: "range";
1106
- gte: string;
1107
- lte: string;
1108
- } | undefined;
1109
- createdBy?: {
1110
- type: "exact";
1111
- term: string;
1112
- } | undefined;
1113
- createdAtLocation?: {
1114
- type: "exact";
1115
- term: string;
1116
- } | {
1117
- type: "within";
1118
- location: string;
1119
- } | undefined;
1120
- assignedTo?: {
1121
- type: "exact";
1122
- term: string;
1123
- } | undefined;
1124
- updatedAt?: {
1125
- type: "exact";
1126
- term: string;
1127
- } | {
1128
- type: "range";
1129
- gte: string;
1130
- lte: string;
1131
- } | undefined;
1132
- trackingId?: {
1133
- type: "exact";
1134
- term: string;
1135
- } | undefined;
1136
- updatedAtLocation?: {
1137
- type: "exact";
1138
- term: string;
1139
- } | {
1140
- type: "within";
1141
- location: string;
1142
- } | undefined;
1143
- updatedBy?: {
1144
- type: "exact";
1145
- term: string;
1146
- } | undefined;
1147
- flags?: ({
1148
- type: "anyOf";
1149
- terms: string[];
1150
- } | {
1151
- type: "not";
1152
- term: string;
1153
- })[] | undefined;
1154
- eventType?: string | undefined;
1155
- 'legalStatus.REGISTERED.createdAt'?: {
1156
- type: "exact";
1157
- term: string;
1158
- } | {
1159
- type: "range";
1160
- gte: string;
1161
- lte: string;
1162
- } | undefined;
1163
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1164
- type: "exact";
1165
- term: string;
1166
- } | {
1167
- type: "within";
1168
- location: string;
1169
- } | undefined;
1170
- }>, "many">;
1171
- }, "strip", z.ZodTypeAny, {
1172
- type: "or";
1173
- clauses: {
1174
- status?: {
1175
- type: "anyOf";
1176
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1177
- } | {
1178
- type: "exact";
1179
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1180
- } | undefined;
1181
- title?: string | undefined;
1182
- data?: any;
1183
- createdAt?: {
1184
- type: "exact";
1185
- term: string;
1186
- } | {
1187
- type: "range";
1188
- gte: string;
1189
- lte: string;
1190
- } | undefined;
1191
- createdBy?: {
1192
- type: "exact";
1193
- term: string;
1194
- } | undefined;
1195
- createdAtLocation?: {
1196
- type: "exact";
1197
- term: string;
1198
- } | {
1199
- type: "within";
1200
- location: string;
1201
- } | undefined;
1202
- assignedTo?: {
1203
- type: "exact";
1204
- term: string;
1205
- } | undefined;
1206
- updatedAt?: {
1207
- type: "exact";
1208
- term: string;
1209
- } | {
1210
- type: "range";
1211
- gte: string;
1212
- lte: string;
1213
- } | undefined;
1214
- trackingId?: {
1215
- type: "exact";
1216
- term: string;
1217
- } | undefined;
1218
- updatedAtLocation?: {
1219
- type: "exact";
1220
- term: string;
1221
- } | {
1222
- type: "within";
1223
- location: string;
1224
- } | undefined;
1225
- updatedBy?: {
1226
- type: "exact";
1227
- term: string;
1228
- } | undefined;
1229
- flags?: ({
1230
- type: "anyOf";
1231
- terms: string[];
1232
- } | {
1233
- type: "not";
1234
- term: string;
1235
- })[] | undefined;
1236
- eventType?: string | undefined;
1237
- 'legalStatus.REGISTERED.createdAt'?: {
1238
- type: "exact";
1239
- term: string;
1240
- } | {
1241
- type: "range";
1242
- gte: string;
1243
- lte: string;
1244
- } | undefined;
1245
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1246
- type: "exact";
1247
- term: string;
1248
- } | {
1249
- type: "within";
1250
- location: string;
1251
- } | undefined;
1252
- }[];
1253
- }, {
1254
- type: "or";
1255
- clauses: {
1256
- status?: {
1257
- type: "anyOf";
1258
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1259
- } | {
1260
- type: "exact";
1261
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1262
- } | undefined;
1263
- title?: string | undefined;
1264
- data?: any;
1265
- createdAt?: {
1266
- type: "exact";
1267
- term: string;
1268
- } | {
1269
- type: "range";
1270
- gte: string;
1271
- lte: string;
1272
- } | undefined;
1273
- createdBy?: {
1274
- type: "exact";
1275
- term: string;
1276
- } | undefined;
1277
- createdAtLocation?: {
1278
- type: "exact";
1279
- term: string;
1280
- } | {
1281
- type: "within";
1282
- location: string;
1283
- } | undefined;
1284
- assignedTo?: {
1285
- type: "exact";
1286
- term: string;
1287
- } | undefined;
1288
- updatedAt?: {
1289
- type: "exact";
1290
- term: string;
1291
- } | {
1292
- type: "range";
1293
- gte: string;
1294
- lte: string;
1295
- } | undefined;
1296
- trackingId?: {
1297
- type: "exact";
1298
- term: string;
1299
- } | undefined;
1300
- updatedAtLocation?: {
1301
- type: "exact";
1302
- term: string;
1303
- } | {
1304
- type: "within";
1305
- location: string;
1306
- } | undefined;
1307
- updatedBy?: {
1308
- type: "exact";
1309
- term: string;
1310
- } | undefined;
1311
- flags?: ({
1312
- type: "anyOf";
1313
- terms: string[];
1314
- } | {
1315
- type: "not";
1316
- term: string;
1317
- })[] | undefined;
1318
- eventType?: string | undefined;
1319
- 'legalStatus.REGISTERED.createdAt'?: {
1320
- type: "exact";
1321
- term: string;
1322
- } | {
1323
- type: "range";
1324
- gte: string;
1325
- lte: string;
1326
- } | undefined;
1327
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1328
- type: "exact";
1329
- term: string;
1330
- } | {
1331
- type: "within";
1332
- location: string;
1333
- } | undefined;
1334
- }[];
1335
- }>, z.ZodObject<{
1336
- type: z.ZodLiteral<"and">;
1337
- clauses: z.ZodArray<z.ZodObject<{
1338
- title: z.ZodOptional<z.ZodString>;
1339
- eventType: z.ZodOptional<z.ZodString>;
1340
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1341
- type: z.ZodLiteral<"anyOf">;
1342
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1343
- }, "strip", z.ZodTypeAny, {
1344
- type: "anyOf";
1345
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1346
- }, {
1347
- type: "anyOf";
1348
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1349
- }>, z.ZodObject<{
1350
- type: z.ZodLiteral<"exact">;
1351
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1352
- }, "strip", z.ZodTypeAny, {
1353
- type: "exact";
1354
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1355
- }, {
1356
- type: "exact";
1357
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1358
- }>]>>>;
1359
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1360
- type: z.ZodLiteral<"exact">;
1361
- term: z.ZodString;
1362
- }, "strip", z.ZodTypeAny, {
1363
- type: "exact";
1364
- term: string;
1365
- }, {
1366
- type: "exact";
1367
- term: string;
1368
- }>, z.ZodObject<{
1369
- type: z.ZodLiteral<"range">;
1370
- gte: z.ZodString;
1371
- lte: z.ZodString;
1372
- }, "strip", z.ZodTypeAny, {
1373
- type: "range";
1374
- gte: string;
1375
- lte: string;
1376
- }, {
1377
- type: "range";
1378
- gte: string;
1379
- lte: string;
1380
- }>]>>>;
1381
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1382
- type: z.ZodLiteral<"exact">;
1383
- term: z.ZodString;
1384
- }, "strip", z.ZodTypeAny, {
1385
- type: "exact";
1386
- term: string;
1387
- }, {
1388
- type: "exact";
1389
- term: string;
1390
- }>, z.ZodObject<{
1391
- type: z.ZodLiteral<"range">;
1392
- gte: z.ZodString;
1393
- lte: z.ZodString;
1394
- }, "strip", z.ZodTypeAny, {
1395
- type: "range";
1396
- gte: string;
1397
- lte: string;
1398
- }, {
1399
- type: "range";
1400
- gte: string;
1401
- lte: string;
1402
- }>]>>>;
1403
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1404
- type: z.ZodLiteral<"exact">;
1405
- term: z.ZodString;
1406
- }, "strip", z.ZodTypeAny, {
1407
- type: "exact";
1408
- term: string;
1409
- }, {
1410
- type: "exact";
1411
- term: string;
1412
- }>, z.ZodObject<{
1413
- type: z.ZodLiteral<"range">;
1414
- gte: z.ZodString;
1415
- lte: z.ZodString;
1416
- }, "strip", z.ZodTypeAny, {
1417
- type: "range";
1418
- gte: string;
1419
- lte: string;
1420
- }, {
1421
- type: "range";
1422
- gte: string;
1423
- lte: string;
1424
- }>]>>>;
1425
- 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1426
- type: z.ZodLiteral<"within">;
1427
- location: z.ZodString;
1428
- }, "strip", z.ZodTypeAny, {
1429
- type: "within";
1430
- location: string;
1431
- }, {
1432
- type: "within";
1433
- location: string;
1434
- }>, z.ZodObject<{
1435
- type: z.ZodLiteral<"exact">;
1436
- term: z.ZodString;
1437
- }, "strip", z.ZodTypeAny, {
1438
- type: "exact";
1439
- term: string;
1440
- }, {
1441
- type: "exact";
1442
- term: string;
1443
- }>]>>>;
1444
- createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1445
- type: z.ZodLiteral<"within">;
1446
- location: z.ZodString;
1447
- }, "strip", z.ZodTypeAny, {
1448
- type: "within";
1449
- location: string;
1450
- }, {
1451
- type: "within";
1452
- location: string;
1453
- }>, z.ZodObject<{
1454
- type: z.ZodLiteral<"exact">;
1455
- term: z.ZodString;
1456
- }, "strip", z.ZodTypeAny, {
1457
- type: "exact";
1458
- term: string;
1459
- }, {
1460
- type: "exact";
1461
- term: string;
1462
- }>]>>>;
1463
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1464
- type: z.ZodLiteral<"within">;
1465
- location: z.ZodString;
1466
- }, "strip", z.ZodTypeAny, {
1467
- type: "within";
1468
- location: string;
1469
- }, {
1470
- type: "within";
1471
- location: string;
1472
- }>, z.ZodObject<{
1473
- type: z.ZodLiteral<"exact">;
1474
- term: z.ZodString;
1475
- }, "strip", z.ZodTypeAny, {
1476
- type: "exact";
1477
- term: string;
1478
- }, {
1479
- type: "exact";
1480
- term: string;
1481
- }>]>>>;
1482
- assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1483
- type: z.ZodLiteral<"exact">;
1484
- term: z.ZodString;
1485
- }, "strip", z.ZodTypeAny, {
1486
- type: "exact";
1487
- term: string;
1488
- }, {
1489
- type: "exact";
1490
- term: string;
1491
- }>>>;
1492
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1493
- type: z.ZodLiteral<"exact">;
1494
- term: z.ZodString;
1495
- }, "strip", z.ZodTypeAny, {
1496
- type: "exact";
1497
- term: string;
1498
- }, {
1499
- type: "exact";
1500
- term: string;
1501
- }>>>;
1502
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1503
- type: z.ZodLiteral<"exact">;
1504
- term: z.ZodString;
1505
- }, "strip", z.ZodTypeAny, {
1506
- type: "exact";
1507
- term: string;
1508
- }, {
1509
- type: "exact";
1510
- term: string;
1511
- }>>>;
1512
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1513
- type: z.ZodLiteral<"exact">;
1514
- term: z.ZodString;
1515
- }, "strip", z.ZodTypeAny, {
1516
- type: "exact";
1517
- term: string;
1518
- }, {
1519
- type: "exact";
1520
- term: string;
1521
- }>>>;
1522
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1523
- type: z.ZodLiteral<"anyOf">;
1524
- terms: z.ZodArray<z.ZodString, "many">;
1525
- }, "strip", z.ZodTypeAny, {
1526
- type: "anyOf";
1527
- terms: string[];
1528
- }, {
1529
- type: "anyOf";
1530
- terms: string[];
1531
- }>, z.ZodObject<{
1532
- type: z.ZodLiteral<"not">;
1533
- term: z.ZodString;
1534
- }, "strip", z.ZodTypeAny, {
1535
- type: "not";
1536
- term: string;
1537
- }, {
1538
- type: "not";
1539
- term: string;
1540
- }>]>, "many">>>;
1541
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1542
- }, "strip", z.ZodTypeAny, {
1543
- status?: {
1544
- type: "anyOf";
1545
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1546
- } | {
1547
- type: "exact";
1548
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1549
- } | undefined;
1550
- title?: string | undefined;
1551
- data?: any;
1552
- createdAt?: {
1553
- type: "exact";
1554
- term: string;
1555
- } | {
1556
- type: "range";
1557
- gte: string;
1558
- lte: string;
1559
- } | undefined;
1560
- createdBy?: {
1561
- type: "exact";
1562
- term: string;
1563
- } | undefined;
1564
- createdAtLocation?: {
1565
- type: "exact";
1566
- term: string;
1567
- } | {
1568
- type: "within";
1569
- location: string;
1570
- } | undefined;
1571
- assignedTo?: {
1572
- type: "exact";
1573
- term: string;
1574
- } | undefined;
1575
- updatedAt?: {
1576
- type: "exact";
1577
- term: string;
1578
- } | {
1579
- type: "range";
1580
- gte: string;
1581
- lte: string;
1582
- } | undefined;
1583
- trackingId?: {
1584
- type: "exact";
1585
- term: string;
1586
- } | undefined;
1587
- updatedAtLocation?: {
1588
- type: "exact";
1589
- term: string;
1590
- } | {
1591
- type: "within";
1592
- location: string;
1593
- } | undefined;
1594
- updatedBy?: {
1595
- type: "exact";
1596
- term: string;
1597
- } | undefined;
1598
- flags?: ({
1599
- type: "anyOf";
1600
- terms: string[];
1601
- } | {
1602
- type: "not";
1603
- term: string;
1604
- })[] | undefined;
1605
- eventType?: string | undefined;
1606
- 'legalStatus.REGISTERED.createdAt'?: {
1607
- type: "exact";
1608
- term: string;
1609
- } | {
1610
- type: "range";
1611
- gte: string;
1612
- lte: string;
1613
- } | undefined;
1614
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1615
- type: "exact";
1616
- term: string;
1617
- } | {
1618
- type: "within";
1619
- location: string;
1620
- } | undefined;
1621
- }, {
1622
- status?: {
1623
- type: "anyOf";
1624
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1625
- } | {
1626
- type: "exact";
1627
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1628
- } | undefined;
1629
- title?: string | undefined;
1630
- data?: any;
1631
- createdAt?: {
1632
- type: "exact";
1633
- term: string;
1634
- } | {
1635
- type: "range";
1636
- gte: string;
1637
- lte: string;
1638
- } | undefined;
1639
- createdBy?: {
1640
- type: "exact";
1641
- term: string;
1642
- } | undefined;
1643
- createdAtLocation?: {
1644
- type: "exact";
1645
- term: string;
1646
- } | {
1647
- type: "within";
1648
- location: string;
1649
- } | undefined;
1650
- assignedTo?: {
1651
- type: "exact";
1652
- term: string;
1653
- } | undefined;
1654
- updatedAt?: {
1655
- type: "exact";
1656
- term: string;
1657
- } | {
1658
- type: "range";
1659
- gte: string;
1660
- lte: string;
1661
- } | undefined;
1662
- trackingId?: {
1663
- type: "exact";
1664
- term: string;
1665
- } | undefined;
1666
- updatedAtLocation?: {
1667
- type: "exact";
1668
- term: string;
1669
- } | {
1670
- type: "within";
1671
- location: string;
1672
- } | undefined;
1673
- updatedBy?: {
1674
- type: "exact";
1675
- term: string;
1676
- } | undefined;
1677
- flags?: ({
1678
- type: "anyOf";
1679
- terms: string[];
1680
- } | {
1681
- type: "not";
1682
- term: string;
1683
- })[] | undefined;
1684
- eventType?: string | undefined;
1685
- 'legalStatus.REGISTERED.createdAt'?: {
1686
- type: "exact";
1687
- term: string;
1688
- } | {
1689
- type: "range";
1690
- gte: string;
1691
- lte: string;
1692
- } | undefined;
1693
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1694
- type: "exact";
1695
- term: string;
1696
- } | {
1697
- type: "within";
1698
- location: string;
1699
- } | undefined;
1700
- }>, "many">;
1701
- }, "strip", z.ZodTypeAny, {
1702
- type: "and";
1703
- clauses: {
1704
- status?: {
1705
- type: "anyOf";
1706
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1707
- } | {
1708
- type: "exact";
1709
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1710
- } | undefined;
1711
- title?: string | undefined;
1712
- data?: any;
1713
- createdAt?: {
1714
- type: "exact";
1715
- term: string;
1716
- } | {
1717
- type: "range";
1718
- gte: string;
1719
- lte: string;
1720
- } | undefined;
1721
- createdBy?: {
1722
- type: "exact";
1723
- term: string;
1724
- } | undefined;
1725
- createdAtLocation?: {
1726
- type: "exact";
1727
- term: string;
1728
- } | {
1729
- type: "within";
1730
- location: string;
1731
- } | undefined;
1732
- assignedTo?: {
1733
- type: "exact";
1734
- term: string;
1735
- } | undefined;
1736
- updatedAt?: {
1737
- type: "exact";
1738
- term: string;
1739
- } | {
1740
- type: "range";
1741
- gte: string;
1742
- lte: string;
1743
- } | undefined;
1744
- trackingId?: {
1745
- type: "exact";
1746
- term: string;
1747
- } | undefined;
1748
- updatedAtLocation?: {
1749
- type: "exact";
1750
- term: string;
1751
- } | {
1752
- type: "within";
1753
- location: string;
1754
- } | undefined;
1755
- updatedBy?: {
1756
- type: "exact";
1757
- term: string;
1758
- } | undefined;
1759
- flags?: ({
1760
- type: "anyOf";
1761
- terms: string[];
1762
- } | {
1763
- type: "not";
1764
- term: string;
1765
- })[] | undefined;
1766
- eventType?: string | undefined;
1767
- 'legalStatus.REGISTERED.createdAt'?: {
1768
- type: "exact";
1769
- term: string;
1770
- } | {
1771
- type: "range";
1772
- gte: string;
1773
- lte: string;
1774
- } | undefined;
1775
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1776
- type: "exact";
1777
- term: string;
1778
- } | {
1779
- type: "within";
1780
- location: string;
1781
- } | undefined;
1782
- }[];
1783
- }, {
1784
- type: "and";
1785
- clauses: {
1786
- status?: {
1787
- type: "anyOf";
1788
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1789
- } | {
1790
- type: "exact";
1791
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1792
- } | undefined;
1793
- title?: string | undefined;
1794
- data?: any;
1795
- createdAt?: {
1796
- type: "exact";
1797
- term: string;
1798
- } | {
1799
- type: "range";
1800
- gte: string;
1801
- lte: string;
1802
- } | undefined;
1803
- createdBy?: {
1804
- type: "exact";
1805
- term: string;
1806
- } | undefined;
1807
- createdAtLocation?: {
1808
- type: "exact";
1809
- term: string;
1810
- } | {
1811
- type: "within";
1812
- location: string;
1813
- } | undefined;
1814
- assignedTo?: {
1815
- type: "exact";
1816
- term: string;
1817
- } | undefined;
1818
- updatedAt?: {
1819
- type: "exact";
1820
- term: string;
1821
- } | {
1822
- type: "range";
1823
- gte: string;
1824
- lte: string;
1825
- } | undefined;
1826
- trackingId?: {
1827
- type: "exact";
1828
- term: string;
1829
- } | undefined;
1830
- updatedAtLocation?: {
1831
- type: "exact";
1832
- term: string;
1833
- } | {
1834
- type: "within";
1835
- location: string;
1836
- } | undefined;
1837
- updatedBy?: {
1838
- type: "exact";
1839
- term: string;
1840
- } | undefined;
1841
- flags?: ({
1842
- type: "anyOf";
1843
- terms: string[];
1844
- } | {
1845
- type: "not";
1846
- term: string;
1847
- })[] | undefined;
1848
- eventType?: string | undefined;
1849
- 'legalStatus.REGISTERED.createdAt'?: {
1850
- type: "exact";
1851
- term: string;
1852
- } | {
1853
- type: "range";
1854
- gte: string;
1855
- lte: string;
1856
- } | undefined;
1857
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1858
- type: "exact";
1859
- term: string;
1860
- } | {
1861
- type: "within";
1862
- location: string;
1863
- } | undefined;
1864
- }[];
1865
- }>]>;
1866
- export type QueryType = z.infer<typeof QueryType>;
1867
- export type QueryExpression = z.infer<typeof QueryExpression>;
1868
- export {};
1869
61
  //# sourceMappingURL=EventIndex.d.ts.map