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

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 (43) hide show
  1. package/dist/commons/api/router.d.ts +5742 -8054
  2. package/dist/commons/conditionals/conditionals.d.ts +8 -15
  3. package/dist/commons/conditionals/validate.d.ts +11 -0
  4. package/dist/commons/events/ActionConfig.d.ts +77341 -48420
  5. package/dist/commons/events/ActionDocument.d.ts +4618 -1375
  6. package/dist/commons/events/ActionInput.d.ts +3139 -967
  7. package/dist/commons/events/ActionType.d.ts +10 -1
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +962 -48
  9. package/dist/commons/events/CompositeFieldValue.d.ts +37 -9
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +4132 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +274 -98
  14. package/dist/commons/events/EventConfig.d.ts +30722 -19227
  15. package/dist/commons/events/EventDocument.d.ts +2564 -929
  16. package/dist/commons/events/EventIndex.d.ts +1571 -283
  17. package/dist/commons/events/EventInput.d.ts +0 -13
  18. package/dist/commons/events/EventMetadata.d.ts +338 -48
  19. package/dist/commons/events/FieldConfig.d.ts +3741 -1283
  20. package/dist/commons/events/FieldType.d.ts +7 -2
  21. package/dist/commons/events/FieldTypeMapping.d.ts +154 -73
  22. package/dist/commons/events/FieldValue.d.ts +89 -19
  23. package/dist/commons/events/FormConfig.d.ts +30389 -15335
  24. package/dist/commons/events/PageConfig.d.ts +6118 -2428
  25. package/dist/commons/events/SummaryConfig.d.ts +17 -5
  26. package/dist/commons/events/User.d.ts +34 -7
  27. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  28. package/dist/commons/events/WorkqueueConfig.d.ts +8088 -16
  29. package/dist/commons/events/defineConfig.d.ts +5258 -3735
  30. package/dist/commons/events/event.d.ts +32 -11
  31. package/dist/commons/events/field.d.ts +46 -20
  32. package/dist/commons/events/index.d.ts +5 -0
  33. package/dist/commons/events/scopes.d.ts +23 -4
  34. package/dist/commons/events/serializer.d.ts +2 -0
  35. package/dist/commons/events/test.utils.d.ts +206 -53
  36. package/dist/commons/events/transactions.d.ts +1 -1
  37. package/dist/commons/events/utils.d.ts +12628 -1087
  38. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  39. package/dist/conditionals/index.js +67 -60
  40. package/dist/events/index.js +4849 -2327
  41. package/dist/scopes/index.d.ts +247 -1
  42. package/dist/scopes/index.js +231 -1
  43. package/package.json +3 -3
@@ -1,62 +1,444 @@
1
1
  import { z, ZodType } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
- id: z.ZodString;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
4
  type: z.ZodString;
5
- status: z.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", "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.ZodBranded<z.ZodString, "UUID">>>;
11
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
12
+ acceptedAt: z.ZodString;
13
+ createdByRole: z.ZodString;
14
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ createdAt: string;
17
+ createdBy: string;
18
+ createdByRole: string;
19
+ acceptedAt: string;
20
+ createdByUserType?: "system" | "user" | null | undefined;
21
+ createdBySignature?: string | null | undefined;
22
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
23
+ }, {
24
+ createdAt: string;
25
+ createdBy: string;
26
+ createdByRole: string;
27
+ acceptedAt: string;
28
+ createdByUserType?: "system" | "user" | null | undefined;
29
+ createdBySignature?: string | null | undefined;
30
+ createdAtLocation?: string | null | undefined;
31
+ }>>>;
32
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
33
+ createdAt: z.ZodString;
34
+ createdBy: z.ZodString;
35
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
36
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
37
+ acceptedAt: z.ZodString;
38
+ createdByRole: z.ZodString;
39
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, {
41
+ registrationNumber: z.ZodString;
42
+ }>, "strip", z.ZodTypeAny, {
43
+ createdAt: string;
44
+ createdBy: string;
45
+ createdByRole: string;
46
+ registrationNumber: string;
47
+ acceptedAt: string;
48
+ createdByUserType?: "system" | "user" | null | undefined;
49
+ createdBySignature?: string | null | undefined;
50
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
51
+ }, {
52
+ createdAt: string;
53
+ createdBy: string;
54
+ createdByRole: string;
55
+ registrationNumber: string;
56
+ acceptedAt: string;
57
+ createdByUserType?: "system" | "user" | null | undefined;
58
+ createdBySignature?: string | null | undefined;
59
+ createdAtLocation?: string | null | undefined;
60
+ }>>>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ DECLARED?: {
63
+ createdAt: string;
64
+ createdBy: string;
65
+ createdByRole: string;
66
+ acceptedAt: string;
67
+ createdByUserType?: "system" | "user" | null | undefined;
68
+ createdBySignature?: string | null | undefined;
69
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
70
+ } | null | undefined;
71
+ REGISTERED?: {
72
+ createdAt: string;
73
+ createdBy: string;
74
+ createdByRole: string;
75
+ registrationNumber: string;
76
+ acceptedAt: string;
77
+ createdByUserType?: "system" | "user" | null | undefined;
78
+ createdBySignature?: string | null | undefined;
79
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
80
+ } | null | undefined;
81
+ }, {
82
+ DECLARED?: {
83
+ createdAt: string;
84
+ createdBy: string;
85
+ createdByRole: string;
86
+ acceptedAt: string;
87
+ createdByUserType?: "system" | "user" | null | undefined;
88
+ createdBySignature?: string | null | undefined;
89
+ createdAtLocation?: string | null | undefined;
90
+ } | null | undefined;
91
+ REGISTERED?: {
92
+ createdAt: string;
93
+ createdBy: string;
94
+ createdByRole: string;
95
+ registrationNumber: string;
96
+ acceptedAt: string;
97
+ createdByUserType?: "system" | "user" | null | undefined;
98
+ createdBySignature?: string | null | undefined;
99
+ createdAtLocation?: string | null | undefined;
100
+ } | null | undefined;
14
101
  }>;
15
102
  createdAt: z.ZodString;
16
103
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
104
  createdBy: z.ZodString;
105
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
18
106
  updatedByUserRole: z.ZodString;
19
- createdAtLocation: z.ZodString;
20
- updatedAtLocation: z.ZodString;
107
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
108
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
21
110
  updatedAt: z.ZodString;
22
111
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- updatedBy: z.ZodString;
112
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
113
  trackingId: z.ZodString;
