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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/commons/api/router.d.ts +447 -14391
  2. package/dist/commons/conditionals/conditionals.d.ts +6 -14
  3. package/dist/commons/conditionals/validate.d.ts +6 -10
  4. package/dist/commons/events/ActionConfig.d.ts +1726 -117415
  5. package/dist/commons/events/ActionDocument.d.ts +383 -2410
  6. package/dist/commons/events/ActionInput.d.ts +303 -1583
  7. package/dist/commons/events/ActionType.d.ts +0 -6
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +22 -1233
  9. package/dist/commons/events/CompositeFieldValue.d.ts +0 -31
  10. package/dist/commons/events/Draft.d.ts +29 -148
  11. package/dist/commons/events/EventConfig.d.ts +1362 -56509
  12. package/dist/commons/events/EventDocument.d.ts +264 -1508
  13. package/dist/commons/events/EventIndex.d.ts +25 -2026
  14. package/dist/commons/events/EventMetadata.d.ts +43 -332
  15. package/dist/commons/events/FieldConfig.d.ts +1059 -5476
  16. package/dist/commons/events/FieldType.d.ts +3 -6
  17. package/dist/commons/events/FieldTypeMapping.d.ts +54 -103
  18. package/dist/commons/events/FieldValue.d.ts +8 -49
  19. package/dist/commons/events/FormConfig.d.ts +524 -49166
  20. package/dist/commons/events/PageConfig.d.ts +208 -12210
  21. package/dist/commons/events/SummaryConfig.d.ts +42 -93
  22. package/dist/commons/events/User.d.ts +2 -31
  23. package/dist/commons/events/WorkqueueConfig.d.ts +20 -6290
  24. package/dist/commons/events/defineConfig.d.ts +75 -9018
  25. package/dist/commons/events/index.d.ts +0 -8
  26. package/dist/commons/events/test.utils.d.ts +78 -160
  27. package/dist/commons/events/utils.d.ts +68 -13361
  28. package/dist/conditionals/index.js +36 -76
  29. package/dist/events/index.js +1500 -4070
  30. package/dist/scopes/index.d.ts +6 -97
  31. package/dist/scopes/index.js +38 -109
  32. package/package.json +2 -3
  33. package/dist/commons/events/Constants.d.ts +0 -3
  34. package/dist/commons/events/CountryConfigQueryInput.d.ts +0 -3068
  35. package/dist/commons/events/CreatedAtLocation.d.ts +0 -3
  36. package/dist/commons/events/WorkqueueColumnConfig.d.ts +0 -53
  37. package/dist/commons/events/event.d.ts +0 -54
  38. package/dist/commons/events/field.d.ts +0 -82
  39. package/dist/commons/events/scopes.d.ts +0 -44
  40. package/dist/commons/events/serializer.d.ts +0 -2
  41. package/dist/commons/events/workqueueDefaultColumns.d.ts +0 -3
@@ -1,426 +1,53 @@
1
- import { z, ZodType } from 'zod';
1
+ import { z } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
3
  id: z.ZodString;
4
4
  type: z.ZodString;
5
- status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
6
- legalStatuses: z.ZodObject<{
7
- DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8
- createdAt: z.ZodString;
9
- createdBy: z.ZodString;
10
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- 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 | 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.ZodString>>;
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 | 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 | 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 | 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;
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";
101
14
  }>;
102
15
  createdAt: z.ZodString;
103
- dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
16
  createdBy: z.ZodString;
105
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
106
- updatedByUserRole: z.ZodString;
107
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
- updatedAt: z.ZodString;
17
+ createdAtLocation: z.ZodString;
18
+ modifiedAt: z.ZodString;
111
19
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
- updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ updatedBy: z.ZodString;
113
21
  trackingId: z.ZodString;
