@opencrvs/toolkit 1.9.4-rc.0e695b2 → 1.9.4-rc.469f912

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 (58) hide show
  1. package/dist/commons/api/router.d.ts +2440 -28495
  2. package/dist/commons/conditionals/conditionals.d.ts +1 -10
  3. package/dist/commons/conditionals/validate.d.ts +4 -11
  4. package/dist/commons/events/ActionConfig.d.ts +1552 -23416
  5. package/dist/commons/events/ActionDocument.d.ts +1856 -803
  6. package/dist/commons/events/ActionInput.d.ts +1073 -277
  7. package/dist/commons/events/ActionType.d.ts +9 -86
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1238 -228
  9. package/dist/commons/events/CompositeFieldValue.d.ts +176 -27
  10. package/dist/commons/events/Conditional.d.ts +38 -26
  11. package/dist/commons/events/Constants.d.ts +1 -1
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +4169 -931
  13. package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
  14. package/dist/commons/events/DeduplicationConfig.d.ts +150 -15
  15. package/dist/commons/events/Draft.d.ts +105 -70
  16. package/dist/commons/events/DynamicFieldValue.d.ts +91 -7
  17. package/dist/commons/events/EventConfig.d.ts +2120 -18663
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +1332 -320
  20. package/dist/commons/events/EventIndex.d.ts +967 -197
  21. package/dist/commons/events/EventInput.d.ts +8 -2
  22. package/dist/commons/events/EventMetadata.d.ts +346 -106
  23. package/dist/commons/events/FieldConfig.d.ts +11774 -4259
  24. package/dist/commons/events/FieldType.d.ts +4 -20
  25. package/dist/commons/events/FieldTypeMapping.d.ts +813 -181
  26. package/dist/commons/events/FieldValue.d.ts +356 -83
  27. package/dist/commons/events/FormConfig.d.ts +721 -13140
  28. package/dist/commons/events/PageConfig.d.ts +319 -8780
  29. package/dist/commons/events/SummaryConfig.d.ts +161 -14
  30. package/dist/commons/events/TemplateConfig.d.ts +3 -3
  31. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  32. package/dist/commons/events/WorkqueueColumnConfig.d.ts +37 -74
  33. package/dist/commons/events/WorkqueueConfig.d.ts +7080 -1615
  34. package/dist/commons/events/deduplication.d.ts +3 -3
  35. package/dist/commons/events/defineConfig.d.ts +163 -25639
  36. package/dist/commons/events/event.d.ts +4 -4
  37. package/dist/commons/events/index.d.ts +0 -1
  38. package/dist/commons/events/locations.d.ts +19 -15
  39. package/dist/commons/events/scopes.d.ts +4 -5
  40. package/dist/commons/events/state/availableActions.d.ts +1 -2
  41. package/dist/commons/events/state/flags.d.ts +3 -21
  42. package/dist/commons/events/state/index.d.ts +19 -23
  43. package/dist/commons/events/state/utils.d.ts +112 -130
  44. package/dist/commons/events/test.utils.d.ts +8 -17
  45. package/dist/commons/events/transactions.d.ts +1 -1
  46. package/dist/commons/events/utils.d.ts +373 -51350
  47. package/dist/commons/notification/UserNotifications.d.ts +636 -55
  48. package/dist/conditionals/index.d.ts.map +1 -1
  49. package/dist/conditionals/index.js +5 -38
  50. package/dist/events/deduplication.d.ts +3 -3
  51. package/dist/events/index.js +1545 -1805
  52. package/dist/notification/index.d.ts.map +1 -1
  53. package/dist/notification/index.js +1412 -1430
  54. package/dist/scopes/index.d.ts +132 -167
  55. package/dist/scopes/index.d.ts.map +1 -1
  56. package/dist/scopes/index.js +94 -133
  57. package/package.json +5 -5
  58. package/dist/commons/events/Flag.d.ts +0 -70
@@ -1,162 +1,381 @@
1
- import { z, ZodType } from 'zod/v4';
2
- export declare const EventIndex: z.ZodObject<{
3
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
1
+ import { z, ZodType } from 'zod';
2
+ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
4
  type: z.ZodString;
5
- status: z.ZodEnum<{
6
- ARCHIVED: "ARCHIVED";
7
- DECLARED: "DECLARED";
8
- REGISTERED: "REGISTERED";
9
- CREATED: "CREATED";
10
- NOTIFIED: "NOTIFIED";
11
- }>;
5
+ status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
12
6
  legalStatuses: z.ZodObject<{
13
7
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
- createdAt: z.ZodISODateTime;
8
+ createdAt: z.ZodString;
15
9
  createdBy: z.ZodString;
16
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
17
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
18
- system: "system";
19
- user: "user";
20
- }>>>;
21
- acceptedAt: z.ZodISODateTime;
10
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
12
+ acceptedAt: z.ZodString;
22
13
  createdByRole: z.ZodString;
23
14
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
- }, z.core.$strip>>>;
25
- REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
- createdAt: z.ZodISODateTime;
15
+ }, "strip", z.ZodTypeAny, {
16
+ createdAt: string;
17
+ createdBy: string;
18
+ createdByRole: string;
19
+ acceptedAt: string;
20
+ createdByUserType?: "system" | "user" | null | undefined;
21
+ createdBySignature?: string | null | undefined;
22
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
23
+ }, {
24
+ createdAt: string;
25
+ createdBy: string;
26
+ createdByRole: string;
27
+ acceptedAt: string;
28
+ createdByUserType?: "system" | "user" | null | undefined;
29
+ createdBySignature?: string | null | undefined;
30
+ createdAtLocation?: string | null | undefined;
31
+ }>>>;
32
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
33
+ createdAt: z.ZodString;
27
34
  createdBy: z.ZodString;
