@opencrvs/toolkit 1.8.0-rc.fef85f2 → 1.8.0-rc.ff0b26c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/commons/api/router.d.ts +10585 -4200
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/events/ActionConfig.d.ts +97080 -1720
  4. package/dist/commons/events/ActionDocument.d.ts +542 -211
  5. package/dist/commons/events/ActionInput.d.ts +248 -240
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  7. package/dist/commons/events/Draft.d.ts +33 -20
  8. package/dist/commons/events/EventConfig.d.ts +46237 -1398
  9. package/dist/commons/events/EventDocument.d.ts +337 -159
  10. package/dist/commons/events/EventIndex.d.ts +1735 -16
  11. package/dist/commons/events/EventInput.d.ts +13 -0
  12. package/dist/commons/events/EventMetadata.d.ts +274 -14
  13. package/dist/commons/events/FieldConfig.d.ts +4229 -744
  14. package/dist/commons/events/FieldType.d.ts +3 -3
  15. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  16. package/dist/commons/events/FieldValue.d.ts +7 -4
  17. package/dist/commons/events/FormConfig.d.ts +43591 -439
  18. package/dist/commons/events/PageConfig.d.ts +10860 -204
  19. package/dist/commons/events/SummaryConfig.d.ts +17 -47
  20. package/dist/commons/events/WorkqueueConfig.d.ts +1549 -19
  21. package/dist/commons/events/defineConfig.d.ts +7199 -27
  22. package/dist/commons/events/event.d.ts +54 -0
  23. package/dist/commons/events/field.d.ts +82 -0
  24. package/dist/commons/events/index.d.ts +2 -0
  25. package/dist/commons/events/scopes.d.ts +21 -1
  26. package/dist/commons/events/test.utils.d.ts +10 -47
  27. package/dist/commons/events/utils.d.ts +3665 -67
  28. package/dist/conditionals/index.js +36 -33
  29. package/dist/events/index.js +1771 -966
  30. package/dist/scopes/index.d.ts +158 -1
  31. package/dist/scopes/index.js +152 -1
  32. package/package.json +3 -2
@@ -1,36 +1,1566 @@
1
1
  import { z } from 'zod';
2
+ import { TranslationConfig } from './TranslationConfig';
2
3
  /**
3
4
  * Configuration for workqueue. Workqueues are used to display a list of events.
4
5
  */
