@opencrvs/toolkit 1.8.0-rc.f8e4107 → 1.8.0-rc.f97f8f2

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 (39) hide show
  1. package/dist/commons/api/router.d.ts +8418 -4827
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -70
  3. package/dist/commons/conditionals/validate.d.ts +4 -6
  4. package/dist/commons/events/ActionConfig.d.ts +90025 -1680
  5. package/dist/commons/events/ActionDocument.d.ts +643 -417
  6. package/dist/commons/events/ActionInput.d.ts +248 -240
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +274 -23
  8. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  9. package/dist/commons/events/CountryConfigQueryInput.d.ts +1506 -0
  10. package/dist/commons/events/Draft.d.ts +38 -30
  11. package/dist/commons/events/EventConfig.d.ts +42787 -1385
  12. package/dist/commons/events/EventDocument.d.ts +413 -312
  13. package/dist/commons/events/EventIndex.d.ts +948 -155
  14. package/dist/commons/events/EventInput.d.ts +13 -0
  15. package/dist/commons/events/EventMetadata.d.ts +274 -11
  16. package/dist/commons/events/FieldConfig.d.ts +3778 -769
  17. package/dist/commons/events/FieldType.d.ts +3 -3
  18. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  19. package/dist/commons/events/FieldValue.d.ts +7 -4
  20. package/dist/commons/events/FormConfig.d.ts +40417 -439
  21. package/dist/commons/events/PageConfig.d.ts +10077 -203
  22. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  23. package/dist/commons/events/User.d.ts +31 -2
  24. package/dist/commons/events/WorkqueueColumnConfig.d.ts +42 -0
  25. package/dist/commons/events/WorkqueueConfig.d.ts +2834 -19
  26. package/dist/commons/events/defineConfig.d.ts +7008 -81
  27. package/dist/commons/events/event.d.ts +27 -0
  28. package/dist/commons/events/field.d.ts +68 -0
  29. package/dist/commons/events/index.d.ts +6 -0
  30. package/dist/commons/events/scopes.d.ts +26 -0
  31. package/dist/commons/events/serializer.d.ts +2 -0
  32. package/dist/commons/events/test.utils.d.ts +7 -44
  33. package/dist/commons/events/utils.d.ts +3551 -65
  34. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  35. package/dist/conditionals/index.js +54 -83
  36. package/dist/events/index.js +2044 -1072
  37. package/dist/scopes/index.d.ts +105 -1
  38. package/dist/scopes/index.js +140 -0
  39. package/package.json +3 -2
@@ -1,36 +1,2851 @@
1
1
  import { z } from 'zod';
2
+ import { TranslationConfig } from './TranslationConfig';
3
+ export declare const defaultThirdColumn: {
4
+ value: {
5
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
6
+ };
7
+ label: TranslationConfig;
8
+ }[];
2
9
  /**
3
10
  * Configuration for workqueue. Workqueues are used to display a list of events.
4
11
  */
5
12
  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";
13
+ slug: z.ZodString;
14
+ name: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
15
+ id: string;
16
+ description: string;
17
+ defaultMessage: string;
18
+ }>;
19
+ query: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
20
+ type: z.ZodLiteral<"and">;
21
+ clauses: z.ZodArray<z.ZodObject<{
22
+ title: z.ZodOptional<z.ZodString>;
23
+ eventType: z.ZodOptional<z.ZodString>;
24
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
25
+ type: z.ZodLiteral<"anyOf">;
26
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
27
+ }, "strip", z.ZodTypeAny, {
28
+ type: "anyOf";
29
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
30
+ }, {
31
+ type: "anyOf";
32
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
33
+ }>, z.ZodObject<{
34
+ type: z.ZodLiteral<"exact">;
35
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ type: "exact";
38
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
39
+ }, {
40
+ type: "exact";
41
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
42
+ }>]>>>;
43
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
44
+ type: z.ZodLiteral<"exact">;
45
+ term: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type: "exact";
48
+ term: string;
49
+ }, {
50
+ type: "exact";
51
+ term: string;
52
+ }>, z.ZodObject<{
53
+ type: z.ZodLiteral<"range">;
54
+ gte: z.ZodString;
55
+ lte: z.ZodString;
56
+ }, "strip", z.ZodTypeAny, {
57
+ type: "range";
58
+ gte: string;
59
+ lte: string;
60
+ }, {
61
+ type: "range";
62
+ gte: string;
63
+ lte: string;
64
+ }>]>>>;
65
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
66
+ type: z.ZodLiteral<"exact">;
67
+ term: z.ZodString;
68
+ }, "strip", z.ZodTypeAny, {
69
+ type: "exact";
70
+ term: string;
71
+ }, {
72
+ type: "exact";
73
+ term: string;
74
+ }>, z.ZodObject<{
75
+ type: z.ZodLiteral<"range">;
76
+ gte: z.ZodString;
77
+ lte: z.ZodString;
78
+ }, "strip", z.ZodTypeAny, {
79
+ type: "range";
80
+ gte: string;
81
+ lte: string;
82
+ }, {
83
+ type: "range";
84
+ gte: string;
85
+ lte: string;
86
+ }>]>>>;
87
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
88
+ type: z.ZodLiteral<"within">;
89
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
90
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
93
+ }, {
94
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
95
+ }>]>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ type: "within";
98
+ location: string | {
99
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
100
+ };
101
+ }, {
102
+ type: "within";
103
+ location: string | {
104
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
105
+ };
106
+ }>, z.ZodObject<{
107
+ type: z.ZodLiteral<"exact">;
108
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
109
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
112
+ }, {
113
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
114
+ }>]>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ type: "exact";
117
+ term: string | {
118
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
119
+ };
120
+ }, {
121
+ type: "exact";
122
+ term: string | {
123
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
124
+ };
125
+ }>]>>>;
126
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
127
+ type: z.ZodLiteral<"within">;
128
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
129
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
132
+ }, {
133
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
134
+ }>]>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ type: "within";
137
+ location: string | {
138
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
139
+ };
140
+ }, {
141
+ type: "within";
142
+ location: string | {
143
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
144
+ };
145
+ }>, z.ZodObject<{
146
+ type: z.ZodLiteral<"exact">;
147
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
148
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
151
+ }, {
152
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
153
+ }>]>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ type: "exact";
156
+ term: string | {
157
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
158
+ };
159
+ }, {
160
+ type: "exact";
161
+ term: string | {
162
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
163
+ };
164
+ }>]>>>;
165
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
166
+ type: z.ZodLiteral<"exact">;
167
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
168
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
171
+ }, {
172
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
173
+ }>]>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ type: "exact";
176
+ term: string | {
177
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
178
+ };
179
+ }, {
180
+ type: "exact";
181
+ term: string | {
182
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
183
+ };
184
+ }>>>;
185
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
186
+ type: z.ZodLiteral<"exact">;
187
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
188
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
191
+ }, {
192
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
193
+ }>]>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ type: "exact";
196
+ term: string | {
197
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
198
+ };
199
+ }, {
200
+ type: "exact";
201
+ term: string | {
202
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
203
+ };
204
+ }>>>;
205
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
206
+ type: z.ZodLiteral<"exact">;
207
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
208
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
211
+ }, {
212
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
213
+ }>]>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ type: "exact";
216
+ term: string | {
217
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
218
+ };
219
+ }, {
220
+ type: "exact";
221
+ term: string | {
222
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
223
+ };
224
+ }>>>;
225
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
226
+ type: z.ZodLiteral<"exact">;
227
+ term: z.ZodString;
228
+ }, "strip", z.ZodTypeAny, {
229
+ type: "exact";
230
+ term: string;
231
+ }, {
232
+ type: "exact";
233
+ term: string;
234
+ }>>>;
235
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
236
+ type: z.ZodLiteral<"anyOf">;
237
+ terms: z.ZodArray<z.ZodString, "many">;
238
+ }, "strip", z.ZodTypeAny, {
239
+ type: "anyOf";
240
+ terms: string[];
241
+ }, {
242
+ type: "anyOf";
243
+ terms: string[];
244
+ }>, z.ZodObject<{
245
+ type: z.ZodLiteral<"not">;
246
+ term: z.ZodString;
247
+ }, "strip", z.ZodTypeAny, {
248
+ type: "not";
249
+ term: string;
250
+ }, {
251
+ type: "not";
252
+ term: string;
253
+ }>]>, "many">>>;
254
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ status?: {
257
+ type: "anyOf";
258
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
259
+ } | {
260
+ type: "exact";
261
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
262
+ } | undefined;
263
+ title?: string | undefined;
264
+ data?: any;
265
+ createdAt?: {
266
+ type: "exact";
267
+ term: string;
268
+ } | {
269
+ type: "range";
270
+ gte: string;
271
+ lte: string;
272
+ } | undefined;
273
+ createdBy?: {
274
+ type: "exact";
275
+ term: string | {
276
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
277
+ };
278
+ } | undefined;
279
+ createdAtLocation?: {
280
+ type: "exact";
281
+ term: string | {
282
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
283
+ };
284
+ } | {
285
+ type: "within";
286
+ location: string | {
287
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
288
+ };
289
+ } | undefined;
290
+ assignedTo?: {
291
+ type: "exact";
292
+ term: string | {
293
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
294
+ };
295
+ } | undefined;
296
+ updatedAt?: {
297
+ type: "exact";
298
+ term: string;
299
+ } | {
300
+ type: "range";
301
+ gte: string;
302
+ lte: string;
303
+ } | undefined;
304
+ trackingId?: {
305
+ type: "exact";
306
+ term: string;
307
+ } | undefined;
308
+ updatedAtLocation?: {
309
+ type: "exact";
310
+ term: string | {
311
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
312
+ };
313
+ } | {
314
+ type: "within";
315
+ location: string | {
316
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
317
+ };
318
+ } | undefined;
319
+ updatedBy?: {
320
+ type: "exact";
321
+ term: string | {
322
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
323
+ };
324
+ } | undefined;
325
+ flags?: ({
326
+ type: "anyOf";
327
+ terms: string[];
328
+ } | {
329
+ type: "not";
330
+ term: string;
331
+ })[] | undefined;
332
+ eventType?: string | undefined;
333
+ }, {
334
+ status?: {
335
+ type: "anyOf";
336
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
337
+ } | {
338
+ type: "exact";
339
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
340
+ } | undefined;
341
+ title?: string | undefined;
342
+ data?: any;
343
+ createdAt?: {
344
+ type: "exact";
345
+ term: string;
346
+ } | {
347
+ type: "range";
348
+ gte: string;
349
+ lte: string;
350
+ } | undefined;
351
+ createdBy?: {
352
+ type: "exact";
353
+ term: string | {
354
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
355
+ };
356
+ } | undefined;
357
+ createdAtLocation?: {
358
+ type: "exact";
359
+ term: string | {
360
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
361
+ };
362
+ } | {
363
+ type: "within";
364
+ location: string | {
365
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
366
+ };
367
+ } | undefined;
368
+ assignedTo?: {
369
+ type: "exact";
370
+ term: string | {
371
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
372
+ };
373
+ } | undefined;
374
+ updatedAt?: {
375
+ type: "exact";
376
+ term: string;
377
+ } | {
378
+ type: "range";
379
+ gte: string;
380
+ lte: string;
381
+ } | undefined;
382
+ trackingId?: {
383
+ type: "exact";
384
+ term: string;
385
+ } | undefined;
386
+ updatedAtLocation?: {
387
+ type: "exact";
388
+ term: string | {
389
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
390
+ };
391
+ } | {
392
+ type: "within";
393
+ location: string | {
394
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
395
+ };
396
+ } | undefined;
397
+ updatedBy?: {
398
+ type: "exact";
399
+ term: string | {
400
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
401
+ };
402
+ } | undefined;
403
+ flags?: ({
404
+ type: "anyOf";
405
+ terms: string[];
406
+ } | {
407
+ type: "not";
408
+ term: string;
409
+ })[] | undefined;
410
+ eventType?: string | undefined;
17
411
  }>, "many">;