25
- registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
115
+ readonly PRINTED: "printed";
116
+ readonly INCOMPLETE: "incomplete";
117
+ readonly REJECTED: "rejected";
118
+ readonly CORRECTION_REQUESTED: "correction-requested";
119
+ }>]>, "many">;
26
120
  }, {
27
- declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
121
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
122
+ start: z.ZodString;
123
+ end: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ start: string;
126
+ end: string;
127
+ }, {
128
+ start: string;
129
+ end: string;
130
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
131
+ path: z.ZodEffects<z.ZodString, string, string>;
132
+ originalFilename: z.ZodString;
133
+ type: z.ZodString;
134
+ }, "strip", z.ZodTypeAny, {
135
+ type: string;
136
+ path: string;
137
+ originalFilename: string;
138
+ }, {
139
+ type: string;
140
+ path: string;
141
+ originalFilename: string;
142
+ }>, z.ZodArray<z.ZodObject<{
143
+ path: z.ZodEffects<z.ZodString, string, string>;
144
+ originalFilename: z.ZodString;
145
+ type: z.ZodString;
146
+ option: z.ZodString;
147
+ }, "strip", z.ZodTypeAny, {
148
+ type: string;
149
+ option: string;
150
+ path: string;
151
+ originalFilename: string;
152
+ }, {
153
+ type: string;
154
+ option: string;
155
+ path: string;
156
+ originalFilename: string;
157
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
158
+ country: z.ZodString;
159
+ addressType: z.ZodLiteral<"DOMESTIC">;
160
+ province: z.ZodString;
161
+ district: z.ZodString;
162
+ }, {
163
+ urbanOrRural: z.ZodLiteral<"URBAN">;
164
+ town: z.ZodOptional<z.ZodString>;
165
+ residentialArea: z.ZodOptional<z.ZodString>;
166
+ street: z.ZodOptional<z.ZodString>;
167
+ number: z.ZodOptional<z.ZodString>;
168
+ zipCode: z.ZodOptional<z.ZodString>;
169
+ }>, "strip", z.ZodTypeAny, {
170
+ country: string;
171
+ district: string;
172
+ addressType: "DOMESTIC";
173
+ province: string;
174
+ urbanOrRural: "URBAN";
175
+ number?: string | undefined;
176
+ town?: string | undefined;
177
+ residentialArea?: string | undefined;
178
+ street?: string | undefined;
179
+ zipCode?: string | undefined;
180
+ }, {
181
+ country: string;
182
+ district: string;
183
+ addressType: "DOMESTIC";
184
+ province: string;
185
+ urbanOrRural: "URBAN";
186
+ number?: string | undefined;
187
+ town?: string | undefined;
188
+ residentialArea?: string | undefined;
189
+ street?: string | undefined;
190
+ zipCode?: string | undefined;
191
+ }>, z.ZodObject<z.objectUtil.extendShape<{
192
+ country: z.ZodString;
193
+ addressType: z.ZodLiteral<"DOMESTIC">;
194
+ province: z.ZodString;
195
+ district: z.ZodString;
196
+ }, {
197
+ urbanOrRural: z.ZodLiteral<"RURAL">;
198
+ village: z.ZodOptional<z.ZodString>;
199
+ }>, "strip", z.ZodTypeAny, {
200
+ country: string;
201
+ district: string;
202
+ addressType: "DOMESTIC";
203
+ province: string;
204
+ urbanOrRural: "RURAL";
205
+ village?: string | undefined;
206
+ }, {
207
+ country: string;
208
+ district: string;
209
+ addressType: "DOMESTIC";
210
+ province: string;
211
+ urbanOrRural: "RURAL";
212
+ village?: string | undefined;
213
+ }>, z.ZodUndefined, z.ZodObject<{
214
+ country: z.ZodString;
215
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
216
+ state: z.ZodString;
217
+ district2: z.ZodString;
218
+ cityOrTown: z.ZodOptional<z.ZodString>;
219
+ addressLine1: z.ZodOptional<z.ZodString>;
220
+ addressLine2: z.ZodOptional<z.ZodString>;
221
+ addressLine3: z.ZodOptional<z.ZodString>;
222
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ country: string;
225
+ state: string;
226
+ addressType: "INTERNATIONAL";
227
+ district2: string;
228
+ cityOrTown?: string | undefined;
229
+ addressLine1?: string | undefined;
230
+ addressLine2?: string | undefined;
231
+ addressLine3?: string | undefined;
232
+ postcodeOrZip?: string | undefined;
233
+ }, {
234
+ country: string;
235
+ state: string;
236
+ addressType: "INTERNATIONAL";
237
+ district2: string;
238
+ cityOrTown?: string | undefined;
239
+ addressLine1?: string | undefined;
240
+ addressLine2?: string | undefined;
241
+ addressLine3?: string | undefined;
242
+ postcodeOrZip?: string | undefined;
243
+ }>, z.ZodObject<{
244
+ firstname: z.ZodString;
245
+ surname: z.ZodString;
246
+ middlename: z.ZodOptional<z.ZodString>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ firstname: string;
249
+ surname: string;
250
+ middlename?: string | undefined;
251
+ }, {
252
+ firstname: string;
253
+ surname: string;
254
+ middlename?: string | undefined;
255
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
256
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ firstname?: string | null | undefined;
261
+ surname?: string | null | undefined;
262
+ middlename?: string | null | undefined;
263
+ }, {
264
+ firstname?: string | null | undefined;
265
+ surname?: string | null | undefined;
266
+ middlename?: string | null | undefined;
267
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
28
268
  }>, "strip", z.ZodTypeAny, {
29
269
  type: string;
30
- id: string;
31
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
270
+ id: string & z.BRAND<"UUID">;
271
+ status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
32
272
  createdAt: string;
33
273
  createdBy: string;
34
- declaration: Record<string, any>;
35
- createdAtLocation: string;
36
- updatedAtLocation: string;
274
+ declaration: Record<string, string | number | boolean | {
275
+ type: string;
276
+ path: string;
277
+ originalFilename: string;
278
+ } | {
279
+ country: string;
280
+ district: string;
281
+ addressType: "DOMESTIC";
282
+ province: string;
283
+ urbanOrRural: "URBAN";
284
+ number?: string | undefined;
285
+ town?: string | undefined;
286
+ residentialArea?: string | undefined;
287
+ street?: string | undefined;
288
+ zipCode?: string | undefined;
289
+ } | {
290
+ country: string;
291
+ district: string;
292
+ addressType: "DOMESTIC";
293
+ province: string;
294
+ urbanOrRural: "RURAL";
295
+ village?: string | undefined;
296
+ } | {
297
+ firstname: string;
298
+ surname: string;
299
+ middlename?: string | undefined;
300
+ } | {
301
+ firstname?: string | null | undefined;
302
+ surname?: string | null | undefined;
303
+ middlename?: string | null | undefined;
304
+ } | {
305
+ country: string;
306
+ state: string;
307
+ addressType: "INTERNATIONAL";
308
+ district2: string;
309
+ cityOrTown?: string | undefined;
310
+ addressLine1?: string | undefined;
311
+ addressLine2?: string | undefined;
312
+ addressLine3?: string | undefined;
313
+ postcodeOrZip?: string | undefined;
314
+ } | {
315
+ type: string;
316
+ option: string;
317
+ path: string;
318
+ originalFilename: string;
319
+ }[] | {
320
+ start: string;
321
+ end: string;
322
+ } | null | undefined>;
37
323
  updatedAt: string;
38
324
  trackingId: string;
325
+ legalStatuses: {
326
+ DECLARED?: {
327
+ createdAt: string;
328
+ createdBy: string;
329
+ createdByRole: string;
330
+ acceptedAt: string;
331
+ createdByUserType?: "system" | "user" | null | undefined;
332
+ createdBySignature?: string | null | undefined;
333
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
334
+ } | null | undefined;
335
+ REGISTERED?: {
336
+ createdAt: string;
337
+ createdBy: string;
338
+ createdByRole: string;
339
+ registrationNumber: string;
340
+ acceptedAt: string;
341
+ createdByUserType?: "system" | "user" | null | undefined;
342
+ createdBySignature?: string | null | undefined;
343
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
344
+ } | null | undefined;
345
+ };
39
346
  updatedByUserRole: string;
40
- updatedBy: string;
347
+ flags: string[];
348
+ createdByUserType?: "system" | "user" | null | undefined;
349
+ createdBySignature?: string | null | undefined;
350
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
41
351
  assignedTo?: string | null | undefined;
42
- registrationNumber?: string | null | undefined;
43
352
  dateOfEvent?: string | null | undefined;
353
+ updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
354
+ updatedBy?: string | null | undefined;
44
355
  }, {
45
356
  type: string;
46
357
  id: string;
47
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
358
+ status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
48
359
  createdAt: string;
49
360
  createdBy: string;
50
- declaration: Record<string, any>;
51
- createdAtLocation: string;
52
- updatedAtLocation: string;
361
+ declaration: Record<string, string | number | boolean | {
362
+ type: string;
363
+ path: string;
364
+ originalFilename: string;
365
+ } | {
366
+ country: string;
367
+ district: string;
368
+ addressType: "DOMESTIC";
369
+ province: string;
370
+ urbanOrRural: "URBAN";
371
+ number?: string | undefined;
372
+ town?: string | undefined;
373
+ residentialArea?: string | undefined;
374
+ street?: string | undefined;
375
+ zipCode?: string | undefined;
376
+ } | {
377
+ country: string;
378
+ district: string;
379
+ addressType: "DOMESTIC";
380
+ province: string;
381
+ urbanOrRural: "RURAL";
382
+ village?: string | undefined;
383
+ } | {
384
+ firstname: string;
385
+ surname: string;
386
+ middlename?: string | undefined;
387
+ } | {
388
+ firstname?: string | null | undefined;
389
+ surname?: string | null | undefined;
390
+ middlename?: string | null | undefined;
391
+ } | {
392
+ country: string;
393
+ state: string;
394
+ addressType: "INTERNATIONAL";
395
+ district2: string;
396
+ cityOrTown?: string | undefined;
397
+ addressLine1?: string | undefined;
398
+ addressLine2?: string | undefined;
399
+ addressLine3?: string | undefined;
400
+ postcodeOrZip?: string | undefined;
401
+ } | {
402
+ type: string;
403
+ option: string;
404
+ path: string;
405
+ originalFilename: string;
406
+ }[] | {
407
+ start: string;
408
+ end: string;
409
+ } | null | undefined>;
53
410
  updatedAt: string;
54
411
  trackingId: string;
412
+ legalStatuses: {
413
+ DECLARED?: {
414
+ createdAt: string;
415
+ createdBy: string;
416
+ createdByRole: string;
417
+ acceptedAt: string;
418
+ createdByUserType?: "system" | "user" | null | undefined;
419
+ createdBySignature?: string | null | undefined;
420
+ createdAtLocation?: string | null | undefined;
421
+ } | null | undefined;
422
+ REGISTERED?: {
423
+ createdAt: string;
424
+ createdBy: string;
425
+ createdByRole: string;
426
+ registrationNumber: string;
427
+ acceptedAt: string;
428
+ createdByUserType?: "system" | "user" | null | undefined;
429
+ createdBySignature?: string | null | undefined;
430
+ createdAtLocation?: string | null | undefined;
431
+ } | null | undefined;
432
+ };
55
433
  updatedByUserRole: string;
56
- updatedBy: string;
434
+ flags: string[];
435
+ createdByUserType?: "system" | "user" | null | undefined;
436
+ createdBySignature?: string | null | undefined;
437
+ createdAtLocation?: string | null | undefined;
57
438
  assignedTo?: string | null | undefined;
58
- registrationNumber?: string | null | undefined;
59
439
  dateOfEvent?: string | null | undefined;
440
+ updatedAtLocation?: string | null | undefined;
441
+ updatedBy?: string | null | undefined;
60
442
  }>;
61
443
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
62
444
  type: z.ZodString;
@@ -67,7 +449,7 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
67
449
  }>>;
