@opencrvs/toolkit 1.8.0-rc.f9d33b7 → 1.8.0-rc.f9fb039

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