@opencrvs/toolkit 1.8.0-rc.fd754eb → 1.8.0-rc.fd936ab

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 (33) hide show
  1. package/dist/commons/api/router.d.ts +4205 -7695
  2. package/dist/commons/conditionals/conditionals.d.ts +6 -9
  3. package/dist/commons/conditionals/validate.d.ts +6 -4
  4. package/dist/commons/events/ActionConfig.d.ts +1680 -90025
  5. package/dist/commons/events/ActionDocument.d.ts +211 -542
  6. package/dist/commons/events/ActionInput.d.ts +240 -248
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +25 -369
  8. package/dist/commons/events/CompositeFieldValue.d.ts +0 -3
  9. package/dist/commons/events/Draft.d.ts +20 -33
  10. package/dist/commons/events/EventConfig.d.ts +1344 -42812
  11. package/dist/commons/events/EventDocument.d.ts +156 -337
  12. package/dist/commons/events/EventIndex.d.ts +13 -1346
  13. package/dist/commons/events/EventInput.d.ts +0 -13
  14. package/dist/commons/events/EventMetadata.d.ts +11 -273
  15. package/dist/commons/events/FieldConfig.d.ts +724 -3733
  16. package/dist/commons/events/FieldType.d.ts +3 -3
  17. package/dist/commons/events/FieldTypeMapping.d.ts +4 -11
  18. package/dist/commons/events/FieldValue.d.ts +4 -7
  19. package/dist/commons/events/FormConfig.d.ts +441 -40419
  20. package/dist/commons/events/PageConfig.d.ts +194 -10068
  21. package/dist/commons/events/SummaryConfig.d.ts +39 -95
  22. package/dist/commons/events/User.d.ts +0 -5
  23. package/dist/commons/events/WorkqueueConfig.d.ts +19 -1135
  24. package/dist/commons/events/defineConfig.d.ts +35 -6966
  25. package/dist/commons/events/index.d.ts +0 -3
  26. package/dist/commons/events/test.utils.d.ts +44 -7
  27. package/dist/commons/events/utils.d.ts +67 -3550
  28. package/dist/conditionals/index.js +33 -36
  29. package/dist/events/index.js +977 -1672
  30. package/package.json +2 -3
  31. package/dist/commons/events/event.d.ts +0 -27
  32. package/dist/commons/events/field.d.ts +0 -68
  33. package/dist/commons/events/scopes.d.ts +0 -26
@@ -1,4 +1,4 @@
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;
@@ -12,350 +12,42 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
12
12
  readonly REJECTED: "REJECTED";
13
13
  readonly ARCHIVED: "ARCHIVED";
14
14
  }>;
15
- legalStatuses: z.ZodObject<{
16
- DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
- createdAt: z.ZodString;
18
- createdBy: z.ZodString;
19
- createdAtLocation: z.ZodString;
20
- acceptedAt: z.ZodString;
21
- createdByRole: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- createdAt: string;
24
- createdBy: string;
25
- createdByRole: string;
26
- createdAtLocation: string;
27
- acceptedAt: string;
28
- }, {
29
- createdAt: string;
30
- createdBy: string;
31
- createdByRole: string;
32
- createdAtLocation: string;
33
- acceptedAt: string;
34
- }>>>;
35
- REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
36
- createdAt: z.ZodString;
37
- createdBy: z.ZodString;
38
- createdAtLocation: z.ZodString;
39
- acceptedAt: z.ZodString;
40
- createdByRole: z.ZodString;
41
- }, {
42
- registrationNumber: z.ZodString;
43
- }>, "strip", z.ZodTypeAny, {
44
- createdAt: string;
45
- createdBy: string;
46
- createdByRole: string;
47
- createdAtLocation: string;
48
- registrationNumber: string;
49
- acceptedAt: string;
50
- }, {
51
- createdAt: string;
52
- createdBy: string;
53
- createdByRole: string;
54
- createdAtLocation: string;
55
- registrationNumber: string;
56
- acceptedAt: string;
57
- }>>>;
58
- }, "strip", z.ZodTypeAny, {
59
- DECLARED?: {
60
- createdAt: string;
61
- createdBy: string;
62
- createdByRole: string;
63
- createdAtLocation: string;
64
- acceptedAt: string;
65
- } | null | undefined;
66
- REGISTERED?: {
67
- createdAt: string;
68
- createdBy: string;
69
- createdByRole: string;
70
- createdAtLocation: string;
71
- registrationNumber: string;
72
- acceptedAt: string;
73
- } | null | undefined;
74
- }, {
75
- DECLARED?: {
76
- createdAt: string;
77
- createdBy: string;
78
- createdByRole: string;
79
- createdAtLocation: string;
80
- acceptedAt: string;
81
- } | null | undefined;
82
- REGISTERED?: {
83
- createdAt: string;
84
- createdBy: string;
85
- createdByRole: string;
86
- createdAtLocation: string;
87
- registrationNumber: string;
88
- acceptedAt: string;
89
- } | null | undefined;
90
- }>;
91
15
  createdAt: z.ZodString;
92
- dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
16
  createdBy: z.ZodString;
94
- updatedByUserRole: z.ZodString;
95
17
  createdAtLocation: z.ZodString;
96
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
- updatedAt: z.ZodString;
18
+ modifiedAt: z.ZodString;
98
19
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
- updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ updatedBy: z.ZodString;
100
21
  trackingId: z.ZodString;
