@opencrvs/toolkit 1.8.0-rc.f8f3eb3 → 1.8.0-rc.f97f8f2

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 (47) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +11637 -10482
  3. package/dist/commons/conditionals/conditionals.d.ts +33 -6
  4. package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
  5. package/dist/commons/conditionals/validate.d.ts +39 -17
  6. package/dist/commons/conditionals/validate.test.d.ts +2 -0
  7. package/dist/commons/events/ActionConfig.d.ts +89415 -2021
  8. package/dist/commons/events/ActionDocument.d.ts +9820 -313
  9. package/dist/commons/events/ActionInput.d.ts +5365 -584
  10. package/dist/commons/events/ActionType.d.ts +27 -12
  11. package/dist/commons/events/AdvancedSearchConfig.d.ts +369 -25
  12. package/dist/commons/events/CompositeFieldValue.d.ts +155 -2
  13. package/dist/commons/events/Conditional.d.ts +21 -5
  14. package/dist/commons/events/CountryConfigQueryInput.d.ts +1506 -0
  15. package/dist/commons/events/Draft.d.ts +367 -54
  16. package/dist/commons/events/EventConfig.d.ts +42573 -1784
  17. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  18. package/dist/commons/events/EventDocument.d.ts +3526 -429
  19. package/dist/commons/events/EventIndex.d.ts +1548 -10
  20. package/dist/commons/events/EventInput.d.ts +13 -0
  21. package/dist/commons/events/EventMetadata.d.ts +277 -8
  22. package/dist/commons/events/FieldConfig.d.ts +4262 -800
  23. package/dist/commons/events/FieldType.d.ts +7 -2
  24. package/dist/commons/events/FieldTypeMapping.d.ts +164 -6
  25. package/dist/commons/events/FieldValue.d.ts +82 -5
  26. package/dist/commons/events/FormConfig.d.ts +40636 -73
  27. package/dist/commons/events/PageConfig.d.ts +10209 -0
  28. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  29. package/dist/commons/events/TemplateConfig.d.ts +38 -0
  30. package/dist/commons/events/User.d.ts +31 -2
  31. package/dist/commons/events/WorkqueueColumnConfig.d.ts +42 -0
  32. package/dist/commons/events/WorkqueueConfig.d.ts +2834 -19
  33. package/dist/commons/events/defineConfig.d.ts +7030 -230
  34. package/dist/commons/events/event.d.ts +27 -0
  35. package/dist/commons/events/field.d.ts +68 -0
  36. package/dist/commons/events/index.d.ts +9 -1
  37. package/dist/commons/events/scopes.d.ts +26 -0
  38. package/dist/commons/events/serializer.d.ts +2 -0
  39. package/dist/commons/events/test.utils.d.ts +128 -238
  40. package/dist/commons/events/utils.d.ts +3679 -69
  41. package/dist/commons/events/utils.test.d.ts +2 -0
  42. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  43. package/dist/conditionals/index.js +215 -110
  44. package/dist/events/index.js +3157 -1372
  45. package/dist/scopes/index.d.ts +105 -1
  46. package/dist/scopes/index.js +140 -0
  47. package/package.json +3 -2