28
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
29
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
30
- system: "system";
31
- user: "user";
32
- }>>>;
33
- acceptedAt: z.ZodISODateTime;
35
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
36
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
37
+ acceptedAt: z.ZodString;
34
38
  createdByRole: z.ZodString;
35
39
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, {
36
41
  registrationNumber: z.ZodString;
37
- }, z.core.$strip>>>;
38
- }, z.core.$strip>;
39
- createdAt: z.ZodISODateTime;
40
- dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
41
- placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
42
+ }>, "strip", z.ZodTypeAny, {
43
+ createdAt: string;
44
+ createdBy: string;
45
+ createdByRole: string;
46
+ registrationNumber: string;
47
+ acceptedAt: string;
48
+ createdByUserType?: "system" | "user" | null | undefined;
49
+ createdBySignature?: string | null | undefined;
50
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
51
+ }, {
52
+ createdAt: string;
53
+ createdBy: string;
54
+ createdByRole: string;
55
+ registrationNumber: string;
56
+ acceptedAt: string;
57
+ createdByUserType?: "system" | "user" | null | undefined;
58
+ createdBySignature?: string | null | undefined;
59
+ createdAtLocation?: string | null | undefined;
60
+ }>>>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ DECLARED?: {
63
+ createdAt: string;
64
+ createdBy: string;
65
+ createdByRole: string;
66
+ acceptedAt: string;
67
+ createdByUserType?: "system" | "user" | null | undefined;
68
+ createdBySignature?: string | null | undefined;
69
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
70
+ } | null | undefined;
71
+ REGISTERED?: {
72
+ createdAt: string;
73
+ createdBy: string;
74
+ createdByRole: string;
75
+ registrationNumber: string;
76
+ acceptedAt: string;
77
+ createdByUserType?: "system" | "user" | null | undefined;
78
+ createdBySignature?: string | null | undefined;
79
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
80
+ } | null | undefined;
81
+ }, {
82
+ DECLARED?: {
83
+ createdAt: string;
84
+ createdBy: string;
85
+ createdByRole: string;
86
+ acceptedAt: string;
87
+ createdByUserType?: "system" | "user" | null | undefined;
88
+ createdBySignature?: string | null | undefined;
89
+ createdAtLocation?: string | null | undefined;
90
+ } | null | undefined;
91
+ REGISTERED?: {
92
+ createdAt: string;
93
+ createdBy: string;
94
+ createdByRole: string;
95
+ registrationNumber: string;
96
+ acceptedAt: string;
97
+ createdByUserType?: "system" | "user" | null | undefined;
98
+ createdBySignature?: string | null | undefined;
99
+ createdAtLocation?: string | null | undefined;
100
+ } | null | undefined;
101
+ }>;
102
+ createdAt: z.ZodString;
103
+ dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
104
  createdBy: z.ZodString;
43
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
44
- system: "system";
45
- user: "user";
46
- }>>>;
105
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
47
106
  updatedByUserRole: z.ZodString;
48
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
107
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
49
108
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
51
- updatedAt: z.ZodISODateTime;
109
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
110
+ updatedAt: z.ZodString;
52
111
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
112
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
113
  trackingId: z.ZodString;
55
114
  potentialDuplicates: z.ZodArray<z.ZodObject<{
56
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
115
+ id: z.ZodBranded<z.ZodString, "UUID">;
57
116
  trackingId: z.ZodString;
58
- }, z.core.$strip>>;
59
- flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
117
+ }, "strip", z.ZodTypeAny, {
118
+ id: string & z.BRAND<"UUID">;
119
+ trackingId: string;
120
+ }, {
121
+ id: string;
122
+ trackingId: string;
123
+ }>, "many">;
124
+ flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
60
125
  readonly PENDING_CERTIFICATION: "pending-certification";
61
126
  readonly INCOMPLETE: "incomplete";
62
127
  readonly REJECTED: "rejected";
63
128
  readonly CORRECTION_REQUESTED: "correction-requested";