5
6
  export declare const WorkqueueConfig: z.ZodObject<{
6
- id: z.ZodString;
7
- filters: z.ZodArray<z.ZodObject<{
8
- status: z.ZodArray<z.ZodNativeEnum<{
9
- readonly CREATED: "CREATED";
10
- readonly NOTIFIED: "NOTIFIED";
11
- readonly DECLARED: "DECLARED";
12
- readonly VALIDATED: "VALIDATED";
13
- readonly REGISTERED: "REGISTERED";
14
- readonly CERTIFIED: "CERTIFIED";
15
- readonly REJECTED: "REJECTED";
16
- readonly ARCHIVED: "ARCHIVED";
7
+ slug: z.ZodString;
8
+ name: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
9
+ id: string;
10
+ description: string;
11
+ defaultMessage: string;
12
+ }>;
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.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
20
+ }, "strip", z.ZodTypeAny, {
21
+ type: "anyOf";
22
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
23
+ }, {
24
+ type: "anyOf";
25
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
26
+ }>, z.ZodObject<{
27
+ type: z.ZodLiteral<"exact">;
28
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ type: "exact";
31
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
32
+ }, {
33
+ type: "exact";
34
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
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
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
81
+ type: z.ZodLiteral<"exact">;
82
+ term: z.ZodString;
83
+ }, "strip", z.ZodTypeAny, {
84
+ type: "exact";
85
+ term: string;
86
+ }, {
87
+ type: "exact";
88
+ term: string;
89
+ }>, z.ZodObject<{
90
+ type: z.ZodLiteral<"range">;
91
+ gte: z.ZodString;
92
+ lte: z.ZodString;
93
+ }, "strip", z.ZodTypeAny, {
94
+ type: "range";
95
+ gte: string;
96
+ lte: string;
97
+ }, {
98
+ type: "range";
99
+ gte: string;
100
+ lte: string;
101
+ }>]>>>;
102
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
103
+ type: z.ZodLiteral<"within">;
104
+ location: z.ZodString;
105
+ }, "strip", z.ZodTypeAny, {
106
+ type: "within";
107
+ location: string;
108
+ }, {
109
+ type: "within";
110
+ location: string;
111
+ }>, z.ZodObject<{
112
+ type: z.ZodLiteral<"exact">;
113
+ term: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ type: "exact";
116
+ term: string;
117
+ }, {
118
+ type: "exact";
119
+ term: string;
120
+ }>]>>>;
121
+ createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
122
+ type: z.ZodLiteral<"within">;
123
+ location: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ type: "within";
126
+ location: string;
127
+ }, {
128
+ type: "within";
129
+ location: string;
130
+ }>, z.ZodObject<{
131
+ type: z.ZodLiteral<"exact">;
132
+ term: z.ZodString;
133
+ }, "strip", z.ZodTypeAny, {
134
+ type: "exact";
135
+ term: string;
136
+ }, {
137
+ type: "exact";
138
+ term: string;
139
+ }>]>>>;
140
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
141
+ type: z.ZodLiteral<"within">;
142
+ location: z.ZodString;
143
+ }, "strip", z.ZodTypeAny, {
144
+ type: "within";
145
+ location: string;
146
+ }, {
147
+ type: "within";
148
+ location: string;
149
+ }>, z.ZodObject<{
150
+ type: z.ZodLiteral<"exact">;
151
+ term: z.ZodString;
152
+ }, "strip", z.ZodTypeAny, {
153
+ type: "exact";
154
+ term: string;
155
+ }, {
156
+ type: "exact";
157
+ term: string;
158
+ }>]>>>;
159
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
160
+ type: z.ZodLiteral<"exact">;
161
+ term: z.ZodString;
162
+ }, "strip", z.ZodTypeAny, {
163
+ type: "exact";
164
+ term: string;
165
+ }, {
166
+ type: "exact";
167
+ term: string;
168
+ }>>>;
169
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
170
+ type: z.ZodLiteral<"exact">;
171
+ term: z.ZodString;
172
+ }, "strip", z.ZodTypeAny, {
173
+ type: "exact";
174
+ term: string;
175
+ }, {
176
+ type: "exact";
177
+ term: string;
178
+ }>>>;
179
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
180
+ type: z.ZodLiteral<"exact">;
181
+ term: z.ZodString;
182
+ }, "strip", z.ZodTypeAny, {
183
+ type: "exact";
184
+ term: string;
185
+ }, {
186
+ type: "exact";
187
+ term: string;
188
+ }>>>;
189
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
190
+ type: z.ZodLiteral<"anyOf">;
191
+ terms: z.ZodArray<z.ZodString, "many">;
192
+ }, "strip", z.ZodTypeAny, {
193
+ type: "anyOf";
194
+ terms: string[];
195
+ }, {
196
+ type: "anyOf";
197
+ terms: string[];
198
+ }>, z.ZodObject<{
199
+ type: z.ZodLiteral<"not">;
200
+ term: z.ZodString;
201
+ }, "strip", z.ZodTypeAny, {
202
+ type: "not";
203
+ term: string;
204
+ }, {
205
+ type: "not";
206
+ term: string;
207
+ }>]>, "many">>>;
208
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ status?: {
211
+ type: "exact";
212
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
213
+ } | {
214
+ type: "anyOf";
215
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
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
+ trackingId?: {
239
+ type: "exact";
240
+ term: string;
241
+ } | undefined;
242
+ eventType?: string | undefined;
243
+ 'legalStatus.REGISTERED.createdAt'?: {
244
+ type: "exact";
245
+ term: string;
246
+ } | {
247
+ type: "range";
248
+ gte: string;
249
+ lte: string;
250
+ } | undefined;
251
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
252
+ type: "exact";
253
+ term: string;
254
+ } | {
255
+ type: "within";
256
+ location: string;
257
+ } | undefined;
258
+ updatedAtLocation?: {
259
+ type: "exact";
260
+ term: string;
261
+ } | {
262
+ type: "within";
263
+ location: string;
264
+ } | undefined;
265
+ updatedBy?: {
266
+ type: "exact";
267
+ term: string;
268
+ } | undefined;
269
+ flags?: ({
270
+ type: "anyOf";
271
+ terms: string[];
272
+ } | {
273
+ type: "not";
274
+ term: string;
275
+ })[] | undefined;
276
+ createAtLocation?: {
277
+ type: "exact";
278
+ term: string;
279
+ } | {
280
+ type: "within";
281
+ location: string;
282
+ } | undefined;
283
+ }, {
284
+ status?: {
285
+ type: "exact";
286
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
287
+ } | {
288
+ type: "anyOf";
289
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
290
+ } | undefined;
291
+ data?: any;
292
+ createdAt?: {
293
+ type: "exact";
294
+ term: string;
295
+ } | {
296
+ type: "range";
297
+ gte: string;
298
+ lte: string;
299
+ } | undefined;
300
+ createdBy?: {
301
+ type: "exact";
302
+ term: string;
303
+ } | undefined;
304
+ updatedAt?: {
305
+ type: "exact";
306
+ term: string;
307
+ } | {
308
+ type: "range";
309
+ gte: string;
310
+ lte: string;
311
+ } | undefined;
312
+ trackingId?: {
313
+ type: "exact";
314
+ term: string;
315
+ } | undefined;
316
+ eventType?: string | undefined;
317
+ 'legalStatus.REGISTERED.createdAt'?: {
318
+ type: "exact";
319
+ term: string;
320
+ } | {
321
+ type: "range";
322
+ gte: string;
323
+ lte: string;
324
+ } | undefined;
325
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
326
+ type: "exact";
327
+ term: string;
328
+ } | {
329
+ type: "within";
330
+ location: 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
+ createAtLocation?: {
351
+ type: "exact";
352
+ term: string;
353
+ } | {
354
+ type: "within";
355
+ location: string;
356
+ } | undefined;
17
357
  }>, "many">;
