@opencrvs/toolkit 1.8.0-rc.ff0a1b5 → 1.8.0-rc.ff1f8e0

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