@opencrvs/toolkit 1.8.0-rc.f9fb039 → 1.8.0-rc.fa564ca
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 +7047 -3158
- package/dist/commons/conditionals/conditionals.d.ts +7 -6
- package/dist/commons/events/ActionConfig.d.ts +15774 -7797
- package/dist/commons/events/ActionDocument.d.ts +292 -105
- package/dist/commons/events/ActionInput.d.ts +75 -3
- package/dist/commons/events/ActionType.d.ts +4 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +437 -12
- package/dist/commons/events/Constants.d.ts +2 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
- package/dist/commons/events/Draft.d.ts +10 -5
- package/dist/commons/events/EventConfig.d.ts +11281 -7033
- package/dist/commons/events/EventDocument.d.ts +212 -99
- package/dist/commons/events/EventIndex.d.ts +281 -531
- package/dist/commons/events/EventInput.d.ts +0 -13
- package/dist/commons/events/EventMetadata.d.ts +68 -44
- package/dist/commons/events/FieldConfig.d.ts +486 -440
- package/dist/commons/events/FieldTypeMapping.d.ts +5 -2
- package/dist/commons/events/FieldValue.d.ts +2 -0
- package/dist/commons/events/FormConfig.d.ts +3346 -3052
- package/dist/commons/events/PageConfig.d.ts +750 -680
- package/dist/commons/events/SummaryConfig.d.ts +17 -0
- package/dist/commons/events/User.d.ts +31 -7
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +3936 -807
- package/dist/commons/events/defineConfig.d.ts +1385 -576
- package/dist/commons/events/event.d.ts +5 -5
- package/dist/commons/events/field.d.ts +9 -13
- package/dist/commons/events/index.d.ts +4 -0
- package/dist/commons/events/scopes.d.ts +20 -1
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +26 -6
- package/dist/commons/events/utils.d.ts +327 -291
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +28 -8
- package/dist/events/index.js +1947 -561
- package/dist/scopes/index.d.ts +158 -1
- package/dist/scopes/index.js +152 -1
- package/package.json +1 -1
@@ -1,5 +1,352 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
|
+
export declare const SearchQueryParams: z.ZodObject<{
|
4
|
+
eventType: z.ZodOptional<z.ZodString>;
|
5
|
+
}, "strip", z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
6
|
+
filename: z.ZodString;
|
7
|
+
originalFilename: z.ZodString;
|
8
|
+
type: z.ZodString;
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
10
|
+
type: string;
|
11
|
+
filename: string;
|
12
|
+
originalFilename: string;
|
13
|
+
}, {
|
14
|
+
type: string;
|
15
|
+
filename: string;
|
16
|
+
originalFilename: string;
|
17
|
+
}>, z.ZodArray<z.ZodObject<{
|
18
|
+
filename: z.ZodString;
|
19
|
+
originalFilename: z.ZodString;
|
20
|
+
type: z.ZodString;
|
21
|
+
option: z.ZodString;
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
23
|
+
type: string;
|
24
|
+
option: string;
|
25
|
+
filename: string;
|
26
|
+
originalFilename: string;
|
27
|
+
}, {
|
28
|
+
type: string;
|
29
|
+
option: string;
|
30
|
+
filename: string;
|
31
|
+
originalFilename: string;
|
32
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
33
|
+
country: z.ZodString;
|
34
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
35
|
+
province: z.ZodString;
|
36
|
+
district: z.ZodString;
|
37
|
+
}, {
|
38
|
+
urbanOrRural: z.ZodLiteral<"URBAN">;
|
39
|
+
town: z.ZodOptional<z.ZodString>;
|
40
|
+
residentialArea: z.ZodOptional<z.ZodString>;
|
41
|
+
street: z.ZodOptional<z.ZodString>;
|
42
|
+
number: z.ZodOptional<z.ZodString>;
|
43
|
+
zipCode: z.ZodOptional<z.ZodString>;
|
44
|
+
}>, "strip", z.ZodTypeAny, {
|
45
|
+
country: string;
|
46
|
+
district: string;
|
47
|
+
addressType: "DOMESTIC";
|
48
|
+
province: string;
|
49
|
+
urbanOrRural: "URBAN";
|
50
|
+
number?: string | undefined;
|
51
|
+
town?: string | undefined;
|
52
|
+
residentialArea?: string | undefined;
|
53
|
+
street?: string | undefined;
|
54
|
+
zipCode?: string | undefined;
|
55
|
+
}, {
|
56
|
+
country: string;
|
57
|
+
district: string;
|
58
|
+
addressType: "DOMESTIC";
|
59
|
+
province: string;
|
60
|
+
urbanOrRural: "URBAN";
|
61
|
+
number?: string | undefined;
|
62
|
+
town?: string | undefined;
|
63
|
+
residentialArea?: string | undefined;
|
64
|
+
street?: string | undefined;
|
65
|
+
zipCode?: string | undefined;
|
66
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
67
|
+
country: z.ZodString;
|
68
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
69
|
+
province: z.ZodString;
|
70
|
+
district: z.ZodString;
|
71
|
+
}, {
|
72
|
+
urbanOrRural: z.ZodLiteral<"RURAL">;
|
73
|
+
village: z.ZodOptional<z.ZodString>;
|
74
|
+
}>, "strip", z.ZodTypeAny, {
|
75
|
+
country: string;
|
76
|
+
district: string;
|
77
|
+
addressType: "DOMESTIC";
|
78
|
+
province: string;
|
79
|
+
urbanOrRural: "RURAL";
|
80
|
+
village?: string | undefined;
|
81
|
+
}, {
|
82
|
+
country: string;
|
83
|
+
district: string;
|
84
|
+
addressType: "DOMESTIC";
|
85
|
+
province: string;
|
86
|
+
urbanOrRural: "RURAL";
|
87
|
+
village?: string | undefined;
|
88
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
89
|
+
country: z.ZodString;
|
90
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
91
|
+
state: z.ZodString;
|
92
|
+
district2: z.ZodString;
|
93
|
+
cityOrTown: z.ZodOptional<z.ZodString>;
|
94
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
95
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
96
|
+
addressLine3: z.ZodOptional<z.ZodString>;
|
97
|
+
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
99
|
+
country: string;
|
100
|
+
state: string;
|
101
|
+
addressType: "INTERNATIONAL";
|
102
|
+
district2: string;
|
103
|
+
cityOrTown?: string | undefined;
|
104
|
+
addressLine1?: string | undefined;
|
105
|
+
addressLine2?: string | undefined;
|
106
|
+
addressLine3?: string | undefined;
|
107
|
+
postcodeOrZip?: string | undefined;
|
108
|
+
}, {
|
109
|
+
country: string;
|
110
|
+
state: string;
|
111
|
+
addressType: "INTERNATIONAL";
|
112
|
+
district2: string;
|
113
|
+
cityOrTown?: string | undefined;
|
114
|
+
addressLine1?: string | undefined;
|
115
|
+
addressLine2?: string | undefined;
|
116
|
+
addressLine3?: string | undefined;
|
117
|
+
postcodeOrZip?: string | undefined;
|
118
|
+
}>]>, z.objectOutputType<{
|
119
|
+
eventType: z.ZodOptional<z.ZodString>;
|
120
|
+
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
121
|
+
filename: z.ZodString;
|
122
|
+
originalFilename: z.ZodString;
|
123
|
+
type: z.ZodString;
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
125
|
+
type: string;
|
126
|
+
filename: string;
|
127
|
+
originalFilename: string;
|
128
|
+
}, {
|
129
|
+
type: string;
|
130
|
+
filename: string;
|
131
|
+
originalFilename: string;
|
132
|
+
}>, z.ZodArray<z.ZodObject<{
|
133
|
+
filename: z.ZodString;
|
134
|
+
originalFilename: z.ZodString;
|
135
|
+
type: z.ZodString;
|
136
|
+
option: z.ZodString;
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
138
|
+
type: string;
|
139
|
+
option: string;
|
140
|
+
filename: string;
|
141
|
+
originalFilename: string;
|
142
|
+
}, {
|
143
|
+
type: string;
|
144
|
+
option: string;
|
145
|
+
filename: string;
|
146
|
+
originalFilename: string;
|
147
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
148
|
+
country: z.ZodString;
|
149
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
150
|
+
province: z.ZodString;
|
151
|
+
district: z.ZodString;
|
152
|
+
}, {
|
153
|
+
urbanOrRural: z.ZodLiteral<"URBAN">;
|
154
|
+
town: z.ZodOptional<z.ZodString>;
|
155
|
+
residentialArea: z.ZodOptional<z.ZodString>;
|
156
|
+
street: z.ZodOptional<z.ZodString>;
|
157
|
+
number: z.ZodOptional<z.ZodString>;
|
158
|
+
zipCode: z.ZodOptional<z.ZodString>;
|
159
|
+
}>, "strip", z.ZodTypeAny, {
|
160
|
+
country: string;
|
161
|
+
district: string;
|
162
|
+
addressType: "DOMESTIC";
|
163
|
+
province: string;
|
164
|
+
urbanOrRural: "URBAN";
|
165
|
+
number?: string | undefined;
|
166
|
+
town?: string | undefined;
|
167
|
+
residentialArea?: string | undefined;
|
168
|
+
street?: string | undefined;
|
169
|
+
zipCode?: string | undefined;
|
170
|
+
}, {
|
171
|
+
country: string;
|
172
|
+
district: string;
|
173
|
+
addressType: "DOMESTIC";
|
174
|
+
province: string;
|
175
|
+
urbanOrRural: "URBAN";
|
176
|
+
number?: string | undefined;
|
177
|
+
town?: string | undefined;
|
178
|
+
residentialArea?: string | undefined;
|
179
|
+
street?: string | undefined;
|
180
|
+
zipCode?: string | undefined;
|
181
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
182
|
+
country: z.ZodString;
|
183
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
184
|
+
province: z.ZodString;
|
185
|
+
district: z.ZodString;
|
186
|
+
}, {
|
187
|
+
urbanOrRural: z.ZodLiteral<"RURAL">;
|
188
|
+
village: z.ZodOptional<z.ZodString>;
|
189
|
+
}>, "strip", z.ZodTypeAny, {
|
190
|
+
country: string;
|
191
|
+
district: string;
|
192
|
+
addressType: "DOMESTIC";
|
193
|
+
province: string;
|
194
|
+
urbanOrRural: "RURAL";
|
195
|
+
village?: string | undefined;
|
196
|
+
}, {
|
197
|
+
country: string;
|
198
|
+
district: string;
|
199
|
+
addressType: "DOMESTIC";
|
200
|
+
province: string;
|
201
|
+
urbanOrRural: "RURAL";
|
202
|
+
village?: string | undefined;
|
203
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
204
|
+
country: z.ZodString;
|
205
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
206
|
+
state: z.ZodString;
|
207
|
+
district2: z.ZodString;
|
208
|
+
cityOrTown: z.ZodOptional<z.ZodString>;
|
209
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
210
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
211
|
+
addressLine3: z.ZodOptional<z.ZodString>;
|
212
|
+
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
214
|
+
country: string;
|
215
|
+
state: string;
|
216
|
+
addressType: "INTERNATIONAL";
|
217
|
+
district2: string;
|
218
|
+
cityOrTown?: string | undefined;
|
219
|
+
addressLine1?: string | undefined;
|
220
|
+
addressLine2?: string | undefined;
|
221
|
+
addressLine3?: string | undefined;
|
222
|
+
postcodeOrZip?: string | undefined;
|
223
|
+
}, {
|
224
|
+
country: string;
|
225
|
+
state: string;
|
226
|
+
addressType: "INTERNATIONAL";
|
227
|
+
district2: string;
|
228
|
+
cityOrTown?: string | undefined;
|
229
|
+
addressLine1?: string | undefined;
|
230
|
+
addressLine2?: string | undefined;
|
231
|
+
addressLine3?: string | undefined;
|
232
|
+
postcodeOrZip?: string | undefined;
|
233
|
+
}>]>, "strip">, z.objectInputType<{
|
234
|
+
eventType: z.ZodOptional<z.ZodString>;
|
235
|
+
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
236
|
+
filename: z.ZodString;
|
237
|
+
originalFilename: z.ZodString;
|
238
|
+
type: z.ZodString;
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
240
|
+
type: string;
|
241
|
+
filename: string;
|
242
|
+
originalFilename: string;
|
243
|
+
}, {
|
244
|
+
type: string;
|
245
|
+
filename: string;
|
246
|
+
originalFilename: string;
|
247
|
+
}>, z.ZodArray<z.ZodObject<{
|
248
|
+
filename: z.ZodString;
|
249
|
+
originalFilename: z.ZodString;
|
250
|
+
type: z.ZodString;
|
251
|
+
option: z.ZodString;
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
253
|
+
type: string;
|
254
|
+
option: string;
|
255
|
+
filename: string;
|
256
|
+
originalFilename: string;
|
257
|
+
}, {
|
258
|
+
type: string;
|
259
|
+
option: string;
|
260
|
+
filename: string;
|
261
|
+
originalFilename: string;
|
262
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
263
|
+
country: z.ZodString;
|
264
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
265
|
+
province: z.ZodString;
|
266
|
+
district: z.ZodString;
|
267
|
+
}, {
|
268
|
+
urbanOrRural: z.ZodLiteral<"URBAN">;
|
269
|
+
town: z.ZodOptional<z.ZodString>;
|
270
|
+
residentialArea: z.ZodOptional<z.ZodString>;
|
271
|
+
street: z.ZodOptional<z.ZodString>;
|
272
|
+
number: z.ZodOptional<z.ZodString>;
|
273
|
+
zipCode: z.ZodOptional<z.ZodString>;
|
274
|
+
}>, "strip", z.ZodTypeAny, {
|
275
|
+
country: string;
|
276
|
+
district: string;
|
277
|
+
addressType: "DOMESTIC";
|
278
|
+
province: string;
|
279
|
+
urbanOrRural: "URBAN";
|
280
|
+
number?: string | undefined;
|
281
|
+
town?: string | undefined;
|
282
|
+
residentialArea?: string | undefined;
|
283
|
+
street?: string | undefined;
|
284
|
+
zipCode?: string | undefined;
|
285
|
+
}, {
|
286
|
+
country: string;
|
287
|
+
district: string;
|
288
|
+
addressType: "DOMESTIC";
|
289
|
+
province: string;
|
290
|
+
urbanOrRural: "URBAN";
|
291
|
+
number?: string | undefined;
|
292
|
+
town?: string | undefined;
|
293
|
+
residentialArea?: string | undefined;
|
294
|
+
street?: string | undefined;
|
295
|
+
zipCode?: string | undefined;
|
296
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
297
|
+
country: z.ZodString;
|
298
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
299
|
+
province: z.ZodString;
|
300
|
+
district: z.ZodString;
|
301
|
+
}, {
|
302
|
+
urbanOrRural: z.ZodLiteral<"RURAL">;
|
303
|
+
village: z.ZodOptional<z.ZodString>;
|
304
|
+
}>, "strip", z.ZodTypeAny, {
|
305
|
+
country: string;
|
306
|
+
district: string;
|
307
|
+
addressType: "DOMESTIC";
|
308
|
+
province: string;
|
309
|
+
urbanOrRural: "RURAL";
|
310
|
+
village?: string | undefined;
|
311
|
+
}, {
|
312
|
+
country: string;
|
313
|
+
district: string;
|
314
|
+
addressType: "DOMESTIC";
|
315
|
+
province: string;
|
316
|
+
urbanOrRural: "RURAL";
|
317
|
+
village?: string | undefined;
|
318
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
319
|
+
country: z.ZodString;
|
320
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
321
|
+
state: z.ZodString;
|
322
|
+
district2: z.ZodString;
|
323
|
+
cityOrTown: z.ZodOptional<z.ZodString>;
|
324
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
325
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
326
|
+
addressLine3: z.ZodOptional<z.ZodString>;
|
327
|
+
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
328
|
+
}, "strip", z.ZodTypeAny, {
|
329
|
+
country: string;
|
330
|
+
state: string;
|
331
|
+
addressType: "INTERNATIONAL";
|
332
|
+
district2: string;
|
333
|
+
cityOrTown?: string | undefined;
|
334
|
+
addressLine1?: string | undefined;
|
335
|
+
addressLine2?: string | undefined;
|
336
|
+
addressLine3?: string | undefined;
|
337
|
+
postcodeOrZip?: string | undefined;
|
338
|
+
}, {
|
339
|
+
country: string;
|
340
|
+
state: string;
|
341
|
+
addressType: "INTERNATIONAL";
|
342
|
+
district2: string;
|
343
|
+
cityOrTown?: string | undefined;
|
344
|
+
addressLine1?: string | undefined;
|
345
|
+
addressLine2?: string | undefined;
|
346
|
+
addressLine3?: string | undefined;
|
347
|
+
postcodeOrZip?: string | undefined;
|
348
|
+
}>]>, "strip">>;
|
349
|
+
export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
|
3
350
|
export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
4
351
|
config: z.ZodObject<{
|
5
352
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -26,6 +373,11 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
26
373
|
defaultMessage: string;
|
27
374
|
};
|
28
375
|
}>, "many">>;
|
376
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
377
|
+
id: string;
|
378
|
+
description: string;
|
379
|
+
defaultMessage: string;
|
380
|
+
}>>;
|
29
381
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
30
382
|
}, {
|
31
383
|
fieldId: z.ZodString;
|
@@ -50,6 +402,7 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
50
402
|
type: "DISPLAY_ON_REVIEW";
|
51
403
|
conditional: import(".").JSONSchema;
|
52
404
|
})[] | undefined;
|
405
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
53
406
|
}, {
|
54
407
|
config: {
|
55
408
|
type: "exact" | "fuzzy" | "range";
|
@@ -74,8 +427,13 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
74
427
|
type: "DISPLAY_ON_REVIEW";
|
75
428
|
conditional: import(".").JSONSchema;
|
76
429
|
})[] | undefined;
|
430
|
+
searchCriteriaLabelPrefix?: {
|
431
|
+
id: string;
|
432
|
+
description: string;
|
433
|
+
defaultMessage: string;
|
434
|
+
} | undefined;
|
77
435
|
}>;
|
78
|
-
export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "
|
436
|
+
export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
|
79
437
|
export type EventFieldId = z.infer<typeof EventFieldId>;
|
80
438
|
export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
81
439
|
config: z.ZodObject<{
|
@@ -103,15 +461,20 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
103
461
|
defaultMessage: string;
|
104
462
|
};
|
105
463
|
}>, "many">>;
|
464
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
465
|
+
id: string;
|
466
|
+
description: string;
|
467
|
+
defaultMessage: string;
|
468
|
+
}>>;
|
106
469
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
107
470
|
}, {
|
108
|
-
fieldId: z.ZodEnum<["trackingId", "status", "
|
471
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
|
109
472
|
fieldType: z.ZodLiteral<"event">;
|
110
473
|
}>, "strip", z.ZodTypeAny, {
|
111
474
|
config: {
|
112
475
|
type: "exact" | "fuzzy" | "range";
|
113
476
|
};
|
114
|
-
fieldId: "status" | "updatedAt" | "
|
477
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
|
115
478
|
fieldType: "event";
|
116
479
|
options?: {
|
117
480
|
value: string;
|
@@ -127,11 +490,12 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
127
490
|
type: "DISPLAY_ON_REVIEW";
|
128
491
|
conditional: import(".").JSONSchema;
|
129
492
|
})[] | undefined;
|
493
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
130
494
|
}, {
|
131
495
|
config: {
|
132
496
|
type: "exact" | "fuzzy" | "range";
|
133
497
|
};
|
134
|
-
fieldId: "status" | "updatedAt" | "
|
498
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
|
135
499
|
fieldType: "event";
|
136
500
|
options?: {
|
137
501
|
value: string;
|
@@ -151,6 +515,11 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
151
515
|
type: "DISPLAY_ON_REVIEW";
|
152
516
|
conditional: import(".").JSONSchema;
|
153
517
|
})[] | undefined;
|
518
|
+
searchCriteriaLabelPrefix?: {
|
519
|
+
id: string;
|
520
|
+
description: string;
|
521
|
+
defaultMessage: string;
|
522
|
+
} | undefined;
|
154
523
|
}>;
|
155
524
|
export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
156
525
|
config: z.ZodObject<{
|
@@ -178,6 +547,11 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
178
547
|
defaultMessage: string;
|
179
548
|
};
|
180
549
|
}>, "many">>;
|
550
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
551
|
+
id: string;
|
552
|
+
description: string;
|
553
|
+
defaultMessage: string;
|
554
|
+
}>>;
|
181
555
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
182
556
|
}, {
|
183
557
|
fieldId: z.ZodString;
|
@@ -202,6 +576,7 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
202
576
|
type: "DISPLAY_ON_REVIEW";
|
203
577
|
conditional: import(".").JSONSchema;
|
204
578
|
})[] | undefined;
|
579
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
205
580
|
}, {
|
206
581
|
config: {
|
207
582
|
type: "exact" | "fuzzy" | "range";
|
@@ -226,6 +601,11 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
226
601
|
type: "DISPLAY_ON_REVIEW";
|
227
602
|
conditional: import(".").JSONSchema;
|
228
603
|
})[] | undefined;
|
604
|
+
searchCriteriaLabelPrefix?: {
|
605
|
+
id: string;
|
606
|
+
description: string;
|
607
|
+
defaultMessage: string;
|
608
|
+
} | undefined;
|
229
609
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
230
610
|
config: z.ZodObject<{
|
231
611
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -252,15 +632,20 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
252
632
|
defaultMessage: string;
|
253
633
|
};
|
254
634
|
}>, "many">>;
|
635
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
636
|
+
id: string;
|
637
|
+
description: string;
|
638
|
+
defaultMessage: string;
|
639
|
+
}>>;
|
255
640
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
256
641
|
}, {
|
257
|
-
fieldId: z.ZodEnum<["trackingId", "status", "
|
642
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
|
258
643
|
fieldType: z.ZodLiteral<"event">;
|
259
644
|
}>, "strip", z.ZodTypeAny, {
|
260
645
|
config: {
|
261
646
|
type: "exact" | "fuzzy" | "range";
|
262
647
|
};
|
263
|
-
fieldId: "status" | "updatedAt" | "
|
648
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
|
264
649
|
fieldType: "event";
|
265
650
|
options?: {
|
266
651
|
value: string;
|
@@ -276,11 +661,12 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
276
661
|
type: "DISPLAY_ON_REVIEW";
|
277
662
|
conditional: import(".").JSONSchema;
|
278
663
|
})[] | undefined;
|
664
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
279
665
|
}, {
|
280
666
|
config: {
|
281
667
|
type: "exact" | "fuzzy" | "range";
|
282
668
|
};
|
283
|
-
fieldId: "status" | "updatedAt" | "
|
669
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
|
284
670
|
fieldType: "event";
|
285
671
|
options?: {
|
286
672
|
value: string;
|
@@ -300,6 +686,11 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
300
686
|
type: "DISPLAY_ON_REVIEW";
|
301
687
|
conditional: import(".").JSONSchema;
|
302
688
|
})[] | undefined;
|
689
|
+
searchCriteriaLabelPrefix?: {
|
690
|
+
id: string;
|
691
|
+
description: string;
|
692
|
+
defaultMessage: string;
|
693
|
+
} | undefined;
|
303
694
|
}>]>;
|
304
695
|
export type SearchField = z.infer<typeof SearchField>;
|
305
696
|
export declare const AdvancedSearchConfig: z.ZodObject<{
|
@@ -334,6 +725,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
334
725
|
defaultMessage: string;
|
335
726
|
};
|
336
727
|
}>, "many">>;
|
728
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
729
|
+
id: string;
|
730
|
+
description: string;
|
731
|
+
defaultMessage: string;
|
732
|
+
}>>;
|
337
733
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
338
734
|
}, {
|
339
735
|
fieldId: z.ZodString;
|
@@ -358,6 +754,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
358
754
|
type: "DISPLAY_ON_REVIEW";
|
359
755
|
conditional: import(".").JSONSchema;
|
360
756
|
})[] | undefined;
|
757
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
361
758
|
}, {
|
362
759
|
config: {
|
363
760
|
type: "exact" | "fuzzy" | "range";
|
@@ -382,6 +779,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
382
779
|
type: "DISPLAY_ON_REVIEW";
|
383
780
|
conditional: import(".").JSONSchema;
|
384
781
|
})[] | undefined;
|
782
|
+
searchCriteriaLabelPrefix?: {
|
783
|
+
id: string;
|
784
|
+
description: string;
|
785
|
+
defaultMessage: string;
|
786
|
+
} | undefined;
|
385
787
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
386
788
|
config: z.ZodObject<{
|
387
789
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -408,15 +810,20 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
408
810
|
defaultMessage: string;
|
409
811
|
};
|
410
812
|
}>, "many">>;
|
813
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
814
|
+
id: string;
|
815
|
+
description: string;
|
816
|
+
defaultMessage: string;
|
817
|
+
}>>;
|
411
818
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
412
819
|
}, {
|
413
|
-
fieldId: z.ZodEnum<["trackingId", "status", "
|
820
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
|
414
821
|
fieldType: z.ZodLiteral<"event">;
|
415
822
|
}>, "strip", z.ZodTypeAny, {
|
416
823
|
config: {
|
417
824
|
type: "exact" | "fuzzy" | "range";
|
418
825
|
};
|
419
|
-
fieldId: "status" | "updatedAt" | "
|
826
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
|
420
827
|
fieldType: "event";
|
421
828
|
options?: {
|
422
829
|
value: string;
|
@@ -432,11 +839,12 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
432
839
|
type: "DISPLAY_ON_REVIEW";
|
433
840
|
conditional: import(".").JSONSchema;
|
434
841
|
})[] | undefined;
|
842
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
435
843
|
}, {
|
436
844
|
config: {
|
437
845
|
type: "exact" | "fuzzy" | "range";
|
438
846
|
};
|
439
|
-
fieldId: "status" | "updatedAt" | "
|
847
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
|
440
848
|
fieldType: "event";
|
441
849
|
options?: {
|
442
850
|
value: string;
|
@@ -456,6 +864,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
456
864
|
type: "DISPLAY_ON_REVIEW";
|
457
865
|
conditional: import(".").JSONSchema;
|
458
866
|
})[] | undefined;
|
867
|
+
searchCriteriaLabelPrefix?: {
|
868
|
+
id: string;
|
869
|
+
description: string;
|
870
|
+
defaultMessage: string;
|
871
|
+
} | undefined;
|
459
872
|
}>]>, "many">;
|
460
873
|
}, "strip", z.ZodTypeAny, {
|
461
874
|
title: TranslationConfig;
|
@@ -479,11 +892,12 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
479
892
|
type: "DISPLAY_ON_REVIEW";
|
480
893
|
conditional: import(".").JSONSchema;
|
481
894
|
})[] | undefined;
|
895
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
482
896
|
} | {
|
483
897
|
config: {
|
484
898
|
type: "exact" | "fuzzy" | "range";
|
485
899
|
};
|
486
|
-
fieldId: "status" | "updatedAt" | "
|
900
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
|
487
901
|
fieldType: "event";
|
488
902
|
options?: {
|
489
903
|
value: string;
|
@@ -499,6 +913,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
499
913
|
type: "DISPLAY_ON_REVIEW";
|
500
914
|
conditional: import(".").JSONSchema;
|
501
915
|
})[] | undefined;
|
916
|
+
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
502
917
|
})[];
|
503
918
|
}, {
|
504
919
|
title: {
|
@@ -530,11 +945,16 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
530
945
|
type: "DISPLAY_ON_REVIEW";
|
531
946
|
conditional: import(".").JSONSchema;
|
532
947
|
})[] | undefined;
|
948
|
+
searchCriteriaLabelPrefix?: {
|
949
|
+
id: string;
|
950
|
+
description: string;
|
951
|
+
defaultMessage: string;
|
952
|
+
} | undefined;
|
533
953
|
} | {
|
534
954
|
config: {
|
535
955
|
type: "exact" | "fuzzy" | "range";
|
536
956
|
};
|
537
|
-
fieldId: "status" | "updatedAt" | "
|
957
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
|
538
958
|
fieldType: "event";
|
539
959
|
options?: {
|
540
960
|
value: string;
|
@@ -554,6 +974,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
554
974
|
type: "DISPLAY_ON_REVIEW";
|
555
975
|
conditional: import(".").JSONSchema;
|
556
976
|
})[] | undefined;
|
977
|
+
searchCriteriaLabelPrefix?: {
|
978
|
+
id: string;
|
979
|
+
description: string;
|
980
|
+
defaultMessage: string;
|
981
|
+
} | undefined;
|
557
982
|
})[];
|
558
983
|
}>;
|
559
984
|
export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
|