101
- flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
102
- readonly CERTIFICATE_PRINTED: "certificate-printed";
103
- }>]>, "many">;
22
+ registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
23
  }, {
105
- 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<{
106
- filename: z.ZodString;
107
- originalFilename: z.ZodString;
108
- type: z.ZodString;
109
- }, "strip", z.ZodTypeAny, {
110
- type: string;
111
- filename: string;
112
- originalFilename: string;
113
- }, {
114
- type: string;
115
- filename: string;
116
- originalFilename: string;
117
- }>, z.ZodArray<z.ZodObject<{
118
- filename: z.ZodString;
119
- originalFilename: z.ZodString;
120
- type: z.ZodString;
121
- option: z.ZodString;
122
- }, "strip", z.ZodTypeAny, {
123
- type: string;
124
- option: string;
125
- filename: string;
126
- originalFilename: string;
127
- }, {
128
- type: string;
129
- option: string;
130
- filename: string;
131
- originalFilename: string;
132
- }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
133
- country: z.ZodString;
134
- addressType: z.ZodLiteral<"DOMESTIC">;
135
- province: z.ZodString;
136
- district: z.ZodString;
137
- }, {
138
- urbanOrRural: z.ZodLiteral<"URBAN">;
139
- town: z.ZodOptional<z.ZodString>;
140
- residentialArea: z.ZodOptional<z.ZodString>;
141
- street: z.ZodOptional<z.ZodString>;
142
- number: z.ZodOptional<z.ZodString>;
143
- zipCode: z.ZodOptional<z.ZodString>;
144
- }>, "strip", z.ZodTypeAny, {
145
- country: string;
146
- district: string;
147
- addressType: "DOMESTIC";
148
- province: string;
149
- urbanOrRural: "URBAN";
150
- number?: string | undefined;
151
- town?: string | undefined;
152
- residentialArea?: string | undefined;
153
- street?: string | undefined;
154
- zipCode?: string | undefined;
155
- }, {
156
- country: string;
157
- district: string;
158
- addressType: "DOMESTIC";
159
- province: string;
160
- urbanOrRural: "URBAN";
161
- number?: string | undefined;
162
- town?: string | undefined;
163
- residentialArea?: string | undefined;
164
- street?: string | undefined;
165
- zipCode?: string | undefined;
166
- }>, z.ZodObject<z.objectUtil.extendShape<{
167
- country: z.ZodString;
168
- addressType: z.ZodLiteral<"DOMESTIC">;
169
- province: z.ZodString;
170
- district: z.ZodString;
171
- }, {
172
- urbanOrRural: z.ZodLiteral<"RURAL">;
173
- village: z.ZodOptional<z.ZodString>;
174
- }>, "strip", z.ZodTypeAny, {
175
- country: string;
176
- district: string;
177
- addressType: "DOMESTIC";
178
- province: string;
179
- urbanOrRural: "RURAL";
180
- village?: string | undefined;
181
- }, {
182
- country: string;
183
- district: string;
184
- addressType: "DOMESTIC";
185
- province: string;
186
- urbanOrRural: "RURAL";
187
- village?: string | undefined;
188
- }>, z.ZodUndefined, z.ZodObject<{
189
- country: z.ZodString;
190
- addressType: z.ZodLiteral<"INTERNATIONAL">;
191
- state: z.ZodString;
192
- district2: z.ZodString;
193
- cityOrTown: z.ZodOptional<z.ZodString>;
194
- addressLine1: z.ZodOptional<z.ZodString>;
195
- addressLine2: z.ZodOptional<z.ZodString>;
196
- addressLine3: z.ZodOptional<z.ZodString>;
197
- postcodeOrZip: z.ZodOptional<z.ZodString>;
198
- }, "strip", z.ZodTypeAny, {
199
- country: string;
200
- state: string;
201
- addressType: "INTERNATIONAL";
202
- district2: string;
203
- cityOrTown?: string | undefined;
204
- addressLine1?: string | undefined;
205
- addressLine2?: string | undefined;
206
- addressLine3?: string | undefined;
207
- postcodeOrZip?: string | undefined;
208
- }, {
209
- country: string;
210
- state: string;
211
- addressType: "INTERNATIONAL";
212
- district2: string;
213
- cityOrTown?: string | undefined;
214
- addressLine1?: string | undefined;
215
- addressLine2?: string | undefined;
216
- addressLine3?: string | undefined;
217
- postcodeOrZip?: string | undefined;
218
- }>]>>;
24
+ declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
219
25
  }>, "strip", z.ZodTypeAny, {
220
26
  type: string;
221
27
  id: string;
222
28
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
223
29
  createdAt: string;
224
30
  createdBy: string;
225
- declaration: Record<string, string | number | boolean | {
226
- type: string;
227
- filename: string;
228
- originalFilename: string;
229
- } | {
230
- country: string;
231
- district: string;
232
- addressType: "DOMESTIC";
233
- province: string;
234
- urbanOrRural: "URBAN";
235
- number?: string | undefined;
236
- town?: string | undefined;
237
- residentialArea?: string | undefined;
238
- street?: string | undefined;
239
- zipCode?: string | undefined;
240
- } | {
241
- country: string;
242
- district: string;
243
- addressType: "DOMESTIC";
244
- province: string;
245
- urbanOrRural: "RURAL";
246
- village?: string | undefined;
247
- } | {
248
- country: string;
249
- state: string;
250
- addressType: "INTERNATIONAL";
251
- district2: string;
252
- cityOrTown?: string | undefined;
253
- addressLine1?: string | undefined;
254
- addressLine2?: string | undefined;
255
- addressLine3?: string | undefined;
256
- postcodeOrZip?: string | undefined;
257
- } | {
258
- type: string;
259
- option: string;
260
- filename: string;
261
- originalFilename: string;
262
- }[] | [string, string] | undefined>;
31
+ declaration: Record<string, any>;
263
32
  createdAtLocation: string;
264
- updatedAt: string;
265
33
  trackingId: string;
266
- legalStatuses: {
267
- DECLARED?: {
268
- createdAt: string;
269
- createdBy: string;
270
- createdByRole: string;
271
- createdAtLocation: string;
272
- acceptedAt: string;
273
- } | null | undefined;
274
- REGISTERED?: {
275
- createdAt: string;
276
- createdBy: string;
277
- createdByRole: string;
278
- createdAtLocation: string;
279
- registrationNumber: string;
280
- acceptedAt: string;
281
- } | null | undefined;
282
- };
283
- updatedByUserRole: string;
284
- flags: string[];
34
+ modifiedAt: string;
35
+ updatedBy: string;
285
36
  assignedTo?: string | null | undefined;
286
- dateOfEvent?: string | null | undefined;
287
- updatedAtLocation?: string | null | undefined;
288
- updatedBy?: string | null | undefined;
37
+ registrationNumber?: string | null | undefined;
289
38
  }, {
290
39
  type: string;
291
40
  id: string;
292
41
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
293
42
  createdAt: string;
294
43
  createdBy: string;
295
- declaration: Record<string, string | number | boolean | {
296
- type: string;
297
- filename: string;
298
- originalFilename: string;
299
- } | {
300
- country: string;
301
- district: string;
302
- addressType: "DOMESTIC";
303
- province: string;
304
- urbanOrRural: "URBAN";
305
- number?: string | undefined;
306
- town?: string | undefined;
307
- residentialArea?: string | undefined;
308
- street?: string | undefined;
309
- zipCode?: string | undefined;
310
- } | {
311
- country: string;
312
- district: string;
313
- addressType: "DOMESTIC";
314
- province: string;
315
- urbanOrRural: "RURAL";
316
- village?: string | undefined;
317
- } | {
318
- country: string;
319
- state: string;
320
- addressType: "INTERNATIONAL";
321
- district2: string;
322
- cityOrTown?: string | undefined;
323
- addressLine1?: string | undefined;
324
- addressLine2?: string | undefined;
325
- addressLine3?: string | undefined;
326
- postcodeOrZip?: string | undefined;
327
- } | {
328
- type: string;
329
- option: string;
330
- filename: string;
331
- originalFilename: string;
332
- }[] | [string, string] | undefined>;
44
+ declaration: Record<string, any>;
333
45
  createdAtLocation: string;
334
- updatedAt: string;
335
46
  trackingId: string;
336
- legalStatuses: {
337
- DECLARED?: {
338
- createdAt: string;
339
- createdBy: string;
340
- createdByRole: string;
341
- createdAtLocation: string;
342
- acceptedAt: string;
343
- } | null | undefined;
344
- REGISTERED?: {
345
- createdAt: string;
346
- createdBy: string;
347
- createdByRole: string;
348
- createdAtLocation: string;
349
- registrationNumber: string;
350
- acceptedAt: string;
351
- } | null | undefined;
352
- };
353
- updatedByUserRole: string;
354
- flags: string[];
47
+ modifiedAt: string;
48
+ updatedBy: string;
355
49
  assignedTo?: string | null | undefined;
356
- dateOfEvent?: string | null | undefined;
357
- updatedAtLocation?: string | null | undefined;
358
- updatedBy?: string | null | undefined;
50
+ registrationNumber?: string | null | undefined;
359
51
  }>;