18
358
  }, "strip", z.ZodTypeAny, {
19
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
359
+ type: "or";
360
+ clauses: {
361
+ status?: {
362
+ type: "exact";
363
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
364
+ } | {
365
+ type: "anyOf";
366
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
367
+ } | undefined;
368
+ data?: any;
369
+ createdAt?: {
370
+ type: "exact";
371
+ term: string;
372
+ } | {
373
+ type: "range";
374
+ gte: string;
375
+ lte: string;
376
+ } | undefined;
377
+ createdBy?: {
378
+ type: "exact";
379
+ term: string;
380
+ } | undefined;
381
+ updatedAt?: {
382
+ type: "exact";
383
+ term: string;
384
+ } | {
385
+ type: "range";
386
+ gte: string;
387
+ lte: string;
388
+ } | undefined;
389
+ trackingId?: {
390
+ type: "exact";
391
+ term: string;
392
+ } | undefined;
393
+ eventType?: string | undefined;
394
+ 'legalStatus.REGISTERED.createdAt'?: {
395
+ type: "exact";
396
+ term: string;
397
+ } | {
398
+ type: "range";
399
+ gte: string;
400
+ lte: string;
401
+ } | undefined;
402
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
403
+ type: "exact";
404
+ term: string;
405
+ } | {
406
+ type: "within";
407
+ location: string;
408
+ } | undefined;
409
+ updatedAtLocation?: {
410
+ type: "exact";
411
+ term: string;
412
+ } | {
413
+ type: "within";
414
+ location: string;
415
+ } | undefined;
416
+ updatedBy?: {
417
+ type: "exact";
418
+ term: string;
419
+ } | undefined;
420
+ flags?: ({
421
+ type: "anyOf";
422
+ terms: string[];
423
+ } | {
424
+ type: "not";
425
+ term: string;
426
+ })[] | undefined;
427
+ createAtLocation?: {
428
+ type: "exact";
429
+ term: string;
430
+ } | {
431
+ type: "within";
432
+ location: string;
433
+ } | undefined;
434
+ }[];
20
435
  }, {
21
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
436
+ type: "or";
437
+ clauses: {
438
+ status?: {
439
+ type: "exact";
440
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
441
+ } | {
442
+ type: "anyOf";
443
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
444
+ } | undefined;
445
+ data?: any;
446
+ createdAt?: {
447
+ type: "exact";
448
+ term: string;
449
+ } | {
450
+ type: "range";
451
+ gte: string;
452
+ lte: string;
453
+ } | undefined;
454
+ createdBy?: {
455
+ type: "exact";
456
+ term: string;
457
+ } | undefined;
458
+ updatedAt?: {
459
+ type: "exact";
460
+ term: string;
461
+ } | {
462
+ type: "range";
463
+ gte: string;
464
+ lte: string;
465
+ } | undefined;
466
+ trackingId?: {
467
+ type: "exact";
468
+ term: string;
469
+ } | undefined;
470
+ eventType?: string | undefined;
471
+ 'legalStatus.REGISTERED.createdAt'?: {
472
+ type: "exact";
473
+ term: string;
474
+ } | {
475
+ type: "range";
476
+ gte: string;
477
+ lte: string;
478
+ } | undefined;
479
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
480
+ type: "exact";
481
+ term: string;
482
+ } | {
483
+ type: "within";
484
+ location: string;
485
+ } | undefined;
486
+ updatedAtLocation?: {
487
+ type: "exact";
488
+ term: string;
489
+ } | {
490
+ type: "within";
491
+ location: string;
492
+ } | undefined;
493
+ updatedBy?: {
494
+ type: "exact";
495
+ term: string;
496
+ } | undefined;
497
+ flags?: ({
498
+ type: "anyOf";
499
+ terms: string[];
500
+ } | {
501
+ type: "not";
502
+ term: string;
503
+ })[] | undefined;
504
+ createAtLocation?: {
505
+ type: "exact";
506
+ term: string;
507
+ } | {
508
+ type: "within";
509
+ location: string;
510
+ } | undefined;
511
+ }[];
512
+ }>, z.ZodObject<{
513
+ type: z.ZodLiteral<"and">;
514
+ clauses: z.ZodArray<z.ZodObject<{
515
+ eventType: z.ZodOptional<z.ZodString>;
516
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
517
+ type: z.ZodLiteral<"anyOf">;
518
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
519
+ }, "strip", z.ZodTypeAny, {
520
+ type: "anyOf";
521
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
522
+ }, {
523
+ type: "anyOf";
524
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
525
+ }>, z.ZodObject<{
526
+ type: z.ZodLiteral<"exact">;
527
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
528
+ }, "strip", z.ZodTypeAny, {
529
+ type: "exact";
530
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
531
+ }, {
532
+ type: "exact";
533
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
534
+ }>]>>>;
535
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
536
+ type: z.ZodLiteral<"exact">;
537
+ term: z.ZodString;
538
+ }, "strip", z.ZodTypeAny, {
539
+ type: "exact";
540
+ term: string;
541
+ }, {
542
+ type: "exact";
543
+ term: string;
544
+ }>, z.ZodObject<{
545
+ type: z.ZodLiteral<"range">;
546
+ gte: z.ZodString;
547
+ lte: z.ZodString;
548
+ }, "strip", z.ZodTypeAny, {
549
+ type: "range";
550
+ gte: string;
551
+ lte: string;
552
+ }, {
553
+ type: "range";
554
+ gte: string;
555
+ lte: string;
556
+ }>]>>>;
557
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
558
+ type: z.ZodLiteral<"exact">;
559
+ term: z.ZodString;
560
+ }, "strip", z.ZodTypeAny, {
561
+ type: "exact";
562
+ term: string;
563
+ }, {
564
+ type: "exact";
565
+ term: string;
566
+ }>, z.ZodObject<{
567
+ type: z.ZodLiteral<"range">;
568
+ gte: z.ZodString;
569
+ lte: z.ZodString;
570
+ }, "strip", z.ZodTypeAny, {
571
+ type: "range";
572
+ gte: string;
573
+ lte: string;
574
+ }, {
575
+ type: "range";
576
+ gte: string;
577
+ lte: string;
578
+ }>]>>>;
579
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
580
+ type: z.ZodLiteral<"exact">;
581
+ term: z.ZodString;
582
+ }, "strip", z.ZodTypeAny, {
583
+ type: "exact";
584
+ term: string;
585
+ }, {
586
+ type: "exact";
587
+ term: string;
588
+ }>, z.ZodObject<{
589
+ type: z.ZodLiteral<"range">;
590
+ gte: z.ZodString;
591
+ lte: z.ZodString;
592
+ }, "strip", z.ZodTypeAny, {
593
+ type: "range";
594
+ gte: string;
595
+ lte: string;
596
+ }, {
597
+ type: "range";
598
+ gte: string;
599
+ lte: string;
600
+ }>]>>>;
601
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
602
+ type: z.ZodLiteral<"within">;
603
+ location: z.ZodString;
604
+ }, "strip", z.ZodTypeAny, {
605
+ type: "within";
606
+ location: string;
607
+ }, {
608
+ type: "within";
609
+ location: string;
610
+ }>, z.ZodObject<{
611
+ type: z.ZodLiteral<"exact">;
612
+ term: z.ZodString;
613
+ }, "strip", z.ZodTypeAny, {
614
+ type: "exact";
615
+ term: string;
616
+ }, {
617
+ type: "exact";
618
+ term: string;
619
+ }>]>>>;
620
+ createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
621
+ type: z.ZodLiteral<"within">;
622
+ location: z.ZodString;
623
+ }, "strip", z.ZodTypeAny, {
624
+ type: "within";
625
+ location: string;
626
+ }, {
627
+ type: "within";
628
+ location: string;
629
+ }>, z.ZodObject<{
630
+ type: z.ZodLiteral<"exact">;
631
+ term: z.ZodString;
632
+ }, "strip", z.ZodTypeAny, {
633
+ type: "exact";
634
+ term: string;
635
+ }, {
636
+ type: "exact";
637
+ term: string;
638
+ }>]>>>;
639
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
640
+ type: z.ZodLiteral<"within">;
641
+ location: z.ZodString;
642
+ }, "strip", z.ZodTypeAny, {
643
+ type: "within";
644
+ location: string;
645
+ }, {
646
+ type: "within";
647
+ location: string;
648
+ }>, z.ZodObject<{
649
+ type: z.ZodLiteral<"exact">;
650
+ term: z.ZodString;
651
+ }, "strip", z.ZodTypeAny, {
652
+ type: "exact";
653
+ term: string;
654
+ }, {
655
+ type: "exact";
656
+ term: string;
657
+ }>]>>>;
658
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
659
+ type: z.ZodLiteral<"exact">;
660
+ term: z.ZodString;
661
+ }, "strip", z.ZodTypeAny, {
662
+ type: "exact";
663
+ term: string;
664
+ }, {
665
+ type: "exact";
666
+ term: string;
667
+ }>>>;
668
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
669
+ type: z.ZodLiteral<"exact">;
670
+ term: z.ZodString;
671
+ }, "strip", z.ZodTypeAny, {
672
+ type: "exact";
673
+ term: string;
674
+ }, {
675
+ type: "exact";
676
+ term: string;
677
+ }>>>;
678
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
679
+ type: z.ZodLiteral<"exact">;
680
+ term: z.ZodString;
681
+ }, "strip", z.ZodTypeAny, {
682
+ type: "exact";
683
+ term: string;
684
+ }, {
685
+ type: "exact";
686
+ term: string;
687
+ }>>>;
688
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
689
+ type: z.ZodLiteral<"anyOf">;
690
+ terms: z.ZodArray<z.ZodString, "many">;
691
+ }, "strip", z.ZodTypeAny, {
692
+ type: "anyOf";
693
+ terms: string[];
694
+ }, {
695
+ type: "anyOf";
696
+ terms: string[];
697
+ }>, z.ZodObject<{
698
+ type: z.ZodLiteral<"not">;
699
+ term: z.ZodString;
700
+ }, "strip", z.ZodTypeAny, {
701
+ type: "not";
702
+ term: string;
703
+ }, {
704
+ type: "not";
705
+ term: string;
706
+ }>]>, "many">>>;
707
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ status?: {
710
+ type: "exact";
711
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
712
+ } | {
713
+ type: "anyOf";
714
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
715
+ } | undefined;
716
+ data?: any;
717
+ createdAt?: {
718
+ type: "exact";
719
+ term: string;
720
+ } | {
721
+ type: "range";
722
+ gte: string;
723
+ lte: string;
724
+ } | undefined;
725
+ createdBy?: {
726
+ type: "exact";
727
+ term: string;
728
+ } | undefined;
729
+ updatedAt?: {
730
+ type: "exact";
731
+ term: string;
732
+ } | {
733
+ type: "range";
734
+ gte: string;
735
+ lte: string;
736
+ } | undefined;
737
+ trackingId?: {
738
+ type: "exact";
739
+ term: string;
740
+ } | undefined;
741
+ eventType?: string | undefined;
742
+ 'legalStatus.REGISTERED.createdAt'?: {
743
+ type: "exact";
744
+ term: string;
745
+ } | {
746
+ type: "range";
747
+ gte: string;
748
+ lte: string;
749
+ } | undefined;
750
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
751
+ type: "exact";
752
+ term: string;
753
+ } | {
754
+ type: "within";
755
+ location: 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
+ createAtLocation?: {
776
+ type: "exact";
777
+ term: string;
778
+ } | {
779
+ type: "within";
780
+ location: string;
781
+ } | undefined;
782
+ }, {
783
+ status?: {
784
+ type: "exact";
785
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
786
+ } | {
787
+ type: "anyOf";
788
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
789
+ } | undefined;
790
+ data?: any;
791
+ createdAt?: {
792
+ type: "exact";
793
+ term: string;
794
+ } | {
795
+ type: "range";
796
+ gte: string;
797
+ lte: string;
798
+ } | undefined;
799
+ createdBy?: {
800
+ type: "exact";
801
+ term: string;
802
+ } | undefined;
803
+ updatedAt?: {
804
+ type: "exact";
805
+ term: string;
806
+ } | {
807
+ type: "range";
808
+ gte: string;
809
+ lte: string;
810
+ } | undefined;
811
+ trackingId?: {
812
+ type: "exact";
813
+ term: string;
814
+ } | undefined;
815
+ eventType?: string | undefined;
816
+ 'legalStatus.REGISTERED.createdAt'?: {
817
+ type: "exact";
818
+ term: string;
819
+ } | {
820
+ type: "range";
821
+ gte: string;
822
+ lte: string;
823
+ } | undefined;
824
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
825
+ type: "exact";
826
+ term: string;
827
+ } | {
828
+ type: "within";
829
+ location: 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
+ createAtLocation?: {
850
+ type: "exact";
851
+ term: string;
852
+ } | {
853
+ type: "within";
854
+ location: string;
855
+ } | undefined;
856
+ }>, "many">;
857
+ }, "strip", z.ZodTypeAny, {
858
+ type: "and";
859
+ clauses: {
860
+ status?: {
861
+ type: "exact";
862
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
863
+ } | {
864
+ type: "anyOf";
865
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
866
+ } | undefined;
867
+ data?: any;
868
+ createdAt?: {
869
+ type: "exact";
870
+ term: string;
871
+ } | {
872
+ type: "range";
873
+ gte: string;
874
+ lte: string;
875
+ } | undefined;
876
+ createdBy?: {
877
+ type: "exact";
878
+ term: string;
879
+ } | undefined;
880
+ updatedAt?: {
881
+ type: "exact";
882
+ term: string;
883
+ } | {
884
+ type: "range";
885
+ gte: string;
886
+ lte: string;
887
+ } | undefined;
888
+ trackingId?: {
889
+ type: "exact";
890
+ term: string;
891
+ } | undefined;
892
+ eventType?: string | undefined;
893
+ 'legalStatus.REGISTERED.createdAt'?: {
894
+ type: "exact";
895
+ term: string;
896
+ } | {
897
+ type: "range";
898
+ gte: string;
899
+ lte: string;
900
+ } | undefined;
901
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
902
+ type: "exact";
903
+ term: string;
904
+ } | {
905
+ type: "within";
906
+ location: string;
907
+ } | undefined;
908
+ updatedAtLocation?: {
909
+ type: "exact";
910
+ term: string;
911
+ } | {
912
+ type: "within";
913
+ location: string;
914
+ } | undefined;
915
+ updatedBy?: {
916
+ type: "exact";
917
+ term: string;
918
+ } | undefined;
919
+ flags?: ({
920
+ type: "anyOf";
921
+ terms: string[];
922
+ } | {
923
+ type: "not";
924
+ term: string;
925
+ })[] | undefined;
926
+ createAtLocation?: {
927
+ type: "exact";
928
+ term: string;
929
+ } | {
930
+ type: "within";
931
+ location: string;
932
+ } | undefined;
933
+ }[];
934
+ }, {
935
+ type: "and";
936
+ clauses: {
937
+ status?: {
938
+ type: "exact";
939
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
940
+ } | {
941
+ type: "anyOf";
942
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
943
+ } | undefined;
944
+ data?: any;
945
+ createdAt?: {
946
+ type: "exact";
947
+ term: string;
948
+ } | {
949
+ type: "range";
950
+ gte: string;
951
+ lte: string;
952
+ } | undefined;
953
+ createdBy?: {
954
+ type: "exact";
955
+ term: string;
956
+ } | undefined;
957
+ updatedAt?: {
958
+ type: "exact";
959
+ term: string;
960
+ } | {
961
+ type: "range";
962
+ gte: string;
963
+ lte: string;
964
+ } | undefined;
965
+ trackingId?: {
966
+ type: "exact";
967
+ term: string;
968
+ } | undefined;
969
+ eventType?: string | undefined;
970
+ 'legalStatus.REGISTERED.createdAt'?: {
971
+ type: "exact";
972
+ term: string;
973
+ } | {
974
+ type: "range";
975
+ gte: string;
976
+ lte: string;
977
+ } | undefined;
978
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
979
+ type: "exact";
980
+ term: string;
981
+ } | {
982
+ type: "within";
983
+ location: string;
984
+ } | undefined;
985
+ updatedAtLocation?: {
986
+ type: "exact";
987
+ term: string;
988
+ } | {
989
+ type: "within";
990
+ location: string;
991
+ } | undefined;
992
+ updatedBy?: {
993
+ type: "exact";
994
+ term: string;
995
+ } | undefined;
996
+ flags?: ({
997
+ type: "anyOf";
998
+ terms: string[];
999
+ } | {
1000
+ type: "not";
1001
+ term: string;
1002
+ })[] | undefined;
1003
+ createAtLocation?: {
1004
+ type: "exact";
1005
+ term: string;
1006
+ } | {
1007
+ type: "within";
1008
+ location: string;
1009
+ } | undefined;
1010
+ }[];
1011
+ }>]>;
1012
+ actions: z.ZodArray<z.ZodObject<{
1013
+ type: z.ZodString;
1014
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ type: string;
1017
+ conditionals?: import(".").JSONSchema[] | undefined;
1018
+ }, {
1019
+ type: string;
1020
+ conditionals?: import(".").JSONSchema[] | undefined;
22
1021
  }>, "many">;
