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

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.
@@ -10,11 +10,803 @@ export declare const WorkqueueConfig: z.ZodObject<{
10
10
  description: string;
11
11
  defaultMessage: string;
12
12
  }>;
13
- /**
14
- * Placeholder untill the following gets merged to develop
15
- * https://github.com/opencrvs/opencrvs-core/blob/5fbe9854a88504a7a13fcc856b3e82594b70c38c/packages/commons/src/events/EventIndex.ts#L92-L93
16
- */
17
- query: z.ZodString;
13
+ query: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14
+ type: z.ZodLiteral<"or">;
15
+ clauses: z.ZodArray<z.ZodObject<{
16
+ eventType: z.ZodOptional<z.ZodString>;
17
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
18
+ type: z.ZodLiteral<"anyOf">;
19
+ terms: z.ZodArray<z.ZodString, "many">;
20
+ }, "strip", z.ZodTypeAny, {
21
+ type: "anyOf";
22
+ terms: string[];
23
+ }, {
24
+ type: "anyOf";
25
+ terms: string[];
26
+ }>, z.ZodObject<{
27
+ type: z.ZodLiteral<"exact">;
28
+ term: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ type: "exact";
31
+ term: string;
32
+ }, {
33
+ type: "exact";
34
+ term: string;
35
+ }>]>>>;
36
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
37
+ type: z.ZodLiteral<"exact">;
38
+ term: z.ZodString;
39
+ }, "strip", z.ZodTypeAny, {
40
+ type: "exact";
41
+ term: string;
42
+ }, {
43
+ type: "exact";
44
+ term: string;
45
+ }>, z.ZodObject<{
46
+ type: z.ZodLiteral<"range">;
47
+ gte: z.ZodString;
48
+ lte: z.ZodString;
49
+ }, "strip", z.ZodTypeAny, {
50
+ type: "range";
51
+ gte: string;
52
+ lte: string;
53
+ }, {
54
+ type: "range";
55
+ gte: string;
56
+ lte: string;
57
+ }>]>>>;
58
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
59
+ type: z.ZodLiteral<"exact">;
60
+ term: z.ZodString;
61
+ }, "strip", z.ZodTypeAny, {
62
+ type: "exact";
63
+ term: string;
64
+ }, {
65
+ type: "exact";
66
+ term: string;
67
+ }>, z.ZodObject<{
68
+ type: z.ZodLiteral<"range">;
69
+ gte: z.ZodString;
70
+ lte: z.ZodString;
71
+ }, "strip", z.ZodTypeAny, {
72
+ type: "range";
73
+ gte: string;
74
+ lte: string;
75
+ }, {
76
+ type: "range";
77
+ gte: string;
78
+ lte: string;
79
+ }>]>>>;
80
+ createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
81
+ type: z.ZodLiteral<"within">;
82
+ location: z.ZodString;
83
+ }, "strip", z.ZodTypeAny, {
84
+ type: "within";
85
+ location: string;
86
+ }, {
87
+ type: "within";
88
+ location: string;
89
+ }>, z.ZodObject<{
90
+ type: z.ZodLiteral<"exact">;
91
+ term: z.ZodString;
92
+ }, "strip", z.ZodTypeAny, {
93
+ type: "exact";
94
+ term: string;
95
+ }, {
96
+ type: "exact";
97
+ term: string;
98
+ }>]>>>;
99
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
100
+ type: z.ZodLiteral<"within">;
101
+ location: z.ZodString;
102
+ }, "strip", z.ZodTypeAny, {
103
+ type: "within";
104
+ location: string;
105
+ }, {
106
+ type: "within";
107
+ location: string;
108
+ }>, z.ZodObject<{
109
+ type: z.ZodLiteral<"exact">;
110
+ term: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ type: "exact";
113
+ term: string;
114
+ }, {
115
+ type: "exact";
116
+ term: string;
117
+ }>]>>>;
118
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
119
+ type: z.ZodLiteral<"exact">;
120
+ term: z.ZodString;
121
+ }, "strip", z.ZodTypeAny, {
122
+ type: "exact";
123
+ term: string;
124
+ }, {
125
+ type: "exact";
126
+ term: string;
127
+ }>>>;
128
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
129
+ type: z.ZodLiteral<"exact">;
130
+ term: z.ZodString;
131
+ }, "strip", z.ZodTypeAny, {
132
+ type: "exact";
133
+ term: string;
134
+ }, {
135
+ type: "exact";
136
+ term: string;
137
+ }>>>;
138
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
139
+ type: z.ZodLiteral<"exact">;
140
+ term: z.ZodString;
141
+ }, "strip", z.ZodTypeAny, {
142
+ type: "exact";
143
+ term: string;
144
+ }, {
145
+ type: "exact";
146
+ term: string;
147
+ }>>>;
148
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
149
+ type: z.ZodLiteral<"anyOf">;
150
+ terms: z.ZodArray<z.ZodString, "many">;
151
+ }, "strip", z.ZodTypeAny, {
152
+ type: "anyOf";
153
+ terms: string[];
154
+ }, {
155
+ type: "anyOf";
156
+ terms: string[];
157
+ }>, z.ZodObject<{
158
+ type: z.ZodLiteral<"not">;
159
+ term: z.ZodString;
160
+ }, "strip", z.ZodTypeAny, {
161
+ type: "not";
162
+ term: string;
163
+ }, {
164
+ type: "not";
165
+ term: string;
166
+ }>]>, "many">>>;
167
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ status?: {
170
+ type: "exact";
171
+ term: string;
172
+ } | {
173
+ type: "anyOf";
174
+ terms: string[];
175
+ } | undefined;
176
+ data?: any;
177
+ createdAt?: {
178
+ type: "exact";
179
+ term: string;
180
+ } | {
181
+ type: "range";
182
+ gte: string;
183
+ lte: string;
184
+ } | undefined;
185
+ createdBy?: {
186
+ type: "exact";
187
+ term: string;
188
+ } | undefined;
189
+ updatedAt?: {
190
+ type: "exact";
191
+ term: string;
192
+ } | {
193
+ type: "range";
194
+ gte: string;
195
+ lte: string;
196
+ } | undefined;
197
+ trackingId?: {
198
+ type: "exact";
199
+ term: string;
200
+ } | undefined;
201
+ updatedAtLocation?: {
202
+ type: "exact";
203
+ term: string;
204
+ } | {
205
+ type: "within";
206
+ location: string;
207
+ } | undefined;
208
+ updatedBy?: {
209
+ type: "exact";
210
+ term: string;
211
+ } | undefined;
212
+ flags?: ({
213
+ type: "anyOf";
214
+ terms: string[];
215
+ } | {
216
+ type: "not";
217
+ term: string;
218
+ })[] | undefined;
219
+ eventType?: string | undefined;
220
+ createAtLocation?: {
221
+ type: "exact";
222
+ term: string;
223
+ } | {
224
+ type: "within";
225
+ location: string;
226
+ } | undefined;
227
+ }, {
228
+ status?: {
229
+ type: "exact";
230
+ term: string;
231
+ } | {
232
+ type: "anyOf";
233
+ terms: string[];
234
+ } | undefined;
235
+ data?: any;
236
+ createdAt?: {
237
+ type: "exact";
238
+ term: string;
239
+ } | {
240
+ type: "range";
241
+ gte: string;
242
+ lte: string;
243
+ } | undefined;
244
+ createdBy?: {
245
+ type: "exact";
246
+ term: string;
247
+ } | undefined;
248
+ updatedAt?: {
249
+ type: "exact";
250
+ term: string;
251
+ } | {
252
+ type: "range";
253
+ gte: string;
254
+ lte: string;
255
+ } | undefined;
256
+ trackingId?: {
257
+ type: "exact";
258
+ term: string;
259
+ } | undefined;
260
+ updatedAtLocation?: {
261
+ type: "exact";
262
+ term: string;
263
+ } | {
264
+ type: "within";
265
+ location: string;
266
+ } | undefined;
267
+ updatedBy?: {
268
+ type: "exact";
269
+ term: string;
270
+ } | undefined;
271
+ flags?: ({
272
+ type: "anyOf";
273
+ terms: string[];
274
+ } | {
275
+ type: "not";
276
+ term: string;
277
+ })[] | undefined;
278
+ eventType?: string | undefined;
279
+ createAtLocation?: {
280
+ type: "exact";
281
+ term: string;
282
+ } | {
283
+ type: "within";
284
+ location: string;
285
+ } | undefined;
286
+ }>, "many">;
287
+ }, "strip", z.ZodTypeAny, {
288
+ type: "or";
289
+ clauses: {
290
+ status?: {
291
+ type: "exact";
292
+ term: string;
293
+ } | {
294
+ type: "anyOf";
295
+ terms: string[];
296
+ } | undefined;
297
+ data?: any;
298
+ createdAt?: {
299
+ type: "exact";
300
+ term: string;
301
+ } | {
302
+ type: "range";
303
+ gte: string;
304
+ lte: string;
305
+ } | undefined;
306
+ createdBy?: {
307
+ type: "exact";
308
+ term: string;
309
+ } | undefined;
310
+ updatedAt?: {
311
+ type: "exact";
312
+ term: string;
313
+ } | {
314
+ type: "range";
315
+ gte: string;
316
+ lte: string;
317
+ } | undefined;
318
+ trackingId?: {
319
+ type: "exact";
320
+ term: string;
321
+ } | undefined;
322
+ updatedAtLocation?: {
323
+ type: "exact";
324
+ term: string;
325
+ } | {
326
+ type: "within";
327
+ location: string;
328
+ } | undefined;
329
+ updatedBy?: {
330
+ type: "exact";
331
+ term: string;
332
+ } | undefined;
333
+ flags?: ({
334
+ type: "anyOf";
335
+ terms: string[];
336
+ } | {
337
+ type: "not";
338
+ term: string;
339
+ })[] | undefined;
340
+ eventType?: string | undefined;
341
+ createAtLocation?: {
342
+ type: "exact";
343
+ term: string;
344
+ } | {
345
+ type: "within";
346
+ location: string;
347
+ } | undefined;
348
+ }[];
349
+ }, {
350
+ type: "or";
351
+ clauses: {
352
+ status?: {
353
+ type: "exact";
354
+ term: string;
355
+ } | {
356
+ type: "anyOf";
357
+ terms: string[];
358
+ } | undefined;
359
+ data?: any;
360
+ createdAt?: {
361
+ type: "exact";
362
+ term: string;
363
+ } | {
364
+ type: "range";
365
+ gte: string;
366
+ lte: string;
367
+ } | undefined;
368
+ createdBy?: {
369
+ type: "exact";
370
+ term: string;
371
+ } | undefined;
372
+ updatedAt?: {
373
+ type: "exact";
374
+ term: string;
375
+ } | {
376
+ type: "range";
377
+ gte: string;
378
+ lte: string;
379
+ } | undefined;
380
+ trackingId?: {
381
+ type: "exact";
382
+ term: string;
383
+ } | undefined;
384
+ updatedAtLocation?: {
385
+ type: "exact";
386
+ term: string;
387
+ } | {
388
+ type: "within";
389
+ location: string;
390
+ } | undefined;
391
+ updatedBy?: {
392
+ type: "exact";
393
+ term: string;
394
+ } | undefined;
395
+ flags?: ({
396
+ type: "anyOf";
397
+ terms: string[];
398
+ } | {
399
+ type: "not";
400
+ term: string;
401
+ })[] | undefined;
402
+ eventType?: string | undefined;
403
+ createAtLocation?: {
404
+ type: "exact";
405
+ term: string;
406
+ } | {
407
+ type: "within";
408
+ location: string;
409
+ } | undefined;
410
+ }[];
411
+ }>, z.ZodObject<{
412
+ type: z.ZodLiteral<"and">;
413
+ clauses: z.ZodArray<z.ZodObject<{
414
+ eventType: z.ZodOptional<z.ZodString>;
415
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
416
+ type: z.ZodLiteral<"anyOf">;
417
+ terms: z.ZodArray<z.ZodString, "many">;
418
+ }, "strip", z.ZodTypeAny, {
419
+ type: "anyOf";
420
+ terms: string[];
421
+ }, {
422
+ type: "anyOf";
423
+ terms: string[];
424
+ }>, z.ZodObject<{
425
+ type: z.ZodLiteral<"exact">;
426
+ term: z.ZodString;
427
+ }, "strip", z.ZodTypeAny, {
428
+ type: "exact";
429
+ term: string;
430
+ }, {
431
+ type: "exact";
432
+ term: string;
433
+ }>]>>>;
434
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
435
+ type: z.ZodLiteral<"exact">;
436
+ term: z.ZodString;
437
+ }, "strip", z.ZodTypeAny, {
438
+ type: "exact";
439
+ term: string;
440
+ }, {
441
+ type: "exact";
442
+ term: string;
443
+ }>, z.ZodObject<{
444
+ type: z.ZodLiteral<"range">;
445
+ gte: z.ZodString;
446
+ lte: z.ZodString;
447
+ }, "strip", z.ZodTypeAny, {
448
+ type: "range";
449
+ gte: string;
450
+ lte: string;
451
+ }, {
452
+ type: "range";
453
+ gte: string;
454
+ lte: string;
455
+ }>]>>>;
456
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
457
+ type: z.ZodLiteral<"exact">;
458
+ term: z.ZodString;
459
+ }, "strip", z.ZodTypeAny, {
460
+ type: "exact";
461
+ term: string;
462
+ }, {
463
+ type: "exact";
464
+ term: string;
465
+ }>, z.ZodObject<{
466
+ type: z.ZodLiteral<"range">;
467
+ gte: z.ZodString;
468
+ lte: z.ZodString;
469
+ }, "strip", z.ZodTypeAny, {
470
+ type: "range";
471
+ gte: string;
472
+ lte: string;
473
+ }, {
474
+ type: "range";
475
+ gte: string;
476
+ lte: string;
477
+ }>]>>>;
478
+ createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
479
+ type: z.ZodLiteral<"within">;
480
+ location: z.ZodString;
481
+ }, "strip", z.ZodTypeAny, {
482
+ type: "within";
483
+ location: string;
484
+ }, {
485
+ type: "within";
486
+ location: string;
487
+ }>, z.ZodObject<{
488
+ type: z.ZodLiteral<"exact">;
489
+ term: z.ZodString;
490
+ }, "strip", z.ZodTypeAny, {
491
+ type: "exact";
492
+ term: string;
493
+ }, {
494
+ type: "exact";
495
+ term: string;
496
+ }>]>>>;
497
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
498
+ type: z.ZodLiteral<"within">;
499
+ location: z.ZodString;
500
+ }, "strip", z.ZodTypeAny, {
501
+ type: "within";
502
+ location: string;
503
+ }, {
504
+ type: "within";
505
+ location: string;
506
+ }>, z.ZodObject<{
507
+ type: z.ZodLiteral<"exact">;
508
+ term: z.ZodString;
509
+ }, "strip", z.ZodTypeAny, {
510
+ type: "exact";
511
+ term: string;
512
+ }, {
513
+ type: "exact";
514
+ term: string;
515
+ }>]>>>;
516
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
517
+ type: z.ZodLiteral<"exact">;
518
+ term: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ type: "exact";
521
+ term: string;
522
+ }, {
523
+ type: "exact";
524
+ term: string;
525
+ }>>>;
526
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
527
+ type: z.ZodLiteral<"exact">;
528
+ term: z.ZodString;
529
+ }, "strip", z.ZodTypeAny, {
530
+ type: "exact";
531
+ term: string;
532
+ }, {
533
+ type: "exact";
534
+ term: string;
535
+ }>>>;
536
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
537
+ type: z.ZodLiteral<"exact">;
538
+ term: z.ZodString;
539
+ }, "strip", z.ZodTypeAny, {
540
+ type: "exact";
541
+ term: string;
542
+ }, {
543
+ type: "exact";
544
+ term: string;
545
+ }>>>;
546
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
547
+ type: z.ZodLiteral<"anyOf">;
548
+ terms: z.ZodArray<z.ZodString, "many">;
549
+ }, "strip", z.ZodTypeAny, {
550
+ type: "anyOf";
551
+ terms: string[];
552
+ }, {
553
+ type: "anyOf";
554
+ terms: string[];
555
+ }>, z.ZodObject<{
556
+ type: z.ZodLiteral<"not">;
557
+ term: z.ZodString;
558
+ }, "strip", z.ZodTypeAny, {
559
+ type: "not";
560
+ term: string;
561
+ }, {
562
+ type: "not";
563
+ term: string;
564
+ }>]>, "many">>>;
565
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ status?: {
568
+ type: "exact";
569
+ term: string;
570
+ } | {
571
+ type: "anyOf";
572
+ terms: string[];
573
+ } | undefined;
574
+ data?: any;
575
+ createdAt?: {
576
+ type: "exact";
577
+ term: string;
578
+ } | {
579
+ type: "range";
580
+ gte: string;
581
+ lte: string;
582
+ } | undefined;
583
+ createdBy?: {
584
+ type: "exact";
585
+ term: string;
586
+ } | undefined;
587
+ updatedAt?: {
588
+ type: "exact";
589
+ term: string;
590
+ } | {
591
+ type: "range";
592
+ gte: string;
593
+ lte: string;
594
+ } | undefined;
595
+ trackingId?: {
596
+ type: "exact";
597
+ term: string;
598
+ } | undefined;
599
+ updatedAtLocation?: {
600
+ type: "exact";
601
+ term: string;
602
+ } | {
603
+ type: "within";
604
+ location: string;
605
+ } | undefined;
606
+ updatedBy?: {
607
+ type: "exact";
608
+ term: string;
609
+ } | undefined;
610
+ flags?: ({
611
+ type: "anyOf";
612
+ terms: string[];
613
+ } | {
614
+ type: "not";
615
+ term: string;
616
+ })[] | undefined;
617
+ eventType?: string | undefined;
618
+ createAtLocation?: {
619
+ type: "exact";
620
+ term: string;
621
+ } | {
622
+ type: "within";
623
+ location: string;
624
+ } | undefined;
625
+ }, {
626
+ status?: {
627
+ type: "exact";
628
+ term: string;
629
+ } | {
630
+ type: "anyOf";
631
+ terms: string[];
632
+ } | undefined;
633
+ data?: any;
634
+ createdAt?: {
635
+ type: "exact";
636
+ term: string;
637
+ } | {
638
+ type: "range";
639
+ gte: string;
640
+ lte: string;
641
+ } | undefined;
642
+ createdBy?: {
643
+ type: "exact";
644
+ term: string;
645
+ } | undefined;
646
+ updatedAt?: {
647
+ type: "exact";
648
+ term: string;
649
+ } | {
650
+ type: "range";
651
+ gte: string;
652
+ lte: string;
653
+ } | undefined;
654
+ trackingId?: {
655
+ type: "exact";
656
+ term: string;
657
+ } | undefined;
658
+ updatedAtLocation?: {
659
+ type: "exact";
660
+ term: string;
661
+ } | {
662
+ type: "within";
663
+ location: string;
664
+ } | undefined;
665
+ updatedBy?: {
666
+ type: "exact";
667
+ term: string;
668
+ } | undefined;
669
+ flags?: ({
670
+ type: "anyOf";
671
+ terms: string[];
672
+ } | {
673
+ type: "not";
674
+ term: string;
675
+ })[] | undefined;
676
+ eventType?: string | undefined;
677
+ createAtLocation?: {
678
+ type: "exact";
679
+ term: string;
680
+ } | {
681
+ type: "within";
682
+ location: string;
683
+ } | undefined;
684
+ }>, "many">;
685
+ }, "strip", z.ZodTypeAny, {
686
+ type: "and";
687
+ clauses: {
688
+ status?: {
689
+ type: "exact";
690
+ term: string;
691
+ } | {
692
+ type: "anyOf";
693
+ terms: string[];
694
+ } | undefined;
695
+ data?: any;
696
+ createdAt?: {
697
+ type: "exact";
698
+ term: string;
699
+ } | {
700
+ type: "range";
701
+ gte: string;
702
+ lte: string;
703
+ } | undefined;
704
+ createdBy?: {
705
+ type: "exact";
706
+ term: string;
707
+ } | undefined;
708
+ updatedAt?: {
709
+ type: "exact";
710
+ term: string;
711
+ } | {
712
+ type: "range";
713
+ gte: string;
714
+ lte: string;
715
+ } | undefined;
716
+ trackingId?: {
717
+ type: "exact";
718
+ term: string;
719
+ } | undefined;
720
+ updatedAtLocation?: {
721
+ type: "exact";
722
+ term: string;
723
+ } | {
724
+ type: "within";
725
+ location: string;
726
+ } | undefined;
727
+ updatedBy?: {
728
+ type: "exact";
729
+ term: string;
730
+ } | undefined;
731
+ flags?: ({
732
+ type: "anyOf";
733
+ terms: string[];
734
+ } | {
735
+ type: "not";
736
+ term: string;
737
+ })[] | undefined;
738
+ eventType?: string | undefined;
739
+ createAtLocation?: {
740
+ type: "exact";
741
+ term: string;
742
+ } | {
743
+ type: "within";
744
+ location: string;
745
+ } | undefined;
746
+ }[];
747
+ }, {
748
+ type: "and";
749
+ clauses: {
750
+ status?: {
751
+ type: "exact";
752
+ term: string;
753
+ } | {
754
+ type: "anyOf";
755
+ terms: string[];
756
+ } | undefined;
757
+ data?: any;
758
+ createdAt?: {
759
+ type: "exact";
760
+ term: string;
761
+ } | {
762
+ type: "range";
763
+ gte: string;
764
+ lte: string;
765
+ } | undefined;
766
+ createdBy?: {
767
+ type: "exact";
768
+ term: string;
769
+ } | undefined;
770
+ updatedAt?: {
771
+ type: "exact";
772
+ term: string;
773
+ } | {
774
+ type: "range";
775
+ gte: string;
776
+ lte: string;
777
+ } | undefined;
778
+ trackingId?: {
779
+ type: "exact";
780
+ term: string;
781
+ } | undefined;
782
+ updatedAtLocation?: {
783
+ type: "exact";
784
+ term: string;
785
+ } | {
786
+ type: "within";
787
+ location: string;
788
+ } | undefined;
789
+ updatedBy?: {
790
+ type: "exact";
791
+ term: string;
792
+ } | undefined;
793
+ flags?: ({
794
+ type: "anyOf";
795
+ terms: string[];
796
+ } | {
797
+ type: "not";
798
+ term: string;
799
+ })[] | undefined;
800
+ eventType?: string | undefined;
801
+ createAtLocation?: {
802
+ type: "exact";
803
+ term: string;
804
+ } | {
805
+ type: "within";
806
+ location: string;
807
+ } | undefined;
808
+ }[];
809
+ }>]>;
18
810
  actions: z.ZodArray<z.ZodObject<{
19
811
  type: z.ZodString;
20
812
  conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
@@ -25,14 +817,172 @@ export declare const WorkqueueConfig: z.ZodObject<{
25
817
  type: string;
26
818
  conditionals?: import(".").JSONSchema[] | undefined;
27
819
  }>, "many">;
820
+ columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
821
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
822
+ id: string;
823
+ description: string;
824
+ defaultMessage: string;
825
+ }>;
826
+ value: z.ZodObject<{
827
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
828
+ }, "strip", z.ZodTypeAny, {
829
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
830
+ }, {
831
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
832
+ }>;
833
+ }, "strip", z.ZodTypeAny, {
834
+ value: {
835
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
836
+ };
837
+ label: TranslationConfig;
838
+ }, {
839
+ value: {
840
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
841
+ };
842
+ label: {
843
+ id: string;
844
+ description: string;
845
+ defaultMessage: string;
846
+ };
847
+ }>, "many">>;
28
848
  }, "strip", z.ZodTypeAny, {
29
849
  name: TranslationConfig;
30
850
  actions: {
31
851
  type: string;
32
852
  conditionals?: import(".").JSONSchema[] | undefined;
33
853
  }[];
34
- query: string;
854
+ query: {
855
+ type: "or";
856
+ clauses: {
857
+ status?: {
858
+ type: "exact";
859
+ term: string;
860
+ } | {
861
+ type: "anyOf";
862
+ terms: string[];
863
+ } | undefined;
864
+ data?: any;
865
+ createdAt?: {
866
+ type: "exact";
867
+ term: string;
868
+ } | {
869
+ type: "range";
870
+ gte: string;
871
+ lte: string;
872
+ } | undefined;
873
+ createdBy?: {
874
+ type: "exact";
875
+ term: string;
876
+ } | undefined;
877
+ updatedAt?: {
878
+ type: "exact";
879
+ term: string;
880
+ } | {
881
+ type: "range";
882
+ gte: string;
883
+ lte: string;
884
+ } | undefined;
885
+ trackingId?: {
886
+ type: "exact";
887
+ term: string;
888
+ } | undefined;
889
+ updatedAtLocation?: {
890
+ type: "exact";
891
+ term: string;
892
+ } | {
893
+ type: "within";
894
+ location: string;
895
+ } | undefined;
896
+ updatedBy?: {
897
+ type: "exact";
898
+ term: string;
899
+ } | undefined;
900
+ flags?: ({
901
+ type: "anyOf";
902
+ terms: string[];
903
+ } | {
904
+ type: "not";
905
+ term: string;
906
+ })[] | undefined;
907
+ eventType?: string | undefined;
908
+ createAtLocation?: {
909
+ type: "exact";
910
+ term: string;
911
+ } | {
912
+ type: "within";
913
+ location: string;
914
+ } | undefined;
915
+ }[];
916
+ } | {
917
+ type: "and";
918
+ clauses: {
919
+ status?: {
920
+ type: "exact";
921
+ term: string;
922
+ } | {
923
+ type: "anyOf";
924
+ terms: string[];
925
+ } | undefined;
926
+ data?: any;
927
+ createdAt?: {
928
+ type: "exact";
929
+ term: string;
930
+ } | {
931
+ type: "range";
932
+ gte: string;
933
+ lte: string;
934
+ } | undefined;
935
+ createdBy?: {
936
+ type: "exact";
937
+ term: string;
938
+ } | undefined;
939
+ updatedAt?: {
940
+ type: "exact";
941
+ term: string;
942
+ } | {
943
+ type: "range";
944
+ gte: string;
945
+ lte: string;
946
+ } | undefined;
947
+ trackingId?: {
948
+ type: "exact";
949
+ term: string;
950
+ } | undefined;
951
+ updatedAtLocation?: {
952
+ type: "exact";
953
+ term: string;
954
+ } | {
955
+ type: "within";
956
+ location: string;
957
+ } | undefined;
958
+ updatedBy?: {
959
+ type: "exact";
960
+ term: string;
961
+ } | undefined;
962
+ flags?: ({
963
+ type: "anyOf";
964
+ terms: string[];
965
+ } | {
966
+ type: "not";
967
+ term: string;
968
+ })[] | undefined;
969
+ eventType?: string | undefined;
970
+ createAtLocation?: {
971
+ type: "exact";
972
+ term: string;
973
+ } | {
974
+ type: "within";
975
+ location: string;
976
+ } | undefined;
977
+ }[];
978
+ };
35
979
  slug: string;
980
+ columns: {
981
+ value: {
982
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
983
+ };
984
+ label: TranslationConfig;
985
+ }[];
36
986
  }, {
37
987
  name: {
38
988
  id: string;
@@ -43,8 +993,142 @@ export declare const WorkqueueConfig: z.ZodObject<{
43
993
  type: string;
44
994
  conditionals?: import(".").JSONSchema[] | undefined;
45
995
  }[];
46
- query: string;
996
+ query: {
997
+ type: "or";
998
+ clauses: {
999
+ status?: {
1000
+ type: "exact";
1001
+ term: string;
1002
+ } | {
1003
+ type: "anyOf";
1004
+ terms: string[];
1005
+ } | undefined;
1006
+ data?: any;
1007
+ createdAt?: {
1008
+ type: "exact";
1009
+ term: string;
1010
+ } | {
1011
+ type: "range";
1012
+ gte: string;
1013
+ lte: string;
1014
+ } | undefined;
1015
+ createdBy?: {
1016
+ type: "exact";
1017
+ term: string;
1018
+ } | undefined;
1019
+ updatedAt?: {
1020
+ type: "exact";
1021
+ term: string;
1022
+ } | {
1023
+ type: "range";
1024
+ gte: string;
1025
+ lte: string;
1026
+ } | undefined;
1027
+ trackingId?: {
1028
+ type: "exact";
1029
+ term: string;
1030
+ } | undefined;
1031
+ updatedAtLocation?: {
1032
+ type: "exact";
1033
+ term: string;
1034
+ } | {
1035
+ type: "within";
1036
+ location: string;
1037
+ } | undefined;
1038
+ updatedBy?: {
1039
+ type: "exact";
1040
+ term: string;
1041
+ } | undefined;
1042
+ flags?: ({
1043
+ type: "anyOf";
1044
+ terms: string[];
1045
+ } | {
1046
+ type: "not";
1047
+ term: string;
1048
+ })[] | undefined;
1049
+ eventType?: string | undefined;
1050
+ createAtLocation?: {
1051
+ type: "exact";
1052
+ term: string;
1053
+ } | {
1054
+ type: "within";
1055
+ location: string;
1056
+ } | undefined;
1057
+ }[];
1058
+ } | {
1059
+ type: "and";
1060
+ clauses: {
1061
+ status?: {
1062
+ type: "exact";
1063
+ term: string;
1064
+ } | {
1065
+ type: "anyOf";
1066
+ terms: string[];
1067
+ } | undefined;
1068
+ data?: any;
1069
+ createdAt?: {
1070
+ type: "exact";
1071
+ term: string;
1072
+ } | {
1073
+ type: "range";
1074
+ gte: string;
1075
+ lte: string;
1076
+ } | undefined;
1077
+ createdBy?: {
1078
+ type: "exact";
1079
+ term: string;
1080
+ } | undefined;
1081
+ updatedAt?: {
1082
+ type: "exact";
1083
+ term: string;
1084
+ } | {
1085
+ type: "range";
1086
+ gte: string;
1087
+ lte: string;
1088
+ } | undefined;
1089
+ trackingId?: {
1090
+ type: "exact";
1091
+ term: string;
1092
+ } | undefined;
1093
+ updatedAtLocation?: {
1094
+ type: "exact";
1095
+ term: string;
1096
+ } | {
1097
+ type: "within";
1098
+ location: string;
1099
+ } | undefined;
1100
+ updatedBy?: {
1101
+ type: "exact";
1102
+ term: string;
1103
+ } | undefined;
1104
+ flags?: ({
1105
+ type: "anyOf";
1106
+ terms: string[];
1107
+ } | {
1108
+ type: "not";
1109
+ term: string;
1110
+ })[] | undefined;
1111
+ eventType?: string | undefined;
1112
+ createAtLocation?: {
1113
+ type: "exact";
1114
+ term: string;
1115
+ } | {
1116
+ type: "within";
1117
+ location: string;
1118
+ } | undefined;
1119
+ }[];
1120
+ };
47
1121
  slug: string;
1122
+ columns?: {
1123
+ value: {
1124
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1125
+ };
1126
+ label: {
1127
+ id: string;
1128
+ description: string;
1129
+ defaultMessage: string;
1130
+ };
1131
+ }[] | undefined;
48
1132
  }>;
49
1133
  export type WorkqueueConfig = z.infer<typeof WorkqueueConfig>;
50
1134
  export type WorkqueueConfigInput = z.input<typeof WorkqueueConfig>;
@@ -54,7 +1138,137 @@ export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
54
1138
  type: string;
55
1139
  conditionals?: import(".").JSONSchema[] | undefined;
56
1140
  }[];