68
450
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
69
451
  export type EventIndex = z.infer<typeof EventIndex>;
70
- declare const Fuzzy: z.ZodObject<{
452
+ export declare const Fuzzy: z.ZodObject<{
71
453
  type: z.ZodLiteral<"fuzzy">;
72
454
  term: z.ZodString;
73
455
  }, "strip", z.ZodTypeAny, {
@@ -77,7 +459,7 @@ declare const Fuzzy: z.ZodObject<{
77
459
  type: "fuzzy";
78
460
  term: string;
79
461
  }>;
80
- declare const Exact: z.ZodObject<{
462
+ export declare const Exact: z.ZodObject<{
81
463
  type: z.ZodLiteral<"exact">;
82
464
  term: z.ZodString;
83
465
  }, "strip", z.ZodTypeAny, {
@@ -87,7 +469,27 @@ declare const Exact: z.ZodObject<{
87
469
  type: "exact";
88
470
  term: string;
89
471
  }>;
90
- declare const AnyOf: z.ZodObject<{
472
+ export declare const ExactStatus: z.ZodObject<{
473
+ type: z.ZodLiteral<"exact">;
474
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ type: "exact";
477
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
478
+ }, {
479
+ type: "exact";
480
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
481
+ }>;
482
+ export declare const ExactUserType: z.ZodObject<{
483
+ type: z.ZodLiteral<"exact">;
484
+ term: z.ZodEnum<["user", "system"]>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ type: "exact";
487
+ term: "system" | "user";
488
+ }, {
489
+ type: "exact";
490
+ term: "system" | "user";
491
+ }>;
492
+ export declare const AnyOf: z.ZodObject<{
91
493
  type: z.ZodLiteral<"anyOf">;
92
494
  terms: z.ZodArray<z.ZodString, "many">;
93
495
  }, "strip", z.ZodTypeAny, {
@@ -97,7 +499,17 @@ declare const AnyOf: z.ZodObject<{
97
499
  type: "anyOf";
98
500
  terms: string[];
99
501
  }>;
100
- declare const Range: z.ZodObject<{
502
+ export declare const AnyOfStatus: z.ZodObject<{
503
+ type: z.ZodLiteral<"anyOf">;
504
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>, "many">;
505
+ }, "strip", z.ZodTypeAny, {
506
+ type: "anyOf";
507
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
508
+ }, {
509
+ type: "anyOf";
510
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
511
+ }>;
512
+ export declare const Range: z.ZodObject<{
101
513
  type: z.ZodLiteral<"range">;
102
514
  gte: z.ZodString;
103
515
  lte: z.ZodString;
@@ -110,7 +522,27 @@ declare const Range: z.ZodObject<{
110
522
  gte: string;
111
523
  lte: string;
112
524
  }>;
113
- declare const Within: z.ZodObject<{
525
+ export declare const ContainsFlags: z.ZodObject<{
526
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
527
+ readonly PRINTED: "printed";
528
+ readonly INCOMPLETE: "incomplete";
529
+ readonly REJECTED: "rejected";
530
+ readonly CORRECTION_REQUESTED: "correction-requested";
531
+ }>]>, "many">>;
532
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
533
+ readonly PRINTED: "printed";
534
+ readonly INCOMPLETE: "incomplete";
535
+ readonly REJECTED: "rejected";
536
+ readonly CORRECTION_REQUESTED: "correction-requested";
537
+ }>]>, "many">>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ anyOf?: string[] | undefined;
540
+ noneOf?: string[] | undefined;
541
+ }, {
542
+ anyOf?: string[] | undefined;
543
+ noneOf?: string[] | undefined;
544
+ }>;
545
+ export declare const Within: z.ZodObject<{
114
546
  type: z.ZodLiteral<"within">;
115
547
  location: z.ZodString;
116
548
  }, "strip", z.ZodTypeAny, {
@@ -120,38 +552,119 @@ declare const Within: z.ZodObject<{
120
552
  type: "within";
121
553
  location: string;
122
554
  }>;
555
+ export declare const ExactDate: z.ZodObject<z.objectUtil.extendShape<{
556
+ type: z.ZodLiteral<"exact">;
557
+ term: z.ZodString;
558
+ }, {
559
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
560
+ }>, "strip", z.ZodTypeAny, {
561
+ type: "exact";
562
+ term: string;
563
+ }, {
564
+ type: "exact";
565
+ term: string;
566
+ }>;
567
+ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
568
+ type: z.ZodLiteral<"exact">;
569
+ term: z.ZodString;
570
+ }, {
571
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
572
+ }>, "strip", z.ZodTypeAny, {
573
+ type: "exact";
574
+ term: string;
575
+ }, {
576
+ type: "exact";
577
+ term: string;
578
+ }>, z.ZodObject<{
579
+ type: z.ZodLiteral<"range">;
580
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
581
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
582
+ }, "strip", z.ZodTypeAny, {
583
+ type: "range";
584
+ gte: string;
585
+ lte: string;
586
+ }, {
587
+ type: "range";
588
+ gte: string;
589
+ lte: string;
590
+ }>, z.ZodObject<{
591
+ type: z.ZodLiteral<"timePeriod">;
592
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
593
+ }, "strip", z.ZodTypeAny, {
594
+ type: "timePeriod";
595
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
596
+ }, {
597
+ type: "timePeriod";
598
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
599
+ }>]>;
600
+ export type DateCondition = z.infer<typeof DateCondition>;
123
601
  export declare const QueryInput: ZodType;
124
602
  export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
125
603
  type QueryMap = {
126
604
  [key: string]: BaseInput | QueryMap;
127
605
  };
128
606
  export type QueryInputType = BaseInput | QueryMap;
129
- declare const QueryExpression: z.ZodObject<{
130
- type: z.ZodOptional<z.ZodLiteral<"and">>;
607
+ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
608
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
131
609
  eventType: z.ZodOptional<z.ZodString>;
132
610
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
133
611
  type: z.ZodLiteral<"anyOf">;
134
- terms: z.ZodArray<z.ZodString, "many">;
612
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>, "many">;
135
613
  }, "strip", z.ZodTypeAny, {
136
614
  type: "anyOf";
137
- terms: string[];
615
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
138
616
  }, {
139
617
  type: "anyOf";
140
- terms: string[];
618
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
141
619
  }>, z.ZodObject<{
142
620
  type: z.ZodLiteral<"exact">;
143
- term: z.ZodString;
621
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
144
622
  }, "strip", z.ZodTypeAny, {
623
+ type: "exact";
624
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
625
+ }, {
626
+ type: "exact";
627
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
628
+ }>]>>>;
629
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
630
+ type: z.ZodLiteral<"exact">;
631
+ term: z.ZodString;
632
+ }, {
633
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
634
+ }>, "strip", z.ZodTypeAny, {
145
635
  type: "exact";
146
636
  term: string;
147
637
  }, {
148
638
  type: "exact";
149
639
  term: string;
640
+ }>, z.ZodObject<{
641
+ type: z.ZodLiteral<"range">;
642
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
643
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
644
+ }, "strip", z.ZodTypeAny, {
645
+ type: "range";
646
+ gte: string;
647
+ lte: string;
648
+ }, {
649
+ type: "range";
650
+ gte: string;
651
+ lte: string;
652
+ }>, z.ZodObject<{
653
+ type: z.ZodLiteral<"timePeriod">;
654
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
655
+ }, "strip", z.ZodTypeAny, {
656
+ type: "timePeriod";
657
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
658
+ }, {
659
+ type: "timePeriod";
660
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
150
661
  }>]>>>;
151
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
662
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
152
663
  type: z.ZodLiteral<"exact">;
153
664
  term: z.ZodString;
154
- }, "strip", z.ZodTypeAny, {
665
+ }, {
666
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
667
+ }>, "strip", z.ZodTypeAny, {
155
668
  type: "exact";
156
669
  term: string;
157
670
  }, {
@@ -159,8 +672,8 @@ declare const QueryExpression: z.ZodObject<{
159
672
  term: string;
160
673
  }>, z.ZodObject<{
161
674
  type: z.ZodLiteral<"range">;
162
- gte: z.ZodString;
163
- lte: z.ZodString;
675
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
676
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
164
677
  }, "strip", z.ZodTypeAny, {
165
678
  type: "range";
166
679
  gte: string;
@@ -169,11 +682,22 @@ declare const QueryExpression: z.ZodObject<{
169
682
  type: "range";
170
683
  gte: string;
171
684
  lte: string;
685
+ }>, z.ZodObject<{
686
+ type: z.ZodLiteral<"timePeriod">;
687
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
688
+ }, "strip", z.ZodTypeAny, {
689
+ type: "timePeriod";
690
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
691
+ }, {
692
+ type: "timePeriod";
693
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
172
694
  }>]>>>;
173
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
695
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
174
696
  type: z.ZodLiteral<"exact">;
175
697
  term: z.ZodString;
176
- }, "strip", z.ZodTypeAny, {
698
+ }, {
699
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
700
+ }>, "strip", z.ZodTypeAny, {
177
701
  type: "exact";
178
702
  term: string;
179
703
  }, {
@@ -181,8 +705,8 @@ declare const QueryExpression: z.ZodObject<{
181
705
  term: string;
182
706
  }>, z.ZodObject<{
183
707
  type: z.ZodLiteral<"range">;
184
- gte: z.ZodString;
185
- lte: z.ZodString;
708
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
709
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
186
710
  }, "strip", z.ZodTypeAny, {
187
711
  type: "range";
188
712
  gte: string;
@@ -191,8 +715,46 @@ declare const QueryExpression: z.ZodObject<{
191
715
  type: "range";
192
716
  gte: string;
193
717
  lte: string;
718
+ }>, z.ZodObject<{
719
+ type: z.ZodLiteral<"timePeriod">;
720
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
721
+ }, "strip", z.ZodTypeAny, {
722
+ type: "timePeriod";
723
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
724
+ }, {
725
+ type: "timePeriod";
726
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
727
+ }>]>>>;
728
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
729
+ type: z.ZodLiteral<"within">;
730
+ location: z.ZodString;
731
+ }, "strip", z.ZodTypeAny, {
732
+ type: "within";
733
+ location: string;
734
+ }, {
735
+ type: "within";
736
+ location: string;
737
+ }>, z.ZodObject<{
738
+ type: z.ZodLiteral<"exact">;
739
+ term: z.ZodString;
740
+ }, "strip", z.ZodTypeAny, {
741
+ type: "exact";
742
+ term: string;
743
+ }, {
744
+ type: "exact";
745
+ term: string;
194
746
  }>]>>>;