1022
+ columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
1023
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1024
+ id: string;
1025
+ description: string;
1026
+ defaultMessage: string;
1027
+ }>;
1028
+ value: z.ZodObject<{
1029
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
1030
+ }, "strip", z.ZodTypeAny, {
1031
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1032
+ }, {
1033
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1034
+ }>;
1035
+ }, "strip", z.ZodTypeAny, {
1036
+ value: {
1037
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1038
+ };
1039
+ label: TranslationConfig;
1040
+ }, {
1041
+ value: {
1042
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1043
+ };
1044
+ label: {
1045
+ id: string;
1046
+ description: string;
1047
+ defaultMessage: string;
1048
+ };
1049
+ }>, "many">>;
23
1050
  }, "strip", z.ZodTypeAny, {
24
- id: string;
25
- filters: {
26
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1051
+ name: TranslationConfig;
1052
+ actions: {
1053
+ type: string;
1054
+ conditionals?: import(".").JSONSchema[] | undefined;
1055
+ }[];
1056
+ query: {
1057
+ type: "or";
1058
+ clauses: {
1059
+ status?: {
1060
+ type: "exact";
1061
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1062
+ } | {
1063
+ type: "anyOf";
1064
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1065
+ } | undefined;
1066
+ data?: any;
1067
+ createdAt?: {
1068
+ type: "exact";
1069
+ term: string;
1070
+ } | {
1071
+ type: "range";
1072
+ gte: string;
1073
+ lte: string;
1074
+ } | undefined;
1075
+ createdBy?: {
1076
+ type: "exact";
1077
+ term: string;
1078
+ } | undefined;
1079
+ updatedAt?: {
1080
+ type: "exact";
1081
+ term: string;
1082
+ } | {
1083
+ type: "range";
1084
+ gte: string;
1085
+ lte: string;
1086
+ } | undefined;
1087
+ trackingId?: {
1088
+ type: "exact";
1089
+ term: string;
1090
+ } | undefined;
1091
+ eventType?: string | undefined;
1092
+ 'legalStatus.REGISTERED.createdAt'?: {
1093
+ type: "exact";
1094
+ term: string;
1095
+ } | {
1096
+ type: "range";
1097
+ gte: string;
1098
+ lte: string;
1099
+ } | undefined;
1100
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1101
+ type: "exact";
1102
+ term: string;
1103
+ } | {
1104
+ type: "within";
1105
+ location: string;
1106
+ } | undefined;
1107
+ updatedAtLocation?: {
1108
+ type: "exact";
1109
+ term: string;
1110
+ } | {
1111
+ type: "within";
1112
+ location: string;
1113
+ } | undefined;
1114
+ updatedBy?: {
1115
+ type: "exact";
1116
+ term: string;
1117
+ } | undefined;
1118
+ flags?: ({
1119
+ type: "anyOf";
1120
+ terms: string[];
1121
+ } | {
1122
+ type: "not";
1123
+ term: string;
1124
+ })[] | undefined;
1125
+ createAtLocation?: {
1126
+ type: "exact";
1127
+ term: string;
1128
+ } | {
1129
+ type: "within";
1130
+ location: string;
1131
+ } | undefined;
1132
+ }[];
1133
+ } | {
1134
+ type: "and";
1135
+ clauses: {
1136
+ status?: {
1137
+ type: "exact";
1138
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1139
+ } | {
1140
+ type: "anyOf";
1141
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1142
+ } | undefined;
1143
+ data?: any;
1144
+ createdAt?: {
1145
+ type: "exact";
1146
+ term: string;
1147
+ } | {
1148
+ type: "range";
1149
+ gte: string;
1150
+ lte: string;
1151
+ } | undefined;
1152
+ createdBy?: {
1153
+ type: "exact";
1154
+ term: string;
1155
+ } | undefined;
1156
+ updatedAt?: {
1157
+ type: "exact";
1158
+ term: string;
1159
+ } | {
1160
+ type: "range";
1161
+ gte: string;
1162
+ lte: string;
1163
+ } | undefined;
1164
+ trackingId?: {
1165
+ type: "exact";
1166
+ term: string;
1167
+ } | undefined;
1168
+ eventType?: string | undefined;
1169
+ 'legalStatus.REGISTERED.createdAt'?: {
1170
+ type: "exact";
1171
+ term: string;
1172
+ } | {
1173
+ type: "range";
1174
+ gte: string;
1175
+ lte: string;
1176
+ } | undefined;
1177
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1178
+ type: "exact";
1179
+ term: string;
1180
+ } | {
1181
+ type: "within";
1182
+ location: string;
1183
+ } | undefined;
1184
+ updatedAtLocation?: {
1185
+ type: "exact";
1186
+ term: string;
1187
+ } | {
1188
+ type: "within";
1189
+ location: string;
1190
+ } | undefined;
1191
+ updatedBy?: {
1192
+ type: "exact";
1193
+ term: string;
1194
+ } | undefined;
1195
+ flags?: ({
1196
+ type: "anyOf";
1197
+ terms: string[];
1198
+ } | {
1199
+ type: "not";
1200
+ term: string;
1201
+ })[] | undefined;
1202
+ createAtLocation?: {
1203
+ type: "exact";
1204
+ term: string;
1205
+ } | {
1206
+ type: "within";
1207
+ location: string;
1208
+ } | undefined;
1209
+ }[];
1210
+ };
1211
+ slug: string;
1212
+ columns: {
1213
+ value: {
1214
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1215
+ };
1216
+ label: TranslationConfig;
27
1217
  }[];
