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

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