64
129
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
65
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
66
- }>]>, z.ZodString]>>;
67
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
68
- }, z.core.$strip>;
130
+ }>]>, "many">;
131
+ }, {
132
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldValue, z.ZodTypeDef, import("./FieldValue").FieldValue>>;
133
+ }>, "strip", z.ZodTypeAny, {
134
+ type: string;
135
+ id: string & z.BRAND<"UUID">;
136
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
137
+ createdAt: string;
138
+ createdBy: string;
139
+ declaration: Record<string, import("./FieldValue").FieldValue>;
140
+ trackingId: string;
141
+ updatedAt: string;
142
+ legalStatuses: {
143
+ DECLARED?: {
144
+ createdAt: string;
145
+ createdBy: string;
146
+ createdByRole: string;
147
+ acceptedAt: string;
148
+ createdByUserType?: "system" | "user" | null | undefined;
149
+ createdBySignature?: string | null | undefined;
150
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
151
+ } | null | undefined;
152
+ REGISTERED?: {
153
+ createdAt: string;
154
+ createdBy: string;
155
+ createdByRole: string;
156
+ registrationNumber: string;
157
+ acceptedAt: string;
158
+ createdByUserType?: "system" | "user" | null | undefined;
159
+ createdBySignature?: string | null | undefined;
160
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
161
+ } | null | undefined;
162
+ };
163
+ updatedByUserRole: string;
164
+ potentialDuplicates: {
165
+ id: string & z.BRAND<"UUID">;
166
+ trackingId: string;
167
+ }[];
168
+ flags: string[];
169
+ createdByUserType?: "system" | "user" | null | undefined;
170
+ createdBySignature?: string | null | undefined;
171
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
172
+ assignedTo?: string | null | undefined;
173
+ dateOfEvent?: string | null | undefined;
174
+ updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
175
+ updatedBy?: string | null | undefined;
176
+ }, {
177
+ type: string;
178
+ id: string;
179
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
180
+ createdAt: string;
181
+ createdBy: string;
182
+ declaration: Record<string, import("./FieldValue").FieldValue>;
183
+ trackingId: string;
184
+ updatedAt: string;
185
+ legalStatuses: {
186
+ DECLARED?: {
187
+ createdAt: string;
188
+ createdBy: string;
189
+ createdByRole: string;
190
+ acceptedAt: string;
191
+ createdByUserType?: "system" | "user" | null | undefined;
192
+ createdBySignature?: string | null | undefined;
193
+ createdAtLocation?: string | null | undefined;
194
+ } | null | undefined;
195
+ REGISTERED?: {
196
+ createdAt: string;
197
+ createdBy: string;
198
+ createdByRole: string;
199
+ registrationNumber: string;
200
+ acceptedAt: string;
201
+ createdByUserType?: "system" | "user" | null | undefined;
202
+ createdBySignature?: string | null | undefined;
203
+ createdAtLocation?: string | null | undefined;
204
+ } | null | undefined;
205
+ };
206
+ updatedByUserRole: string;
207
+ potentialDuplicates: {
208
+ id: string;
209
+ trackingId: string;
210
+ }[];
211
+ flags: string[];
212
+ createdByUserType?: "system" | "user" | null | undefined;
213
+ createdBySignature?: string | null | undefined;
214
+ createdAtLocation?: string | null | undefined;
215
+ assignedTo?: string | null | undefined;
216
+ dateOfEvent?: string | null | undefined;
217
+ updatedAtLocation?: string | null | undefined;
218
+ updatedBy?: string | null | undefined;
219
+ }>;
69
220
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
70
221
  type: z.ZodString;
71
- }, z.core.$strip>>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ type: string;
224
+ }, {
225
+ type: string;
226
+ }>>;
72
227
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
73
228
  export type EventIndex = z.infer<typeof EventIndex>;
74
229
  export declare const Fuzzy: z.ZodObject<{
75
230
  type: z.ZodLiteral<"fuzzy">;
76
231
  term: z.ZodString;
77
- }, z.core.$strip>;
232
+ }, "strip", z.ZodTypeAny, {
233
+ type: "fuzzy";
234
+ term: string;
235
+ }, {
236
+ type: "fuzzy";
237
+ term: string;
238
+ }>;
78
239
  export declare const Exact: z.ZodObject<{
79
240
  type: z.ZodLiteral<"exact">;
80
241
  term: z.ZodString;
81
- }, z.core.$strip>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ type: "exact";
244
+ term: string;
245
+ }, {
246
+ type: "exact";
247
+ term: string;
248
+ }>;
82
249
  export declare const ExactStatus: z.ZodObject<{
83
250
  type: z.ZodLiteral<"exact">;
84
- term: z.ZodEnum<{
85
- ARCHIVED: "ARCHIVED";
86
- DECLARED: "DECLARED";
87
- REGISTERED: "REGISTERED";
88
- CREATED: "CREATED";
89
- NOTIFIED: "NOTIFIED";
90
- }>;
91
- }, z.core.$strip>;
251
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ type: "exact";
254
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
255
+ }, {
256
+ type: "exact";
257
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
258
+ }>;
92
259
  export declare const ExactUserType: z.ZodObject<{
93
260
  type: z.ZodLiteral<"exact">;
94
- term: z.ZodEnum<{
95
- system: "system";
96
- user: "user";
97
- }>;
98
- }, z.core.$strip>;
261
+ term: z.ZodEnum<["user", "system"]>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ type: "exact";
264
+ term: "system" | "user";
265
+ }, {
266
+ type: "exact";
267
+ term: "system" | "user";
268
+ }>;
99
269
  export declare const AnyOf: z.ZodObject<{
100
270
  type: z.ZodLiteral<"anyOf">;
101
- terms: z.ZodArray<z.ZodString>;
102
- }, z.core.$strip>;
271
+ terms: z.ZodArray<z.ZodString, "many">;
272
+ }, "strip", z.ZodTypeAny, {
273
+ type: "anyOf";
274
+ terms: string[];
275
+ }, {
276
+ type: "anyOf";
277
+ terms: string[];
278
+ }>;
103
279
  export declare const AnyOfStatus: z.ZodObject<{
104
280
  type: z.ZodLiteral<"anyOf">;
105
- terms: z.ZodArray<z.ZodEnum<{
106
- ARCHIVED: "ARCHIVED";
107
- DECLARED: "DECLARED";
108
- REGISTERED: "REGISTERED";
109
- CREATED: "CREATED";
110
- NOTIFIED: "NOTIFIED";
111
- }>>;
112
- }, z.core.$strip>;
281
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
282
+ }, "strip", z.ZodTypeAny, {
283
+ type: "anyOf";
284
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
285
+ }, {
286
+ type: "anyOf";
287
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
288
+ }>;
113
289
  export declare const Range: z.ZodObject<{
114
290
  type: z.ZodLiteral<"range">;
115
291
  gte: z.ZodString;
116
292
  lte: z.ZodString;
117
- }, z.core.$strip>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ type: "range";
295
+ gte: string;
296
+ lte: string;
297
+ }, {
298
+ type: "range";
299
+ gte: string;
300
+ lte: string;
301
+ }>;
118
302
  export declare const ContainsFlags: z.ZodObject<{
119
- anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
303
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
120
304
  readonly PENDING_CERTIFICATION: "pending-certification";
121
305
  readonly INCOMPLETE: "incomplete";
122
306
  readonly REJECTED: "rejected";
123
307
  readonly CORRECTION_REQUESTED: "correction-requested";
124
308
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
125
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
126
- }>]>, z.ZodString]>>>;
127
- noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
309
+ }>]>, "many">>;
310
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
128
311
  readonly PENDING_CERTIFICATION: "pending-certification";
