@opencrvs/toolkit 1.8.0-rc.f9d33b7 → 1.8.0-rc.f9f9d64

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 (42) hide show
  1. package/dist/commons/api/router.d.ts +15502 -4866
  2. package/dist/commons/conditionals/conditionals.d.ts +8 -3
  3. package/dist/commons/conditionals/validate.d.ts +6 -0
  4. package/dist/commons/events/ActionConfig.d.ts +69917 -38926
  5. package/dist/commons/events/ActionDocument.d.ts +2095 -484
  6. package/dist/commons/events/ActionInput.d.ts +1515 -243
  7. package/dist/commons/events/ActionType.d.ts +4 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +709 -48
  9. package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  13. package/dist/commons/events/Draft.d.ts +129 -30
  14. package/dist/commons/events/EventConfig.d.ts +27486 -12195
  15. package/dist/commons/events/EventDocument.d.ts +1269 -357
  16. package/dist/commons/events/EventIndex.d.ts +970 -316
  17. package/dist/commons/events/EventInput.d.ts +0 -13
  18. package/dist/commons/events/EventMetadata.d.ts +290 -44
  19. package/dist/commons/events/FieldConfig.d.ts +2795 -1142
  20. package/dist/commons/events/FieldType.d.ts +6 -2
  21. package/dist/commons/events/FieldTypeMapping.d.ts +103 -54
  22. package/dist/commons/events/FieldValue.d.ts +48 -7
  23. package/dist/commons/events/FormConfig.d.ts +19440 -9126
  24. package/dist/commons/events/PageConfig.d.ts +4646 -2112
  25. package/dist/commons/events/SummaryConfig.d.ts +17 -5
  26. package/dist/commons/events/User.d.ts +31 -7
  27. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  28. package/dist/commons/events/WorkqueueConfig.d.ts +4775 -16
  29. package/dist/commons/events/defineConfig.d.ts +2911 -626
  30. package/dist/commons/events/event.d.ts +37 -8
  31. package/dist/commons/events/field.d.ts +29 -20
  32. package/dist/commons/events/index.d.ts +4 -0
  33. package/dist/commons/events/scopes.d.ts +20 -1
  34. package/dist/commons/events/serializer.d.ts +2 -0
  35. package/dist/commons/events/test.utils.d.ts +147 -41
  36. package/dist/commons/events/utils.d.ts +10291 -318
  37. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  38. package/dist/conditionals/index.js +45 -8
  39. package/dist/events/index.js +3404 -1468
  40. package/dist/scopes/index.d.ts +158 -1
  41. package/dist/scopes/index.js +152 -1
  42. package/package.json +1 -1
@@ -2,61 +2,408 @@ import { z, ZodType } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
3
  id: z.ZodString;
4
4
  type: z.ZodString;
5
- status: z.ZodNativeEnum<{
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";
5
+ status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
6
+ legalStatuses: z.ZodObject<{
7
+ DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8
+ createdAt: z.ZodString;
9
+ createdBy: z.ZodString;
10
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ acceptedAt: z.ZodString;
12
+ createdByRole: z.ZodString;
13
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ createdAt: string;
16
+ createdBy: string;
17
+ createdByRole: string;
18
+ acceptedAt: string;
19
+ createdBySignature?: string | null | undefined;
20
+ createdAtLocation?: string | null | undefined;
21
+ }, {
22
+ createdAt: string;
23
+ createdBy: string;
24
+ createdByRole: string;
25
+ acceptedAt: string;
26
+ createdBySignature?: string | null | undefined;
27
+ createdAtLocation?: string | null | undefined;
28
+ }>>>;
29
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
30
+ createdAt: z.ZodString;
31
+ createdBy: z.ZodString;
32
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ acceptedAt: z.ZodString;
34
+ createdByRole: z.ZodString;
35
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ }, {
37
+ registrationNumber: z.ZodString;
38
+ }>, "strip", z.ZodTypeAny, {
39
+ createdAt: string;
40
+ createdBy: string;
41
+ createdByRole: string;
42
+ registrationNumber: string;
43
+ acceptedAt: string;
44
+ createdBySignature?: string | null | undefined;
45
+ createdAtLocation?: string | null | undefined;
46
+ }, {
47
+ createdAt: string;
48
+ createdBy: string;
49
+ createdByRole: string;
50
+ registrationNumber: string;
51
+ acceptedAt: string;
52
+ createdBySignature?: string | null | undefined;
53
+ createdAtLocation?: string | null | undefined;
54
+ }>>>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ DECLARED?: {
57
+ createdAt: string;
58
+ createdBy: string;
59
+ createdByRole: string;
60
+ acceptedAt: string;
61
+ createdBySignature?: string | null | undefined;
62
+ createdAtLocation?: string | null | undefined;
63
+ } | null | undefined;
64
+ REGISTERED?: {
65
+ createdAt: string;
66
+ createdBy: string;
67
+ createdByRole: string;
68
+ registrationNumber: string;
69
+ acceptedAt: string;
70
+ createdBySignature?: string | null | undefined;
71
+ createdAtLocation?: string | null | undefined;
72
+ } | null | undefined;
73
+ }, {
74
+ DECLARED?: {
75
+ createdAt: string;
76
+ createdBy: string;
77
+ createdByRole: string;
78
+ acceptedAt: string;
79
+ createdBySignature?: string | null | undefined;
80
+ createdAtLocation?: string | null | undefined;
81
+ } | null | undefined;
82
+ REGISTERED?: {
83
+ createdAt: string;
84
+ createdBy: string;
85
+ createdByRole: string;
86
+ registrationNumber: string;
87
+ acceptedAt: string;
88
+ createdBySignature?: string | null | undefined;
89
+ createdAtLocation?: string | null | undefined;
90
+ } | null | undefined;
14
91
  }>;