195
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
747
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
748
+ type: z.ZodLiteral<"exact">;
749
+ term: z.ZodString;
750
+ }, "strip", z.ZodTypeAny, {
751
+ type: "exact";
752
+ term: string;
753
+ }, {
754
+ type: "exact";
755
+ term: string;
756
+ }>>>;
757
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
196
758
  type: z.ZodLiteral<"within">;
197
759
  location: z.ZodString;
198
760
  }, "strip", z.ZodTypeAny, {
@@ -230,6 +792,26 @@ declare const QueryExpression: z.ZodObject<{
230
792
  type: "exact";
231
793
  term: string;
232
794
  }>]>>>;
795
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
796
+ type: z.ZodLiteral<"exact">;
797
+ term: z.ZodString;
798
+ }, "strip", z.ZodTypeAny, {
799
+ type: "exact";
800
+ term: string;
801
+ }, {
802
+ type: "exact";
803
+ term: string;
804
+ }>>>;
805
+ createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
806
+ type: z.ZodLiteral<"exact">;
807
+ term: z.ZodEnum<["user", "system"]>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ type: "exact";
810
+ term: "system" | "user";
811
+ }, {
812
+ type: "exact";
813
+ term: "system" | "user";
814
+ }>>>;
233
815
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
234
816
  type: z.ZodLiteral<"exact">;
235
817
  term: z.ZodString;
@@ -260,269 +842,265 @@ declare const QueryExpression: z.ZodObject<{
260
842
  type: "exact";
261
843
  term: string;
262
844
  }>>>;
