@opencrvs/toolkit 1.8.0-rc.fd6feaa → 1.8.0-rc.fea3888
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.
- package/README.md +1 -1
- package/dist/commons/api/router.d.ts +10466 -13734
- package/dist/commons/conditionals/conditionals.d.ts +31 -5
- package/dist/commons/conditionals/validate.d.ts +12 -17
- package/dist/commons/events/ActionConfig.d.ts +85746 -1981
- package/dist/commons/events/ActionDocument.d.ts +8433 -503
- package/dist/commons/events/ActionInput.d.ts +3229 -704
- package/dist/commons/events/ActionType.d.ts +26 -11
- package/dist/commons/events/AdvancedSearchConfig.d.ts +371 -25
- package/dist/commons/events/CompositeFieldValue.d.ts +55 -12
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +174 -72
- package/dist/commons/events/EventConfig.d.ts +40845 -1776
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +1897 -619
- package/dist/commons/events/EventIndex.d.ts +921 -7
- package/dist/commons/events/EventInput.d.ts +13 -0
- package/dist/commons/events/EventMetadata.d.ts +16 -3
- package/dist/commons/events/FieldConfig.d.ts +3911 -759
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +57 -8
- package/dist/commons/events/FieldValue.d.ts +31 -11
- package/dist/commons/events/FormConfig.d.ts +38982 -69
- package/dist/commons/events/PageConfig.d.ts +9803 -0
- package/dist/commons/events/SummaryConfig.d.ts +81 -42
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- package/dist/commons/events/User.d.ts +5 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +44 -20
- package/dist/commons/events/defineConfig.d.ts +6749 -224
- package/dist/commons/events/event.d.ts +25 -0
- package/dist/commons/events/field.d.ts +68 -0
- package/dist/commons/events/index.d.ts +5 -1
- package/dist/commons/events/scopes.d.ts +26 -0
- package/dist/commons/events/test.utils.d.ts +84 -302
- package/dist/commons/events/utils.d.ts +3444 -118
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +196 -108
- package/dist/events/index.js +1984 -1136
- package/package.json +3 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
import { z } from 'zod';
|
1
|
+
import { z, ZodType } from 'zod';
|
2
2
|
export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
3
3
|
id: z.ZodString;
|
4
4
|
type: z.ZodString;
|
@@ -13,38 +13,50 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
13
13
|
readonly ARCHIVED: "ARCHIVED";
|
14
14
|
}>;
|
15
15
|
createdAt: z.ZodString;
|
16
|
+
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
16
17
|
createdBy: z.ZodString;
|
18
|
+
updatedByUserRole: z.ZodString;
|
17
19
|
createdAtLocation: z.ZodString;
|
18
|
-
|
20
|
+
updatedAtLocation: z.ZodString;
|
21
|
+
updatedAt: z.ZodString;
|
19
22
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
20
23
|
updatedBy: z.ZodString;
|
21
24
|
trackingId: z.ZodString;
|
25
|
+
registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
22
26
|
}, {
|
23
|
-
|
27
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
|
24
28
|
}>, "strip", z.ZodTypeAny, {
|
25
29
|
type: string;
|
26
30
|
id: string;
|
27
31
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
28
|
-
data: Record<string, any>;
|
29
32
|
createdAt: string;
|
30
33
|
createdBy: string;
|
34
|
+
declaration: Record<string, any>;
|
31
35
|
createdAtLocation: string;
|
36
|
+
updatedAtLocation: string;
|
37
|
+
updatedAt: string;
|
32
38
|
trackingId: string;
|
33
|
-
|
39
|
+
updatedByUserRole: string;
|
34
40
|
updatedBy: string;
|
35
41
|
assignedTo?: string | null | undefined;
|
42
|
+
registrationNumber?: string | null | undefined;
|
43
|
+
dateOfEvent?: string | null | undefined;
|
36
44
|
}, {
|
37
45
|
type: string;
|
38
46
|
id: string;
|
39
47
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
40
|
-
data: Record<string, any>;
|
41
48
|
createdAt: string;
|
42
49
|
createdBy: string;
|
50
|
+
declaration: Record<string, any>;
|
43
51
|
createdAtLocation: string;
|
52
|
+
updatedAtLocation: string;
|
53
|
+
updatedAt: string;
|
44
54
|
trackingId: string;
|
45
|
-
|
55
|
+
updatedByUserRole: string;
|
46
56
|
updatedBy: string;
|
47
57
|
assignedTo?: string | null | undefined;
|
58
|
+
registrationNumber?: string | null | undefined;
|
59
|
+
dateOfEvent?: string | null | undefined;
|
48
60
|
}>;
|
49
61
|
export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
50
62
|
type: z.ZodString;
|
@@ -55,4 +67,906 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
|
|
55
67
|
}>>;
|
56
68
|
export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
|
57
69
|
export type EventIndex = z.infer<typeof EventIndex>;
|
70
|
+
declare const Fuzzy: z.ZodObject<{
|
71
|
+
type: z.ZodLiteral<"fuzzy">;
|
72
|
+
term: z.ZodString;
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
74
|
+
type: "fuzzy";
|
75
|
+
term: string;
|
76
|
+
}, {
|
77
|
+
type: "fuzzy";
|
78
|
+
term: string;
|
79
|
+
}>;
|
80
|
+
declare const Exact: z.ZodObject<{
|
81
|
+
type: z.ZodLiteral<"exact">;
|
82
|
+
term: z.ZodString;
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
84
|
+
type: "exact";
|
85
|
+
term: string;
|
86
|
+
}, {
|
87
|
+
type: "exact";
|
88
|
+
term: string;
|
89
|
+
}>;
|
90
|
+
declare const AnyOf: z.ZodObject<{
|
91
|
+
type: z.ZodLiteral<"anyOf">;
|
92
|
+
terms: z.ZodArray<z.ZodString, "many">;
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
94
|
+
type: "anyOf";
|
95
|
+
terms: string[];
|
96
|
+
}, {
|
97
|
+
type: "anyOf";
|
98
|
+
terms: string[];
|
99
|
+
}>;
|
100
|
+
declare const Range: z.ZodObject<{
|
101
|
+
type: z.ZodLiteral<"range">;
|
102
|
+
gte: z.ZodString;
|
103
|
+
lte: 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
|
+
}>;
|
113
|
+
declare const Within: z.ZodObject<{
|
114
|
+
type: z.ZodLiteral<"within">;
|
115
|
+
location: z.ZodString;
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
117
|
+
type: "within";
|
118
|
+
location: string;
|
119
|
+
}, {
|
120
|
+
type: "within";
|
121
|
+
location: string;
|
122
|
+
}>;
|
123
|
+
export declare const QueryInput: ZodType;
|
124
|
+
export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
|
125
|
+
type QueryMap = {
|
126
|
+
[key: string]: BaseInput | QueryMap;
|
127
|
+
};
|
128
|
+
export type QueryInputType = BaseInput | QueryMap;
|
129
|
+
declare const QueryExpression: z.ZodObject<{
|
130
|
+
type: z.ZodOptional<z.ZodLiteral<"and">>;
|
131
|
+
eventType: z.ZodOptional<z.ZodString>;
|
132
|
+
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
133
|
+
type: z.ZodLiteral<"anyOf">;
|
134
|
+
terms: z.ZodArray<z.ZodString, "many">;
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
136
|
+
type: "anyOf";
|
137
|
+
terms: string[];
|
138
|
+
}, {
|
139
|
+
type: "anyOf";
|
140
|
+
terms: string[];
|
141
|
+
}>, 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
|
+
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
152
|
+
type: z.ZodLiteral<"exact">;
|
153
|
+
term: z.ZodString;
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
155
|
+
type: "exact";
|
156
|
+
term: string;
|
157
|
+
}, {
|
158
|
+
type: "exact";
|
159
|
+
term: string;
|
160
|
+
}>, z.ZodObject<{
|
161
|
+
type: z.ZodLiteral<"range">;
|
162
|
+
gte: z.ZodString;
|
163
|
+
lte: z.ZodString;
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
165
|
+
type: "range";
|
166
|
+
gte: string;
|
167
|
+
lte: string;
|
168
|
+
}, {
|
169
|
+
type: "range";
|
170
|
+
gte: string;
|
171
|
+
lte: string;
|
172
|
+
}>]>>>;
|
173
|
+
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
174
|
+
type: z.ZodLiteral<"exact">;
|
175
|
+
term: z.ZodString;
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
177
|
+
type: "exact";
|
178
|
+
term: string;
|
179
|
+
}, {
|
180
|
+
type: "exact";
|
181
|
+
term: string;
|
182
|
+
}>, z.ZodObject<{
|
183
|
+
type: z.ZodLiteral<"range">;
|
184
|
+
gte: z.ZodString;
|
185
|
+
lte: z.ZodString;
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
187
|
+
type: "range";
|
188
|
+
gte: string;
|
189
|
+
lte: string;
|
190
|
+
}, {
|
191
|
+
type: "range";
|
192
|
+
gte: string;
|
193
|
+
lte: string;
|
194
|
+
}>]>>>;
|
195
|
+
createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
196
|
+
type: z.ZodLiteral<"within">;
|
197
|
+
location: z.ZodString;
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
199
|
+
type: "within";
|
200
|
+
location: string;
|
201
|
+
}, {
|
202
|
+
type: "within";
|
203
|
+
location: string;
|
204
|
+
}>, z.ZodObject<{
|
205
|
+
type: z.ZodLiteral<"exact">;
|
206
|
+
term: z.ZodString;
|
207
|
+
}, "strip", z.ZodTypeAny, {
|
208
|
+
type: "exact";
|
209
|
+
term: string;
|
210
|
+
}, {
|
211
|
+
type: "exact";
|
212
|
+
term: string;
|
213
|
+
}>]>>>;
|
214
|
+
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
215
|
+
type: z.ZodLiteral<"within">;
|
216
|
+
location: z.ZodString;
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
218
|
+
type: "within";
|
219
|
+
location: string;
|
220
|
+
}, {
|
221
|
+
type: "within";
|
222
|
+
location: string;
|
223
|
+
}>, z.ZodObject<{
|
224
|
+
type: z.ZodLiteral<"exact">;
|
225
|
+
term: z.ZodString;
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
227
|
+
type: "exact";
|
228
|
+
term: string;
|
229
|
+
}, {
|
230
|
+
type: "exact";
|
231
|
+
term: string;
|
232
|
+
}>]>>>;
|
233
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
234
|
+
type: z.ZodLiteral<"exact">;
|
235
|
+
term: z.ZodString;
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
237
|
+
type: "exact";
|
238
|
+
term: string;
|
239
|
+
}, {
|
240
|
+
type: "exact";
|
241
|
+
term: string;
|
242
|
+
}>>>;
|
243
|
+
updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
244
|
+
type: z.ZodLiteral<"exact">;
|
245
|
+
term: z.ZodString;
|
246
|
+
}, "strip", z.ZodTypeAny, {
|
247
|
+
type: "exact";
|
248
|
+
term: string;
|
249
|
+
}, {
|
250
|
+
type: "exact";
|
251
|
+
term: string;
|
252
|
+
}>>>;
|
253
|
+
trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
254
|
+
type: z.ZodLiteral<"exact">;
|
255
|
+
term: z.ZodString;
|
256
|
+
}, "strip", z.ZodTypeAny, {
|
257
|
+
type: "exact";
|
258
|
+
term: string;
|
259
|
+
}, {
|
260
|
+
type: "exact";
|
261
|
+
term: string;
|
262
|
+
}>>>;
|
263
|
+
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
265
|
+
type?: "and" | undefined;
|
266
|
+
status?: {
|
267
|
+
type: "exact";
|
268
|
+
term: string;
|
269
|
+
} | {
|
270
|
+
type: "anyOf";
|
271
|
+
terms: string[];
|
272
|
+
} | undefined;
|
273
|
+
data?: any;
|
274
|
+
createdAt?: {
|
275
|
+
type: "exact";
|
276
|
+
term: string;
|
277
|
+
} | {
|
278
|
+
type: "range";
|
279
|
+
gte: string;
|
280
|
+
lte: string;
|
281
|
+
} | undefined;
|
282
|
+
createdBy?: {
|
283
|
+
type: "exact";
|
284
|
+
term: string;
|
285
|
+
} | undefined;
|
286
|
+
updatedAtLocation?: {
|
287
|
+
type: "exact";
|
288
|
+
term: string;
|
289
|
+
} | {
|
290
|
+
type: "within";
|
291
|
+
location: string;
|
292
|
+
} | undefined;
|
293
|
+
updatedAt?: {
|
294
|
+
type: "exact";
|
295
|
+
term: string;
|
296
|
+
} | {
|
297
|
+
type: "range";
|
298
|
+
gte: string;
|
299
|
+
lte: string;
|
300
|
+
} | undefined;
|
301
|
+
trackingId?: {
|
302
|
+
type: "exact";
|
303
|
+
term: string;
|
304
|
+
} | undefined;
|
305
|
+
updatedBy?: {
|
306
|
+
type: "exact";
|
307
|
+
term: string;
|
308
|
+
} | undefined;
|
309
|
+
eventType?: string | undefined;
|
310
|
+
createAtLocation?: {
|
311
|
+
type: "exact";
|
312
|
+
term: string;
|
313
|
+
} | {
|
314
|
+
type: "within";
|
315
|
+
location: string;
|
316
|
+
} | undefined;
|
317
|
+
}, {
|
318
|
+
type?: "and" | undefined;
|
319
|
+
status?: {
|
320
|
+
type: "exact";
|
321
|
+
term: string;
|
322
|
+
} | {
|
323
|
+
type: "anyOf";
|
324
|
+
terms: string[];
|
325
|
+
} | undefined;
|
326
|
+
data?: any;
|
327
|
+
createdAt?: {
|
328
|
+
type: "exact";
|
329
|
+
term: string;
|
330
|
+
} | {
|
331
|
+
type: "range";
|
332
|
+
gte: string;
|
333
|
+
lte: string;
|
334
|
+
} | undefined;
|
335
|
+
createdBy?: {
|
336
|
+
type: "exact";
|
337
|
+
term: string;
|
338
|
+
} | undefined;
|
339
|
+
updatedAtLocation?: {
|
340
|
+
type: "exact";
|
341
|
+
term: string;
|
342
|
+
} | {
|
343
|
+
type: "within";
|
344
|
+
location: string;
|
345
|
+
} | undefined;
|
346
|
+
updatedAt?: {
|
347
|
+
type: "exact";
|
348
|
+
term: string;
|
349
|
+
} | {
|
350
|
+
type: "range";
|
351
|
+
gte: string;
|
352
|
+
lte: string;
|
353
|
+
} | undefined;
|
354
|
+
trackingId?: {
|
355
|
+
type: "exact";
|
356
|
+
term: string;
|
357
|
+
} | undefined;
|
358
|
+
updatedBy?: {
|
359
|
+
type: "exact";
|
360
|
+
term: string;
|
361
|
+
} | undefined;
|
362
|
+
eventType?: string | undefined;
|
363
|
+
createAtLocation?: {
|
364
|
+
type: "exact";
|
365
|
+
term: string;
|
366
|
+
} | {
|
367
|
+
type: "within";
|
368
|
+
location: string;
|
369
|
+
} | undefined;
|
370
|
+
}>;
|
371
|
+
export type QueryExpression = z.infer<typeof QueryExpression>;
|
372
|
+
export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
373
|
+
type: z.ZodOptional<z.ZodLiteral<"and">>;
|
374
|
+
eventType: z.ZodOptional<z.ZodString>;
|
375
|
+
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
376
|
+
type: z.ZodLiteral<"anyOf">;
|
377
|
+
terms: z.ZodArray<z.ZodString, "many">;
|
378
|
+
}, "strip", z.ZodTypeAny, {
|
379
|
+
type: "anyOf";
|
380
|
+
terms: string[];
|
381
|
+
}, {
|
382
|
+
type: "anyOf";
|
383
|
+
terms: string[];
|
384
|
+
}>, z.ZodObject<{
|
385
|
+
type: z.ZodLiteral<"exact">;
|
386
|
+
term: z.ZodString;
|
387
|
+
}, "strip", z.ZodTypeAny, {
|
388
|
+
type: "exact";
|
389
|
+
term: string;
|
390
|
+
}, {
|
391
|
+
type: "exact";
|
392
|
+
term: string;
|
393
|
+
}>]>>>;
|
394
|
+
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
395
|
+
type: z.ZodLiteral<"exact">;
|
396
|
+
term: z.ZodString;
|
397
|
+
}, "strip", z.ZodTypeAny, {
|
398
|
+
type: "exact";
|
399
|
+
term: string;
|
400
|
+
}, {
|
401
|
+
type: "exact";
|
402
|
+
term: string;
|
403
|
+
}>, z.ZodObject<{
|
404
|
+
type: z.ZodLiteral<"range">;
|
405
|
+
gte: z.ZodString;
|
406
|
+
lte: z.ZodString;
|
407
|
+
}, "strip", z.ZodTypeAny, {
|
408
|
+
type: "range";
|
409
|
+
gte: string;
|
410
|
+
lte: string;
|
411
|
+
}, {
|
412
|
+
type: "range";
|
413
|
+
gte: string;
|
414
|
+
lte: string;
|
415
|
+
}>]>>>;
|
416
|
+
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
417
|
+
type: z.ZodLiteral<"exact">;
|
418
|
+
term: z.ZodString;
|
419
|
+
}, "strip", z.ZodTypeAny, {
|
420
|
+
type: "exact";
|
421
|
+
term: string;
|
422
|
+
}, {
|
423
|
+
type: "exact";
|
424
|
+
term: string;
|
425
|
+
}>, z.ZodObject<{
|
426
|
+
type: z.ZodLiteral<"range">;
|
427
|
+
gte: z.ZodString;
|
428
|
+
lte: z.ZodString;
|
429
|
+
}, "strip", z.ZodTypeAny, {
|
430
|
+
type: "range";
|
431
|
+
gte: string;
|
432
|
+
lte: string;
|
433
|
+
}, {
|
434
|
+
type: "range";
|
435
|
+
gte: string;
|
436
|
+
lte: string;
|
437
|
+
}>]>>>;
|
438
|
+
createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
439
|
+
type: z.ZodLiteral<"within">;
|
440
|
+
location: z.ZodString;
|
441
|
+
}, "strip", z.ZodTypeAny, {
|
442
|
+
type: "within";
|
443
|
+
location: string;
|
444
|
+
}, {
|
445
|
+
type: "within";
|
446
|
+
location: string;
|
447
|
+
}>, z.ZodObject<{
|
448
|
+
type: z.ZodLiteral<"exact">;
|
449
|
+
term: z.ZodString;
|
450
|
+
}, "strip", z.ZodTypeAny, {
|
451
|
+
type: "exact";
|
452
|
+
term: string;
|
453
|
+
}, {
|
454
|
+
type: "exact";
|
455
|
+
term: string;
|
456
|
+
}>]>>>;
|
457
|
+
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
458
|
+
type: z.ZodLiteral<"within">;
|
459
|
+
location: z.ZodString;
|
460
|
+
}, "strip", z.ZodTypeAny, {
|
461
|
+
type: "within";
|
462
|
+
location: string;
|
463
|
+
}, {
|
464
|
+
type: "within";
|
465
|
+
location: string;
|
466
|
+
}>, z.ZodObject<{
|
467
|
+
type: z.ZodLiteral<"exact">;
|
468
|
+
term: z.ZodString;
|
469
|
+
}, "strip", z.ZodTypeAny, {
|
470
|
+
type: "exact";
|
471
|
+
term: string;
|
472
|
+
}, {
|
473
|
+
type: "exact";
|
474
|
+
term: string;
|
475
|
+
}>]>>>;
|
476
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
477
|
+
type: z.ZodLiteral<"exact">;
|
478
|
+
term: z.ZodString;
|
479
|
+
}, "strip", z.ZodTypeAny, {
|
480
|
+
type: "exact";
|
481
|
+
term: string;
|
482
|
+
}, {
|
483
|
+
type: "exact";
|
484
|
+
term: string;
|
485
|
+
}>>>;
|
486
|
+
updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
487
|
+
type: z.ZodLiteral<"exact">;
|
488
|
+
term: z.ZodString;
|
489
|
+
}, "strip", z.ZodTypeAny, {
|
490
|
+
type: "exact";
|
491
|
+
term: string;
|
492
|
+
}, {
|
493
|
+
type: "exact";
|
494
|
+
term: string;
|
495
|
+
}>>>;
|
496
|
+
trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
497
|
+
type: z.ZodLiteral<"exact">;
|
498
|
+
term: z.ZodString;
|
499
|
+
}, "strip", z.ZodTypeAny, {
|
500
|
+
type: "exact";
|
501
|
+
term: string;
|
502
|
+
}, {
|
503
|
+
type: "exact";
|
504
|
+
term: string;
|
505
|
+
}>>>;
|
506
|
+
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
507
|
+
}, "strip", z.ZodTypeAny, {
|
508
|
+
type?: "and" | undefined;
|
509
|
+
status?: {
|
510
|
+
type: "exact";
|
511
|
+
term: string;
|
512
|
+
} | {
|
513
|
+
type: "anyOf";
|
514
|
+
terms: string[];
|
515
|
+
} | undefined;
|
516
|
+
data?: any;
|
517
|
+
createdAt?: {
|
518
|
+
type: "exact";
|
519
|
+
term: string;
|
520
|
+
} | {
|
521
|
+
type: "range";
|
522
|
+
gte: string;
|
523
|
+
lte: string;
|
524
|
+
} | undefined;
|
525
|
+
createdBy?: {
|
526
|
+
type: "exact";
|
527
|
+
term: string;
|
528
|
+
} | undefined;
|
529
|
+
updatedAtLocation?: {
|
530
|
+
type: "exact";
|
531
|
+
term: string;
|
532
|
+
} | {
|
533
|
+
type: "within";
|
534
|
+
location: string;
|
535
|
+
} | undefined;
|
536
|
+
updatedAt?: {
|
537
|
+
type: "exact";
|
538
|
+
term: string;
|
539
|
+
} | {
|
540
|
+
type: "range";
|
541
|
+
gte: string;
|
542
|
+
lte: string;
|
543
|
+
} | undefined;
|
544
|
+
trackingId?: {
|
545
|
+
type: "exact";
|
546
|
+
term: string;
|
547
|
+
} | undefined;
|
548
|
+
updatedBy?: {
|
549
|
+
type: "exact";
|
550
|
+
term: string;
|
551
|
+
} | undefined;
|
552
|
+
eventType?: string | undefined;
|
553
|
+
createAtLocation?: {
|
554
|
+
type: "exact";
|
555
|
+
term: string;
|
556
|
+
} | {
|
557
|
+
type: "within";
|
558
|
+
location: string;
|
559
|
+
} | undefined;
|
560
|
+
}, {
|
561
|
+
type?: "and" | undefined;
|
562
|
+
status?: {
|
563
|
+
type: "exact";
|
564
|
+
term: string;
|
565
|
+
} | {
|
566
|
+
type: "anyOf";
|
567
|
+
terms: string[];
|
568
|
+
} | undefined;
|
569
|
+
data?: any;
|
570
|
+
createdAt?: {
|
571
|
+
type: "exact";
|
572
|
+
term: string;
|
573
|
+
} | {
|
574
|
+
type: "range";
|
575
|
+
gte: string;
|
576
|
+
lte: string;
|
577
|
+
} | undefined;
|
578
|
+
createdBy?: {
|
579
|
+
type: "exact";
|
580
|
+
term: string;
|
581
|
+
} | undefined;
|
582
|
+
updatedAtLocation?: {
|
583
|
+
type: "exact";
|
584
|
+
term: string;
|
585
|
+
} | {
|
586
|
+
type: "within";
|
587
|
+
location: string;
|
588
|
+
} | undefined;
|
589
|
+
updatedAt?: {
|
590
|
+
type: "exact";
|
591
|
+
term: string;
|
592
|
+
} | {
|
593
|
+
type: "range";
|
594
|
+
gte: string;
|
595
|
+
lte: string;
|
596
|
+
} | undefined;
|
597
|
+
trackingId?: {
|
598
|
+
type: "exact";
|
599
|
+
term: string;
|
600
|
+
} | undefined;
|
601
|
+
updatedBy?: {
|
602
|
+
type: "exact";
|
603
|
+
term: string;
|
604
|
+
} | undefined;
|
605
|
+
eventType?: string | undefined;
|
606
|
+
createAtLocation?: {
|
607
|
+
type: "exact";
|
608
|
+
term: string;
|
609
|
+
} | {
|
610
|
+
type: "within";
|
611
|
+
location: string;
|
612
|
+
} | undefined;
|
613
|
+
}>, z.ZodObject<{
|
614
|
+
type: z.ZodLiteral<"or">;
|
615
|
+
clauses: z.ZodArray<z.ZodObject<{
|
616
|
+
type: z.ZodOptional<z.ZodLiteral<"and">>;
|
617
|
+
eventType: z.ZodOptional<z.ZodString>;
|
618
|
+
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
619
|
+
type: z.ZodLiteral<"anyOf">;
|
620
|
+
terms: z.ZodArray<z.ZodString, "many">;
|
621
|
+
}, "strip", z.ZodTypeAny, {
|
622
|
+
type: "anyOf";
|
623
|
+
terms: string[];
|
624
|
+
}, {
|
625
|
+
type: "anyOf";
|
626
|
+
terms: string[];
|
627
|
+
}>, z.ZodObject<{
|
628
|
+
type: z.ZodLiteral<"exact">;
|
629
|
+
term: z.ZodString;
|
630
|
+
}, "strip", z.ZodTypeAny, {
|
631
|
+
type: "exact";
|
632
|
+
term: string;
|
633
|
+
}, {
|
634
|
+
type: "exact";
|
635
|
+
term: string;
|
636
|
+
}>]>>>;
|
637
|
+
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
638
|
+
type: z.ZodLiteral<"exact">;
|
639
|
+
term: z.ZodString;
|
640
|
+
}, "strip", z.ZodTypeAny, {
|
641
|
+
type: "exact";
|
642
|
+
term: string;
|
643
|
+
}, {
|
644
|
+
type: "exact";
|
645
|
+
term: string;
|
646
|
+
}>, z.ZodObject<{
|
647
|
+
type: z.ZodLiteral<"range">;
|
648
|
+
gte: z.ZodString;
|
649
|
+
lte: z.ZodString;
|
650
|
+
}, "strip", z.ZodTypeAny, {
|
651
|
+
type: "range";
|
652
|
+
gte: string;
|
653
|
+
lte: string;
|
654
|
+
}, {
|
655
|
+
type: "range";
|
656
|
+
gte: string;
|
657
|
+
lte: string;
|
658
|
+
}>]>>>;
|
659
|
+
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
660
|
+
type: z.ZodLiteral<"exact">;
|
661
|
+
term: z.ZodString;
|
662
|
+
}, "strip", z.ZodTypeAny, {
|
663
|
+
type: "exact";
|
664
|
+
term: string;
|
665
|
+
}, {
|
666
|
+
type: "exact";
|
667
|
+
term: string;
|
668
|
+
}>, z.ZodObject<{
|
669
|
+
type: z.ZodLiteral<"range">;
|
670
|
+
gte: z.ZodString;
|
671
|
+
lte: z.ZodString;
|
672
|
+
}, "strip", z.ZodTypeAny, {
|
673
|
+
type: "range";
|
674
|
+
gte: string;
|
675
|
+
lte: string;
|
676
|
+
}, {
|
677
|
+
type: "range";
|
678
|
+
gte: string;
|
679
|
+
lte: string;
|
680
|
+
}>]>>>;
|
681
|
+
createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
682
|
+
type: z.ZodLiteral<"within">;
|
683
|
+
location: z.ZodString;
|
684
|
+
}, "strip", z.ZodTypeAny, {
|
685
|
+
type: "within";
|
686
|
+
location: string;
|
687
|
+
}, {
|
688
|
+
type: "within";
|
689
|
+
location: string;
|
690
|
+
}>, z.ZodObject<{
|
691
|
+
type: z.ZodLiteral<"exact">;
|
692
|
+
term: z.ZodString;
|
693
|
+
}, "strip", z.ZodTypeAny, {
|
694
|
+
type: "exact";
|
695
|
+
term: string;
|
696
|
+
}, {
|
697
|
+
type: "exact";
|
698
|
+
term: string;
|
699
|
+
}>]>>>;
|
700
|
+
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
701
|
+
type: z.ZodLiteral<"within">;
|
702
|
+
location: z.ZodString;
|
703
|
+
}, "strip", z.ZodTypeAny, {
|
704
|
+
type: "within";
|
705
|
+
location: string;
|
706
|
+
}, {
|
707
|
+
type: "within";
|
708
|
+
location: string;
|
709
|
+
}>, z.ZodObject<{
|
710
|
+
type: z.ZodLiteral<"exact">;
|
711
|
+
term: z.ZodString;
|
712
|
+
}, "strip", z.ZodTypeAny, {
|
713
|
+
type: "exact";
|
714
|
+
term: string;
|
715
|
+
}, {
|
716
|
+
type: "exact";
|
717
|
+
term: string;
|
718
|
+
}>]>>>;
|
719
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
720
|
+
type: z.ZodLiteral<"exact">;
|
721
|
+
term: z.ZodString;
|
722
|
+
}, "strip", z.ZodTypeAny, {
|
723
|
+
type: "exact";
|
724
|
+
term: string;
|
725
|
+
}, {
|
726
|
+
type: "exact";
|
727
|
+
term: string;
|
728
|
+
}>>>;
|
729
|
+
updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
730
|
+
type: z.ZodLiteral<"exact">;
|
731
|
+
term: z.ZodString;
|
732
|
+
}, "strip", z.ZodTypeAny, {
|
733
|
+
type: "exact";
|
734
|
+
term: string;
|
735
|
+
}, {
|
736
|
+
type: "exact";
|
737
|
+
term: string;
|
738
|
+
}>>>;
|
739
|
+
trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
740
|
+
type: z.ZodLiteral<"exact">;
|
741
|
+
term: z.ZodString;
|
742
|
+
}, "strip", z.ZodTypeAny, {
|
743
|
+
type: "exact";
|
744
|
+
term: string;
|
745
|
+
}, {
|
746
|
+
type: "exact";
|
747
|
+
term: string;
|
748
|
+
}>>>;
|
749
|
+
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
750
|
+
}, "strip", z.ZodTypeAny, {
|
751
|
+
type?: "and" | undefined;
|
752
|
+
status?: {
|
753
|
+
type: "exact";
|
754
|
+
term: string;
|
755
|
+
} | {
|
756
|
+
type: "anyOf";
|
757
|
+
terms: string[];
|
758
|
+
} | undefined;
|
759
|
+
data?: any;
|
760
|
+
createdAt?: {
|
761
|
+
type: "exact";
|
762
|
+
term: string;
|
763
|
+
} | {
|
764
|
+
type: "range";
|
765
|
+
gte: string;
|
766
|
+
lte: string;
|
767
|
+
} | undefined;
|
768
|
+
createdBy?: {
|
769
|
+
type: "exact";
|
770
|
+
term: string;
|
771
|
+
} | undefined;
|
772
|
+
updatedAtLocation?: {
|
773
|
+
type: "exact";
|
774
|
+
term: string;
|
775
|
+
} | {
|
776
|
+
type: "within";
|
777
|
+
location: string;
|
778
|
+
} | undefined;
|
779
|
+
updatedAt?: {
|
780
|
+
type: "exact";
|
781
|
+
term: string;
|
782
|
+
} | {
|
783
|
+
type: "range";
|
784
|
+
gte: string;
|
785
|
+
lte: string;
|
786
|
+
} | undefined;
|
787
|
+
trackingId?: {
|
788
|
+
type: "exact";
|
789
|
+
term: string;
|
790
|
+
} | undefined;
|
791
|
+
updatedBy?: {
|
792
|
+
type: "exact";
|
793
|
+
term: string;
|
794
|
+
} | undefined;
|
795
|
+
eventType?: string | undefined;
|
796
|
+
createAtLocation?: {
|
797
|
+
type: "exact";
|
798
|
+
term: string;
|
799
|
+
} | {
|
800
|
+
type: "within";
|
801
|
+
location: string;
|
802
|
+
} | undefined;
|
803
|
+
}, {
|
804
|
+
type?: "and" | undefined;
|
805
|
+
status?: {
|
806
|
+
type: "exact";
|
807
|
+
term: string;
|
808
|
+
} | {
|
809
|
+
type: "anyOf";
|
810
|
+
terms: string[];
|
811
|
+
} | undefined;
|
812
|
+
data?: any;
|
813
|
+
createdAt?: {
|
814
|
+
type: "exact";
|
815
|
+
term: string;
|
816
|
+
} | {
|
817
|
+
type: "range";
|
818
|
+
gte: string;
|
819
|
+
lte: string;
|
820
|
+
} | undefined;
|
821
|
+
createdBy?: {
|
822
|
+
type: "exact";
|
823
|
+
term: string;
|
824
|
+
} | undefined;
|
825
|
+
updatedAtLocation?: {
|
826
|
+
type: "exact";
|
827
|
+
term: string;
|
828
|
+
} | {
|
829
|
+
type: "within";
|
830
|
+
location: string;
|
831
|
+
} | undefined;
|
832
|
+
updatedAt?: {
|
833
|
+
type: "exact";
|
834
|
+
term: string;
|
835
|
+
} | {
|
836
|
+
type: "range";
|
837
|
+
gte: string;
|
838
|
+
lte: string;
|
839
|
+
} | undefined;
|
840
|
+
trackingId?: {
|
841
|
+
type: "exact";
|
842
|
+
term: string;
|
843
|
+
} | undefined;
|
844
|
+
updatedBy?: {
|
845
|
+
type: "exact";
|
846
|
+
term: string;
|
847
|
+
} | undefined;
|
848
|
+
eventType?: string | undefined;
|
849
|
+
createAtLocation?: {
|
850
|
+
type: "exact";
|
851
|
+
term: string;
|
852
|
+
} | {
|
853
|
+
type: "within";
|
854
|
+
location: string;
|
855
|
+
} | undefined;
|
856
|
+
}>, "many">;
|
857
|
+
}, "strip", z.ZodTypeAny, {
|
858
|
+
type: "or";
|
859
|
+
clauses: {
|
860
|
+
type?: "and" | undefined;
|
861
|
+
status?: {
|
862
|
+
type: "exact";
|
863
|
+
term: string;
|
864
|
+
} | {
|
865
|
+
type: "anyOf";
|
866
|
+
terms: string[];
|
867
|
+
} | undefined;
|
868
|
+
data?: any;
|
869
|
+
createdAt?: {
|
870
|
+
type: "exact";
|
871
|
+
term: string;
|
872
|
+
} | {
|
873
|
+
type: "range";
|
874
|
+
gte: string;
|
875
|
+
lte: string;
|
876
|
+
} | undefined;
|
877
|
+
createdBy?: {
|
878
|
+
type: "exact";
|
879
|
+
term: string;
|
880
|
+
} | undefined;
|
881
|
+
updatedAtLocation?: {
|
882
|
+
type: "exact";
|
883
|
+
term: string;
|
884
|
+
} | {
|
885
|
+
type: "within";
|
886
|
+
location: string;
|
887
|
+
} | undefined;
|
888
|
+
updatedAt?: {
|
889
|
+
type: "exact";
|
890
|
+
term: string;
|
891
|
+
} | {
|
892
|
+
type: "range";
|
893
|
+
gte: string;
|
894
|
+
lte: string;
|
895
|
+
} | undefined;
|
896
|
+
trackingId?: {
|
897
|
+
type: "exact";
|
898
|
+
term: string;
|
899
|
+
} | undefined;
|
900
|
+
updatedBy?: {
|
901
|
+
type: "exact";
|
902
|
+
term: string;
|
903
|
+
} | undefined;
|
904
|
+
eventType?: string | undefined;
|
905
|
+
createAtLocation?: {
|
906
|
+
type: "exact";
|
907
|
+
term: string;
|
908
|
+
} | {
|
909
|
+
type: "within";
|
910
|
+
location: string;
|
911
|
+
} | undefined;
|
912
|
+
}[];
|
913
|
+
}, {
|
914
|
+
type: "or";
|
915
|
+
clauses: {
|
916
|
+
type?: "and" | undefined;
|
917
|
+
status?: {
|
918
|
+
type: "exact";
|
919
|
+
term: string;
|
920
|
+
} | {
|
921
|
+
type: "anyOf";
|
922
|
+
terms: string[];
|
923
|
+
} | undefined;
|
924
|
+
data?: any;
|
925
|
+
createdAt?: {
|
926
|
+
type: "exact";
|
927
|
+
term: string;
|
928
|
+
} | {
|
929
|
+
type: "range";
|
930
|
+
gte: string;
|
931
|
+
lte: string;
|
932
|
+
} | undefined;
|
933
|
+
createdBy?: {
|
934
|
+
type: "exact";
|
935
|
+
term: string;
|
936
|
+
} | undefined;
|
937
|
+
updatedAtLocation?: {
|
938
|
+
type: "exact";
|
939
|
+
term: string;
|
940
|
+
} | {
|
941
|
+
type: "within";
|
942
|
+
location: string;
|
943
|
+
} | undefined;
|
944
|
+
updatedAt?: {
|
945
|
+
type: "exact";
|
946
|
+
term: string;
|
947
|
+
} | {
|
948
|
+
type: "range";
|
949
|
+
gte: string;
|
950
|
+
lte: string;
|
951
|
+
} | undefined;
|
952
|
+
trackingId?: {
|
953
|
+
type: "exact";
|
954
|
+
term: string;
|
955
|
+
} | undefined;
|
956
|
+
updatedBy?: {
|
957
|
+
type: "exact";
|
958
|
+
term: string;
|
959
|
+
} | undefined;
|
960
|
+
eventType?: string | undefined;
|
961
|
+
createAtLocation?: {
|
962
|
+
type: "exact";
|
963
|
+
term: string;
|
964
|
+
} | {
|
965
|
+
type: "within";
|
966
|
+
location: string;
|
967
|
+
} | undefined;
|
968
|
+
}[];
|
969
|
+
}>]>;
|
970
|
+
export type QueryType = z.infer<typeof QueryType>;
|
971
|
+
export {};
|
58
972
|
//# sourceMappingURL=EventIndex.d.ts.map
|