@opencrvs/toolkit 1.8.0-rc.f9fb039 → 1.8.0-rc.fa49ae3

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