845
+ flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
846
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
847
+ readonly PRINTED: "printed";
848
+ readonly INCOMPLETE: "incomplete";
849
+ readonly REJECTED: "rejected";
850
+ readonly CORRECTION_REQUESTED: "correction-requested";
851
+ }>]>, "many">>;
852
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
853
+ readonly PRINTED: "printed";
854
+ readonly INCOMPLETE: "incomplete";
855
+ readonly REJECTED: "rejected";
856
+ readonly CORRECTION_REQUESTED: "correction-requested";
857
+ }>]>, "many">>;
858
+ }, "strip", z.ZodTypeAny, {
859
+ anyOf?: string[] | undefined;
860
+ noneOf?: string[] | undefined;
861
+ }, {
862
+ anyOf?: string[] | undefined;
863
+ noneOf?: string[] | undefined;
864
+ }>>>;
263
865
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
264
866
  }, "strip", z.ZodTypeAny, {
265
- type?: "and" | undefined;
867
+ id?: string | undefined;
266
868
  status?: {
267
869
  type: "exact";
268
- term: string;
870
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
269
871
  } | {
270
872
  type: "anyOf";
271
- terms: string[];
873
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
272
874
  } | undefined;
273
875
  data?: any;
274
- createdAt?: {
876
+ createdByUserType?: {
275
877
  type: "exact";
276
- term: string;
277
- } | {
878
+ term: "system" | "user";
879
+ } | undefined;
880
+ createdAt?: {
278
881
  type: "range";
279
882
  gte: string;
280
883
  lte: string;
884
+ } | {
885
+ type: "exact";
886
+ term: string;
887
+ } | {
888
+ type: "timePeriod";
889
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
281
890
  } | undefined;
282
891
  createdBy?: {
283
892
  type: "exact";
284
893
  term: string;
285
894
  } | undefined;
286
- updatedAtLocation?: {
895
+ createdAtLocation?: {
287
896
  type: "exact";
288
897
  term: string;
289
898
  } | {
290
899
  type: "within";
291
900
  location: string;
292
901
  } | undefined;
293
- updatedAt?: {
902
+ assignedTo?: {
294
903
  type: "exact";
295
904
  term: string;
296
- } | {
905
+ } | undefined;
906
+ updatedAt?: {
297
907
  type: "range";
298
908
  gte: string;
299
909
  lte: string;
910
+ } | {
911
+ type: "exact";
912
+ term: string;
913
+ } | {
914
+ type: "timePeriod";
915
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
300
916
  } | undefined;
301
917
  trackingId?: {
302
918
  type: "exact";
303
919
  term: string;
304
920
  } | undefined;
921
+ updatedAtLocation?: {
922
+ type: "exact";
923
+ term: string;
924
+ } | {
925
+ type: "within";
926
+ location: string;
927
+ } | undefined;
305
928
  updatedBy?: {
306
929
  type: "exact";
307
930
  term: string;
308
931
  } | undefined;
932
+ flags?: {
933
+ anyOf?: string[] | undefined;
934
+ noneOf?: string[] | undefined;
935
+ } | undefined;
309
936
  eventType?: string | undefined;
310
- createAtLocation?: {
937
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
938
+ type: "range";
939
+ gte: string;
940
+ lte: string;
941
+ } | {
942
+ type: "exact";
943
+ term: string;
944
+ } | {
945
+ type: "timePeriod";
946
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
947
+ } | undefined;
948
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
311
949
  type: "exact";
312
950
  term: string;
313
951
  } | {
314
952
  type: "within";
315
953
  location: string;
316
954
  } | undefined;
955
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
956
+ type: "exact";
957
+ term: string;
958
+ } | undefined;
317
959
  }, {
318
- type?: "and" | undefined;
960
+ id?: string | undefined;
319
961
  status?: {
320
962
  type: "exact";
321
- term: string;
963
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
322
964
  } | {
323
965
  type: "anyOf";
324
- terms: string[];
966
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
325
967
  } | undefined;
326
968
  data?: any;
327
- createdAt?: {
969
+ createdByUserType?: {
328
970
  type: "exact";
329
- term: string;
330
- } | {
971
+ term: "system" | "user";
972
+ } | undefined;
973
+ createdAt?: {
331
974
  type: "range";
332
975
  gte: string;
333
976
  lte: string;
977
+ } | {
978
+ type: "exact";
979
+ term: string;
980
+ } | {
981
+ type: "timePeriod";
982
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
334
983
  } | undefined;
335
984
  createdBy?: {
336
985
  type: "exact";
337
986
  term: string;
338
987
  } | undefined;
339
- updatedAtLocation?: {
988
+ createdAtLocation?: {
340
989
  type: "exact";
341
990
  term: string;
342
991
  } | {
343
992
  type: "within";
344
993
  location: string;
345
994
  } | undefined;
346
- updatedAt?: {
995
+ assignedTo?: {
347
996
  type: "exact";
348
997
  term: string;
349
- } | {
998
+ } | undefined;
999
+ updatedAt?: {
350
1000
  type: "range";
351
1001
  gte: string;
352
1002
  lte: string;
1003
+ } | {
1004
+ type: "exact";
1005
+ term: string;
1006
+ } | {
1007
+ type: "timePeriod";
1008
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
353
1009
  } | undefined;
354
1010
  trackingId?: {
355
1011
  type: "exact";
356
1012
  term: string;
357
1013
  } | undefined;
1014
+ updatedAtLocation?: {
1015
+ type: "exact";
1016
+ term: string;
1017
+ } | {
1018
+ type: "within";
1019
+ location: string;
1020
+ } | undefined;
358
1021
  updatedBy?: {
359
1022
  type: "exact";
360
1023
  term: string;
361
1024
  } | undefined;
1025
+ flags?: {
1026
+ anyOf?: string[] | undefined;
1027
+ noneOf?: string[] | undefined;
1028
+ } | undefined;
362
1029
  eventType?: string | undefined;
363
- createAtLocation?: {
1030
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1031
+ type: "range";
1032
+ gte: string;
1033
+ lte: string;
1034
+ } | {
1035
+ type: "exact";
1036
+ term: string;
1037
+ } | {
1038
+ type: "timePeriod";
1039
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1040
+ } | undefined;
1041
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
364
1042
  type: "exact";
365
1043
  term: string;
366
1044
  } | {
367
1045
  type: "within";
368
1046
  location: string;
369
1047
  } | 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, {
1048
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
388
1049
  type: "exact";
389
1050
  term: string;
390
- }, {
391
- type: "exact";
392
- 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, {
1051
+ } | undefined;
1052
+ }>, {
1053
+ id?: string | undefined;
1054
+ status?: {
398
1055
  type: "exact";
399
- term: string;
400
- }, {
1056
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1057
+ } | {
1058
+ type: "anyOf";
1059
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1060
+ } | undefined;
1061
+ data?: any;
1062
+ createdByUserType?: {
401
1063
  type: "exact";
402
- 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
- }, {
1064
+ term: "system" | "user";
1065
+ } | undefined;
1066
+ createdAt?: {
412
1067
  type: "range";
413
1068
  gte: string;
414
1069
  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
- }, {
1070
+ } | {
423
1071
  type: "exact";
424
1072
  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, {
442
- type: "within";
443
- 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, {
1073
+ } | {
1074
+ type: "timePeriod";
1075
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1076
+ } | undefined;
1077
+ createdBy?: {
451
1078
  type: "exact";
452
1079
  term: string;
453
- }, {
1080
+ } | undefined;
1081
+ createdAtLocation?: {
454
1082
  type: "exact";
455
1083
  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
- }, {
1084
+ } | {
464
1085
  type: "within";
465
1086
  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
1087
  } | undefined;
516
- data?: any;
517
- createdAt?: {
1088
+ assignedTo?: {
518
1089
  type: "exact";
519
1090
  term: string;
520
- } | {
1091
+ } | undefined;
1092
+ updatedAt?: {
521
1093
  type: "range";
522
1094
  gte: string;
523
1095
  lte: string;
1096
+ } | {
1097
+ type: "exact";
1098
+ term: string;
1099
+ } | {
1100
+ type: "timePeriod";
1101
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
524
1102
  } | undefined;
525
- createdBy?: {
1103
+ trackingId?: {
526
1104
  type: "exact";
527
1105
  term: string;
528
1106
  } | undefined;
@@ -533,111 +1111,194 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
533
1111
  type: "within";
534
1112
  location: string;
535
1113
  } | undefined;
536
- updatedAt?: {
1114
+ updatedBy?: {
537
1115
  type: "exact";
538
1116
  term: string;
539
- } | {
1117
+ } | undefined;
1118
+ flags?: {
1119
+ anyOf?: string[] | undefined;
1120
+ noneOf?: string[] | undefined;
1121
+ } | undefined;
1122
+ eventType?: string | undefined;
1123
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
540
1124
  type: "range";
541
1125
  gte: string;
542
1126
  lte: string;
543
- } | undefined;
544
- trackingId?: {
545
- type: "exact";
546
- term: string;
547
- } | undefined;
548
- updatedBy?: {
1127
+ } | {
549
1128
  type: "exact";
550
1129
  term: string;
1130
+ } | {
1131
+ type: "timePeriod";
1132
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
551
1133
  } | undefined;
552
- eventType?: string | undefined;
553
- createAtLocation?: {
1134
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
554
1135
  type: "exact";
555
1136
  term: string;
556
1137
  } | {
557
1138
  type: "within";
558
1139
  location: string;
559
1140
  } | undefined;
1141
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1142
+ type: "exact";
1143
+ term: string;
1144
+ } | undefined;
560
1145
  }, {
561
- type?: "and" | undefined;
1146
+ id?: string | undefined;
562
1147
  status?: {
563
1148
  type: "exact";
564
- term: string;
1149
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
565
1150
  } | {
566
1151
  type: "anyOf";
567
- terms: string[];
1152
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
568
1153
  } | undefined;
569
1154
  data?: any;
570
- createdAt?: {
1155
+ createdByUserType?: {
571
1156
  type: "exact";
572
- term: string;
573
- } | {
1157
+ term: "system" | "user";
1158
+ } | undefined;
1159
+ createdAt?: {
574
1160
  type: "range";
575
1161
  gte: string;
576
1162
  lte: string;
1163
+ } | {
1164
+ type: "exact";
1165
+ term: string;
1166
+ } | {
1167
+ type: "timePeriod";
1168
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
577
1169
  } | undefined;
578
1170
  createdBy?: {
579
1171
  type: "exact";
580
1172
  term: string;
581
1173
  } | undefined;
582
- updatedAtLocation?: {
1174
+ createdAtLocation?: {
583
1175
  type: "exact";
584
1176
  term: string;
585
1177
  } | {
586
1178
  type: "within";
587
1179
  location: string;
588
1180
  } | undefined;
589
- updatedAt?: {
1181
+ assignedTo?: {
590
1182
  type: "exact";
591
1183
  term: string;
592
- } | {
1184
+ } | undefined;
1185
+ updatedAt?: {
593
1186
  type: "range";
594
1187
  gte: string;
595
1188
  lte: string;
1189
+ } | {
1190
+ type: "exact";
1191
+ term: string;
1192
+ } | {
1193
+ type: "timePeriod";
1194
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
596
1195
  } | undefined;
597
1196
  trackingId?: {
598
1197
  type: "exact";
599
1198
  term: string;
600
1199
  } | undefined;
1200
+ updatedAtLocation?: {
1201
+ type: "exact";
1202
+ term: string;
1203
+ } | {
1204
+ type: "within";
1205
+ location: string;
1206
+ } | undefined;
601
1207
  updatedBy?: {
602
1208
  type: "exact";
603
1209
  term: string;
604
1210
  } | undefined;
1211
+ flags?: {
1212
+ anyOf?: string[] | undefined;
1213
+ noneOf?: string[] | undefined;
1214
+ } | undefined;
605
1215
  eventType?: string | undefined;
606
- createAtLocation?: {
1216
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1217
+ type: "range";
1218
+ gte: string;
1219
+ lte: string;
1220
+ } | {
1221
+ type: "exact";
1222
+ term: string;
1223
+ } | {
1224
+ type: "timePeriod";
1225
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1226
+ } | undefined;
1227
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
607
1228
  type: "exact";
608
1229
  term: string;
609
1230
  } | {
610
1231
  type: "within";
611
1232
  location: string;
612
1233
  } | undefined;
613
- }>, z.ZodObject<{
614
- type: z.ZodLiteral<"or">;
615
- clauses: z.ZodArray<z.ZodObject<{
616
- type: z.ZodOptional<z.ZodLiteral<"and">>;
1234
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1235
+ type: "exact";
1236
+ term: string;
1237
+ } | undefined;
1238
+ }>;
1239
+ export declare const QueryType: z.ZodObject<{
1240
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
1241
+ clauses: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
1242
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
617
1243
  eventType: z.ZodOptional<z.ZodString>;
618
1244
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
619
1245
  type: z.ZodLiteral<"anyOf">;
620
- terms: z.ZodArray<z.ZodString, "many">;
1246
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>, "many">;
621
1247
  }, "strip", z.ZodTypeAny, {
622
1248
  type: "anyOf";
623
- terms: string[];
1249
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
624
1250
  }, {
625
1251
  type: "anyOf";
626
- terms: string[];
1252
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
627
1253
  }>, z.ZodObject<{
628
1254
  type: z.ZodLiteral<"exact">;
629
- term: z.ZodString;
1255
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
630
1256
  }, "strip", z.ZodTypeAny, {
1257
+ type: "exact";
1258
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1259
+ }, {
1260
+ type: "exact";
1261
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1262
+ }>]>>>;
1263
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1264
+ type: z.ZodLiteral<"exact">;
1265
+ term: z.ZodString;
1266
+ }, {
1267
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1268
+ }>, "strip", z.ZodTypeAny, {
631
1269
  type: "exact";
632
1270
  term: string;
633
1271
  }, {
634
1272
  type: "exact";
635
1273
  term: string;
1274
+ }>, z.ZodObject<{
1275
+ type: z.ZodLiteral<"range">;
1276
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1277
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1278
+ }, "strip", z.ZodTypeAny, {
1279
+ type: "range";
1280
+ gte: string;
1281
+ lte: string;
1282
+ }, {
1283
+ type: "range";
1284
+ gte: string;
1285
+ lte: string;
1286
+ }>, z.ZodObject<{
1287
+ type: z.ZodLiteral<"timePeriod">;
1288
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ type: "timePeriod";
1291
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1292
+ }, {
1293
+ type: "timePeriod";
1294
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
636
1295
  }>]>>>;
637
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1296
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
638
1297
  type: z.ZodLiteral<"exact">;
639
1298
  term: z.ZodString;
640
- }, "strip", z.ZodTypeAny, {
1299
+ }, {
1300
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1301
+ }>, "strip", z.ZodTypeAny, {
641
1302
  type: "exact";
642
1303
  term: string;
643
1304
  }, {
@@ -645,8 +1306,8 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
645
1306
  term: string;
646
1307
  }>, z.ZodObject<{
647
1308
  type: z.ZodLiteral<"range">;
648
- gte: z.ZodString;
649
- lte: z.ZodString;
1309
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1310
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
650
1311
  }, "strip", z.ZodTypeAny, {
651
1312
  type: "range";
652
1313
  gte: string;
@@ -655,11 +1316,22 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
655
1316
  type: "range";
656
1317
  gte: string;
657
1318
  lte: string;
1319
+ }>, z.ZodObject<{
1320
+ type: z.ZodLiteral<"timePeriod">;
1321
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1322
+ }, "strip", z.ZodTypeAny, {
1323
+ type: "timePeriod";
1324
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1325
+ }, {
1326
+ type: "timePeriod";
1327
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
658
1328
  }>]>>>;
659
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1329
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
660
1330
  type: z.ZodLiteral<"exact">;
661
1331
  term: z.ZodString;
662
- }, "strip", z.ZodTypeAny, {
1332
+ }, {
1333
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1334
+ }>, "strip", z.ZodTypeAny, {
663
1335
  type: "exact";
664
1336
  term: string;
665
1337
  }, {
@@ -667,8 +1339,8 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
667
1339
  term: string;
668
1340
  }>, z.ZodObject<{
669
1341
  type: z.ZodLiteral<"range">;
670
- gte: z.ZodString;
671
- lte: z.ZodString;
1342
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1343
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
672
1344
  }, "strip", z.ZodTypeAny, {
673
1345
  type: "range";
674
1346
  gte: string;
@@ -677,8 +1349,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
677
1349
  type: "range";
678
1350
  gte: string;
679
1351
  lte: string;
1352
+ }>, z.ZodObject<{
1353
+ type: z.ZodLiteral<"timePeriod">;
1354
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ type: "timePeriod";
1357
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1358
+ }, {
1359
+ type: "timePeriod";
1360
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
680
1361
  }>]>>>;
681
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1362
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
682
1363
  type: z.ZodLiteral<"within">;
683
1364
  location: z.ZodString;
684
1365
  }, "strip", z.ZodTypeAny, {
@@ -697,7 +1378,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
697
1378
  type: "exact";
698
1379
  term: string;
699
1380
  }>]>>>;
