@opencrvs/toolkit 1.8.0-rc.f9d33b7 → 1.8.0-rc.f9db4f0
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/dist/commons/api/router.d.ts +5742 -8054
- package/dist/commons/conditionals/conditionals.d.ts +8 -15
- package/dist/commons/conditionals/validate.d.ts +11 -0
- package/dist/commons/events/ActionConfig.d.ts +77341 -48420
- package/dist/commons/events/ActionDocument.d.ts +4618 -1375
- package/dist/commons/events/ActionInput.d.ts +3139 -967
- package/dist/commons/events/ActionType.d.ts +10 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +962 -48
- package/dist/commons/events/CompositeFieldValue.d.ts +37 -9
- package/dist/commons/events/Constants.d.ts +3 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +4132 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
- package/dist/commons/events/Draft.d.ts +274 -98
- package/dist/commons/events/EventConfig.d.ts +30722 -19227
- package/dist/commons/events/EventDocument.d.ts +2564 -929
- package/dist/commons/events/EventIndex.d.ts +1571 -283
- package/dist/commons/events/EventInput.d.ts +0 -13
- package/dist/commons/events/EventMetadata.d.ts +338 -48
- package/dist/commons/events/FieldConfig.d.ts +3741 -1283
- package/dist/commons/events/FieldType.d.ts +7 -2
- package/dist/commons/events/FieldTypeMapping.d.ts +154 -73
- package/dist/commons/events/FieldValue.d.ts +89 -19
- package/dist/commons/events/FormConfig.d.ts +30389 -15335
- package/dist/commons/events/PageConfig.d.ts +6118 -2428
- package/dist/commons/events/SummaryConfig.d.ts +17 -5
- package/dist/commons/events/User.d.ts +34 -7
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +8088 -16
- package/dist/commons/events/defineConfig.d.ts +5258 -3735
- package/dist/commons/events/event.d.ts +32 -11
- package/dist/commons/events/field.d.ts +46 -20
- package/dist/commons/events/index.d.ts +5 -0
- package/dist/commons/events/scopes.d.ts +23 -4
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +206 -53
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +12628 -1087
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +67 -60
- package/dist/events/index.js +4849 -2327
- package/dist/scopes/index.d.ts +247 -1
- package/dist/scopes/index.js +231 -1
- package/package.json +3 -3
@@ -1,14 +1,458 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
|
-
export declare const
|
4
|
-
|
3
|
+
export declare const SearchQueryParams: z.ZodObject<{
|
4
|
+
eventType: z.ZodOptional<z.ZodString>;
|
5
|
+
}, "strip", z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
6
|
+
start: z.ZodString;
|
7
|
+
end: z.ZodString;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
start: string;
|
10
|
+
end: string;
|
11
|
+
}, {
|
12
|
+
start: string;
|
13
|
+
end: string;
|
14
|
+
}>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
15
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
16
|
+
originalFilename: z.ZodString;
|
17
|
+
type: z.ZodString;
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
19
|
+
type: string;
|
20
|
+
path: string;
|
21
|
+
originalFilename: string;
|
22
|
+
}, {
|
23
|
+
type: string;
|
24
|
+
path: string;
|
25
|
+
originalFilename: string;
|
26
|
+
}>, z.ZodArray<z.ZodObject<{
|
27
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
28
|
+
originalFilename: z.ZodString;
|
29
|
+
type: z.ZodString;
|
30
|
+
option: z.ZodString;
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
32
|
+
type: string;
|
33
|
+
option: string;
|
34
|
+
path: string;
|
35
|
+
originalFilename: string;
|
36
|
+
}, {
|
37
|
+
type: string;
|
38
|
+
option: string;
|
39
|
+
path: string;
|
40
|
+
originalFilename: string;
|
41
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
42
|
+
country: z.ZodString;
|
43
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
44
|
+
province: z.ZodString;
|
45
|
+
district: z.ZodString;
|
46
|
+
}, {
|
47
|
+
urbanOrRural: z.ZodLiteral<"URBAN">;
|
48
|
+
town: z.ZodOptional<z.ZodString>;
|
49
|
+
residentialArea: z.ZodOptional<z.ZodString>;
|
50
|
+
street: z.ZodOptional<z.ZodString>;
|
51
|
+
number: z.ZodOptional<z.ZodString>;
|
52
|
+
zipCode: z.ZodOptional<z.ZodString>;
|
53
|
+
}>, "strip", z.ZodTypeAny, {
|
54
|
+
country: string;
|
55
|
+
district: string;
|
56
|
+
addressType: "DOMESTIC";
|
57
|
+
province: string;
|
58
|
+
urbanOrRural: "URBAN";
|
59
|
+
number?: string | undefined;
|
60
|
+
town?: string | undefined;
|
61
|
+
residentialArea?: string | undefined;
|
62
|
+
street?: string | undefined;
|
63
|
+
zipCode?: string | undefined;
|
64
|
+
}, {
|
65
|
+
country: string;
|
66
|
+
district: string;
|
67
|
+
addressType: "DOMESTIC";
|
68
|
+
province: string;
|
69
|
+
urbanOrRural: "URBAN";
|
70
|
+
number?: string | undefined;
|
71
|
+
town?: string | undefined;
|
72
|
+
residentialArea?: string | undefined;
|
73
|
+
street?: string | undefined;
|
74
|
+
zipCode?: string | undefined;
|
75
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
76
|
+
country: z.ZodString;
|
77
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
78
|
+
province: z.ZodString;
|
79
|
+
district: z.ZodString;
|
80
|
+
}, {
|
81
|
+
urbanOrRural: z.ZodLiteral<"RURAL">;
|
82
|
+
village: z.ZodOptional<z.ZodString>;
|
83
|
+
}>, "strip", z.ZodTypeAny, {
|
84
|
+
country: string;
|
85
|
+
district: string;
|
86
|
+
addressType: "DOMESTIC";
|
87
|
+
province: string;
|
88
|
+
urbanOrRural: "RURAL";
|
89
|
+
village?: string | undefined;
|
90
|
+
}, {
|
91
|
+
country: string;
|
92
|
+
district: string;
|
93
|
+
addressType: "DOMESTIC";
|
94
|
+
province: string;
|
95
|
+
urbanOrRural: "RURAL";
|
96
|
+
village?: string | undefined;
|
97
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
98
|
+
country: z.ZodString;
|
99
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
100
|
+
state: z.ZodString;
|
101
|
+
district2: z.ZodString;
|
102
|
+
cityOrTown: z.ZodOptional<z.ZodString>;
|
103
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
104
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
105
|
+
addressLine3: z.ZodOptional<z.ZodString>;
|
106
|
+
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
108
|
+
country: string;
|
109
|
+
state: string;
|
110
|
+
addressType: "INTERNATIONAL";
|
111
|
+
district2: string;
|
112
|
+
cityOrTown?: string | undefined;
|
113
|
+
addressLine1?: string | undefined;
|
114
|
+
addressLine2?: string | undefined;
|
115
|
+
addressLine3?: string | undefined;
|
116
|
+
postcodeOrZip?: string | undefined;
|
117
|
+
}, {
|
118
|
+
country: string;
|
119
|
+
state: string;
|
120
|
+
addressType: "INTERNATIONAL";
|
121
|
+
district2: string;
|
122
|
+
cityOrTown?: string | undefined;
|
123
|
+
addressLine1?: string | undefined;
|
124
|
+
addressLine2?: string | undefined;
|
125
|
+
addressLine3?: string | undefined;
|
126
|
+
postcodeOrZip?: string | undefined;
|
127
|
+
}>, z.ZodObject<{
|
128
|
+
firstname: z.ZodString;
|
129
|
+
surname: z.ZodString;
|
130
|
+
middlename: z.ZodOptional<z.ZodString>;
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
132
|
+
firstname: string;
|
133
|
+
surname: string;
|
134
|
+
middlename?: string | undefined;
|
135
|
+
}, {
|
136
|
+
firstname: string;
|
137
|
+
surname: string;
|
138
|
+
middlename?: string | undefined;
|
139
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
140
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
141
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
142
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
144
|
+
firstname?: string | null | undefined;
|
145
|
+
surname?: string | null | undefined;
|
146
|
+
middlename?: string | null | undefined;
|
147
|
+
}, {
|
148
|
+
firstname?: string | null | undefined;
|
149
|
+
surname?: string | null | undefined;
|
150
|
+
middlename?: string | null | undefined;
|
151
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>, z.objectOutputType<{
|
152
|
+
eventType: z.ZodOptional<z.ZodString>;
|
153
|
+
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
154
|
+
start: z.ZodString;
|
155
|
+
end: z.ZodString;
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
157
|
+
start: string;
|
158
|
+
end: string;
|
159
|
+
}, {
|
160
|
+
start: string;
|
161
|
+
end: string;
|
162
|
+
}>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
163
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
164
|
+
originalFilename: z.ZodString;
|
165
|
+
type: z.ZodString;
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
167
|
+
type: string;
|
168
|
+
path: string;
|
169
|
+
originalFilename: string;
|
170
|
+
}, {
|
171
|
+
type: string;
|
172
|
+
path: string;
|
173
|
+
originalFilename: string;
|
174
|
+
}>, z.ZodArray<z.ZodObject<{
|
175
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
176
|
+
originalFilename: z.ZodString;
|
177
|
+
type: z.ZodString;
|
178
|
+
option: z.ZodString;
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
180
|
+
type: string;
|
181
|
+
option: string;
|
182
|
+
path: string;
|
183
|
+
originalFilename: string;
|
184
|
+
}, {
|
185
|
+
type: string;
|
186
|
+
option: string;
|
187
|
+
path: string;
|
188
|
+
originalFilename: string;
|
189
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
190
|
+
country: z.ZodString;
|
191
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
192
|
+
province: z.ZodString;
|
193
|
+
district: z.ZodString;
|
194
|
+
}, {
|
195
|
+
urbanOrRural: z.ZodLiteral<"URBAN">;
|
196
|
+
town: z.ZodOptional<z.ZodString>;
|
197
|
+
residentialArea: z.ZodOptional<z.ZodString>;
|
198
|
+
street: z.ZodOptional<z.ZodString>;
|
199
|
+
number: z.ZodOptional<z.ZodString>;
|
200
|
+
zipCode: z.ZodOptional<z.ZodString>;
|
201
|
+
}>, "strip", z.ZodTypeAny, {
|
202
|
+
country: string;
|
203
|
+
district: string;
|
204
|
+
addressType: "DOMESTIC";
|
205
|
+
province: string;
|
206
|
+
urbanOrRural: "URBAN";
|
207
|
+
number?: string | undefined;
|
208
|
+
town?: string | undefined;
|
209
|
+
residentialArea?: string | undefined;
|
210
|
+
street?: string | undefined;
|
211
|
+
zipCode?: string | undefined;
|
212
|
+
}, {
|
213
|
+
country: string;
|
214
|
+
district: string;
|
215
|
+
addressType: "DOMESTIC";
|
216
|
+
province: string;
|
217
|
+
urbanOrRural: "URBAN";
|
218
|
+
number?: string | undefined;
|
219
|
+
town?: string | undefined;
|
220
|
+
residentialArea?: string | undefined;
|
221
|
+
street?: string | undefined;
|
222
|
+
zipCode?: string | undefined;
|
223
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
224
|
+
country: z.ZodString;
|
225
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
226
|
+
province: z.ZodString;
|
227
|
+
district: z.ZodString;
|
228
|
+
}, {
|
229
|
+
urbanOrRural: z.ZodLiteral<"RURAL">;
|
230
|
+
village: z.ZodOptional<z.ZodString>;
|
231
|
+
}>, "strip", z.ZodTypeAny, {
|
232
|
+
country: string;
|
233
|
+
district: string;
|
234
|
+
addressType: "DOMESTIC";
|
235
|
+
province: string;
|
236
|
+
urbanOrRural: "RURAL";
|
237
|
+
village?: string | undefined;
|
238
|
+
}, {
|
239
|
+
country: string;
|
240
|
+
district: string;
|
241
|
+
addressType: "DOMESTIC";
|
242
|
+
province: string;
|
243
|
+
urbanOrRural: "RURAL";
|
244
|
+
village?: string | undefined;
|
245
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
246
|
+
country: z.ZodString;
|
247
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
248
|
+
state: z.ZodString;
|
249
|
+
district2: z.ZodString;
|
250
|
+
cityOrTown: z.ZodOptional<z.ZodString>;
|
251
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
252
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
253
|
+
addressLine3: z.ZodOptional<z.ZodString>;
|
254
|
+
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
255
|
+
}, "strip", z.ZodTypeAny, {
|
256
|
+
country: string;
|
257
|
+
state: string;
|
258
|
+
addressType: "INTERNATIONAL";
|
259
|
+
district2: string;
|
260
|
+
cityOrTown?: string | undefined;
|
261
|
+
addressLine1?: string | undefined;
|
262
|
+
addressLine2?: string | undefined;
|
263
|
+
addressLine3?: string | undefined;
|
264
|
+
postcodeOrZip?: string | undefined;
|
265
|
+
}, {
|
266
|
+
country: string;
|
267
|
+
state: string;
|
268
|
+
addressType: "INTERNATIONAL";
|
269
|
+
district2: string;
|
270
|
+
cityOrTown?: string | undefined;
|
271
|
+
addressLine1?: string | undefined;
|
272
|
+
addressLine2?: string | undefined;
|
273
|
+
addressLine3?: string | undefined;
|
274
|
+
postcodeOrZip?: string | undefined;
|
275
|
+
}>, z.ZodObject<{
|
276
|
+
firstname: z.ZodString;
|
277
|
+
surname: z.ZodString;
|
278
|
+
middlename: z.ZodOptional<z.ZodString>;
|
279
|
+
}, "strip", z.ZodTypeAny, {
|
280
|
+
firstname: string;
|
281
|
+
surname: string;
|
282
|
+
middlename?: string | undefined;
|
283
|
+
}, {
|
284
|
+
firstname: string;
|
285
|
+
surname: string;
|
286
|
+
middlename?: string | undefined;
|
287
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
288
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
289
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
290
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
292
|
+
firstname?: string | null | undefined;
|
293
|
+
surname?: string | null | undefined;
|
294
|
+
middlename?: string | null | undefined;
|
295
|
+
}, {
|
296
|
+
firstname?: string | null | undefined;
|
297
|
+
surname?: string | null | undefined;
|
298
|
+
middlename?: string | null | undefined;
|
299
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">, z.objectInputType<{
|
300
|
+
eventType: z.ZodOptional<z.ZodString>;
|
301
|
+
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
302
|
+
start: z.ZodString;
|
303
|
+
end: z.ZodString;
|
304
|
+
}, "strip", z.ZodTypeAny, {
|
305
|
+
start: string;
|
306
|
+
end: string;
|
307
|
+
}, {
|
308
|
+
start: string;
|
309
|
+
end: string;
|
310
|
+
}>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
311
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
312
|
+
originalFilename: z.ZodString;
|
313
|
+
type: z.ZodString;
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
315
|
+
type: string;
|
316
|
+
path: string;
|
317
|
+
originalFilename: string;
|
318
|
+
}, {
|
319
|
+
type: string;
|
320
|
+
path: string;
|
321
|
+
originalFilename: string;
|
322
|
+
}>, z.ZodArray<z.ZodObject<{
|
323
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
324
|
+
originalFilename: z.ZodString;
|
325
|
+
type: z.ZodString;
|
326
|
+
option: z.ZodString;
|
327
|
+
}, "strip", z.ZodTypeAny, {
|
328
|
+
type: string;
|
329
|
+
option: string;
|
330
|
+
path: string;
|
331
|
+
originalFilename: string;
|
332
|
+
}, {
|
333
|
+
type: string;
|
334
|
+
option: string;
|
335
|
+
path: string;
|
336
|
+
originalFilename: string;
|
337
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
338
|
+
country: z.ZodString;
|
339
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
340
|
+
province: z.ZodString;
|
341
|
+
district: z.ZodString;
|
342
|
+
}, {
|
343
|
+
urbanOrRural: z.ZodLiteral<"URBAN">;
|
344
|
+
town: z.ZodOptional<z.ZodString>;
|
345
|
+
residentialArea: z.ZodOptional<z.ZodString>;
|
346
|
+
street: z.ZodOptional<z.ZodString>;
|
347
|
+
number: z.ZodOptional<z.ZodString>;
|
348
|
+
zipCode: z.ZodOptional<z.ZodString>;
|
349
|
+
}>, "strip", z.ZodTypeAny, {
|
350
|
+
country: string;
|
351
|
+
district: string;
|
352
|
+
addressType: "DOMESTIC";
|
353
|
+
province: string;
|
354
|
+
urbanOrRural: "URBAN";
|
355
|
+
number?: string | undefined;
|
356
|
+
town?: string | undefined;
|
357
|
+
residentialArea?: string | undefined;
|
358
|
+
street?: string | undefined;
|
359
|
+
zipCode?: string | undefined;
|
360
|
+
}, {
|
361
|
+
country: string;
|
362
|
+
district: string;
|
363
|
+
addressType: "DOMESTIC";
|
364
|
+
province: string;
|
365
|
+
urbanOrRural: "URBAN";
|
366
|
+
number?: string | undefined;
|
367
|
+
town?: string | undefined;
|
368
|
+
residentialArea?: string | undefined;
|
369
|
+
street?: string | undefined;
|
370
|
+
zipCode?: string | undefined;
|
371
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
372
|
+
country: z.ZodString;
|
373
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
374
|
+
province: z.ZodString;
|
375
|
+
district: z.ZodString;
|
376
|
+
}, {
|
377
|
+
urbanOrRural: z.ZodLiteral<"RURAL">;
|
378
|
+
village: z.ZodOptional<z.ZodString>;
|
379
|
+
}>, "strip", z.ZodTypeAny, {
|
380
|
+
country: string;
|
381
|
+
district: string;
|
382
|
+
addressType: "DOMESTIC";
|
383
|
+
province: string;
|
384
|
+
urbanOrRural: "RURAL";
|
385
|
+
village?: string | undefined;
|
386
|
+
}, {
|
387
|
+
country: string;
|
388
|
+
district: string;
|
389
|
+
addressType: "DOMESTIC";
|
390
|
+
province: string;
|
391
|
+
urbanOrRural: "RURAL";
|
392
|
+
village?: string | undefined;
|
393
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
394
|
+
country: z.ZodString;
|
395
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
396
|
+
state: z.ZodString;
|
397
|
+
district2: z.ZodString;
|
398
|
+
cityOrTown: z.ZodOptional<z.ZodString>;
|
399
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
400
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
401
|
+
addressLine3: z.ZodOptional<z.ZodString>;
|
402
|
+
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
403
|
+
}, "strip", z.ZodTypeAny, {
|
404
|
+
country: string;
|
405
|
+
state: string;
|
406
|
+
addressType: "INTERNATIONAL";
|
407
|
+
district2: string;
|
408
|
+
cityOrTown?: string | undefined;
|
409
|
+
addressLine1?: string | undefined;
|
410
|
+
addressLine2?: string | undefined;
|
411
|
+
addressLine3?: string | undefined;
|
412
|
+
postcodeOrZip?: string | undefined;
|
413
|
+
}, {
|
414
|
+
country: string;
|
415
|
+
state: string;
|
416
|
+
addressType: "INTERNATIONAL";
|
417
|
+
district2: string;
|
418
|
+
cityOrTown?: string | undefined;
|
419
|
+
addressLine1?: string | undefined;
|
420
|
+
addressLine2?: string | undefined;
|
421
|
+
addressLine3?: string | undefined;
|
422
|
+
postcodeOrZip?: string | undefined;
|
423
|
+
}>, z.ZodObject<{
|
424
|
+
firstname: z.ZodString;
|
425
|
+
surname: z.ZodString;
|
426
|
+
middlename: z.ZodOptional<z.ZodString>;
|
427
|
+
}, "strip", z.ZodTypeAny, {
|
428
|
+
firstname: string;
|
429
|
+
surname: string;
|
430
|
+
middlename?: string | undefined;
|
431
|
+
}, {
|
432
|
+
firstname: string;
|
433
|
+
surname: string;
|
434
|
+
middlename?: string | undefined;
|
435
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
436
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
437
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
438
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
439
|
+
}, "strip", z.ZodTypeAny, {
|
440
|
+
firstname?: string | null | undefined;
|
441
|
+
surname?: string | null | undefined;
|
442
|
+
middlename?: string | null | undefined;
|
443
|
+
}, {
|
444
|
+
firstname?: string | null | undefined;
|
445
|
+
surname?: string | null | undefined;
|
446
|
+
middlename?: string | null | undefined;
|
447
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">>;
|
448
|
+
export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
|
5
449
|
export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
6
450
|
config: z.ZodObject<{
|
7
|
-
type: z.ZodEnum<["
|
451
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
8
452
|
}, "strip", z.ZodTypeAny, {
|
9
|
-
type: "
|
453
|
+
type: "exact" | "fuzzy" | "range";
|
10
454
|
}, {
|
11
|
-
type: "
|
455
|
+
type: "exact" | "fuzzy" | "range";
|
12
456
|
}>;
|
13
457
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
14
458
|
value: z.ZodString;
|
@@ -28,12 +472,38 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
28
472
|
defaultMessage: string;
|
29
473
|
};
|
30
474
|
}>, "many">>;
|
475
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
476
|
+
id: string;
|
477
|
+
description: string;
|
478
|
+
defaultMessage: string;
|
479
|
+
}>>;
|
480
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
481
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
482
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
483
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
484
|
+
id: string;
|
485
|
+
description: string;
|
486
|
+
defaultMessage: string;
|
487
|
+
}>;
|
488
|
+
}, "strip", z.ZodTypeAny, {
|
489
|
+
message: TranslationConfig;
|
490
|
+
validator: import(".").JSONSchema;
|
491
|
+
}, {
|
492
|
+
message: {
|
493
|
+
id: string;
|
494
|
+
description: string;
|
495
|
+
defaultMessage: string;
|
496
|
+
};
|
497
|
+
validator: import(".").JSONSchema;
|
498
|
+
}>, "many">>>;
|
31
499
|
}, {
|
32
500
|
fieldId: z.ZodString;
|
33
501
|
fieldType: z.ZodLiteral<"field">;
|
502
|
+
alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
503
|
+
excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
34
504
|
}>, "strip", z.ZodTypeAny, {
|
35
505
|
config: {
|
36
|
-
type: "
|
506
|
+
type: "exact" | "fuzzy" | "range";
|
37
507
|
};
|
38
508
|
fieldId: string;
|
39
509
|
fieldType: "field";
|
@@ -41,9 +511,26 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
41
511
|
value: string;
|
42
512
|
label: TranslationConfig;
|
43
513
|
}[] | undefined;
|
514
|
+
conditionals?: ({
|
515
|
+
type: "SHOW";
|
516
|
+
conditional: import(".").JSONSchema;
|
517
|
+
} | {
|
518
|
+
type: "ENABLE";
|
519
|
+
conditional: import(".").JSONSchema;
|
520
|
+
} | {
|
521
|
+
type: "DISPLAY_ON_REVIEW";
|
522
|
+
conditional: import(".").JSONSchema;
|
523
|
+
})[] | undefined;
|
524
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
525
|
+
validations?: {
|
526
|
+
message: TranslationConfig;
|
527
|
+
validator: import(".").JSONSchema;
|
528
|
+
}[] | undefined;
|
529
|
+
alternateFieldIds?: string[] | undefined;
|
530
|
+
excludeInSearchQuery?: boolean | undefined;
|
44
531
|
}, {
|
45
532
|
config: {
|
46
|
-
type: "
|
533
|
+
type: "exact" | "fuzzy" | "range";
|
47
534
|
};
|
48
535
|
fieldId: string;
|
49
536
|
fieldType: "field";
|
@@ -55,16 +542,41 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
55
542
|
defaultMessage: string;
|
56
543
|
};
|
57
544
|
}[] | undefined;
|
545
|
+
conditionals?: ({
|
546
|
+
type: "SHOW";
|
547
|
+
conditional: import(".").JSONSchema;
|
548
|
+
} | {
|
549
|
+
type: "ENABLE";
|
550
|
+
conditional: import(".").JSONSchema;
|
551
|
+
} | {
|
552
|
+
type: "DISPLAY_ON_REVIEW";
|
553
|
+
conditional: import(".").JSONSchema;
|
554
|
+
})[] | undefined;
|
555
|
+
searchCriteriaLabelPrefix?: {
|
556
|
+
id: string;
|
557
|
+
description: string;
|
558
|
+
defaultMessage: string;
|
559
|
+
} | undefined;
|
560
|
+
validations?: {
|
561
|
+
message: {
|
562
|
+
id: string;
|
563
|
+
description: string;
|
564
|
+
defaultMessage: string;
|
565
|
+
};
|
566
|
+
validator: import(".").JSONSchema;
|
567
|
+
}[] | undefined;
|
568
|
+
alternateFieldIds?: string[] | undefined;
|
569
|
+
excludeInSearchQuery?: boolean | undefined;
|
58
570
|
}>;
|
59
|
-
export declare const EventFieldId: z.ZodEnum<["trackingId", "status"]>;
|
571
|
+
export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
60
572
|
export type EventFieldId = z.infer<typeof EventFieldId>;
|
61
573
|
export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
62
574
|
config: z.ZodObject<{
|
63
|
-
type: z.ZodEnum<["
|
575
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
64
576
|
}, "strip", z.ZodTypeAny, {
|
65
|
-
type: "
|
577
|
+
type: "exact" | "fuzzy" | "range";
|
66
578
|
}, {
|
67
|
-
type: "
|
579
|
+
type: "exact" | "fuzzy" | "range";
|
68
580
|
}>;
|
69
581
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
70
582
|
value: z.ZodString;
|
@@ -84,24 +596,63 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
84
596
|
defaultMessage: string;
|
85
597
|
};
|
86
598
|
}>, "many">>;
|
599
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
600
|
+
id: string;
|
601
|
+
description: string;
|
602
|
+
defaultMessage: string;
|
603
|
+
}>>;
|
604
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
605
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
606
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
607
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
608
|
+
id: string;
|
609
|
+
description: string;
|
610
|
+
defaultMessage: string;
|
611
|
+
}>;
|
612
|
+
}, "strip", z.ZodTypeAny, {
|
613
|
+
message: TranslationConfig;
|
614
|
+
validator: import(".").JSONSchema;
|
615
|
+
}, {
|
616
|
+
message: {
|
617
|
+
id: string;
|
618
|
+
description: string;
|
619
|
+
defaultMessage: string;
|
620
|
+
};
|
621
|
+
validator: import(".").JSONSchema;
|
622
|
+
}>, "many">>>;
|
87
623
|
}, {
|
88
|
-
fieldId: z.ZodEnum<["trackingId", "status"]>;
|
624
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
89
625
|
fieldType: z.ZodLiteral<"event">;
|
90
626
|
}>, "strip", z.ZodTypeAny, {
|
91
627
|
config: {
|
92
|
-
type: "
|
628
|
+
type: "exact" | "fuzzy" | "range";
|
93
629
|
};
|
94
|
-
fieldId: "status" | "trackingId";
|
630
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
95
631
|
fieldType: "event";
|
96
632
|
options?: {
|
97
633
|
value: string;
|
98
634
|
label: TranslationConfig;
|
99
635
|
}[] | undefined;
|
636
|
+
conditionals?: ({
|
637
|
+
type: "SHOW";
|
638
|
+
conditional: import(".").JSONSchema;
|
639
|
+
} | {
|
640
|
+
type: "ENABLE";
|
641
|
+
conditional: import(".").JSONSchema;
|
642
|
+
} | {
|
643
|
+
type: "DISPLAY_ON_REVIEW";
|
644
|
+
conditional: import(".").JSONSchema;
|
645
|
+
})[] | undefined;
|
646
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
647
|
+
validations?: {
|
648
|
+
message: TranslationConfig;
|
649
|
+
validator: import(".").JSONSchema;
|
650
|
+
}[] | undefined;
|
100
651
|
}, {
|
101
652
|
config: {
|
102
|
-
type: "
|
653
|
+
type: "exact" | "fuzzy" | "range";
|
103
654
|
};
|
104
|
-
fieldId: "status" | "trackingId";
|
655
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
105
656
|
fieldType: "event";
|
106
657
|
options?: {
|
107
658
|
value: string;
|
@@ -111,14 +662,37 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
111
662
|
defaultMessage: string;
|
112
663
|
};
|
113
664
|
}[] | undefined;
|
665
|
+
conditionals?: ({
|
666
|
+
type: "SHOW";
|
667
|
+
conditional: import(".").JSONSchema;
|
668
|
+
} | {
|
669
|
+
type: "ENABLE";
|
670
|
+
conditional: import(".").JSONSchema;
|
671
|
+
} | {
|
672
|
+
type: "DISPLAY_ON_REVIEW";
|
673
|
+
conditional: import(".").JSONSchema;
|
674
|
+
})[] | undefined;
|
675
|
+
searchCriteriaLabelPrefix?: {
|
676
|
+
id: string;
|
677
|
+
description: string;
|
678
|
+
defaultMessage: string;
|
679
|
+
} | undefined;
|
680
|
+
validations?: {
|
681
|
+
message: {
|
682
|
+
id: string;
|
683
|
+
description: string;
|
684
|
+
defaultMessage: string;
|
685
|
+
};
|
686
|
+
validator: import(".").JSONSchema;
|
687
|
+
}[] | undefined;
|
114
688
|
}>;
|
115
689
|
export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
116
690
|
config: z.ZodObject<{
|
117
|
-
type: z.ZodEnum<["
|
691
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
118
692
|
}, "strip", z.ZodTypeAny, {
|
119
|
-
type: "
|
693
|
+
type: "exact" | "fuzzy" | "range";
|
120
694
|
}, {
|
121
|
-
type: "
|
695
|
+
type: "exact" | "fuzzy" | "range";
|
122
696
|
}>;
|
123
697
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
124
698
|
value: z.ZodString;
|
@@ -138,12 +712,38 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
138
712
|
defaultMessage: string;
|
139
713
|
};
|
140
714
|
}>, "many">>;
|
715
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
716
|
+
id: string;
|
717
|
+
description: string;
|
718
|
+
defaultMessage: string;
|
719
|
+
}>>;
|
720
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
721
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
722
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
723
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
724
|
+
id: string;
|
725
|
+
description: string;
|
726
|
+
defaultMessage: string;
|
727
|
+
}>;
|
728
|
+
}, "strip", z.ZodTypeAny, {
|
729
|
+
message: TranslationConfig;
|
730
|
+
validator: import(".").JSONSchema;
|
731
|
+
}, {
|
732
|
+
message: {
|
733
|
+
id: string;
|
734
|
+
description: string;
|
735
|
+
defaultMessage: string;
|
736
|
+
};
|
737
|
+
validator: import(".").JSONSchema;
|
738
|
+
}>, "many">>>;
|
141
739
|
}, {
|
142
740
|
fieldId: z.ZodString;
|
143
741
|
fieldType: z.ZodLiteral<"field">;
|
742
|
+
alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
743
|
+
excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
144
744
|
}>, "strip", z.ZodTypeAny, {
|
145
745
|
config: {
|
146
|
-
type: "
|
746
|
+
type: "exact" | "fuzzy" | "range";
|
147
747
|
};
|
148
748
|
fieldId: string;
|
149
749
|
fieldType: "field";
|
@@ -151,9 +751,26 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
151
751
|
value: string;
|
152
752
|
label: TranslationConfig;
|
153
753
|
}[] | undefined;
|
754
|
+
conditionals?: ({
|
755
|
+
type: "SHOW";
|
756
|
+
conditional: import(".").JSONSchema;
|
757
|
+
} | {
|
758
|
+
type: "ENABLE";
|
759
|
+
conditional: import(".").JSONSchema;
|
760
|
+
} | {
|
761
|
+
type: "DISPLAY_ON_REVIEW";
|
762
|
+
conditional: import(".").JSONSchema;
|
763
|
+
})[] | undefined;
|
764
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
765
|
+
validations?: {
|
766
|
+
message: TranslationConfig;
|
767
|
+
validator: import(".").JSONSchema;
|
768
|
+
}[] | undefined;
|
769
|
+
alternateFieldIds?: string[] | undefined;
|
770
|
+
excludeInSearchQuery?: boolean | undefined;
|
154
771
|
}, {
|
155
772
|
config: {
|
156
|
-
type: "
|
773
|
+
type: "exact" | "fuzzy" | "range";
|
157
774
|
};
|
158
775
|
fieldId: string;
|
159
776
|
fieldType: "field";
|
@@ -165,13 +782,38 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
165
782
|
defaultMessage: string;
|
166
783
|
};
|
167
784
|
}[] | undefined;
|
785
|
+
conditionals?: ({
|
786
|
+
type: "SHOW";
|
787
|
+
conditional: import(".").JSONSchema;
|
788
|
+
} | {
|
789
|
+
type: "ENABLE";
|
790
|
+
conditional: import(".").JSONSchema;
|
791
|
+
} | {
|
792
|
+
type: "DISPLAY_ON_REVIEW";
|
793
|
+
conditional: import(".").JSONSchema;
|
794
|
+
})[] | undefined;
|
795
|
+
searchCriteriaLabelPrefix?: {
|
796
|
+
id: string;
|
797
|
+
description: string;
|
798
|
+
defaultMessage: string;
|
799
|
+
} | undefined;
|
800
|
+
validations?: {
|
801
|
+
message: {
|
802
|
+
id: string;
|
803
|
+
description: string;
|
804
|
+
defaultMessage: string;
|
805
|
+
};
|
806
|
+
validator: import(".").JSONSchema;
|
807
|
+
}[] | undefined;
|
808
|
+
alternateFieldIds?: string[] | undefined;
|
809
|
+
excludeInSearchQuery?: boolean | undefined;
|
168
810
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
169
811
|
config: z.ZodObject<{
|
170
|
-
type: z.ZodEnum<["
|
812
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
171
813
|
}, "strip", z.ZodTypeAny, {
|
172
|
-
type: "
|
814
|
+
type: "exact" | "fuzzy" | "range";
|
173
815
|
}, {
|
174
|
-
type: "
|
816
|
+
type: "exact" | "fuzzy" | "range";
|
175
817
|
}>;
|
176
818
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
177
819
|
value: z.ZodString;
|
@@ -191,24 +833,63 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
191
833
|
defaultMessage: string;
|
192
834
|
};
|
193
835
|
}>, "many">>;
|
836
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
837
|
+
id: string;
|
838
|
+
description: string;
|
839
|
+
defaultMessage: string;
|
840
|
+
}>>;
|
841
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
842
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
843
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
844
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
845
|
+
id: string;
|
846
|
+
description: string;
|
847
|
+
defaultMessage: string;
|
848
|
+
}>;
|
849
|
+
}, "strip", z.ZodTypeAny, {
|
850
|
+
message: TranslationConfig;
|
851
|
+
validator: import(".").JSONSchema;
|
852
|
+
}, {
|
853
|
+
message: {
|
854
|
+
id: string;
|
855
|
+
description: string;
|
856
|
+
defaultMessage: string;
|
857
|
+
};
|
858
|
+
validator: import(".").JSONSchema;
|
859
|
+
}>, "many">>>;
|
194
860
|
}, {
|
195
|
-
fieldId: z.ZodEnum<["trackingId", "status"]>;
|
861
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
196
862
|
fieldType: z.ZodLiteral<"event">;
|
197
863
|
}>, "strip", z.ZodTypeAny, {
|
198
864
|
config: {
|
199
|
-
type: "
|
865
|
+
type: "exact" | "fuzzy" | "range";
|
200
866
|
};
|
201
|
-
fieldId: "status" | "trackingId";
|
867
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
202
868
|
fieldType: "event";
|
203
869
|
options?: {
|
204
870
|
value: string;
|
205
871
|
label: TranslationConfig;
|
206
872
|
}[] | undefined;
|
873
|
+
conditionals?: ({
|
874
|
+
type: "SHOW";
|
875
|
+
conditional: import(".").JSONSchema;
|
876
|
+
} | {
|
877
|
+
type: "ENABLE";
|
878
|
+
conditional: import(".").JSONSchema;
|
879
|
+
} | {
|
880
|
+
type: "DISPLAY_ON_REVIEW";
|
881
|
+
conditional: import(".").JSONSchema;
|
882
|
+
})[] | undefined;
|
883
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
884
|
+
validations?: {
|
885
|
+
message: TranslationConfig;
|
886
|
+
validator: import(".").JSONSchema;
|
887
|
+
}[] | undefined;
|
207
888
|
}, {
|
208
889
|
config: {
|
209
|
-
type: "
|
890
|
+
type: "exact" | "fuzzy" | "range";
|
210
891
|
};
|
211
|
-
fieldId: "status" | "trackingId";
|
892
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
212
893
|
fieldType: "event";
|
213
894
|
options?: {
|
214
895
|
value: string;
|
@@ -218,6 +899,29 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
218
899
|
defaultMessage: string;
|
219
900
|
};
|
220
901
|
}[] | undefined;
|
902
|
+
conditionals?: ({
|
903
|
+
type: "SHOW";
|
904
|
+
conditional: import(".").JSONSchema;
|
905
|
+
} | {
|
906
|
+
type: "ENABLE";
|
907
|
+
conditional: import(".").JSONSchema;
|
908
|
+
} | {
|
909
|
+
type: "DISPLAY_ON_REVIEW";
|
910
|
+
conditional: import(".").JSONSchema;
|
911
|
+
})[] | undefined;
|
912
|
+
searchCriteriaLabelPrefix?: {
|
913
|
+
id: string;
|
914
|
+
description: string;
|
915
|
+
defaultMessage: string;
|
916
|
+
} | undefined;
|
917
|
+
validations?: {
|
918
|
+
message: {
|
919
|
+
id: string;
|
920
|
+
description: string;
|
921
|
+
defaultMessage: string;
|
922
|
+
};
|
923
|
+
validator: import(".").JSONSchema;
|
924
|
+
}[] | undefined;
|
221
925
|
}>]>;
|
222
926
|
export type SearchField = z.infer<typeof SearchField>;
|
223
927
|
export declare const AdvancedSearchConfig: z.ZodObject<{
|
@@ -228,11 +932,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
228
932
|
}>;
|
229
933
|
fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
230
934
|
config: z.ZodObject<{
|
231
|
-
type: z.ZodEnum<["
|
935
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
232
936
|
}, "strip", z.ZodTypeAny, {
|
233
|
-
type: "
|
937
|
+
type: "exact" | "fuzzy" | "range";
|
234
938
|
}, {
|
235
|
-
type: "
|
939
|
+
type: "exact" | "fuzzy" | "range";
|
236
940
|
}>;
|
237
941
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
238
942
|
value: z.ZodString;
|
@@ -252,12 +956,38 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
252
956
|
defaultMessage: string;
|
253
957
|
};
|
254
958
|
}>, "many">>;
|
959
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
960
|
+
id: string;
|
961
|
+
description: string;
|
962
|
+
defaultMessage: string;
|
963
|
+
}>>;
|
964
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
965
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
966
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
967
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
968
|
+
id: string;
|
969
|
+
description: string;
|
970
|
+
defaultMessage: string;
|
971
|
+
}>;
|
972
|
+
}, "strip", z.ZodTypeAny, {
|
973
|
+
message: TranslationConfig;
|
974
|
+
validator: import(".").JSONSchema;
|
975
|
+
}, {
|
976
|
+
message: {
|
977
|
+
id: string;
|
978
|
+
description: string;
|
979
|
+
defaultMessage: string;
|
980
|
+
};
|
981
|
+
validator: import(".").JSONSchema;
|
982
|
+
}>, "many">>>;
|
255
983
|
}, {
|
256
984
|
fieldId: z.ZodString;
|
257
985
|
fieldType: z.ZodLiteral<"field">;
|
986
|
+
alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
987
|
+
excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
258
988
|
}>, "strip", z.ZodTypeAny, {
|
259
989
|
config: {
|
260
|
-
type: "
|
990
|
+
type: "exact" | "fuzzy" | "range";
|
261
991
|
};
|
262
992
|
fieldId: string;
|
263
993
|
fieldType: "field";
|
@@ -265,9 +995,26 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
265
995
|
value: string;
|
266
996
|
label: TranslationConfig;
|
267
997
|
}[] | undefined;
|
998
|
+
conditionals?: ({
|
999
|
+
type: "SHOW";
|
1000
|
+
conditional: import(".").JSONSchema;
|
1001
|
+
} | {
|
1002
|
+
type: "ENABLE";
|
1003
|
+
conditional: import(".").JSONSchema;
|
1004
|
+
} | {
|
1005
|
+
type: "DISPLAY_ON_REVIEW";
|
1006
|
+
conditional: import(".").JSONSchema;
|
1007
|
+
})[] | undefined;
|
1008
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1009
|
+
validations?: {
|
1010
|
+
message: TranslationConfig;
|
1011
|
+
validator: import(".").JSONSchema;
|
1012
|
+
}[] | undefined;
|
1013
|
+
alternateFieldIds?: string[] | undefined;
|
1014
|
+
excludeInSearchQuery?: boolean | undefined;
|
268
1015
|
}, {
|
269
1016
|
config: {
|
270
|
-
type: "
|
1017
|
+
type: "exact" | "fuzzy" | "range";
|
271
1018
|
};
|
272
1019
|
fieldId: string;
|
273
1020
|
fieldType: "field";
|
@@ -279,13 +1026,38 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
279
1026
|
defaultMessage: string;
|
280
1027
|
};
|
281
1028
|
}[] | undefined;
|
1029
|
+
conditionals?: ({
|
1030
|
+
type: "SHOW";
|
1031
|
+
conditional: import(".").JSONSchema;
|
1032
|
+
} | {
|
1033
|
+
type: "ENABLE";
|
1034
|
+
conditional: import(".").JSONSchema;
|
1035
|
+
} | {
|
1036
|
+
type: "DISPLAY_ON_REVIEW";
|
1037
|
+
conditional: import(".").JSONSchema;
|
1038
|
+
})[] | undefined;
|
1039
|
+
searchCriteriaLabelPrefix?: {
|
1040
|
+
id: string;
|
1041
|
+
description: string;
|
1042
|
+
defaultMessage: string;
|
1043
|
+
} | undefined;
|
1044
|
+
validations?: {
|
1045
|
+
message: {
|
1046
|
+
id: string;
|
1047
|
+
description: string;
|
1048
|
+
defaultMessage: string;
|
1049
|
+
};
|
1050
|
+
validator: import(".").JSONSchema;
|
1051
|
+
}[] | undefined;
|
1052
|
+
alternateFieldIds?: string[] | undefined;
|
1053
|
+
excludeInSearchQuery?: boolean | undefined;
|
282
1054
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
283
1055
|
config: z.ZodObject<{
|
284
|
-
type: z.ZodEnum<["
|
1056
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
285
1057
|
}, "strip", z.ZodTypeAny, {
|
286
|
-
type: "
|
1058
|
+
type: "exact" | "fuzzy" | "range";
|
287
1059
|
}, {
|
288
|
-
type: "
|
1060
|
+
type: "exact" | "fuzzy" | "range";
|
289
1061
|
}>;
|
290
1062
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
291
1063
|
value: z.ZodString;
|
@@ -305,24 +1077,63 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
305
1077
|
defaultMessage: string;
|
306
1078
|
};
|
307
1079
|
}>, "many">>;
|
1080
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
1081
|
+
id: string;
|
1082
|
+
description: string;
|
1083
|
+
defaultMessage: string;
|
1084
|
+
}>>;
|
1085
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1086
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
1087
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
1088
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
1089
|
+
id: string;
|
1090
|
+
description: string;
|
1091
|
+
defaultMessage: string;
|
1092
|
+
}>;
|
1093
|
+
}, "strip", z.ZodTypeAny, {
|
1094
|
+
message: TranslationConfig;
|
1095
|
+
validator: import(".").JSONSchema;
|
1096
|
+
}, {
|
1097
|
+
message: {
|
1098
|
+
id: string;
|
1099
|
+
description: string;
|
1100
|
+
defaultMessage: string;
|
1101
|
+
};
|
1102
|
+
validator: import(".").JSONSchema;
|
1103
|
+
}>, "many">>>;
|
308
1104
|
}, {
|
309
|
-
fieldId: z.ZodEnum<["trackingId", "status"]>;
|
1105
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
310
1106
|
fieldType: z.ZodLiteral<"event">;
|
311
1107
|
}>, "strip", z.ZodTypeAny, {
|
312
1108
|
config: {
|
313
|
-
type: "
|
1109
|
+
type: "exact" | "fuzzy" | "range";
|
314
1110
|
};
|
315
|
-
fieldId: "status" | "trackingId";
|
1111
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
316
1112
|
fieldType: "event";
|
317
1113
|
options?: {
|
318
1114
|
value: string;
|
319
1115
|
label: TranslationConfig;
|
320
1116
|
}[] | undefined;
|
1117
|
+
conditionals?: ({
|
1118
|
+
type: "SHOW";
|
1119
|
+
conditional: import(".").JSONSchema;
|
1120
|
+
} | {
|
1121
|
+
type: "ENABLE";
|
1122
|
+
conditional: import(".").JSONSchema;
|
1123
|
+
} | {
|
1124
|
+
type: "DISPLAY_ON_REVIEW";
|
1125
|
+
conditional: import(".").JSONSchema;
|
1126
|
+
})[] | undefined;
|
1127
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1128
|
+
validations?: {
|
1129
|
+
message: TranslationConfig;
|
1130
|
+
validator: import(".").JSONSchema;
|
1131
|
+
}[] | undefined;
|
321
1132
|
}, {
|
322
1133
|
config: {
|
323
|
-
type: "
|
1134
|
+
type: "exact" | "fuzzy" | "range";
|
324
1135
|
};
|
325
|
-
fieldId: "status" | "trackingId";
|
1136
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
326
1137
|
fieldType: "event";
|
327
1138
|
options?: {
|
328
1139
|
value: string;
|
@@ -332,12 +1143,35 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
332
1143
|
defaultMessage: string;
|
333
1144
|
};
|
334
1145
|
}[] | undefined;
|
1146
|
+
conditionals?: ({
|
1147
|
+
type: "SHOW";
|
1148
|
+
conditional: import(".").JSONSchema;
|
1149
|
+
} | {
|
1150
|
+
type: "ENABLE";
|
1151
|
+
conditional: import(".").JSONSchema;
|
1152
|
+
} | {
|
1153
|
+
type: "DISPLAY_ON_REVIEW";
|
1154
|
+
conditional: import(".").JSONSchema;
|
1155
|
+
})[] | undefined;
|
1156
|
+
searchCriteriaLabelPrefix?: {
|
1157
|
+
id: string;
|
1158
|
+
description: string;
|
1159
|
+
defaultMessage: string;
|
1160
|
+
} | undefined;
|
1161
|
+
validations?: {
|
1162
|
+
message: {
|
1163
|
+
id: string;
|
1164
|
+
description: string;
|
1165
|
+
defaultMessage: string;
|
1166
|
+
};
|
1167
|
+
validator: import(".").JSONSchema;
|
1168
|
+
}[] | undefined;
|
335
1169
|
}>]>, "many">;
|
336
1170
|
}, "strip", z.ZodTypeAny, {
|
337
1171
|
title: TranslationConfig;
|
338
1172
|
fields: ({
|
339
1173
|
config: {
|
340
|
-
type: "
|
1174
|
+
type: "exact" | "fuzzy" | "range";
|
341
1175
|
};
|
342
1176
|
fieldId: string;
|
343
1177
|
fieldType: "field";
|
@@ -345,16 +1179,48 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
345
1179
|
value: string;
|
346
1180
|
label: TranslationConfig;
|
347
1181
|
}[] | undefined;
|
1182
|
+
conditionals?: ({
|
1183
|
+
type: "SHOW";
|
1184
|
+
conditional: import(".").JSONSchema;
|
1185
|
+
} | {
|
1186
|
+
type: "ENABLE";
|
1187
|
+
conditional: import(".").JSONSchema;
|
1188
|
+
} | {
|
1189
|
+
type: "DISPLAY_ON_REVIEW";
|
1190
|
+
conditional: import(".").JSONSchema;
|
1191
|
+
})[] | undefined;
|
1192
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1193
|
+
validations?: {
|
1194
|
+
message: TranslationConfig;
|
1195
|
+
validator: import(".").JSONSchema;
|
1196
|
+
}[] | undefined;
|
1197
|
+
alternateFieldIds?: string[] | undefined;
|
1198
|
+
excludeInSearchQuery?: boolean | undefined;
|
348
1199
|
} | {
|
349
1200
|
config: {
|
350
|
-
type: "
|
1201
|
+
type: "exact" | "fuzzy" | "range";
|
351
1202
|
};
|
352
|
-
fieldId: "status" | "trackingId";
|
1203
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
353
1204
|
fieldType: "event";
|
354
1205
|
options?: {
|
355
1206
|
value: string;
|
356
1207
|
label: TranslationConfig;
|
357
1208
|
}[] | undefined;
|
1209
|
+
conditionals?: ({
|
1210
|
+
type: "SHOW";
|
1211
|
+
conditional: import(".").JSONSchema;
|
1212
|
+
} | {
|
1213
|
+
type: "ENABLE";
|
1214
|
+
conditional: import(".").JSONSchema;
|
1215
|
+
} | {
|
1216
|
+
type: "DISPLAY_ON_REVIEW";
|
1217
|
+
conditional: import(".").JSONSchema;
|
1218
|
+
})[] | undefined;
|
1219
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1220
|
+
validations?: {
|
1221
|
+
message: TranslationConfig;
|
1222
|
+
validator: import(".").JSONSchema;
|
1223
|
+
}[] | undefined;
|
358
1224
|
})[];
|
359
1225
|
}, {
|
360
1226
|
title: {
|
@@ -364,7 +1230,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
364
1230
|
};
|
365
1231
|
fields: ({
|
366
1232
|
config: {
|
367
|
-
type: "
|
1233
|
+
type: "exact" | "fuzzy" | "range";
|
368
1234
|
};
|
369
1235
|
fieldId: string;
|
370
1236
|
fieldType: "field";
|
@@ -376,11 +1242,36 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
376
1242
|
defaultMessage: string;
|
377
1243
|
};
|
378
1244
|
}[] | undefined;
|
1245
|
+
conditionals?: ({
|
1246
|
+
type: "SHOW";
|
1247
|
+
conditional: import(".").JSONSchema;
|
1248
|
+
} | {
|
1249
|
+
type: "ENABLE";
|
1250
|
+
conditional: import(".").JSONSchema;
|
1251
|
+
} | {
|
1252
|
+
type: "DISPLAY_ON_REVIEW";
|
1253
|
+
conditional: import(".").JSONSchema;
|
1254
|
+
})[] | undefined;
|
1255
|
+
searchCriteriaLabelPrefix?: {
|
1256
|
+
id: string;
|
1257
|
+
description: string;
|
1258
|
+
defaultMessage: string;
|
1259
|
+
} | undefined;
|
1260
|
+
validations?: {
|
1261
|
+
message: {
|
1262
|
+
id: string;
|
1263
|
+
description: string;
|
1264
|
+
defaultMessage: string;
|
1265
|
+
};
|
1266
|
+
validator: import(".").JSONSchema;
|
1267
|
+
}[] | undefined;
|
1268
|
+
alternateFieldIds?: string[] | undefined;
|
1269
|
+
excludeInSearchQuery?: boolean | undefined;
|
379
1270
|
} | {
|
380
1271
|
config: {
|
381
|
-
type: "
|
1272
|
+
type: "exact" | "fuzzy" | "range";
|
382
1273
|
};
|
383
|
-
fieldId: "status" | "trackingId";
|
1274
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
384
1275
|
fieldType: "event";
|
385
1276
|
options?: {
|
386
1277
|
value: string;
|
@@ -390,6 +1281,29 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
390
1281
|
defaultMessage: string;
|
391
1282
|
};
|
392
1283
|
}[] | undefined;
|
1284
|
+
conditionals?: ({
|
1285
|
+
type: "SHOW";
|
1286
|
+
conditional: import(".").JSONSchema;
|
1287
|
+
} | {
|
1288
|
+
type: "ENABLE";
|
1289
|
+
conditional: import(".").JSONSchema;
|
1290
|
+
} | {
|
1291
|
+
type: "DISPLAY_ON_REVIEW";
|
1292
|
+
conditional: import(".").JSONSchema;
|
1293
|
+
})[] | undefined;
|
1294
|
+
searchCriteriaLabelPrefix?: {
|
1295
|
+
id: string;
|
1296
|
+
description: string;
|
1297
|
+
defaultMessage: string;
|
1298
|
+
} | undefined;
|
1299
|
+
validations?: {
|
1300
|
+
message: {
|
1301
|
+
id: string;
|
1302
|
+
description: string;
|
1303
|
+
defaultMessage: string;
|
1304
|
+
};
|
1305
|
+
validator: import(".").JSONSchema;
|
1306
|
+
}[] | undefined;
|
393
1307
|
})[];
|
394
1308
|
}>;
|
395
1309
|
export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
|