57
- query: string;
1141
+ query: {
1142
+ type: "or";
1143
+ clauses: {
1144
+ status?: {
1145
+ type: "exact";
1146
+ term: string;
1147
+ } | {
1148
+ type: "anyOf";
1149
+ terms: string[];
1150
+ } | undefined;
1151
+ data?: any;
1152
+ createdAt?: {
1153
+ type: "exact";
1154
+ term: string;
1155
+ } | {
1156
+ type: "range";
1157
+ gte: string;
1158
+ lte: string;
1159
+ } | undefined;
1160
+ createdBy?: {
1161
+ type: "exact";
1162
+ term: string;
1163
+ } | undefined;
1164
+ updatedAt?: {
1165
+ type: "exact";
1166
+ term: string;
1167
+ } | {
1168
+ type: "range";
1169
+ gte: string;
1170
+ lte: string;
1171
+ } | undefined;
1172
+ trackingId?: {
1173
+ type: "exact";
1174
+ term: string;
1175
+ } | undefined;
1176
+ updatedAtLocation?: {
1177
+ type: "exact";
1178
+ term: string;
1179
+ } | {
1180
+ type: "within";
1181
+ location: string;
1182
+ } | undefined;
1183
+ updatedBy?: {
1184
+ type: "exact";
1185
+ term: string;
1186
+ } | undefined;
1187
+ flags?: ({
1188
+ type: "anyOf";
1189
+ terms: string[];
1190
+ } | {
1191
+ type: "not";
1192
+ term: string;
1193
+ })[] | undefined;
1194
+ eventType?: string | undefined;
1195
+ createAtLocation?: {
1196
+ type: "exact";
1197
+ term: string;
1198
+ } | {
1199
+ type: "within";
1200
+ location: string;
1201
+ } | undefined;
1202
+ }[];
1203
+ } | {
1204
+ type: "and";
1205
+ clauses: {
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
+ }[];
1265
+ };
58
1266
  slug: string;
1267
+ columns: {
1268
+ value: {
1269
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1270
+ };
1271
+ label: TranslationConfig;
1272
+ }[];
59
1273
  }[];
60
1274
  //# sourceMappingURL=WorkqueueConfig.d.ts.map