700
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1381
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<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
+ }>>>;
1391
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
701
1392
  type: z.ZodLiteral<"within">;
702
1393
  location: z.ZodString;
703
1394
  }, "strip", z.ZodTypeAny, {
@@ -716,7 +1407,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
716
1407
  type: "exact";
717
1408
  term: string;
718
1409
  }>]>>>;
719
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1410
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1411
+ type: z.ZodLiteral<"within">;
1412
+ location: z.ZodString;
1413
+ }, "strip", z.ZodTypeAny, {
1414
+ type: "within";
1415
+ location: string;
1416
+ }, {
1417
+ type: "within";
1418
+ location: string;
1419
+ }>, z.ZodObject<{
720
1420
  type: z.ZodLiteral<"exact">;
721
1421
  term: z.ZodString;
722
1422
  }, "strip", z.ZodTypeAny, {
@@ -725,8 +1425,8 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
725
1425
  }, {
726
1426
  type: "exact";
727
1427
  term: string;
728
- }>>>;
729
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1428
+ }>]>>>;
1429
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
730
1430
  type: z.ZodLiteral<"exact">;
731
1431
  term: z.ZodString;
732
1432
  }, "strip", z.ZodTypeAny, {
@@ -736,7 +1436,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
736
1436
  type: "exact";
737
1437
  term: string;
738
1438
  }>>>;
739
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1439
+ createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1440
+ type: z.ZodLiteral<"exact">;
1441
+ term: z.ZodEnum<["user", "system"]>;
1442
+ }, "strip", z.ZodTypeAny, {
1443
+ type: "exact";
1444
+ term: "system" | "user";
1445
+ }, {
1446
+ type: "exact";
1447
+ term: "system" | "user";
1448
+ }>>>;
1449
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
740
1450
  type: z.ZodLiteral<"exact">;
741
1451
  term: z.ZodString;
742
1452
  }, "strip", z.ZodTypeAny, {
@@ -746,26 +1456,99 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
746
1456
  type: "exact";
747
1457
  term: string;
748
1458
  }>>>;
749
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
750
- }, "strip", z.ZodTypeAny, {
751
- type?: "and" | undefined;
752
- status?: {
1459
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1460
+ type: z.ZodLiteral<"exact">;
1461
+ term: z.ZodString;
1462
+ }, "strip", z.ZodTypeAny, {
753
1463
  type: "exact";
754
1464
  term: string;
755
- } | {
756
- type: "anyOf";
757
- terms: string[];
1465
+ }, {
1466
+ type: "exact";
1467
+ term: string;
1468
+ }>>>;
1469
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1470
+ type: z.ZodLiteral<"exact">;
1471
+ term: z.ZodString;
1472
+ }, "strip", z.ZodTypeAny, {
1473
+ type: "exact";
1474
+ term: string;
1475
+ }, {
1476
+ type: "exact";
1477
+ term: string;
1478
+ }>>>;
1479
+ flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1480
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1481
+ readonly PRINTED: "printed";
1482
+ readonly INCOMPLETE: "incomplete";
1483
+ readonly REJECTED: "rejected";
1484
+ readonly CORRECTION_REQUESTED: "correction-requested";
1485
+ }>]>, "many">>;
1486
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1487
+ readonly PRINTED: "printed";
1488
+ readonly INCOMPLETE: "incomplete";
1489
+ readonly REJECTED: "rejected";
1490
+ readonly CORRECTION_REQUESTED: "correction-requested";
1491
+ }>]>, "many">>;
1492
+ }, "strip", z.ZodTypeAny, {
1493
+ anyOf?: string[] | undefined;
1494
+ noneOf?: string[] | undefined;
1495
+ }, {
1496
+ anyOf?: string[] | undefined;
1497
+ noneOf?: string[] | undefined;
1498
+ }>>>;
1499
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1500
+ }, "strip", z.ZodTypeAny, {
1501
+ id?: string | undefined;
1502
+ status?: {
1503
+ type: "exact";
1504
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1505
+ } | {
1506
+ type: "anyOf";
1507
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
758
1508
  } | undefined;
759
1509
  data?: any;
1510
+ createdByUserType?: {
1511
+ type: "exact";
1512
+ term: "system" | "user";
1513
+ } | undefined;
760
1514
  createdAt?: {
1515
+ type: "range";
1516
+ gte: string;
1517
+ lte: string;
1518
+ } | {
1519
+ type: "exact";
1520
+ term: string;
1521
+ } | {
1522
+ type: "timePeriod";
1523
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1524
+ } | undefined;
1525
+ createdBy?: {
1526
+ type: "exact";
1527
+ term: string;
1528
+ } | undefined;
1529
+ createdAtLocation?: {
761
1530
  type: "exact";
762
1531
  term: string;
763
1532
  } | {
1533
+ type: "within";
1534
+ location: string;
1535
+ } | undefined;
1536
+ assignedTo?: {
1537
+ type: "exact";
1538
+ term: string;
1539
+ } | undefined;
1540
+ updatedAt?: {
764
1541
  type: "range";
765
1542
  gte: string;
766
1543
  lte: string;
1544
+ } | {
1545
+ type: "exact";
1546
+ term: string;
1547
+ } | {
1548
+ type: "timePeriod";
1549
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
767
1550
  } | undefined;
768
- createdBy?: {
1551
+ trackingId?: {
769
1552
  type: "exact";
770
1553
  term: string;
771
1554
  } | undefined;
@@ -776,49 +1559,182 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
776
1559
  type: "within";
777
1560
  location: string;
778
1561
  } | undefined;
779
- updatedAt?: {
1562
+ updatedBy?: {
1563
+ type: "exact";
1564
+ term: string;
1565
+ } | undefined;
1566
+ flags?: {
1567
+ anyOf?: string[] | undefined;
1568
+ noneOf?: string[] | undefined;
1569
+ } | undefined;
1570
+ eventType?: string | undefined;
1571
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1572
+ type: "range";
1573
+ gte: string;
1574
+ lte: string;
1575
+ } | {
1576
+ type: "exact";
1577
+ term: string;
1578
+ } | {
1579
+ type: "timePeriod";
1580
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1581
+ } | undefined;
1582
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1583
+ type: "exact";
1584
+ term: string;
1585
+ } | {
1586
+ type: "within";
1587
+ location: string;
1588
+ } | undefined;
1589
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1590
+ type: "exact";
1591
+ term: string;
1592
+ } | undefined;
1593
+ }, {
1594
+ id?: string | undefined;
1595
+ status?: {
1596
+ type: "exact";
1597
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1598
+ } | {
1599
+ type: "anyOf";
1600
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1601
+ } | undefined;
1602
+ data?: any;
1603
+ createdByUserType?: {
1604
+ type: "exact";
1605
+ term: "system" | "user";
1606
+ } | undefined;
1607
+ createdAt?: {
1608
+ type: "range";
1609
+ gte: string;
1610
+ lte: string;
1611
+ } | {
1612
+ type: "exact";
1613
+ term: string;
1614
+ } | {
1615
+ type: "timePeriod";
1616
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1617
+ } | undefined;
1618
+ createdBy?: {
1619
+ type: "exact";
1620
+ term: string;
1621
+ } | undefined;
1622
+ createdAtLocation?: {
780
1623
  type: "exact";
781
1624
  term: string;
782
1625
  } | {
1626
+ type: "within";
1627
+ location: string;
1628
+ } | undefined;
1629
+ assignedTo?: {
1630
+ type: "exact";
1631
+ term: string;
1632
+ } | undefined;
1633
+ updatedAt?: {
783
1634
  type: "range";
784
1635
  gte: string;
785
1636
  lte: string;
1637
+ } | {
1638
+ type: "exact";
1639
+ term: string;
1640
+ } | {
1641
+ type: "timePeriod";
1642
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
786
1643
  } | undefined;
787
1644
  trackingId?: {
788
1645
  type: "exact";
789
1646
  term: string;
790
1647
  } | undefined;
1648
+ updatedAtLocation?: {
1649
+ type: "exact";
1650
+ term: string;
1651
+ } | {
1652
+ type: "within";
1653
+ location: string;
1654
+ } | undefined;
791
1655
  updatedBy?: {
792
1656
  type: "exact";
793
1657
  term: string;
794
1658
  } | undefined;
1659
+ flags?: {
1660
+ anyOf?: string[] | undefined;
1661
+ noneOf?: string[] | undefined;
1662
+ } | undefined;
795
1663
  eventType?: string | undefined;
796
- createAtLocation?: {
1664
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1665
+ type: "range";
1666
+ gte: string;
1667
+ lte: string;
1668
+ } | {
1669
+ type: "exact";
1670
+ term: string;
1671
+ } | {
1672
+ type: "timePeriod";
1673
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1674
+ } | undefined;
1675
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
797
1676
  type: "exact";
798
1677
  term: string;
799
1678
  } | {
800
1679
  type: "within";
801
1680
  location: string;
802
1681
  } | undefined;