114
- flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
115
- readonly CERTIFICATE_PRINTED: "certificate-printed";
116
- }>]>, "many">;
22
+ registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
23
  }, {
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]>]>>;
24
+ declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
256
25
  }>, "strip", z.ZodTypeAny, {
257
26
  type: string;
258
27
  id: string;
259
28
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
260
29
  createdAt: string;
261
30
  createdBy: 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>;
308
- updatedAt: string;
31
+ declaration: Record<string, any>;
32
+ createdAtLocation: string;
309
33
  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 | 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 | null | undefined;
329
- } | null | undefined;
330
- };
331
- updatedByUserRole: string;
332
- flags: string[];
333
- createdByUserType?: "system" | "user" | null | undefined;
334
- createdBySignature?: string | null | undefined;
335
- createdAtLocation?: string | null | undefined;
34
+ modifiedAt: string;
35
+ updatedBy: string;
336
36
  assignedTo?: string | null | undefined;
337
- dateOfEvent?: string | null | undefined;
338
- updatedAtLocation?: string | null | undefined;
339
- updatedBy?: string | null | undefined;
37
+ registrationNumber?: string | null | undefined;
340
38
  }, {
341
39
  type: string;
342
40
  id: string;
343
41
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
344
42
  createdAt: string;
345
43
  createdBy: 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>;
392
- updatedAt: string;
44
+ declaration: Record<string, any>;
45
+ createdAtLocation: string;
393
46
  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
- };
415
- updatedByUserRole: string;
416
- flags: string[];
417
- createdByUserType?: "system" | "user" | null | undefined;
418
- createdBySignature?: string | null | undefined;
419
- createdAtLocation?: string | null | undefined;
47
+ modifiedAt: string;
48
+ updatedBy: string;
420
49
  assignedTo?: string | null | undefined;
421
- dateOfEvent?: string | null | undefined;
422
- updatedAtLocation?: string | null | undefined;
423
- updatedBy?: string | null | undefined;
50
+ registrationNumber?: string | null | undefined;
424
51
  }>;
425
52
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
426
53
  type: z.ZodString;
@@ -431,1632 +58,4 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
431
58
  }>>;
432
59
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
433
60
  export type EventIndex = z.infer<typeof EventIndex>;
