@opencrvs/toolkit 1.8.0-rc.f8a9481 → 1.8.0-rc.f8be155

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 (42) hide show
  1. package/dist/commons/api/router.d.ts +13997 -988
  2. package/dist/commons/conditionals/conditionals.d.ts +14 -6
  3. package/dist/commons/conditionals/validate.d.ts +6 -0
  4. package/dist/commons/events/ActionConfig.d.ts +117418 -1729
  5. package/dist/commons/events/ActionDocument.d.ts +2270 -554
  6. package/dist/commons/events/ActionInput.d.ts +1637 -365
  7. package/dist/commons/events/ActionType.d.ts +4 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1029 -22
  9. package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +143 -39
  14. package/dist/commons/events/EventConfig.d.ts +56291 -1361
  15. package/dist/commons/events/EventDocument.d.ts +1399 -394
  16. package/dist/commons/events/EventIndex.d.ts +1589 -30
  17. package/dist/commons/events/EventMetadata.d.ts +298 -48
  18. package/dist/commons/events/FieldConfig.d.ts +5414 -1057
  19. package/dist/commons/events/FieldType.d.ts +6 -3
  20. package/dist/commons/events/FieldTypeMapping.d.ts +103 -54
  21. package/dist/commons/events/FieldValue.d.ts +49 -8
  22. package/dist/commons/events/FormConfig.d.ts +49156 -514
  23. package/dist/commons/events/PageConfig.d.ts +12206 -204
  24. package/dist/commons/events/SummaryConfig.d.ts +17 -52
  25. package/dist/commons/events/User.d.ts +31 -7
  26. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  27. package/dist/commons/events/WorkqueueConfig.d.ts +4775 -16
  28. package/dist/commons/events/defineConfig.d.ts +8981 -51
  29. package/dist/commons/events/event.d.ts +54 -0
  30. package/dist/commons/events/field.d.ts +77 -0
  31. package/dist/commons/events/index.d.ts +6 -0
  32. package/dist/commons/events/scopes.d.ts +21 -1
  33. package/dist/commons/events/serializer.d.ts +2 -0
  34. package/dist/commons/events/test.utils.d.ts +149 -79
  35. package/dist/commons/events/transactions.d.ts +1 -1
  36. package/dist/commons/events/utils.d.ts +13353 -68
  37. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  38. package/dist/conditionals/index.js +76 -36
  39. package/dist/events/index.js +3464 -1333
  40. package/dist/scopes/index.d.ts +158 -1
  41. package/dist/scopes/index.js +152 -1
  42. package/package.json +3 -2
@@ -1,5 +1,13 @@
1
1
  import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
+ export declare const mandatoryColumns: {
4
+ value: {
5
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
6
+ };
7
+ label: TranslationConfig;
8
+ }[];
9
+ export declare const WorkqueueActionsWithDefault: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN", "DEFAULT"]>;
10
+ export type WorkqueueActionsWithDefault = z.infer<typeof WorkqueueActionsWithDefault>;
3
11
  /**
4
12
  * Configuration for workqueue. Workqueues are used to display a list of events.
5
13
  */
@@ -10,29 +18,1321 @@ export declare const WorkqueueConfig: z.ZodObject<{
10
18
  description: string;
11
19
  defaultMessage: string;
12
20
  }>;
13
- /**
14
- * Placeholder untill the following gets merged to develop
15
- * https://github.com/opencrvs/opencrvs-core/blob/5fbe9854a88504a7a13fcc856b3e82594b70c38c/packages/commons/src/events/EventIndex.ts#L92-L93
16
- */
17
- query: z.ZodString;
21
+ query: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
22
+ type: z.ZodLiteral<"and">;
23
+ clauses: z.ZodArray<z.ZodObject<{
24
+ eventType: z.ZodOptional<z.ZodString>;
25
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
26
+ type: z.ZodLiteral<"anyOf">;
27
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
28
+ }, "strip", z.ZodTypeAny, {
29
+ type: "anyOf";
30
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
31
+ }, {
32
+ type: "anyOf";
33
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
34
+ }>, z.ZodObject<{
35
+ type: z.ZodLiteral<"exact">;
36
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ type: "exact";
39
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
40
+ }, {
41
+ type: "exact";
42
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
43
+ }>]>>>;
44
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
45
+ type: z.ZodLiteral<"exact">;
46
+ term: z.ZodString;
47
+ }, "strip", z.ZodTypeAny, {
48
+ type: "exact";
49
+ term: string;
50
+ }, {
51
+ type: "exact";
52
+ term: string;
53
+ }>, z.ZodObject<{
54
+ type: z.ZodLiteral<"range">;
55
+ gte: z.ZodString;
56
+ lte: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ type: "range";
59
+ gte: string;
60
+ lte: string;
61
+ }, {
62
+ type: "range";
63
+ gte: string;
64
+ lte: string;
65
+ }>]>>>;
66
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
67
+ type: z.ZodLiteral<"exact">;
68
+ term: z.ZodString;
69
+ }, "strip", z.ZodTypeAny, {
70
+ type: "exact";
71
+ term: string;
72
+ }, {
73
+ type: "exact";
74
+ term: string;
75
+ }>, z.ZodObject<{
76
+ type: z.ZodLiteral<"range">;
77
+ gte: z.ZodString;
78
+ lte: z.ZodString;
79
+ }, "strip", z.ZodTypeAny, {
80
+ type: "range";
81
+ gte: string;
82
+ lte: string;
83
+ }, {
84
+ type: "range";
85
+ gte: string;
86
+ lte: string;
87
+ }>]>>>;
88
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
89
+ type: z.ZodLiteral<"within">;
90
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
91
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
94
+ }, {
95
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
96
+ }>]>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ type: "within";
99
+ location: string | {
100
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
101
+ };
102
+ }, {
103
+ type: "within";
104
+ location: string | {
105
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
106
+ };
107
+ }>, z.ZodObject<{
108
+ type: z.ZodLiteral<"exact">;
109
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
110
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
113
+ }, {
114
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
115
+ }>]>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ type: "exact";
118
+ term: string | {
119
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
120
+ };
121
+ }, {
122
+ type: "exact";
123
+ term: string | {
124
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
125
+ };
126
+ }>]>>>;
127
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
128
+ type: z.ZodLiteral<"within">;
129
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
130
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
133
+ }, {
134
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
135
+ }>]>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ type: "within";
138
+ location: string | {
139
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
140
+ };
141
+ }, {
142
+ type: "within";
143
+ location: string | {
144
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
145
+ };
146
+ }>, z.ZodObject<{
147
+ type: z.ZodLiteral<"exact">;
148
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
149
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
152
+ }, {
153
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
154
+ }>]>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ type: "exact";
157
+ term: string | {
158
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
159
+ };
160
+ }, {
161
+ type: "exact";
162
+ term: string | {
163
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
164
+ };
165
+ }>]>>>;
166
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
167
+ type: z.ZodLiteral<"exact">;
168
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
169
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
172
+ }, {
173
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
174
+ }>]>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ type: "exact";
177
+ term: string | {
178
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
179
+ };
180
+ }, {
181
+ type: "exact";
182
+ term: string | {
183
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
184
+ };
185
+ }>>>;
186
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
187
+ type: z.ZodLiteral<"exact">;
188
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
189
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
192
+ }, {
193
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
194
+ }>]>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ type: "exact";
197
+ term: string | {
198
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
199
+ };
200
+ }, {
201
+ type: "exact";
202
+ term: string | {
203
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
204
+ };
205
+ }>>>;
206
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
207
+ type: z.ZodLiteral<"exact">;
208
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
209
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
210
+ }, "strip", z.ZodTypeAny, {
211
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
212
+ }, {
213
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
214
+ }>]>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ type: "exact";
217
+ term: string | {
218
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
219
+ };
220
+ }, {
221
+ type: "exact";
222
+ term: string | {
223
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
224
+ };
225
+ }>>>;
226
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
227
+ type: z.ZodLiteral<"exact">;
228
+ term: z.ZodString;
229
+ }, "strip", z.ZodTypeAny, {
230
+ type: "exact";
231
+ term: string;
232
+ }, {
233
+ type: "exact";
234
+ term: string;
235
+ }>>>;
236
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
237
+ type: z.ZodLiteral<"anyOf">;
238
+ terms: z.ZodArray<z.ZodString, "many">;
239
+ }, "strip", z.ZodTypeAny, {
240
+ type: "anyOf";
241
+ terms: string[];
242
+ }, {
243
+ type: "anyOf";
244
+ terms: string[];
245
+ }>, z.ZodObject<{
246
+ type: z.ZodLiteral<"not">;
247
+ term: z.ZodString;
248
+ }, "strip", z.ZodTypeAny, {
249
+ type: "not";
250
+ term: string;
251
+ }, {
252
+ type: "not";
253
+ term: string;
254
+ }>]>, "many">>>;
255
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ status?: {
258
+ type: "exact";
259
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
260
+ } | {
261
+ type: "anyOf";
262
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
263
+ } | 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: "exact";
336
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
337
+ } | {
338
+ type: "anyOf";
339
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
340
+ } | undefined;
341
+ data?: any;
342
+ createdAt?: {
343
+ type: "exact";
344
+ term: string;
345
+ } | {
346
+ type: "range";
347
+ gte: string;
348
+ lte: string;
349
+ } | undefined;
350
+ createdBy?: {
351
+ type: "exact";
352
+ term: string | {
353
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
354
+ };
355
+ } | undefined;
356
+ createdAtLocation?: {
357
+ type: "exact";
358
+ term: string | {
359
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
360
+ };
361
+ } | {
362
+ type: "within";
363
+ location: string | {
364
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
365
+ };
366
+ } | undefined;
367
+ assignedTo?: {
368
+ type: "exact";
369
+ term: string | {
370
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
371
+ };
372
+ } | undefined;
373
+ updatedAt?: {
374
+ type: "exact";
375
+ term: string;
376
+ } | {
377
+ type: "range";
378
+ gte: string;
379
+ lte: string;
380
+ } | undefined;
381
+ trackingId?: {
382
+ type: "exact";
383
+ term: string;
384
+ } | undefined;
385
+ updatedAtLocation?: {
386
+ type: "exact";
387
+ term: string | {
388
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
389
+ };
390
+ } | {
391
+ type: "within";
392
+ location: string | {
393
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
394
+ };
395
+ } | undefined;
396
+ updatedBy?: {
397
+ type: "exact";
398
+ term: string | {
399
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
400
+ };
401
+ } | undefined;
402
+ flags?: ({
403
+ type: "anyOf";
404
+ terms: string[];
405
+ } | {
406
+ type: "not";
407
+ term: string;
408
+ })[] | undefined;
409
+ eventType?: string | undefined;
410
+ }>, "many">;
411
+ }, "strip", z.ZodTypeAny, {
412
+ type: "and";
413
+ clauses: {
414
+ status?: {
415
+ type: "exact";
416
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
417
+ } | {
418
+ type: "anyOf";
419
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
420
+ } | undefined;
421
+ data?: any;
422
+ createdAt?: {
423
+ type: "exact";
424
+ term: string;
425
+ } | {
426
+ type: "range";
427
+ gte: string;
428
+ lte: string;
429
+ } | undefined;
430
+ createdBy?: {
431
+ type: "exact";
432
+ term: string | {
433
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
434
+ };
435
+ } | undefined;
436
+ createdAtLocation?: {
437
+ type: "exact";
438
+ term: string | {
439
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
440
+ };
441
+ } | {
442
+ type: "within";
443
+ location: string | {
444
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
445
+ };
446
+ } | undefined;
447
+ assignedTo?: {
448
+ type: "exact";
449
+ term: string | {
450
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
451
+ };
452
+ } | undefined;
453
+ updatedAt?: {
454
+ type: "exact";
455
+ term: string;
456
+ } | {
457
+ type: "range";
458
+ gte: string;
459
+ lte: string;
460
+ } | undefined;
461
+ trackingId?: {
462
+ type: "exact";
463
+ term: string;
464
+ } | undefined;
465
+ updatedAtLocation?: {
466
+ type: "exact";
467
+ term: string | {
468
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
469
+ };
470
+ } | {
471
+ type: "within";
472
+ location: string | {
473
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
474
+ };
475
+ } | undefined;
476
+ updatedBy?: {
477
+ type: "exact";
478
+ term: string | {
479
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
480
+ };
481
+ } | undefined;
482
+ flags?: ({
483
+ type: "anyOf";
484
+ terms: string[];
485
+ } | {
486
+ type: "not";
487
+ term: string;
488
+ })[] | undefined;
489
+ eventType?: string | undefined;
490
+ }[];
491
+ }, {
492
+ type: "and";
493
+ clauses: {
494
+ status?: {
495
+ type: "exact";
496
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
497
+ } | {
498
+ type: "anyOf";
499
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
500
+ } | undefined;
501
+ data?: any;
502
+ createdAt?: {
503
+ type: "exact";
504
+ term: string;
505
+ } | {
506
+ type: "range";
507
+ gte: string;
508
+ lte: string;
509
+ } | undefined;
510
+ createdBy?: {
511
+ type: "exact";
512
+ term: string | {
513
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
514
+ };
515
+ } | undefined;
516
+ createdAtLocation?: {
517
+ type: "exact";
518
+ term: string | {
519
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
520
+ };
521
+ } | {
522
+ type: "within";
523
+ location: string | {
524
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
525
+ };
526
+ } | undefined;
527
+ assignedTo?: {
528
+ type: "exact";
529
+ term: string | {
530
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
531
+ };
532
+ } | undefined;
533
+ updatedAt?: {
534
+ type: "exact";
535
+ term: string;
536
+ } | {
537
+ type: "range";
538
+ gte: string;
539
+ lte: string;
540
+ } | undefined;
541
+ trackingId?: {
542
+ type: "exact";
543
+ term: string;
544
+ } | undefined;
545
+ updatedAtLocation?: {
546
+ type: "exact";
547
+ term: string | {
548
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
549
+ };
550
+ } | {
551
+ type: "within";
552
+ location: string | {
553
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
554
+ };
555
+ } | undefined;
556
+ updatedBy?: {
557
+ type: "exact";
558
+ term: string | {
559
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
560
+ };
561
+ } | undefined;
562
+ flags?: ({
563
+ type: "anyOf";
564
+ terms: string[];
565
+ } | {
566
+ type: "not";
567
+ term: string;
568
+ })[] | undefined;
569
+ eventType?: string | undefined;
570
+ }[];
571
+ }>, z.ZodObject<{
572
+ type: z.ZodLiteral<"or">;
573
+ clauses: z.ZodArray<z.ZodObject<{
574
+ eventType: z.ZodOptional<z.ZodString>;
575
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
576
+ type: z.ZodLiteral<"anyOf">;
577
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
578
+ }, "strip", z.ZodTypeAny, {
579
+ type: "anyOf";
580
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
581
+ }, {
582
+ type: "anyOf";
583
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
584
+ }>, z.ZodObject<{
585
+ type: z.ZodLiteral<"exact">;
586
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
587
+ }, "strip", z.ZodTypeAny, {
588
+ type: "exact";
589
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
590
+ }, {
591
+ type: "exact";
592
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
593
+ }>]>>>;
594
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
595
+ type: z.ZodLiteral<"exact">;
596
+ term: z.ZodString;
597
+ }, "strip", z.ZodTypeAny, {
598
+ type: "exact";
599
+ term: string;
600
+ }, {
601
+ type: "exact";
602
+ term: string;
603
+ }>, z.ZodObject<{
604
+ type: z.ZodLiteral<"range">;
605
+ gte: z.ZodString;
606
+ lte: z.ZodString;
607
+ }, "strip", z.ZodTypeAny, {
608
+ type: "range";
609
+ gte: string;
610
+ lte: string;
611
+ }, {
612
+ type: "range";
613
+ gte: string;
614
+ lte: string;
615
+ }>]>>>;
616
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
617
+ type: z.ZodLiteral<"exact">;
618
+ term: z.ZodString;
619
+ }, "strip", z.ZodTypeAny, {
620
+ type: "exact";
621
+ term: string;
622
+ }, {
623
+ type: "exact";
624
+ term: string;
625
+ }>, z.ZodObject<{
626
+ type: z.ZodLiteral<"range">;
627
+ gte: z.ZodString;
628
+ lte: z.ZodString;
629
+ }, "strip", z.ZodTypeAny, {
630
+ type: "range";
631
+ gte: string;
632
+ lte: string;
633
+ }, {
634
+ type: "range";
635
+ gte: string;
636
+ lte: string;
637
+ }>]>>>;
638
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
639
+ type: z.ZodLiteral<"within">;
640
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
641
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
642
+ }, "strip", z.ZodTypeAny, {
643
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
644
+ }, {
645
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
646
+ }>]>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ type: "within";
649
+ location: string | {
650
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
651
+ };
652
+ }, {
653
+ type: "within";
654
+ location: string | {
655
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
656
+ };
657
+ }>, z.ZodObject<{
658
+ type: z.ZodLiteral<"exact">;
659
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
660
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
661
+ }, "strip", z.ZodTypeAny, {
662
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
663
+ }, {
664
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
665
+ }>]>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ type: "exact";
668
+ term: string | {
669
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
670
+ };
671
+ }, {
672
+ type: "exact";
673
+ term: string | {
674
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
675
+ };
676
+ }>]>>>;
677
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
678
+ type: z.ZodLiteral<"within">;
679
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
680
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
681
+ }, "strip", z.ZodTypeAny, {
682
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
683
+ }, {
684
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
685
+ }>]>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ type: "within";
688
+ location: string | {
689
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
690
+ };
691
+ }, {
692
+ type: "within";
693
+ location: string | {
694
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
695
+ };
696
+ }>, z.ZodObject<{
697
+ type: z.ZodLiteral<"exact">;
698
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
699
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
700
+ }, "strip", z.ZodTypeAny, {
701
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
702
+ }, {
703
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
704
+ }>]>;
705
+ }, "strip", z.ZodTypeAny, {
706
+ type: "exact";
707
+ term: string | {
708
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
709
+ };
710
+ }, {
711
+ type: "exact";
712
+ term: string | {
713
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
714
+ };
715
+ }>]>>>;
716
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
717
+ type: z.ZodLiteral<"exact">;
718
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
719
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
722
+ }, {
723
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
724
+ }>]>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ type: "exact";
727
+ term: string | {
728
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
729
+ };
730
+ }, {
731
+ type: "exact";
732
+ term: string | {
733
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
734
+ };
735
+ }>>>;
736
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
737
+ type: z.ZodLiteral<"exact">;
738
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
739
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
742
+ }, {
743
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
744
+ }>]>;
745
+ }, "strip", z.ZodTypeAny, {
746
+ type: "exact";
747
+ term: string | {
748
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
749
+ };
750
+ }, {
751
+ type: "exact";
752
+ term: string | {
753
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
754
+ };
755
+ }>>>;
756
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
757
+ type: z.ZodLiteral<"exact">;
758
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
759
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
762
+ }, {
763
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
764
+ }>]>;
765
+ }, "strip", z.ZodTypeAny, {
766
+ type: "exact";
767
+ term: string | {
768
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
769
+ };
770
+ }, {
771
+ type: "exact";
772
+ term: string | {
773
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
774
+ };
775
+ }>>>;
776
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
777
+ type: z.ZodLiteral<"exact">;
778
+ term: z.ZodString;
779
+ }, "strip", z.ZodTypeAny, {
780
+ type: "exact";
781
+ term: string;
782
+ }, {
783
+ type: "exact";
784
+ term: string;
785
+ }>>>;
786
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
787
+ type: z.ZodLiteral<"anyOf">;
788
+ terms: z.ZodArray<z.ZodString, "many">;
789
+ }, "strip", z.ZodTypeAny, {
790
+ type: "anyOf";
791
+ terms: string[];
792
+ }, {
793
+ type: "anyOf";
794
+ terms: string[];
795
+ }>, z.ZodObject<{
796
+ type: z.ZodLiteral<"not">;
797
+ term: z.ZodString;
798
+ }, "strip", z.ZodTypeAny, {
799
+ type: "not";
800
+ term: string;
801
+ }, {
802
+ type: "not";
803
+ term: string;
804
+ }>]>, "many">>>;
805
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
806
+ }, "strip", z.ZodTypeAny, {
807
+ status?: {
808
+ type: "exact";
809
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
810
+ } | {
811
+ type: "anyOf";
812
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
813
+ } | undefined;
814
+ data?: any;
815
+ createdAt?: {
816
+ type: "exact";
817
+ term: string;
818
+ } | {
819
+ type: "range";
820
+ gte: string;
821
+ lte: string;
822
+ } | undefined;
823
+ createdBy?: {
824
+ type: "exact";
825
+ term: string | {
826
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
827
+ };
828
+ } | undefined;
829
+ createdAtLocation?: {
830
+ type: "exact";
831
+ term: string | {
832
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
833
+ };
834
+ } | {
835
+ type: "within";
836
+ location: string | {
837
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
838
+ };
839
+ } | undefined;
840
+ assignedTo?: {
841
+ type: "exact";
842
+ term: string | {
843
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
844
+ };
845
+ } | undefined;
846
+ updatedAt?: {
847
+ type: "exact";
848
+ term: string;
849
+ } | {
850
+ type: "range";
851
+ gte: string;
852
+ lte: string;
853
+ } | undefined;
854
+ trackingId?: {
855
+ type: "exact";
856
+ term: string;
857
+ } | undefined;
858
+ updatedAtLocation?: {
859
+ type: "exact";
860
+ term: string | {
861
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
862
+ };
863
+ } | {
864
+ type: "within";
865
+ location: string | {
866
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
867
+ };
868
+ } | undefined;
869
+ updatedBy?: {
870
+ type: "exact";
871
+ term: string | {
872
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
873
+ };
874
+ } | undefined;
875
+ flags?: ({
876
+ type: "anyOf";
877
+ terms: string[];
878
+ } | {
879
+ type: "not";
880
+ term: string;
881
+ })[] | undefined;
882
+ eventType?: string | undefined;
883
+ }, {
884
+ status?: {
885
+ type: "exact";
886
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
887
+ } | {
888
+ type: "anyOf";
889
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
890
+ } | undefined;
891
+ data?: any;
892
+ createdAt?: {
893
+ type: "exact";
894
+ term: string;
895
+ } | {
896
+ type: "range";
897
+ gte: string;
898
+ lte: string;
899
+ } | undefined;
900
+ createdBy?: {
901
+ type: "exact";
902
+ term: string | {
903
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
904
+ };
905
+ } | undefined;
906
+ createdAtLocation?: {
907
+ type: "exact";
908
+ term: string | {
909
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
910
+ };
911
+ } | {
912
+ type: "within";
913
+ location: string | {
914
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
915
+ };
916
+ } | undefined;
917
+ assignedTo?: {
918
+ type: "exact";
919
+ term: string | {
920
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
921
+ };
922
+ } | undefined;
923
+ updatedAt?: {
924
+ type: "exact";
925
+ term: string;
926
+ } | {
927
+ type: "range";
928
+ gte: string;
929
+ lte: string;
930
+ } | undefined;
931
+ trackingId?: {
932
+ type: "exact";
933
+ term: string;
934
+ } | undefined;
935
+ updatedAtLocation?: {
936
+ type: "exact";
937
+ term: string | {
938
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
939
+ };
940
+ } | {
941
+ type: "within";
942
+ location: string | {
943
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
944
+ };
945
+ } | undefined;
946
+ updatedBy?: {
947
+ type: "exact";
948
+ term: string | {
949
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
950
+ };
951
+ } | undefined;
952
+ flags?: ({
953
+ type: "anyOf";
954
+ terms: string[];
955
+ } | {
956
+ type: "not";
957
+ term: string;
958
+ })[] | undefined;
959
+ eventType?: string | undefined;
960
+ }>, "many">;
961
+ }, "strip", z.ZodTypeAny, {
962
+ type: "or";
963
+ clauses: {
964
+ status?: {
965
+ type: "exact";
966
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
967
+ } | {
968
+ type: "anyOf";
969
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
970
+ } | undefined;
971
+ data?: any;
972
+ createdAt?: {
973
+ type: "exact";
974
+ term: string;
975
+ } | {
976
+ type: "range";
977
+ gte: string;
978
+ lte: string;
979
+ } | undefined;
980
+ createdBy?: {
981
+ type: "exact";
982
+ term: string | {
983
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
984
+ };
985
+ } | undefined;
986
+ createdAtLocation?: {
987
+ type: "exact";
988
+ term: string | {
989
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
990
+ };
991
+ } | {
992
+ type: "within";
993
+ location: string | {
994
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
995
+ };
996
+ } | undefined;
997
+ assignedTo?: {
998
+ type: "exact";
999
+ term: string | {
1000
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1001
+ };
1002
+ } | undefined;
1003
+ updatedAt?: {
1004
+ type: "exact";
1005
+ term: string;
1006
+ } | {
1007
+ type: "range";
1008
+ gte: string;
1009
+ lte: string;
1010
+ } | undefined;
1011
+ trackingId?: {
1012
+ type: "exact";
1013
+ term: string;
1014
+ } | undefined;
1015
+ updatedAtLocation?: {
1016
+ type: "exact";
1017
+ term: string | {
1018
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1019
+ };
1020
+ } | {
1021
+ type: "within";
1022
+ location: string | {
1023
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1024
+ };
1025
+ } | undefined;
1026
+ updatedBy?: {
1027
+ type: "exact";
1028
+ term: string | {
1029
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1030
+ };
1031
+ } | undefined;
1032
+ flags?: ({
1033
+ type: "anyOf";
1034
+ terms: string[];
1035
+ } | {
1036
+ type: "not";
1037
+ term: string;
1038
+ })[] | undefined;
1039
+ eventType?: string | undefined;
1040
+ }[];
1041
+ }, {
1042
+ type: "or";
1043
+ clauses: {
1044
+ status?: {
1045
+ type: "exact";
1046
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1047
+ } | {
1048
+ type: "anyOf";
1049
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1050
+ } | undefined;
1051
+ data?: any;
1052
+ createdAt?: {
1053
+ type: "exact";
1054
+ term: string;
1055
+ } | {
1056
+ type: "range";
1057
+ gte: string;
1058
+ lte: string;
1059
+ } | undefined;
1060
+ createdBy?: {
1061
+ type: "exact";
1062
+ term: string | {
1063
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1064
+ };
1065
+ } | undefined;
1066
+ createdAtLocation?: {
1067
+ type: "exact";
1068
+ term: string | {
1069
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1070
+ };
1071
+ } | {
1072
+ type: "within";
1073
+ location: string | {
1074
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1075
+ };
1076
+ } | undefined;
1077
+ assignedTo?: {
1078
+ type: "exact";
1079
+ term: string | {
1080
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1081
+ };
1082
+ } | undefined;
1083
+ updatedAt?: {
1084
+ type: "exact";
1085
+ term: string;
1086
+ } | {
1087
+ type: "range";
1088
+ gte: string;
1089
+ lte: string;
1090
+ } | undefined;
1091
+ trackingId?: {
1092
+ type: "exact";
1093
+ term: string;
1094
+ } | undefined;
1095
+ updatedAtLocation?: {
1096
+ type: "exact";
1097
+ term: string | {
1098
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1099
+ };
1100
+ } | {
1101
+ type: "within";
1102
+ location: string | {
1103
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1104
+ };
1105
+ } | undefined;
1106
+ updatedBy?: {
1107
+ type: "exact";
1108
+ term: string | {
1109
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1110
+ };
1111
+ } | undefined;
1112
+ flags?: ({
1113
+ type: "anyOf";
1114
+ terms: string[];
1115
+ } | {
1116
+ type: "not";
1117
+ term: string;
1118
+ })[] | undefined;
1119
+ eventType?: string | undefined;
1120
+ }[];
1121
+ }>]>;
18
1122
  actions: z.ZodArray<z.ZodObject<{
19
- type: z.ZodString;
1123
+ type: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN", "DEFAULT"]>;
20
1124
  conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
21
1125
  }, "strip", z.ZodTypeAny, {
22
- type: string;
1126
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
23
1127
  conditionals?: import(".").JSONSchema[] | undefined;
24
1128
  }, {
25
- type: string;
1129
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
26
1130
  conditionals?: import(".").JSONSchema[] | undefined;
27
1131
  }>, "many">;