803
- }, {
804
- type?: "and" | undefined;
805
- status?: {
1682
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
806
1683
  type: "exact";
807
1684
  term: string;
1685
+ } | undefined;
1686
+ }>, {
1687
+ id?: string | undefined;
1688
+ status?: {
1689
+ type: "exact";
1690
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
808
1691
  } | {
809
1692
  type: "anyOf";
810
- terms: string[];
1693
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
811
1694
  } | undefined;
812
1695
  data?: any;
1696
+ createdByUserType?: {
1697
+ type: "exact";
1698
+ term: "system" | "user";
1699
+ } | undefined;
813
1700
  createdAt?: {
1701
+ type: "range";
1702
+ gte: string;
1703
+ lte: string;
1704
+ } | {
1705
+ type: "exact";
1706
+ term: string;
1707
+ } | {
1708
+ type: "timePeriod";
1709
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1710
+ } | undefined;
1711
+ createdBy?: {
1712
+ type: "exact";
1713
+ term: string;
1714
+ } | undefined;
1715
+ createdAtLocation?: {
814
1716
  type: "exact";
815
1717
  term: string;
816
1718
  } | {
1719
+ type: "within";
1720
+ location: string;
1721
+ } | undefined;
1722
+ assignedTo?: {
1723
+ type: "exact";
1724
+ term: string;
1725
+ } | undefined;
1726
+ updatedAt?: {
817
1727
  type: "range";
818
1728
  gte: string;
819
1729
  lte: string;
1730
+ } | {
1731
+ type: "exact";
1732
+ term: string;
1733
+ } | {
1734
+ type: "timePeriod";
1735
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
820
1736
  } | undefined;
821
- createdBy?: {
1737
+ trackingId?: {
822
1738
  type: "exact";
823
1739
  term: string;
824
1740
  } | undefined;
@@ -829,52 +1745,182 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
829
1745
  type: "within";
830
1746
  location: string;
831
1747
  } | undefined;
832
- updatedAt?: {
1748
+ updatedBy?: {
1749
+ type: "exact";
1750
+ term: string;
1751
+ } | undefined;
1752
+ flags?: {
1753
+ anyOf?: string[] | undefined;
1754
+ noneOf?: string[] | undefined;
1755
+ } | undefined;
1756
+ eventType?: string | undefined;
1757
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1758
+ type: "range";
1759
+ gte: string;
1760
+ lte: string;
1761
+ } | {
833
1762
  type: "exact";
834
1763
  term: string;
835
1764
  } | {
1765
+ type: "timePeriod";
1766
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1767
+ } | undefined;
1768
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1769
+ type: "exact";
1770
+ term: string;
1771
+ } | {
1772
+ type: "within";
1773
+ location: string;
1774
+ } | undefined;
1775
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1776
+ type: "exact";
1777
+ term: string;
1778
+ } | undefined;
1779
+ }, {
1780
+ id?: string | undefined;
1781
+ status?: {
1782
+ type: "exact";
1783
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1784
+ } | {
1785
+ type: "anyOf";
1786
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1787
+ } | undefined;
1788
+ data?: any;
1789
+ createdByUserType?: {
1790
+ type: "exact";
1791
+ term: "system" | "user";
1792
+ } | undefined;
1793
+ createdAt?: {
836
1794
  type: "range";
837
1795
  gte: string;
838
1796
  lte: string;
1797
+ } | {
1798
+ type: "exact";
1799
+ term: string;
1800
+ } | {
1801
+ type: "timePeriod";
1802
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1803
+ } | undefined;
1804
+ createdBy?: {
1805
+ type: "exact";
1806
+ term: string;
1807
+ } | undefined;
1808
+ createdAtLocation?: {
1809
+ type: "exact";
1810
+ term: string;
1811
+ } | {
1812
+ type: "within";
1813
+ location: string;
1814
+ } | undefined;
1815
+ assignedTo?: {
1816
+ type: "exact";
1817
+ term: string;
1818
+ } | undefined;
1819
+ updatedAt?: {
1820
+ type: "range";
1821
+ gte: string;
1822
+ lte: string;
1823
+ } | {
1824
+ type: "exact";
1825
+ term: string;
1826
+ } | {
1827
+ type: "timePeriod";
1828
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
839
1829
  } | undefined;
840
1830
  trackingId?: {
841
1831
  type: "exact";
842
1832
  term: string;
843
1833
  } | undefined;
1834
+ updatedAtLocation?: {
1835
+ type: "exact";
1836
+ term: string;
1837
+ } | {
1838
+ type: "within";
1839
+ location: string;
1840
+ } | undefined;
844
1841
  updatedBy?: {
845
1842
  type: "exact";
846
1843
  term: string;
847
1844
  } | undefined;
1845
+ flags?: {
1846
+ anyOf?: string[] | undefined;
1847
+ noneOf?: string[] | undefined;
1848
+ } | undefined;
848
1849
  eventType?: string | undefined;
849
- createAtLocation?: {
1850
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1851
+ type: "range";
1852
+ gte: string;
1853
+ lte: string;
1854
+ } | {
1855
+ type: "exact";
1856
+ term: string;
1857
+ } | {
1858
+ type: "timePeriod";
1859
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1860
+ } | undefined;
1861
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
850
1862
  type: "exact";
851
1863
  term: string;
852
1864
  } | {
853
1865
  type: "within";
854
1866
  location: string;
855
1867
  } | undefined;