18
412
  }, "strip", z.ZodTypeAny, {
19
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
413
+ type: "and";
414
+ clauses: {
415
+ status?: {
416
+ type: "anyOf";
417
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
418
+ } | {
419
+ type: "exact";
420
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
421
+ } | undefined;
422
+ title?: string | undefined;
423
+ data?: any;
424
+ createdAt?: {
425
+ type: "exact";
426
+ term: string;
427
+ } | {
428
+ type: "range";
429
+ gte: string;
430
+ lte: string;
431
+ } | undefined;
432
+ createdBy?: {
433
+ type: "exact";
434
+ term: string | {
435
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
436
+ };
437
+ } | undefined;
438
+ createdAtLocation?: {
439
+ type: "exact";
440
+ term: string | {
441
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
442
+ };
443
+ } | {
444
+ type: "within";
445
+ location: string | {
446
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
447
+ };
448
+ } | undefined;
449
+ assignedTo?: {
450
+ type: "exact";
451
+ term: string | {
452
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
453
+ };
454
+ } | undefined;
455
+ updatedAt?: {
456
+ type: "exact";
457
+ term: string;
458
+ } | {
459
+ type: "range";
460
+ gte: string;
461
+ lte: string;
462
+ } | undefined;
463
+ trackingId?: {
464
+ type: "exact";
465
+ term: string;
466
+ } | undefined;
467
+ updatedAtLocation?: {
468
+ type: "exact";
469
+ term: string | {
470
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
471
+ };
472
+ } | {
473
+ type: "within";
474
+ location: string | {
475
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
476
+ };
477
+ } | undefined;
478
+ updatedBy?: {
479
+ type: "exact";
480
+ term: string | {
481
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
482
+ };
483
+ } | undefined;
484
+ flags?: ({
485
+ type: "anyOf";
486
+ terms: string[];
487
+ } | {
488
+ type: "not";
489
+ term: string;
490
+ })[] | undefined;
491
+ eventType?: string | undefined;
492
+ }[];
20
493
  }, {
21
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
494
+ type: "and";
495
+ clauses: {
496
+ status?: {
497
+ type: "anyOf";
498
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
499
+ } | {
500
+ type: "exact";
501
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
502
+ } | undefined;
503
+ title?: string | undefined;
504
+ data?: any;
505
+ createdAt?: {
506
+ type: "exact";
507
+ term: string;
508
+ } | {
509
+ type: "range";
510
+ gte: string;
511
+ lte: string;
512
+ } | undefined;
513
+ createdBy?: {
514
+ type: "exact";
515
+ term: string | {
516
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
517
+ };
518
+ } | undefined;
519
+ createdAtLocation?: {
520
+ type: "exact";
521
+ term: string | {
522
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
523
+ };
524
+ } | {
525
+ type: "within";
526
+ location: string | {
527
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
528
+ };
529
+ } | undefined;
530
+ assignedTo?: {
531
+ type: "exact";
532
+ term: string | {
533
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
534
+ };
535
+ } | undefined;
536
+ updatedAt?: {
537
+ type: "exact";
538
+ term: string;
539
+ } | {
540
+ type: "range";
541
+ gte: string;
542
+ lte: string;
543
+ } | undefined;
544
+ trackingId?: {
545
+ type: "exact";
546
+ term: string;
547
+ } | undefined;
548
+ updatedAtLocation?: {
549
+ type: "exact";
550
+ term: string | {
551
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
552
+ };
553
+ } | {
554
+ type: "within";
555
+ location: string | {
556
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
557
+ };
558
+ } | undefined;
559
+ updatedBy?: {
560
+ type: "exact";
561
+ term: string | {
562
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
563
+ };
564
+ } | undefined;
565
+ flags?: ({
566
+ type: "anyOf";
567
+ terms: string[];
568
+ } | {
569
+ type: "not";
570
+ term: string;
571
+ })[] | undefined;
572
+ eventType?: string | undefined;
573
+ }[];
574
+ }>, z.ZodObject<{
575
+ type: z.ZodLiteral<"or">;
576
+ clauses: z.ZodArray<z.ZodObject<{
577
+ title: z.ZodOptional<z.ZodString>;
578
+ eventType: z.ZodOptional<z.ZodString>;
579
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
580
+ type: z.ZodLiteral<"anyOf">;
581
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
582
+ }, "strip", z.ZodTypeAny, {
583
+ type: "anyOf";
584
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
585
+ }, {
586
+ type: "anyOf";
587
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
588
+ }>, z.ZodObject<{
589
+ type: z.ZodLiteral<"exact">;
590
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ type: "exact";
593
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
594
+ }, {
595
+ type: "exact";
596
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
597
+ }>]>>>;
598
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
599
+ type: z.ZodLiteral<"exact">;
600
+ term: z.ZodString;
601
+ }, "strip", z.ZodTypeAny, {
602
+ type: "exact";
603
+ term: string;
604
+ }, {
605
+ type: "exact";
606
+ term: string;
607
+ }>, z.ZodObject<{
608
+ type: z.ZodLiteral<"range">;
609
+ gte: z.ZodString;
610
+ lte: z.ZodString;
611
+ }, "strip", z.ZodTypeAny, {
612
+ type: "range";
613
+ gte: string;
614
+ lte: string;
615
+ }, {
616
+ type: "range";
617
+ gte: string;
618
+ lte: string;
619
+ }>]>>>;
620
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
621
+ type: z.ZodLiteral<"exact">;
622
+ term: z.ZodString;
623
+ }, "strip", z.ZodTypeAny, {
624
+ type: "exact";
625
+ term: string;
626
+ }, {
627
+ type: "exact";
628
+ term: string;
629
+ }>, z.ZodObject<{
630
+ type: z.ZodLiteral<"range">;
631
+ gte: z.ZodString;
632
+ lte: z.ZodString;
633
+ }, "strip", z.ZodTypeAny, {
634
+ type: "range";
635
+ gte: string;
636
+ lte: string;
637
+ }, {
638
+ type: "range";
639
+ gte: string;
640
+ lte: string;
641
+ }>]>>>;
642
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
643
+ type: z.ZodLiteral<"within">;
644
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
645
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
646
+ }, "strip", z.ZodTypeAny, {
647
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
648
+ }, {
649
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
650
+ }>]>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ type: "within";
653
+ location: string | {
654
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
655
+ };
656
+ }, {
657
+ type: "within";
658
+ location: string | {
659
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
660
+ };
661
+ }>, z.ZodObject<{
662
+ type: z.ZodLiteral<"exact">;
663
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
664
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
667
+ }, {
668
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
669
+ }>]>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ type: "exact";
672
+ term: string | {
673
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
674
+ };
675
+ }, {
676
+ type: "exact";
677
+ term: string | {
678
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
679
+ };
680
+ }>]>>>;
681
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
682
+ type: z.ZodLiteral<"within">;
683
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
684
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
687
+ }, {
688
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
689
+ }>]>;
690
+ }, "strip", z.ZodTypeAny, {
691
+ type: "within";
692
+ location: string | {
693
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
694
+ };
695
+ }, {
696
+ type: "within";
697
+ location: string | {
698
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
699
+ };
700
+ }>, z.ZodObject<{
701
+ type: z.ZodLiteral<"exact">;
702
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
703
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
706
+ }, {
707
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
708
+ }>]>;
709
+ }, "strip", z.ZodTypeAny, {
710
+ type: "exact";
711
+ term: string | {
712
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
713
+ };
714
+ }, {
715
+ type: "exact";
716
+ term: string | {
717
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
718
+ };
719
+ }>]>>>;
720
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
721
+ type: z.ZodLiteral<"exact">;
722
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
723
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
726
+ }, {
727
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
728
+ }>]>;
729
+ }, "strip", z.ZodTypeAny, {
730
+ type: "exact";
731
+ term: string | {
732
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
733
+ };
734
+ }, {
735
+ type: "exact";
736
+ term: string | {
737
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
738
+ };
739
+ }>>>;
740
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
741
+ type: z.ZodLiteral<"exact">;
742
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
743
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
746
+ }, {
747
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
748
+ }>]>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ type: "exact";
751
+ term: string | {
752
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
753
+ };
754
+ }, {
755
+ type: "exact";
756
+ term: string | {
757
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
758
+ };
759
+ }>>>;
760
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
761
+ type: z.ZodLiteral<"exact">;
762
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
763
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
766
+ }, {
767
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
768
+ }>]>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ type: "exact";
771
+ term: string | {
772
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
773
+ };
774
+ }, {
775
+ type: "exact";
776
+ term: string | {
777
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
778
+ };
779
+ }>>>;
780
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
781
+ type: z.ZodLiteral<"exact">;
782
+ term: z.ZodString;
783
+ }, "strip", z.ZodTypeAny, {
784
+ type: "exact";
785
+ term: string;
786
+ }, {
787
+ type: "exact";
788
+ term: string;
789
+ }>>>;
790
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
791
+ type: z.ZodLiteral<"anyOf">;
792
+ terms: z.ZodArray<z.ZodString, "many">;
793
+ }, "strip", z.ZodTypeAny, {
794
+ type: "anyOf";
795
+ terms: string[];
796
+ }, {
797
+ type: "anyOf";
798
+ terms: string[];
799
+ }>, z.ZodObject<{
800
+ type: z.ZodLiteral<"not">;
801
+ term: z.ZodString;
802
+ }, "strip", z.ZodTypeAny, {
803
+ type: "not";
804
+ term: string;
805
+ }, {
806
+ type: "not";
807
+ term: string;
808
+ }>]>, "many">>>;
809
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
810
+ }, "strip", z.ZodTypeAny, {
811
+ status?: {
812
+ type: "anyOf";
813
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
814
+ } | {
815
+ type: "exact";
816
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
817
+ } | undefined;
818
+ title?: string | undefined;
819
+ data?: any;
820
+ createdAt?: {
821
+ type: "exact";
822
+ term: string;
823
+ } | {
824
+ type: "range";
825
+ gte: string;
826
+ lte: string;
827
+ } | undefined;
828
+ createdBy?: {
829
+ type: "exact";
830
+ term: string | {
831
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
832
+ };
833
+ } | undefined;
834
+ createdAtLocation?: {
835
+ type: "exact";
836
+ term: string | {
837
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
838
+ };
839
+ } | {
840
+ type: "within";
841
+ location: string | {
842
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
843
+ };
844
+ } | undefined;
845
+ assignedTo?: {
846
+ type: "exact";
847
+ term: string | {
848
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
849
+ };
850
+ } | undefined;
851
+ updatedAt?: {
852
+ type: "exact";
853
+ term: string;
854
+ } | {
855
+ type: "range";
856
+ gte: string;
857
+ lte: string;
858
+ } | undefined;
859
+ trackingId?: {
860
+ type: "exact";
861
+ term: string;
862
+ } | undefined;
863
+ updatedAtLocation?: {
864
+ type: "exact";
865
+ term: string | {
866
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
867
+ };
868
+ } | {
869
+ type: "within";
870
+ location: string | {
871
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
872
+ };
873
+ } | undefined;
874
+ updatedBy?: {
875
+ type: "exact";
876
+ term: string | {
877
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
878
+ };
879
+ } | undefined;
880
+ flags?: ({
881
+ type: "anyOf";
882
+ terms: string[];
883
+ } | {
884
+ type: "not";
885
+ term: string;
886
+ })[] | undefined;
887
+ eventType?: string | undefined;
888
+ }, {
889
+ status?: {
890
+ type: "anyOf";
891
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
892
+ } | {
893
+ type: "exact";
894
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
895
+ } | undefined;
896
+ title?: string | undefined;
897
+ data?: any;
898
+ createdAt?: {
899
+ type: "exact";
900
+ term: string;
901
+ } | {
902
+ type: "range";
903
+ gte: string;
904
+ lte: string;
905
+ } | undefined;
906
+ createdBy?: {
907
+ type: "exact";
908
+ term: string | {
909
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
910
+ };
911
+ } | undefined;
912
+ createdAtLocation?: {
913
+ type: "exact";
914
+ term: string | {
915
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
916
+ };
917
+ } | {
918
+ type: "within";
919
+ location: string | {
920
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
921
+ };
922
+ } | undefined;
923
+ assignedTo?: {
924
+ type: "exact";
925
+ term: string | {
926
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
927
+ };
928
+ } | undefined;
929
+ updatedAt?: {
930
+ type: "exact";
931
+ term: string;
932
+ } | {
933
+ type: "range";
934
+ gte: string;
935
+ lte: string;
936
+ } | undefined;
937
+ trackingId?: {
938
+ type: "exact";
939
+ term: string;
940
+ } | undefined;
941
+ updatedAtLocation?: {
942
+ type: "exact";
943
+ term: string | {
944
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
945
+ };
946
+ } | {
947
+ type: "within";
948
+ location: string | {
949
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
950
+ };
951
+ } | undefined;
952
+ updatedBy?: {
953
+ type: "exact";
954
+ term: string | {
955
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
956
+ };
957
+ } | undefined;
958
+ flags?: ({
959
+ type: "anyOf";
960
+ terms: string[];
961
+ } | {
962
+ type: "not";
963
+ term: string;
964
+ })[] | undefined;
965
+ eventType?: string | undefined;
966
+ }>, "many">;
967
+ }, "strip", z.ZodTypeAny, {
968
+ type: "or";
969
+ clauses: {
970
+ status?: {
971
+ type: "anyOf";
972
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
973
+ } | {
974
+ type: "exact";
975
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
976
+ } | undefined;
977
+ title?: string | undefined;
978
+ data?: any;
979
+ createdAt?: {
980
+ type: "exact";
981
+ term: string;
982
+ } | {
983
+ type: "range";
984
+ gte: string;
985
+ lte: string;
986
+ } | undefined;
987
+ createdBy?: {
988
+ type: "exact";
989
+ term: string | {
990
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
991
+ };
992
+ } | undefined;
993
+ createdAtLocation?: {
994
+ type: "exact";
995
+ term: string | {
996
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
997
+ };
998
+ } | {
999
+ type: "within";
1000
+ location: string | {
1001
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1002
+ };
1003
+ } | undefined;
1004
+ assignedTo?: {
1005
+ type: "exact";
1006
+ term: string | {
1007
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1008
+ };
1009
+ } | undefined;
1010
+ updatedAt?: {
1011
+ type: "exact";
1012
+ term: string;
1013
+ } | {
1014
+ type: "range";
1015
+ gte: string;
1016
+ lte: string;
1017
+ } | undefined;
1018
+ trackingId?: {
1019
+ type: "exact";
1020
+ term: string;
1021
+ } | undefined;
1022
+ updatedAtLocation?: {
1023
+ type: "exact";
1024
+ term: string | {
1025
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1026
+ };
1027
+ } | {
1028
+ type: "within";
1029
+ location: string | {
1030
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1031
+ };
1032
+ } | undefined;
1033
+ updatedBy?: {
1034
+ type: "exact";
1035
+ term: string | {
1036
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1037
+ };
1038
+ } | undefined;
1039
+ flags?: ({
1040
+ type: "anyOf";
1041
+ terms: string[];
1042
+ } | {
1043
+ type: "not";
1044
+ term: string;
1045
+ })[] | undefined;
1046
+ eventType?: string | undefined;
1047
+ }[];
1048
+ }, {
1049
+ type: "or";
1050
+ clauses: {
1051
+ status?: {
1052
+ type: "anyOf";
1053
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1054
+ } | {
1055
+ type: "exact";
1056
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1057
+ } | undefined;
1058
+ title?: string | undefined;
1059
+ data?: any;
1060
+ createdAt?: {
1061
+ type: "exact";
1062
+ term: string;
1063
+ } | {
1064
+ type: "range";
1065
+ gte: string;
1066
+ lte: string;
1067
+ } | undefined;
1068
+ createdBy?: {
1069
+ type: "exact";
1070
+ term: string | {
1071
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1072
+ };
1073
+ } | undefined;
1074
+ createdAtLocation?: {
1075
+ type: "exact";
1076
+ term: string | {
1077
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1078
+ };
1079
+ } | {
1080
+ type: "within";
1081
+ location: string | {
1082
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1083
+ };
1084
+ } | undefined;
1085
+ assignedTo?: {
1086
+ type: "exact";
1087
+ term: string | {
1088
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1089
+ };
1090
+ } | undefined;
1091
+ updatedAt?: {
1092
+ type: "exact";
1093
+ term: string;
1094
+ } | {
1095
+ type: "range";
1096
+ gte: string;
1097
+ lte: string;
1098
+ } | undefined;
1099
+ trackingId?: {
1100
+ type: "exact";
1101
+ term: string;
1102
+ } | undefined;
1103
+ updatedAtLocation?: {
1104
+ type: "exact";
1105
+ term: string | {
1106
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1107
+ };
1108
+ } | {
1109
+ type: "within";
1110
+ location: string | {
1111
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1112
+ };
1113
+ } | undefined;
1114
+ updatedBy?: {
1115
+ type: "exact";
1116
+ term: string | {
1117
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1118
+ };
1119
+ } | undefined;
1120
+ flags?: ({
1121
+ type: "anyOf";
1122
+ terms: string[];
1123
+ } | {
1124
+ type: "not";
1125
+ term: string;
1126
+ })[] | undefined;
1127
+ eventType?: string | undefined;
1128
+ }[];
1129
+ }>]>;
1130
+ actions: z.ZodArray<z.ZodObject<{
1131
+ type: z.ZodString;
1132
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
1133
+ }, "strip", z.ZodTypeAny, {
1134
+ type: string;
1135
+ conditionals?: import(".").JSONSchema[] | undefined;
1136
+ }, {
1137
+ type: string;
1138
+ conditionals?: import(".").JSONSchema[] | undefined;
22
1139
  }>, "many">;
