@opencrvs/toolkit 1.8.0-rc.ff0b26c → 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 (34) hide show
  1. package/dist/commons/api/router.d.ts +2356 -1097
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -6
  3. package/dist/commons/events/ActionConfig.d.ts +15774 -7797
  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/Constants.d.ts +2 -0
  7. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  8. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  9. package/dist/commons/events/Draft.d.ts +29 -24
  10. package/dist/commons/events/EventConfig.d.ts +13649 -9488
  11. package/dist/commons/events/EventDocument.d.ts +386 -267
  12. package/dist/commons/events/EventIndex.d.ts +209 -605
  13. package/dist/commons/events/EventInput.d.ts +0 -13
  14. package/dist/commons/events/EventMetadata.d.ts +71 -48
  15. package/dist/commons/events/FieldConfig.d.ts +486 -440
  16. package/dist/commons/events/FieldTypeMapping.d.ts +5 -2
  17. package/dist/commons/events/FieldValue.d.ts +2 -0
  18. package/dist/commons/events/FormConfig.d.ts +3346 -3052
  19. package/dist/commons/events/PageConfig.d.ts +750 -680
  20. package/dist/commons/events/User.d.ts +31 -7
  21. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  22. package/dist/commons/events/WorkqueueConfig.d.ts +3460 -485
  23. package/dist/commons/events/defineConfig.d.ts +1381 -575
  24. package/dist/commons/events/event.d.ts +2 -2
  25. package/dist/commons/events/field.d.ts +4 -13
  26. package/dist/commons/events/index.d.ts +4 -0
  27. package/dist/commons/events/serializer.d.ts +2 -0
  28. package/dist/commons/events/test.utils.d.ts +26 -5
  29. package/dist/commons/events/transactions.d.ts +1 -1
  30. package/dist/commons/events/utils.d.ts +333 -296
  31. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  32. package/dist/conditionals/index.js +28 -8
  33. package/dist/events/index.js +1564 -584
  34. 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,7 +17,7 @@ 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<{
@@ -77,104 +83,143 @@ export declare const WorkqueueConfig: z.ZodObject<{
77
83
  gte: string;
78
84
  lte: string;
79
85
  }>]>>>;
80
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
81
- type: z.ZodLiteral<"exact">;
82
- term: z.ZodString;
83
- }, "strip", z.ZodTypeAny, {
84
- type: "exact";
85
- term: string;
86
- }, {
87
- type: "exact";
88
- term: string;
89
- }>, z.ZodObject<{
90
- type: z.ZodLiteral<"range">;
91
- gte: z.ZodString;
92
- lte: z.ZodString;
93
- }, "strip", z.ZodTypeAny, {
94
- type: "range";
95
- gte: string;
96
- lte: string;
97
- }, {
98
- type: "range";
99
- gte: string;
100
- lte: string;
101
- }>]>>>;
102
- 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
86
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
103
87
  type: z.ZodLiteral<"within">;
104
- 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
+ }>]>;
105
95
  }, "strip", z.ZodTypeAny, {
106
96
  type: "within";
107
- location: string;
97
+ location: string | {
98
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
99
+ };
108
100
  }, {
109
101
  type: "within";
110
- location: string;
102
+ location: string | {
103
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
104
+ };
111
105
  }>, z.ZodObject<{
112
106
  type: z.ZodLiteral<"exact">;
113
- 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
+ }>]>;
114
114
  }, "strip", z.ZodTypeAny, {
115
115
  type: "exact";
116
- term: string;
116
+ term: string | {
117
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
118
+ };
117
119
  }, {
118
120
  type: "exact";
119
- term: string;
121
+ term: string | {
122
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
123
+ };
120
124
  }>]>>>;
121
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
125
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
122
126
  type: z.ZodLiteral<"within">;
123
- 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
+ }>]>;
124
134
  }, "strip", z.ZodTypeAny, {
125
135
  type: "within";
126
- location: string;
136
+ location: string | {
137
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
138
+ };
127
139
  }, {
128
140
  type: "within";
129
- location: string;
141
+ location: string | {
142
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
143
+ };
130
144
  }>, z.ZodObject<{
131
145
  type: z.ZodLiteral<"exact">;
132
- 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
+ }>]>;
133
153
  }, "strip", z.ZodTypeAny, {
134
154
  type: "exact";
135
- term: string;
155
+ term: string | {
156
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
157
+ };
136
158
  }, {
137
159
  type: "exact";
138
- term: string;
160
+ term: string | {
161
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
162
+ };
139
163
  }>]>>>;
140
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
141
- type: z.ZodLiteral<"within">;
142
- location: z.ZodString;
143
- }, "strip", z.ZodTypeAny, {
144
- type: "within";
145
- location: string;
146
- }, {
147
- type: "within";
148
- location: string;
149
- }>, z.ZodObject<{
164
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
150
165
  type: z.ZodLiteral<"exact">;
151
- term: z.ZodString;
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
+ }>]>;
152
173
  }, "strip", z.ZodTypeAny, {
153
174
  type: "exact";
154
- term: string;
175
+ term: string | {
176
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
177
+ };
155
178
  }, {
156
179
  type: "exact";
157
- term: string;
158
- }>]>>>;
180
+ term: string | {
181
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
182
+ };
183
+ }>>>;
159
184
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
160
185
  type: z.ZodLiteral<"exact">;
161
- 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
+ }>]>;
162
193
  }, "strip", z.ZodTypeAny, {
163
194
  type: "exact";
164
- term: string;
195
+ term: string | {
196
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
197
+ };
165
198
  }, {
166
199
  type: "exact";
167
- term: string;
200
+ term: string | {
201
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
202
+ };
168
203
  }>>>;
169
204
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
170
205
  type: z.ZodLiteral<"exact">;
171
- 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
+ }>]>;
172
213
  }, "strip", z.ZodTypeAny, {
173
214
  type: "exact";
174
- term: string;
215
+ term: string | {
216
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
217
+ };
175
218
  }, {
176
219
  type: "exact";
177
- term: string;
220
+ term: string | {
221
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
222
+ };
178
223
  }>>>;
179
224
  trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
180
225
  type: z.ZodLiteral<"exact">;
@@ -225,22 +270,28 @@ export declare const WorkqueueConfig: z.ZodObject<{
225
270
  } | undefined;