856
- }>, "many">;
857
- }, "strip", z.ZodTypeAny, {
858
- type: "or";
859
- clauses: {
860
- type?: "and" | undefined;
861
- status?: {
1868
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
862
1869
  type: "exact";
863
1870
  term: string;
1871
+ } | undefined;
1872
+ }>, "atleastone">, [{
1873
+ id?: string | undefined;
1874
+ status?: {
1875
+ type: "exact";
1876
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
864
1877
  } | {
865
1878
  type: "anyOf";
866
- terms: string[];
1879
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
867
1880
  } | undefined;
868
1881
  data?: any;
1882
+ createdByUserType?: {
1883
+ type: "exact";
1884
+ term: "system" | "user";
1885
+ } | undefined;
869
1886
  createdAt?: {
1887
+ type: "range";
1888
+ gte: string;
1889
+ lte: string;
1890
+ } | {
1891
+ type: "exact";
1892
+ term: string;
1893
+ } | {
1894
+ type: "timePeriod";
1895
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1896
+ } | undefined;
1897
+ createdBy?: {
1898
+ type: "exact";
1899
+ term: string;
1900
+ } | undefined;
1901
+ createdAtLocation?: {
870
1902
  type: "exact";
871
1903
  term: string;
872
1904
  } | {
1905
+ type: "within";
1906
+ location: string;
1907
+ } | undefined;
1908
+ assignedTo?: {
1909
+ type: "exact";
1910
+ term: string;
1911
+ } | undefined;
1912
+ updatedAt?: {
873
1913
  type: "range";
874
1914
  gte: string;
875
1915
  lte: string;
1916
+ } | {
1917
+ type: "exact";
1918
+ term: string;
1919
+ } | {
1920
+ type: "timePeriod";
1921
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
876
1922
  } | undefined;
877
- createdBy?: {
1923
+ trackingId?: {
878
1924
  type: "exact";
879
1925
  term: string;
880
1926
  } | undefined;
@@ -885,52 +1931,185 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
885
1931
  type: "within";
886
1932
  location: string;
887
1933
  } | undefined;
888
- updatedAt?: {
1934
+ updatedBy?: {
1935
+ type: "exact";
1936
+ term: string;
1937
+ } | undefined;
1938
+ flags?: {
1939
+ anyOf?: string[] | undefined;
1940
+ noneOf?: string[] | undefined;
1941
+ } | undefined;
1942
+ eventType?: string | undefined;
1943
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1944
+ type: "range";
1945
+ gte: string;
1946
+ lte: string;
1947
+ } | {
1948
+ type: "exact";
1949
+ term: string;
1950
+ } | {
1951
+ type: "timePeriod";
1952
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1953
+ } | undefined;
1954
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
889
1955
  type: "exact";
890
1956
  term: string;
891
1957
  } | {
1958
+ type: "within";
1959
+ location: string;
1960
+ } | undefined;
1961
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1962
+ type: "exact";
1963
+ term: string;
1964
+ } | undefined;
1965
+ }, ...{
1966
+ id?: string | undefined;
1967
+ status?: {
1968
+ type: "exact";
1969
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1970
+ } | {
1971
+ type: "anyOf";
1972
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1973
+ } | undefined;
1974
+ data?: any;
1975
+ createdByUserType?: {
1976
+ type: "exact";
1977
+ term: "system" | "user";
1978
+ } | undefined;
1979
+ createdAt?: {
892
1980
  type: "range";
893
1981
  gte: string;
894
1982
  lte: string;
1983
+ } | {
1984
+ type: "exact";
1985
+ term: string;
1986
+ } | {
1987
+ type: "timePeriod";
1988
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1989
+ } | undefined;
1990
+ createdBy?: {
1991
+ type: "exact";
1992
+ term: string;
1993
+ } | undefined;
1994
+ createdAtLocation?: {
1995
+ type: "exact";
1996
+ term: string;
1997
+ } | {
1998
+ type: "within";
1999
+ location: string;
2000
+ } | undefined;
2001
+ assignedTo?: {
2002
+ type: "exact";
2003
+ term: string;
2004
+ } | undefined;
2005
+ updatedAt?: {
2006
+ type: "range";
2007
+ gte: string;
2008
+ lte: string;
2009
+ } | {
2010
+ type: "exact";
2011
+ term: string;
2012
+ } | {
2013
+ type: "timePeriod";
2014
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
895
2015
  } | undefined;
896
2016
  trackingId?: {
897
2017
  type: "exact";
898
2018
  term: string;
899
2019
  } | undefined;
2020
+ updatedAtLocation?: {
2021
+ type: "exact";
2022
+ term: string;
2023
+ } | {
2024
+ type: "within";
2025
+ location: string;
2026
+ } | undefined;
900
2027
  updatedBy?: {
901
2028
  type: "exact";
902
2029
  term: string;
903
2030
  } | undefined;
2031
+ flags?: {
2032
+ anyOf?: string[] | undefined;
2033
+ noneOf?: string[] | undefined;
2034
+ } | undefined;
904
2035
  eventType?: string | undefined;
905
- createAtLocation?: {
2036
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2037
+ type: "range";
2038
+ gte: string;
2039
+ lte: string;
2040
+ } | {
2041
+ type: "exact";
2042
+ term: string;
2043
+ } | {
2044
+ type: "timePeriod";
2045
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2046
+ } | undefined;
2047
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
906
2048
  type: "exact";
907
2049
  term: string;
908
2050
  } | {
909
2051
  type: "within";
910
2052
  location: string;
911
2053
  } | undefined;
912
- }[];
913
- }, {
914
- type: "or";
915
- clauses: {
916
- type?: "and" | undefined;
917
- status?: {
2054
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
918
2055
  type: "exact";
919
2056
  term: string;
2057
+ } | undefined;
2058
+ }[]], unknown>;
2059
+ }, "strip", z.ZodTypeAny, {
2060
+ type: "and" | "or";
2061
+ clauses: [{
2062
+ id?: string | undefined;
2063
+ status?: {
2064
+ type: "exact";
2065
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
920
2066
  } | {
921
2067
  type: "anyOf";
922
- terms: string[];
2068
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
923
2069
  } | undefined;
924
2070
  data?: any;
2071
+ createdByUserType?: {
2072
+ type: "exact";
2073
+ term: "system" | "user";
2074
+ } | undefined;
925
2075
  createdAt?: {
2076
+ type: "range";
2077
+ gte: string;
2078
+ lte: string;
2079
+ } | {
2080
+ type: "exact";
2081
+ term: string;
2082
+ } | {
2083
+ type: "timePeriod";
2084
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2085
+ } | undefined;
2086
+ createdBy?: {
2087
+ type: "exact";
2088
+ term: string;
2089
+ } | undefined;
2090
+ createdAtLocation?: {
926
2091
  type: "exact";
927
2092
  term: string;
928
2093
  } | {
2094
+ type: "within";
2095
+ location: string;
2096
+ } | undefined;
2097
+ assignedTo?: {
2098
+ type: "exact";
2099
+ term: string;
2100
+ } | undefined;
2101
+ updatedAt?: {
929
2102
  type: "range";
930
2103
  gte: string;
931
2104
  lte: string;
2105
+ } | {
2106
+ type: "exact";
2107
+ term: string;
2108
+ } | {
2109
+ type: "timePeriod";
2110
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
932
2111
  } | undefined;
933
- createdBy?: {
2112
+ trackingId?: {
934
2113
  type: "exact";
935
2114
  term: string;
936
2115
  } | undefined;
@@ -941,32 +2120,141 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
941
2120
  type: "within";
942
2121
  location: string;
943
2122
  } | undefined;
944
- updatedAt?: {
2123
+ updatedBy?: {
2124
+ type: "exact";
2125
+ term: string;
2126
+ } | undefined;
2127
+ flags?: {
2128
+ anyOf?: string[] | undefined;
2129
+ noneOf?: string[] | undefined;
2130
+ } | undefined;
2131
+ eventType?: string | undefined;
2132
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2133
+ type: "range";
2134
+ gte: string;
2135
+ lte: string;
2136
+ } | {
945
2137
  type: "exact";
946
2138
  term: string;
947
2139
  } | {
2140
+ type: "timePeriod";
2141
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2142
+ } | undefined;
2143
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2144
+ type: "exact";
2145
+ term: string;
2146
+ } | {
2147
+ type: "within";
2148
+ location: string;
2149
+ } | undefined;
2150
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2151
+ type: "exact";
2152
+ term: string;
2153
+ } | undefined;
2154
+ }, ...{
2155
+ id?: string | undefined;
2156
+ status?: {
2157
+ type: "exact";
2158
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2159
+ } | {
2160
+ type: "anyOf";
2161
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2162
+ } | undefined;
2163
+ data?: any;
2164
+ createdByUserType?: {
2165
+ type: "exact";
2166
+ term: "system" | "user";
2167
+ } | undefined;
2168
+ createdAt?: {
948
2169
  type: "range";
949
2170
  gte: string;
950
2171
  lte: string;
2172
+ } | {
2173
+ type: "exact";
2174
+ term: string;
2175
+ } | {
2176
+ type: "timePeriod";
2177
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2178
+ } | undefined;
2179
+ createdBy?: {
2180
+ type: "exact";
2181
+ term: string;
2182
+ } | undefined;
2183
+ createdAtLocation?: {
2184
+ type: "exact";
2185
+ term: string;
2186
+ } | {
2187
+ type: "within";
2188
+ location: string;
2189
+ } | undefined;
2190
+ assignedTo?: {
2191
+ type: "exact";
2192
+ term: string;
2193
+ } | undefined;
2194
+ updatedAt?: {
2195
+ type: "range";
2196
+ gte: string;
2197
+ lte: string;
2198
+ } | {
2199
+ type: "exact";
2200
+ term: string;
2201
+ } | {
2202
+ type: "timePeriod";
2203
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
951
2204
  } | undefined;
952
2205
  trackingId?: {
953
2206
  type: "exact";
954
2207
  term: string;
955
2208
  } | undefined;
2209
+ updatedAtLocation?: {
2210
+ type: "exact";
2211
+ term: string;
2212
+ } | {
2213
+ type: "within";
2214
+ location: string;
2215
+ } | undefined;
956
2216
  updatedBy?: {
957
2217
  type: "exact";
958
2218
  term: string;
959
2219
  } | undefined;
2220
+ flags?: {
2221
+ anyOf?: string[] | undefined;
2222
+ noneOf?: string[] | undefined;
2223
+ } | undefined;
960
2224
  eventType?: string | undefined;
961
- createAtLocation?: {
2225
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2226
+ type: "range";
2227
+ gte: string;
2228
+ lte: string;
2229
+ } | {
2230
+ type: "exact";
2231
+ term: string;
2232
+ } | {
2233
+ type: "timePeriod";
2234
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2235
+ } | undefined;
2236
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
962
2237
  type: "exact";
963
2238
  term: string;
964
2239
  } | {
965
2240
  type: "within";
966
2241
  location: string;
967
2242
  } | undefined;
968
- }[];
969
- }>]>;
2243
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2244
+ type: "exact";
2245
+ term: string;
2246
+ } | undefined;
2247
+ }[]];
2248
+ }, {
2249
+ type: "and" | "or";
2250
+ clauses?: unknown;
2251
+ }>;
970
2252
  export type QueryType = z.infer<typeof QueryType>;
2253
+ export type QueryExpression = z.infer<typeof QueryExpression>;
2254
+ export declare const SearchScopeAccessLevels: {
2255
+ readonly MY_JURISDICTION: "my-jurisdiction";
2256
+ readonly ALL: "all";
2257
+ };
2258
+ export type SearchScopeAccessLevels = (typeof SearchScopeAccessLevels)[keyof typeof SearchScopeAccessLevels];
971
2259
  export {};
972
2260
  //# sourceMappingURL=EventIndex.d.ts.map