@opencrvs/toolkit 1.8.0-rc.f881988 → 1.8.0-rc.f89fbcb

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