1140
+ columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
1141
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1142
+ id: string;
1143
+ description: string;
1144
+ defaultMessage: string;
1145
+ }>;
1146
+ value: z.ZodObject<{
1147
+ $event: z.ZodEnum<["id", "title", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
1148
+ }, "strip", z.ZodTypeAny, {
1149
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1150
+ }, {
1151
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1152
+ }>;
1153
+ }, "strip", z.ZodTypeAny, {
1154
+ value: {
1155
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1156
+ };
1157
+ label: TranslationConfig;
1158
+ }, {
1159
+ value: {
1160
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1161
+ };
1162
+ label: {
1163
+ id: string;
1164
+ description: string;
1165
+ defaultMessage: string;
1166
+ };
1167
+ }>, "many">>;
1168
+ icon: z.ZodEnum<["Archived", "Assigned", "Certified", "Close", "Collapse", "Draft", "DuplicateYellow", "Expand", "ExternalValidate", "FilledCheck", "InReview", "Offline", "Registered", "RequiresUpdates", "Sent", "Validated", "WaitingApproval", "ChartActivity", "Activity", "Archive", "ArchiveTray", "ArrowLeft", "ArrowRight", "Buildings", "Circle", "CaretDown", "CaretLeft", "CaretRight", "ChartBar", "ChartLine", "ChatCircle", "CheckSquare", "Compass", "Check", "Copy", "Database", "DotsThreeVertical", "DownloadSimple", "ArrowCounterClockwise", "MagnifyingGlassMinus", "MagnifyingGlassPlus", "Export", "Eye", "EyeSlash", "Envelope", "File", "FileSearch", "FileMinus", "FilePlus", "FileText", "FileX", "Handshake", "Gear", "GitBranch", "IdentificationCard", "List", "ListBullets", "Lock", "MagnifyingGlass", "MapPin", "Medal", "NotePencil", "Paperclip", "PaperPlaneTilt", "Pen", "Pencil", "PencilSimpleLine", "Phone", "Plus", "Printer", "SignOut", "Star", "Target", "TextT", "Trash", "UploadSimple", "User", "UserPlus", "Users", "WarningCircle", "X", "CircleWavyCheck", "CircleWavyQuestion", "ArchiveBox", "ArrowCircleDown", "FileArrowUp", "FileDotted", "Files", "PencilLine", "PencilCircle", "UserCircle", "Clock", "QrCode", "Webcam", "Sun", "DeviceTabletCamera", "Globe", "Fingerprint", "PushPin", "Timer"]>;
23
1169
  }, "strip", z.ZodTypeAny, {
24
- id: string;
25
- filters: {
26
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1170
+ name: TranslationConfig;
1171
+ actions: {
1172
+ type: string;
1173
+ conditionals?: import(".").JSONSchema[] | undefined;
27
1174
  }[];
1175
+ query: {
1176
+ type: "or";
1177
+ clauses: {
1178
+ status?: {
1179
+ type: "anyOf";
1180
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1181
+ } | {
1182
+ type: "exact";
1183
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1184
+ } | undefined;
1185
+ title?: string | undefined;
1186
+ data?: any;
1187
+ createdAt?: {
1188
+ type: "exact";
1189
+ term: string;
1190
+ } | {
1191
+ type: "range";
1192
+ gte: string;
1193
+ lte: string;
1194
+ } | undefined;
1195
+ createdBy?: {
1196
+ type: "exact";
1197
+ term: string | {
1198
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1199
+ };
1200
+ } | undefined;
1201
+ createdAtLocation?: {
1202
+ type: "exact";
1203
+ term: string | {
1204
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1205
+ };
1206
+ } | {
1207
+ type: "within";
1208
+ location: string | {
1209
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1210
+ };
1211
+ } | undefined;
1212
+ assignedTo?: {
1213
+ type: "exact";
1214
+ term: string | {
1215
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1216
+ };
1217
+ } | undefined;
1218
+ updatedAt?: {
1219
+ type: "exact";
1220
+ term: string;
1221
+ } | {
1222
+ type: "range";
1223
+ gte: string;
1224
+ lte: string;
1225
+ } | undefined;
1226
+ trackingId?: {
1227
+ type: "exact";
1228
+ term: string;
1229
+ } | undefined;
1230
+ updatedAtLocation?: {
1231
+ type: "exact";
1232
+ term: string | {
1233
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1234
+ };
1235
+ } | {
1236
+ type: "within";
1237
+ location: string | {
1238
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1239
+ };
1240
+ } | undefined;
1241
+ updatedBy?: {
1242
+ type: "exact";
1243
+ term: string | {
1244
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1245
+ };
1246
+ } | undefined;
1247
+ flags?: ({
1248
+ type: "anyOf";
1249
+ terms: string[];
1250
+ } | {
1251
+ type: "not";
1252
+ term: string;
1253
+ })[] | undefined;
1254
+ eventType?: string | undefined;
1255
+ }[];
1256
+ } | {
1257
+ type: "and";
1258
+ clauses: {
1259
+ status?: {
1260
+ type: "anyOf";
1261
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1262
+ } | {
1263
+ type: "exact";
1264
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1265
+ } | undefined;
1266
+ title?: string | undefined;
1267
+ data?: any;
1268
+ createdAt?: {
1269
+ type: "exact";
1270
+ term: string;
1271
+ } | {
1272
+ type: "range";
1273
+ gte: string;
1274
+ lte: string;
1275
+ } | undefined;
1276
+ createdBy?: {
1277
+ type: "exact";
1278
+ term: string | {
1279
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1280
+ };
1281
+ } | undefined;
1282
+ createdAtLocation?: {
1283
+ type: "exact";
1284
+ term: string | {
1285
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1286
+ };
1287
+ } | {
1288
+ type: "within";
1289
+ location: string | {
1290
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1291
+ };
1292
+ } | undefined;
1293
+ assignedTo?: {
1294
+ type: "exact";
1295
+ term: string | {
1296
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1297
+ };
1298
+ } | undefined;
1299
+ updatedAt?: {
1300
+ type: "exact";
1301
+ term: string;
1302
+ } | {
1303
+ type: "range";
1304
+ gte: string;
1305
+ lte: string;
1306
+ } | undefined;
1307
+ trackingId?: {
1308
+ type: "exact";
1309
+ term: string;
1310
+ } | undefined;
1311
+ updatedAtLocation?: {
1312
+ type: "exact";
1313
+ term: string | {
1314
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1315
+ };
1316
+ } | {
1317
+ type: "within";
1318
+ location: string | {
1319
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1320
+ };
1321
+ } | undefined;
1322
+ updatedBy?: {
1323
+ type: "exact";
1324
+ term: string | {
1325
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1326
+ };
1327
+ } | undefined;
1328
+ flags?: ({
1329
+ type: "anyOf";
1330
+ terms: string[];
1331
+ } | {
1332
+ type: "not";
1333
+ term: string;
1334
+ })[] | undefined;
1335
+ eventType?: string | undefined;
1336
+ }[];
1337
+ };
1338
+ slug: string;
1339
+ columns: {
1340
+ value: {
1341
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1342
+ };
1343
+ label: TranslationConfig;
1344
+ }[];
1345
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "DownloadSimple" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
28
1346
  }, {
29
- id: string;
30
- filters: {
31
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1347
+ name: {
1348
+ id: string;
1349
+ description: string;
1350
+ defaultMessage: string;
1351
+ };
1352
+ actions: {
1353
+ type: string;
1354
+ conditionals?: import(".").JSONSchema[] | undefined;
32
1355
  }[];
1356
+ query: {
1357
+ type: "or";
1358
+ clauses: {
1359
+ status?: {
1360
+ type: "anyOf";
1361
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1362
+ } | {
1363
+ type: "exact";
1364
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1365
+ } | undefined;
1366
+ title?: string | undefined;
1367
+ data?: any;
1368
+ createdAt?: {
1369
+ type: "exact";
1370
+ term: string;
1371
+ } | {
1372
+ type: "range";
1373
+ gte: string;
1374
+ lte: string;
1375
+ } | undefined;
1376
+ createdBy?: {
1377
+ type: "exact";
1378
+ term: string | {
1379
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1380
+ };
1381
+ } | undefined;
1382
+ createdAtLocation?: {
1383
+ type: "exact";
1384
+ term: string | {
1385
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1386
+ };
1387
+ } | {
1388
+ type: "within";
1389
+ location: string | {
1390
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1391
+ };
1392
+ } | undefined;
1393
+ assignedTo?: {
1394
+ type: "exact";
1395
+ term: string | {
1396
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1397
+ };
1398
+ } | undefined;
1399
+ updatedAt?: {
1400
+ type: "exact";
1401
+ term: string;
1402
+ } | {
1403
+ type: "range";
1404
+ gte: string;
1405
+ lte: string;
1406
+ } | undefined;
1407
+ trackingId?: {
1408
+ type: "exact";
1409
+ term: string;
1410
+ } | undefined;
1411
+ updatedAtLocation?: {
1412
+ type: "exact";
1413
+ term: string | {
1414
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1415
+ };
1416
+ } | {
1417
+ type: "within";
1418
+ location: string | {
1419
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1420
+ };
1421
+ } | undefined;
1422
+ updatedBy?: {
1423
+ type: "exact";
1424
+ term: string | {
1425
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1426
+ };
1427
+ } | undefined;
1428
+ flags?: ({
1429
+ type: "anyOf";
1430
+ terms: string[];
1431
+ } | {
1432
+ type: "not";
1433
+ term: string;
1434
+ })[] | undefined;
1435
+ eventType?: string | undefined;
1436
+ }[];
1437
+ } | {
1438
+ type: "and";
1439
+ clauses: {
1440
+ status?: {
1441
+ type: "anyOf";
1442
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1443
+ } | {
1444
+ type: "exact";
1445
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1446
+ } | undefined;
1447
+ title?: string | undefined;
1448
+ data?: any;
1449
+ createdAt?: {
1450
+ type: "exact";
1451
+ term: string;
1452
+ } | {
1453
+ type: "range";
1454
+ gte: string;
1455
+ lte: string;
1456
+ } | undefined;
1457
+ createdBy?: {
1458
+ type: "exact";
1459
+ term: string | {
1460
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1461
+ };
1462
+ } | undefined;
1463
+ createdAtLocation?: {
1464
+ type: "exact";
1465
+ term: string | {
1466
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1467
+ };
1468
+ } | {
1469
+ type: "within";
1470
+ location: string | {
1471
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1472
+ };
1473
+ } | undefined;
1474
+ assignedTo?: {
1475
+ type: "exact";
1476
+ term: string | {
1477
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1478
+ };
1479
+ } | undefined;
1480
+ updatedAt?: {
1481
+ type: "exact";
1482
+ term: string;
1483
+ } | {
1484
+ type: "range";
1485
+ gte: string;
1486
+ lte: string;
1487
+ } | undefined;
1488
+ trackingId?: {
1489
+ type: "exact";
1490
+ term: string;
1491
+ } | undefined;
1492
+ updatedAtLocation?: {
1493
+ type: "exact";
1494
+ term: string | {
1495
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1496
+ };
1497
+ } | {
1498
+ type: "within";
1499
+ location: string | {
1500
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1501
+ };
1502
+ } | undefined;
1503
+ updatedBy?: {
1504
+ type: "exact";
1505
+ term: string | {
1506
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1507
+ };
1508
+ } | undefined;
1509
+ flags?: ({
1510
+ type: "anyOf";
1511
+ terms: string[];
1512
+ } | {
1513
+ type: "not";
1514
+ term: string;
1515
+ })[] | undefined;
1516
+ eventType?: string | undefined;
1517
+ }[];
1518
+ };
1519
+ slug: string;
1520
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "DownloadSimple" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
1521
+ columns?: {
1522
+ value: {
1523
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1524
+ };
1525
+ label: {
1526
+ id: string;
1527
+ description: string;
1528
+ defaultMessage: string;
1529
+ };
1530
+ }[] | undefined;
33
1531
  }>;
34
1532
  export type WorkqueueConfig = z.infer<typeof WorkqueueConfig>;
35
1533
  export type WorkqueueConfigInput = z.input<typeof WorkqueueConfig>;
1534
+ export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
1535
+ name: TranslationConfig;
1536
+ actions: {
1537
+ type: string;
1538
+ conditionals?: import(".").JSONSchema[] | undefined;
1539
+ }[];
1540
+ query: {
1541
+ type: "or";
1542
+ clauses: {
1543
+ status?: {
1544
+ type: "anyOf";
1545
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1546
+ } | {
1547
+ type: "exact";
1548
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1549
+ } | undefined;
1550
+ title?: string | undefined;
1551
+ data?: any;
1552
+ createdAt?: {
1553
+ type: "exact";
1554
+ term: string;
1555
+ } | {
1556
+ type: "range";
1557
+ gte: string;
1558
+ lte: string;
1559
+ } | undefined;
1560
+ createdBy?: {
1561
+ type: "exact";
1562
+ term: string | {
1563
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1564
+ };
1565
+ } | undefined;
1566
+ createdAtLocation?: {
1567
+ type: "exact";
1568
+ term: string | {
1569
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1570
+ };
1571
+ } | {
1572
+ type: "within";
1573
+ location: string | {
1574
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1575
+ };
1576
+ } | undefined;
1577
+ assignedTo?: {
1578
+ type: "exact";
1579
+ term: string | {
1580
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1581
+ };
1582
+ } | undefined;
1583
+ updatedAt?: {
1584
+ type: "exact";
1585
+ term: string;
1586
+ } | {
1587
+ type: "range";
1588
+ gte: string;
1589
+ lte: string;
1590
+ } | undefined;
1591
+ trackingId?: {
1592
+ type: "exact";
1593
+ term: string;
1594
+ } | undefined;
1595
+ updatedAtLocation?: {
1596
+ type: "exact";
1597
+ term: string | {
1598
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1599
+ };
1600
+ } | {
1601
+ type: "within";
1602
+ location: string | {
1603
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1604
+ };
1605
+ } | undefined;
1606
+ updatedBy?: {
1607
+ type: "exact";
1608
+ term: string | {
1609
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1610
+ };
1611
+ } | undefined;
1612
+ flags?: ({
1613
+ type: "anyOf";
1614
+ terms: string[];
1615
+ } | {
1616
+ type: "not";
1617
+ term: string;
1618
+ })[] | undefined;
1619
+ eventType?: string | undefined;
1620
+ }[];
1621
+ } | {
1622
+ type: "and";
1623
+ clauses: {
1624
+ status?: {
1625
+ type: "anyOf";
1626
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1627
+ } | {
1628
+ type: "exact";
1629
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1630
+ } | undefined;
1631
+ title?: string | undefined;
1632
+ data?: any;
1633
+ createdAt?: {
1634
+ type: "exact";
1635
+ term: string;
1636
+ } | {
1637
+ type: "range";
1638
+ gte: string;
1639
+ lte: string;
1640
+ } | undefined;
1641
+ createdBy?: {
1642
+ type: "exact";
1643
+ term: string | {
1644
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1645
+ };
1646
+ } | undefined;
1647
+ createdAtLocation?: {
1648
+ type: "exact";
1649
+ term: string | {
1650
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1651
+ };
1652
+ } | {
1653
+ type: "within";
1654
+ location: string | {
1655
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1656
+ };
1657
+ } | undefined;
1658
+ assignedTo?: {
1659
+ type: "exact";
1660
+ term: string | {
1661
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1662
+ };
1663
+ } | undefined;
1664
+ updatedAt?: {
1665
+ type: "exact";
1666
+ term: string;
1667
+ } | {
1668
+ type: "range";
1669
+ gte: string;
1670
+ lte: string;
1671
+ } | undefined;
1672
+ trackingId?: {
1673
+ type: "exact";
1674
+ term: string;
1675
+ } | undefined;
1676
+ updatedAtLocation?: {
1677
+ type: "exact";
1678
+ term: string | {
1679
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1680
+ };
1681
+ } | {
1682
+ type: "within";
1683
+ location: string | {
1684
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1685
+ };
1686
+ } | undefined;
1687
+ updatedBy?: {
1688
+ type: "exact";
1689
+ term: string | {
1690
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1691
+ };
1692
+ } | undefined;
1693
+ flags?: ({
1694
+ type: "anyOf";
1695
+ terms: string[];
1696
+ } | {
1697
+ type: "not";
1698
+ term: string;
1699
+ })[] | undefined;
1700
+ eventType?: string | undefined;
1701
+ }[];
1702
+ };
1703
+ slug: string;
1704
+ columns: {
1705
+ value: {
1706
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1707
+ };
1708
+ label: TranslationConfig;
1709
+ }[];
1710
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "DownloadSimple" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
1711
+ }[];
1712
+ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
1713
+ slug: z.ZodString;
1714
+ query: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1715
+ type: z.ZodLiteral<"or">;
1716
+ clauses: z.ZodArray<z.ZodObject<{
1717
+ title: z.ZodOptional<z.ZodString>;
1718
+ eventType: z.ZodOptional<z.ZodString>;
1719
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1720
+ type: z.ZodLiteral<"anyOf">;
1721
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1722
+ }, "strip", z.ZodTypeAny, {
1723
+ type: "anyOf";
1724
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1725
+ }, {
1726
+ type: "anyOf";
1727
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1728
+ }>, z.ZodObject<{
1729
+ type: z.ZodLiteral<"exact">;
1730
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1731
+ }, "strip", z.ZodTypeAny, {
1732
+ type: "exact";
1733
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1734
+ }, {
1735
+ type: "exact";
1736
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1737
+ }>]>>>;
1738
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1739
+ type: z.ZodLiteral<"exact">;
1740
+ term: z.ZodString;
1741
+ }, "strip", z.ZodTypeAny, {
1742
+ type: "exact";
1743
+ term: string;
1744
+ }, {
1745
+ type: "exact";
1746
+ term: string;
1747
+ }>, z.ZodObject<{
1748
+ type: z.ZodLiteral<"range">;
1749
+ gte: z.ZodString;
1750
+ lte: z.ZodString;
1751
+ }, "strip", z.ZodTypeAny, {
1752
+ type: "range";
1753
+ gte: string;
1754
+ lte: string;
1755
+ }, {
1756
+ type: "range";
1757
+ gte: string;
1758
+ lte: string;
1759
+ }>]>>>;
1760
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1761
+ type: z.ZodLiteral<"exact">;
1762
+ term: z.ZodString;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ type: "exact";
1765
+ term: string;
1766
+ }, {
1767
+ type: "exact";
1768
+ term: string;
1769
+ }>, z.ZodObject<{
1770
+ type: z.ZodLiteral<"range">;
1771
+ gte: z.ZodString;
1772
+ lte: z.ZodString;
1773
+ }, "strip", z.ZodTypeAny, {
1774
+ type: "range";
1775
+ gte: string;
1776
+ lte: string;
1777
+ }, {
1778
+ type: "range";
1779
+ gte: string;
1780
+ lte: string;
1781
+ }>]>>>;
1782
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1783
+ type: z.ZodLiteral<"within">;
1784
+ location: z.ZodString;
1785
+ }, "strip", z.ZodTypeAny, {
1786
+ type: "within";
1787
+ location: string;
1788
+ }, {
1789
+ type: "within";
1790
+ location: string;
1791
+ }>, z.ZodObject<{
1792
+ type: z.ZodLiteral<"exact">;
1793
+ term: z.ZodString;
1794
+ }, "strip", z.ZodTypeAny, {
1795
+ type: "exact";
1796
+ term: string;
1797
+ }, {
1798
+ type: "exact";
1799
+ term: string;
1800
+ }>]>>>;
1801
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1802
+ type: z.ZodLiteral<"within">;
1803
+ location: z.ZodString;
1804
+ }, "strip", z.ZodTypeAny, {
1805
+ type: "within";
1806
+ location: string;
1807
+ }, {
1808
+ type: "within";
1809
+ location: string;
1810
+ }>, z.ZodObject<{
1811
+ type: z.ZodLiteral<"exact">;
1812
+ term: z.ZodString;
1813
+ }, "strip", z.ZodTypeAny, {
1814
+ type: "exact";
1815
+ term: string;
1816
+ }, {
1817
+ type: "exact";
1818
+ term: string;
1819
+ }>]>>>;
1820
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1821
+ type: z.ZodLiteral<"exact">;
1822
+ term: z.ZodString;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ type: "exact";
1825
+ term: string;
1826
+ }, {
1827
+ type: "exact";
1828
+ term: string;
1829
+ }>>>;
1830
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1831
+ type: z.ZodLiteral<"exact">;
1832
+ term: z.ZodString;
1833
+ }, "strip", z.ZodTypeAny, {
1834
+ type: "exact";
1835
+ term: string;
1836
+ }, {
1837
+ type: "exact";
1838
+ term: string;
1839
+ }>>>;
1840
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1841
+ type: z.ZodLiteral<"exact">;
1842
+ term: z.ZodString;
1843
+ }, "strip", z.ZodTypeAny, {
1844
+ type: "exact";
1845
+ term: string;
1846
+ }, {
1847
+ type: "exact";
1848
+ term: string;
1849
+ }>>>;
1850
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1851
+ type: z.ZodLiteral<"exact">;
1852
+ term: z.ZodString;
1853
+ }, "strip", z.ZodTypeAny, {
1854
+ type: "exact";
1855
+ term: string;
1856
+ }, {
1857
+ type: "exact";
1858
+ term: string;
1859
+ }>>>;
1860
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1861
+ type: z.ZodLiteral<"anyOf">;
1862
+ terms: z.ZodArray<z.ZodString, "many">;
1863
+ }, "strip", z.ZodTypeAny, {
1864
+ type: "anyOf";
1865
+ terms: string[];
1866
+ }, {
1867
+ type: "anyOf";
1868
+ terms: string[];
1869
+ }>, z.ZodObject<{
1870
+ type: z.ZodLiteral<"not">;
1871
+ term: z.ZodString;
1872
+ }, "strip", z.ZodTypeAny, {
1873
+ type: "not";
1874
+ term: string;
1875
+ }, {
1876
+ type: "not";
1877
+ term: string;
1878
+ }>]>, "many">>>;
1879
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1880
+ }, "strip", z.ZodTypeAny, {
1881
+ status?: {
1882
+ type: "anyOf";
1883
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1884
+ } | {
1885
+ type: "exact";
1886
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1887
+ } | undefined;
1888
+ title?: string | undefined;
1889
+ data?: any;
1890
+ createdAt?: {
1891
+ type: "exact";
1892
+ term: string;
1893
+ } | {
1894
+ type: "range";
1895
+ gte: string;
1896
+ lte: string;
1897
+ } | undefined;
1898
+ createdBy?: {
1899
+ type: "exact";
1900
+ term: string;
1901
+ } | undefined;
1902
+ createdAtLocation?: {
1903
+ type: "exact";
1904
+ term: string;
1905
+ } | {
1906
+ type: "within";
1907
+ location: string;
1908
+ } | undefined;
1909
+ assignedTo?: {
1910
+ type: "exact";
1911
+ term: string;
1912
+ } | undefined;
1913
+ updatedAt?: {
1914
+ type: "exact";
1915
+ term: string;
1916
+ } | {
1917
+ type: "range";
1918
+ gte: string;
1919
+ lte: string;
1920
+ } | undefined;
1921
+ trackingId?: {
1922
+ type: "exact";
1923
+ term: string;
1924
+ } | undefined;
1925
+ updatedAtLocation?: {
1926
+ type: "exact";
1927
+ term: string;
1928
+ } | {
1929
+ type: "within";
1930
+ location: string;
1931
+ } | undefined;
1932
+ updatedBy?: {
1933
+ type: "exact";
1934
+ term: string;
1935
+ } | undefined;
1936
+ flags?: ({
1937
+ type: "anyOf";
1938
+ terms: string[];
1939
+ } | {
1940
+ type: "not";
1941
+ term: string;
1942
+ })[] | undefined;
1943
+ eventType?: string | undefined;
1944
+ }, {
1945
+ status?: {
1946
+ type: "anyOf";
1947
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1948
+ } | {
1949
+ type: "exact";
1950
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1951
+ } | undefined;
1952
+ title?: string | undefined;
1953
+ data?: any;
1954
+ createdAt?: {
1955
+ type: "exact";
1956
+ term: string;
1957
+ } | {
1958
+ type: "range";
1959
+ gte: string;
1960
+ lte: string;
1961
+ } | undefined;
1962
+ createdBy?: {
1963
+ type: "exact";
1964
+ term: string;
1965
+ } | undefined;
1966
+ createdAtLocation?: {
1967
+ type: "exact";
1968
+ term: string;
1969
+ } | {
1970
+ type: "within";
1971
+ location: string;
1972
+ } | undefined;
1973
+ assignedTo?: {
1974
+ type: "exact";
1975
+ term: string;
1976
+ } | undefined;
1977
+ updatedAt?: {
1978
+ type: "exact";
1979
+ term: string;
1980
+ } | {
1981
+ type: "range";
1982
+ gte: string;
1983
+ lte: string;
1984
+ } | undefined;
1985
+ trackingId?: {
1986
+ type: "exact";
1987
+ term: string;
1988
+ } | undefined;
1989
+ updatedAtLocation?: {
1990
+ type: "exact";
1991
+ term: string;
1992
+ } | {
1993
+ type: "within";
1994
+ location: string;
1995
+ } | undefined;
1996
+ updatedBy?: {
1997
+ type: "exact";
1998
+ term: string;
1999
+ } | undefined;
2000
+ flags?: ({
2001
+ type: "anyOf";
2002
+ terms: string[];
2003
+ } | {
2004
+ type: "not";
2005
+ term: string;
2006
+ })[] | undefined;
2007
+ eventType?: string | undefined;
2008
+ }>, "many">;
2009
+ }, "strip", z.ZodTypeAny, {
2010
+ type: "or";
2011
+ clauses: {
2012
+ status?: {
2013
+ type: "anyOf";
2014
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2015
+ } | {
2016
+ type: "exact";
2017
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2018
+ } | undefined;
2019
+ title?: string | undefined;
2020
+ data?: any;
2021
+ createdAt?: {
2022
+ type: "exact";
2023
+ term: string;
2024
+ } | {
2025
+ type: "range";
2026
+ gte: string;
2027
+ lte: string;
2028
+ } | undefined;
2029
+ createdBy?: {
2030
+ type: "exact";
2031
+ term: string;
2032
+ } | undefined;
2033
+ createdAtLocation?: {
2034
+ type: "exact";
2035
+ term: string;
2036
+ } | {
2037
+ type: "within";
2038
+ location: string;
2039
+ } | undefined;
2040
+ assignedTo?: {
2041
+ type: "exact";
2042
+ term: string;
2043
+ } | undefined;
2044
+ updatedAt?: {
2045
+ type: "exact";
2046
+ term: string;
2047
+ } | {
2048
+ type: "range";
2049
+ gte: string;
2050
+ lte: string;
2051
+ } | undefined;
2052
+ trackingId?: {
2053
+ type: "exact";
2054
+ term: string;
2055
+ } | undefined;
2056
+ updatedAtLocation?: {
2057
+ type: "exact";
2058
+ term: string;
2059
+ } | {
2060
+ type: "within";
2061
+ location: string;
2062
+ } | undefined;
2063
+ updatedBy?: {
2064
+ type: "exact";
2065
+ term: string;
2066
+ } | undefined;
2067
+ flags?: ({
2068
+ type: "anyOf";
2069
+ terms: string[];
2070
+ } | {
2071
+ type: "not";
2072
+ term: string;
2073
+ })[] | undefined;
2074
+ eventType?: string | undefined;
2075
+ }[];
2076
+ }, {
2077
+ type: "or";
2078
+ clauses: {
2079
+ status?: {
2080
+ type: "anyOf";
2081
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2082
+ } | {
2083
+ type: "exact";
2084
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2085
+ } | undefined;
2086
+ title?: string | undefined;
2087
+ data?: any;
2088
+ createdAt?: {
2089
+ type: "exact";
2090
+ term: string;
2091
+ } | {
2092
+ type: "range";
2093
+ gte: string;
2094
+ lte: string;
2095
+ } | undefined;
2096
+ createdBy?: {
2097
+ type: "exact";
2098
+ term: string;
2099
+ } | undefined;
2100
+ createdAtLocation?: {
2101
+ type: "exact";
2102
+ term: string;
2103
+ } | {
2104
+ type: "within";
2105
+ location: string;
2106
+ } | undefined;
2107
+ assignedTo?: {
2108
+ type: "exact";
2109
+ term: string;
2110
+ } | undefined;
2111
+ updatedAt?: {
2112
+ type: "exact";
2113
+ term: string;
2114
+ } | {
2115
+ type: "range";
2116
+ gte: string;
2117
+ lte: string;
2118
+ } | undefined;
2119
+ trackingId?: {
2120
+ type: "exact";
2121
+ term: string;
2122
+ } | undefined;
2123
+ updatedAtLocation?: {
2124
+ type: "exact";
2125
+ term: string;
2126
+ } | {
2127
+ type: "within";
2128
+ location: string;
2129
+ } | undefined;
2130
+ updatedBy?: {
2131
+ type: "exact";
2132
+ term: string;
2133
+ } | undefined;
2134
+ flags?: ({
2135
+ type: "anyOf";
2136
+ terms: string[];
2137
+ } | {
2138
+ type: "not";
2139
+ term: string;
2140
+ })[] | undefined;
2141
+ eventType?: string | undefined;
2142
+ }[];
2143
+ }>, z.ZodObject<{
2144
+ type: z.ZodLiteral<"and">;
2145
+ clauses: z.ZodArray<z.ZodObject<{
2146
+ title: z.ZodOptional<z.ZodString>;
2147
+ eventType: z.ZodOptional<z.ZodString>;
2148
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2149
+ type: z.ZodLiteral<"anyOf">;
2150
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
2151
+ }, "strip", z.ZodTypeAny, {
2152
+ type: "anyOf";
2153
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2154
+ }, {
2155
+ type: "anyOf";
2156
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2157
+ }>, z.ZodObject<{
2158
+ type: z.ZodLiteral<"exact">;
2159
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
2160
+ }, "strip", z.ZodTypeAny, {
2161
+ type: "exact";
2162
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2163
+ }, {
2164
+ type: "exact";
2165
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2166
+ }>]>>>;
2167
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2168
+ type: z.ZodLiteral<"exact">;
2169
+ term: z.ZodString;
2170
+ }, "strip", z.ZodTypeAny, {
2171
+ type: "exact";
2172
+ term: string;
2173
+ }, {
2174
+ type: "exact";
2175
+ term: string;
2176
+ }>, z.ZodObject<{
2177
+ type: z.ZodLiteral<"range">;
2178
+ gte: z.ZodString;
2179
+ lte: z.ZodString;
2180
+ }, "strip", z.ZodTypeAny, {
2181
+ type: "range";
2182
+ gte: string;
2183
+ lte: string;
2184
+ }, {
2185
+ type: "range";
2186
+ gte: string;
2187
+ lte: string;
2188
+ }>]>>>;
2189
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2190
+ type: z.ZodLiteral<"exact">;
2191
+ term: z.ZodString;
2192
+ }, "strip", z.ZodTypeAny, {
2193
+ type: "exact";
2194
+ term: string;
2195
+ }, {
2196
+ type: "exact";
2197
+ term: string;
2198
+ }>, z.ZodObject<{
2199
+ type: z.ZodLiteral<"range">;
2200
+ gte: z.ZodString;
2201
+ lte: z.ZodString;
2202
+ }, "strip", z.ZodTypeAny, {
2203
+ type: "range";
2204
+ gte: string;
2205
+ lte: string;
2206
+ }, {
2207
+ type: "range";
2208
+ gte: string;
2209
+ lte: string;
2210
+ }>]>>>;
2211
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2212
+ type: z.ZodLiteral<"within">;
2213
+ location: z.ZodString;
2214
+ }, "strip", z.ZodTypeAny, {
2215
+ type: "within";
2216
+ location: string;
2217
+ }, {
2218
+ type: "within";
2219
+ location: string;
2220
+ }>, z.ZodObject<{
2221
+ type: z.ZodLiteral<"exact">;
2222
+ term: z.ZodString;
2223
+ }, "strip", z.ZodTypeAny, {
2224
+ type: "exact";
2225
+ term: string;
2226
+ }, {
2227
+ type: "exact";
2228
+ term: string;
2229
+ }>]>>>;
2230
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2231
+ type: z.ZodLiteral<"within">;
2232
+ location: z.ZodString;
2233
+ }, "strip", z.ZodTypeAny, {
2234
+ type: "within";
2235
+ location: string;
2236
+ }, {
2237
+ type: "within";
2238
+ location: string;
2239
+ }>, z.ZodObject<{
2240
+ type: z.ZodLiteral<"exact">;
2241
+ term: z.ZodString;
2242
+ }, "strip", z.ZodTypeAny, {
2243
+ type: "exact";
2244
+ term: string;
2245
+ }, {
2246
+ type: "exact";
2247
+ term: string;
2248
+ }>]>>>;
2249
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2250
+ type: z.ZodLiteral<"exact">;
2251
+ term: z.ZodString;
2252
+ }, "strip", z.ZodTypeAny, {
2253
+ type: "exact";
2254
+ term: string;
2255
+ }, {
2256
+ type: "exact";
2257
+ term: string;
2258
+ }>>>;
2259
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2260
+ type: z.ZodLiteral<"exact">;
2261
+ term: z.ZodString;
2262
+ }, "strip", z.ZodTypeAny, {
2263
+ type: "exact";
2264
+ term: string;
2265
+ }, {
2266
+ type: "exact";
2267
+ term: string;
2268
+ }>>>;
2269
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2270
+ type: z.ZodLiteral<"exact">;
2271
+ term: z.ZodString;
2272
+ }, "strip", z.ZodTypeAny, {
2273
+ type: "exact";
2274
+ term: string;
2275
+ }, {
2276
+ type: "exact";
2277
+ term: string;
2278
+ }>>>;
2279
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2280
+ type: z.ZodLiteral<"exact">;
2281
+ term: z.ZodString;
2282
+ }, "strip", z.ZodTypeAny, {
2283
+ type: "exact";
2284
+ term: string;
2285
+ }, {
2286
+ type: "exact";
2287
+ term: string;
2288
+ }>>>;
2289
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
2290
+ type: z.ZodLiteral<"anyOf">;
2291
+ terms: z.ZodArray<z.ZodString, "many">;
2292
+ }, "strip", z.ZodTypeAny, {
2293
+ type: "anyOf";
2294
+ terms: string[];
2295
+ }, {
2296
+ type: "anyOf";
2297
+ terms: string[];
2298
+ }>, z.ZodObject<{
2299
+ type: z.ZodLiteral<"not">;
2300
+ term: z.ZodString;
2301
+ }, "strip", z.ZodTypeAny, {
2302
+ type: "not";
2303
+ term: string;
2304
+ }, {
2305
+ type: "not";
2306
+ term: string;
2307
+ }>]>, "many">>>;
2308
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
2309
+ }, "strip", z.ZodTypeAny, {
2310
+ status?: {
2311
+ type: "anyOf";
2312
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2313
+ } | {
2314
+ type: "exact";
2315
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2316
+ } | undefined;
2317
+ title?: string | undefined;
2318
+ data?: any;
2319
+ createdAt?: {
2320
+ type: "exact";
2321
+ term: string;
2322
+ } | {
2323
+ type: "range";
2324
+ gte: string;
2325
+ lte: string;
2326
+ } | undefined;
2327
+ createdBy?: {
2328
+ type: "exact";
2329
+ term: string;
2330
+ } | undefined;
2331
+ createdAtLocation?: {
2332
+ type: "exact";
2333
+ term: string;
2334
+ } | {
2335
+ type: "within";
2336
+ location: string;
2337
+ } | undefined;
2338
+ assignedTo?: {
2339
+ type: "exact";
2340
+ term: string;
2341
+ } | undefined;
2342
+ updatedAt?: {
2343
+ type: "exact";
2344
+ term: string;
2345
+ } | {
2346
+ type: "range";
2347
+ gte: string;
2348
+ lte: string;
2349
+ } | undefined;
2350
+ trackingId?: {
2351
+ type: "exact";
2352
+ term: string;
2353
+ } | undefined;
2354
+ updatedAtLocation?: {
2355
+ type: "exact";
2356
+ term: string;
2357
+ } | {
2358
+ type: "within";
2359
+ location: string;
2360
+ } | undefined;
2361
+ updatedBy?: {
2362
+ type: "exact";
2363
+ term: string;
2364
+ } | undefined;
2365
+ flags?: ({
2366
+ type: "anyOf";
2367
+ terms: string[];
2368
+ } | {
2369
+ type: "not";
2370
+ term: string;
2371
+ })[] | undefined;
2372
+ eventType?: string | undefined;
2373
+ }, {
2374
+ status?: {
2375
+ type: "anyOf";
2376
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2377
+ } | {
2378
+ type: "exact";
2379
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2380
+ } | undefined;
2381
+ title?: string | undefined;
2382
+ data?: any;
2383
+ createdAt?: {
2384
+ type: "exact";
2385
+ term: string;
2386
+ } | {
2387
+ type: "range";
2388
+ gte: string;
2389
+ lte: string;
2390
+ } | undefined;
2391
+ createdBy?: {
2392
+ type: "exact";
2393
+ term: string;
2394
+ } | undefined;
2395
+ createdAtLocation?: {
2396
+ type: "exact";
2397
+ term: string;
2398
+ } | {
2399
+ type: "within";
2400
+ location: string;
2401
+ } | undefined;
2402
+ assignedTo?: {
2403
+ type: "exact";
2404
+ term: string;
2405
+ } | undefined;
2406
+ updatedAt?: {
2407
+ type: "exact";
2408
+ term: string;
2409
+ } | {
2410
+ type: "range";
2411
+ gte: string;
2412
+ lte: string;
2413
+ } | undefined;
2414
+ trackingId?: {
2415
+ type: "exact";
2416
+ term: string;
2417
+ } | undefined;
2418
+ updatedAtLocation?: {
2419
+ type: "exact";
2420
+ term: string;
2421
+ } | {
2422
+ type: "within";
2423
+ location: string;
2424
+ } | undefined;
2425
+ updatedBy?: {
2426
+ type: "exact";
2427
+ term: string;
2428
+ } | undefined;
2429
+ flags?: ({
2430
+ type: "anyOf";
2431
+ terms: string[];
2432
+ } | {
2433
+ type: "not";
2434
+ term: string;
2435
+ })[] | undefined;
2436
+ eventType?: string | undefined;
2437
+ }>, "many">;
2438
+ }, "strip", z.ZodTypeAny, {
2439
+ type: "and";
2440
+ clauses: {
2441
+ status?: {
2442
+ type: "anyOf";
2443
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2444
+ } | {
2445
+ type: "exact";
2446
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2447
+ } | undefined;
2448
+ title?: string | undefined;
2449
+ data?: any;
2450
+ createdAt?: {
2451
+ type: "exact";
2452
+ term: string;
2453
+ } | {
2454
+ type: "range";
2455
+ gte: string;
2456
+ lte: string;
2457
+ } | undefined;
2458
+ createdBy?: {
2459
+ type: "exact";
2460
+ term: string;
2461
+ } | undefined;
2462
+ createdAtLocation?: {
2463
+ type: "exact";
2464
+ term: string;
2465
+ } | {
2466
+ type: "within";
2467
+ location: string;
2468
+ } | undefined;
2469
+ assignedTo?: {
2470
+ type: "exact";
2471
+ term: string;
2472
+ } | undefined;
2473
+ updatedAt?: {
2474
+ type: "exact";
2475
+ term: string;
2476
+ } | {
2477
+ type: "range";
2478
+ gte: string;
2479
+ lte: string;
2480
+ } | undefined;
2481
+ trackingId?: {
2482
+ type: "exact";
2483
+ term: string;
2484
+ } | undefined;
2485
+ updatedAtLocation?: {
2486
+ type: "exact";
2487
+ term: string;
2488
+ } | {
2489
+ type: "within";
2490
+ location: string;
2491
+ } | undefined;
2492
+ updatedBy?: {
2493
+ type: "exact";
2494
+ term: string;
2495
+ } | undefined;
2496
+ flags?: ({
2497
+ type: "anyOf";
2498
+ terms: string[];
2499
+ } | {
2500
+ type: "not";
2501
+ term: string;
2502
+ })[] | undefined;
2503
+ eventType?: string | undefined;
2504
+ }[];
2505
+ }, {
2506
+ type: "and";
2507
+ clauses: {
2508
+ status?: {
2509
+ type: "anyOf";
2510
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2511
+ } | {
2512
+ type: "exact";
2513
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2514
+ } | undefined;
2515
+ title?: string | undefined;
2516
+ data?: any;
2517
+ createdAt?: {
2518
+ type: "exact";
2519
+ term: string;
2520
+ } | {
2521
+ type: "range";
2522
+ gte: string;
2523
+ lte: string;
2524
+ } | undefined;
2525
+ createdBy?: {
2526
+ type: "exact";
2527
+ term: string;
2528
+ } | undefined;
2529
+ createdAtLocation?: {
2530
+ type: "exact";
2531
+ term: string;
2532
+ } | {
2533
+ type: "within";
2534
+ location: string;
2535
+ } | undefined;
2536
+ assignedTo?: {
2537
+ type: "exact";
2538
+ term: string;
2539
+ } | undefined;
2540
+ updatedAt?: {
2541
+ type: "exact";
2542
+ term: string;
2543
+ } | {
2544
+ type: "range";
2545
+ gte: string;
2546
+ lte: string;
2547
+ } | undefined;
2548
+ trackingId?: {
2549
+ type: "exact";
2550
+ term: string;
2551
+ } | undefined;
2552
+ updatedAtLocation?: {
2553
+ type: "exact";
2554
+ term: string;
2555
+ } | {
2556
+ type: "within";
2557
+ location: string;
2558
+ } | undefined;
2559
+ updatedBy?: {
2560
+ type: "exact";
2561
+ term: string;
2562
+ } | undefined;
2563
+ flags?: ({
2564
+ type: "anyOf";
2565
+ terms: string[];
2566
+ } | {
2567
+ type: "not";
2568
+ term: string;
2569
+ })[] | undefined;
2570
+ eventType?: string | undefined;
2571
+ }[];
2572
+ }>]>;
2573
+ }, "strip", z.ZodTypeAny, {
2574
+ query: {
2575
+ type: "or";
2576
+ clauses: {
2577
+ status?: {
2578
+ type: "anyOf";
2579
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2580
+ } | {
2581
+ type: "exact";
2582
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2583
+ } | undefined;
2584
+ title?: string | undefined;
2585
+ data?: any;
2586
+ createdAt?: {
2587
+ type: "exact";
2588
+ term: string;
2589
+ } | {
2590
+ type: "range";
2591
+ gte: string;
2592
+ lte: string;
2593
+ } | undefined;
2594
+ createdBy?: {
2595
+ type: "exact";
2596
+ term: string;
2597
+ } | undefined;
2598
+ createdAtLocation?: {
2599
+ type: "exact";
2600
+ term: string;
2601
+ } | {
2602
+ type: "within";
2603
+ location: string;
2604
+ } | undefined;
2605
+ assignedTo?: {
2606
+ type: "exact";
2607
+ term: string;
2608
+ } | undefined;
2609
+ updatedAt?: {
2610
+ type: "exact";
2611
+ term: string;
2612
+ } | {
2613
+ type: "range";
2614
+ gte: string;
2615
+ lte: string;
2616
+ } | undefined;
2617
+ trackingId?: {
2618
+ type: "exact";
2619
+ term: string;
2620
+ } | undefined;
2621
+ updatedAtLocation?: {
2622
+ type: "exact";
2623
+ term: string;
2624
+ } | {
2625
+ type: "within";
2626
+ location: string;
2627
+ } | undefined;
2628
+ updatedBy?: {
2629
+ type: "exact";
2630
+ term: string;
2631
+ } | undefined;
2632
+ flags?: ({
2633
+ type: "anyOf";
2634
+ terms: string[];
2635
+ } | {
2636
+ type: "not";
2637
+ term: string;
2638
+ })[] | undefined;
2639
+ eventType?: string | undefined;
2640
+ }[];
2641
+ } | {
2642
+ type: "and";
2643
+ clauses: {
2644
+ status?: {
2645
+ type: "anyOf";
2646
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2647
+ } | {
2648
+ type: "exact";
2649
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2650
+ } | undefined;
2651
+ title?: string | undefined;
2652
+ data?: any;
2653
+ createdAt?: {
2654
+ type: "exact";
2655
+ term: string;
2656
+ } | {
2657
+ type: "range";
2658
+ gte: string;
2659
+ lte: string;
2660
+ } | undefined;
2661
+ createdBy?: {
2662
+ type: "exact";
2663
+ term: string;
2664
+ } | undefined;
2665
+ createdAtLocation?: {
2666
+ type: "exact";
2667
+ term: string;
2668
+ } | {
2669
+ type: "within";
2670
+ location: string;
2671
+ } | undefined;
2672
+ assignedTo?: {
2673
+ type: "exact";
2674
+ term: string;
2675
+ } | undefined;
2676
+ updatedAt?: {
2677
+ type: "exact";
2678
+ term: string;
2679
+ } | {
2680
+ type: "range";
2681
+ gte: string;
2682
+ lte: string;
2683
+ } | undefined;
2684
+ trackingId?: {
2685
+ type: "exact";
2686
+ term: string;
2687
+ } | undefined;
2688
+ updatedAtLocation?: {
2689
+ type: "exact";
2690
+ term: string;
2691
+ } | {
2692
+ type: "within";
2693
+ location: string;
2694
+ } | undefined;
2695
+ updatedBy?: {
2696
+ type: "exact";
2697
+ term: string;
2698
+ } | undefined;
2699
+ flags?: ({
2700
+ type: "anyOf";
2701
+ terms: string[];
2702
+ } | {
2703
+ type: "not";
2704
+ term: string;
2705
+ })[] | undefined;
2706
+ eventType?: string | undefined;
2707
+ }[];
2708
+ };
2709
+ slug: string;
2710
+ }, {
2711
+ query: {
2712
+ type: "or";
2713
+ clauses: {
2714
+ status?: {
2715
+ type: "anyOf";
2716
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2717
+ } | {
2718
+ type: "exact";
2719
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2720
+ } | undefined;
2721
+ title?: string | undefined;
2722
+ data?: any;
2723
+ createdAt?: {
2724
+ type: "exact";
2725
+ term: string;
2726
+ } | {
2727
+ type: "range";
2728
+ gte: string;
2729
+ lte: string;
2730
+ } | undefined;
2731
+ createdBy?: {
2732
+ type: "exact";
2733
+ term: string;
2734
+ } | undefined;
2735
+ createdAtLocation?: {
2736
+ type: "exact";
2737
+ term: string;
2738
+ } | {
2739
+ type: "within";
2740
+ location: string;
2741
+ } | undefined;
2742
+ assignedTo?: {
2743
+ type: "exact";
2744
+ term: string;
2745
+ } | undefined;
2746
+ updatedAt?: {
2747
+ type: "exact";
2748
+ term: string;
2749
+ } | {
2750
+ type: "range";
2751
+ gte: string;
2752
+ lte: string;
2753
+ } | undefined;
2754
+ trackingId?: {
2755
+ type: "exact";
2756
+ term: string;
2757
+ } | undefined;
2758
+ updatedAtLocation?: {
2759
+ type: "exact";
2760
+ term: string;
2761
+ } | {
2762
+ type: "within";
2763
+ location: string;
2764
+ } | undefined;
2765
+ updatedBy?: {
2766
+ type: "exact";
2767
+ term: string;
2768
+ } | undefined;
2769
+ flags?: ({
2770
+ type: "anyOf";
2771
+ terms: string[];
2772
+ } | {
2773
+ type: "not";
2774
+ term: string;
2775
+ })[] | undefined;
2776
+ eventType?: string | undefined;
2777
+ }[];
2778
+ } | {
2779
+ type: "and";
2780
+ clauses: {
2781
+ status?: {
2782
+ type: "anyOf";
2783
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2784
+ } | {
2785
+ type: "exact";
2786
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2787
+ } | undefined;
2788
+ title?: string | undefined;
2789
+ data?: any;
2790
+ createdAt?: {
2791
+ type: "exact";
2792
+ term: string;
2793
+ } | {
2794
+ type: "range";
2795
+ gte: string;
2796
+ lte: string;
2797
+ } | undefined;
2798
+ createdBy?: {
2799
+ type: "exact";
2800
+ term: string;
2801
+ } | undefined;
2802
+ createdAtLocation?: {
2803
+ type: "exact";
2804
+ term: string;
2805
+ } | {
2806
+ type: "within";
2807
+ location: string;
2808
+ } | undefined;
2809
+ assignedTo?: {
2810
+ type: "exact";
2811
+ term: string;
2812
+ } | undefined;
2813
+ updatedAt?: {
2814
+ type: "exact";
2815
+ term: string;
2816
+ } | {
2817
+ type: "range";
2818
+ gte: string;
2819
+ lte: string;
2820
+ } | undefined;
2821
+ trackingId?: {
2822
+ type: "exact";
2823
+ term: string;
2824
+ } | undefined;
2825
+ updatedAtLocation?: {
2826
+ type: "exact";
2827
+ term: string;
2828
+ } | {
2829
+ type: "within";
2830
+ location: string;
2831
+ } | undefined;
2832
+ updatedBy?: {
2833
+ type: "exact";
2834
+ term: string;
2835
+ } | undefined;
2836
+ flags?: ({
2837
+ type: "anyOf";
2838
+ terms: string[];
2839
+ } | {
2840
+ type: "not";
2841
+ term: string;
2842
+ })[] | undefined;
2843
+ eventType?: string | undefined;
2844
+ }[];
2845
+ };
2846
+ slug: string;
2847
+ }>, "many">;
2848
+ export type WorkqueueCountInput = z.infer<typeof WorkqueueCountInput>;
2849
+ export declare const WorkqueueCountOutput: z.ZodRecord<z.ZodString, z.ZodNumber>;
2850
+ export type WorkqueueCountOutput = z.infer<typeof WorkqueueCountOutput>;
36
2851
  //# sourceMappingURL=WorkqueueConfig.d.ts.map