226
271
  createdBy?: {
227
272
  type: "exact";
228
- term: string;
273
+ term: string | {
274
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
275
+ };
229
276
  } | undefined;
230
- updatedAt?: {
277
+ createdAtLocation?: {
231
278
  type: "exact";
232
- term: string;
279
+ term: string | {
280
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
281
+ };
233
282
  } | {
234
- type: "range";
235
- gte: string;
236
- lte: string;
283
+ type: "within";
284
+ location: string | {
285
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
286
+ };
237
287
  } | undefined;
238
- trackingId?: {
288
+ assignedTo?: {
239
289
  type: "exact";
240
- term: string;
290
+ term: string | {
291
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
292
+ };
241
293
  } | undefined;
242
- eventType?: string | undefined;
243
- 'legalStatus.REGISTERED.createdAt'?: {
294
+ updatedAt?: {
244
295
  type: "exact";
245
296
  term: string;
246
297
  } | {
@@ -248,23 +299,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
248
299
  gte: string;
249
300
  lte: string;
250
301
  } | undefined;
251
- 'legalStatus.REGISTERED.createdAtLocation'?: {
302
+ trackingId?: {
252
303
  type: "exact";
253
304
  term: string;
254
- } | {
255
- type: "within";
256
- location: string;
257
305
  } | undefined;
258
306
  updatedAtLocation?: {
259
307
  type: "exact";
260
- term: string;
308
+ term: string | {
309
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
310
+ };
261
311
  } | {
262
312
  type: "within";
263
- location: string;
313
+ location: string | {
314
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
315
+ };
264
316
  } | undefined;
265
317
  updatedBy?: {
266
318
  type: "exact";
267
- term: string;
319
+ term: string | {
320
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
321
+ };
268
322
  } | undefined;
269
323
  flags?: ({
270
324
  type: "anyOf";
@@ -273,13 +327,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
273
327
  type: "not";
274
328
  term: string;
275
329
  })[] | undefined;
276
- createAtLocation?: {
277
- type: "exact";
278
- term: string;
279
- } | {
280
- type: "within";
281
- location: string;
282
- } | undefined;
330
+ eventType?: string | undefined;
283
331
  }, {
284
332
  status?: {
285
333
  type: "exact";
@@ -299,22 +347,28 @@ export declare const WorkqueueConfig: z.ZodObject<{
299
347
  } | undefined;
300
348
  createdBy?: {
301
349
  type: "exact";
302
- term: string;
350
+ term: string | {
351
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
352
+ };
303
353
  } | undefined;
304
- updatedAt?: {
354
+ createdAtLocation?: {
305
355
  type: "exact";
306
- term: string;
356
+ term: string | {
357
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
358
+ };
307
359
  } | {
308
- type: "range";
309
- gte: string;
310
- lte: string;
360
+ type: "within";
361
+ location: string | {
362
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
363
+ };
311
364
  } | undefined;
312
- trackingId?: {
365
+ assignedTo?: {
313
366
  type: "exact";
314
- term: string;
367
+ term: string | {
368
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
369
+ };
315
370
  } | undefined;
316
- eventType?: string | undefined;
317
- 'legalStatus.REGISTERED.createdAt'?: {
371
+ updatedAt?: {
318
372
  type: "exact";
319
373
  term: string;
320
374
  } | {
@@ -322,23 +376,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
322
376
  gte: string;
323
377
  lte: string;
324
378
  } | undefined;
325
- 'legalStatus.REGISTERED.createdAtLocation'?: {
379
+ trackingId?: {
326
380
  type: "exact";
327
381
  term: string;
328
- } | {
329
- type: "within";
330
- location: string;
331
382
  } | undefined;
332
383
  updatedAtLocation?: {
333
384
  type: "exact";
334
- term: string;
385
+ term: string | {
386
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
387
+ };
335
388
  } | {
336
389
  type: "within";
337
- location: string;
390
+ location: string | {
391
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
392
+ };
338
393
  } | undefined;
339
394
  updatedBy?: {
340
395
  type: "exact";
341
- term: string;
396
+ term: string | {
397
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
398
+ };
342
399
  } | undefined;
343
400
  flags?: ({
344
401
  type: "anyOf";
@@ -347,16 +404,10 @@ export declare const WorkqueueConfig: z.ZodObject<{
347
404
  type: "not";
348
405
  term: string;
349
406
  })[] | undefined;
350
- createAtLocation?: {
351
- type: "exact";
352
- term: string;
353
- } | {
354
- type: "within";
355
- location: string;
356
- } | undefined;
407
+ eventType?: string | undefined;
357
408
  }>, "many">;
358
409
  }, "strip", z.ZodTypeAny, {
359
- type: "or";
410
+ type: "and";
360
411
  clauses: {
361
412
  status?: {
362
413
  type: "exact";
@@ -376,22 +427,28 @@ export declare const WorkqueueConfig: z.ZodObject<{
376
427
  } | undefined;
377
428
  createdBy?: {
378
429
  type: "exact";
379
- term: string;
430
+ term: string | {
431
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
432
+ };
380
433
  } | undefined;
381
- updatedAt?: {
434
+ createdAtLocation?: {
382
435
  type: "exact";
383
- term: string;
436
+ term: string | {
437
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
438
+ };
384
439
  } | {
385
- type: "range";
386
- gte: string;
387
- lte: string;
440
+ type: "within";
441
+ location: string | {
442
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
443
+ };
388
444
  } | undefined;
389
- trackingId?: {
445
+ assignedTo?: {
390
446
  type: "exact";
391
- term: string;
447
+ term: string | {
448
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
449
+ };
392
450
  } | undefined;
393
- eventType?: string | undefined;
394
- 'legalStatus.REGISTERED.createdAt'?: {
451
+ updatedAt?: {
395
452
  type: "exact";
396
453
  term: string;
397
454
  } | {
@@ -399,23 +456,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
399
456
  gte: string;
400
457
  lte: string;
401
458
  } | undefined;
402
- 'legalStatus.REGISTERED.createdAtLocation'?: {
459
+ trackingId?: {
403
460
  type: "exact";
404
461
  term: string;
405
- } | {
406
- type: "within";
407
- location: string;
408
462
  } | undefined;
409
463
  updatedAtLocation?: {
410
464
  type: "exact";
411
- term: string;
465
+ term: string | {
466
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
467
+ };
412
468
  } | {
413
469
  type: "within";
414
- location: string;
470
+ location: string | {
471
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
472
+ };
415
473
  } | undefined;
416
474
  updatedBy?: {
417
475
  type: "exact";
418
- term: string;
476
+ term: string | {
477
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
478
+ };
419
479
  } | undefined;
420
480
  flags?: ({
421
481
  type: "anyOf";
@@ -424,16 +484,10 @@ export declare const WorkqueueConfig: z.ZodObject<{
424
484
  type: "not";
425
485
  term: string;
426
486
  })[] | undefined;
427
- createAtLocation?: {
428
- type: "exact";
429
- term: string;
430
- } | {
431
- type: "within";
432
- location: string;
433
- } | undefined;
487
+ eventType?: string | undefined;
434
488
  }[];
435
489
  }, {
436
- type: "or";
490
+ type: "and";
437
491
  clauses: {
438
492
  status?: {
439
493
  type: "exact";
@@ -453,22 +507,28 @@ export declare const WorkqueueConfig: z.ZodObject<{
453
507
  } | undefined;
454
508
  createdBy?: {
455
509
  type: "exact";
456
- term: string;
510
+ term: string | {
511
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
512
+ };
457
513
  } | undefined;
458
- updatedAt?: {
514
+ createdAtLocation?: {
459
515
  type: "exact";
460
- term: string;
516
+ term: string | {
517
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
518
+ };
461
519
  } | {
462
- type: "range";
463
- gte: string;
464
- lte: string;
520
+ type: "within";
521
+ location: string | {
522
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
523
+ };
465
524
  } | undefined;
466
- trackingId?: {
525
+ assignedTo?: {
467
526
  type: "exact";
468
- term: string;
527
+ term: string | {
528
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
529
+ };
469
530
  } | undefined;
470
- eventType?: string | undefined;
471
- 'legalStatus.REGISTERED.createdAt'?: {
531
+ updatedAt?: {
472
532
  type: "exact";
473
533
  term: string;
474
534
  } | {
@@ -476,23 +536,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
476
536
  gte: string;
477
537
  lte: string;
478
538
  } | undefined;
479
- 'legalStatus.REGISTERED.createdAtLocation'?: {
539
+ trackingId?: {
480
540
  type: "exact";
481
541
  term: string;
482
- } | {
483
- type: "within";
484
- location: string;
485
542
  } | undefined;
486
543
  updatedAtLocation?: {
487
544
  type: "exact";
488
- term: string;
545
+ term: string | {
546
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
547
+ };
489
548
  } | {
490
549
  type: "within";
491
- location: string;
550
+ location: string | {
551
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
552
+ };
492
553
  } | undefined;
493
554
  updatedBy?: {
494
555
  type: "exact";
495
- term: string;
556
+ term: string | {
557
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
558
+ };
496
559
  } | undefined;
497
560
  flags?: ({
498
561
  type: "anyOf";
@@ -501,16 +564,10 @@ export declare const WorkqueueConfig: z.ZodObject<{
501
564
  type: "not";
502
565
  term: string;
503
566
  })[] | undefined;
504
- createAtLocation?: {
505
- type: "exact";
506
- term: string;
507
- } | {
508
- type: "within";
509
- location: string;
510
- } | undefined;
567
+ eventType?: string | undefined;
511
568
  }[];
512
569
  }>, z.ZodObject<{
513
- type: z.ZodLiteral<"and">;
570
+ type: z.ZodLiteral<"or">;
514
571
  clauses: z.ZodArray<z.ZodObject<{
515
572
  eventType: z.ZodOptional<z.ZodString>;
516
573
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -576,104 +633,143 @@ export declare const WorkqueueConfig: z.ZodObject<{
576
633
  gte: string;
577
634
  lte: string;
578
635
  }>]>>>;
579
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
580
- type: z.ZodLiteral<"exact">;
581
- term: z.ZodString;
582
- }, "strip", z.ZodTypeAny, {
583
- type: "exact";
584
- term: string;
585
- }, {
586
- type: "exact";
587
- term: string;
588
- }>, z.ZodObject<{
589
- type: z.ZodLiteral<"range">;
590
- gte: z.ZodString;
591
- lte: z.ZodString;
592
- }, "strip", z.ZodTypeAny, {
593
- type: "range";
594
- gte: string;
595
- lte: string;
596
- }, {
597
- type: "range";
598
- gte: string;
599
- lte: string;
600
- }>]>>>;
601
- 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
636
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
602
637
  type: z.ZodLiteral<"within">;
603
- 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
+ }>]>;
604
645
  }, "strip", z.ZodTypeAny, {
605
646
  type: "within";
606
- location: string;
647
+ location: string | {
648
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
649
+ };
607
650
  }, {
608
651
  type: "within";
609
- location: string;
652
+ location: string | {
653
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
654
+ };
610
655
  }>, z.ZodObject<{
611
656
  type: z.ZodLiteral<"exact">;
612
- 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
+ }>]>;
613
664
  }, "strip", z.ZodTypeAny, {
614
665
  type: "exact";
615
- term: string;
666
+ term: string | {
667
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
668
+ };
616
669
  }, {
617
670
  type: "exact";
618
- term: string;
671
+ term: string | {
672
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
673
+ };
619
674
  }>]>>>;
620
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
675
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
621
676
  type: z.ZodLiteral<"within">;
622
- 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
+ }>]>;
623
684
  }, "strip", z.ZodTypeAny, {
624
685
  type: "within";
625
- location: string;
686
+ location: string | {
687
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
688
+ };
626
689
  }, {
627
690
  type: "within";
628
- location: string;
691
+ location: string | {
692
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
693
+ };
629
694
  }>, z.ZodObject<{
630
695
  type: z.ZodLiteral<"exact">;
631
- 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
+ }>]>;
632
703
  }, "strip", z.ZodTypeAny, {
633
704
  type: "exact";
634
- term: string;
705
+ term: string | {
706
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
707
+ };
635
708
  }, {
636
709
  type: "exact";
637
- term: string;
710
+ term: string | {
711
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
712
+ };
638
713
  }>]>>>;
639
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
640
- type: z.ZodLiteral<"within">;
641
- location: z.ZodString;
642
- }, "strip", z.ZodTypeAny, {
643
- type: "within";
644
- location: string;
645
- }, {
646
- type: "within";
647
- location: string;
648
- }>, z.ZodObject<{
714
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
649
715
  type: z.ZodLiteral<"exact">;
650
- term: z.ZodString;
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
+ }>]>;
651
723
  }, "strip", z.ZodTypeAny, {
652
724
  type: "exact";
653
- term: string;
725
+ term: string | {
726
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
727
+ };
654
728
  }, {
655
729
  type: "exact";
656
- term: string;
657
- }>]>>>;
730
+ term: string | {
731
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
732
+ };
733
+ }>>>;
658
734
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
659
735
  type: z.ZodLiteral<"exact">;
660
- 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
+ }>]>;
661
743
  }, "strip", z.ZodTypeAny, {
662
744
  type: "exact";
663
- term: string;
745
+ term: string | {
746
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
747
+ };
664
748
  }, {
665
749
  type: "exact";
666
- term: string;
750
+ term: string | {
751
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
752
+ };
667
753
  }>>>;
