@opencrvs/toolkit 1.8.0-rc.f9d33b7 → 1.8.0-rc.f9fb039
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 +920 -287
- package/dist/commons/events/ActionConfig.d.ts +12137 -1475
- package/dist/commons/events/ActionDocument.d.ts +433 -413
- package/dist/commons/events/ActionInput.d.ts +180 -180
- package/dist/commons/events/AdvancedSearchConfig.d.ts +212 -48
- package/dist/commons/events/Draft.d.ts +24 -26
- package/dist/commons/events/EventConfig.d.ts +6173 -1007
- package/dist/commons/events/EventDocument.d.ts +247 -312
- package/dist/commons/events/EventIndex.d.ts +710 -45
- package/dist/commons/events/EventMetadata.d.ts +263 -11
- package/dist/commons/events/FieldConfig.d.ts +850 -69
- package/dist/commons/events/FieldType.d.ts +3 -2
- package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
- package/dist/commons/events/FieldValue.d.ts +6 -3
- package/dist/commons/events/FormConfig.d.ts +5749 -925
- package/dist/commons/events/PageConfig.d.ts +1191 -3
- package/dist/commons/events/WorkqueueConfig.d.ts +1362 -8
- package/dist/commons/events/defineConfig.d.ts +533 -3
- package/dist/commons/events/event.d.ts +37 -8
- package/dist/commons/events/field.d.ts +19 -10
- package/dist/commons/events/test.utils.d.ts +7 -7
- package/dist/commons/events/utils.d.ts +308 -21
- package/dist/events/index.js +1016 -724
- package/package.json +1 -1
@@ -1,14 +1,12 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
|
-
export declare const MatchType: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
|
4
|
-
export type MatchType = z.infer<typeof MatchType>;
|
5
3
|
export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
6
4
|
config: z.ZodObject<{
|
7
|
-
type: z.ZodEnum<["
|
5
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
8
6
|
}, "strip", z.ZodTypeAny, {
|
9
|
-
type: "
|
7
|
+
type: "exact" | "fuzzy" | "range";
|
10
8
|
}, {
|
11
|
-
type: "
|
9
|
+
type: "exact" | "fuzzy" | "range";
|
12
10
|
}>;
|
13
11
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
14
12
|
value: z.ZodString;
|
@@ -28,12 +26,13 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
28
26
|
defaultMessage: string;
|
29
27
|
};
|
30
28
|
}>, "many">>;
|
29
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
31
30
|
}, {
|
32
31
|
fieldId: z.ZodString;
|
33
32
|
fieldType: z.ZodLiteral<"field">;
|
34
33
|
}>, "strip", z.ZodTypeAny, {
|
35
34
|
config: {
|
36
|
-
type: "
|
35
|
+
type: "exact" | "fuzzy" | "range";
|
37
36
|
};
|
38
37
|
fieldId: string;
|
39
38
|
fieldType: "field";
|
@@ -41,9 +40,19 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
41
40
|
value: string;
|
42
41
|
label: TranslationConfig;
|
43
42
|
}[] | undefined;
|
43
|
+
conditionals?: ({
|
44
|
+
type: "SHOW";
|
45
|
+
conditional: import(".").JSONSchema;
|
46
|
+
} | {
|
47
|
+
type: "ENABLE";
|
48
|
+
conditional: import(".").JSONSchema;
|
49
|
+
} | {
|
50
|
+
type: "DISPLAY_ON_REVIEW";
|
51
|
+
conditional: import(".").JSONSchema;
|
52
|
+
})[] | undefined;
|
44
53
|
}, {
|
45
54
|
config: {
|
46
|
-
type: "
|
55
|
+
type: "exact" | "fuzzy" | "range";
|
47
56
|
};
|
48
57
|
fieldId: string;
|
49
58
|
fieldType: "field";
|
@@ -55,16 +64,26 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
55
64
|
defaultMessage: string;
|
56
65
|
};
|
57
66
|
}[] | undefined;
|
67
|
+
conditionals?: ({
|
68
|
+
type: "SHOW";
|
69
|
+
conditional: import(".").JSONSchema;
|
70
|
+
} | {
|
71
|
+
type: "ENABLE";
|
72
|
+
conditional: import(".").JSONSchema;
|
73
|
+
} | {
|
74
|
+
type: "DISPLAY_ON_REVIEW";
|
75
|
+
conditional: import(".").JSONSchema;
|
76
|
+
})[] | undefined;
|
58
77
|
}>;
|
59
|
-
export declare const EventFieldId: z.ZodEnum<["trackingId", "status"]>;
|
78
|
+
export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "registeredAt", "registeredAtLocation", "updatedAt"]>;
|
60
79
|
export type EventFieldId = z.infer<typeof EventFieldId>;
|
61
80
|
export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
62
81
|
config: z.ZodObject<{
|
63
|
-
type: z.ZodEnum<["
|
82
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
64
83
|
}, "strip", z.ZodTypeAny, {
|
65
|
-
type: "
|
84
|
+
type: "exact" | "fuzzy" | "range";
|
66
85
|
}, {
|
67
|
-
type: "
|
86
|
+
type: "exact" | "fuzzy" | "range";
|
68
87
|
}>;
|
69
88
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
70
89
|
value: z.ZodString;
|
@@ -84,24 +103,35 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
84
103
|
defaultMessage: string;
|
85
104
|
};
|
86
105
|
}>, "many">>;
|
106
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
87
107
|
}, {
|
88
|
-
fieldId: z.ZodEnum<["trackingId", "status"]>;
|
108
|
+
fieldId: z.ZodEnum<["trackingId", "status", "registeredAt", "registeredAtLocation", "updatedAt"]>;
|
89
109
|
fieldType: z.ZodLiteral<"event">;
|
90
110
|
}>, "strip", z.ZodTypeAny, {
|
91
111
|
config: {
|
92
|
-
type: "
|
112
|
+
type: "exact" | "fuzzy" | "range";
|
93
113
|
};
|
94
|
-
fieldId: "status" | "trackingId";
|
114
|
+
fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
|
95
115
|
fieldType: "event";
|
96
116
|
options?: {
|
97
117
|
value: string;
|
98
118
|
label: TranslationConfig;
|
99
119
|
}[] | undefined;
|
120
|
+
conditionals?: ({
|
121
|
+
type: "SHOW";
|
122
|
+
conditional: import(".").JSONSchema;
|
123
|
+
} | {
|
124
|
+
type: "ENABLE";
|
125
|
+
conditional: import(".").JSONSchema;
|
126
|
+
} | {
|
127
|
+
type: "DISPLAY_ON_REVIEW";
|
128
|
+
conditional: import(".").JSONSchema;
|
129
|
+
})[] | undefined;
|
100
130
|
}, {
|
101
131
|
config: {
|
102
|
-
type: "
|
132
|
+
type: "exact" | "fuzzy" | "range";
|
103
133
|
};
|
104
|
-
fieldId: "status" | "trackingId";
|
134
|
+
fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
|
105
135
|
fieldType: "event";
|
106
136
|
options?: {
|
107
137
|
value: string;
|
@@ -111,14 +141,24 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
111
141
|
defaultMessage: string;
|
112
142
|
};
|
113
143
|
}[] | undefined;
|
144
|
+
conditionals?: ({
|
145
|
+
type: "SHOW";
|
146
|
+
conditional: import(".").JSONSchema;
|
147
|
+
} | {
|
148
|
+
type: "ENABLE";
|
149
|
+
conditional: import(".").JSONSchema;
|
150
|
+
} | {
|
151
|
+
type: "DISPLAY_ON_REVIEW";
|
152
|
+
conditional: import(".").JSONSchema;
|
153
|
+
})[] | undefined;
|
114
154
|
}>;
|
115
155
|
export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
116
156
|
config: z.ZodObject<{
|
117
|
-
type: z.ZodEnum<["
|
157
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
118
158
|
}, "strip", z.ZodTypeAny, {
|
119
|
-
type: "
|
159
|
+
type: "exact" | "fuzzy" | "range";
|
120
160
|
}, {
|
121
|
-
type: "
|
161
|
+
type: "exact" | "fuzzy" | "range";
|
122
162
|
}>;
|
123
163
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
124
164
|
value: z.ZodString;
|
@@ -138,12 +178,13 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
138
178
|
defaultMessage: string;
|
139
179
|
};
|
140
180
|
}>, "many">>;
|
181
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
141
182
|
}, {
|
142
183
|
fieldId: z.ZodString;
|
143
184
|
fieldType: z.ZodLiteral<"field">;
|
144
185
|
}>, "strip", z.ZodTypeAny, {
|
145
186
|
config: {
|
146
|
-
type: "
|
187
|
+
type: "exact" | "fuzzy" | "range";
|
147
188
|
};
|
148
189
|
fieldId: string;
|
149
190
|
fieldType: "field";
|
@@ -151,9 +192,19 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
151
192
|
value: string;
|
152
193
|
label: TranslationConfig;
|
153
194
|
}[] | undefined;
|
195
|
+
conditionals?: ({
|
196
|
+
type: "SHOW";
|
197
|
+
conditional: import(".").JSONSchema;
|
198
|
+
} | {
|
199
|
+
type: "ENABLE";
|
200
|
+
conditional: import(".").JSONSchema;
|
201
|
+
} | {
|
202
|
+
type: "DISPLAY_ON_REVIEW";
|
203
|
+
conditional: import(".").JSONSchema;
|
204
|
+
})[] | undefined;
|
154
205
|
}, {
|
155
206
|
config: {
|
156
|
-
type: "
|
207
|
+
type: "exact" | "fuzzy" | "range";
|
157
208
|
};
|
158
209
|
fieldId: string;
|
159
210
|
fieldType: "field";
|
@@ -165,13 +216,23 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
165
216
|
defaultMessage: string;
|
166
217
|
};
|
167
218
|
}[] | undefined;
|
219
|
+
conditionals?: ({
|
220
|
+
type: "SHOW";
|
221
|
+
conditional: import(".").JSONSchema;
|
222
|
+
} | {
|
223
|
+
type: "ENABLE";
|
224
|
+
conditional: import(".").JSONSchema;
|
225
|
+
} | {
|
226
|
+
type: "DISPLAY_ON_REVIEW";
|
227
|
+
conditional: import(".").JSONSchema;
|
228
|
+
})[] | undefined;
|
168
229
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
169
230
|
config: z.ZodObject<{
|
170
|
-
type: z.ZodEnum<["
|
231
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
171
232
|
}, "strip", z.ZodTypeAny, {
|
172
|
-
type: "
|
233
|
+
type: "exact" | "fuzzy" | "range";
|
173
234
|
}, {
|
174
|
-
type: "
|
235
|
+
type: "exact" | "fuzzy" | "range";
|
175
236
|
}>;
|
176
237
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
177
238
|
value: z.ZodString;
|
@@ -191,24 +252,35 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
191
252
|
defaultMessage: string;
|
192
253
|
};
|
193
254
|
}>, "many">>;
|
255
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
194
256
|
}, {
|
195
|
-
fieldId: z.ZodEnum<["trackingId", "status"]>;
|
257
|
+
fieldId: z.ZodEnum<["trackingId", "status", "registeredAt", "registeredAtLocation", "updatedAt"]>;
|
196
258
|
fieldType: z.ZodLiteral<"event">;
|
197
259
|
}>, "strip", z.ZodTypeAny, {
|
198
260
|
config: {
|
199
|
-
type: "
|
261
|
+
type: "exact" | "fuzzy" | "range";
|
200
262
|
};
|
201
|
-
fieldId: "status" | "trackingId";
|
263
|
+
fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
|
202
264
|
fieldType: "event";
|
203
265
|
options?: {
|
204
266
|
value: string;
|
205
267
|
label: TranslationConfig;
|
206
268
|
}[] | undefined;
|
269
|
+
conditionals?: ({
|
270
|
+
type: "SHOW";
|
271
|
+
conditional: import(".").JSONSchema;
|
272
|
+
} | {
|
273
|
+
type: "ENABLE";
|
274
|
+
conditional: import(".").JSONSchema;
|
275
|
+
} | {
|
276
|
+
type: "DISPLAY_ON_REVIEW";
|
277
|
+
conditional: import(".").JSONSchema;
|
278
|
+
})[] | undefined;
|
207
279
|
}, {
|
208
280
|
config: {
|
209
|
-
type: "
|
281
|
+
type: "exact" | "fuzzy" | "range";
|
210
282
|
};
|
211
|
-
fieldId: "status" | "trackingId";
|
283
|
+
fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
|
212
284
|
fieldType: "event";
|
213
285
|
options?: {
|
214
286
|
value: string;
|
@@ -218,6 +290,16 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
218
290
|
defaultMessage: string;
|
219
291
|
};
|
220
292
|
}[] | undefined;
|
293
|
+
conditionals?: ({
|
294
|
+
type: "SHOW";
|
295
|
+
conditional: import(".").JSONSchema;
|
296
|
+
} | {
|
297
|
+
type: "ENABLE";
|
298
|
+
conditional: import(".").JSONSchema;
|
299
|
+
} | {
|
300
|
+
type: "DISPLAY_ON_REVIEW";
|
301
|
+
conditional: import(".").JSONSchema;
|
302
|
+
})[] | undefined;
|
221
303
|
}>]>;
|
222
304
|
export type SearchField = z.infer<typeof SearchField>;
|
223
305
|
export declare const AdvancedSearchConfig: z.ZodObject<{
|
@@ -228,11 +310,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
228
310
|
}>;
|
229
311
|
fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
230
312
|
config: z.ZodObject<{
|
231
|
-
type: z.ZodEnum<["
|
313
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
232
314
|
}, "strip", z.ZodTypeAny, {
|
233
|
-
type: "
|
315
|
+
type: "exact" | "fuzzy" | "range";
|
234
316
|
}, {
|
235
|
-
type: "
|
317
|
+
type: "exact" | "fuzzy" | "range";
|
236
318
|
}>;
|
237
319
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
238
320
|
value: z.ZodString;
|
@@ -252,12 +334,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
252
334
|
defaultMessage: string;
|
253
335
|
};
|
254
336
|
}>, "many">>;
|
337
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
255
338
|
}, {
|
256
339
|
fieldId: z.ZodString;
|
257
340
|
fieldType: z.ZodLiteral<"field">;
|
258
341
|
}>, "strip", z.ZodTypeAny, {
|
259
342
|
config: {
|
260
|
-
type: "
|
343
|
+
type: "exact" | "fuzzy" | "range";
|
261
344
|
};
|
262
345
|
fieldId: string;
|
263
346
|
fieldType: "field";
|
@@ -265,9 +348,19 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
265
348
|
value: string;
|
266
349
|
label: TranslationConfig;
|
267
350
|
}[] | undefined;
|
351
|
+
conditionals?: ({
|
352
|
+
type: "SHOW";
|
353
|
+
conditional: import(".").JSONSchema;
|
354
|
+
} | {
|
355
|
+
type: "ENABLE";
|
356
|
+
conditional: import(".").JSONSchema;
|
357
|
+
} | {
|
358
|
+
type: "DISPLAY_ON_REVIEW";
|
359
|
+
conditional: import(".").JSONSchema;
|
360
|
+
})[] | undefined;
|
268
361
|
}, {
|
269
362
|
config: {
|
270
|
-
type: "
|
363
|
+
type: "exact" | "fuzzy" | "range";
|
271
364
|
};
|
272
365
|
fieldId: string;
|
273
366
|
fieldType: "field";
|
@@ -279,13 +372,23 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
279
372
|
defaultMessage: string;
|
280
373
|
};
|
281
374
|
}[] | undefined;
|
375
|
+
conditionals?: ({
|
376
|
+
type: "SHOW";
|
377
|
+
conditional: import(".").JSONSchema;
|
378
|
+
} | {
|
379
|
+
type: "ENABLE";
|
380
|
+
conditional: import(".").JSONSchema;
|
381
|
+
} | {
|
382
|
+
type: "DISPLAY_ON_REVIEW";
|
383
|
+
conditional: import(".").JSONSchema;
|
384
|
+
})[] | undefined;
|
282
385
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
283
386
|
config: z.ZodObject<{
|
284
|
-
type: z.ZodEnum<["
|
387
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
285
388
|
}, "strip", z.ZodTypeAny, {
|
286
|
-
type: "
|
389
|
+
type: "exact" | "fuzzy" | "range";
|
287
390
|
}, {
|
288
|
-
type: "
|
391
|
+
type: "exact" | "fuzzy" | "range";
|
289
392
|
}>;
|
290
393
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
291
394
|
value: z.ZodString;
|
@@ -305,24 +408,35 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
305
408
|
defaultMessage: string;
|
306
409
|
};
|
307
410
|
}>, "many">>;
|
411
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
308
412
|
}, {
|
309
|
-
fieldId: z.ZodEnum<["trackingId", "status"]>;
|
413
|
+
fieldId: z.ZodEnum<["trackingId", "status", "registeredAt", "registeredAtLocation", "updatedAt"]>;
|
310
414
|
fieldType: z.ZodLiteral<"event">;
|
311
415
|
}>, "strip", z.ZodTypeAny, {
|
312
416
|
config: {
|
313
|
-
type: "
|
417
|
+
type: "exact" | "fuzzy" | "range";
|
314
418
|
};
|
315
|
-
fieldId: "status" | "trackingId";
|
419
|
+
fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
|
316
420
|
fieldType: "event";
|
317
421
|
options?: {
|
318
422
|
value: string;
|
319
423
|
label: TranslationConfig;
|
320
424
|
}[] | undefined;
|
425
|
+
conditionals?: ({
|
426
|
+
type: "SHOW";
|
427
|
+
conditional: import(".").JSONSchema;
|
428
|
+
} | {
|
429
|
+
type: "ENABLE";
|
430
|
+
conditional: import(".").JSONSchema;
|
431
|
+
} | {
|
432
|
+
type: "DISPLAY_ON_REVIEW";
|
433
|
+
conditional: import(".").JSONSchema;
|
434
|
+
})[] | undefined;
|
321
435
|
}, {
|
322
436
|
config: {
|
323
|
-
type: "
|
437
|
+
type: "exact" | "fuzzy" | "range";
|
324
438
|
};
|
325
|
-
fieldId: "status" | "trackingId";
|
439
|
+
fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
|
326
440
|
fieldType: "event";
|
327
441
|
options?: {
|
328
442
|
value: string;
|
@@ -332,12 +446,22 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
332
446
|
defaultMessage: string;
|
333
447
|
};
|
334
448
|
}[] | undefined;
|
449
|
+
conditionals?: ({
|
450
|
+
type: "SHOW";
|
451
|
+
conditional: import(".").JSONSchema;
|
452
|
+
} | {
|
453
|
+
type: "ENABLE";
|
454
|
+
conditional: import(".").JSONSchema;
|
455
|
+
} | {
|
456
|
+
type: "DISPLAY_ON_REVIEW";
|
457
|
+
conditional: import(".").JSONSchema;
|
458
|
+
})[] | undefined;
|
335
459
|
}>]>, "many">;
|
336
460
|
}, "strip", z.ZodTypeAny, {
|
337
461
|
title: TranslationConfig;
|
338
462
|
fields: ({
|
339
463
|
config: {
|
340
|
-
type: "
|
464
|
+
type: "exact" | "fuzzy" | "range";
|
341
465
|
};
|
342
466
|
fieldId: string;
|
343
467
|
fieldType: "field";
|
@@ -345,16 +469,36 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
345
469
|
value: string;
|
346
470
|
label: TranslationConfig;
|
347
471
|
}[] | undefined;
|
472
|
+
conditionals?: ({
|
473
|
+
type: "SHOW";
|
474
|
+
conditional: import(".").JSONSchema;
|
475
|
+
} | {
|
476
|
+
type: "ENABLE";
|
477
|
+
conditional: import(".").JSONSchema;
|
478
|
+
} | {
|
479
|
+
type: "DISPLAY_ON_REVIEW";
|
480
|
+
conditional: import(".").JSONSchema;
|
481
|
+
})[] | undefined;
|
348
482
|
} | {
|
349
483
|
config: {
|
350
|
-
type: "
|
484
|
+
type: "exact" | "fuzzy" | "range";
|
351
485
|
};
|
352
|
-
fieldId: "status" | "trackingId";
|
486
|
+
fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
|
353
487
|
fieldType: "event";
|
354
488
|
options?: {
|
355
489
|
value: string;
|
356
490
|
label: TranslationConfig;
|
357
491
|
}[] | undefined;
|
492
|
+
conditionals?: ({
|
493
|
+
type: "SHOW";
|
494
|
+
conditional: import(".").JSONSchema;
|
495
|
+
} | {
|
496
|
+
type: "ENABLE";
|
497
|
+
conditional: import(".").JSONSchema;
|
498
|
+
} | {
|
499
|
+
type: "DISPLAY_ON_REVIEW";
|
500
|
+
conditional: import(".").JSONSchema;
|
501
|
+
})[] | undefined;
|
358
502
|
})[];
|
359
503
|
}, {
|
360
504
|
title: {
|
@@ -364,7 +508,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
364
508
|
};
|
365
509
|
fields: ({
|
366
510
|
config: {
|
367
|
-
type: "
|
511
|
+
type: "exact" | "fuzzy" | "range";
|
368
512
|
};
|
369
513
|
fieldId: string;
|
370
514
|
fieldType: "field";
|
@@ -376,11 +520,21 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
376
520
|
defaultMessage: string;
|
377
521
|
};
|
378
522
|
}[] | undefined;
|
523
|
+
conditionals?: ({
|
524
|
+
type: "SHOW";
|
525
|
+
conditional: import(".").JSONSchema;
|
526
|
+
} | {
|
527
|
+
type: "ENABLE";
|
528
|
+
conditional: import(".").JSONSchema;
|
529
|
+
} | {
|
530
|
+
type: "DISPLAY_ON_REVIEW";
|
531
|
+
conditional: import(".").JSONSchema;
|
532
|
+
})[] | undefined;
|
379
533
|
} | {
|
380
534
|
config: {
|
381
|
-
type: "
|
535
|
+
type: "exact" | "fuzzy" | "range";
|
382
536
|
};
|
383
|
-
fieldId: "status" | "trackingId";
|
537
|
+
fieldId: "status" | "updatedAt" | "registeredAt" | "registeredAtLocation" | "trackingId";
|
384
538
|
fieldType: "event";
|
385
539
|
options?: {
|
386
540
|
value: string;
|
@@ -390,6 +544,16 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
390
544
|
defaultMessage: string;
|
391
545
|
};
|
392
546
|
}[] | undefined;
|
547
|
+
conditionals?: ({
|
548
|
+
type: "SHOW";
|
549
|
+
conditional: import(".").JSONSchema;
|
550
|
+
} | {
|
551
|
+
type: "ENABLE";
|
552
|
+
conditional: import(".").JSONSchema;
|
553
|
+
} | {
|
554
|
+
type: "DISPLAY_ON_REVIEW";
|
555
|
+
conditional: import(".").JSONSchema;
|
556
|
+
})[] | undefined;
|
393
557
|
})[];
|
394
558
|
}>;
|
395
559
|
export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
|