15
92
  createdAt: z.ZodString;
16
93
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
94
  createdBy: z.ZodString;
18
95
  updatedByUserRole: z.ZodString;
19
- createdAtLocation: z.ZodString;
20
- updatedAtLocation: z.ZodString;
96
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
99
  updatedAt: z.ZodString;
22
100
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- updatedBy: z.ZodString;
101
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
102
  trackingId: z.ZodString;
25
- registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
104
+ readonly CERTIFICATE_PRINTED: "certificate-printed";
105
+ }>]>, "many">;
26
106
  }, {
27
- declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
107
+ 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<{
108
+ filename: z.ZodString;
109
+ originalFilename: z.ZodString;
110
+ type: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ type: string;
113
+ filename: string;
114
+ originalFilename: string;
115
+ }, {
116
+ type: string;
117
+ filename: string;
118
+ originalFilename: string;
119
+ }>, z.ZodArray<z.ZodObject<{
120
+ filename: z.ZodString;
121
+ originalFilename: z.ZodString;
122
+ type: z.ZodString;
123
+ option: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ type: string;
126
+ option: string;
127
+ filename: string;
128
+ originalFilename: string;
129
+ }, {
130
+ type: string;
131
+ option: string;
132
+ filename: string;
133
+ originalFilename: string;
134
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
135
+ country: z.ZodString;
136
+ addressType: z.ZodLiteral<"DOMESTIC">;
137
+ province: z.ZodString;
138
+ district: z.ZodString;
139
+ }, {
140
+ urbanOrRural: z.ZodLiteral<"URBAN">;
141
+ town: z.ZodOptional<z.ZodString>;
142
+ residentialArea: z.ZodOptional<z.ZodString>;
143
+ street: z.ZodOptional<z.ZodString>;
144
+ number: z.ZodOptional<z.ZodString>;
145
+ zipCode: z.ZodOptional<z.ZodString>;
146
+ }>, "strip", z.ZodTypeAny, {
147
+ country: string;
148
+ district: string;
149
+ addressType: "DOMESTIC";
150
+ province: string;
151
+ urbanOrRural: "URBAN";
152
+ number?: string | undefined;
153
+ town?: string | undefined;
154
+ residentialArea?: string | undefined;
155
+ street?: string | undefined;
156
+ zipCode?: string | undefined;
157
+ }, {
158
+ country: string;
159
+ district: string;
160
+ addressType: "DOMESTIC";
161
+ province: string;
162
+ urbanOrRural: "URBAN";
163
+ number?: string | undefined;
164
+ town?: string | undefined;
165
+ residentialArea?: string | undefined;
166
+ street?: string | undefined;
167
+ zipCode?: string | undefined;
168
+ }>, z.ZodObject<z.objectUtil.extendShape<{
169
+ country: z.ZodString;
170
+ addressType: z.ZodLiteral<"DOMESTIC">;
171
+ province: z.ZodString;
172
+ district: z.ZodString;
173
+ }, {
174
+ urbanOrRural: z.ZodLiteral<"RURAL">;
175
+ village: z.ZodOptional<z.ZodString>;
176
+ }>, "strip", z.ZodTypeAny, {
177
+ country: string;
178
+ district: string;
179
+ addressType: "DOMESTIC";
180
+ province: string;
181
+ urbanOrRural: "RURAL";
182
+ village?: string | undefined;
183
+ }, {
184
+ country: string;
185
+ district: string;
186
+ addressType: "DOMESTIC";
187
+ province: string;
188
+ urbanOrRural: "RURAL";
189
+ village?: string | undefined;
190
+ }>, z.ZodUndefined, z.ZodObject<{
191
+ country: z.ZodString;
192
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
193
+ state: z.ZodString;
194
+ district2: z.ZodString;
195
+ cityOrTown: z.ZodOptional<z.ZodString>;
196
+ addressLine1: z.ZodOptional<z.ZodString>;
197
+ addressLine2: z.ZodOptional<z.ZodString>;
198
+ addressLine3: z.ZodOptional<z.ZodString>;
199
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ country: string;
202
+ state: string;
203
+ addressType: "INTERNATIONAL";
204
+ district2: string;
205
+ cityOrTown?: string | undefined;
206
+ addressLine1?: string | undefined;
207
+ addressLine2?: string | undefined;
208
+ addressLine3?: string | undefined;
209
+ postcodeOrZip?: string | undefined;
210
+ }, {
211
+ country: string;
212
+ state: string;
213
+ addressType: "INTERNATIONAL";
214
+ district2: string;
215
+ cityOrTown?: string | undefined;
216
+ addressLine1?: string | undefined;
217
+ addressLine2?: string | undefined;
218
+ addressLine3?: string | undefined;
219
+ postcodeOrZip?: string | undefined;
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]>]>>;
28
245
  }>, "strip", z.ZodTypeAny, {
29
246
  type: string;
30
247
  id: string;
31
248
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
32
249
  createdAt: string;
33
250
  createdBy: string;
34
- declaration: Record<string, any>;
35
- createdAtLocation: string;
36
- updatedAtLocation: string;
251
+ declaration: Record<string, string | number | boolean | {
252
+ type: string;
253
+ filename: string;
254
+ originalFilename: string;
255
+ } | {
256
+ country: string;
257
+ district: string;
258
+ addressType: "DOMESTIC";
259
+ province: string;
260
+ urbanOrRural: "URBAN";
261
+ number?: string | undefined;
262
+ town?: string | undefined;
263
+ residentialArea?: string | undefined;
264
+ street?: string | undefined;
265
+ zipCode?: string | undefined;
266
+ } | {
267
+ country: string;
268
+ district: string;
269
+ addressType: "DOMESTIC";
270
+ province: string;
271
+ urbanOrRural: "RURAL";
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;
281
+ } | {
282
+ country: string;
283
+ state: string;
284
+ addressType: "INTERNATIONAL";
285
+ district2: string;
286
+ cityOrTown?: string | undefined;
287
+ addressLine1?: string | undefined;
288
+ addressLine2?: string | undefined;
289
+ addressLine3?: string | undefined;
290
+ postcodeOrZip?: string | undefined;
291
+ } | {
292
+ type: string;
293
+ option: string;
294
+ filename: string;
295
+ originalFilename: string;
296
+ }[] | [string, string] | null | undefined>;
37
297
  updatedAt: string;
38
298
  trackingId: string;
299
+ legalStatuses: {
300
+ DECLARED?: {
301
+ createdAt: string;
302
+ createdBy: string;
303
+ createdByRole: string;
304
+ acceptedAt: string;
305
+ createdBySignature?: string | null | undefined;
306
+ createdAtLocation?: string | null | undefined;
307
+ } | null | undefined;
308
+ REGISTERED?: {
309
+ createdAt: string;
310
+ createdBy: string;
311
+ createdByRole: string;
312
+ registrationNumber: string;
313
+ acceptedAt: string;
314
+ createdBySignature?: string | null | undefined;
315
+ createdAtLocation?: string | null | undefined;
316
+ } | null | undefined;
317
+ };
39
318
  updatedByUserRole: string;
40
- updatedBy: string;
319
+ flags: string[];
320
+ createdBySignature?: string | null | undefined;
321
+ createdAtLocation?: string | null | undefined;
41
322
  assignedTo?: string | null | undefined;
42
- registrationNumber?: string | null | undefined;
43
323
  dateOfEvent?: string | null | undefined;
324
+ updatedAtLocation?: string | null | undefined;
325
+ updatedBy?: string | null | undefined;
44
326
  }, {
45
327
  type: string;
46
328
  id: string;
47
329
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
48
330
  createdAt: string;
49
331
  createdBy: string;
50
- declaration: Record<string, any>;
51
- createdAtLocation: string;
52
- updatedAtLocation: string;
332
+ declaration: Record<string, string | number | boolean | {
333
+ type: string;
334
+ filename: string;
335
+ originalFilename: string;
336
+ } | {
337
+ country: string;
338
+ district: string;
339
+ addressType: "DOMESTIC";
340
+ province: string;
341
+ urbanOrRural: "URBAN";
342
+ number?: string | undefined;
343
+ town?: string | undefined;
344
+ residentialArea?: string | undefined;
345
+ street?: string | undefined;
346
+ zipCode?: string | undefined;
347
+ } | {
348
+ country: string;
349
+ district: string;
350
+ addressType: "DOMESTIC";
351
+ province: string;
352
+ urbanOrRural: "RURAL";
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;
362
+ } | {
363
+ country: string;
364
+ state: string;
365
+ addressType: "INTERNATIONAL";
366
+ district2: string;
367
+ cityOrTown?: string | undefined;
368
+ addressLine1?: string | undefined;
369
+ addressLine2?: string | undefined;
370
+ addressLine3?: string | undefined;
371
+ postcodeOrZip?: string | undefined;
372
+ } | {
373
+ type: string;
374
+ option: string;
375
+ filename: string;
376
+ originalFilename: string;
377
+ }[] | [string, string] | null | undefined>;
53
378
  updatedAt: string;
54
379
  trackingId: string;
380
+ legalStatuses: {
381
+ DECLARED?: {
382
+ createdAt: string;
383
+ createdBy: string;
384
+ createdByRole: string;
385
+ acceptedAt: string;
386
+ createdBySignature?: string | null | undefined;
387
+ createdAtLocation?: string | null | undefined;
388
+ } | null | undefined;
389
+ REGISTERED?: {
390
+ createdAt: string;
391
+ createdBy: string;
392
+ createdByRole: string;
393
+ registrationNumber: string;
394
+ acceptedAt: string;
395
+ createdBySignature?: string | null | undefined;
396
+ createdAtLocation?: string | null | undefined;
397
+ } | null | undefined;
398
+ };
55
399
  updatedByUserRole: string;
56
- updatedBy: string;
400
+ flags: string[];
401
+ createdBySignature?: string | null | undefined;
402
+ createdAtLocation?: string | null | undefined;
57
403
  assignedTo?: string | null | undefined;
58
- registrationNumber?: string | null | undefined;
59
404
  dateOfEvent?: string | null | undefined;
405
+ updatedAtLocation?: string | null | undefined;
406
+ updatedBy?: string | null | undefined;
60
407
  }>;