129
312
  readonly INCOMPLETE: "incomplete";
130
313
  readonly REJECTED: "rejected";
131
314
  readonly CORRECTION_REQUESTED: "correction-requested";
132
315
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
133
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
134
- }>]>, z.ZodString]>>>;
135
- }, z.core.$strip>;
316
+ }>]>, "many">>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ anyOf?: string[] | undefined;
319
+ noneOf?: string[] | undefined;
320
+ }, {
321
+ anyOf?: string[] | undefined;
322
+ noneOf?: string[] | undefined;
323
+ }>;
136
324
  export declare const Within: z.ZodObject<{
137
325
  type: z.ZodLiteral<"within">;
138
326
  location: z.ZodString;
139
- }, z.core.$strip>;
140
- export declare const ExactDate: z.ZodObject<{
327
+ }, "strip", z.ZodTypeAny, {
328
+ type: "within";
329
+ location: string;
330
+ }, {
331
+ type: "within";
332
+ location: string;
333
+ }>;
334
+ export declare const ExactDate: z.ZodObject<z.objectUtil.extendShape<{
141
335
  type: z.ZodLiteral<"exact">;
142
- term: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
143
- }, z.core.$strip>;
144
- export declare const DateCondition: z.ZodUnion<readonly [z.ZodObject<{
336
+ term: z.ZodString;
337
+ }, {
338
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
339
+ }>, "strip", z.ZodTypeAny, {
340
+ type: "exact";
341
+ term: string;
342
+ }, {
343
+ type: "exact";
344
+ term: string;
345
+ }>;
346
+ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
145
347
  type: z.ZodLiteral<"exact">;
146
- term: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
147
- }, z.core.$strip>, z.ZodObject<{
348
+ term: z.ZodString;
349
+ }, {
350
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
351
+ }>, "strip", z.ZodTypeAny, {
352
+ type: "exact";
353
+ term: string;
354
+ }, {
355
+ type: "exact";
356
+ term: string;
357
+ }>, z.ZodObject<{
148
358
  type: z.ZodLiteral<"range">;
149
- gte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
150
- lte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
151
- }, z.core.$strip>, z.ZodObject<{
359
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
360
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
361
+ }, "strip", z.ZodTypeAny, {
362
+ type: "range";
363
+ gte: string;
364
+ lte: string;
365
+ }, {
366
+ type: "range";
367
+ gte: string;
368
+ lte: string;
369
+ }>, z.ZodObject<{
152
370
  type: z.ZodLiteral<"timePeriod">;
153
- term: z.ZodEnum<{
154
- last7Days: "last7Days";
155
- last30Days: "last30Days";
156
- last90Days: "last90Days";
157
- last365Days: "last365Days";
158
- }>;
159
- }, z.core.$strip>]>;
371
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ type: "timePeriod";
374
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
375
+ }, {
376
+ type: "timePeriod";
377
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
378
+ }>]>;
160
379
  export type DateCondition = z.infer<typeof DateCondition>;
161
380
  export declare const QueryInput: ZodType;
162
381
  export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
@@ -164,168 +383,719 @@ type QueryMap = {
164
383
  [key: string]: BaseInput | QueryMap;
165
384
  };
166
385
  export type QueryInputType = BaseInput | QueryMap;
167
- export declare const QueryExpression: z.ZodObject<{
386
+ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
168
387
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
169
388
  eventType: z.ZodOptional<z.ZodString>;
170
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
389
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
171
390
  type: z.ZodLiteral<"anyOf">;
172
- terms: z.ZodArray<z.ZodEnum<{
173
- ARCHIVED: "ARCHIVED";
174
- DECLARED: "DECLARED";
175
- REGISTERED: "REGISTERED";
176
- CREATED: "CREATED";
177
- NOTIFIED: "NOTIFIED";
178
- }>>;
179
- }, z.core.$strip>, z.ZodObject<{
391
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
392
+ }, "strip", z.ZodTypeAny, {
393
+ type: "anyOf";
394
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
395
+ }, {
396
+ type: "anyOf";
397
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
398
+ }>, z.ZodObject<{
180
399
  type: z.ZodLiteral<"exact">;
181
- term: z.ZodEnum<{
182
- ARCHIVED: "ARCHIVED";
183
- DECLARED: "DECLARED";
184
- REGISTERED: "REGISTERED";
185
- CREATED: "CREATED";
186
- NOTIFIED: "NOTIFIED";
187
- }>;
188
- }, z.core.$strip>]>>>;
189
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
400
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ type: "exact";
403
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
404
+ }, {
405
+ type: "exact";
406
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
407
+ }>]>>>;
408
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
190
409
  type: z.ZodLiteral<"exact">;
