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

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