61
408
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
62
409
  type: z.ZodString;
@@ -67,7 +414,7 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
67
414
  }>>;
68
415
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
69
416
  export type EventIndex = z.infer<typeof EventIndex>;
70
- declare const Fuzzy: z.ZodObject<{
417
+ export declare const Fuzzy: z.ZodObject<{
71
418
  type: z.ZodLiteral<"fuzzy">;
72
419
  term: z.ZodString;
73
420
  }, "strip", z.ZodTypeAny, {
@@ -77,7 +424,7 @@ declare const Fuzzy: z.ZodObject<{
77
424
  type: "fuzzy";
78
425
  term: string;
79
426
  }>;
80
- declare const Exact: z.ZodObject<{
427
+ export declare const Exact: z.ZodObject<{
81
428
  type: z.ZodLiteral<"exact">;
82
429
  term: z.ZodString;
83
430
  }, "strip", z.ZodTypeAny, {
@@ -87,7 +434,7 @@ declare const Exact: z.ZodObject<{
87
434
  type: "exact";
88
435
  term: string;
89
436
  }>;
90
- declare const AnyOf: z.ZodObject<{
437
+ export declare const AnyOf: z.ZodObject<{
91
438
  type: z.ZodLiteral<"anyOf">;
92
439
  terms: z.ZodArray<z.ZodString, "many">;
93
440
  }, "strip", z.ZodTypeAny, {
@@ -97,7 +444,27 @@ declare const AnyOf: z.ZodObject<{
97
444
  type: "anyOf";
98
445
  terms: string[];
99
446
  }>;
100
- declare const Range: z.ZodObject<{
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<{
101
468
  type: z.ZodLiteral<"range">;
102
469
  gte: z.ZodString;
103
470
  lte: z.ZodString;
@@ -110,7 +477,17 @@ declare const Range: z.ZodObject<{
110
477
  gte: string;
111
478
  lte: string;
112
479
  }>;
113
- declare const Within: z.ZodObject<{
480
+ export declare const Not: z.ZodObject<{
481
+ type: z.ZodLiteral<"not">;
482
+ term: z.ZodString;
483
+ }, "strip", z.ZodTypeAny, {
484
+ type: "not";
485
+ term: string;
486
+ }, {
487
+ type: "not";
488
+ term: string;
489
+ }>;
490
+ export declare const Within: z.ZodObject<{
114
491
  type: z.ZodLiteral<"within">;
115
492
  location: z.ZodString;
116
493
  }, "strip", z.ZodTypeAny, {
@@ -120,25 +497,56 @@ declare const Within: z.ZodObject<{
120
497
  type: "within";
121
498
  location: string;
122
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
+ }>]>;
123
522
  export declare const QueryInput: ZodType;
124
- export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
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>;
125
524
  type QueryMap = {
126
525
  [key: string]: BaseInput | QueryMap;
127
526
  };
128
527
  export type QueryInputType = BaseInput | QueryMap;
129
- declare const QueryExpression: z.ZodObject<{
130
- type: z.ZodOptional<z.ZodLiteral<"and">>;
528
+ export declare const QueryExpression: z.ZodObject<{
131
529
  eventType: z.ZodOptional<z.ZodString>;
132
530
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
133
531
  type: z.ZodLiteral<"anyOf">;
134
- terms: z.ZodArray<z.ZodString, "many">;
532
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
135
533
  }, "strip", z.ZodTypeAny, {
136
534
  type: "anyOf";
137
- terms: string[];
535
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
138
536
  }, {
139
537
  type: "anyOf";
140
- terms: string[];
538
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
141
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<{
142
550
  type: z.ZodLiteral<"exact">;
143
551
  term: z.ZodString;
144
552
  }, "strip", z.ZodTypeAny, {
@@ -147,8 +555,20 @@ declare const QueryExpression: z.ZodObject<{
147
555
  }, {
148
556
  type: "exact";
149
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;
150
570
  }>]>>>;
151
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
571
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
152
572
  type: z.ZodLiteral<"exact">;
153
573
  term: z.ZodString;
154
574
  }, "strip", z.ZodTypeAny, {
@@ -170,7 +590,7 @@ declare const QueryExpression: z.ZodObject<{
170
590
  gte: string;
171
591
  lte: string;
172
592
  }>]>>>;
173
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
593
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
174
594
  type: z.ZodLiteral<"exact">;
175
595
  term: z.ZodString;
176
596
  }, "strip", z.ZodTypeAny, {
@@ -192,7 +612,36 @@ declare const QueryExpression: z.ZodObject<{
192
612
  gte: string;
193
613
  lte: string;
194
614
  }>]>>>;
195
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
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<{
196
645
  type: z.ZodLiteral<"within">;
197
646
  location: z.ZodString;
198
647
  }, "strip", z.ZodTypeAny, {
@@ -230,6 +679,16 @@ declare const QueryExpression: z.ZodObject<{
230
679
  type: "exact";
231
680
  term: string;
232
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
+ }>>>;
233
692
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
234
693
  type: z.ZodLiteral<"exact">;
235
694
  term: z.ZodString;
@@ -260,15 +719,33 @@ declare const QueryExpression: z.ZodObject<{
260
719
  type: "exact";
261
720
  term: string;
262
721
  }>>>;
722
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
723
+ type: z.ZodLiteral<"anyOf">;
724
+ terms: z.ZodArray<z.ZodString, "many">;
725
+ }, "strip", z.ZodTypeAny, {
726
+ type: "anyOf";
727
+ terms: string[];
728
+ }, {
729
+ type: "anyOf";
730
+ terms: string[];
731
+ }>, z.ZodObject<{
732
+ type: z.ZodLiteral<"not">;
733
+ term: z.ZodString;
734
+ }, "strip", z.ZodTypeAny, {
735
+ type: "not";
736
+ term: string;
737
+ }, {
738
+ type: "not";
739
+ term: string;
740
+ }>]>, "many">>>;
263
741
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
264
742
  }, "strip", z.ZodTypeAny, {
265
- type?: "and" | undefined;
266
743
  status?: {
267
744
  type: "exact";
268
- term: string;
745
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
269
746
  } | {
270
747
  type: "anyOf";
271
- terms: string[];
748
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
272
749
  } | undefined;
273
750
  data?: any;
274
751
  createdAt?: {
@@ -283,13 +760,17 @@ declare const QueryExpression: z.ZodObject<{
283
760
  type: "exact";
284
761
  term: string;
285
762
  } | undefined;
286
- updatedAtLocation?: {
763
+ createdAtLocation?: {
287
764
  type: "exact";
288
765
  term: string;
289
766
  } | {
290
767
  type: "within";
291
768
  location: string;
292
769
  } | undefined;
770
+ assignedTo?: {
771
+ type: "exact";
772
+ term: string;
773
+ } | undefined;
293
774
  updatedAt?: {
294
775
  type: "exact";
295
776
  term: string;
@@ -302,26 +783,51 @@ declare const QueryExpression: z.ZodObject<{
302
783
  type: "exact";
303
784
  term: string;
304
785
  } | undefined;
786
+ updatedAtLocation?: {
787
+ type: "exact";
788
+ term: string;
789
+ } | {
790
+ type: "within";
791
+ location: string;
792
+ } | undefined;
305
793
  updatedBy?: {
306
794
  type: "exact";
307
795
  term: string;
308
796
  } | undefined;
797
+ flags?: ({
798
+ type: "anyOf";
799
+ terms: string[];
800
+ } | {
801
+ type: "not";
802
+ term: string;
803
+ })[] | undefined;
309
804
  eventType?: string | undefined;
310
- createAtLocation?: {
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'?: {
311
814
  type: "exact";
312
815
  term: string;
313
816
  } | {
314
817
  type: "within";
315
818
  location: string;
316
819
  } | undefined;
820
+ 'legalStatus.REGISTERED.registrationNumber'?: {
821
+ type: "exact";
822
+ term: string;
823
+ } | undefined;
317
824
  }, {
318
- type?: "and" | undefined;
319
825
  status?: {
320
826
  type: "exact";
321
- term: string;
827
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
322
828
  } | {
323
829
  type: "anyOf";
324
- terms: string[];
830
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
325
831
  } | undefined;
326
832
  data?: any;
327
833
  createdAt?: {
@@ -336,13 +842,17 @@ declare const QueryExpression: z.ZodObject<{
336
842
  type: "exact";
337
843
  term: string;
338
844
  } | undefined;
339
- updatedAtLocation?: {
845
+ createdAtLocation?: {
340
846
  type: "exact";
341
847
  term: string;
342
848
  } | {
343
849
  type: "within";
344
850
  location: string;
345
851
  } | undefined;
852
+ assignedTo?: {
853
+ type: "exact";
854
+ term: string;
855
+ } | undefined;
346
856
  updatedAt?: {
347
857
  type: "exact";
348
858
  term: string;
@@ -355,276 +865,69 @@ declare const QueryExpression: z.ZodObject<{
355
865
  type: "exact";
356
866
  term: string;
357
867
  } | undefined;
358
- updatedBy?: {
359
- type: "exact";
360
- term: string;
361
- } | undefined;
362
- eventType?: string | undefined;
363
- createAtLocation?: {
868
+ updatedAtLocation?: {
364
869
  type: "exact";
365
870
  term: string;
366
871
  } | {
367
872
  type: "within";
368
873
  location: string;
369
874
  } | undefined;
370
- }>;
371
- export type QueryExpression = z.infer<typeof QueryExpression>;
372
- export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
373
- type: z.ZodOptional<z.ZodLiteral<"and">>;
374
- eventType: z.ZodOptional<z.ZodString>;
375
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
376
- type: z.ZodLiteral<"anyOf">;
377
- terms: z.ZodArray<z.ZodString, "many">;
378
- }, "strip", z.ZodTypeAny, {
379
- type: "anyOf";
380
- terms: string[];
381
- }, {
382
- type: "anyOf";
383
- terms: string[];
384
- }>, z.ZodObject<{
385
- type: z.ZodLiteral<"exact">;
386
- term: z.ZodString;
387
- }, "strip", z.ZodTypeAny, {
388
- type: "exact";
389
- term: string;
390
- }, {
875
+ updatedBy?: {
391
876
  type: "exact";
392
877
  term: string;
393
- }>]>>>;
394
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
395
- type: z.ZodLiteral<"exact">;
396
- term: z.ZodString;
397
- }, "strip", z.ZodTypeAny, {
398
- type: "exact";
878
+ } | undefined;
879
+ flags?: ({
880
+ type: "anyOf";
881
+ terms: string[];
882
+ } | {
883
+ type: "not";
399
884
  term: string;
400
- }, {
885
+ })[] | undefined;
886
+ eventType?: string | undefined;
887
+ 'legalStatus.REGISTERED.createdAt'?: {
401
888
  type: "exact";
402
889
  term: string;
403
- }>, z.ZodObject<{
404
- type: z.ZodLiteral<"range">;
405
- gte: z.ZodString;
406
- lte: z.ZodString;
407
- }, "strip", z.ZodTypeAny, {
408
- type: "range";
409
- gte: string;
410
- lte: string;
411
- }, {
890
+ } | {
412
891
  type: "range";
413
892
  gte: string;
414
893
  lte: string;
415
- }>]>>>;
416
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
417
- type: z.ZodLiteral<"exact">;
418
- term: z.ZodString;
419
- }, "strip", z.ZodTypeAny, {
420
- type: "exact";
421
- term: string;
422
- }, {
894
+ } | undefined;
895
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
423
896
  type: "exact";
424
897
  term: string;
425
- }>, z.ZodObject<{
426
- type: z.ZodLiteral<"range">;
427
- gte: z.ZodString;
428
- lte: z.ZodString;
429
- }, "strip", z.ZodTypeAny, {
430
- type: "range";
431
- gte: string;
432
- lte: string;
433
- }, {
434
- type: "range";
435
- gte: string;
436
- lte: string;
437
- }>]>>>;
438
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
439
- type: z.ZodLiteral<"within">;
440
- location: z.ZodString;
441
- }, "strip", z.ZodTypeAny, {
898
+ } | {
442
899
  type: "within";
443
900
  location: string;
444
- }, {
445
- type: "within";
446
- location: string;
447
- }>, z.ZodObject<{
448
- type: z.ZodLiteral<"exact">;
449
- term: z.ZodString;
450
- }, "strip", z.ZodTypeAny, {
451
- type: "exact";
452
- term: string;
453
- }, {
454
- type: "exact";
455
- term: string;
456
- }>]>>>;
457
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
458
- type: z.ZodLiteral<"within">;
459
- location: z.ZodString;
460
- }, "strip", z.ZodTypeAny, {
461
- type: "within";
462
- location: string;
463
- }, {
464
- type: "within";
465
- location: string;
466
- }>, z.ZodObject<{
467
- type: z.ZodLiteral<"exact">;
468
- term: z.ZodString;
469
- }, "strip", z.ZodTypeAny, {
470
- type: "exact";
471
- term: string;
472
- }, {
473
- type: "exact";
474
- term: string;
475
- }>]>>>;
476
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
477
- type: z.ZodLiteral<"exact">;
478
- term: z.ZodString;
479
- }, "strip", z.ZodTypeAny, {
480
- type: "exact";
481
- term: string;
482
- }, {
483
- type: "exact";
484
- term: string;
485
- }>>>;
486
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
487
- type: z.ZodLiteral<"exact">;
488
- term: z.ZodString;
489
- }, "strip", z.ZodTypeAny, {
490
- type: "exact";
491
- term: string;
492
- }, {
493
- type: "exact";
494
- term: string;
495
- }>>>;
496
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
497
- type: z.ZodLiteral<"exact">;
498
- term: z.ZodString;
499
- }, "strip", z.ZodTypeAny, {
500
- type: "exact";
501
- term: string;
502
- }, {
503
- type: "exact";
504
- term: string;
505
- }>>>;
506
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
507
- }, "strip", z.ZodTypeAny, {
508
- type?: "and" | undefined;
509
- status?: {
510
- type: "exact";
511
- term: string;
512
- } | {
513
- type: "anyOf";
514
- terms: string[];
515
- } | undefined;
516
- data?: any;
517
- createdAt?: {
518
- type: "exact";
519
- term: string;
520
- } | {
521
- type: "range";
522
- gte: string;
523
- lte: string;
524
- } | undefined;
525
- createdBy?: {
526
- type: "exact";
527
- term: string;
528
- } | undefined;
529
- updatedAtLocation?: {
530
- type: "exact";
531
- term: string;
532
- } | {
533
- type: "within";
534
- location: string;
535
- } | undefined;
536
- updatedAt?: {
537
- type: "exact";
538
- term: string;
539
- } | {
540
- type: "range";
541
- gte: string;
542
- lte: string;
543
- } | undefined;
544
- trackingId?: {
545
- type: "exact";
546
- term: string;
547
- } | undefined;
548
- updatedBy?: {
549
- type: "exact";
550
- term: string;
551
- } | undefined;
552
- eventType?: string | undefined;
553
- createAtLocation?: {
554
- type: "exact";
555
- term: string;
556
- } | {
557
- type: "within";
558
- location: string;
559
- } | undefined;
560
- }, {
561
- type?: "and" | undefined;
562
- status?: {
563
- type: "exact";
564
- term: string;
565
- } | {
566
- type: "anyOf";
567
- terms: string[];
568
- } | undefined;
569
- data?: any;
570
- createdAt?: {
571
- type: "exact";
572
- term: string;
573
- } | {
574
- type: "range";
575
- gte: string;
576
- lte: string;
577
901
  } | undefined;
578
- createdBy?: {
579
- type: "exact";
580
- term: string;
581
- } | undefined;
582
- updatedAtLocation?: {
902
+ 'legalStatus.REGISTERED.registrationNumber'?: {
583
903
  type: "exact";
584
904
  term: string;
585
- } | {
586
- type: "within";
587
- location: string;
588
905
  } | undefined;
589
- updatedAt?: {
590
- type: "exact";
591
- term: string;
592
- } | {
593
- type: "range";
594
- gte: string;
595
- lte: string;
596
- } | undefined;
597
- trackingId?: {
598
- type: "exact";
599
- term: string;
600
- } | undefined;
601
- updatedBy?: {
602
- type: "exact";
603
- term: string;
604
- } | undefined;
605
- eventType?: string | undefined;
606
- createAtLocation?: {
607
- type: "exact";
608
- term: string;
609
- } | {
610
- type: "within";
611
- location: string;
612
- } | undefined;
613
- }>, z.ZodObject<{
614
- type: z.ZodLiteral<"or">;
615
- clauses: z.ZodArray<z.ZodObject<{
616
- 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<{
617
910
  eventType: z.ZodOptional<z.ZodString>;
618
911
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
619
912
  type: z.ZodLiteral<"anyOf">;
620
- terms: z.ZodArray<z.ZodString, "many">;
913
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
621
914
  }, "strip", z.ZodTypeAny, {
622
915
  type: "anyOf";
623
- terms: string[];
916
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
624
917
  }, {
625
918
  type: "anyOf";
626
- terms: string[];
919
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
627
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<{
628
931
  type: z.ZodLiteral<"exact">;
629
932
  term: z.ZodString;
630
933
  }, "strip", z.ZodTypeAny, {
@@ -633,8 +936,20 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
633
936
  }, {
634
937
  type: "exact";
635
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;
636
951
  }>]>>>;
637
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
952
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
638
953
  type: z.ZodLiteral<"exact">;
639
954
  term: z.ZodString;
640
955
  }, "strip", z.ZodTypeAny, {
@@ -656,7 +971,7 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
656
971
  gte: string;
657
972
  lte: string;
658
973
  }>]>>>;
659
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
974
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
660
975
  type: z.ZodLiteral<"exact">;
661
976
  term: z.ZodString;
662
977
  }, "strip", z.ZodTypeAny, {
@@ -678,7 +993,36 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
678
993
  gte: string;
679
994
  lte: string;
680
995
  }>]>>>;
