@opencrvs/toolkit 1.8.0-rc.feef45c → 1.8.0-rc.fef0fdd

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