191
- term: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
192
- }, z.core.$strip>, z.ZodObject<{
410
+ term: z.ZodString;
411
+ }, {
412
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
413
+ }>, "strip", z.ZodTypeAny, {
414
+ type: "exact";
415
+ term: string;
416
+ }, {
417
+ type: "exact";
418
+ term: string;
419
+ }>, z.ZodObject<{
193
420
  type: z.ZodLiteral<"range">;
194
- gte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
195
- lte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
196
- }, z.core.$strip>, z.ZodObject<{
421
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
422
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ type: "range";
425
+ gte: string;
426
+ lte: string;
427
+ }, {
428
+ type: "range";
429
+ gte: string;
430
+ lte: string;
431
+ }>, z.ZodObject<{
197
432
  type: z.ZodLiteral<"timePeriod">;
198
- term: z.ZodEnum<{
199
- last7Days: "last7Days";
200
- last30Days: "last30Days";
201
- last90Days: "last90Days";
202
- last365Days: "last365Days";
203
- }>;
204
- }, z.core.$strip>]>>>;
205
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
433
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ type: "timePeriod";
436
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
437
+ }, {
438
+ type: "timePeriod";
439
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
440
+ }>]>>>;
441
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
206
442
  type: z.ZodLiteral<"exact">;
207
- term: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
208
- }, z.core.$strip>, z.ZodObject<{
443
+ term: z.ZodString;
444
+ }, {
445
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
446
+ }>, "strip", z.ZodTypeAny, {
447
+ type: "exact";
448
+ term: string;
449
+ }, {
450
+ type: "exact";
451
+ term: string;
452
+ }>, z.ZodObject<{
209
453
  type: z.ZodLiteral<"range">;
210
- gte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
211
- lte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
212
- }, z.core.$strip>, z.ZodObject<{
454
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
455
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ type: "range";
458
+ gte: string;
459
+ lte: string;
460
+ }, {
461
+ type: "range";
462
+ gte: string;
463
+ lte: string;
464
+ }>, z.ZodObject<{
213
465
  type: z.ZodLiteral<"timePeriod">;
214
- term: z.ZodEnum<{
215
- last7Days: "last7Days";
216
- last30Days: "last30Days";
217
- last90Days: "last90Days";
218
- last365Days: "last365Days";
219
- }>;
220
- }, z.core.$strip>]>>>;
221
- 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
466
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
467
+ }, "strip", z.ZodTypeAny, {
468
+ type: "timePeriod";
469
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
470
+ }, {
471
+ type: "timePeriod";
472
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
473
+ }>]>>>;
474
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
222
475
  type: z.ZodLiteral<"exact">;
223
- term: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
224
- }, z.core.$strip>, z.ZodObject<{
476
+ term: z.ZodString;
477
+ }, {
478
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
479
+ }>, "strip", z.ZodTypeAny, {
480
+ type: "exact";
481
+ term: string;
482
+ }, {
483
+ type: "exact";
484
+ term: string;
485
+ }>, z.ZodObject<{
225
486
  type: z.ZodLiteral<"range">;
226
- gte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
227
- lte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
228
- }, z.core.$strip>, z.ZodObject<{
487
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
488
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
489
+ }, "strip", z.ZodTypeAny, {
490
+ type: "range";
491
+ gte: string;
492
+ lte: string;
493
+ }, {
494
+ type: "range";
495
+ gte: string;
496
+ lte: string;
497
+ }>, z.ZodObject<{
229
498
  type: z.ZodLiteral<"timePeriod">;
230
- term: z.ZodEnum<{
231
- last7Days: "last7Days";
232
- last30Days: "last30Days";
233
- last90Days: "last90Days";
234
- last365Days: "last365Days";
235
- }>;
236
- }, z.core.$strip>]>>>;
237
- 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
499
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
500
+ }, "strip", z.ZodTypeAny, {
501
+ type: "timePeriod";
502
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
503
+ }, {
504
+ type: "timePeriod";
505
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
506
+ }>]>>>;
507
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
238
508
  type: z.ZodLiteral<"within">;
239
509
  location: z.ZodString;
240
- }, z.core.$strip>, z.ZodObject<{
510
+ }, "strip", z.ZodTypeAny, {
511
+ type: "within";
512
+ location: string;
513
+ }, {
514
+ type: "within";
515
+ location: string;
516
+ }>, z.ZodObject<{
241
517
  type: z.ZodLiteral<"exact">;
242
518
  term: z.ZodString;
243
- }, z.core.$strip>]>>>;
244
- 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
519
+ }, "strip", z.ZodTypeAny, {
520
+ type: "exact";
521
+ term: string;
522
+ }, {
523
+ type: "exact";
524
+ term: string;
525
+ }>]>>>;
526
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
245
527
  type: z.ZodLiteral<"within">;
246
528
  location: z.ZodString;
247
- }, z.core.$strip>, z.ZodObject<{
529
+ }, "strip", z.ZodTypeAny, {
530
+ type: "within";
531
+ location: string;
532
+ }, {
533
+ type: "within";
534
+ location: string;
535
+ }>, z.ZodObject<{
248
536
  type: z.ZodLiteral<"exact">;
249
537
  term: z.ZodString;
250
- }, z.core.$strip>]>>>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ type: "exact";
540
+ term: string;
541
+ }, {
542
+ type: "exact";
543
+ term: string;
544
+ }>]>>>;
251
545
  'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
252
546
  type: z.ZodLiteral<"exact">;
253
547
  term: z.ZodString;
254
- }, z.core.$strip>>>;
255
- createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
548
+ }, "strip", z.ZodTypeAny, {
549
+ type: "exact";
550
+ term: string;
551
+ }, {
552
+ type: "exact";
553
+ term: string;
554
+ }>>>;
555
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
256
556
  type: z.ZodLiteral<"within">;