1132
+ columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
1133
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1134
+ id: string;
1135
+ description: string;
1136
+ defaultMessage: string;
1137
+ }>;
1138
+ value: z.ZodObject<{
1139
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
1140
+ }, "strip", z.ZodTypeAny, {
1141
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1142
+ }, {
1143
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1144
+ }>;
1145
+ }, "strip", z.ZodTypeAny, {
1146
+ value: {
1147
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1148
+ };
1149
+ label: TranslationConfig;
1150
+ }, {
1151
+ value: {
1152
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1153
+ };
1154
+ label: {
1155
+ id: string;
1156
+ description: string;
1157
+ defaultMessage: string;
1158
+ };
1159
+ }>, "many">>;
1160
+ 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"]>;
28
1161
  }, "strip", z.ZodTypeAny, {
29
1162
  name: TranslationConfig;
30
1163
  actions: {
31
- type: string;
1164
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
32
1165
  conditionals?: import(".").JSONSchema[] | undefined;
33
1166
  }[];
34
- query: string;
1167
+ query: {
1168
+ type: "or";
1169
+ clauses: {
1170
+ status?: {
1171
+ type: "exact";
1172
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1173
+ } | {
1174
+ type: "anyOf";
1175
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1176
+ } | undefined;
1177
+ data?: any;
1178
+ createdAt?: {
1179
+ type: "exact";
1180
+ term: string;
1181
+ } | {
1182
+ type: "range";
1183
+ gte: string;
1184
+ lte: string;
1185
+ } | undefined;
1186
+ createdBy?: {
1187
+ type: "exact";
1188
+ term: string | {
1189
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1190
+ };
1191
+ } | undefined;
1192
+ createdAtLocation?: {
1193
+ type: "exact";
1194
+ term: string | {
1195
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1196
+ };
1197
+ } | {
1198
+ type: "within";
1199
+ location: string | {
1200
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1201
+ };
1202
+ } | undefined;
1203
+ assignedTo?: {
1204
+ type: "exact";
1205
+ term: string | {
1206
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1207
+ };
1208
+ } | undefined;
1209
+ updatedAt?: {
1210
+ type: "exact";
1211
+ term: string;
1212
+ } | {
1213
+ type: "range";
1214
+ gte: string;
1215
+ lte: string;
1216
+ } | undefined;
1217
+ trackingId?: {
1218
+ type: "exact";
1219
+ term: string;
1220
+ } | undefined;
1221
+ updatedAtLocation?: {
1222
+ type: "exact";
1223
+ term: string | {
1224
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1225
+ };
1226
+ } | {
1227
+ type: "within";
1228
+ location: string | {
1229
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1230
+ };
1231
+ } | undefined;
1232
+ updatedBy?: {
1233
+ type: "exact";
1234
+ term: string | {
1235
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1236
+ };
1237
+ } | undefined;
1238
+ flags?: ({
1239
+ type: "anyOf";
1240
+ terms: string[];
1241
+ } | {
1242
+ type: "not";
1243
+ term: string;
1244
+ })[] | undefined;
1245
+ eventType?: string | undefined;
1246
+ }[];
1247
+ } | {
1248
+ type: "and";
1249
+ clauses: {
1250
+ status?: {
1251
+ type: "exact";
1252
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1253
+ } | {
1254
+ type: "anyOf";
1255
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1256
+ } | undefined;
1257
+ data?: any;
1258
+ createdAt?: {
1259
+ type: "exact";
1260
+ term: string;
1261
+ } | {
1262
+ type: "range";
1263
+ gte: string;
1264
+ lte: string;
1265
+ } | undefined;
1266
+ createdBy?: {
1267
+ type: "exact";
1268
+ term: string | {
1269
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1270
+ };
1271
+ } | undefined;
1272
+ createdAtLocation?: {
1273
+ type: "exact";
1274
+ term: string | {
1275
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1276
+ };
1277
+ } | {
1278
+ type: "within";
1279
+ location: string | {
1280
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1281
+ };
1282
+ } | undefined;
1283
+ assignedTo?: {
1284
+ type: "exact";
1285
+ term: string | {
1286
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1287
+ };
1288
+ } | undefined;
1289
+ updatedAt?: {
1290
+ type: "exact";
1291
+ term: string;
1292
+ } | {
1293
+ type: "range";
1294
+ gte: string;
1295
+ lte: string;
1296
+ } | undefined;
1297
+ trackingId?: {
1298
+ type: "exact";
1299
+ term: string;
1300
+ } | undefined;
1301
+ updatedAtLocation?: {
1302
+ type: "exact";
1303
+ term: string | {
1304
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1305
+ };
1306
+ } | {
1307
+ type: "within";
1308
+ location: string | {
1309
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1310
+ };
1311
+ } | undefined;
1312
+ updatedBy?: {
1313
+ type: "exact";
1314
+ term: string | {
1315
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1316
+ };
1317
+ } | undefined;
1318
+ flags?: ({
1319
+ type: "anyOf";
1320
+ terms: string[];
1321
+ } | {
1322
+ type: "not";
1323
+ term: string;
1324
+ })[] | undefined;
1325
+ eventType?: string | undefined;
1326
+ }[];
1327
+ };
35
1328
  slug: string;
1329
+ columns: {
1330
+ value: {
1331
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1332
+ };
1333
+ label: TranslationConfig;
1334
+ }[];
1335
+ 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";
36
1336
  }, {
37
1337
  name: {
38
1338
  id: string;
@@ -40,21 +1340,3480 @@ export declare const WorkqueueConfig: z.ZodObject<{
40
1340
  defaultMessage: string;
41
1341
  };
42
1342
  actions: {
43
- type: string;
1343
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
44
1344
  conditionals?: import(".").JSONSchema[] | undefined;
45
1345
  }[];
46
- query: string;
1346
+ query: {
1347
+ type: "or";
1348
+ clauses: {
1349
+ status?: {
1350
+ type: "exact";
1351
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1352
+ } | {
1353
+ type: "anyOf";
1354
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1355
+ } | undefined;
1356
+ data?: any;
1357
+ createdAt?: {
1358
+ type: "exact";
1359
+ term: string;
1360
+ } | {
1361
+ type: "range";
1362
+ gte: string;
1363
+ lte: string;
1364
+ } | undefined;
1365
+ createdBy?: {
1366
+ type: "exact";
1367
+ term: string | {
1368
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1369
+ };
1370
+ } | undefined;
1371
+ createdAtLocation?: {
1372
+ type: "exact";
1373
+ term: string | {
1374
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1375
+ };
1376
+ } | {
1377
+ type: "within";
1378
+ location: string | {
1379
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1380
+ };
1381
+ } | undefined;
1382
+ assignedTo?: {
1383
+ type: "exact";
1384
+ term: string | {
1385
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1386
+ };
1387
+ } | undefined;
1388
+ updatedAt?: {
1389
+ type: "exact";
1390
+ term: string;
1391
+ } | {
1392
+ type: "range";
1393
+ gte: string;
1394
+ lte: string;
1395
+ } | undefined;
1396
+ trackingId?: {
1397
+ type: "exact";
1398
+ term: string;
1399
+ } | undefined;
1400
+ updatedAtLocation?: {
1401
+ type: "exact";
1402
+ term: string | {
1403
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1404
+ };
1405
+ } | {
1406
+ type: "within";
1407
+ location: string | {
1408
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1409
+ };
1410
+ } | undefined;
1411
+ updatedBy?: {
1412
+ type: "exact";
1413
+ term: string | {
1414
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1415
+ };
1416
+ } | undefined;
1417
+ flags?: ({
1418
+ type: "anyOf";
1419
+ terms: string[];
1420
+ } | {
1421
+ type: "not";
1422
+ term: string;
1423
+ })[] | undefined;
1424
+ eventType?: string | undefined;
1425
+ }[];
1426
+ } | {
1427
+ type: "and";
1428
+ clauses: {
1429
+ status?: {
1430
+ type: "exact";
1431
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1432
+ } | {
1433
+ type: "anyOf";
1434
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1435
+ } | undefined;
1436
+ data?: any;
1437
+ createdAt?: {
1438
+ type: "exact";
1439
+ term: string;
1440
+ } | {
1441
+ type: "range";
1442
+ gte: string;
1443
+ lte: string;
1444
+ } | undefined;
1445
+ createdBy?: {
1446
+ type: "exact";
1447
+ term: string | {
1448
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1449
+ };
1450
+ } | undefined;
1451
+ createdAtLocation?: {
1452
+ type: "exact";
1453
+ term: string | {
1454
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1455
+ };
1456
+ } | {
1457
+ type: "within";
1458
+ location: string | {
1459
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1460
+ };
1461
+ } | undefined;
1462
+ assignedTo?: {
1463
+ type: "exact";
1464
+ term: string | {
1465
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1466
+ };
1467
+ } | undefined;
1468
+ updatedAt?: {
1469
+ type: "exact";
1470
+ term: string;
1471
+ } | {
1472
+ type: "range";
1473
+ gte: string;
1474
+ lte: string;
1475
+ } | undefined;
1476
+ trackingId?: {
1477
+ type: "exact";
1478
+ term: string;
1479
+ } | undefined;
1480
+ updatedAtLocation?: {
1481
+ type: "exact";
1482
+ term: string | {
1483
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1484
+ };
1485
+ } | {
1486
+ type: "within";
1487
+ location: string | {
1488
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1489
+ };
1490
+ } | undefined;
1491
+ updatedBy?: {
1492
+ type: "exact";
1493
+ term: string | {
1494
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1495
+ };
1496
+ } | undefined;
1497
+ flags?: ({
1498
+ type: "anyOf";
1499
+ terms: string[];
1500
+ } | {
1501
+ type: "not";
1502
+ term: string;
1503
+ })[] | undefined;
1504
+ eventType?: string | undefined;
1505
+ }[];
1506
+ };
47
1507
  slug: string;
1508
+ 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";
1509
+ columns?: {
1510
+ value: {
1511
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1512
+ };
1513
+ label: {
1514
+ id: string;
1515
+ description: string;
1516
+ defaultMessage: string;
1517
+ };
1518
+ }[] | undefined;
1519
+ }>;
1520
+ export declare const WorkqueueConfigInput: z.ZodObject<{
1521
+ slug: z.ZodString;
1522
+ name: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1523
+ id: string;
1524
+ description: string;
1525
+ defaultMessage: string;
1526
+ }>;
1527
+ query: z.ZodUnion<[z.ZodObject<{
1528
+ eventType: z.ZodOptional<z.ZodString>;
1529
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1530
+ type: z.ZodLiteral<"anyOf">;
1531
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1532
+ }, "strip", z.ZodTypeAny, {
1533
+ type: "anyOf";
1534
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1535
+ }, {
1536
+ type: "anyOf";
1537
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1538
+ }>, z.ZodObject<{
1539
+ type: z.ZodLiteral<"exact">;
1540
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1541
+ }, "strip", z.ZodTypeAny, {
1542
+ type: "exact";
1543
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1544
+ }, {
1545
+ type: "exact";
1546
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1547
+ }>]>>>;
1548
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1549
+ type: z.ZodLiteral<"exact">;
1550
+ term: z.ZodString;
1551
+ }, "strip", z.ZodTypeAny, {
1552
+ type: "exact";
1553
+ term: string;
1554
+ }, {
1555
+ type: "exact";
1556
+ term: string;
1557
+ }>, z.ZodObject<{
1558
+ type: z.ZodLiteral<"range">;
1559
+ gte: z.ZodString;
1560
+ lte: z.ZodString;
1561
+ }, "strip", z.ZodTypeAny, {
1562
+ type: "range";
1563
+ gte: string;
1564
+ lte: string;
1565
+ }, {
1566
+ type: "range";
1567
+ gte: string;
1568
+ lte: string;
1569
+ }>]>>>;
1570
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1571
+ type: z.ZodLiteral<"exact">;
1572
+ term: z.ZodString;
1573
+ }, "strip", z.ZodTypeAny, {
1574
+ type: "exact";
1575
+ term: string;
1576
+ }, {
1577
+ type: "exact";
1578
+ term: string;
1579
+ }>, z.ZodObject<{
1580
+ type: z.ZodLiteral<"range">;
1581
+ gte: z.ZodString;
1582
+ lte: z.ZodString;
1583
+ }, "strip", z.ZodTypeAny, {
1584
+ type: "range";
1585
+ gte: string;
1586
+ lte: string;
1587
+ }, {
1588
+ type: "range";
1589
+ gte: string;
1590
+ lte: string;
1591
+ }>]>>>;
1592
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1593
+ type: z.ZodLiteral<"within">;
1594
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
1595
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1596
+ }, "strip", z.ZodTypeAny, {
1597
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1598
+ }, {
1599
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1600
+ }>]>;
1601
+ }, "strip", z.ZodTypeAny, {
1602
+ type: "within";
1603
+ location: string | {
1604
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1605
+ };
1606
+ }, {
1607
+ type: "within";
1608
+ location: string | {
1609
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1610
+ };
1611
+ }>, z.ZodObject<{
1612
+ type: z.ZodLiteral<"exact">;
1613
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1614
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1615
+ }, "strip", z.ZodTypeAny, {
1616
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1617
+ }, {
1618
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1619
+ }>]>;
1620
+ }, "strip", z.ZodTypeAny, {
1621
+ type: "exact";
1622
+ term: string | {
1623
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1624
+ };
1625
+ }, {
1626
+ type: "exact";
1627
+ term: string | {
1628
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1629
+ };
1630
+ }>]>>>;
1631
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1632
+ type: z.ZodLiteral<"within">;
1633
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
1634
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1635
+ }, "strip", z.ZodTypeAny, {
1636
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1637
+ }, {
1638
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1639
+ }>]>;
1640
+ }, "strip", z.ZodTypeAny, {
1641
+ type: "within";
1642
+ location: string | {
1643
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1644
+ };
1645
+ }, {
1646
+ type: "within";
1647
+ location: string | {
1648
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1649
+ };
1650
+ }>, z.ZodObject<{
1651
+ type: z.ZodLiteral<"exact">;
1652
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1653
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1654
+ }, "strip", z.ZodTypeAny, {
1655
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1656
+ }, {
1657
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1658
+ }>]>;
1659
+ }, "strip", z.ZodTypeAny, {
1660
+ type: "exact";
1661
+ term: string | {
1662
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1663
+ };
1664
+ }, {
1665
+ type: "exact";
1666
+ term: string | {
1667
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1668
+ };
1669
+ }>]>>>;
1670
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1671
+ type: z.ZodLiteral<"exact">;
1672
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1673
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1674
+ }, "strip", z.ZodTypeAny, {
1675
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1676
+ }, {
1677
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1678
+ }>]>;
1679
+ }, "strip", z.ZodTypeAny, {
1680
+ type: "exact";
1681
+ term: string | {
1682
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1683
+ };
1684
+ }, {
1685
+ type: "exact";
1686
+ term: string | {
1687
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1688
+ };
1689
+ }>>>;
1690
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1691
+ type: z.ZodLiteral<"exact">;
1692
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1693
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1696
+ }, {
1697
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1698
+ }>]>;
1699
+ }, "strip", z.ZodTypeAny, {
1700
+ type: "exact";
1701
+ term: string | {
1702
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1703
+ };
1704
+ }, {
1705
+ type: "exact";
1706
+ term: string | {
1707
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1708
+ };
1709
+ }>>>;
1710
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1711
+ type: z.ZodLiteral<"exact">;
1712
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1713
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1714
+ }, "strip", z.ZodTypeAny, {
1715
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1716
+ }, {
1717
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1718
+ }>]>;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ type: "exact";
1721
+ term: string | {
1722
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1723
+ };
1724
+ }, {
1725
+ type: "exact";
1726
+ term: string | {
1727
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1728
+ };
1729
+ }>>>;
1730
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1731
+ type: z.ZodLiteral<"exact">;
1732
+ term: z.ZodString;
1733
+ }, "strip", z.ZodTypeAny, {
1734
+ type: "exact";
1735
+ term: string;
1736
+ }, {
1737
+ type: "exact";
1738
+ term: string;
1739
+ }>>>;
1740
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1741
+ type: z.ZodLiteral<"anyOf">;
1742
+ terms: z.ZodArray<z.ZodString, "many">;
1743
+ }, "strip", z.ZodTypeAny, {
1744
+ type: "anyOf";
1745
+ terms: string[];
1746
+ }, {
1747
+ type: "anyOf";
1748
+ terms: string[];
1749
+ }>, z.ZodObject<{
1750
+ type: z.ZodLiteral<"not">;
1751
+ term: z.ZodString;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ type: "not";
1754
+ term: string;
1755
+ }, {
1756
+ type: "not";
1757
+ term: string;
1758
+ }>]>, "many">>>;
1759
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1760
+ }, "strip", z.ZodTypeAny, {
1761
+ status?: {
1762
+ type: "exact";
1763
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1764
+ } | {
1765
+ type: "anyOf";
1766
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1767
+ } | undefined;
1768
+ data?: any;
1769
+ createdAt?: {
1770
+ type: "exact";
1771
+ term: string;
1772
+ } | {
1773
+ type: "range";
1774
+ gte: string;
1775
+ lte: string;
1776
+ } | undefined;
1777
+ createdBy?: {
1778
+ type: "exact";
1779
+ term: string | {
1780
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1781
+ };
1782
+ } | undefined;
1783
+ createdAtLocation?: {
1784
+ type: "exact";
1785
+ term: string | {
1786
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1787
+ };
1788
+ } | {
1789
+ type: "within";
1790
+ location: string | {
1791
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1792
+ };
1793
+ } | undefined;
1794
+ assignedTo?: {
1795
+ type: "exact";
1796
+ term: string | {
1797
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1798
+ };
1799
+ } | undefined;
1800
+ updatedAt?: {
1801
+ type: "exact";
1802
+ term: string;
1803
+ } | {
1804
+ type: "range";
1805
+ gte: string;
1806
+ lte: string;
1807
+ } | undefined;
1808
+ trackingId?: {
1809
+ type: "exact";
1810
+ term: string;
1811
+ } | undefined;
1812
+ updatedAtLocation?: {
1813
+ type: "exact";
1814
+ term: string | {
1815
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1816
+ };
1817
+ } | {
1818
+ type: "within";
1819
+ location: string | {
1820
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1821
+ };
1822
+ } | undefined;
1823
+ updatedBy?: {
1824
+ type: "exact";
1825
+ term: string | {
1826
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1827
+ };
1828
+ } | undefined;
1829
+ flags?: ({
1830
+ type: "anyOf";
1831
+ terms: string[];
1832
+ } | {
1833
+ type: "not";
1834
+ term: string;
1835
+ })[] | undefined;
1836
+ eventType?: string | undefined;
1837
+ }, {
1838
+ status?: {
1839
+ type: "exact";
1840
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1841
+ } | {
1842
+ type: "anyOf";
1843
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1844
+ } | undefined;
1845
+ data?: any;
1846
+ createdAt?: {
1847
+ type: "exact";
1848
+ term: string;
1849
+ } | {
1850
+ type: "range";
1851
+ gte: string;
1852
+ lte: string;
1853
+ } | undefined;
1854
+ createdBy?: {
1855
+ type: "exact";
1856
+ term: string | {
1857
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1858
+ };
1859
+ } | undefined;
1860
+ createdAtLocation?: {
1861
+ type: "exact";
1862
+ term: string | {
1863
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1864
+ };
1865
+ } | {
1866
+ type: "within";
1867
+ location: string | {
1868
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1869
+ };
1870
+ } | undefined;
1871
+ assignedTo?: {
1872
+ type: "exact";
1873
+ term: string | {
1874
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1875
+ };
1876
+ } | undefined;
1877
+ updatedAt?: {
1878
+ type: "exact";
1879
+ term: string;
1880
+ } | {
1881
+ type: "range";
1882
+ gte: string;
1883
+ lte: string;
1884
+ } | undefined;
1885
+ trackingId?: {
1886
+ type: "exact";
1887
+ term: string;
1888
+ } | undefined;
1889
+ updatedAtLocation?: {
1890
+ type: "exact";
1891
+ term: string | {
1892
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1893
+ };
1894
+ } | {
1895
+ type: "within";
1896
+ location: string | {
1897
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1898
+ };
1899
+ } | undefined;
1900
+ updatedBy?: {
1901
+ type: "exact";
1902
+ term: string | {
1903
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1904
+ };
1905
+ } | undefined;
1906
+ flags?: ({
1907
+ type: "anyOf";
1908
+ terms: string[];
1909
+ } | {
1910
+ type: "not";
1911
+ term: string;
1912
+ })[] | undefined;
1913
+ eventType?: string | undefined;
1914
+ }>, z.ZodObject<{
1915
+ type: z.ZodLiteral<"and">;
1916
+ clauses: z.ZodArray<z.ZodObject<{
1917
+ eventType: z.ZodOptional<z.ZodString>;
1918
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1919
+ type: z.ZodLiteral<"anyOf">;
1920
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1921
+ }, "strip", z.ZodTypeAny, {
1922
+ type: "anyOf";
1923
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1924
+ }, {
1925
+ type: "anyOf";
1926
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1927
+ }>, z.ZodObject<{
1928
+ type: z.ZodLiteral<"exact">;
1929
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1930
+ }, "strip", z.ZodTypeAny, {
1931
+ type: "exact";
1932
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1933
+ }, {
1934
+ type: "exact";
1935
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1936
+ }>]>>>;
1937
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1938
+ type: z.ZodLiteral<"exact">;
1939
+ term: z.ZodString;
1940
+ }, "strip", z.ZodTypeAny, {
1941
+ type: "exact";
1942
+ term: string;
1943
+ }, {
1944
+ type: "exact";
1945
+ term: string;
1946
+ }>, z.ZodObject<{
1947
+ type: z.ZodLiteral<"range">;
1948
+ gte: z.ZodString;
1949
+ lte: z.ZodString;
1950
+ }, "strip", z.ZodTypeAny, {
1951
+ type: "range";
1952
+ gte: string;
1953
+ lte: string;
1954
+ }, {
1955
+ type: "range";
1956
+ gte: string;
1957
+ lte: string;
1958
+ }>]>>>;
1959
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1960
+ type: z.ZodLiteral<"exact">;
1961
+ term: z.ZodString;
1962
+ }, "strip", z.ZodTypeAny, {
1963
+ type: "exact";
1964
+ term: string;
1965
+ }, {
1966
+ type: "exact";
1967
+ term: string;
1968
+ }>, z.ZodObject<{
1969
+ type: z.ZodLiteral<"range">;
1970
+ gte: z.ZodString;
1971
+ lte: z.ZodString;
1972
+ }, "strip", z.ZodTypeAny, {
1973
+ type: "range";
1974
+ gte: string;
1975
+ lte: string;
1976
+ }, {
1977
+ type: "range";
1978
+ gte: string;
1979
+ lte: string;
1980
+ }>]>>>;
1981
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1982
+ type: z.ZodLiteral<"within">;
1983
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
1984
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1985
+ }, "strip", z.ZodTypeAny, {
1986
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1987
+ }, {
1988
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1989
+ }>]>;
1990
+ }, "strip", z.ZodTypeAny, {
1991
+ type: "within";
1992
+ location: string | {
1993
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1994
+ };
1995
+ }, {
1996
+ type: "within";
1997
+ location: string | {
1998
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1999
+ };
2000
+ }>, z.ZodObject<{
2001
+ type: z.ZodLiteral<"exact">;
2002
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2003
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2004
+ }, "strip", z.ZodTypeAny, {
2005
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2006
+ }, {
2007
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2008
+ }>]>;
2009
+ }, "strip", z.ZodTypeAny, {
2010
+ type: "exact";
2011
+ term: string | {
2012
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2013
+ };
2014
+ }, {
2015
+ type: "exact";
2016
+ term: string | {
2017
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2018
+ };
2019
+ }>]>>>;
2020
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2021
+ type: z.ZodLiteral<"within">;
2022
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
2023
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2024
+ }, "strip", z.ZodTypeAny, {
2025
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2026
+ }, {
2027
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2028
+ }>]>;
2029
+ }, "strip", z.ZodTypeAny, {
2030
+ type: "within";
2031
+ location: string | {
2032
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2033
+ };
2034
+ }, {
2035
+ type: "within";
2036
+ location: string | {
2037
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2038
+ };
2039
+ }>, z.ZodObject<{
2040
+ type: z.ZodLiteral<"exact">;
2041
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2042
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2043
+ }, "strip", z.ZodTypeAny, {
2044
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2045
+ }, {
2046
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2047
+ }>]>;
2048
+ }, "strip", z.ZodTypeAny, {
2049
+ type: "exact";
2050
+ term: string | {
2051
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2052
+ };
2053
+ }, {
2054
+ type: "exact";
2055
+ term: string | {
2056
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2057
+ };
2058
+ }>]>>>;
2059
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2060
+ type: z.ZodLiteral<"exact">;
2061
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2062
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2063
+ }, "strip", z.ZodTypeAny, {
2064
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2065
+ }, {
2066
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2067
+ }>]>;
2068
+ }, "strip", z.ZodTypeAny, {
2069
+ type: "exact";
2070
+ term: string | {
2071
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2072
+ };
2073
+ }, {
2074
+ type: "exact";
2075
+ term: string | {
2076
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2077
+ };
2078
+ }>>>;
2079
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2080
+ type: z.ZodLiteral<"exact">;
2081
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2082
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2083
+ }, "strip", z.ZodTypeAny, {
2084
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2085
+ }, {
2086
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2087
+ }>]>;
2088
+ }, "strip", z.ZodTypeAny, {
2089
+ type: "exact";
2090
+ term: string | {
2091
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2092
+ };
2093
+ }, {
2094
+ type: "exact";
2095
+ term: string | {
2096
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2097
+ };
2098
+ }>>>;
2099
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2100
+ type: z.ZodLiteral<"exact">;
2101
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2102
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2103
+ }, "strip", z.ZodTypeAny, {
2104
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2105
+ }, {
2106
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2107
+ }>]>;
2108
+ }, "strip", z.ZodTypeAny, {
2109
+ type: "exact";
2110
+ term: string | {
2111
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2112
+ };
2113
+ }, {
2114
+ type: "exact";
2115
+ term: string | {
2116
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2117
+ };
2118
+ }>>>;
2119
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2120
+ type: z.ZodLiteral<"exact">;
2121
+ term: z.ZodString;
2122
+ }, "strip", z.ZodTypeAny, {
2123
+ type: "exact";
2124
+ term: string;
2125
+ }, {
2126
+ type: "exact";
2127
+ term: string;
2128
+ }>>>;
2129
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
2130
+ type: z.ZodLiteral<"anyOf">;
2131
+ terms: z.ZodArray<z.ZodString, "many">;
2132
+ }, "strip", z.ZodTypeAny, {
2133
+ type: "anyOf";
2134
+ terms: string[];
2135
+ }, {
2136
+ type: "anyOf";
2137
+ terms: string[];
2138
+ }>, z.ZodObject<{
2139
+ type: z.ZodLiteral<"not">;
2140
+ term: z.ZodString;
2141
+ }, "strip", z.ZodTypeAny, {
2142
+ type: "not";
2143
+ term: string;
2144
+ }, {
2145
+ type: "not";
2146
+ term: string;
2147
+ }>]>, "many">>>;
2148
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
2149
+ }, "strip", z.ZodTypeAny, {
2150
+ status?: {
2151
+ type: "exact";
2152
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2153
+ } | {
2154
+ type: "anyOf";
2155
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2156
+ } | undefined;
2157
+ data?: any;
2158
+ createdAt?: {
2159
+ type: "exact";
2160
+ term: string;
2161
+ } | {
2162
+ type: "range";
2163
+ gte: string;
2164
+ lte: string;
2165
+ } | undefined;
2166
+ createdBy?: {
2167
+ type: "exact";
2168
+ term: string | {
2169
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2170
+ };
2171
+ } | undefined;
2172
+ createdAtLocation?: {
2173
+ type: "exact";
2174
+ term: string | {
2175
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2176
+ };
2177
+ } | {
2178
+ type: "within";
2179
+ location: string | {
2180
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2181
+ };
2182
+ } | undefined;
2183
+ assignedTo?: {
2184
+ type: "exact";
2185
+ term: string | {
2186
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2187
+ };
2188
+ } | undefined;
2189
+ updatedAt?: {
2190
+ type: "exact";
2191
+ term: string;
2192
+ } | {
2193
+ type: "range";
2194
+ gte: string;
2195
+ lte: string;
2196
+ } | undefined;
2197
+ trackingId?: {
2198
+ type: "exact";
2199
+ term: string;
2200
+ } | undefined;
2201
+ updatedAtLocation?: {
2202
+ type: "exact";
2203
+ term: string | {
2204
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2205
+ };
2206
+ } | {
2207
+ type: "within";
2208
+ location: string | {
2209
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2210
+ };
2211
+ } | undefined;
2212
+ updatedBy?: {
2213
+ type: "exact";
2214
+ term: string | {
2215
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2216
+ };
2217
+ } | undefined;
2218
+ flags?: ({
2219
+ type: "anyOf";
2220
+ terms: string[];
2221
+ } | {
2222
+ type: "not";
2223
+ term: string;
2224
+ })[] | undefined;
2225
+ eventType?: string | undefined;
2226
+ }, {
2227
+ status?: {
2228
+ type: "exact";
2229
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2230
+ } | {
2231
+ type: "anyOf";
2232
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2233
+ } | undefined;
2234
+ data?: any;
2235
+ createdAt?: {
2236
+ type: "exact";
2237
+ term: string;
2238
+ } | {
2239
+ type: "range";
2240
+ gte: string;
2241
+ lte: string;
2242
+ } | undefined;
2243
+ createdBy?: {
2244
+ type: "exact";
2245
+ term: string | {
2246
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2247
+ };
2248
+ } | undefined;
2249
+ createdAtLocation?: {
2250
+ type: "exact";
2251
+ term: string | {
2252
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2253
+ };
2254
+ } | {
2255
+ type: "within";
2256
+ location: string | {
2257
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2258
+ };
2259
+ } | undefined;
2260
+ assignedTo?: {
2261
+ type: "exact";
2262
+ term: string | {
2263
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2264
+ };
2265
+ } | undefined;
2266
+ updatedAt?: {
2267
+ type: "exact";
2268
+ term: string;
2269
+ } | {
2270
+ type: "range";
2271
+ gte: string;
2272
+ lte: string;
2273
+ } | undefined;
2274
+ trackingId?: {
2275
+ type: "exact";
2276
+ term: string;
2277
+ } | undefined;
2278
+ updatedAtLocation?: {
2279
+ type: "exact";
2280
+ term: string | {
2281
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2282
+ };
2283
+ } | {
2284
+ type: "within";
2285
+ location: string | {
2286
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2287
+ };
2288
+ } | undefined;
2289
+ updatedBy?: {
2290
+ type: "exact";
2291
+ term: string | {
2292
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2293
+ };
2294
+ } | undefined;
2295
+ flags?: ({
2296
+ type: "anyOf";
2297
+ terms: string[];
2298
+ } | {
2299
+ type: "not";
2300
+ term: string;
2301
+ })[] | undefined;
2302
+ eventType?: string | undefined;
2303
+ }>, "many">;
2304
+ }, "strip", z.ZodTypeAny, {
2305
+ type: "and";
2306
+ clauses: {
2307
+ status?: {
2308
+ type: "exact";
2309
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2310
+ } | {
2311
+ type: "anyOf";
2312
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2313
+ } | undefined;
2314
+ data?: any;
2315
+ createdAt?: {
2316
+ type: "exact";
2317
+ term: string;
2318
+ } | {
2319
+ type: "range";
2320
+ gte: string;
2321
+ lte: string;
2322
+ } | undefined;
2323
+ createdBy?: {
2324
+ type: "exact";
2325
+ term: string | {
2326
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2327
+ };
2328
+ } | undefined;
2329
+ createdAtLocation?: {
2330
+ type: "exact";
2331
+ term: string | {
2332
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2333
+ };
2334
+ } | {
2335
+ type: "within";
2336
+ location: string | {
2337
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2338
+ };
2339
+ } | undefined;
2340
+ assignedTo?: {
2341
+ type: "exact";
2342
+ term: string | {
2343
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2344
+ };
2345
+ } | undefined;
2346
+ updatedAt?: {
2347
+ type: "exact";
2348
+ term: string;
2349
+ } | {
2350
+ type: "range";
2351
+ gte: string;
2352
+ lte: string;
2353
+ } | undefined;
2354
+ trackingId?: {
2355
+ type: "exact";
2356
+ term: string;
2357
+ } | undefined;
2358
+ updatedAtLocation?: {
2359
+ type: "exact";
2360
+ term: string | {
2361
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2362
+ };
2363
+ } | {
2364
+ type: "within";
2365
+ location: string | {
2366
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2367
+ };
2368
+ } | undefined;
2369
+ updatedBy?: {
2370
+ type: "exact";
2371
+ term: string | {
2372
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2373
+ };
2374
+ } | undefined;
2375
+ flags?: ({
2376
+ type: "anyOf";
2377
+ terms: string[];
2378
+ } | {
2379
+ type: "not";
2380
+ term: string;
2381
+ })[] | undefined;
2382
+ eventType?: string | undefined;
2383
+ }[];
2384
+ }, {
2385
+ type: "and";
2386
+ clauses: {
2387
+ status?: {
2388
+ type: "exact";
2389
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2390
+ } | {
2391
+ type: "anyOf";
2392
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2393
+ } | undefined;
2394
+ data?: any;
2395
+ createdAt?: {
2396
+ type: "exact";
2397
+ term: string;
2398
+ } | {
2399
+ type: "range";
2400
+ gte: string;
2401
+ lte: string;
2402
+ } | undefined;
2403
+ createdBy?: {
2404
+ type: "exact";
2405
+ term: string | {
2406
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2407
+ };
2408
+ } | undefined;
2409
+ createdAtLocation?: {
2410
+ type: "exact";
2411
+ term: string | {
2412
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2413
+ };
2414
+ } | {
2415
+ type: "within";
2416
+ location: string | {
2417
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2418
+ };
2419
+ } | undefined;
2420
+ assignedTo?: {
2421
+ type: "exact";
2422
+ term: string | {
2423
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2424
+ };
2425
+ } | undefined;
2426
+ updatedAt?: {
2427
+ type: "exact";
2428
+ term: string;
2429
+ } | {
2430
+ type: "range";
2431
+ gte: string;
2432
+ lte: string;
2433
+ } | undefined;
2434
+ trackingId?: {
2435
+ type: "exact";
2436
+ term: string;
2437
+ } | undefined;
2438
+ updatedAtLocation?: {
2439
+ type: "exact";
2440
+ term: string | {
2441
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2442
+ };
2443
+ } | {
2444
+ type: "within";
2445
+ location: string | {
2446
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2447
+ };
2448
+ } | undefined;
2449
+ updatedBy?: {
2450
+ type: "exact";
2451
+ term: string | {
2452
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2453
+ };
2454
+ } | undefined;
2455
+ flags?: ({
2456
+ type: "anyOf";
2457
+ terms: string[];
2458
+ } | {
2459
+ type: "not";
2460
+ term: string;
2461
+ })[] | undefined;
2462
+ eventType?: string | undefined;
2463
+ }[];
2464
+ }>, z.ZodObject<{
2465
+ type: z.ZodLiteral<"or">;
2466
+ clauses: z.ZodArray<z.ZodObject<{
2467
+ eventType: z.ZodOptional<z.ZodString>;
2468
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2469
+ type: z.ZodLiteral<"anyOf">;
2470
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
2471
+ }, "strip", z.ZodTypeAny, {
2472
+ type: "anyOf";
2473
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2474
+ }, {
2475
+ type: "anyOf";
2476
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2477
+ }>, z.ZodObject<{
2478
+ type: z.ZodLiteral<"exact">;
2479
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
2480
+ }, "strip", z.ZodTypeAny, {
2481
+ type: "exact";
2482
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2483
+ }, {
2484
+ type: "exact";
2485
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2486
+ }>]>>>;
2487
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2488
+ type: z.ZodLiteral<"exact">;
2489
+ term: z.ZodString;
2490
+ }, "strip", z.ZodTypeAny, {
2491
+ type: "exact";
2492
+ term: string;
2493
+ }, {
2494
+ type: "exact";
2495
+ term: string;
2496
+ }>, z.ZodObject<{
2497
+ type: z.ZodLiteral<"range">;
2498
+ gte: z.ZodString;
2499
+ lte: z.ZodString;
2500
+ }, "strip", z.ZodTypeAny, {
2501
+ type: "range";
2502
+ gte: string;
2503
+ lte: string;
2504
+ }, {
2505
+ type: "range";
2506
+ gte: string;
2507
+ lte: string;
2508
+ }>]>>>;
2509
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2510
+ type: z.ZodLiteral<"exact">;
2511
+ term: z.ZodString;
2512
+ }, "strip", z.ZodTypeAny, {
2513
+ type: "exact";
2514
+ term: string;
2515
+ }, {
2516
+ type: "exact";
2517
+ term: string;
2518
+ }>, z.ZodObject<{
2519
+ type: z.ZodLiteral<"range">;
2520
+ gte: z.ZodString;
2521
+ lte: z.ZodString;
2522
+ }, "strip", z.ZodTypeAny, {
2523
+ type: "range";
2524
+ gte: string;
2525
+ lte: string;
2526
+ }, {
2527
+ type: "range";
2528
+ gte: string;
2529
+ lte: string;
2530
+ }>]>>>;
2531
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2532
+ type: z.ZodLiteral<"within">;
2533
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
2534
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2535
+ }, "strip", z.ZodTypeAny, {
2536
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2537
+ }, {
2538
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2539
+ }>]>;
2540
+ }, "strip", z.ZodTypeAny, {
2541
+ type: "within";
2542
+ location: string | {
2543
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2544
+ };
2545
+ }, {
2546
+ type: "within";
2547
+ location: string | {
2548
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2549
+ };
2550
+ }>, z.ZodObject<{
2551
+ type: z.ZodLiteral<"exact">;
2552
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2553
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2554
+ }, "strip", z.ZodTypeAny, {
2555
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2556
+ }, {
2557
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2558
+ }>]>;
2559
+ }, "strip", z.ZodTypeAny, {
2560
+ type: "exact";
2561
+ term: string | {
2562
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2563
+ };
2564
+ }, {
2565
+ type: "exact";
2566
+ term: string | {
2567
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2568
+ };
2569
+ }>]>>>;
2570
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2571
+ type: z.ZodLiteral<"within">;
2572
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
2573
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2574
+ }, "strip", z.ZodTypeAny, {
2575
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2576
+ }, {
2577
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2578
+ }>]>;
2579
+ }, "strip", z.ZodTypeAny, {
2580
+ type: "within";
2581
+ location: string | {
2582
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2583
+ };
2584
+ }, {
2585
+ type: "within";
2586
+ location: string | {
2587
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2588
+ };
2589
+ }>, z.ZodObject<{
2590
+ type: z.ZodLiteral<"exact">;
2591
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2592
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2593
+ }, "strip", z.ZodTypeAny, {
2594
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2595
+ }, {
2596
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2597
+ }>]>;
2598
+ }, "strip", z.ZodTypeAny, {
2599
+ type: "exact";
2600
+ term: string | {
2601
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2602
+ };
2603
+ }, {
2604
+ type: "exact";
2605
+ term: string | {
2606
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2607
+ };
2608
+ }>]>>>;
2609
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2610
+ type: z.ZodLiteral<"exact">;
2611
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2612
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2613
+ }, "strip", z.ZodTypeAny, {
2614
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2615
+ }, {
2616
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2617
+ }>]>;
2618
+ }, "strip", z.ZodTypeAny, {
2619
+ type: "exact";
2620
+ term: string | {
2621
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2622
+ };
2623
+ }, {
2624
+ type: "exact";
2625
+ term: string | {
2626
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2627
+ };
2628
+ }>>>;
2629
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2630
+ type: z.ZodLiteral<"exact">;
2631
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2632
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2633
+ }, "strip", z.ZodTypeAny, {
2634
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2635
+ }, {
2636
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2637
+ }>]>;
2638
+ }, "strip", z.ZodTypeAny, {
2639
+ type: "exact";
2640
+ term: string | {
2641
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2642
+ };
2643
+ }, {
2644
+ type: "exact";
2645
+ term: string | {
2646
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2647
+ };
2648
+ }>>>;
2649
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2650
+ type: z.ZodLiteral<"exact">;
2651
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
2652
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
2653
+ }, "strip", z.ZodTypeAny, {
2654
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2655
+ }, {
2656
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2657
+ }>]>;
2658
+ }, "strip", z.ZodTypeAny, {
2659
+ type: "exact";
2660
+ term: string | {
2661
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2662
+ };
2663
+ }, {
2664
+ type: "exact";
2665
+ term: string | {
2666
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2667
+ };
2668
+ }>>>;
2669
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2670
+ type: z.ZodLiteral<"exact">;
2671
+ term: z.ZodString;
2672
+ }, "strip", z.ZodTypeAny, {
2673
+ type: "exact";
2674
+ term: string;
2675
+ }, {
2676
+ type: "exact";
2677
+ term: string;
2678
+ }>>>;
2679
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
2680
+ type: z.ZodLiteral<"anyOf">;
2681
+ terms: z.ZodArray<z.ZodString, "many">;
2682
+ }, "strip", z.ZodTypeAny, {
2683
+ type: "anyOf";
2684
+ terms: string[];
2685
+ }, {
2686
+ type: "anyOf";
2687
+ terms: string[];
2688
+ }>, z.ZodObject<{
2689
+ type: z.ZodLiteral<"not">;
2690
+ term: z.ZodString;
2691
+ }, "strip", z.ZodTypeAny, {
2692
+ type: "not";
2693
+ term: string;
2694
+ }, {
2695
+ type: "not";
2696
+ term: string;
2697
+ }>]>, "many">>>;
2698
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
2699
+ }, "strip", z.ZodTypeAny, {
2700
+ status?: {
2701
+ type: "exact";
2702
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2703
+ } | {
2704
+ type: "anyOf";
2705
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2706
+ } | undefined;
2707
+ data?: any;
2708
+ createdAt?: {
2709
+ type: "exact";
2710
+ term: string;
2711
+ } | {
2712
+ type: "range";
2713
+ gte: string;
2714
+ lte: string;
2715
+ } | undefined;
2716
+ createdBy?: {
2717
+ type: "exact";
2718
+ term: string | {
2719
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2720
+ };
2721
+ } | undefined;
2722
+ createdAtLocation?: {
2723
+ type: "exact";
2724
+ term: string | {
2725
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2726
+ };
2727
+ } | {
2728
+ type: "within";
2729
+ location: string | {
2730
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2731
+ };
2732
+ } | undefined;
2733
+ assignedTo?: {
2734
+ type: "exact";
2735
+ term: string | {
2736
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2737
+ };
2738
+ } | undefined;
2739
+ updatedAt?: {
2740
+ type: "exact";
2741
+ term: string;
2742
+ } | {
2743
+ type: "range";
2744
+ gte: string;
2745
+ lte: string;
2746
+ } | undefined;
2747
+ trackingId?: {
2748
+ type: "exact";
2749
+ term: string;
2750
+ } | undefined;
2751
+ updatedAtLocation?: {
2752
+ type: "exact";
2753
+ term: string | {
2754
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2755
+ };
2756
+ } | {
2757
+ type: "within";
2758
+ location: string | {
2759
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2760
+ };
2761
+ } | undefined;
2762
+ updatedBy?: {
2763
+ type: "exact";
2764
+ term: string | {
2765
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2766
+ };
2767
+ } | undefined;
2768
+ flags?: ({
2769
+ type: "anyOf";
2770
+ terms: string[];
2771
+ } | {
2772
+ type: "not";
2773
+ term: string;
2774
+ })[] | undefined;
2775
+ eventType?: string | undefined;
2776
+ }, {
2777
+ status?: {
2778
+ type: "exact";
2779
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2780
+ } | {
2781
+ type: "anyOf";
2782
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2783
+ } | undefined;
2784
+ data?: any;
2785
+ createdAt?: {
2786
+ type: "exact";
2787
+ term: string;
2788
+ } | {
2789
+ type: "range";
2790
+ gte: string;
2791
+ lte: string;
2792
+ } | undefined;
2793
+ createdBy?: {
2794
+ type: "exact";
2795
+ term: string | {
2796
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2797
+ };
2798
+ } | undefined;
2799
+ createdAtLocation?: {
2800
+ type: "exact";
2801
+ term: string | {
2802
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2803
+ };
2804
+ } | {
2805
+ type: "within";
2806
+ location: string | {
2807
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2808
+ };
2809
+ } | undefined;
2810
+ assignedTo?: {
2811
+ type: "exact";
2812
+ term: string | {
2813
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2814
+ };
2815
+ } | undefined;
2816
+ updatedAt?: {
2817
+ type: "exact";
2818
+ term: string;
2819
+ } | {
2820
+ type: "range";
2821
+ gte: string;
2822
+ lte: string;
2823
+ } | undefined;
2824
+ trackingId?: {
2825
+ type: "exact";
2826
+ term: string;
2827
+ } | undefined;
2828
+ updatedAtLocation?: {
2829
+ type: "exact";
2830
+ term: string | {
2831
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2832
+ };
2833
+ } | {
2834
+ type: "within";
2835
+ location: string | {
2836
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2837
+ };
2838
+ } | undefined;
2839
+ updatedBy?: {
2840
+ type: "exact";
2841
+ term: string | {
2842
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2843
+ };
2844
+ } | undefined;
2845
+ flags?: ({
2846
+ type: "anyOf";
2847
+ terms: string[];
2848
+ } | {
2849
+ type: "not";
2850
+ term: string;
2851
+ })[] | undefined;
2852
+ eventType?: string | undefined;
2853
+ }>, "many">;
2854
+ }, "strip", z.ZodTypeAny, {
2855
+ type: "or";
2856
+ clauses: {
2857
+ status?: {
2858
+ type: "exact";
2859
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2860
+ } | {
2861
+ type: "anyOf";
2862
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2863
+ } | undefined;
2864
+ data?: any;
2865
+ createdAt?: {
2866
+ type: "exact";
2867
+ term: string;
2868
+ } | {
2869
+ type: "range";
2870
+ gte: string;
2871
+ lte: string;
2872
+ } | undefined;
2873
+ createdBy?: {
2874
+ type: "exact";
2875
+ term: string | {
2876
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2877
+ };
2878
+ } | undefined;
2879
+ createdAtLocation?: {
2880
+ type: "exact";
2881
+ term: string | {
2882
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2883
+ };
2884
+ } | {
2885
+ type: "within";
2886
+ location: string | {
2887
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2888
+ };
2889
+ } | undefined;
2890
+ assignedTo?: {
2891
+ type: "exact";
2892
+ term: string | {
2893
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2894
+ };
2895
+ } | undefined;
2896
+ updatedAt?: {
2897
+ type: "exact";
2898
+ term: string;
2899
+ } | {
2900
+ type: "range";
2901
+ gte: string;
2902
+ lte: string;
2903
+ } | undefined;
2904
+ trackingId?: {
2905
+ type: "exact";
2906
+ term: string;
2907
+ } | undefined;
2908
+ updatedAtLocation?: {
2909
+ type: "exact";
2910
+ term: string | {
2911
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2912
+ };
2913
+ } | {
2914
+ type: "within";
2915
+ location: string | {
2916
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2917
+ };
2918
+ } | undefined;
2919
+ updatedBy?: {
2920
+ type: "exact";
2921
+ term: string | {
2922
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2923
+ };
2924
+ } | undefined;
2925
+ flags?: ({
2926
+ type: "anyOf";
2927
+ terms: string[];
2928
+ } | {
2929
+ type: "not";
2930
+ term: string;
2931
+ })[] | undefined;
2932
+ eventType?: string | undefined;
2933
+ }[];
2934
+ }, {
2935
+ type: "or";
2936
+ clauses: {
2937
+ status?: {
2938
+ type: "exact";
2939
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2940
+ } | {
2941
+ type: "anyOf";
2942
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2943
+ } | undefined;
2944
+ data?: any;
2945
+ createdAt?: {
2946
+ type: "exact";
2947
+ term: string;
2948
+ } | {
2949
+ type: "range";
2950
+ gte: string;
2951
+ lte: string;
2952
+ } | undefined;
2953
+ createdBy?: {
2954
+ type: "exact";
2955
+ term: string | {
2956
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2957
+ };
2958
+ } | undefined;
2959
+ createdAtLocation?: {
2960
+ type: "exact";
2961
+ term: string | {
2962
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2963
+ };
2964
+ } | {
2965
+ type: "within";
2966
+ location: string | {
2967
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2968
+ };
2969
+ } | undefined;
2970
+ assignedTo?: {
2971
+ type: "exact";
2972
+ term: string | {
2973
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2974
+ };
2975
+ } | undefined;
2976
+ updatedAt?: {
2977
+ type: "exact";
2978
+ term: string;
2979
+ } | {
2980
+ type: "range";
2981
+ gte: string;
2982
+ lte: string;
2983
+ } | undefined;
2984
+ trackingId?: {
2985
+ type: "exact";
2986
+ term: string;
2987
+ } | undefined;
2988
+ updatedAtLocation?: {
2989
+ type: "exact";
2990
+ term: string | {
2991
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2992
+ };
2993
+ } | {
2994
+ type: "within";
2995
+ location: string | {
2996
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
2997
+ };
2998
+ } | undefined;
2999
+ updatedBy?: {
3000
+ type: "exact";
3001
+ term: string | {
3002
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3003
+ };
3004
+ } | undefined;
3005
+ flags?: ({
3006
+ type: "anyOf";
3007
+ terms: string[];
3008
+ } | {
3009
+ type: "not";
3010
+ term: string;
3011
+ })[] | undefined;
3012
+ eventType?: string | undefined;
3013
+ }[];
3014
+ }>]>;
3015
+ actions: z.ZodArray<z.ZodObject<{
3016
+ type: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN", "DEFAULT"]>;
3017
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
3018
+ }, "strip", z.ZodTypeAny, {
3019
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3020
+ conditionals?: import(".").JSONSchema[] | undefined;
3021
+ }, {
3022
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3023
+ conditionals?: import(".").JSONSchema[] | undefined;
3024
+ }>, "many">;
3025
+ columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
3026
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3027
+ id: string;
3028
+ description: string;
3029
+ defaultMessage: string;
3030
+ }>;
3031
+ value: z.ZodObject<{
3032
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
3033
+ }, "strip", z.ZodTypeAny, {
3034
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
3035
+ }, {
3036
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
3037
+ }>;
3038
+ }, "strip", z.ZodTypeAny, {
3039
+ value: {
3040
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
3041
+ };
3042
+ label: TranslationConfig;
3043
+ }, {
3044
+ value: {
3045
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
3046
+ };
3047
+ label: {
3048
+ id: string;
3049
+ description: string;
3050
+ defaultMessage: string;
3051
+ };
3052
+ }>, "many">>;
3053
+ 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"]>;
3054
+ }, "strip", z.ZodTypeAny, {
3055
+ name: TranslationConfig;
3056
+ actions: {
3057
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3058
+ conditionals?: import(".").JSONSchema[] | undefined;
3059
+ }[];
3060
+ query: {
3061
+ status?: {
3062
+ type: "exact";
3063
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3064
+ } | {
3065
+ type: "anyOf";
3066
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3067
+ } | undefined;
3068
+ data?: any;
3069
+ createdAt?: {
3070
+ type: "exact";
3071
+ term: string;
3072
+ } | {
3073
+ type: "range";
3074
+ gte: string;
3075
+ lte: string;
3076
+ } | undefined;
3077
+ createdBy?: {
3078
+ type: "exact";
3079
+ term: string | {
3080
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3081
+ };
3082
+ } | undefined;
3083
+ createdAtLocation?: {
3084
+ type: "exact";
3085
+ term: string | {
3086
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3087
+ };
3088
+ } | {
3089
+ type: "within";
3090
+ location: string | {
3091
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3092
+ };
3093
+ } | undefined;
3094
+ assignedTo?: {
3095
+ type: "exact";
3096
+ term: string | {
3097
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3098
+ };
3099
+ } | undefined;
3100
+ updatedAt?: {
3101
+ type: "exact";
3102
+ term: string;
3103
+ } | {
3104
+ type: "range";
3105
+ gte: string;
3106
+ lte: string;
3107
+ } | undefined;
3108
+ trackingId?: {
3109
+ type: "exact";
3110
+ term: string;
3111
+ } | undefined;
3112
+ updatedAtLocation?: {
3113
+ type: "exact";
3114
+ term: string | {
3115
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3116
+ };
3117
+ } | {
3118
+ type: "within";
3119
+ location: string | {
3120
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3121
+ };
3122
+ } | undefined;
3123
+ updatedBy?: {
3124
+ type: "exact";
3125
+ term: string | {
3126
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3127
+ };
3128
+ } | undefined;
3129
+ flags?: ({
3130
+ type: "anyOf";
3131
+ terms: string[];
3132
+ } | {
3133
+ type: "not";
3134
+ term: string;
3135
+ })[] | undefined;
3136
+ eventType?: string | undefined;
3137
+ } | {
3138
+ type: "or";
3139
+ clauses: {
3140
+ status?: {
3141
+ type: "exact";
3142
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3143
+ } | {
3144
+ type: "anyOf";
3145
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3146
+ } | undefined;
3147
+ data?: any;
3148
+ createdAt?: {
3149
+ type: "exact";
3150
+ term: string;
3151
+ } | {
3152
+ type: "range";
3153
+ gte: string;
3154
+ lte: string;
3155
+ } | undefined;
3156
+ createdBy?: {
3157
+ type: "exact";
3158
+ term: string | {
3159
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3160
+ };
3161
+ } | undefined;
3162
+ createdAtLocation?: {
3163
+ type: "exact";
3164
+ term: string | {
3165
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3166
+ };
3167
+ } | {
3168
+ type: "within";
3169
+ location: string | {
3170
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3171
+ };
3172
+ } | undefined;
3173
+ assignedTo?: {
3174
+ type: "exact";
3175
+ term: string | {
3176
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3177
+ };
3178
+ } | undefined;
3179
+ updatedAt?: {
3180
+ type: "exact";
3181
+ term: string;
3182
+ } | {
3183
+ type: "range";
3184
+ gte: string;
3185
+ lte: string;
3186
+ } | undefined;
3187
+ trackingId?: {
3188
+ type: "exact";
3189
+ term: string;
3190
+ } | undefined;
3191
+ updatedAtLocation?: {
3192
+ type: "exact";
3193
+ term: string | {
3194
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3195
+ };
3196
+ } | {
3197
+ type: "within";
3198
+ location: string | {
3199
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3200
+ };
3201
+ } | undefined;
3202
+ updatedBy?: {
3203
+ type: "exact";
3204
+ term: string | {
3205
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3206
+ };
3207
+ } | undefined;
3208
+ flags?: ({
3209
+ type: "anyOf";
3210
+ terms: string[];
3211
+ } | {
3212
+ type: "not";
3213
+ term: string;
3214
+ })[] | undefined;
3215
+ eventType?: string | undefined;
3216
+ }[];
3217
+ } | {
3218
+ type: "and";
3219
+ clauses: {
3220
+ status?: {
3221
+ type: "exact";
3222
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3223
+ } | {
3224
+ type: "anyOf";
3225
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3226
+ } | undefined;
3227
+ data?: any;
3228
+ createdAt?: {
3229
+ type: "exact";
3230
+ term: string;
3231
+ } | {
3232
+ type: "range";
3233
+ gte: string;
3234
+ lte: string;
3235
+ } | undefined;
3236
+ createdBy?: {
3237
+ type: "exact";
3238
+ term: string | {
3239
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3240
+ };
3241
+ } | undefined;
3242
+ createdAtLocation?: {
3243
+ type: "exact";
3244
+ term: string | {
3245
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3246
+ };
3247
+ } | {
3248
+ type: "within";
3249
+ location: string | {
3250
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3251
+ };
3252
+ } | undefined;
3253
+ assignedTo?: {
3254
+ type: "exact";
3255
+ term: string | {
3256
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3257
+ };
3258
+ } | undefined;
3259
+ updatedAt?: {
3260
+ type: "exact";
3261
+ term: string;
3262
+ } | {
3263
+ type: "range";
3264
+ gte: string;
3265
+ lte: string;
3266
+ } | undefined;
3267
+ trackingId?: {
3268
+ type: "exact";
3269
+ term: string;
3270
+ } | undefined;
3271
+ updatedAtLocation?: {
3272
+ type: "exact";
3273
+ term: string | {
3274
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3275
+ };
3276
+ } | {
3277
+ type: "within";
3278
+ location: string | {
3279
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3280
+ };
3281
+ } | undefined;
3282
+ updatedBy?: {
3283
+ type: "exact";
3284
+ term: string | {
3285
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3286
+ };
3287
+ } | undefined;
3288
+ flags?: ({
3289
+ type: "anyOf";
3290
+ terms: string[];
3291
+ } | {
3292
+ type: "not";
3293
+ term: string;
3294
+ })[] | undefined;
3295
+ eventType?: string | undefined;
3296
+ }[];
3297
+ };
3298
+ slug: string;
3299
+ columns: {
3300
+ value: {
3301
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
3302
+ };
3303
+ label: TranslationConfig;
3304
+ }[];
3305
+ 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";
3306
+ }, {
3307
+ name: {
3308
+ id: string;
3309
+ description: string;
3310
+ defaultMessage: string;
3311
+ };
3312
+ actions: {
3313
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3314
+ conditionals?: import(".").JSONSchema[] | undefined;
3315
+ }[];
3316
+ query: {
3317
+ status?: {
3318
+ type: "exact";
3319
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3320
+ } | {
3321
+ type: "anyOf";
3322
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3323
+ } | undefined;
3324
+ data?: any;
3325
+ createdAt?: {
3326
+ type: "exact";
3327
+ term: string;
3328
+ } | {
3329
+ type: "range";
3330
+ gte: string;
3331
+ lte: string;
3332
+ } | undefined;
3333
+ createdBy?: {
3334
+ type: "exact";
3335
+ term: string | {
3336
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3337
+ };
3338
+ } | undefined;
3339
+ createdAtLocation?: {
3340
+ type: "exact";
3341
+ term: string | {
3342
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3343
+ };
3344
+ } | {
3345
+ type: "within";
3346
+ location: string | {
3347
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3348
+ };
3349
+ } | undefined;
3350
+ assignedTo?: {
3351
+ type: "exact";
3352
+ term: string | {
3353
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3354
+ };
3355
+ } | undefined;
3356
+ updatedAt?: {
3357
+ type: "exact";
3358
+ term: string;
3359
+ } | {
3360
+ type: "range";
3361
+ gte: string;
3362
+ lte: string;
3363
+ } | undefined;
3364
+ trackingId?: {
3365
+ type: "exact";
3366
+ term: string;
3367
+ } | undefined;
3368
+ updatedAtLocation?: {
3369
+ type: "exact";
3370
+ term: string | {
3371
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3372
+ };
3373
+ } | {
3374
+ type: "within";
3375
+ location: string | {
3376
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3377
+ };
3378
+ } | undefined;
3379
+ updatedBy?: {
3380
+ type: "exact";
3381
+ term: string | {
3382
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3383
+ };
3384
+ } | undefined;
3385
+ flags?: ({
3386
+ type: "anyOf";
3387
+ terms: string[];
3388
+ } | {
3389
+ type: "not";
3390
+ term: string;
3391
+ })[] | undefined;
3392
+ eventType?: string | undefined;
3393
+ } | {
3394
+ type: "or";
3395
+ clauses: {
3396
+ status?: {
3397
+ type: "exact";
3398
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3399
+ } | {
3400
+ type: "anyOf";
3401
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3402
+ } | undefined;
3403
+ data?: any;
3404
+ createdAt?: {
3405
+ type: "exact";
3406
+ term: string;
3407
+ } | {
3408
+ type: "range";
3409
+ gte: string;
3410
+ lte: string;
3411
+ } | undefined;
3412
+ createdBy?: {
3413
+ type: "exact";
3414
+ term: string | {
3415
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3416
+ };
3417
+ } | undefined;
3418
+ createdAtLocation?: {
3419
+ type: "exact";
3420
+ term: string | {
3421
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3422
+ };
3423
+ } | {
3424
+ type: "within";
3425
+ location: string | {
3426
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3427
+ };
3428
+ } | undefined;
3429
+ assignedTo?: {
3430
+ type: "exact";
3431
+ term: string | {
3432
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3433
+ };
3434
+ } | undefined;
3435
+ updatedAt?: {
3436
+ type: "exact";
3437
+ term: string;
3438
+ } | {
3439
+ type: "range";
3440
+ gte: string;
3441
+ lte: string;
3442
+ } | undefined;
3443
+ trackingId?: {
3444
+ type: "exact";
3445
+ term: string;
3446
+ } | undefined;
3447
+ updatedAtLocation?: {
3448
+ type: "exact";
3449
+ term: string | {
3450
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3451
+ };
3452
+ } | {
3453
+ type: "within";
3454
+ location: string | {
3455
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3456
+ };
3457
+ } | undefined;
3458
+ updatedBy?: {
3459
+ type: "exact";
3460
+ term: string | {
3461
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3462
+ };
3463
+ } | undefined;
3464
+ flags?: ({
3465
+ type: "anyOf";
3466
+ terms: string[];
3467
+ } | {
3468
+ type: "not";
3469
+ term: string;
3470
+ })[] | undefined;
3471
+ eventType?: string | undefined;
3472
+ }[];
3473
+ } | {
3474
+ type: "and";
3475
+ clauses: {
3476
+ status?: {
3477
+ type: "exact";
3478
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3479
+ } | {
3480
+ type: "anyOf";
3481
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3482
+ } | undefined;
3483
+ data?: any;
3484
+ createdAt?: {
3485
+ type: "exact";
3486
+ term: string;
3487
+ } | {
3488
+ type: "range";
3489
+ gte: string;
3490
+ lte: string;
3491
+ } | undefined;
3492
+ createdBy?: {
3493
+ type: "exact";
3494
+ term: string | {
3495
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3496
+ };
3497
+ } | undefined;
3498
+ createdAtLocation?: {
3499
+ type: "exact";
3500
+ term: string | {
3501
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3502
+ };
3503
+ } | {
3504
+ type: "within";
3505
+ location: string | {
3506
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3507
+ };
3508
+ } | undefined;
3509
+ assignedTo?: {
3510
+ type: "exact";
3511
+ term: string | {
3512
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3513
+ };
3514
+ } | undefined;
3515
+ updatedAt?: {
3516
+ type: "exact";
3517
+ term: string;
3518
+ } | {
3519
+ type: "range";
3520
+ gte: string;
3521
+ lte: string;
3522
+ } | undefined;
3523
+ trackingId?: {
3524
+ type: "exact";
3525
+ term: string;
3526
+ } | undefined;
3527
+ updatedAtLocation?: {
3528
+ type: "exact";
3529
+ term: string | {
3530
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3531
+ };
3532
+ } | {
3533
+ type: "within";
3534
+ location: string | {
3535
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3536
+ };
3537
+ } | undefined;
3538
+ updatedBy?: {
3539
+ type: "exact";
3540
+ term: string | {
3541
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3542
+ };
3543
+ } | undefined;
3544
+ flags?: ({
3545
+ type: "anyOf";
3546
+ terms: string[];
3547
+ } | {
3548
+ type: "not";
3549
+ term: string;
3550
+ })[] | undefined;
3551
+ eventType?: string | undefined;
3552
+ }[];
3553
+ };
3554
+ slug: string;
3555
+ 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";
3556
+ columns?: {
3557
+ value: {
3558
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
3559
+ };
3560
+ label: {
3561
+ id: string;
3562
+ description: string;
3563
+ defaultMessage: string;
3564
+ };
3565
+ }[] | undefined;
48
3566
  }>;