668
754
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
669
755
  type: z.ZodLiteral<"exact">;
670
- 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
+ }>]>;
671
763
  }, "strip", z.ZodTypeAny, {
672
764
  type: "exact";
673
- term: string;
765
+ term: string | {
766
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
767
+ };
674
768
  }, {
675
769
  type: "exact";
676
- term: string;
770
+ term: string | {
771
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
772
+ };
677
773
  }>>>;
678
774
  trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
679
775
  type: z.ZodLiteral<"exact">;
@@ -724,22 +820,28 @@ export declare const WorkqueueConfig: z.ZodObject<{
724
820
  } | undefined;
725
821
  createdBy?: {
726
822
  type: "exact";
727
- term: string;
823
+ term: string | {
824
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
825
+ };
728
826
  } | undefined;
729
- updatedAt?: {
827
+ createdAtLocation?: {
730
828
  type: "exact";
731
- term: string;
829
+ term: string | {
830
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
831
+ };
732
832
  } | {
733
- type: "range";
734
- gte: string;
735
- lte: string;
833
+ type: "within";
834
+ location: string | {
835
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
836
+ };
736
837
  } | undefined;
737
- trackingId?: {
838
+ assignedTo?: {
738
839
  type: "exact";
739
- term: string;
840
+ term: string | {
841
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
842
+ };
740
843
  } | undefined;
741
- eventType?: string | undefined;
742
- 'legalStatus.REGISTERED.createdAt'?: {
844
+ updatedAt?: {
743
845
  type: "exact";
744
846
  term: string;
745
847
  } | {
@@ -747,23 +849,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
747
849
  gte: string;
748
850
  lte: string;
749
851
  } | undefined;
750
- 'legalStatus.REGISTERED.createdAtLocation'?: {
852
+ trackingId?: {
751
853
  type: "exact";
752
854
  term: string;
753
- } | {
754
- type: "within";
755
- location: string;
756
855
  } | undefined;
757
856
  updatedAtLocation?: {
758
857
  type: "exact";
759
- term: string;
858
+ term: string | {
859
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
860
+ };
760
861
  } | {
761
862
  type: "within";
762
- location: string;
863
+ location: string | {
864
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
865
+ };
763
866
  } | undefined;
764
867
  updatedBy?: {
765
868
  type: "exact";
766
- term: string;
869
+ term: string | {
870
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
871
+ };
767
872
  } | undefined;
768
873
  flags?: ({
769
874
  type: "anyOf";
@@ -772,15 +877,9 @@ export declare const WorkqueueConfig: z.ZodObject<{
772
877
  type: "not";
773
878
  term: string;
774
879
  })[] | undefined;
775
- createAtLocation?: {
776
- type: "exact";
777
- term: string;
778
- } | {
779
- type: "within";
780
- location: string;
781
- } | undefined;
782
- }, {
783
- status?: {
880
+ eventType?: string | undefined;
881
+ }, {
882
+ status?: {
784
883
  type: "exact";
785
884
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
786
885
  } | {
@@ -798,22 +897,28 @@ export declare const WorkqueueConfig: z.ZodObject<{
798
897
  } | undefined;
799
898
  createdBy?: {
800
899
  type: "exact";
801
- term: string;
900
+ term: string | {
901
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
902
+ };
802
903
  } | undefined;
803
- updatedAt?: {
904
+ createdAtLocation?: {
804
905
  type: "exact";
805
- term: string;
906
+ term: string | {
907
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
908
+ };
806
909
  } | {
807
- type: "range";
808
- gte: string;
809
- lte: string;
910
+ type: "within";
911
+ location: string | {
912
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
913
+ };
810
914
  } | undefined;
811
- trackingId?: {
915
+ assignedTo?: {
812
916
  type: "exact";
813
- term: string;
917
+ term: string | {
918
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
919
+ };
814
920
  } | undefined;
815
- eventType?: string | undefined;
816
- 'legalStatus.REGISTERED.createdAt'?: {
921
+ updatedAt?: {
817
922
  type: "exact";
818
923
  term: string;
819
924
  } | {
@@ -821,23 +926,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
821
926
  gte: string;
822
927
  lte: string;
823
928
  } | undefined;
824
- 'legalStatus.REGISTERED.createdAtLocation'?: {
929
+ trackingId?: {
825
930
  type: "exact";
826
931
  term: string;
827
- } | {
828
- type: "within";
829
- location: string;
830
932
  } | undefined;
831
933
  updatedAtLocation?: {
832
934
  type: "exact";
833
- term: string;
935
+ term: string | {
936
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
937
+ };
834
938
  } | {
835
939
  type: "within";
836
- location: string;
940
+ location: string | {
941
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
942
+ };
837
943
  } | undefined;
838
944
  updatedBy?: {
839
945
  type: "exact";
840
- term: string;
946
+ term: string | {
947
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
948
+ };
841
949
  } | undefined;
842
950
  flags?: ({
843
951
  type: "anyOf";
@@ -846,16 +954,10 @@ export declare const WorkqueueConfig: z.ZodObject<{
846
954
  type: "not";
847
955
  term: string;
848
956
  })[] | undefined;
849
- createAtLocation?: {
850
- type: "exact";
851
- term: string;
852
- } | {
853
- type: "within";
854
- location: string;
855
- } | undefined;
957
+ eventType?: string | undefined;
856
958
  }>, "many">;
857
959
  }, "strip", z.ZodTypeAny, {
858
- type: "and";
960
+ type: "or";
859
961
  clauses: {
860
962
  status?: {
861
963
  type: "exact";
@@ -875,22 +977,28 @@ export declare const WorkqueueConfig: z.ZodObject<{
875
977
  } | undefined;
876
978
  createdBy?: {
877
979
  type: "exact";
878
- term: string;
980
+ term: string | {
981
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
982
+ };
879
983
  } | undefined;
880
- updatedAt?: {
984
+ createdAtLocation?: {
881
985
  type: "exact";
882
- term: string;
986
+ term: string | {
987
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
988
+ };
883
989
  } | {
884
- type: "range";
885
- gte: string;
886
- lte: string;
990
+ type: "within";
991
+ location: string | {
992
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
993
+ };
887
994
  } | undefined;
888
- trackingId?: {
995
+ assignedTo?: {
889
996
  type: "exact";
890
- term: string;
997
+ term: string | {
998
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
999
+ };
891
1000
  } | undefined;
892
- eventType?: string | undefined;
893
- 'legalStatus.REGISTERED.createdAt'?: {
1001
+ updatedAt?: {
894
1002
  type: "exact";
895
1003
  term: string;
896
1004
  } | {
@@ -898,23 +1006,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
898
1006
  gte: string;
899
1007
  lte: string;
900
1008
  } | undefined;
901
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1009
+ trackingId?: {
902
1010
  type: "exact";
903
1011
  term: string;
904
- } | {
905
- type: "within";
906
- location: string;
907
1012
  } | undefined;
908
1013
  updatedAtLocation?: {
909
1014
  type: "exact";
910
- term: string;
1015
+ term: string | {
1016
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1017
+ };
911
1018
  } | {
912
1019
  type: "within";
913
- location: string;
1020
+ location: string | {
1021
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1022
+ };
914
1023
  } | undefined;
915
1024
  updatedBy?: {
916
1025
  type: "exact";
917
- term: string;
1026
+ term: string | {
1027
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1028
+ };
918
1029
  } | undefined;
919
1030
  flags?: ({
920
1031
  type: "anyOf";
@@ -923,16 +1034,10 @@ export declare const WorkqueueConfig: z.ZodObject<{
923
1034
  type: "not";
924
1035
  term: string;
925
1036
  })[] | undefined;
926
- createAtLocation?: {
927
- type: "exact";
928
- term: string;
929
- } | {
930
- type: "within";
931
- location: string;
932
- } | undefined;
1037
+ eventType?: string | undefined;
933
1038
  }[];
934
1039
  }, {
935
- type: "and";
1040
+ type: "or";
936
1041
  clauses: {
937
1042
  status?: {
938
1043
  type: "exact";
@@ -952,22 +1057,28 @@ export declare const WorkqueueConfig: z.ZodObject<{
952
1057
  } | undefined;
953
1058
  createdBy?: {
954
1059
  type: "exact";
955
- term: string;
1060
+ term: string | {
1061
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1062
+ };
956
1063
  } | undefined;
957
- updatedAt?: {
1064
+ createdAtLocation?: {
958
1065
  type: "exact";
959
- term: string;
1066
+ term: string | {
1067
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1068
+ };
960
1069
  } | {
961
- type: "range";
962
- gte: string;
963
- lte: string;
1070
+ type: "within";
1071
+ location: string | {
1072
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1073
+ };
964
1074
  } | undefined;
965
- trackingId?: {
1075
+ assignedTo?: {
966
1076
  type: "exact";
967
- term: string;
1077
+ term: string | {
1078
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1079
+ };
968
1080
  } | undefined;
969
- eventType?: string | undefined;
970
- 'legalStatus.REGISTERED.createdAt'?: {
1081
+ updatedAt?: {
971
1082
  type: "exact";
972
1083
  term: string;
973
1084
  } | {
@@ -975,23 +1086,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
975
1086
  gte: string;
976
1087
  lte: string;
977
1088
  } | undefined;
978
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1089
+ trackingId?: {
979
1090
  type: "exact";
980
1091
  term: string;
981
- } | {
982
- type: "within";
983
- location: string;
984
1092
  } | undefined;
985
1093
  updatedAtLocation?: {
986
1094
  type: "exact";
987
- term: string;
1095
+ term: string | {
1096
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1097
+ };
988
1098
  } | {
989
1099
  type: "within";
990
- location: string;
1100
+ location: string | {
1101
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1102
+ };
991
1103
  } | undefined;
992
1104
  updatedBy?: {
993
1105
  type: "exact";
994
- term: string;
1106
+ term: string | {
1107
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1108
+ };
995
1109
  } | undefined;
996
1110
  flags?: ({
997
1111
  type: "anyOf";
@@ -1000,13 +1114,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
1000
1114
  type: "not";
1001
1115
  term: string;
1002
1116
  })[] | undefined;
1003
- createAtLocation?: {
1004
- type: "exact";
1005
- term: string;
1006
- } | {
1007
- type: "within";
1008
- location: string;
1009
- } | undefined;
1117
+ eventType?: string | undefined;
1010
1118
  }[];
1011
1119
  }>]>;
1012
1120
  actions: z.ZodArray<z.ZodObject<{
@@ -1026,20 +1134,20 @@ export declare const WorkqueueConfig: z.ZodObject<{
1026
1134
  defaultMessage: string;
1027
1135
  }>;
1028
1136
  value: z.ZodObject<{
1029
- $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"]>;
1030
1138
  }, "strip", z.ZodTypeAny, {
1031
- $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";
1032
1140
  }, {
1033
- $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";
1034
1142
  }>;
1035
1143
  }, "strip", z.ZodTypeAny, {
1036
1144
  value: {
1037
- $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";
1038
1146
  };
1039
1147
  label: TranslationConfig;
1040
1148
  }, {
1041
1149
  value: {
1042
- $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";
1043
1151
  };
1044
1152
  label: {
1045
1153
  id: string;
@@ -1047,6 +1155,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
1047
1155
  defaultMessage: string;
1048
1156
  };
1049
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"]>;
1050
1159
  }, "strip", z.ZodTypeAny, {
1051
1160
  name: TranslationConfig;
1052
1161
  actions: {
@@ -1074,22 +1183,28 @@ export declare const WorkqueueConfig: z.ZodObject<{
1074
1183
  } | undefined;
1075
1184
  createdBy?: {
1076
1185
  type: "exact";
1077
- term: string;
1186
+ term: string | {
1187
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1188
+ };
1078
1189
  } | undefined;
1079
- updatedAt?: {
1190
+ createdAtLocation?: {
1080
1191
  type: "exact";
1081
- term: string;
1192
+ term: string | {
1193
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1194
+ };
1082
1195
  } | {
1083
- type: "range";
1084
- gte: string;
1085
- lte: string;
1196
+ type: "within";
1197
+ location: string | {
1198
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1199
+ };
1086
1200
  } | undefined;
1087
- trackingId?: {
1201
+ assignedTo?: {
1088
1202
  type: "exact";
1089
- term: string;
1203
+ term: string | {
1204
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1205
+ };
1090
1206
  } | undefined;
1091
- eventType?: string | undefined;
1092
- 'legalStatus.REGISTERED.createdAt'?: {
1207
+ updatedAt?: {
1093
1208
  type: "exact";
1094
1209
  term: string;
1095
1210
  } | {
@@ -1097,23 +1212,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
1097
1212
  gte: string;
1098
1213
  lte: string;
1099
1214
  } | undefined;
1100
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1215
+ trackingId?: {
1101
1216
  type: "exact";
1102
1217
  term: string;
1103
- } | {
1104
- type: "within";
1105
- location: string;
1106
1218
  } | undefined;
1107
1219
  updatedAtLocation?: {
1108
1220
  type: "exact";
1109
- term: string;
1221
+ term: string | {
1222
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1223
+ };
1110
1224
  } | {
1111
1225
  type: "within";
1112
- location: string;
1226
+ location: string | {
1227
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1228
+ };
1113
1229
  } | undefined;
1114
1230
  updatedBy?: {
1115
1231
  type: "exact";
1116
- term: string;
1232
+ term: string | {
1233
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1234
+ };
1117
1235
  } | undefined;
1118
1236
  flags?: ({
1119
1237
  type: "anyOf";
@@ -1122,13 +1240,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
1122
1240
  type: "not";
1123
1241
  term: string;
1124
1242
  })[] | undefined;
1125
- createAtLocation?: {
1126
- type: "exact";
1127
- term: string;
1128
- } | {
1129
- type: "within";
1130
- location: string;
1131
- } | undefined;
1243
+ eventType?: string | undefined;
1132
1244
  }[];
1133
1245
  } | {
1134
1246
  type: "and";
@@ -1151,22 +1263,28 @@ export declare const WorkqueueConfig: z.ZodObject<{
1151
1263
  } | undefined;
1152
1264
  createdBy?: {
1153
1265
  type: "exact";
1154
- term: string;
1266
+ term: string | {
1267
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1268
+ };
1155
1269
  } | undefined;
1156
- updatedAt?: {
1270
+ createdAtLocation?: {
1157
1271
  type: "exact";
1158
- term: string;
1272
+ term: string | {
1273
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1274
+ };
1159
1275
  } | {
1160
- type: "range";
1161
- gte: string;
1162
- lte: string;
1276
+ type: "within";
1277
+ location: string | {
1278
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1279
+ };
1163
1280
  } | undefined;
1164
- trackingId?: {
1281
+ assignedTo?: {
1165
1282
  type: "exact";
1166
- term: string;
1283
+ term: string | {
1284
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1285
+ };
1167
1286
  } | undefined;
1168
- eventType?: string | undefined;
1169
- 'legalStatus.REGISTERED.createdAt'?: {
1287
+ updatedAt?: {
1170
1288
  type: "exact";
1171
1289
  term: string;
1172
1290
  } | {
@@ -1174,23 +1292,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
1174
1292
  gte: string;
1175
1293
  lte: string;
1176
1294
  } | undefined;
1177
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1295
+ trackingId?: {
1178
1296
  type: "exact";
1179
1297
  term: string;
1180
- } | {
1181
- type: "within";
1182
- location: string;
1183
1298
  } | undefined;
1184
1299
  updatedAtLocation?: {
1185
1300
  type: "exact";
1186
- term: string;
1301
+ term: string | {
1302
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1303
+ };
1187
1304
  } | {
1188
1305
  type: "within";
1189
- location: string;
1306
+ location: string | {
1307
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1308
+ };
1190
1309
  } | undefined;
1191
1310
  updatedBy?: {
1192
1311
  type: "exact";
1193
- term: string;
1312
+ term: string | {
1313
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1314
+ };
1194
1315
  } | undefined;
1195
1316
  flags?: ({
1196
1317
  type: "anyOf";
@@ -1199,22 +1320,17 @@ export declare const WorkqueueConfig: z.ZodObject<{
1199
1320
  type: "not";
1200
1321
  term: string;
1201
1322
  })[] | undefined;
1202
- createAtLocation?: {
1203
- type: "exact";
1204
- term: string;
1205
- } | {
1206
- type: "within";
1207
- location: string;
1208
- } | undefined;
1323
+ eventType?: string | undefined;
1209
1324
  }[];
1210
1325
  };
1211
1326
  slug: string;
1212
1327
  columns: {
1213
1328
  value: {
1214
- $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";
1215
1330
  };
1216
1331
  label: TranslationConfig;
1217
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";
1218
1334
  }, {
1219
1335
  name: {
1220
1336
  id: string;
@@ -1246,22 +1362,28 @@ export declare const WorkqueueConfig: z.ZodObject<{
1246
1362
  } | undefined;
1247
1363
  createdBy?: {
1248
1364
  type: "exact";
1249
- term: string;
1365
+ term: string | {
1366
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1367
+ };
1250
1368
  } | undefined;
1251
- updatedAt?: {
1369
+ createdAtLocation?: {
1252
1370
  type: "exact";
1253
- term: string;
1371
+ term: string | {
1372
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1373
+ };
1254
1374
  } | {
1255
- type: "range";
1256
- gte: string;
1257
- lte: string;
1375
+ type: "within";
1376
+ location: string | {
1377
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1378
+ };
1258
1379
  } | undefined;
1259
- trackingId?: {
1380
+ assignedTo?: {
1260
1381
  type: "exact";
1261
- term: string;
1382
+ term: string | {
1383
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1384
+ };
1262
1385
  } | undefined;
1263
- eventType?: string | undefined;
1264
- 'legalStatus.REGISTERED.createdAt'?: {
1386
+ updatedAt?: {
1265
1387
  type: "exact";
1266
1388
  term: string;
1267
1389
  } | {
@@ -1269,23 +1391,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
1269
1391
  gte: string;
1270
1392
  lte: string;
1271
1393
  } | undefined;
1272
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1394
+ trackingId?: {
1273
1395
  type: "exact";
1274
1396
  term: string;
1275
- } | {
1276
- type: "within";
1277
- location: string;
1278
1397
  } | undefined;
1279
1398
  updatedAtLocation?: {
1280
1399
  type: "exact";
1281
- term: string;
1400
+ term: string | {
1401
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1402
+ };
1282
1403
  } | {
1283
1404
  type: "within";
1284
- location: string;
1405
+ location: string | {
1406
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1407
+ };
1285
1408
  } | undefined;
1286
1409
  updatedBy?: {
1287
1410
  type: "exact";
1288
- term: string;
1411
+ term: string | {
1412
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1413
+ };
1289
1414
  } | undefined;
1290
1415
  flags?: ({
1291
1416
  type: "anyOf";
@@ -1294,13 +1419,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
1294
1419
  type: "not";
1295
1420
  term: string;
1296
1421
  })[] | undefined;
1297
- createAtLocation?: {
1298
- type: "exact";
1299
- term: string;
1300
- } | {
1301
- type: "within";
1302
- location: string;
1303
- } | undefined;
1422
+ eventType?: string | undefined;
1304
1423
  }[];
1305
1424
  } | {
1306
1425
  type: "and";
@@ -1323,22 +1442,28 @@ export declare const WorkqueueConfig: z.ZodObject<{
1323
1442
  } | undefined;
1324
1443
  createdBy?: {
1325
1444
  type: "exact";
1326
- term: string;
1445
+ term: string | {
1446
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1447
+ };
1327
1448
  } | undefined;
1328
- updatedAt?: {
1449
+ createdAtLocation?: {
1329
1450
  type: "exact";
1330
- term: string;
1451
+ term: string | {
1452
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1453
+ };
1331
1454
  } | {
1332
- type: "range";
1333
- gte: string;
1334
- lte: string;
1455
+ type: "within";
1456
+ location: string | {
1457
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1458
+ };
1335
1459
  } | undefined;
1336
- trackingId?: {
1460
+ assignedTo?: {
1337
1461
  type: "exact";
1338
- term: string;
1462
+ term: string | {
1463
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1464
+ };
1339
1465
  } | undefined;
1340
- eventType?: string | undefined;
1341
- 'legalStatus.REGISTERED.createdAt'?: {
1466
+ updatedAt?: {
1342
1467
  type: "exact";
1343
1468
  term: string;
1344
1469
  } | {
@@ -1346,23 +1471,26 @@ export declare const WorkqueueConfig: z.ZodObject<{
1346
1471
  gte: string;
1347
1472
  lte: string;
1348
1473
  } | undefined;
1349
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1474
+ trackingId?: {
1350
1475
  type: "exact";
1351
1476
  term: string;
1352
- } | {
1353
- type: "within";
1354
- location: string;
1355
1477
  } | undefined;
1356
1478
  updatedAtLocation?: {
1357
1479
  type: "exact";
1358
- term: string;
1480
+ term: string | {
1481
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1482
+ };
1359
1483
  } | {
1360
1484
  type: "within";
1361
- location: string;
1485
+ location: string | {
1486
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1487
+ };
1362
1488
  } | undefined;
1363
1489
  updatedBy?: {
1364
1490
  type: "exact";
1365
- term: string;
1491
+ term: string | {
1492
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1493
+ };
1366
1494
  } | undefined;
1367
1495
  flags?: ({
1368
1496
  type: "anyOf";
@@ -1371,19 +1499,14 @@ export declare const WorkqueueConfig: z.ZodObject<{
1371
1499
  type: "not";
1372
1500
  term: string;
1373
1501
  })[] | undefined;
1374
- createAtLocation?: {
1375
- type: "exact";
1376
- term: string;
1377
- } | {
1378
- type: "within";
1379
- location: string;
1380
- } | undefined;
1502
+ eventType?: string | undefined;
1381
1503
  }[];
1382
1504
  };
1383
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";
1384
1507
  columns?: {
1385
1508
  value: {
1386
- $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1509
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1387
1510
  };
1388
1511
  label: {
1389
1512
  id: string;
@@ -1392,64 +1515,2736 @@ export declare const WorkqueueConfig: z.ZodObject<{
1392
1515
  };
1393
1516
  }[] | undefined;
1394
1517
  }>;
1395
- export type WorkqueueConfig = z.infer<typeof WorkqueueConfig>;
1396
- export type WorkqueueConfigInput = z.input<typeof WorkqueueConfig>;
1397
- export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
1398
- name: TranslationConfig;
1399
- actions: {
1400
- type: string;
1401
- conditionals?: import(".").JSONSchema[] | undefined;
1402
- }[];
1403
- query: {
1404
- type: "or";
1405
- clauses: {
1406
- status?: {
1407
- type: "exact";
1408
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1409
- } | {
1410
- type: "anyOf";
1411
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1412
- } | undefined;
1413
- data?: any;
1414
- createdAt?: {
1415
- type: "exact";
1416
- term: string;
1417
- } | {
1418
- type: "range";
1419
- gte: string;
1420
- lte: string;
1421
- } | undefined;
1422
- createdBy?: {
1423
- type: "exact";
1424
- term: string;
1425
- } | undefined;
1426
- updatedAt?: {
1427
- type: "exact";
1428
- term: string;
1429
- } | {
1430
- type: "range";
1431
- gte: string;
1432
- lte: string;
1433
- } | undefined;
1434
- trackingId?: {
1435
- type: "exact";
1436
- term: string;
1437
- } | undefined;
1438
- eventType?: string | undefined;
1439
- 'legalStatus.REGISTERED.createdAt'?: {
1440
- type: "exact";
1441
- term: string;
1442
- } | {
1443
- type: "range";
1444
- gte: string;
1445
- lte: string;
1446
- } | undefined;
1447
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1448
- type: "exact";
1449
- term: string;
1450
- } | {
1451
- type: "within";
1452
- location: string;
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?: {
4156
+ type: "exact";
4157
+ term: string;
4158
+ } | undefined;
4159
+ updatedAt?: {
4160
+ type: "exact";
4161
+ term: string;
4162
+ } | {
4163
+ type: "range";
4164
+ gte: string;
4165
+ lte: string;
4166
+ } | undefined;
4167
+ trackingId?: {
4168
+ type: "exact";
4169
+ term: string;
4170
+ } | undefined;
4171
+ updatedAtLocation?: {
4172
+ type: "exact";
4173
+ term: string;
4174
+ } | {
4175
+ type: "within";
4176
+ location: string;
4177
+ } | undefined;
4178
+ updatedBy?: {
4179
+ type: "exact";
4180
+ term: string;
4181
+ } | undefined;
4182
+ flags?: ({
4183
+ type: "anyOf";
4184
+ terms: string[];
4185
+ } | {
4186
+ type: "not";
4187
+ term: string;
4188
+ })[] | undefined;
4189
+ eventType?: string | undefined;
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'?: {
4199
+ type: "exact";
4200
+ term: string;
4201
+ } | {
4202
+ type: "within";
4203
+ location: string;
4204
+ } | undefined;
4205
+ }, {
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;
1453
4248
  } | undefined;
1454
4249
  updatedAtLocation?: {
1455
4250
  type: "exact";
@@ -1469,16 +4264,103 @@ export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
1469
4264
  type: "not";
1470
4265
  term: string;
1471
4266
  })[] | undefined;
1472
- createAtLocation?: {
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'?: {
1473
4277
  type: "exact";
1474
4278
  term: string;
1475
4279
  } | {
1476
4280
  type: "within";
1477
4281
  location: string;
1478
4282
  } | undefined;
1479
- }[];
1480
- } | {
1481
- type: "and";
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")[];
4290
+ } | undefined;
4291
+ data?: any;
4292
+ createdAt?: {
4293
+ type: "exact";
4294
+ term: string;
4295
+ } | {
4296
+ type: "range";
4297
+ gte: string;
4298
+ lte: string;
4299
+ } | undefined;
4300
+ createdBy?: {
4301
+ type: "exact";
4302
+ term: string;
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;
4315
+ updatedAt?: {
4316
+ type: "exact";
4317
+ term: string;
4318
+ } | {
4319
+ type: "range";
4320
+ gte: string;
4321
+ lte: string;
4322
+ } | undefined;
4323
+ trackingId?: {
4324
+ type: "exact";
4325
+ term: string;
4326
+ } | undefined;
4327
+ updatedAtLocation?: {
4328
+ type: "exact";
4329
+ term: string;
4330
+ } | {
4331
+ type: "within";
4332
+ location: string;
4333
+ } | undefined;
4334
+ updatedBy?: {
4335
+ type: "exact";
4336
+ term: string;
4337
+ } | undefined;
4338
+ flags?: ({
4339
+ type: "anyOf";
4340
+ terms: string[];
4341
+ } | {
4342
+ type: "not";
4343
+ term: string;
4344
+ })[] | undefined;
4345
+ eventType?: string | undefined;
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'?: {
4355
+ type: "exact";
4356
+ term: string;
4357
+ } | {
4358
+ type: "within";
4359
+ location: string;
4360
+ } | undefined;
4361
+ }[], unknown>;
4362
+ }, "strip", z.ZodTypeAny, {
4363
+ type: "and" | "or";
1482
4364
  clauses: {
1483
4365
  status?: {
1484
4366
  type: "exact";
@@ -1500,6 +4382,17 @@ export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
1500
4382
  type: "exact";
1501
4383
  term: string;
1502
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;
1503
4396
  updatedAt?: {
1504
4397
  type: "exact";
1505
4398
  term: string;
@@ -1512,6 +4405,24 @@ export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
1512
4405
  type: "exact";
1513
4406
  term: string;
1514
4407
  } | undefined;
4408
+ updatedAtLocation?: {
4409
+ type: "exact";
4410
+ term: string;
4411
+ } | {
4412
+ type: "within";
4413
+ location: string;
4414
+ } | undefined;
4415
+ updatedBy?: {
4416
+ type: "exact";
4417
+ term: string;
4418
+ } | undefined;
4419
+ flags?: ({
4420
+ type: "anyOf";
4421
+ terms: string[];
4422
+ } | {
4423
+ type: "not";
4424
+ term: string;
4425
+ })[] | undefined;
1515
4426
  eventType?: string | undefined;
1516
4427
  'legalStatus.REGISTERED.createdAt'?: {
1517
4428
  type: "exact";
@@ -1528,6 +4439,58 @@ export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
1528
4439
  type: "within";
1529
4440
  location: string;
1530
4441
  } | undefined;
4442
+ }[];
4443
+ }, {
4444
+ type: "and" | "or";
4445
+ clauses?: unknown;
4446
+ }>;
4447
+ }, "strip", z.ZodTypeAny, {
4448
+ query: {
4449
+ type: "and" | "or";
4450
+ clauses: {
4451
+ status?: {
4452
+ type: "exact";
4453
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
4454
+ } | {
4455
+ type: "anyOf";
4456
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
4457
+ } | undefined;
4458
+ data?: any;
4459
+ createdAt?: {
4460
+ type: "exact";
4461
+ term: string;
4462
+ } | {
4463
+ type: "range";
4464
+ gte: string;
4465
+ lte: string;
4466
+ } | undefined;
4467
+ createdBy?: {
4468
+ type: "exact";
4469
+ term: string;
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;
4482
+ updatedAt?: {
4483
+ type: "exact";
4484
+ term: string;
4485
+ } | {
4486
+ type: "range";
4487
+ gte: string;
4488
+ lte: string;
4489
+ } | undefined;
4490
+ trackingId?: {
4491
+ type: "exact";
4492
+ term: string;
4493
+ } | undefined;
1531
4494
  updatedAtLocation?: {
1532
4495
  type: "exact";
1533
4496
  term: string;
@@ -1546,7 +4509,16 @@ export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
1546
4509
  type: "not";
1547
4510
  term: string;
1548
4511
  })[] | undefined;
1549
- createAtLocation?: {
4512
+ eventType?: string | undefined;
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'?: {
1550
4522
  type: "exact";
1551
4523
  term: string;
1552
4524
  } | {
@@ -1556,11 +4528,14 @@ export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
1556
4528
  }[];
1557
4529
  };
1558
4530
  slug: string;
1559
- columns: {
1560
- value: {
1561
- $event: "type" | "id" | "status" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
1562
- };
1563
- label: TranslationConfig;
1564
- }[];
1565
- }[];
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>;
1566
4541
  //# sourceMappingURL=WorkqueueConfig.d.ts.map