257
557
  location: z.ZodString;
258
- }, z.core.$strip>, z.ZodObject<{
558
+ }, "strip", z.ZodTypeAny, {
559
+ type: "within";
560
+ location: string;
561
+ }, {
562
+ type: "within";
563
+ location: string;
564
+ }>, z.ZodObject<{
259
565
  type: z.ZodLiteral<"exact">;
260
566
  term: z.ZodString;
261
- }, z.core.$strip>]>>>;
262
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
567
+ }, "strip", z.ZodTypeAny, {
568
+ type: "exact";
569
+ term: string;
570
+ }, {
571
+ type: "exact";
572
+ term: string;
573
+ }>]>>>;
574
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
263
575
  type: z.ZodLiteral<"within">;
264
576
  location: z.ZodString;
265
- }, z.core.$strip>, z.ZodObject<{
577
+ }, "strip", z.ZodTypeAny, {
578
+ type: "within";
579
+ location: string;
580
+ }, {
581
+ type: "within";
582
+ location: string;
583
+ }>, z.ZodObject<{
266
584
  type: z.ZodLiteral<"exact">;
267
585
  term: z.ZodString;
268
- }, z.core.$strip>]>>>;
586
+ }, "strip", z.ZodTypeAny, {
587
+ type: "exact";
588
+ term: string;
589
+ }, {
590
+ type: "exact";
591
+ term: string;
592
+ }>]>>>;
269
593
  assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
270
594
  type: z.ZodLiteral<"exact">;
271
595
  term: z.ZodString;
272
- }, z.core.$strip>>>;
596
+ }, "strip", z.ZodTypeAny, {
597
+ type: "exact";
598
+ term: string;
599
+ }, {
600
+ type: "exact";
601
+ term: string;
602
+ }>>>;
273
603
  createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
274
604
  type: z.ZodLiteral<"exact">;
275
- term: z.ZodEnum<{
276
- system: "system";
277
- user: "user";
278
- }>;
279
- }, z.core.$strip>>>;
605
+ term: z.ZodEnum<["user", "system"]>;
606
+ }, "strip", z.ZodTypeAny, {
607
+ type: "exact";
608
+ term: "system" | "user";
609
+ }, {
610
+ type: "exact";
611
+ term: "system" | "user";
612
+ }>>>;
280
613
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
281
614
  type: z.ZodLiteral<"exact">;
282
615
  term: z.ZodString;
283
- }, z.core.$strip>>>;
616
+ }, "strip", z.ZodTypeAny, {
617
+ type: "exact";
618
+ term: string;
619
+ }, {
620
+ type: "exact";
621
+ term: string;
622
+ }>>>;
284
623
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
285
624
  type: z.ZodLiteral<"exact">;
286
625
  term: z.ZodString;
287
- }, z.core.$strip>>>;
626
+ }, "strip", z.ZodTypeAny, {
627
+ type: "exact";
628
+ term: string;
629
+ }, {
630
+ type: "exact";
631
+ term: string;
632
+ }>>>;
288
633
  trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
289
634
  type: z.ZodLiteral<"exact">;
290
635
  term: z.ZodString;
291
- }, z.core.$strip>>>;
636
+ }, "strip", z.ZodTypeAny, {
637
+ type: "exact";
638
+ term: string;
639
+ }, {
640
+ type: "exact";
641
+ term: string;
642
+ }>>>;
292
643
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
293
- anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
644
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
294
645
  readonly PENDING_CERTIFICATION: "pending-certification";
295
646
  readonly INCOMPLETE: "incomplete";
296
647
  readonly REJECTED: "rejected";
297
648
  readonly CORRECTION_REQUESTED: "correction-requested";
298
649
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
299
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
300
- }>]>, z.ZodString]>>>;
301
- noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
650
+ }>]>, "many">>;
651
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
302
652
  readonly PENDING_CERTIFICATION: "pending-certification";
303
653
  readonly INCOMPLETE: "incomplete";
304
654
  readonly REJECTED: "rejected";
305
655
  readonly CORRECTION_REQUESTED: "correction-requested";