28
1218
  }, {
29
- id: string;
30
- filters: {
31
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1219
+ name: {
1220
+ id: string;
1221
+ description: string;
1222
+ defaultMessage: string;
1223
+ };
1224
+ actions: {
1225
+ type: string;
1226
+ conditionals?: import(".").JSONSchema[] | undefined;
32
1227
  }[];
1228
+ query: {
1229
+ type: "or";
1230
+ clauses: {
1231
+ status?: {
1232
+ type: "exact";
1233
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1234
+ } | {
1235
+ type: "anyOf";
1236
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1237
+ } | undefined;
1238
+ data?: any;
1239
+ createdAt?: {
1240
+ type: "exact";
1241
+ term: string;
1242
+ } | {
1243
+ type: "range";
1244
+ gte: string;
1245
+ lte: string;
1246
+ } | undefined;
1247
+ createdBy?: {
1248
+ type: "exact";
1249
+ term: string;
1250
+ } | undefined;
1251
+ updatedAt?: {
1252
+ type: "exact";
1253
+ term: string;
1254
+ } | {
1255
+ type: "range";
1256
+ gte: string;
1257
+ lte: string;
1258
+ } | undefined;
1259
+ trackingId?: {
1260
+ type: "exact";
1261
+ term: string;
1262
+ } | undefined;
1263
+ eventType?: string | undefined;
1264
+ 'legalStatus.REGISTERED.createdAt'?: {
1265
+ type: "exact";
1266
+ term: string;
1267
+ } | {
1268
+ type: "range";
1269
+ gte: string;
1270
+ lte: string;
1271
+ } | undefined;
1272
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1273
+ type: "exact";
1274
+ term: string;
1275
+ } | {
1276
+ type: "within";
1277
+ location: string;
1278
+ } | undefined;
1279
+ updatedAtLocation?: {
1280
+ type: "exact";
1281
+ term: string;
1282
+ } | {
1283
+ type: "within";
1284
+ location: string;
1285
+ } | undefined;
1286
+ updatedBy?: {
1287
+ type: "exact";
1288
+ term: string;
1289
+ } | undefined;
1290
+ flags?: ({
1291
+ type: "anyOf";
1292
+ terms: string[];
1293
+ } | {
1294
+ type: "not";
1295
+ term: string;
1296
+ })[] | undefined;
1297
+ createAtLocation?: {
1298
+ type: "exact";
1299
+ term: string;
1300
+ } | {
1301
+ type: "within";
1302
+ location: string;
1303
+ } | undefined;
1304
+ }[];
1305
+ } | {
1306
+ type: "and";
1307
+ clauses: {
1308
+ status?: {
1309
+ type: "exact";
1310
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1311
+ } | {
1312
+ type: "anyOf";
1313
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1314
+ } | undefined;
1315
+ data?: any;
1316
+ createdAt?: {
1317
+ type: "exact";
1318
+ term: string;
1319
+ } | {
1320
+ type: "range";
1321
+ gte: string;
1322
+ lte: string;
1323
+ } | undefined;
1324
+ createdBy?: {
1325
+ type: "exact";
1326
+ term: string;
1327
+ } | undefined;
1328
+ updatedAt?: {
1329
+ type: "exact";
1330
+ term: string;
1331
+ } | {
1332
+ type: "range";
1333
+ gte: string;
1334
+ lte: string;
1335
+ } | undefined;
1336
+ trackingId?: {
1337
+ type: "exact";
1338
+ term: string;
1339
+ } | undefined;
1340
+ eventType?: string | undefined;
1341
+ 'legalStatus.REGISTERED.createdAt'?: {
1342
+ type: "exact";
1343
+ term: string;
1344
+ } | {
1345
+ type: "range";
1346
+ gte: string;
1347
+ lte: string;
1348
+ } | undefined;
1349
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1350
+ type: "exact";
1351
+ term: string;
1352
+ } | {
1353
+ type: "within";
1354
+ location: string;
1355
+ } | undefined;
1356
+ updatedAtLocation?: {
1357
+ type: "exact";
1358
+ term: string;
1359
+ } | {
1360
+ type: "within";
1361
+ location: string;
1362
+ } | undefined;
1363
+ updatedBy?: {
1364
+ type: "exact";
1365
+ term: string;
1366
+ } | undefined;
1367
+ flags?: ({
1368
+ type: "anyOf";
1369
+ terms: string[];
1370
+ } | {
1371
+ type: "not";
1372
+ term: string;
1373
+ })[] | undefined;
1374
+ createAtLocation?: {
1375
+ type: "exact";
1376
+ term: string;
1377
+ } | {
1378
+ type: "within";
1379
+ location: string;
1380
+ } | undefined;
1381
+ }[];
1382
+ };
1383
+ slug: string;
1384
+ columns?: {
1385
+ value: {
1386
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1387
+ };
1388
+ label: {
1389
+ id: string;
1390
+ description: string;
1391
+ defaultMessage: string;
1392
+ };
1393
+ }[] | undefined;
33
1394
  }>;
