@ecrvs/opencrvs-toolkit 1.8.1-rc.a7ee8fb

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