49
3567
  export type WorkqueueConfig = z.infer<typeof WorkqueueConfig>;
50
- export type WorkqueueConfigInput = z.input<typeof WorkqueueConfig>;
51
- export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
3568
+ export type WorkqueueConfigInput = z.input<typeof WorkqueueConfigInput>;
3569
+ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
52
3570
  name: TranslationConfig;
53
3571
  actions: {
54
- type: string;
3572
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
55
3573
  conditionals?: import(".").JSONSchema[] | undefined;
56
3574
  }[];
57
- query: string;
3575
+ query: {
3576
+ type: "or";
3577
+ clauses: {
3578
+ status?: {
3579
+ type: "exact";
3580
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3581
+ } | {
3582
+ type: "anyOf";
3583
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3584
+ } | undefined;
3585
+ data?: any;
3586
+ createdAt?: {
3587
+ type: "exact";
3588
+ term: string;
3589
+ } | {
3590
+ type: "range";
3591
+ gte: string;
3592
+ lte: string;
3593
+ } | undefined;
3594
+ createdBy?: {
3595
+ type: "exact";
3596
+ term: string | {
3597
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3598
+ };
3599
+ } | undefined;
3600
+ createdAtLocation?: {
3601
+ type: "exact";
3602
+ term: string | {
3603
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3604
+ };
3605
+ } | {
3606
+ type: "within";
3607
+ location: string | {
3608
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3609
+ };
3610
+ } | undefined;
3611
+ assignedTo?: {
3612
+ type: "exact";
3613
+ term: string | {
3614
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3615
+ };
3616
+ } | undefined;
3617
+ updatedAt?: {
3618
+ type: "exact";
3619
+ term: string;
3620
+ } | {
3621
+ type: "range";
3622
+ gte: string;
3623
+ lte: string;
3624
+ } | undefined;
3625
+ trackingId?: {
3626
+ type: "exact";
3627
+ term: string;
3628
+ } | undefined;
3629
+ updatedAtLocation?: {
3630
+ type: "exact";
3631
+ term: string | {
3632
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3633
+ };
3634
+ } | {
3635
+ type: "within";
3636
+ location: string | {
3637
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3638
+ };
3639
+ } | undefined;
3640
+ updatedBy?: {
3641
+ type: "exact";
3642
+ term: string | {
3643
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3644
+ };
3645
+ } | undefined;
3646
+ flags?: ({
3647
+ type: "anyOf";
3648
+ terms: string[];
3649
+ } | {
3650
+ type: "not";
3651
+ term: string;
3652
+ })[] | undefined;
3653
+ eventType?: string | undefined;
3654
+ }[];
3655
+ } | {
3656
+ type: "and";
3657
+ clauses: {
3658
+ status?: {
3659
+ type: "exact";
3660
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3661
+ } | {
3662
+ type: "anyOf";
3663
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3664
+ } | undefined;
3665
+ data?: any;
3666
+ createdAt?: {
3667
+ type: "exact";
3668
+ term: string;
3669
+ } | {
3670
+ type: "range";
3671
+ gte: string;
3672
+ lte: string;
3673
+ } | undefined;
3674
+ createdBy?: {
3675
+ type: "exact";
3676
+ term: string | {
3677
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3678
+ };
3679
+ } | undefined;
3680
+ createdAtLocation?: {
3681
+ type: "exact";
3682
+ term: string | {
3683
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3684
+ };
3685
+ } | {
3686
+ type: "within";
3687
+ location: string | {
3688
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3689
+ };
3690
+ } | undefined;
3691
+ assignedTo?: {
3692
+ type: "exact";
3693
+ term: string | {
3694
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3695
+ };
3696
+ } | undefined;
3697
+ updatedAt?: {
3698
+ type: "exact";
3699
+ term: string;
3700
+ } | {
3701
+ type: "range";
3702
+ gte: string;
3703
+ lte: string;
3704
+ } | undefined;
3705
+ trackingId?: {
3706
+ type: "exact";
3707
+ term: string;
3708
+ } | undefined;
3709
+ updatedAtLocation?: {
3710
+ type: "exact";
3711
+ term: string | {
3712
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3713
+ };
3714
+ } | {
3715
+ type: "within";
3716
+ location: string | {
3717
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3718
+ };
3719
+ } | undefined;
3720
+ updatedBy?: {
3721
+ type: "exact";
3722
+ term: string | {
3723
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3724
+ };
3725
+ } | undefined;
3726
+ flags?: ({
3727
+ type: "anyOf";
3728
+ terms: string[];
3729
+ } | {
3730
+ type: "not";
3731
+ term: string;
3732
+ })[] | undefined;
3733
+ eventType?: string | undefined;
3734
+ }[];
3735
+ };
58
3736
  slug: string;