681
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
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<{
682
1026
  type: z.ZodLiteral<"within">;
683
1027
  location: z.ZodString;
684
1028
  }, "strip", z.ZodTypeAny, {
@@ -716,6 +1060,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
716
1060
  type: "exact";
717
1061
  term: string;
718
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
+ }>>>;
719
1073
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
720
1074
  type: z.ZodLiteral<"exact">;
721
1075
  term: z.ZodString;
@@ -746,15 +1100,33 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
746
1100
  type: "exact";
747
1101
  term: string;
748
1102
  }>>>;
1103
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1104
+ type: z.ZodLiteral<"anyOf">;
1105
+ terms: z.ZodArray<z.ZodString, "many">;
1106
+ }, "strip", z.ZodTypeAny, {
1107
+ type: "anyOf";
1108
+ terms: string[];
1109
+ }, {
1110
+ type: "anyOf";
1111
+ terms: string[];
1112
+ }>, z.ZodObject<{
1113
+ type: z.ZodLiteral<"not">;
1114
+ term: z.ZodString;
1115
+ }, "strip", z.ZodTypeAny, {
1116
+ type: "not";
1117
+ term: string;
1118
+ }, {
1119
+ type: "not";
1120
+ term: string;
1121
+ }>]>, "many">>>;
749
1122
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
750
1123
  }, "strip", z.ZodTypeAny, {
751
- type?: "and" | undefined;
752
1124
  status?: {
753
1125
  type: "exact";
754
- term: string;
1126
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
755
1127
  } | {
756
1128
  type: "anyOf";
757
- terms: string[];
1129
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
758
1130
  } | undefined;
759
1131
  data?: any;
760
1132
  createdAt?: {
@@ -769,13 +1141,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
769
1141
  type: "exact";
770
1142
  term: string;
771
1143
  } | undefined;
772
- updatedAtLocation?: {
1144
+ createdAtLocation?: {
773
1145
  type: "exact";
774
1146
  term: string;
775
1147
  } | {
776
1148
  type: "within";
777
1149
  location: string;
778
1150
  } | undefined;
1151
+ assignedTo?: {
1152
+ type: "exact";
1153
+ term: string;
1154
+ } | undefined;
779
1155
  updatedAt?: {
780
1156
  type: "exact";
781
1157
  term: string;
@@ -788,26 +1164,51 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
788
1164
  type: "exact";
789
1165
  term: string;
790
1166
  } | undefined;
1167
+ updatedAtLocation?: {
1168
+ type: "exact";
1169
+ term: string;
1170
+ } | {
1171
+ type: "within";
1172
+ location: string;
1173
+ } | undefined;
791
1174
  updatedBy?: {
792
1175
  type: "exact";
793
1176
  term: string;
794
1177
  } | undefined;
1178
+ flags?: ({
1179
+ type: "anyOf";
1180
+ terms: string[];
1181
+ } | {
1182
+ type: "not";
1183
+ term: string;
1184
+ })[] | undefined;
795
1185
  eventType?: string | undefined;
796
- createAtLocation?: {
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'?: {
797
1195
  type: "exact";
798
1196
  term: string;
799
1197
  } | {
800
1198
  type: "within";
801
1199
  location: string;
802
1200
  } | undefined;
1201
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1202
+ type: "exact";
1203
+ term: string;
1204
+ } | undefined;
803
1205
  }, {
804
- type?: "and" | undefined;
805
1206
  status?: {
806
1207
  type: "exact";
807
- term: string;
1208
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
808
1209
  } | {
809
1210
  type: "anyOf";
810
- terms: string[];
1211
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
811
1212
  } | undefined;
812
1213
  data?: any;
813
1214
  createdAt?: {
@@ -822,13 +1223,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
822
1223
  type: "exact";
823
1224
  term: string;
824
1225
  } | undefined;
825
- updatedAtLocation?: {
1226
+ createdAtLocation?: {
826
1227
  type: "exact";
827
1228
  term: string;
828
1229
  } | {
829
1230
  type: "within";
830
1231
  location: string;
831
1232
  } | undefined;
1233
+ assignedTo?: {
1234
+ type: "exact";
1235
+ term: string;
1236
+ } | undefined;
832
1237
  updatedAt?: {
833
1238
  type: "exact";
834
1239
  term: string;
@@ -841,29 +1246,133 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
841
1246
  type: "exact";
842
1247
  term: string;
843
1248
  } | undefined;
1249
+ updatedAtLocation?: {
1250
+ type: "exact";
1251
+ term: string;
1252
+ } | {
1253
+ type: "within";
1254
+ location: string;
1255
+ } | undefined;
844
1256
  updatedBy?: {
845
1257
  type: "exact";
846
1258
  term: string;
847
1259
  } | undefined;
1260
+ flags?: ({
1261
+ type: "anyOf";
1262
+ terms: string[];
1263
+ } | {
1264
+ type: "not";
1265
+ term: string;
1266
+ })[] | undefined;
848
1267
  eventType?: string | undefined;
849
- createAtLocation?: {
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'?: {
850
1277
  type: "exact";
851
1278
  term: string;
852
1279
  } | {
853
1280
  type: "within";
854
1281
  location: string;
855
1282
  } | undefined;
856
- }>, "many">;
857
- }, "strip", z.ZodTypeAny, {
858
- type: "or";
859
- clauses: {
860
- type?: "and" | undefined;
1283
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1284
+ type: "exact";
1285
+ term: string;
1286
+ } | undefined;
1287
+ }>, "atleastone">, [{
861
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?: {
862
1320
  type: "exact";
863
1321
  term: string;
864
1322
  } | {
1323
+ type: "range";
1324
+ gte: string;
1325
+ lte: string;
1326
+ } | undefined;
1327
+ trackingId?: {
1328
+ type: "exact";
1329
+ term: string;
1330
+ } | undefined;
1331
+ updatedAtLocation?: {
1332
+ type: "exact";
1333
+ term: string;
1334
+ } | {
1335
+ type: "within";
1336
+ location: string;
1337
+ } | undefined;
1338
+ updatedBy?: {
1339
+ type: "exact";
1340
+ term: string;
1341
+ } | undefined;
1342
+ flags?: ({
865
1343
  type: "anyOf";
866
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")[];
867
1376
  } | undefined;
868
1377
  data?: any;
869
1378
  createdAt?: {
@@ -878,13 +1387,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
878
1387
  type: "exact";
879
1388
  term: string;
880
1389
  } | undefined;
881
- updatedAtLocation?: {
1390
+ createdAtLocation?: {
882
1391
  type: "exact";
883
1392
  term: string;
884
1393
  } | {
885
1394
  type: "within";
886
1395
  location: string;
887
1396
  } | undefined;
1397
+ assignedTo?: {
1398
+ type: "exact";
1399
+ term: string;
1400
+ } | undefined;
888
1401
  updatedAt?: {
889
1402
  type: "exact";
890
1403
  term: string;
@@ -897,29 +1410,136 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
897
1410
  type: "exact";
898
1411
  term: string;
899
1412
  } | undefined;
1413
+ updatedAtLocation?: {
1414
+ type: "exact";
1415
+ term: string;
1416
+ } | {
1417
+ type: "within";
1418
+ location: string;
1419
+ } | undefined;
900
1420
  updatedBy?: {
901
1421
  type: "exact";
902
1422
  term: string;
903
1423
  } | undefined;
1424
+ flags?: ({
1425
+ type: "anyOf";
1426
+ terms: string[];
1427
+ } | {
1428
+ type: "not";
1429
+ term: string;
1430
+ })[] | undefined;
904
1431
  eventType?: string | undefined;
905
- createAtLocation?: {
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'?: {
906
1441
  type: "exact";
907
1442
  term: string;
908
1443
  } | {
909
1444
  type: "within";
910
1445
  location: string;
911
1446
  } | undefined;
912
- }[];
913
- }, {
914
- type: "or";
915
- clauses: {
916
- type?: "and" | undefined;
1447
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1448
+ type: "exact";
1449
+ term: string;
1450
+ } | undefined;
1451
+ }[]], unknown>;
1452
+ }, "strip", z.ZodTypeAny, {
1453
+ type: "and" | "or";
1454
+ clauses: [{
917
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?: {
918
1464
  type: "exact";
919
1465
  term: string;
920
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?: ({
921
1510
  type: "anyOf";
922
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")[];
923
1543
  } | undefined;
924
1544
  data?: any;
925
1545
  createdAt?: {
@@ -934,13 +1554,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
934
1554
  type: "exact";
935
1555
  term: string;
936
1556
  } | undefined;
937
- updatedAtLocation?: {
1557
+ createdAtLocation?: {
938
1558
  type: "exact";
939
1559
  term: string;
940
1560
  } | {
941
1561
  type: "within";
942
1562
  location: string;
943
1563
  } | undefined;
1564
+ assignedTo?: {
1565
+ type: "exact";
1566
+ term: string;
1567
+ } | undefined;
944
1568
  updatedAt?: {
945
1569
  type: "exact";
946
1570
  term: string;
@@ -953,20 +1577,50 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
953
1577
  type: "exact";
954
1578
  term: string;
955
1579
  } | undefined;
1580
+ updatedAtLocation?: {
1581
+ type: "exact";
1582
+ term: string;
1583
+ } | {
1584
+ type: "within";
1585
+ location: string;
1586
+ } | undefined;
956
1587
  updatedBy?: {
957
1588
  type: "exact";
958
1589
  term: string;
959
1590
  } | undefined;
1591
+ flags?: ({
1592
+ type: "anyOf";
1593
+ terms: string[];
1594
+ } | {
1595
+ type: "not";
1596
+ term: string;
1597
+ })[] | undefined;
960
1598
  eventType?: string | undefined;
961
- createAtLocation?: {
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'?: {
962
1608
  type: "exact";
963
1609
  term: string;
964
1610
  } | {
965
1611
  type: "within";
966
1612
  location: string;
967
1613
  } | undefined;
968
- }[];
969
- }>]>;
1614
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1615
+ type: "exact";
1616
+ term: string;
1617
+ } | undefined;
1618
+ }[]];
1619
+ }, {
1620
+ type: "and" | "or";
1621
+ clauses?: unknown;
1622
+ }>;
970
1623
  export type QueryType = z.infer<typeof QueryType>;
1624
+ export type QueryExpression = z.infer<typeof QueryExpression>;
971
1625
  export {};
972
1626
  //# sourceMappingURL=EventIndex.d.ts.map