34
1395
  export type WorkqueueConfig = z.infer<typeof WorkqueueConfig>;
35
1396
  export type WorkqueueConfigInput = z.input<typeof WorkqueueConfig>;
1397
+ export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
1398
+ name: TranslationConfig;
1399
+ actions: {
1400
+ type: string;
1401
+ conditionals?: import(".").JSONSchema[] | undefined;
1402
+ }[];
1403
+ query: {
1404
+ type: "or";
1405
+ clauses: {
1406
+ status?: {
1407
+ type: "exact";
1408
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1409
+ } | {
1410
+ type: "anyOf";
1411
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1412
+ } | undefined;
1413
+ data?: any;
1414
+ createdAt?: {
1415
+ type: "exact";
1416
+ term: string;
1417
+ } | {
1418
+ type: "range";
1419
+ gte: string;
1420
+ lte: string;
1421
+ } | undefined;
1422
+ createdBy?: {
1423
+ type: "exact";
1424
+ term: string;
1425
+ } | undefined;
1426
+ updatedAt?: {
1427
+ type: "exact";
1428
+ term: string;
1429
+ } | {
1430
+ type: "range";
1431
+ gte: string;
1432
+ lte: string;
1433
+ } | undefined;
1434
+ trackingId?: {
1435
+ type: "exact";
1436
+ term: string;
1437
+ } | undefined;
1438
+ eventType?: string | undefined;
1439
+ 'legalStatus.REGISTERED.createdAt'?: {
1440
+ type: "exact";
1441
+ term: string;
1442
+ } | {
1443
+ type: "range";
1444
+ gte: string;
1445
+ lte: string;
1446
+ } | undefined;
1447
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1448
+ type: "exact";
1449
+ term: string;
1450
+ } | {
1451
+ type: "within";
1452
+ location: string;
1453
+ } | undefined;
1454
+ updatedAtLocation?: {
1455
+ type: "exact";
1456
+ term: string;
1457
+ } | {
1458
+ type: "within";
1459
+ location: string;
1460
+ } | undefined;
1461
+ updatedBy?: {
1462
+ type: "exact";
1463
+ term: string;
1464
+ } | undefined;
1465
+ flags?: ({
1466
+ type: "anyOf";
1467
+ terms: string[];
1468
+ } | {
1469
+ type: "not";
1470
+ term: string;
1471
+ })[] | undefined;
1472
+ createAtLocation?: {
1473
+ type: "exact";
1474
+ term: string;
1475
+ } | {
1476
+ type: "within";
1477
+ location: string;
1478
+ } | undefined;
1479
+ }[];
1480
+ } | {
1481
+ type: "and";
1482
+ clauses: {
1483
+ status?: {
1484
+ type: "exact";
1485
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1486
+ } | {
1487
+ type: "anyOf";
1488
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1489
+ } | undefined;
1490
+ data?: any;
1491
+ createdAt?: {
1492
+ type: "exact";
1493
+ term: string;
1494
+ } | {
1495
+ type: "range";
1496
+ gte: string;
1497
+ lte: string;
1498
+ } | undefined;
1499
+ createdBy?: {
1500
+ type: "exact";
1501
+ term: string;
1502
+ } | undefined;
1503
+ updatedAt?: {
1504
+ type: "exact";
1505
+ term: string;
1506
+ } | {
1507
+ type: "range";
1508
+ gte: string;
1509
+ lte: string;
1510
+ } | undefined;
1511
+ trackingId?: {
1512
+ type: "exact";
1513
+ term: string;
1514
+ } | undefined;
1515
+ eventType?: string | undefined;
1516
+ 'legalStatus.REGISTERED.createdAt'?: {
1517
+ type: "exact";
1518
+ term: string;
1519
+ } | {
1520
+ type: "range";
1521
+ gte: string;
1522
+ lte: string;
1523
+ } | undefined;
1524
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1525
+ type: "exact";
1526
+ term: string;
1527
+ } | {
1528
+ type: "within";
1529
+ location: string;
1530
+ } | undefined;
1531
+ updatedAtLocation?: {
1532
+ type: "exact";
1533
+ term: string;
1534
+ } | {
1535
+ type: "within";
1536
+ location: string;
1537
+ } | undefined;
1538
+ updatedBy?: {
1539
+ type: "exact";
1540
+ term: string;
1541
+ } | undefined;
1542
+ flags?: ({
1543
+ type: "anyOf";
1544
+ terms: string[];
1545
+ } | {
1546
+ type: "not";
1547
+ term: string;
1548
+ })[] | undefined;
1549
+ createAtLocation?: {
1550
+ type: "exact";
1551
+ term: string;
1552
+ } | {
1553
+ type: "within";
1554
+ location: string;
1555
+ } | undefined;
1556
+ }[];
1557
+ };
1558
+ slug: string;
1559
+ columns: {
1560
+ value: {
1561
+ $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1562
+ };
1563
+ label: TranslationConfig;
1564
+ }[];
1565
+ }[];
36
1566
  //# sourceMappingURL=WorkqueueConfig.d.ts.map