3737
+ columns: {
3738
+ value: {
3739
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
3740
+ };
3741
+ label: TranslationConfig;
3742
+ }[];
3743
+ 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";
3744
+ };
3745
+ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
3746
+ name: TranslationConfig;
3747
+ actions: {
3748
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "PRINT_CERTIFICATE" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3749
+ conditionals?: import(".").JSONSchema[] | undefined;
3750
+ }[];
3751
+ query: {
3752
+ type: "or";
3753
+ clauses: {
3754
+ status?: {
3755
+ type: "exact";
3756
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3757
+ } | {
3758
+ type: "anyOf";
3759
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3760
+ } | undefined;
3761
+ data?: any;
3762
+ createdAt?: {
3763
+ type: "exact";
3764
+ term: string;
3765
+ } | {
3766
+ type: "range";
3767
+ gte: string;
3768
+ lte: string;
3769
+ } | undefined;
3770
+ createdBy?: {
3771
+ type: "exact";
3772
+ term: string | {
3773
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3774
+ };
3775
+ } | undefined;
3776
+ createdAtLocation?: {
3777
+ type: "exact";
3778
+ term: string | {
3779
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3780
+ };
3781
+ } | {
3782
+ type: "within";
3783
+ location: string | {
3784
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3785
+ };
3786
+ } | undefined;
3787
+ assignedTo?: {
3788
+ type: "exact";
3789
+ term: string | {
3790
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3791
+ };
3792
+ } | undefined;
3793
+ updatedAt?: {
3794
+ type: "exact";
3795
+ term: string;
3796
+ } | {
3797
+ type: "range";
3798
+ gte: string;
3799
+ lte: string;
3800
+ } | undefined;
3801
+ trackingId?: {
3802
+ type: "exact";
3803
+ term: string;
3804
+ } | undefined;
3805
+ updatedAtLocation?: {
3806
+ type: "exact";
3807
+ term: string | {
3808
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3809
+ };
3810
+ } | {
3811
+ type: "within";
3812
+ location: string | {
3813
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3814
+ };
3815
+ } | undefined;
3816
+ updatedBy?: {
3817
+ type: "exact";
3818
+ term: string | {
3819
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3820
+ };
3821
+ } | undefined;
3822
+ flags?: ({
3823
+ type: "anyOf";
3824
+ terms: string[];
3825
+ } | {
3826
+ type: "not";
3827
+ term: string;
3828
+ })[] | undefined;
3829
+ eventType?: string | undefined;
3830
+ }[];
3831
+ } | {
3832
+ type: "and";
3833
+ clauses: {
3834
+ status?: {
3835
+ type: "exact";
3836
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3837
+ } | {
3838
+ type: "anyOf";
3839
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3840
+ } | undefined;
3841
+ data?: any;
3842
+ createdAt?: {
3843
+ type: "exact";
3844
+ term: string;
3845
+ } | {
3846
+ type: "range";
3847
+ gte: string;
3848
+ lte: string;
3849
+ } | undefined;
3850
+ createdBy?: {
3851
+ type: "exact";
3852
+ term: string | {
3853
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3854
+ };
3855
+ } | undefined;
3856
+ createdAtLocation?: {
3857
+ type: "exact";
3858
+ term: string | {
3859
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3860
+ };
3861
+ } | {
3862
+ type: "within";
3863
+ location: string | {
3864
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3865
+ };
3866
+ } | undefined;
3867
+ assignedTo?: {
3868
+ type: "exact";
3869
+ term: string | {
3870
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3871
+ };
3872
+ } | undefined;
3873
+ updatedAt?: {
3874
+ type: "exact";
3875
+ term: string;
3876
+ } | {
3877
+ type: "range";
3878
+ gte: string;
3879
+ lte: string;
3880
+ } | undefined;
3881
+ trackingId?: {
3882
+ type: "exact";
3883
+ term: string;
3884
+ } | undefined;
3885
+ updatedAtLocation?: {
3886
+ type: "exact";
3887
+ term: string | {
3888
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3889
+ };
3890
+ } | {
3891
+ type: "within";
3892
+ location: string | {
3893
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3894
+ };
3895
+ } | undefined;
3896
+ updatedBy?: {
3897
+ type: "exact";
3898
+ term: string | {
3899
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
3900
+ };
3901
+ } | undefined;
3902
+ flags?: ({
3903
+ type: "anyOf";
3904
+ terms: string[];
3905
+ } | {
3906
+ type: "not";
3907
+ term: string;
3908
+ })[] | undefined;
3909
+ eventType?: string | undefined;
3910
+ }[];
3911
+ };
3912
+ slug: string;
3913
+ columns: {
3914
+ value: {
3915
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
3916
+ };
3917
+ label: TranslationConfig;
3918
+ }[];
3919
+ 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";
59
3920
  }[];