306
656
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
307
- readonly EDIT_IN_PROGRESS: "edit-in-progress";
308
- }>]>, z.ZodString]>>>;
309
- }, z.core.$strip>>>;
310
- data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
311
- }, z.core.$strip>;
312
- export type QueryTypeShape = {
313
- type: 'and' | 'or';
314
- clauses: Array<z.infer<typeof QueryExpression> | QueryTypeShape>;
315
- };
316
- export declare const QueryType: z.ZodType<QueryTypeShape>;
657
+ }>]>, "many">>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ anyOf?: string[] | undefined;
660
+ noneOf?: string[] | undefined;
661
+ }, {
662
+ anyOf?: string[] | undefined;
663
+ noneOf?: string[] | undefined;
664
+ }>>>;
665
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ id?: string | undefined;
668
+ status?: {
669
+ type: "exact";
670
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
671
+ } | {
672
+ type: "anyOf";
673
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
674
+ } | undefined;
675
+ data?: any;
676
+ createdByUserType?: {
677
+ type: "exact";
678
+ term: "system" | "user";
679
+ } | undefined;
680
+ createdAt?: {
681
+ type: "range";
682
+ gte: string;
683
+ lte: string;
684
+ } | {
685
+ type: "exact";
686
+ term: string;
687
+ } | {
688
+ type: "timePeriod";
689
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
690
+ } | undefined;
691
+ createdBy?: {
692
+ type: "exact";
693
+ term: string;
694
+ } | undefined;
695
+ createdAtLocation?: {
696
+ type: "exact";
697
+ term: string;
698
+ } | {
699
+ type: "within";
700
+ location: string;
701
+ } | undefined;
702
+ assignedTo?: {
703
+ type: "exact";
704
+ term: string;
705
+ } | undefined;
706
+ trackingId?: {
707
+ type: "exact";
708
+ term: string;
709
+ } | undefined;
710
+ updatedAt?: {
711
+ type: "range";
712
+ gte: string;
713
+ lte: string;
714
+ } | {
715
+ type: "exact";
716
+ term: string;
717
+ } | {
718
+ type: "timePeriod";
719
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
720
+ } | undefined;
721
+ updatedAtLocation?: {
722
+ type: "exact";
723
+ term: string;
724
+ } | {
725
+ type: "within";
726
+ location: string;
727
+ } | undefined;
728
+ updatedBy?: {
729
+ type: "exact";
730
+ term: string;
731
+ } | undefined;
732
+ flags?: {
733
+ anyOf?: string[] | undefined;
734
+ noneOf?: string[] | undefined;
735
+ } | undefined;
736
+ eventType?: string | undefined;
737
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
738
+ type: "range";
739
+ gte: string;
740
+ lte: string;
741
+ } | {
742
+ type: "exact";
743
+ term: string;
744
+ } | {
745
+ type: "timePeriod";
746
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
747
+ } | undefined;
748
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
749
+ type: "exact";
750
+ term: string;
751
+ } | {
752
+ type: "within";
753
+ location: string;
754
+ } | undefined;
755
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
756
+ type: "exact";
757
+ term: string;
758
+ } | {
759
+ type: "within";
760
+ location: string;
761
+ } | undefined;
762
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
763
+ type: "exact";
764
+ term: string;
765
+ } | undefined;
766
+ }, {
767
+ id?: string | undefined;
768
+ status?: {
769
+ type: "exact";
770
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
771
+ } | {
772
+ type: "anyOf";
773
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
774
+ } | undefined;
775
+ data?: any;
776
+ createdByUserType?: {
777
+ type: "exact";
778
+ term: "system" | "user";
779
+ } | undefined;
780
+ createdAt?: {
781
+ type: "range";
782
+ gte: string;
783
+ lte: string;
784
+ } | {
785
+ type: "exact";
786
+ term: string;
787
+ } | {
788
+ type: "timePeriod";
789
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
790
+ } | undefined;
791
+ createdBy?: {
792
+ type: "exact";
793
+ term: string;
794
+ } | undefined;
795
+ createdAtLocation?: {
796
+ type: "exact";
797
+ term: string;
798
+ } | {
799
+ type: "within";
800
+ location: string;
801
+ } | undefined;
802
+ assignedTo?: {
803
+ type: "exact";
804
+ term: string;
805
+ } | undefined;
806
+ trackingId?: {
807
+ type: "exact";
808
+ term: string;
809
+ } | undefined;
810
+ updatedAt?: {
811
+ type: "range";
812
+ gte: string;
813
+ lte: string;
814
+ } | {
815
+ type: "exact";
816
+ term: string;
817
+ } | {
818
+ type: "timePeriod";
819
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
820
+ } | undefined;
821
+ updatedAtLocation?: {
822
+ type: "exact";
823
+ term: string;
824
+ } | {
825
+ type: "within";
826
+ location: string;
827
+ } | undefined;
828
+ updatedBy?: {
829
+ type: "exact";
830
+ term: string;
831
+ } | undefined;
832
+ flags?: {
833
+ anyOf?: string[] | undefined;
834
+ noneOf?: string[] | undefined;
835
+ } | undefined;
836
+ eventType?: string | undefined;
837
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
838
+ type: "range";
839
+ gte: string;
840
+ lte: string;
841
+ } | {
842
+ type: "exact";
843
+ term: string;
844
+ } | {
845
+ type: "timePeriod";
846
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
847
+ } | undefined;
848
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
849
+ type: "exact";
850
+ term: string;
851
+ } | {
852
+ type: "within";
853
+ location: string;
854
+ } | undefined;
855
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
856
+ type: "exact";
857
+ term: string;
858
+ } | {
859
+ type: "within";
860
+ location: string;
861
+ } | undefined;
862
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
863
+ type: "exact";
864
+ term: string;
865
+ } | undefined;
866
+ }>, {
867
+ id?: string | undefined;
868
+ status?: {
869
+ type: "exact";
870
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
871
+ } | {
872
+ type: "anyOf";
873
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
874
+ } | undefined;
875
+ data?: any;
876
+ createdByUserType?: {
877
+ type: "exact";
878
+ term: "system" | "user";
879
+ } | undefined;
880
+ createdAt?: {
881
+ type: "range";
882
+ gte: string;
883
+ lte: string;
884
+ } | {
885
+ type: "exact";
886
+ term: string;
887
+ } | {
888
+ type: "timePeriod";
889
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
890
+ } | undefined;
891
+ createdBy?: {
892
+ type: "exact";
893
+ term: string;
894
+ } | undefined;
895
+ createdAtLocation?: {
896
+ type: "exact";
897
+ term: string;
898
+ } | {
899
+ type: "within";
900
+ location: string;
901
+ } | undefined;
902
+ assignedTo?: {
903
+ type: "exact";
904
+ term: string;
905
+ } | undefined;
906
+ trackingId?: {
907
+ type: "exact";
908
+ term: string;
909
+ } | undefined;
910
+ updatedAt?: {
911
+ type: "range";
912
+ gte: string;
913
+ lte: string;
914
+ } | {
915
+ type: "exact";
916
+ term: string;
917
+ } | {
918
+ type: "timePeriod";
919
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
920
+ } | undefined;
921
+ updatedAtLocation?: {
922
+ type: "exact";
923
+ term: string;
924
+ } | {
925
+ type: "within";
926
+ location: string;
927
+ } | undefined;
928
+ updatedBy?: {
929
+ type: "exact";
930
+ term: string;
931
+ } | undefined;
932
+ flags?: {
933
+ anyOf?: string[] | undefined;
934
+ noneOf?: string[] | undefined;
935
+ } | undefined;
936
+ eventType?: string | undefined;
937
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
938
+ type: "range";
939
+ gte: string;
940
+ lte: string;
941
+ } | {
942
+ type: "exact";
943
+ term: string;
944
+ } | {
945
+ type: "timePeriod";
946
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
947
+ } | undefined;
948
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
949
+ type: "exact";
950
+ term: string;
951
+ } | {
952
+ type: "within";
953
+ location: string;
954
+ } | undefined;
955
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
956
+ type: "exact";
957
+ term: string;
958
+ } | {
959
+ type: "within";
960
+ location: string;
961
+ } | undefined;
962
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
963
+ type: "exact";
964
+ term: string;
965
+ } | undefined;
966
+ }, {
967
+ id?: string | undefined;
968
+ status?: {
969
+ type: "exact";
970
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
971
+ } | {
972
+ type: "anyOf";
973
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
974
+ } | undefined;
975
+ data?: any;
976
+ createdByUserType?: {
977
+ type: "exact";
978
+ term: "system" | "user";
979
+ } | undefined;
980
+ createdAt?: {
981
+ type: "range";
982
+ gte: string;
983
+ lte: string;
984
+ } | {
985
+ type: "exact";
986
+ term: string;
987
+ } | {
988
+ type: "timePeriod";
989
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
990
+ } | undefined;
991
+ createdBy?: {
992
+ type: "exact";
993
+ term: string;
994
+ } | undefined;
995
+ createdAtLocation?: {
996
+ type: "exact";
997
+ term: string;
998
+ } | {
999
+ type: "within";
1000
+ location: string;
1001
+ } | undefined;
1002
+ assignedTo?: {
1003
+ type: "exact";
1004
+ term: string;
1005
+ } | undefined;
1006
+ trackingId?: {
1007
+ type: "exact";
1008
+ term: string;
1009
+ } | undefined;
1010
+ updatedAt?: {
1011
+ type: "range";
1012
+ gte: string;
1013
+ lte: string;
1014
+ } | {
1015
+ type: "exact";
1016
+ term: string;
1017
+ } | {
1018
+ type: "timePeriod";
1019
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1020
+ } | undefined;
1021
+ updatedAtLocation?: {
1022
+ type: "exact";
1023
+ term: string;
1024
+ } | {
1025
+ type: "within";
1026
+ location: string;
1027
+ } | undefined;
1028
+ updatedBy?: {
1029
+ type: "exact";
1030
+ term: string;
1031
+ } | undefined;
1032
+ flags?: {
1033
+ anyOf?: string[] | undefined;
1034
+ noneOf?: string[] | undefined;
1035
+ } | undefined;
1036
+ eventType?: string | undefined;
1037
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1038
+ type: "range";
1039
+ gte: string;
1040
+ lte: string;
1041
+ } | {
1042
+ type: "exact";
1043
+ term: string;
1044
+ } | {
1045
+ type: "timePeriod";
1046
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1047
+ } | undefined;
1048
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1049
+ type: "exact";
1050
+ term: string;
1051
+ } | {
1052
+ type: "within";
1053
+ location: string;
1054
+ } | undefined;
1055
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1056
+ type: "exact";
1057
+ term: string;
1058
+ } | {
1059
+ type: "within";
1060
+ location: string;
1061
+ } | undefined;
1062
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1063
+ type: "exact";
1064
+ term: string;
1065
+ } | undefined;
1066
+ }>;
1067
+ export declare const QueryType: ZodType;
317
1068
  export declare const SearchQuery: z.ZodObject<{
318
- query: z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
1069
+ query: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, any, unknown>;
319
1070
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
320
1071
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
321
- sort: z.ZodOptional<z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodArray<z.ZodObject<{
1072
+ sort: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
322
1073
  field: z.ZodString;
323
- direction: z.ZodDefault<z.ZodEnum<{
324
- asc: "asc";
325
- desc: "desc";
326
- }>>;
327
- }, z.core.$strip>>>>;
328
- }, z.core.$strip>;
1074
+ direction: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ field: string;
1077
+ direction: "asc" | "desc";
1078
+ }, {
1079
+ field: string;
1080
+ direction?: "asc" | "desc" | undefined;
1081
+ }>, "many">, {
1082
+ field: string;
1083
+ direction: "asc" | "desc";
1084
+ }[], unknown>>;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ limit: number;
1087
+ offset: number;
1088
+ sort?: {
1089
+ field: string;
1090
+ direction: "asc" | "desc";
1091
+ }[] | undefined;
1092
+ query?: any;
1093
+ }, {
1094
+ sort?: unknown;
1095
+ query?: unknown;
1096
+ limit?: number | undefined;
1097
+ offset?: number | undefined;
1098
+ }>;
329
1099
  export type SearchQuery = z.infer<typeof SearchQuery>;
330
1100
  export type QueryType = z.infer<typeof QueryType>;
331
1101
  export type QueryExpression = z.infer<typeof QueryExpression>;