434
- export declare const Fuzzy: z.ZodObject<{
435
- type: z.ZodLiteral<"fuzzy">;
436
- term: z.ZodString;
437
- }, "strip", z.ZodTypeAny, {
438
- type: "fuzzy";
439
- term: string;
440
- }, {
441
- type: "fuzzy";
442
- term: string;
443
- }>;
444
- export declare const Exact: z.ZodObject<{
445
- type: z.ZodLiteral<"exact">;
446
- term: z.ZodString;
447
- }, "strip", z.ZodTypeAny, {
448
- type: "exact";
449
- term: string;
450
- }, {
451
- type: "exact";
452
- term: string;
453
- }>;
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<{
465
- type: z.ZodLiteral<"anyOf">;
466
- terms: z.ZodArray<z.ZodString, "many">;
467
- }, "strip", z.ZodTypeAny, {
468
- type: "anyOf";
469
- terms: string[];
470
- }, {
471
- type: "anyOf";
472
- terms: string[];
473
- }>;
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<{
485
- type: z.ZodLiteral<"range">;
486
- gte: z.ZodString;
487
- lte: z.ZodString;
488
- }, "strip", z.ZodTypeAny, {
489
- type: "range";
490
- gte: string;
491
- lte: string;
492
- }, {
493
- type: "range";
494
- gte: string;
495
- lte: string;
496
- }>;
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<{
508
- type: z.ZodLiteral<"within">;
509
- location: z.ZodString;
510
- }, "strip", z.ZodTypeAny, {
511
- type: "within";
512
- location: string;
513
- }, {
514
- type: "within";
515
- location: string;
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
- }>]>;
572
- export declare const QueryInput: ZodType;
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>;
574
- type QueryMap = {
575
- [key: string]: BaseInput | QueryMap;
576
- };
577
- export type QueryInputType = BaseInput | QueryMap;
578
- export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
579
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
580
- eventType: z.ZodOptional<z.ZodString>;
581
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
582
- type: z.ZodLiteral<"anyOf">;
583
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
584
- }, "strip", z.ZodTypeAny, {
585
- type: "anyOf";
586
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
587
- }, {
588
- type: "anyOf";
589
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
590
- }>, z.ZodObject<{
591
- type: z.ZodLiteral<"exact">;
592
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
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, {
606
- type: "exact";
607
- term: string;
608
- }, {
609
- type: "exact";
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;
626
- }>]>>>;
627
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
628
- type: z.ZodLiteral<"exact">;
629
- term: z.ZodString;
630
- }, {
631
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
632
- }>, "strip", z.ZodTypeAny, {
633
- type: "exact";
634
- term: string;
635
- }, {
636
- type: "exact";
637
- term: string;
638
- }>, z.ZodObject<z.objectUtil.extendShape<{
639
- type: z.ZodLiteral<"range">;
640
- gte: z.ZodString;
641
- lte: z.ZodString;
642
- }, {
643
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
644
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
645
- }>, "strip", z.ZodTypeAny, {
646
- type: "range";
647
- gte: string;
648
- lte: string;
649
- }, {
650
- type: "range";
651
- gte: string;
652
- lte: string;
653
- }>]>>>;
654
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
655
- type: z.ZodLiteral<"exact">;
656
- term: z.ZodString;
657
- }, {
658
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
659
- }>, "strip", z.ZodTypeAny, {
660
- type: "exact";
661
- term: string;
662
- }, {
663
- type: "exact";
664
- term: string;
665
- }>, z.ZodObject<z.objectUtil.extendShape<{
666
- type: z.ZodLiteral<"range">;
667
- gte: z.ZodString;
668
- lte: z.ZodString;
669
- }, {
670
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
671
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
672
- }>, "strip", z.ZodTypeAny, {
673
- type: "range";
674
- gte: string;
675
- lte: string;
676
- }, {
677
- type: "range";
678
- gte: string;
679
- lte: string;
680
- }>]>>>;
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<{
711
- type: z.ZodLiteral<"within">;
712
- location: z.ZodString;
713
- }, "strip", z.ZodTypeAny, {
714
- type: "within";
715
- location: string;
716
- }, {
717
- type: "within";
718
- location: string;
719
- }>, z.ZodObject<{
720
- type: z.ZodLiteral<"exact">;
721
- term: z.ZodString;
722
- }, "strip", z.ZodTypeAny, {
723
- type: "exact";
724
- term: string;
725
- }, {
726
- type: "exact";
727
- term: string;
728
- }>]>>>;
729
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
730
- type: z.ZodLiteral<"within">;
731
- location: z.ZodString;
732
- }, "strip", z.ZodTypeAny, {
733
- type: "within";
734
- location: string;
735
- }, {
736
- type: "within";
737
- location: string;
738
- }>, z.ZodObject<{
739
- type: z.ZodLiteral<"exact">;
740
- term: z.ZodString;
741
- }, "strip", z.ZodTypeAny, {
742
- type: "exact";
743
- term: string;
744
- }, {
745
- type: "exact";
746
- term: string;
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"]>>;
759
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
760
- type: z.ZodLiteral<"exact">;
761
- term: z.ZodString;
762
- }, "strip", z.ZodTypeAny, {
763
- type: "exact";
764
- term: string;
765
- }, {
766
- type: "exact";
767
- term: string;
768
- }>>>;
769
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
770
- type: z.ZodLiteral<"exact">;
771
- term: z.ZodString;
772
- }, "strip", z.ZodTypeAny, {
773
- type: "exact";
774
- term: string;
775
- }, {
776
- type: "exact";
777
- term: string;
778
- }>>>;
779
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
780
- type: z.ZodLiteral<"exact">;
781
- term: z.ZodString;
782
- }, "strip", z.ZodTypeAny, {
783
- type: "exact";
784
- term: string;
785
- }, {
786
- type: "exact";
787
- term: string;
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">>>;
808
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
809
- }, "strip", z.ZodTypeAny, {
810
- id?: string | undefined;
811
- status?: {
812
- type: "exact";
813
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
814
- } | {
815
- type: "anyOf";
816
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
817
- } | undefined;
818
- data?: any;
819
- createdByUserType?: "system" | "user" | undefined;
820
- createdAt?: {
821
- type: "range";
822
- gte: string;
823
- lte: string;
824
- } | {
825
- type: "exact";
826
- term: string;
827
- } | undefined;
828
- createdBy?: {
829
- type: "exact";
830
- term: string;
831
- } | undefined;
832
- createdAtLocation?: {
833
- type: "exact";
834
- term: string;
835
- } | {
836
- type: "within";
837
- location: string;
838
- } | undefined;
839
- assignedTo?: {
840
- type: "exact";
841
- term: string;
842
- } | undefined;
843
- updatedAt?: {
844
- type: "range";
845
- gte: string;
846
- lte: string;
847
- } | {
848
- type: "exact";
849
- term: string;
850
- } | undefined;
851
- trackingId?: {
852
- type: "exact";
853
- term: string;
854
- } | undefined;
855
- updatedAtLocation?: {
856
- type: "exact";
857
- term: string;
858
- } | {
859
- type: "within";
860
- location: string;
861
- } | undefined;
862
- updatedBy?: {
863
- type: "exact";
864
- term: string;
865
- } | undefined;
866
- flags?: ({
867
- type: "anyOf";
868
- terms: string[];
869
- } | {
870
- type: "not";
871
- term: string;
872
- })[] | undefined;
873
- eventType?: string | undefined;
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'?: {
883
- type: "exact";
884
- term: string;
885
- } | {
886
- type: "within";
887
- location: string;
888
- } | undefined;
889
- 'legalStatus.REGISTERED.registrationNumber'?: {
890
- type: "exact";
891
- term: string;
892
- } | undefined;
893
- }, {
894
- id?: string | undefined;
895
- status?: {
896
- type: "exact";
897
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
898
- } | {
899
- type: "anyOf";
900
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
901
- } | undefined;
902
- data?: any;
903
- createdByUserType?: "system" | "user" | undefined;
904
- createdAt?: {
905
- type: "range";
906
- gte: string;
907
- lte: string;
908
- } | {
909
- type: "exact";
910
- term: string;
911
- } | undefined;
912
- createdBy?: {
913
- type: "exact";
914
- term: string;
915
- } | undefined;
916
- createdAtLocation?: {
917
- type: "exact";
918
- term: string;
919
- } | {
920
- type: "within";
921
- location: string;
922
- } | undefined;
923
- assignedTo?: {
924
- type: "exact";
925
- term: string;
926
- } | undefined;
927
- updatedAt?: {
928
- type: "range";
929
- gte: string;
930
- lte: string;
931
- } | {
932
- type: "exact";
933
- term: string;
934
- } | undefined;
935
- trackingId?: {
936
- type: "exact";
937
- term: string;
938
- } | undefined;
939
- updatedAtLocation?: {
940
- type: "exact";
941
- term: string;
942
- } | {
943
- type: "within";
944
- location: string;
945
- } | undefined;
946
- updatedBy?: {
947
- type: "exact";
948
- term: string;
949
- } | undefined;
950
- flags?: ({
951
- type: "anyOf";
952
- terms: string[];
953
- } | {
954
- type: "not";
955
- term: string;
956
- })[] | undefined;
957
- eventType?: string | undefined;
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'?: {
967
- type: "exact";
968
- term: string;
969
- } | {
970
- type: "within";
971
- location: string;
972
- } | undefined;
973
- 'legalStatus.REGISTERED.registrationNumber'?: {
974
- type: "exact";
975
- term: string;
976
- } | undefined;
977
- }>, {
978
- id?: string | undefined;
979
- status?: {
980
- type: "exact";
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?: {
989
- type: "range";
990
- gte: string;
991
- lte: string;
992
- } | {
993
- type: "exact";
994
- term: string;
995
- } | undefined;
996
- createdBy?: {
997
- type: "exact";
998
- term: string;
999
- } | undefined;
1000
- createdAtLocation?: {
1001
- type: "exact";
1002
- term: string;
1003
- } | {
1004
- type: "within";
1005
- location: string;
1006
- } | undefined;
1007
- assignedTo?: {
1008
- type: "exact";
1009
- term: string;
1010
- } | undefined;
1011
- updatedAt?: {
1012
- type: "range";
1013
- gte: string;
1014
- lte: string;
1015
- } | {
1016
- type: "exact";
1017
- term: string;
1018
- } | undefined;
1019
- trackingId?: {
1020
- type: "exact";
1021
- term: string;
1022
- } | undefined;
1023
- updatedAtLocation?: {
1024
- type: "exact";
1025
- term: string;
1026
- } | {
1027
- type: "within";
1028
- location: string;
1029
- } | undefined;
1030
- updatedBy?: {
1031
- type: "exact";
1032
- term: string;
1033
- } | undefined;
1034
- flags?: ({
1035
- type: "anyOf";
1036
- terms: string[];
1037
- } | {
1038
- type: "not";
1039
- term: string;
1040
- })[] | undefined;
1041
- eventType?: string | undefined;
1042
- 'legalStatus.REGISTERED.createdAt'?: {
1043
- type: "range";
1044
- gte: string;
1045
- lte: string;
1046
- } | {
1047
- type: "exact";
1048
- term: string;
1049
- } | undefined;
1050
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1051
- type: "exact";
1052
- term: string;
1053
- } | {
1054
- type: "within";
1055
- location: string;
1056
- } | undefined;
1057
- 'legalStatus.REGISTERED.registrationNumber'?: {
1058
- type: "exact";
1059
- term: string;
1060
- } | undefined;
1061
- }, {
1062
- id?: string | undefined;
1063
- status?: {
1064
- type: "exact";
1065
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1066
- } | {
1067
- type: "anyOf";
1068
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1069
- } | undefined;
1070
- data?: any;
1071
- createdByUserType?: "system" | "user" | undefined;
1072
- createdAt?: {
1073
- type: "range";
1074
- gte: string;
1075
- lte: string;
1076
- } | {
1077
- type: "exact";
1078
- term: string;
1079
- } | undefined;
1080
- createdBy?: {
1081
- type: "exact";
1082
- term: string;
1083
- } | undefined;
1084
- createdAtLocation?: {
1085
- type: "exact";
1086
- term: string;
1087
- } | {
1088
- type: "within";
1089
- location: string;
1090
- } | undefined;
1091
- assignedTo?: {
1092
- type: "exact";
1093
- term: string;
1094
- } | undefined;
1095
- updatedAt?: {
1096
- type: "range";
1097
- gte: string;
1098
- lte: string;
1099
- } | {
1100
- type: "exact";
1101
- term: string;
1102
- } | undefined;
1103
- trackingId?: {
1104
- type: "exact";
1105
- term: string;
1106
- } | undefined;
1107
- updatedAtLocation?: {
1108
- type: "exact";
1109
- term: string;
1110
- } | {
1111
- type: "within";
1112
- location: string;
1113
- } | undefined;
1114
- updatedBy?: {
1115
- type: "exact";
1116
- term: string;
1117
- } | undefined;
1118
- flags?: ({
1119
- type: "anyOf";
1120
- terms: string[];
1121
- } | {
1122
- type: "not";
1123
- term: string;
1124
- })[] | undefined;
1125
- eventType?: string | undefined;
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'?: {
1135
- type: "exact";
1136
- term: string;
1137
- } | {
1138
- type: "within";
1139
- location: string;
1140
- } | undefined;
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>>;
1150
- eventType: z.ZodOptional<z.ZodString>;
1151
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1152
- type: z.ZodLiteral<"anyOf">;
1153
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1154
- }, "strip", z.ZodTypeAny, {
1155
- type: "anyOf";
1156
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1157
- }, {
1158
- type: "anyOf";
1159
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1160
- }>, z.ZodObject<{
1161
- type: z.ZodLiteral<"exact">;
1162
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
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, {
1176
- type: "exact";
1177
- term: string;
1178
- }, {
1179
- type: "exact";
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;
1196
- }>]>>>;
1197
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1198
- type: z.ZodLiteral<"exact">;
1199
- term: z.ZodString;
1200
- }, {
1201
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1202
- }>, "strip", z.ZodTypeAny, {
1203
- type: "exact";
1204
- term: string;
1205
- }, {
1206
- type: "exact";
1207
- term: string;
1208
- }>, z.ZodObject<z.objectUtil.extendShape<{
1209
- type: z.ZodLiteral<"range">;
1210
- gte: z.ZodString;
1211
- lte: z.ZodString;
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, {
1243
- type: "range";
1244
- gte: string;
1245
- lte: string;
1246
- }, {
1247
- type: "range";
1248
- gte: string;
1249
- lte: string;
1250
- }>]>>>;
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<{
1261
- type: z.ZodLiteral<"exact">;
1262
- term: z.ZodString;
1263
- }, "strip", z.ZodTypeAny, {
1264
- type: "exact";
1265
- term: string;
1266
- }, {
1267
- type: "exact";
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?: {
1643
- type: "range";
1644
- gte: string;
1645
- lte: string;
1646
- } | {
1647
- type: "exact";
1648
- term: string;
1649
- } | undefined;
1650
- createdBy?: {
1651
- type: "exact";
1652
- term: string;
1653
- } | undefined;
1654
- createdAtLocation?: {
1655
- type: "exact";
1656
- term: string;
1657
- } | {
1658
- type: "within";
1659
- location: string;
1660
- } | undefined;
1661
- assignedTo?: {
1662
- type: "exact";
1663
- term: string;
1664
- } | undefined;
1665
- updatedAt?: {
1666
- type: "range";
1667
- gte: string;
1668
- lte: string;
1669
- } | {
1670
- type: "exact";
1671
- term: string;
1672
- } | undefined;
1673
- trackingId?: {
1674
- type: "exact";
1675
- term: string;
1676
- } | undefined;
1677
- updatedAtLocation?: {
1678
- type: "exact";
1679
- term: string;
1680
- } | {
1681
- type: "within";
1682
- location: string;
1683
- } | undefined;
1684
- updatedBy?: {
1685
- type: "exact";
1686
- term: string;
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
- } | {
1701
- type: "exact";
1702
- term: string;
1703
- } | undefined;
1704
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1705
- type: "exact";
1706
- term: string;
1707
- } | {
1708
- type: "within";
1709
- location: string;
1710
- } | undefined;
1711
- 'legalStatus.REGISTERED.registrationNumber'?: {
1712
- type: "exact";
1713
- term: string;
1714
- } | undefined;
1715
- }>, "atleastone">, [{
1716
- id?: string | undefined;
1717
- status?: {
1718
- type: "exact";
1719
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1720
- } | {
1721
- type: "anyOf";
1722
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1723
- } | undefined;
1724
- data?: any;
1725
- createdByUserType?: "system" | "user" | undefined;
1726
- createdAt?: {
1727
- type: "range";
1728
- gte: string;
1729
- lte: string;
1730
- } | {
1731
- type: "exact";
1732
- term: string;
1733
- } | undefined;
1734
- createdBy?: {
1735
- type: "exact";
1736
- term: string;
1737
- } | undefined;
1738
- createdAtLocation?: {
1739
- type: "exact";
1740
- term: string;
1741
- } | {
1742
- type: "within";
1743
- location: string;
1744
- } | undefined;
1745
- assignedTo?: {
1746
- type: "exact";
1747
- term: string;
1748
- } | undefined;
1749
- updatedAt?: {
1750
- type: "range";
1751
- gte: string;
1752
- lte: string;
1753
- } | {
1754
- type: "exact";
1755
- term: string;
1756
- } | undefined;
1757
- trackingId?: {
1758
- type: "exact";
1759
- term: string;
1760
- } | undefined;
1761
- updatedAtLocation?: {
1762
- type: "exact";
1763
- term: string;
1764
- } | {
1765
- type: "within";
1766
- location: string;
1767
- } | undefined;
1768
- updatedBy?: {
1769
- type: "exact";
1770
- term: string;
1771
- } | undefined;
1772
- flags?: ({
1773
- type: "anyOf";
1774
- terms: string[];
1775
- } | {
1776
- type: "not";
1777
- term: string;
1778
- })[] | undefined;
1779
- eventType?: string | undefined;
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'?: {
1789
- type: "exact";
1790
- term: string;
1791
- } | {
1792
- type: "within";
1793
- location: string;
1794
- } | undefined;
1795
- 'legalStatus.REGISTERED.registrationNumber'?: {
1796
- type: "exact";
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";
1804
- } | {
1805
- type: "anyOf";
1806
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1807
- } | undefined;
1808
- data?: any;
1809
- createdByUserType?: "system" | "user" | undefined;
1810
- createdAt?: {
1811
- type: "range";
1812
- gte: string;
1813
- lte: string;
1814
- } | {
1815
- type: "exact";
1816
- term: string;
1817
- } | undefined;
1818
- createdBy?: {
1819
- type: "exact";
1820
- term: string;
1821
- } | undefined;
1822
- createdAtLocation?: {
1823
- type: "exact";
1824
- term: string;
1825
- } | {
1826
- type: "within";
1827
- location: string;
1828
- } | undefined;
1829
- assignedTo?: {
1830
- type: "exact";
1831
- term: string;
1832
- } | undefined;
1833
- updatedAt?: {
1834
- type: "range";
1835
- gte: string;
1836
- lte: string;
1837
- } | {
1838
- type: "exact";
1839
- term: string;
1840
- } | undefined;
1841
- trackingId?: {
1842
- type: "exact";
1843
- term: string;
1844
- } | undefined;
1845
- updatedAtLocation?: {
1846
- type: "exact";
1847
- term: string;
1848
- } | {
1849
- type: "within";
1850
- location: string;
1851
- } | undefined;
1852
- updatedBy?: {
1853
- type: "exact";
1854
- term: string;
1855
- } | undefined;
1856
- flags?: ({
1857
- type: "anyOf";
1858
- terms: string[];
1859
- } | {
1860
- type: "not";
1861
- term: string;
1862
- })[] | undefined;
1863
- eventType?: string | undefined;
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'?: {
1873
- type: "exact";
1874
- term: string;
1875
- } | {
1876
- type: "within";
1877
- location: string;
1878
- } | undefined;
1879
- 'legalStatus.REGISTERED.registrationNumber'?: {
1880
- type: "exact";
1881
- term: string;
1882
- } | undefined;
1883
- }[]], unknown>;
1884
- }, "strip", z.ZodTypeAny, {
1885
- type: "and" | "or";
1886
- clauses: [{
1887
- id?: string | undefined;
1888
- status?: {
1889
- type: "exact";
1890
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1891
- } | {
1892
- type: "anyOf";
1893
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1894
- } | undefined;
1895
- data?: any;
1896
- createdByUserType?: "system" | "user" | undefined;
1897
- createdAt?: {
1898
- type: "range";
1899
- gte: string;
1900
- lte: string;
1901
- } | {
1902
- type: "exact";
1903
- term: string;
1904
- } | undefined;
1905
- createdBy?: {
1906
- type: "exact";
1907
- term: string;
1908
- } | undefined;
1909
- createdAtLocation?: {
1910
- type: "exact";
1911
- term: string;
1912
- } | {
1913
- type: "within";
1914
- location: string;
1915
- } | undefined;
1916
- assignedTo?: {
1917
- type: "exact";
1918
- term: string;
1919
- } | undefined;
1920
- updatedAt?: {
1921
- type: "range";
1922
- gte: string;
1923
- lte: string;
1924
- } | {
1925
- type: "exact";
1926
- term: string;
1927
- } | undefined;
1928
- trackingId?: {
1929
- type: "exact";
1930
- term: string;
1931
- } | undefined;
1932
- updatedAtLocation?: {
1933
- type: "exact";
1934
- term: string;
1935
- } | {
1936
- type: "within";
1937
- location: string;
1938
- } | undefined;
1939
- updatedBy?: {
1940
- type: "exact";
1941
- term: string;
1942
- } | undefined;
1943
- flags?: ({
1944
- type: "anyOf";
1945
- terms: string[];
1946
- } | {
1947
- type: "not";
1948
- term: string;
1949
- })[] | undefined;
1950
- eventType?: string | undefined;
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'?: {
1960
- type: "exact";
1961
- term: string;
1962
- } | {
1963
- type: "within";
1964
- location: string;
1965
- } | undefined;
1966
- 'legalStatus.REGISTERED.registrationNumber'?: {
1967
- type: "exact";
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";
1975
- } | {
1976
- type: "anyOf";
1977
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1978
- } | undefined;
1979
- data?: any;
1980
- createdByUserType?: "system" | "user" | undefined;
1981
- createdAt?: {
1982
- type: "range";
1983
- gte: string;
1984
- lte: string;
1985
- } | {
1986
- type: "exact";
1987
- term: string;
1988
- } | undefined;
1989
- createdBy?: {
1990
- type: "exact";
1991
- term: string;
1992
- } | undefined;
1993
- createdAtLocation?: {
1994
- type: "exact";
1995
- term: string;
1996
- } | {
1997
- type: "within";
1998
- location: string;
1999
- } | undefined;
2000
- assignedTo?: {
2001
- type: "exact";
2002
- term: string;
2003
- } | undefined;
2004
- updatedAt?: {
2005
- type: "range";
2006
- gte: string;
2007
- lte: string;
2008
- } | {
2009
- type: "exact";
2010
- term: string;
2011
- } | undefined;
2012
- trackingId?: {
2013
- type: "exact";
2014
- term: string;
2015
- } | undefined;
2016
- updatedAtLocation?: {
2017
- type: "exact";
2018
- term: string;
2019
- } | {
2020
- type: "within";
2021
- location: string;
2022
- } | undefined;
2023
- updatedBy?: {
2024
- type: "exact";
2025
- term: string;
2026
- } | undefined;
2027
- flags?: ({
2028
- type: "anyOf";
2029
- terms: string[];
2030
- } | {
2031
- type: "not";
2032
- term: string;
2033
- })[] | undefined;
2034
- eventType?: string | undefined;
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'?: {
2044
- type: "exact";
2045
- term: string;
2046
- } | {
2047
- type: "within";
2048
- location: string;
2049
- } | undefined;
2050
- 'legalStatus.REGISTERED.registrationNumber'?: {
2051
- type: "exact";
2052
- term: string;
2053
- } | undefined;
2054
- }[]];
2055
- }, {
2056
- type: "and" | "or";
2057
- clauses?: unknown;
2058
- }>;
2059
- export type QueryType = z.infer<typeof QueryType>;
2060
- export type QueryExpression = z.infer<typeof QueryExpression>;
2061
- export {};
2062
61
  //# sourceMappingURL=EventIndex.d.ts.map