360
52
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
361
53
  type: z.ZodString;
@@ -366,1029 +58,4 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
366
58
  }>>;
367
59
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
368
60
  export type EventIndex = z.infer<typeof EventIndex>;
369
- declare const Fuzzy: z.ZodObject<{
370
- type: z.ZodLiteral<"fuzzy">;
371
- term: z.ZodString;
372
- }, "strip", z.ZodTypeAny, {
373
- type: "fuzzy";
374
- term: string;
375
- }, {
376
- type: "fuzzy";
377
- term: string;
378
- }>;
379
- declare const Exact: z.ZodObject<{
380
- type: z.ZodLiteral<"exact">;
381
- term: z.ZodString;
382
- }, "strip", z.ZodTypeAny, {
383
- type: "exact";
384
- term: string;
385
- }, {
386
- type: "exact";
387
- term: string;
388
- }>;
389
- declare const AnyOf: z.ZodObject<{
390
- type: z.ZodLiteral<"anyOf">;
391
- terms: z.ZodArray<z.ZodString, "many">;
392
- }, "strip", z.ZodTypeAny, {
393
- type: "anyOf";
394
- terms: string[];
395
- }, {
396
- type: "anyOf";
397
- terms: string[];
398
- }>;
399
- declare const Range: z.ZodObject<{
400
- type: z.ZodLiteral<"range">;
401
- gte: z.ZodString;
402
- lte: z.ZodString;
403
- }, "strip", z.ZodTypeAny, {
404
- type: "range";
405
- gte: string;
406
- lte: string;
407
- }, {
408
- type: "range";
409
- gte: string;
410
- lte: string;
411
- }>;
412
- declare const Not: z.ZodObject<{
413
- type: z.ZodLiteral<"not">;
414
- term: z.ZodString;
415
- }, "strip", z.ZodTypeAny, {
416
- type: "not";
417
- term: string;
418
- }, {
419
- type: "not";
420
- term: string;
421
- }>;
422
- declare const Within: z.ZodObject<{
423
- type: z.ZodLiteral<"within">;
424
- location: z.ZodString;
425
- }, "strip", z.ZodTypeAny, {
426
- type: "within";
427
- location: string;
428
- }, {
429
- type: "within";
430
- location: string;
431
- }>;
432
- export declare const QueryInput: ZodType;
433
- 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>;
434
- type QueryMap = {
435
- [key: string]: BaseInput | QueryMap;
436
- };
437
- export type QueryInputType = BaseInput | QueryMap;
438
- declare const QueryExpression: z.ZodObject<{
439
- type: z.ZodOptional<z.ZodLiteral<"and">>;
440
- eventType: z.ZodOptional<z.ZodString>;
441
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
442
- type: z.ZodLiteral<"anyOf">;
443
- terms: z.ZodArray<z.ZodString, "many">;
444
- }, "strip", z.ZodTypeAny, {
445
- type: "anyOf";
446
- terms: string[];
447
- }, {
448
- type: "anyOf";
449
- terms: string[];
450
- }>, z.ZodObject<{
451
- type: z.ZodLiteral<"exact">;
452
- term: z.ZodString;
453
- }, "strip", z.ZodTypeAny, {
454
- type: "exact";
455
- term: string;
456
- }, {
457
- type: "exact";
458
- term: string;
459
- }>]>>>;
460
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
461
- type: z.ZodLiteral<"exact">;
462
- term: z.ZodString;
463
- }, "strip", z.ZodTypeAny, {
464
- type: "exact";
465
- term: string;
466
- }, {
467
- type: "exact";
468
- term: string;
469
- }>, z.ZodObject<{
470
- type: z.ZodLiteral<"range">;
471
- gte: z.ZodString;
472
- lte: z.ZodString;
473
- }, "strip", z.ZodTypeAny, {
474
- type: "range";
475
- gte: string;
476
- lte: string;
477
- }, {
478
- type: "range";
479
- gte: string;
480
- lte: string;
481
- }>]>>>;
482
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
483
- type: z.ZodLiteral<"exact">;
484
- term: z.ZodString;
485
- }, "strip", z.ZodTypeAny, {
486
- type: "exact";
487
- term: string;
488
- }, {
489
- type: "exact";
490
- term: string;
491
- }>, z.ZodObject<{
492
- type: z.ZodLiteral<"range">;
493
- gte: z.ZodString;
494
- lte: z.ZodString;
495
- }, "strip", z.ZodTypeAny, {
496
- type: "range";
497
- gte: string;
498
- lte: string;
499
- }, {
500
- type: "range";
501
- gte: string;
502
- lte: string;
503
- }>]>>>;
504
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
505
- type: z.ZodLiteral<"within">;
506
- location: z.ZodString;
507
- }, "strip", z.ZodTypeAny, {
508
- type: "within";
509
- location: string;
510
- }, {
511
- type: "within";
512
- location: string;
513
- }>, z.ZodObject<{
514
- type: z.ZodLiteral<"exact">;
515
- term: z.ZodString;
516
- }, "strip", z.ZodTypeAny, {
517
- type: "exact";
518
- term: string;
519
- }, {
520
- type: "exact";
521
- term: string;
522
- }>]>>>;
523
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
524
- type: z.ZodLiteral<"within">;
525
- location: z.ZodString;
526
- }, "strip", z.ZodTypeAny, {
527
- type: "within";
528
- location: string;
529
- }, {
530
- type: "within";
531
- location: string;
532
- }>, z.ZodObject<{
533
- type: z.ZodLiteral<"exact">;
534
- term: z.ZodString;
535
- }, "strip", z.ZodTypeAny, {
536
- type: "exact";
537
- term: string;
538
- }, {
539
- type: "exact";
540
- term: string;
541
- }>]>>>;
542
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
543
- type: z.ZodLiteral<"exact">;
544
- term: z.ZodString;
545
- }, "strip", z.ZodTypeAny, {
546
- type: "exact";
547
- term: string;
548
- }, {
549
- type: "exact";
550
- term: string;
551
- }>>>;
552
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
553
- type: z.ZodLiteral<"exact">;
554
- term: z.ZodString;
555
- }, "strip", z.ZodTypeAny, {
556
- type: "exact";
557
- term: string;
558
- }, {
559
- type: "exact";
560
- term: string;
561
- }>>>;
562
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
563
- type: z.ZodLiteral<"exact">;
564
- term: z.ZodString;
565
- }, "strip", z.ZodTypeAny, {
566
- type: "exact";
567
- term: string;
568
- }, {
569
- type: "exact";
570
- term: string;
571
- }>>>;
572
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
573
- type: z.ZodLiteral<"anyOf">;
574
- terms: z.ZodArray<z.ZodString, "many">;
575
- }, "strip", z.ZodTypeAny, {
576
- type: "anyOf";
577
- terms: string[];
578
- }, {
579
- type: "anyOf";
580
- terms: string[];
581
- }>, z.ZodObject<{
582
- type: z.ZodLiteral<"not">;
583
- term: z.ZodString;
584
- }, "strip", z.ZodTypeAny, {
585
- type: "not";
586
- term: string;
587
- }, {
588
- type: "not";
589
- term: string;
590
- }>]>, "many">>>;
591
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
592
- }, "strip", z.ZodTypeAny, {
593
- type?: "and" | undefined;
594
- status?: {
595
- type: "exact";
596
- term: string;
597
- } | {
598
- type: "anyOf";
599
- terms: string[];
600
- } | undefined;
601
- data?: any;
602
- createdAt?: {
603
- type: "exact";
604
- term: string;
605
- } | {
606
- type: "range";
607
- gte: string;
608
- lte: string;
609
- } | undefined;
610
- createdBy?: {
611
- type: "exact";
612
- term: string;
613
- } | undefined;
614
- updatedAt?: {
615
- type: "exact";
616
- term: string;
617
- } | {
618
- type: "range";
619
- gte: string;
620
- lte: string;
621
- } | undefined;
622
- trackingId?: {
623
- type: "exact";
624
- term: string;
625
- } | undefined;
626
- updatedAtLocation?: {
627
- type: "exact";
628
- term: string;
629
- } | {
630
- type: "within";
631
- location: string;
632
- } | undefined;
633
- updatedBy?: {
634
- type: "exact";
635
- term: string;
636
- } | undefined;
637
- flags?: ({
638
- type: "anyOf";
639
- terms: string[];
640
- } | {
641
- type: "not";
642
- term: string;
643
- })[] | undefined;
644
- eventType?: string | undefined;
645
- createAtLocation?: {
646
- type: "exact";
647
- term: string;
648
- } | {
649
- type: "within";
650
- location: string;
651
- } | undefined;
652
- }, {
653
- type?: "and" | undefined;
654
- status?: {
655
- type: "exact";
656
- term: string;
657
- } | {
658
- type: "anyOf";
659
- terms: string[];
660
- } | undefined;
661
- data?: any;
662
- createdAt?: {
663
- type: "exact";
664
- term: string;
665
- } | {
666
- type: "range";
667
- gte: string;
668
- lte: string;
669
- } | undefined;
670
- createdBy?: {
671
- type: "exact";
672
- term: string;
673
- } | undefined;
674
- updatedAt?: {
675
- type: "exact";
676
- term: string;
677
- } | {
678
- type: "range";
679
- gte: string;
680
- lte: string;
681
- } | undefined;
682
- trackingId?: {
683
- type: "exact";
684
- term: string;
685
- } | undefined;
686
- updatedAtLocation?: {
687
- type: "exact";
688
- term: string;
689
- } | {
690
- type: "within";
691
- location: string;
692
- } | undefined;
693
- updatedBy?: {
694
- type: "exact";
695
- term: string;
696
- } | undefined;
697
- flags?: ({
698
- type: "anyOf";
699
- terms: string[];
700
- } | {
701
- type: "not";
702
- term: string;
703
- })[] | undefined;
704
- eventType?: string | undefined;
705
- createAtLocation?: {
706
- type: "exact";
707
- term: string;
708
- } | {
709
- type: "within";
710
- location: string;
711
- } | undefined;
712
- }>;
713
- export type QueryExpression = z.infer<typeof QueryExpression>;
714
- export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
715
- type: z.ZodOptional<z.ZodLiteral<"and">>;
716
- eventType: z.ZodOptional<z.ZodString>;
717
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
718
- type: z.ZodLiteral<"anyOf">;
719
- terms: z.ZodArray<z.ZodString, "many">;
720
- }, "strip", z.ZodTypeAny, {
721
- type: "anyOf";
722
- terms: string[];
723
- }, {
724
- type: "anyOf";
725
- terms: string[];
726
- }>, z.ZodObject<{
727
- type: z.ZodLiteral<"exact">;
728
- term: z.ZodString;
729
- }, "strip", z.ZodTypeAny, {
730
- type: "exact";
731
- term: string;
732
- }, {
733
- type: "exact";
734
- term: string;
735
- }>]>>>;
736
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
737
- type: z.ZodLiteral<"exact">;
738
- term: z.ZodString;
739
- }, "strip", z.ZodTypeAny, {
740
- type: "exact";
741
- term: string;
742
- }, {
743
- type: "exact";
744
- term: string;
745
- }>, z.ZodObject<{
746
- type: z.ZodLiteral<"range">;
747
- gte: z.ZodString;
748
- lte: z.ZodString;
749
- }, "strip", z.ZodTypeAny, {
750
- type: "range";
751
- gte: string;
752
- lte: string;
753
- }, {
754
- type: "range";
755
- gte: string;
756
- lte: string;
757
- }>]>>>;
758
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
759
- type: z.ZodLiteral<"exact">;
760
- term: z.ZodString;
761
- }, "strip", z.ZodTypeAny, {
762
- type: "exact";
763
- term: string;
764
- }, {
765
- type: "exact";
766
- term: string;
767
- }>, z.ZodObject<{
768
- type: z.ZodLiteral<"range">;
769
- gte: z.ZodString;
770
- lte: z.ZodString;
771
- }, "strip", z.ZodTypeAny, {
772
- type: "range";
773
- gte: string;
774
- lte: string;
775
- }, {
776
- type: "range";
777
- gte: string;
778
- lte: string;
779
- }>]>>>;
780
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
781
- type: z.ZodLiteral<"within">;
782
- location: z.ZodString;
783
- }, "strip", z.ZodTypeAny, {
784
- type: "within";
785
- location: string;
786
- }, {
787
- type: "within";
788
- location: string;
789
- }>, z.ZodObject<{
790
- type: z.ZodLiteral<"exact">;
791
- term: z.ZodString;
792
- }, "strip", z.ZodTypeAny, {
793
- type: "exact";
794
- term: string;
795
- }, {
796
- type: "exact";
797
- term: string;
798
- }>]>>>;
799
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
800
- type: z.ZodLiteral<"within">;
801
- location: z.ZodString;
802
- }, "strip", z.ZodTypeAny, {
803
- type: "within";
804
- location: string;
805
- }, {
806
- type: "within";
807
- location: string;
808
- }>, z.ZodObject<{
809
- type: z.ZodLiteral<"exact">;
810
- term: z.ZodString;
811
- }, "strip", z.ZodTypeAny, {
812
- type: "exact";
813
- term: string;
814
- }, {
815
- type: "exact";
816
- term: string;
817
- }>]>>>;
818
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
819
- type: z.ZodLiteral<"exact">;
820
- term: z.ZodString;
821
- }, "strip", z.ZodTypeAny, {
822
- type: "exact";
823
- term: string;
824
- }, {
825
- type: "exact";
826
- term: string;
827
- }>>>;
828
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
829
- type: z.ZodLiteral<"exact">;
830
- term: z.ZodString;
831
- }, "strip", z.ZodTypeAny, {
832
- type: "exact";
833
- term: string;
834
- }, {
835
- type: "exact";
836
- term: string;
837
- }>>>;
838
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
839
- type: z.ZodLiteral<"exact">;
840
- term: z.ZodString;
841
- }, "strip", z.ZodTypeAny, {
842
- type: "exact";
843
- term: string;
844
- }, {
845
- type: "exact";
846
- term: string;
847
- }>>>;
848
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
849
- type: z.ZodLiteral<"anyOf">;
850
- terms: z.ZodArray<z.ZodString, "many">;
851
- }, "strip", z.ZodTypeAny, {
852
- type: "anyOf";
853
- terms: string[];
854
- }, {
855
- type: "anyOf";
856
- terms: string[];
857
- }>, z.ZodObject<{
858
- type: z.ZodLiteral<"not">;
859
- term: z.ZodString;
860
- }, "strip", z.ZodTypeAny, {
861
- type: "not";
862
- term: string;
863
- }, {
864
- type: "not";
865
- term: string;
866
- }>]>, "many">>>;
867
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
868
- }, "strip", z.ZodTypeAny, {
869
- type?: "and" | undefined;
870
- status?: {
871
- type: "exact";
872
- term: string;
873
- } | {
874
- type: "anyOf";
875
- terms: string[];
876
- } | undefined;
877
- data?: any;
878
- createdAt?: {
879
- type: "exact";
880
- term: string;
881
- } | {
882
- type: "range";
883
- gte: string;
884
- lte: string;
885
- } | undefined;
886
- createdBy?: {
887
- type: "exact";
888
- term: string;
889
- } | undefined;
890
- updatedAt?: {
891
- type: "exact";
892
- term: string;
893
- } | {
894
- type: "range";
895
- gte: string;
896
- lte: string;
897
- } | undefined;
898
- trackingId?: {
899
- type: "exact";
900
- term: string;
901
- } | undefined;
902
- updatedAtLocation?: {
903
- type: "exact";
904
- term: string;
905
- } | {
906
- type: "within";
907
- location: string;
908
- } | undefined;
909
- updatedBy?: {
910
- type: "exact";
911
- term: string;
912
- } | undefined;
913
- flags?: ({
914
- type: "anyOf";
915
- terms: string[];
916
- } | {
917
- type: "not";
918
- term: string;
919
- })[] | undefined;
920
- eventType?: string | undefined;
921
- createAtLocation?: {
922
- type: "exact";
923
- term: string;
924
- } | {
925
- type: "within";
926
- location: string;
927
- } | undefined;
928
- }, {
929
- type?: "and" | undefined;
930
- status?: {
931
- type: "exact";
932
- term: string;
933
- } | {
934
- type: "anyOf";
935
- terms: string[];
936
- } | undefined;
937
- data?: any;
938
- createdAt?: {
939
- type: "exact";
940
- term: string;
941
- } | {
942
- type: "range";
943
- gte: string;
944
- lte: string;
945
- } | undefined;
946
- createdBy?: {
947
- type: "exact";
948
- term: string;
949
- } | undefined;
950
- updatedAt?: {
951
- type: "exact";
952
- term: string;
953
- } | {
954
- type: "range";
955
- gte: string;
956
- lte: string;
957
- } | undefined;
958
- trackingId?: {
959
- type: "exact";
960
- term: string;
961
- } | undefined;
962
- updatedAtLocation?: {
963
- type: "exact";
964
- term: string;
965
- } | {
966
- type: "within";
967
- location: string;
968
- } | undefined;
969
- updatedBy?: {
970
- type: "exact";
971
- term: string;
972
- } | undefined;
973
- flags?: ({
974
- type: "anyOf";
975
- terms: string[];
976
- } | {
977
- type: "not";
978
- term: string;
979
- })[] | undefined;
980
- eventType?: string | undefined;
981
- createAtLocation?: {
982
- type: "exact";
983
- term: string;
984
- } | {
985
- type: "within";
986
- location: string;
987
- } | undefined;
988
- }>, z.ZodObject<{
989
- type: z.ZodLiteral<"or">;
990
- clauses: z.ZodArray<z.ZodObject<{
991
- type: z.ZodOptional<z.ZodLiteral<"and">>;
992
- eventType: z.ZodOptional<z.ZodString>;
993
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
994
- type: z.ZodLiteral<"anyOf">;
995
- terms: z.ZodArray<z.ZodString, "many">;
996
- }, "strip", z.ZodTypeAny, {
997
- type: "anyOf";
998
- terms: string[];
999
- }, {
1000
- type: "anyOf";
1001
- terms: string[];
1002
- }>, z.ZodObject<{
1003
- type: z.ZodLiteral<"exact">;
1004
- term: z.ZodString;
1005
- }, "strip", z.ZodTypeAny, {
1006
- type: "exact";
1007
- term: string;
1008
- }, {
1009
- type: "exact";
1010
- term: string;
1011
- }>]>>>;
1012
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1013
- type: z.ZodLiteral<"exact">;
1014
- term: z.ZodString;
1015
- }, "strip", z.ZodTypeAny, {
1016
- type: "exact";
1017
- term: string;
1018
- }, {
1019
- type: "exact";
1020
- term: string;
1021
- }>, z.ZodObject<{
1022
- type: z.ZodLiteral<"range">;
1023
- gte: z.ZodString;
1024
- lte: z.ZodString;
1025
- }, "strip", z.ZodTypeAny, {
1026
- type: "range";
1027
- gte: string;
1028
- lte: string;
1029
- }, {
1030
- type: "range";
1031
- gte: string;
1032
- lte: string;
1033
- }>]>>>;
1034
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1035
- type: z.ZodLiteral<"exact">;
1036
- term: z.ZodString;
1037
- }, "strip", z.ZodTypeAny, {
1038
- type: "exact";
1039
- term: string;
1040
- }, {
1041
- type: "exact";
1042
- term: string;
1043
- }>, z.ZodObject<{
1044
- type: z.ZodLiteral<"range">;
1045
- gte: z.ZodString;
1046
- lte: z.ZodString;
1047
- }, "strip", z.ZodTypeAny, {
1048
- type: "range";
1049
- gte: string;
1050
- lte: string;
1051
- }, {
1052
- type: "range";
1053
- gte: string;
1054
- lte: string;
1055
- }>]>>>;
1056
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1057
- type: z.ZodLiteral<"within">;
1058
- location: z.ZodString;
1059
- }, "strip", z.ZodTypeAny, {
1060
- type: "within";
1061
- location: string;
1062
- }, {
1063
- type: "within";
1064
- location: string;
1065
- }>, z.ZodObject<{
1066
- type: z.ZodLiteral<"exact">;
1067
- term: z.ZodString;
1068
- }, "strip", z.ZodTypeAny, {
1069
- type: "exact";
1070
- term: string;
1071
- }, {
1072
- type: "exact";
1073
- term: string;
1074
- }>]>>>;
1075
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1076
- type: z.ZodLiteral<"within">;
1077
- location: z.ZodString;
1078
- }, "strip", z.ZodTypeAny, {
1079
- type: "within";
1080
- location: string;
1081
- }, {
1082
- type: "within";
1083
- location: string;
1084
- }>, z.ZodObject<{
1085
- type: z.ZodLiteral<"exact">;
1086
- term: z.ZodString;
1087
- }, "strip", z.ZodTypeAny, {
1088
- type: "exact";
1089
- term: string;
1090
- }, {
1091
- type: "exact";
1092
- term: string;
1093
- }>]>>>;
1094
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1095
- type: z.ZodLiteral<"exact">;
1096
- term: z.ZodString;
1097
- }, "strip", z.ZodTypeAny, {
1098
- type: "exact";
1099
- term: string;
1100
- }, {
1101
- type: "exact";
1102
- term: string;
1103
- }>>>;
1104
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1105
- type: z.ZodLiteral<"exact">;
1106
- term: z.ZodString;
1107
- }, "strip", z.ZodTypeAny, {
1108
- type: "exact";
1109
- term: string;
1110
- }, {
1111
- type: "exact";
1112
- term: string;
1113
- }>>>;
1114
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1115
- type: z.ZodLiteral<"exact">;
1116
- term: z.ZodString;
1117
- }, "strip", z.ZodTypeAny, {
1118
- type: "exact";
1119
- term: string;
1120
- }, {
1121
- type: "exact";
1122
- term: string;
1123
- }>>>;
1124
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1125
- type: z.ZodLiteral<"anyOf">;
1126
- terms: z.ZodArray<z.ZodString, "many">;
1127
- }, "strip", z.ZodTypeAny, {
1128
- type: "anyOf";
1129
- terms: string[];
1130
- }, {
1131
- type: "anyOf";
1132
- terms: string[];
1133
- }>, z.ZodObject<{
1134
- type: z.ZodLiteral<"not">;
1135
- term: z.ZodString;
1136
- }, "strip", z.ZodTypeAny, {
1137
- type: "not";
1138
- term: string;
1139
- }, {
1140
- type: "not";
1141
- term: string;
1142
- }>]>, "many">>>;
1143
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1144
- }, "strip", z.ZodTypeAny, {
1145
- type?: "and" | undefined;
1146
- status?: {
1147
- type: "exact";
1148
- term: string;
1149
- } | {
1150
- type: "anyOf";
1151
- terms: string[];
1152
- } | undefined;
1153
- data?: any;
1154
- createdAt?: {
1155
- type: "exact";
1156
- term: string;
1157
- } | {
1158
- type: "range";
1159
- gte: string;
1160
- lte: string;
1161
- } | undefined;
1162
- createdBy?: {
1163
- type: "exact";
1164
- term: string;
1165
- } | undefined;
1166
- updatedAt?: {
1167
- type: "exact";
1168
- term: string;
1169
- } | {
1170
- type: "range";
1171
- gte: string;
1172
- lte: string;
1173
- } | undefined;
1174
- trackingId?: {
1175
- type: "exact";
1176
- term: string;
1177
- } | undefined;
1178
- updatedAtLocation?: {
1179
- type: "exact";
1180
- term: string;
1181
- } | {
1182
- type: "within";
1183
- location: string;
1184
- } | undefined;
1185
- updatedBy?: {
1186
- type: "exact";
1187
- term: string;
1188
- } | undefined;
1189
- flags?: ({
1190
- type: "anyOf";
1191
- terms: string[];
1192
- } | {
1193
- type: "not";
1194
- term: string;
1195
- })[] | undefined;
1196
- eventType?: string | undefined;
1197
- createAtLocation?: {
1198
- type: "exact";
1199
- term: string;
1200
- } | {
1201
- type: "within";
1202
- location: string;
1203
- } | undefined;
1204
- }, {
1205
- type?: "and" | undefined;
1206
- status?: {
1207
- type: "exact";
1208
- term: string;
1209
- } | {
1210
- type: "anyOf";
1211
- terms: string[];
1212
- } | undefined;
1213
- data?: any;
1214
- createdAt?: {
1215
- type: "exact";
1216
- term: string;
1217
- } | {
1218
- type: "range";
1219
- gte: string;
1220
- lte: string;
1221
- } | undefined;
1222
- createdBy?: {
1223
- type: "exact";
1224
- term: string;
1225
- } | undefined;
1226
- updatedAt?: {
1227
- type: "exact";
1228
- term: string;
1229
- } | {
1230
- type: "range";
1231
- gte: string;
1232
- lte: string;
1233
- } | undefined;
1234
- trackingId?: {
1235
- type: "exact";
1236
- term: string;
1237
- } | undefined;
1238
- updatedAtLocation?: {
1239
- type: "exact";
1240
- term: string;
1241
- } | {
1242
- type: "within";
1243
- location: string;
1244
- } | undefined;
1245
- updatedBy?: {
1246
- type: "exact";
1247
- term: string;
1248
- } | undefined;
1249
- flags?: ({
1250
- type: "anyOf";
1251
- terms: string[];
1252
- } | {
1253
- type: "not";
1254
- term: string;
1255
- })[] | undefined;
1256
- eventType?: string | undefined;
1257
- createAtLocation?: {
1258
- type: "exact";
1259
- term: string;
1260
- } | {
1261
- type: "within";
1262
- location: string;
1263
- } | undefined;
1264
- }>, "many">;
1265
- }, "strip", z.ZodTypeAny, {
1266
- type: "or";
1267
- clauses: {
1268
- type?: "and" | undefined;
1269
- status?: {
1270
- type: "exact";
1271
- term: string;
1272
- } | {
1273
- type: "anyOf";
1274
- terms: string[];
1275
- } | undefined;
1276
- data?: any;
1277
- createdAt?: {
1278
- type: "exact";
1279
- term: string;
1280
- } | {
1281
- type: "range";
1282
- gte: string;
1283
- lte: string;
1284
- } | undefined;
1285
- createdBy?: {
1286
- type: "exact";
1287
- term: string;
1288
- } | undefined;
1289
- updatedAt?: {
1290
- type: "exact";
1291
- term: string;
1292
- } | {
1293
- type: "range";
1294
- gte: string;
1295
- lte: string;
1296
- } | undefined;
1297
- trackingId?: {
1298
- type: "exact";
1299
- term: string;
1300
- } | undefined;
1301
- updatedAtLocation?: {
1302
- type: "exact";
1303
- term: string;
1304
- } | {
1305
- type: "within";
1306
- location: string;
1307
- } | undefined;
1308
- updatedBy?: {
1309
- type: "exact";
1310
- term: string;
1311
- } | undefined;
1312
- flags?: ({
1313
- type: "anyOf";
1314
- terms: string[];
1315
- } | {
1316
- type: "not";
1317
- term: string;
1318
- })[] | undefined;
1319
- eventType?: string | undefined;
1320
- createAtLocation?: {
1321
- type: "exact";
1322
- term: string;
1323
- } | {
1324
- type: "within";
1325
- location: string;
1326
- } | undefined;
1327
- }[];
1328
- }, {
1329
- type: "or";
1330
- clauses: {
1331
- type?: "and" | undefined;
1332
- status?: {
1333
- type: "exact";
1334
- term: string;
1335
- } | {
1336
- type: "anyOf";
1337
- terms: string[];
1338
- } | undefined;
1339
- data?: any;
1340
- createdAt?: {
1341
- type: "exact";
1342
- term: string;
1343
- } | {
1344
- type: "range";
1345
- gte: string;
1346
- lte: string;
1347
- } | undefined;
1348
- createdBy?: {
1349
- type: "exact";
1350
- term: string;
1351
- } | undefined;
1352
- updatedAt?: {
1353
- type: "exact";
1354
- term: string;
1355
- } | {
1356
- type: "range";
1357
- gte: string;
1358
- lte: string;
1359
- } | undefined;
1360
- trackingId?: {
1361
- type: "exact";
1362
- term: string;
1363
- } | undefined;
1364
- updatedAtLocation?: {
1365
- type: "exact";
1366
- term: string;
1367
- } | {
1368
- type: "within";
1369
- location: string;
1370
- } | undefined;
1371
- updatedBy?: {
1372
- type: "exact";
1373
- term: string;
1374
- } | undefined;
1375
- flags?: ({
1376
- type: "anyOf";
1377
- terms: string[];
1378
- } | {
1379
- type: "not";
1380
- term: string;
1381
- })[] | undefined;
1382
- eventType?: string | undefined;
1383
- createAtLocation?: {
1384
- type: "exact";
1385
- term: string;
1386
- } | {
1387
- type: "within";
1388
- location: string;
1389
- } | undefined;
1390
- }[];
1391
- }>]>;
1392
- export type QueryType = z.infer<typeof QueryType>;
1393
- export {};
1394
61
  //# sourceMappingURL=EventIndex.d.ts.map