@@ -0,0 +1,1506 @@
1
+ import { z } from 'zod';
2
+ export declare const SerializedQueryExpression: z.ZodObject<{
3
+ title: z.ZodOptional<z.ZodString>;
4
+ eventType: z.ZodOptional<z.ZodString>;
5
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
6
+ type: z.ZodLiteral<"anyOf">;
7
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
8
+ }, "strip", z.ZodTypeAny, {
9
+ type: "anyOf";
10
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
11
+ }, {
12
+ type: "anyOf";
13
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
14
+ }>, z.ZodObject<{
15
+ type: z.ZodLiteral<"exact">;
16
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ type: "exact";
19
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
20
+ }, {
21
+ type: "exact";
22
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
23
+ }>]>>>;
24
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
25
+ type: z.ZodLiteral<"exact">;
26
+ term: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ type: "exact";
29
+ term: string;
30
+ }, {
31
+ type: "exact";
32
+ term: string;
33
+ }>, z.ZodObject<{
34
+ type: z.ZodLiteral<"range">;
35
+ gte: z.ZodString;
36
+ lte: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ type: "range";
39
+ gte: string;
40
+ lte: string;
41
+ }, {
42
+ type: "range";
43
+ gte: string;
44
+ lte: string;
45
+ }>]>>>;
46
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
47
+ type: z.ZodLiteral<"exact">;
48
+ term: z.ZodString;
49
+ }, "strip", z.ZodTypeAny, {
50
+ type: "exact";
51
+ term: string;
52
+ }, {
53
+ type: "exact";
54
+ term: string;
55
+ }>, z.ZodObject<{
56
+ type: z.ZodLiteral<"range">;
57
+ gte: z.ZodString;
58
+ lte: z.ZodString;
59
+ }, "strip", z.ZodTypeAny, {
60
+ type: "range";
61
+ gte: string;
62
+ lte: string;
63
+ }, {
64
+ type: "range";
65
+ gte: string;
66
+ lte: string;
67
+ }>]>>>;
68
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
69
+ type: z.ZodLiteral<"within">;
70
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
71
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
74
+ }, {
75
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
76
+ }>]>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ type: "within";
79
+ location: string | {
80
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
81
+ };
82
+ }, {
83
+ type: "within";
84
+ location: string | {
85
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
86
+ };
87
+ }>, z.ZodObject<{
88
+ type: z.ZodLiteral<"exact">;
89
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
90
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
93
+ }, {
94
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
95
+ }>]>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ type: "exact";
98
+ term: string | {
99
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
100
+ };
101
+ }, {
102
+ type: "exact";
103
+ term: string | {
104
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
105
+ };
106
+ }>]>>>;
107
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
108
+ type: z.ZodLiteral<"within">;
109
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
110
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
113
+ }, {
114
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
115
+ }>]>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ type: "within";
118
+ location: string | {
119
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
120
+ };
121
+ }, {
122
+ type: "within";
123
+ location: string | {
124
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
125
+ };
126
+ }>, z.ZodObject<{
127
+ type: z.ZodLiteral<"exact">;
128
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
129
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
132
+ }, {
133
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
134
+ }>]>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ type: "exact";
137
+ term: string | {
138
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
139
+ };
140
+ }, {
141
+ type: "exact";
142
+ term: string | {
143
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
144
+ };
145
+ }>]>>>;
146
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
147
+ type: z.ZodLiteral<"exact">;
148
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
149
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
152
+ }, {
153
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
154
+ }>]>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ type: "exact";
157
+ term: string | {
158
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
159
+ };
160
+ }, {
161
+ type: "exact";
162
+ term: string | {
163
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
164
+ };
165
+ }>>>;
166
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
167
+ type: z.ZodLiteral<"exact">;
168
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
169
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
172
+ }, {
173
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
174
+ }>]>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ type: "exact";
177
+ term: string | {
178
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
179
+ };
180
+ }, {
181
+ type: "exact";
182
+ term: string | {
183
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
184
+ };
185
+ }>>>;
186
+ 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: "anyOf";
239
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
240
+ } | {
241
+ type: "exact";
242
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
243
+ } | undefined;
244
+ title?: string | undefined;
245
+ data?: any;
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: "anyOf";
317
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
318
+ } | {
319
+ type: "exact";
320
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
321
+ } | undefined;
322
+ title?: string | undefined;
323
+ data?: any;
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
+ title: z.ZodOptional<z.ZodString>;
398
+ eventType: z.ZodOptional<z.ZodString>;
399
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
400
+ type: z.ZodLiteral<"anyOf">;
401
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
402
+ }, "strip", z.ZodTypeAny, {
403
+ type: "anyOf";
404
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
405
+ }, {
406
+ type: "anyOf";
407
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
408
+ }>, z.ZodObject<{
409
+ type: z.ZodLiteral<"exact">;
410
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ type: "exact";
413
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
414
+ }, {
415
+ type: "exact";
416
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
417
+ }>]>>>;
418
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
419
+ type: z.ZodLiteral<"exact">;
420
+ term: z.ZodString;
421
+ }, "strip", z.ZodTypeAny, {
422
+ type: "exact";
423
+ term: string;
424
+ }, {
425
+ type: "exact";
426
+ term: string;
427
+ }>, z.ZodObject<{
428
+ type: z.ZodLiteral<"range">;
429
+ gte: z.ZodString;
430
+ lte: z.ZodString;
431
+ }, "strip", z.ZodTypeAny, {
432
+ type: "range";
433
+ gte: string;
434
+ lte: string;
435
+ }, {
436
+ type: "range";
437
+ gte: string;
438
+ lte: string;
439
+ }>]>>>;
440
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
441
+ type: z.ZodLiteral<"exact">;
442
+ term: z.ZodString;
443
+ }, "strip", z.ZodTypeAny, {
444
+ type: "exact";
445
+ term: string;
446
+ }, {
447
+ type: "exact";
448
+ term: string;
449
+ }>, z.ZodObject<{
450
+ type: z.ZodLiteral<"range">;
451
+ gte: z.ZodString;
452
+ lte: z.ZodString;
453
+ }, "strip", z.ZodTypeAny, {
454
+ type: "range";
455
+ gte: string;
456
+ lte: string;
457
+ }, {
458
+ type: "range";
459
+ gte: string;
460
+ lte: string;
461
+ }>]>>>;
462
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
463
+ type: z.ZodLiteral<"within">;
464
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
465
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
468
+ }, {
469
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
470
+ }>]>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ type: "within";
473
+ location: string | {
474
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
475
+ };
476
+ }, {
477
+ type: "within";
478
+ location: string | {
479
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
480
+ };
481
+ }>, z.ZodObject<{
482
+ type: z.ZodLiteral<"exact">;
483
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
484
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
487
+ }, {
488
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
489
+ }>]>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ type: "exact";
492
+ term: string | {
493
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
494
+ };
495
+ }, {
496
+ type: "exact";
497
+ term: string | {
498
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
499
+ };
500
+ }>]>>>;
501
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
502
+ type: z.ZodLiteral<"within">;
503
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
504
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
505
+ }, "strip", z.ZodTypeAny, {
506
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
507
+ }, {
508
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
509
+ }>]>;
510
+ }, "strip", z.ZodTypeAny, {
511
+ type: "within";
512
+ location: string | {
513
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
514
+ };
515
+ }, {
516
+ type: "within";
517
+ location: string | {
518
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
519
+ };
520
+ }>, z.ZodObject<{
521
+ type: z.ZodLiteral<"exact">;
522
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
523
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
526
+ }, {
527
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
528
+ }>]>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ type: "exact";
531
+ term: string | {
532
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
533
+ };
534
+ }, {
535
+ type: "exact";
536
+ term: string | {
537
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
538
+ };
539
+ }>]>>>;
540
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
541
+ type: z.ZodLiteral<"exact">;
542
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
543
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
544
+ }, "strip", z.ZodTypeAny, {
545
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
546
+ }, {
547
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
548
+ }>]>;
549
+ }, "strip", z.ZodTypeAny, {
550
+ type: "exact";
551
+ term: string | {
552
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
553
+ };
554
+ }, {
555
+ type: "exact";
556
+ term: string | {
557
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
558
+ };
559
+ }>>>;
560
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
561
+ type: z.ZodLiteral<"exact">;
562
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
563
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
564
+ }, "strip", z.ZodTypeAny, {
565
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
566
+ }, {
567
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
568
+ }>]>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ type: "exact";
571
+ term: string | {
572
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
573
+ };
574
+ }, {
575
+ type: "exact";
576
+ term: string | {
577
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
578
+ };
579
+ }>>>;
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: "anyOf";
633
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
634
+ } | {
635
+ type: "exact";
636
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
637
+ } | undefined;
638
+ title?: string | undefined;
639
+ data?: any;
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: "anyOf";
711
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
712
+ } | {
713
+ type: "exact";
714
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
715
+ } | undefined;
716
+ title?: string | undefined;
717
+ data?: any;
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: "anyOf";
792
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
793
+ } | {
794
+ type: "exact";
795
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
796
+ } | undefined;
797
+ title?: string | undefined;
798
+ data?: any;
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: "anyOf";
873
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
874
+ } | {
875
+ type: "exact";
876
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
877
+ } | undefined;
878
+ title?: string | undefined;
879
+ data?: any;
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
+ title: z.ZodOptional<z.ZodString>;
953
+ eventType: z.ZodOptional<z.ZodString>;
954
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
955
+ type: z.ZodLiteral<"anyOf">;
956
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
957
+ }, "strip", z.ZodTypeAny, {
958
+ type: "anyOf";
959
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
960
+ }, {
961
+ type: "anyOf";
962
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
963
+ }>, z.ZodObject<{
964
+ type: z.ZodLiteral<"exact">;
965
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
966
+ }, "strip", z.ZodTypeAny, {
967
+ type: "exact";
968
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
969
+ }, {
970
+ type: "exact";
971
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
972
+ }>]>>>;
973
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
974
+ type: z.ZodLiteral<"exact">;
975
+ term: z.ZodString;
976
+ }, "strip", z.ZodTypeAny, {
977
+ type: "exact";
978
+ term: string;
979
+ }, {
980
+ type: "exact";
981
+ term: string;
982
+ }>, z.ZodObject<{
983
+ type: z.ZodLiteral<"range">;
984
+ gte: z.ZodString;
985
+ lte: z.ZodString;
986
+ }, "strip", z.ZodTypeAny, {
987
+ type: "range";
988
+ gte: string;
989
+ lte: string;
990
+ }, {
991
+ type: "range";
992
+ gte: string;
993
+ lte: string;
994
+ }>]>>>;
995
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
996
+ type: z.ZodLiteral<"exact">;
997
+ term: z.ZodString;
998
+ }, "strip", z.ZodTypeAny, {
999
+ type: "exact";
1000
+ term: string;
1001
+ }, {
1002
+ type: "exact";
1003
+ term: string;
1004
+ }>, z.ZodObject<{
1005
+ type: z.ZodLiteral<"range">;
1006
+ gte: z.ZodString;
1007
+ lte: z.ZodString;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ type: "range";
1010
+ gte: string;
1011
+ lte: string;
1012
+ }, {
1013
+ type: "range";
1014
+ gte: string;
1015
+ lte: string;
1016
+ }>]>>>;
1017
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1018
+ type: z.ZodLiteral<"within">;
1019
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
1020
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1021
+ }, "strip", z.ZodTypeAny, {
1022
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1023
+ }, {
1024
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1025
+ }>]>;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ type: "within";
1028
+ location: string | {
1029
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1030
+ };
1031
+ }, {
1032
+ type: "within";
1033
+ location: string | {
1034
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1035
+ };
1036
+ }>, z.ZodObject<{
1037
+ type: z.ZodLiteral<"exact">;
1038
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1039
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1042
+ }, {
1043
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1044
+ }>]>;
1045
+ }, "strip", z.ZodTypeAny, {
1046
+ type: "exact";
1047
+ term: string | {
1048
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1049
+ };
1050
+ }, {
1051
+ type: "exact";
1052
+ term: string | {
1053
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1054
+ };
1055
+ }>]>>>;
1056
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1057
+ type: z.ZodLiteral<"within">;
1058
+ location: z.ZodUnion<[z.ZodString, z.ZodObject<{
1059
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1062
+ }, {
1063
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1064
+ }>]>;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ type: "within";
1067
+ location: string | {
1068
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1069
+ };
1070
+ }, {
1071
+ type: "within";
1072
+ location: string | {
1073
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1074
+ };
1075
+ }>, z.ZodObject<{
1076
+ type: z.ZodLiteral<"exact">;
1077
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1078
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1079
+ }, "strip", z.ZodTypeAny, {
1080
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1081
+ }, {
1082
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1083
+ }>]>;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ type: "exact";
1086
+ term: string | {
1087
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1088
+ };
1089
+ }, {
1090
+ type: "exact";
1091
+ term: string | {
1092
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1093
+ };
1094
+ }>]>>>;
1095
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1096
+ type: z.ZodLiteral<"exact">;
1097
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1098
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1099
+ }, "strip", z.ZodTypeAny, {
1100
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1101
+ }, {
1102
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1103
+ }>]>;
1104
+ }, "strip", z.ZodTypeAny, {
1105
+ type: "exact";
1106
+ term: string | {
1107
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1108
+ };
1109
+ }, {
1110
+ type: "exact";
1111
+ term: string | {
1112
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1113
+ };
1114
+ }>>>;
1115
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1116
+ type: z.ZodLiteral<"exact">;
1117
+ term: z.ZodUnion<[z.ZodString, z.ZodObject<{
1118
+ $userField: z.ZodEnum<["id", "name", "role", "signatureFilename", "primaryOfficeId"]>;
1119
+ }, "strip", z.ZodTypeAny, {
1120
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1121
+ }, {
1122
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1123
+ }>]>;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ type: "exact";
1126
+ term: string | {
1127
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1128
+ };
1129
+ }, {
1130
+ type: "exact";
1131
+ term: string | {
1132
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1133
+ };
1134
+ }>>>;
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: "anyOf";
1188
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1189
+ } | {
1190
+ type: "exact";
1191
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1192
+ } | undefined;
1193
+ title?: string | undefined;
1194
+ data?: any;
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: "anyOf";
1266
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1267
+ } | {
1268
+ type: "exact";
1269
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1270
+ } | undefined;
1271
+ title?: string | undefined;
1272
+ data?: any;
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: "anyOf";
1347
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1348
+ } | {
1349
+ type: "exact";
1350
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1351
+ } | undefined;
1352
+ title?: string | undefined;
1353
+ data?: any;
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: "anyOf";
1428
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1429
+ } | {
1430
+ type: "exact";
1431
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1432
+ } | undefined;
1433
+ title?: string | undefined;
1434
+ data?: any;
1435
+ createdAt?: {
1436
+ type: "exact";
1437
+ term: string;
1438
+ } | {
1439
+ type: "range";
1440
+ gte: string;
1441
+ lte: string;
1442
+ } | undefined;
1443
+ createdBy?: {
1444
+ type: "exact";
1445
+ term: string | {
1446
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1447
+ };
1448
+ } | undefined;
1449
+ createdAtLocation?: {
1450
+ type: "exact";
1451
+ term: string | {
1452
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1453
+ };
1454
+ } | {
1455
+ type: "within";
1456
+ location: string | {
1457
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1458
+ };
1459
+ } | undefined;
1460
+ assignedTo?: {
1461
+ type: "exact";
1462
+ term: string | {
1463
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1464
+ };
1465
+ } | undefined;
1466
+ updatedAt?: {
1467
+ type: "exact";
1468
+ term: string;
1469
+ } | {
1470
+ type: "range";
1471
+ gte: string;
1472
+ lte: string;
1473
+ } | undefined;
1474
+ trackingId?: {
1475
+ type: "exact";
1476
+ term: string;
1477
+ } | undefined;
1478
+ updatedAtLocation?: {
1479
+ type: "exact";
1480
+ term: string | {
1481
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1482
+ };
1483
+ } | {
1484
+ type: "within";
1485
+ location: string | {
1486
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1487
+ };
1488
+ } | undefined;
1489
+ updatedBy?: {
1490
+ type: "exact";
1491
+ term: string | {
1492
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
1493
+ };
1494
+ } | undefined;
1495
+ flags?: ({
1496
+ type: "anyOf";
1497
+ terms: string[];
1498
+ } | {
1499
+ type: "not";
1500
+ term: string;
1501
+ })[] | undefined;
1502
+ eventType?: string | undefined;
1503
+ }[];
1504
+ }>]>;
1505
+ export type CountryConfigQueryType = z.infer<typeof CountryConfigQueryType>;
1506
+ //# sourceMappingURL=CountryConfigQueryInput.d.ts.map