3921
+ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
3922
+ slug: z.ZodString;
3923
+ query: z.ZodObject<{
3924
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
3925
+ clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
3926
+ eventType: z.ZodOptional<z.ZodString>;
3927
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3928
+ type: z.ZodLiteral<"anyOf">;
3929
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
3930
+ }, "strip", z.ZodTypeAny, {
3931
+ type: "anyOf";
3932
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3933
+ }, {
3934
+ type: "anyOf";
3935
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3936
+ }>, z.ZodObject<{
3937
+ type: z.ZodLiteral<"exact">;
3938
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
3939
+ }, "strip", z.ZodTypeAny, {
3940
+ type: "exact";
3941
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3942
+ }, {
3943
+ type: "exact";
3944
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3945
+ }>]>>>;
3946
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3947
+ type: z.ZodLiteral<"exact">;
3948
+ term: z.ZodString;
3949
+ }, "strip", z.ZodTypeAny, {
3950
+ type: "exact";
3951
+ term: string;
3952
+ }, {
3953
+ type: "exact";
3954
+ term: string;
3955
+ }>, z.ZodObject<{
3956
+ type: z.ZodLiteral<"range">;
3957
+ gte: z.ZodString;
3958
+ lte: z.ZodString;
3959
+ }, "strip", z.ZodTypeAny, {
3960
+ type: "range";
3961
+ gte: string;
3962
+ lte: string;
3963
+ }, {
3964
+ type: "range";
3965
+ gte: string;
3966
+ lte: string;
3967
+ }>]>>>;
3968
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3969
+ type: z.ZodLiteral<"exact">;
3970
+ term: z.ZodString;
3971
+ }, "strip", z.ZodTypeAny, {
3972
+ type: "exact";
3973
+ term: string;
3974
+ }, {
3975
+ type: "exact";
3976
+ term: string;
3977
+ }>, z.ZodObject<{
3978
+ type: z.ZodLiteral<"range">;
3979
+ gte: z.ZodString;
3980
+ lte: z.ZodString;
3981
+ }, "strip", z.ZodTypeAny, {
3982
+ type: "range";
3983
+ gte: string;
3984
+ lte: string;
3985
+ }, {
3986
+ type: "range";
3987
+ gte: string;
3988
+ lte: string;
3989
+ }>]>>>;
3990
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3991
+ type: z.ZodLiteral<"exact">;
3992
+ term: z.ZodString;
3993
+ }, "strip", z.ZodTypeAny, {
3994
+ type: "exact";
3995
+ term: string;
3996
+ }, {
3997
+ type: "exact";
3998
+ term: string;
3999
+ }>, z.ZodObject<{
4000
+ type: z.ZodLiteral<"range">;
4001
+ gte: z.ZodString;
4002
+ lte: z.ZodString;
4003
+ }, "strip", z.ZodTypeAny, {
4004
+ type: "range";
4005
+ gte: string;
4006
+ lte: string;
4007
+ }, {
4008
+ type: "range";
4009
+ gte: string;
4010
+ lte: string;
4011
+ }>]>>>;
4012
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4013
+ type: z.ZodLiteral<"within">;
4014
+ location: z.ZodString;
4015
+ }, "strip", z.ZodTypeAny, {
4016
+ type: "within";
4017
+ location: string;
4018
+ }, {
4019
+ type: "within";
4020
+ location: string;
4021
+ }>, z.ZodObject<{
4022
+ type: z.ZodLiteral<"exact">;
4023
+ term: z.ZodString;
4024
+ }, "strip", z.ZodTypeAny, {
4025
+ type: "exact";
4026
+ term: string;
4027
+ }, {
4028
+ type: "exact";
4029
+ term: string;
4030
+ }>]>>>;
4031
+ 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
4032
+ type: z.ZodLiteral<"exact">;
4033
+ term: z.ZodString;
4034
+ }, "strip", z.ZodTypeAny, {
4035
+ type: "exact";
4036
+ term: string;
4037
+ }, {
4038
+ type: "exact";
4039
+ term: string;
4040
+ }>>>;
4041
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4042
+ type: z.ZodLiteral<"within">;
4043
+ location: z.ZodString;
4044
+ }, "strip", z.ZodTypeAny, {
4045
+ type: "within";
4046
+ location: string;
4047
+ }, {
4048
+ type: "within";
4049
+ location: string;
4050
+ }>, z.ZodObject<{
4051
+ type: z.ZodLiteral<"exact">;
4052
+ term: z.ZodString;
4053
+ }, "strip", z.ZodTypeAny, {
4054
+ type: "exact";
4055
+ term: string;
4056
+ }, {
4057
+ type: "exact";
4058
+ term: string;
4059
+ }>]>>>;
4060
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4061
+ type: z.ZodLiteral<"within">;
4062
+ location: z.ZodString;
4063
+ }, "strip", z.ZodTypeAny, {
4064
+ type: "within";
4065
+ location: string;
4066
+ }, {
4067
+ type: "within";
4068
+ location: string;
4069
+ }>, z.ZodObject<{
4070
+ type: z.ZodLiteral<"exact">;
4071
+ term: z.ZodString;
4072
+ }, "strip", z.ZodTypeAny, {
4073
+ type: "exact";
4074
+ term: string;
4075
+ }, {
4076
+ type: "exact";
4077
+ term: string;
4078
+ }>]>>>;
4079
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
4080
+ type: z.ZodLiteral<"exact">;
4081
+ term: z.ZodString;
4082
+ }, "strip", z.ZodTypeAny, {
4083
+ type: "exact";
4084
+ term: string;
4085
+ }, {
4086
+ type: "exact";
4087
+ term: string;
4088
+ }>>>;
4089
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
4090
+ type: z.ZodLiteral<"exact">;
4091
+ term: z.ZodString;
4092
+ }, "strip", z.ZodTypeAny, {
4093
+ type: "exact";
4094
+ term: string;
4095
+ }, {
4096
+ type: "exact";
4097
+ term: string;
4098
+ }>>>;
4099
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
4100
+ type: z.ZodLiteral<"exact">;
4101
+ term: z.ZodString;
4102
+ }, "strip", z.ZodTypeAny, {
4103
+ type: "exact";
4104
+ term: string;
4105
+ }, {
4106
+ type: "exact";
4107
+ term: string;
4108
+ }>>>;
4109
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
4110
+ type: z.ZodLiteral<"exact">;
4111
+ term: z.ZodString;
4112
+ }, "strip", z.ZodTypeAny, {
4113
+ type: "exact";
4114
+ term: string;
4115
+ }, {
4116
+ type: "exact";
4117
+ term: string;
4118
+ }>>>;
4119
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
4120
+ type: z.ZodLiteral<"anyOf">;
4121
+ terms: z.ZodArray<z.ZodString, "many">;
4122
+ }, "strip", z.ZodTypeAny, {
4123
+ type: "anyOf";
4124
+ terms: string[];
4125
+ }, {
4126
+ type: "anyOf";
4127
+ terms: string[];
4128
+ }>, z.ZodObject<{
4129
+ type: z.ZodLiteral<"not">;
4130
+ term: z.ZodString;
4131
+ }, "strip", z.ZodTypeAny, {
4132
+ type: "not";
4133
+ term: string;
4134
+ }, {
4135
+ type: "not";
4136
+ term: string;
4137
+ }>]>, "many">>>;
4138
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
4139
+ }, "strip", z.ZodTypeAny, {
4140
+ status?: {
4141
+ type: "exact";
4142
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
4143
+ } | {
4144
+ type: "anyOf";
4145
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4146
+ } | undefined;
4147
+ data?: any;
4148
+ createdAt?: {
4149
+ type: "exact";
4150
+ term: string;
4151
+ } | {
4152
+ type: "range";
4153
+ gte: string;
4154
+ lte: string;
4155
+ } | undefined;
4156
+ createdBy?: {
4157
+ type: "exact";
4158
+ term: string;
4159
+ } | undefined;
4160
+ createdAtLocation?: {
4161
+ type: "exact";
4162
+ term: string;
4163
+ } | {
4164
+ type: "within";
4165
+ location: string;
4166
+ } | undefined;
4167
+ assignedTo?: {
4168
+ type: "exact";
4169
+ term: string;
4170
+ } | undefined;
4171
+ updatedAt?: {
4172
+ type: "exact";
4173
+ term: string;
4174
+ } | {
4175
+ type: "range";
4176
+ gte: string;
4177
+ lte: string;
4178
+ } | undefined;
4179
+ trackingId?: {
4180
+ type: "exact";
4181
+ term: string;
4182
+ } | undefined;
4183
+ updatedAtLocation?: {
4184
+ type: "exact";
4185
+ term: string;
4186
+ } | {
4187
+ type: "within";
4188
+ location: string;
4189
+ } | undefined;
4190
+ updatedBy?: {
4191
+ type: "exact";
4192
+ term: string;
4193
+ } | undefined;
4194
+ flags?: ({
4195
+ type: "anyOf";
4196
+ terms: string[];
4197
+ } | {
4198
+ type: "not";
4199
+ term: string;
4200
+ })[] | undefined;
4201
+ eventType?: string | undefined;
4202
+ 'legalStatus.REGISTERED.createdAt'?: {
4203
+ type: "exact";
4204
+ term: string;
4205
+ } | {
4206
+ type: "range";
4207
+ gte: string;
4208
+ lte: string;
4209
+ } | undefined;
4210
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
4211
+ type: "exact";
4212
+ term: string;
4213
+ } | {
4214
+ type: "within";
4215
+ location: string;
4216
+ } | undefined;
4217
+ 'legalStatus.REGISTERED.registrationNumber'?: {
4218
+ type: "exact";
4219
+ term: string;
4220
+ } | undefined;
4221
+ }, {
4222
+ status?: {
4223
+ type: "exact";
4224
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
4225
+ } | {
4226
+ type: "anyOf";
4227
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4228
+ } | undefined;
4229
+ data?: any;
4230
+ createdAt?: {
4231
+ type: "exact";
4232
+ term: string;
4233
+ } | {
4234
+ type: "range";
4235
+ gte: string;
4236
+ lte: string;
4237
+ } | undefined;
4238
+ createdBy?: {
4239
+ type: "exact";
4240
+ term: string;
4241
+ } | undefined;
4242
+ createdAtLocation?: {
4243
+ type: "exact";
4244
+ term: string;
4245
+ } | {
4246
+ type: "within";
4247
+ location: string;
4248
+ } | undefined;
4249
+ assignedTo?: {
4250
+ type: "exact";
4251
+ term: string;
4252
+ } | undefined;
4253
+ updatedAt?: {
4254
+ type: "exact";
4255
+ term: string;
4256
+ } | {
4257
+ type: "range";
4258
+ gte: string;
4259
+ lte: string;
4260
+ } | undefined;
4261
+ trackingId?: {
4262
+ type: "exact";
4263
+ term: string;
4264
+ } | undefined;
4265
+ updatedAtLocation?: {
4266
+ type: "exact";
4267
+ term: string;
4268
+ } | {
4269
+ type: "within";
4270
+ location: string;
4271
+ } | undefined;
4272
+ updatedBy?: {
4273
+ type: "exact";
4274
+ term: string;
4275
+ } | undefined;
4276
+ flags?: ({
4277
+ type: "anyOf";
4278
+ terms: string[];
4279
+ } | {
4280
+ type: "not";
4281
+ term: string;
4282
+ })[] | undefined;
4283
+ eventType?: string | undefined;
4284
+ 'legalStatus.REGISTERED.createdAt'?: {
4285
+ type: "exact";
4286
+ term: string;
4287
+ } | {
4288
+ type: "range";
4289
+ gte: string;
4290
+ lte: string;
4291
+ } | undefined;
4292
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
4293
+ type: "exact";
4294
+ term: string;
4295
+ } | {
4296
+ type: "within";
4297
+ location: string;
4298
+ } | undefined;
4299
+ 'legalStatus.REGISTERED.registrationNumber'?: {
4300
+ type: "exact";
4301
+ term: string;
4302
+ } | undefined;
4303
+ }>, "atleastone">, [{
4304
+ status?: {
4305
+ type: "exact";
4306
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
4307
+ } | {
4308
+ type: "anyOf";
4309
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4310
+ } | undefined;
4311
+ data?: any;
4312
+ createdAt?: {
4313
+ type: "exact";
4314
+ term: string;
4315
+ } | {
4316
+ type: "range";
4317
+ gte: string;
4318
+ lte: string;
4319
+ } | undefined;
4320
+ createdBy?: {
4321
+ type: "exact";
4322
+ term: string;
4323
+ } | undefined;
4324
+ createdAtLocation?: {
4325
+ type: "exact";
4326
+ term: string;
4327
+ } | {
4328
+ type: "within";
4329
+ location: string;
4330
+ } | undefined;
4331
+ assignedTo?: {
4332
+ type: "exact";
4333
+ term: string;
4334
+ } | undefined;
4335
+ updatedAt?: {
4336
+ type: "exact";
4337
+ term: string;
4338
+ } | {
4339
+ type: "range";
4340
+ gte: string;
4341
+ lte: string;
4342
+ } | undefined;
4343
+ trackingId?: {
4344
+ type: "exact";
4345
+ term: string;
4346
+ } | undefined;
4347
+ updatedAtLocation?: {
4348
+ type: "exact";
4349
+ term: string;
4350
+ } | {
4351
+ type: "within";
4352
+ location: string;
4353
+ } | undefined;
4354
+ updatedBy?: {
4355
+ type: "exact";
4356
+ term: string;
4357
+ } | undefined;
4358
+ flags?: ({
4359
+ type: "anyOf";
4360
+ terms: string[];
4361
+ } | {
4362
+ type: "not";
4363
+ term: string;
4364
+ })[] | undefined;
4365
+ eventType?: string | undefined;
4366
+ 'legalStatus.REGISTERED.createdAt'?: {
4367
+ type: "exact";
4368
+ term: string;
4369
+ } | {
4370
+ type: "range";
4371
+ gte: string;
4372
+ lte: string;
4373
+ } | undefined;
4374
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
4375
+ type: "exact";
4376
+ term: string;
4377
+ } | {
4378
+ type: "within";
4379
+ location: string;
4380
+ } | undefined;
4381
+ 'legalStatus.REGISTERED.registrationNumber'?: {
4382
+ type: "exact";
4383
+ term: string;
4384
+ } | undefined;
4385
+ }, ...{
4386
+ status?: {
4387
+ type: "exact";
4388
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
4389
+ } | {
4390
+ type: "anyOf";
4391
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4392
+ } | undefined;
4393
+ data?: any;
4394
+ createdAt?: {
4395
+ type: "exact";
4396
+ term: string;
4397
+ } | {
4398
+ type: "range";
4399
+ gte: string;
4400
+ lte: string;
4401
+ } | undefined;
4402
+ createdBy?: {
4403
+ type: "exact";
4404
+ term: string;
4405
+ } | undefined;
4406
+ createdAtLocation?: {
4407
+ type: "exact";
4408
+ term: string;
4409
+ } | {
4410
+ type: "within";
4411
+ location: string;
4412
+ } | undefined;
4413
+ assignedTo?: {
4414
+ type: "exact";
4415
+ term: string;
4416
+ } | undefined;
4417
+ updatedAt?: {
4418
+ type: "exact";
4419
+ term: string;
4420
+ } | {
4421
+ type: "range";
4422
+ gte: string;
4423
+ lte: string;
4424
+ } | undefined;
4425
+ trackingId?: {
4426
+ type: "exact";
4427
+ term: string;
4428
+ } | undefined;
4429
+ updatedAtLocation?: {
4430
+ type: "exact";
4431
+ term: string;
4432
+ } | {
4433
+ type: "within";
4434
+ location: string;
4435
+ } | undefined;
4436
+ updatedBy?: {
4437
+ type: "exact";
4438
+ term: string;
4439
+ } | undefined;
4440
+ flags?: ({
4441
+ type: "anyOf";
4442
+ terms: string[];
4443
+ } | {
4444
+ type: "not";
4445
+ term: string;
4446
+ })[] | undefined;
4447
+ eventType?: string | undefined;
4448
+ 'legalStatus.REGISTERED.createdAt'?: {
4449
+ type: "exact";
4450
+ term: string;
4451
+ } | {
4452
+ type: "range";
4453
+ gte: string;
4454
+ lte: string;
4455
+ } | undefined;
4456
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
4457
+ type: "exact";
4458
+ term: string;
4459
+ } | {
4460
+ type: "within";
4461
+ location: string;
4462
+ } | undefined;
4463
+ 'legalStatus.REGISTERED.registrationNumber'?: {
4464
+ type: "exact";
4465
+ term: string;
4466
+ } | undefined;
4467
+ }[]], unknown>;
4468
+ }, "strip", z.ZodTypeAny, {
4469
+ type: "and" | "or";
4470
+ clauses: [{
4471
+ status?: {
4472
+ type: "exact";
4473
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
4474
+ } | {
4475
+ type: "anyOf";
4476
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4477
+ } | undefined;
4478
+ data?: any;
4479
+ createdAt?: {
4480
+ type: "exact";
4481
+ term: string;
4482
+ } | {
4483
+ type: "range";
4484
+ gte: string;
4485
+ lte: string;
4486
+ } | undefined;
4487
+ createdBy?: {
4488
+ type: "exact";
4489
+ term: string;
4490
+ } | undefined;
4491
+ createdAtLocation?: {
4492
+ type: "exact";
4493
+ term: string;
4494
+ } | {
4495
+ type: "within";
4496
+ location: string;
4497
+ } | undefined;
4498
+ assignedTo?: {
4499
+ type: "exact";
4500
+ term: string;
4501
+ } | undefined;
4502
+ updatedAt?: {
4503
+ type: "exact";
4504
+ term: string;
4505
+ } | {
4506
+ type: "range";
4507
+ gte: string;
4508
+ lte: string;
4509
+ } | undefined;
4510
+ trackingId?: {
4511
+ type: "exact";
4512
+ term: string;
4513
+ } | undefined;
4514
+ updatedAtLocation?: {
4515
+ type: "exact";
4516
+ term: string;
4517
+ } | {
4518
+ type: "within";
4519
+ location: string;
4520
+ } | undefined;
4521
+ updatedBy?: {
4522
+ type: "exact";
4523
+ term: string;
4524
+ } | undefined;
4525
+ flags?: ({
4526
+ type: "anyOf";
4527
+ terms: string[];
4528
+ } | {
4529
+ type: "not";
4530
+ term: string;
4531
+ })[] | undefined;
4532
+ eventType?: string | undefined;
4533
+ 'legalStatus.REGISTERED.createdAt'?: {
4534
+ type: "exact";
4535
+ term: string;
4536
+ } | {
4537
+ type: "range";
4538
+ gte: string;
4539
+ lte: string;
4540
+ } | undefined;
4541
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
4542
+ type: "exact";
4543
+ term: string;
4544
+ } | {
4545
+ type: "within";
4546
+ location: string;
4547
+ } | undefined;
4548
+ 'legalStatus.REGISTERED.registrationNumber'?: {
4549
+ type: "exact";
4550
+ term: string;
4551
+ } | undefined;
4552
+ }, ...{
4553
+ status?: {
4554
+ type: "exact";
4555
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
4556
+ } | {
4557
+ type: "anyOf";
4558
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4559
+ } | undefined;
4560
+ data?: any;
4561
+ createdAt?: {
4562
+ type: "exact";
4563
+ term: string;
4564
+ } | {
4565
+ type: "range";
4566
+ gte: string;
4567
+ lte: string;
4568
+ } | undefined;
4569
+ createdBy?: {
4570
+ type: "exact";
4571
+ term: string;
4572
+ } | undefined;
4573
+ createdAtLocation?: {
4574
+ type: "exact";
4575
+ term: string;
4576
+ } | {
4577
+ type: "within";
4578
+ location: string;
4579
+ } | undefined;
4580
+ assignedTo?: {
4581
+ type: "exact";
4582
+ term: string;
4583
+ } | undefined;
4584
+ updatedAt?: {
4585
+ type: "exact";
4586
+ term: string;
4587
+ } | {
4588
+ type: "range";
4589
+ gte: string;
4590
+ lte: string;
4591
+ } | undefined;
4592
+ trackingId?: {
4593
+ type: "exact";
4594
+ term: string;
4595
+ } | undefined;
4596
+ updatedAtLocation?: {
4597
+ type: "exact";
4598
+ term: string;
4599
+ } | {
4600
+ type: "within";
4601
+ location: string;
4602
+ } | undefined;
4603
+ updatedBy?: {
4604
+ type: "exact";
4605
+ term: string;
4606
+ } | undefined;
4607
+ flags?: ({
4608
+ type: "anyOf";
4609
+ terms: string[];
4610
+ } | {
4611
+ type: "not";
4612
+ term: string;
4613
+ })[] | undefined;
4614
+ eventType?: string | undefined;
4615
+ 'legalStatus.REGISTERED.createdAt'?: {
4616
+ type: "exact";
4617
+ term: string;
4618
+ } | {
4619
+ type: "range";
4620
+ gte: string;
4621
+ lte: string;
4622
+ } | undefined;
4623
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
4624
+ type: "exact";
4625
+ term: string;
4626
+ } | {
4627
+ type: "within";
4628
+ location: string;
4629
+ } | undefined;
4630
+ 'legalStatus.REGISTERED.registrationNumber'?: {
4631
+ type: "exact";
4632
+ term: string;
4633
+ } | undefined;
4634
+ }[]];
4635
+ }, {
4636
+ type: "and" | "or";
4637
+ clauses?: unknown;
4638
+ }>;
4639
+ }, "strip", z.ZodTypeAny, {
4640
+ query: {
4641
+ type: "and" | "or";
4642
+ clauses: [{
4643
+ status?: {
4644
+ type: "exact";
4645
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
4646
+ } | {
4647
+ type: "anyOf";
4648
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4649
+ } | undefined;
4650
+ data?: any;
4651
+ createdAt?: {
4652
+ type: "exact";
4653
+ term: string;
4654
+ } | {
4655
+ type: "range";
4656
+ gte: string;
4657
+ lte: string;
4658
+ } | undefined;
4659
+ createdBy?: {
4660
+ type: "exact";
4661
+ term: string;
4662
+ } | undefined;
4663
+ createdAtLocation?: {
4664
+ type: "exact";
4665
+ term: string;
4666
+ } | {
4667
+ type: "within";
4668
+ location: string;
4669
+ } | undefined;
4670
+ assignedTo?: {
4671
+ type: "exact";
4672
+ term: string;
4673
+ } | undefined;
4674
+ updatedAt?: {
4675
+ type: "exact";
4676
+ term: string;
4677
+ } | {
4678
+ type: "range";
4679
+ gte: string;
4680
+ lte: string;
4681
+ } | undefined;
4682
+ trackingId?: {
4683
+ type: "exact";
4684
+ term: string;
4685
+ } | undefined;
4686
+ updatedAtLocation?: {
4687
+ type: "exact";
4688
+ term: string;
4689
+ } | {
4690
+ type: "within";
4691
+ location: string;
4692
+ } | undefined;
4693
+ updatedBy?: {
4694
+ type: "exact";
4695
+ term: string;
4696
+ } | undefined;
4697
+ flags?: ({
4698
+ type: "anyOf";
4699
+ terms: string[];
4700
+ } | {
4701
+ type: "not";
4702
+ term: string;
4703
+ })[] | undefined;
4704
+ eventType?: string | undefined;
4705
+ 'legalStatus.REGISTERED.createdAt'?: {
4706
+ type: "exact";
4707
+ term: string;
4708
+ } | {
4709
+ type: "range";
4710
+ gte: string;
4711
+ lte: string;
4712
+ } | undefined;
4713
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
4714
+ type: "exact";
4715
+ term: string;
4716
+ } | {
4717
+ type: "within";
4718
+ location: string;
4719
+ } | undefined;
4720
+ 'legalStatus.REGISTERED.registrationNumber'?: {
4721
+ type: "exact";
4722
+ term: string;
4723
+ } | undefined;
4724
+ }, ...{
4725
+ status?: {
4726
+ type: "exact";
4727
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
4728
+ } | {
4729
+ type: "anyOf";
4730
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4731
+ } | undefined;
4732
+ data?: any;
4733
+ createdAt?: {
4734
+ type: "exact";
4735
+ term: string;
4736
+ } | {
4737
+ type: "range";
4738
+ gte: string;
4739
+ lte: string;
4740
+ } | undefined;
4741
+ createdBy?: {
4742
+ type: "exact";
4743
+ term: string;
4744
+ } | undefined;
4745
+ createdAtLocation?: {
4746
+ type: "exact";
4747
+ term: string;
4748
+ } | {
4749
+ type: "within";
4750
+ location: string;
4751
+ } | undefined;
4752
+ assignedTo?: {
4753
+ type: "exact";
4754
+ term: string;
4755
+ } | undefined;
4756
+ updatedAt?: {
4757
+ type: "exact";
4758
+ term: string;
4759
+ } | {
4760
+ type: "range";
4761
+ gte: string;
4762
+ lte: string;
4763
+ } | undefined;
4764
+ trackingId?: {
4765
+ type: "exact";
4766
+ term: string;
4767
+ } | undefined;
4768
+ updatedAtLocation?: {
4769
+ type: "exact";
4770
+ term: string;
4771
+ } | {
4772
+ type: "within";
4773
+ location: string;
4774
+ } | undefined;
4775
+ updatedBy?: {
4776
+ type: "exact";
4777
+ term: string;
4778
+ } | undefined;
4779
+ flags?: ({
4780
+ type: "anyOf";
4781
+ terms: string[];
4782
+ } | {
4783
+ type: "not";
4784
+ term: string;
4785
+ })[] | undefined;
4786
+ eventType?: string | undefined;
4787
+ 'legalStatus.REGISTERED.createdAt'?: {
4788
+ type: "exact";
4789
+ term: string;
4790
+ } | {
4791
+ type: "range";
4792
+ gte: string;
4793
+ lte: string;
4794
+ } | undefined;
4795
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
4796
+ type: "exact";
4797
+ term: string;
4798
+ } | {
4799
+ type: "within";
4800
+ location: string;
4801
+ } | undefined;
4802
+ 'legalStatus.REGISTERED.registrationNumber'?: {
4803
+ type: "exact";
4804
+ term: string;
4805
+ } | undefined;
4806
+ }[]];
4807
+ };
4808
+ slug: string;
4809
+ }, {
4810
+ query: {
4811
+ type: "and" | "or";
4812
+ clauses?: unknown;
4813
+ };
4814
+ slug: string;
4815
+ }>, "many">;
4816
+ export type WorkqueueCountInput = z.infer<typeof WorkqueueCountInput>;
4817
+ export declare const WorkqueueCountOutput: z.ZodRecord<z.ZodString, z.ZodNumber>;
4818
+ export type WorkqueueCountOutput = z.infer<typeof WorkqueueCountOutput>;
60
4819
  //# sourceMappingURL=WorkqueueConfig.d.ts.map