@opencrvs/toolkit 1.8.0-rc.facf9d6 → 1.8.0-rc.fafdecd
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 +7446 -7966
- package/dist/commons/conditionals/conditionals.d.ts +4 -12
- package/dist/commons/conditionals/validate.d.ts +6 -0
- package/dist/commons/events/ActionConfig.d.ts +59626 -28798
- package/dist/commons/events/ActionDocument.d.ts +3774 -1227
- package/dist/commons/events/ActionInput.d.ts +3066 -966
- package/dist/commons/events/ActionType.d.ts +4 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +339 -36
- package/dist/commons/events/CompositeFieldValue.d.ts +37 -9
- package/dist/commons/events/Constants.d.ts +1 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +1891 -741
- package/dist/commons/events/CreatedAtLocation.d.ts +1 -2
- package/dist/commons/events/Draft.d.ts +264 -91
- package/dist/commons/events/EventConfig.d.ts +34730 -17420
- package/dist/commons/events/EventDocument.d.ts +2390 -803
- package/dist/commons/events/EventIndex.d.ts +1130 -257
- package/dist/commons/events/EventMetadata.d.ts +76 -64
- package/dist/commons/events/FieldConfig.d.ts +2300 -960
- package/dist/commons/events/FieldType.d.ts +5 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +144 -73
- package/dist/commons/events/FieldValue.d.ts +85 -20
- package/dist/commons/events/FormConfig.d.ts +23361 -14991
- package/dist/commons/events/PageConfig.d.ts +3730 -1680
- package/dist/commons/events/SummaryConfig.d.ts +0 -5
- package/dist/commons/events/User.d.ts +6 -3
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +5509 -1918
- package/dist/commons/events/defineConfig.d.ts +4553 -1462
- package/dist/commons/events/event.d.ts +10 -18
- package/dist/commons/events/field.d.ts +9 -0
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/scopes.d.ts +2 -3
- package/dist/commons/events/test.utils.d.ts +183 -50
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +13648 -1221
- package/dist/conditionals/index.js +40 -52
- package/dist/events/index.js +2527 -1749
- package/dist/scopes/index.d.ts +96 -7
- package/dist/scopes/index.js +105 -26
- package/package.json +3 -3
@@ -36,4 +36,8 @@ export declare const annotationActions: z.ZodEnum<["DELETE", "CREATE", "NOTIFY",
|
|
36
36
|
export type AnnotationActionType = z.infer<typeof annotationActions>;
|
37
37
|
/** Actions which requires the user to be assigned */
|
38
38
|
export declare const writeActions: z.ZodEnum<["DELETE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION"]>;
|
39
|
+
/** Actions which are visible in action menu and workqueue */
|
40
|
+
export declare const workqueueActions: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN"]>;
|
41
|
+
export type WorkqueueActionType = z.infer<typeof workqueueActions>;
|
42
|
+
export declare function isMetaAction(actionType: ActionType): boolean;
|
39
43
|
//# sourceMappingURL=ActionType.d.ts.map
|
@@ -2,32 +2,41 @@ import { z } from 'zod';
|
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
3
|
export declare const SearchQueryParams: z.ZodObject<{
|
4
4
|
eventType: z.ZodOptional<z.ZodString>;
|
5
|
-
}, "strip", z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.
|
6
|
-
|
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>;
|
7
16
|
originalFilename: z.ZodString;
|
8
17
|
type: z.ZodString;
|
9
18
|
}, "strip", z.ZodTypeAny, {
|
10
19
|
type: string;
|
11
|
-
|
20
|
+
path: string;
|
12
21
|
originalFilename: string;
|
13
22
|
}, {
|
14
23
|
type: string;
|
15
|
-
|
24
|
+
path: string;
|
16
25
|
originalFilename: string;
|
17
26
|
}>, z.ZodArray<z.ZodObject<{
|
18
|
-
|
27
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
19
28
|
originalFilename: z.ZodString;
|
20
29
|
type: z.ZodString;
|
21
30
|
option: z.ZodString;
|
22
31
|
}, "strip", z.ZodTypeAny, {
|
23
32
|
type: string;
|
24
33
|
option: string;
|
25
|
-
|
34
|
+
path: string;
|
26
35
|
originalFilename: string;
|
27
36
|
}, {
|
28
37
|
type: string;
|
29
38
|
option: string;
|
30
|
-
|
39
|
+
path: string;
|
31
40
|
originalFilename: string;
|
32
41
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
33
42
|
country: z.ZodString;
|
@@ -115,34 +124,67 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
115
124
|
addressLine2?: string | undefined;
|
116
125
|
addressLine3?: string | undefined;
|
117
126
|
postcodeOrZip?: string | undefined;
|
118
|
-
}
|
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<{
|
119
152
|
eventType: z.ZodOptional<z.ZodString>;
|
120
|
-
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.
|
121
|
-
|
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>;
|
122
164
|
originalFilename: z.ZodString;
|
123
165
|
type: z.ZodString;
|
124
166
|
}, "strip", z.ZodTypeAny, {
|
125
167
|
type: string;
|
126
|
-
|
168
|
+
path: string;
|
127
169
|
originalFilename: string;
|
128
170
|
}, {
|
129
171
|
type: string;
|
130
|
-
|
172
|
+
path: string;
|
131
173
|
originalFilename: string;
|
132
174
|
}>, z.ZodArray<z.ZodObject<{
|
133
|
-
|
175
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
134
176
|
originalFilename: z.ZodString;
|
135
177
|
type: z.ZodString;
|
136
178
|
option: z.ZodString;
|
137
179
|
}, "strip", z.ZodTypeAny, {
|
138
180
|
type: string;
|
139
181
|
option: string;
|
140
|
-
|
182
|
+
path: string;
|
141
183
|
originalFilename: string;
|
142
184
|
}, {
|
143
185
|
type: string;
|
144
186
|
option: string;
|
145
|
-
|
187
|
+
path: string;
|
146
188
|
originalFilename: string;
|
147
189
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
148
190
|
country: z.ZodString;
|
@@ -230,34 +272,67 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
230
272
|
addressLine2?: string | undefined;
|
231
273
|
addressLine3?: string | undefined;
|
232
274
|
postcodeOrZip?: string | undefined;
|
233
|
-
}
|
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<{
|
234
300
|
eventType: z.ZodOptional<z.ZodString>;
|
235
|
-
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.
|
236
|
-
|
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>;
|
237
312
|
originalFilename: z.ZodString;
|
238
313
|
type: z.ZodString;
|
239
314
|
}, "strip", z.ZodTypeAny, {
|
240
315
|
type: string;
|
241
|
-
|
316
|
+
path: string;
|
242
317
|
originalFilename: string;
|
243
318
|
}, {
|
244
319
|
type: string;
|
245
|
-
|
320
|
+
path: string;
|
246
321
|
originalFilename: string;
|
247
322
|
}>, z.ZodArray<z.ZodObject<{
|
248
|
-
|
323
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
249
324
|
originalFilename: z.ZodString;
|
250
325
|
type: z.ZodString;
|
251
326
|
option: z.ZodString;
|
252
327
|
}, "strip", z.ZodTypeAny, {
|
253
328
|
type: string;
|
254
329
|
option: string;
|
255
|
-
|
330
|
+
path: string;
|
256
331
|
originalFilename: string;
|
257
332
|
}, {
|
258
333
|
type: string;
|
259
334
|
option: string;
|
260
|
-
|
335
|
+
path: string;
|
261
336
|
originalFilename: string;
|
262
337
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
263
338
|
country: z.ZodString;
|
@@ -345,7 +420,31 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
345
420
|
addressLine2?: string | undefined;
|
346
421
|
addressLine3?: string | undefined;
|
347
422
|
postcodeOrZip?: string | undefined;
|
348
|
-
}
|
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">>;
|
349
448
|
export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
|
350
449
|
export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
351
450
|
config: z.ZodObject<{
|
@@ -379,6 +478,24 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
379
478
|
defaultMessage: string;
|
380
479
|
}>>;
|
381
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">>>;
|
382
499
|
}, {
|
383
500
|
fieldId: z.ZodString;
|
384
501
|
fieldType: z.ZodLiteral<"field">;
|
@@ -403,6 +520,10 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
403
520
|
conditional: import(".").JSONSchema;
|
404
521
|
})[] | undefined;
|
405
522
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
523
|
+
validations?: {
|
524
|
+
message: TranslationConfig;
|
525
|
+
validator: import(".").JSONSchema;
|
526
|
+
}[] | undefined;
|
406
527
|
}, {
|
407
528
|
config: {
|
408
529
|
type: "exact" | "fuzzy" | "range";
|
@@ -432,8 +553,16 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
432
553
|
description: string;
|
433
554
|
defaultMessage: string;
|
434
555
|
} | undefined;
|
556
|
+
validations?: {
|
557
|
+
message: {
|
558
|
+
id: string;
|
559
|
+
description: string;
|
560
|
+
defaultMessage: string;
|
561
|
+
};
|
562
|
+
validator: import(".").JSONSchema;
|
563
|
+
}[] | undefined;
|
435
564
|
}>;
|
436
|
-
export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "
|
565
|
+
export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
437
566
|
export type EventFieldId = z.infer<typeof EventFieldId>;
|
438
567
|
export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
439
568
|
config: z.ZodObject<{
|
@@ -467,14 +596,32 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
467
596
|
defaultMessage: string;
|
468
597
|
}>>;
|
469
598
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
599
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
600
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
601
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
602
|
+
id: string;
|
603
|
+
description: string;
|
604
|
+
defaultMessage: string;
|
605
|
+
}>;
|
606
|
+
}, "strip", z.ZodTypeAny, {
|
607
|
+
message: TranslationConfig;
|
608
|
+
validator: import(".").JSONSchema;
|
609
|
+
}, {
|
610
|
+
message: {
|
611
|
+
id: string;
|
612
|
+
description: string;
|
613
|
+
defaultMessage: string;
|
614
|
+
};
|
615
|
+
validator: import(".").JSONSchema;
|
616
|
+
}>, "many">>>;
|
470
617
|
}, {
|
471
|
-
fieldId: z.ZodEnum<["trackingId", "status", "
|
618
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
472
619
|
fieldType: z.ZodLiteral<"event">;
|
473
620
|
}>, "strip", z.ZodTypeAny, {
|
474
621
|
config: {
|
475
622
|
type: "exact" | "fuzzy" | "range";
|
476
623
|
};
|
477
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
624
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
478
625
|
fieldType: "event";
|
479
626
|
options?: {
|
480
627
|
value: string;
|
@@ -491,11 +638,15 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
491
638
|
conditional: import(".").JSONSchema;
|
492
639
|
})[] | undefined;
|
493
640
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
641
|
+
validations?: {
|
642
|
+
message: TranslationConfig;
|
643
|
+
validator: import(".").JSONSchema;
|
644
|
+
}[] | undefined;
|
494
645
|
}, {
|
495
646
|
config: {
|
496
647
|
type: "exact" | "fuzzy" | "range";
|
497
648
|
};
|
498
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
649
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
499
650
|
fieldType: "event";
|
500
651
|
options?: {
|
501
652
|
value: string;
|
@@ -520,6 +671,14 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
520
671
|
description: string;
|
521
672
|
defaultMessage: string;
|
522
673
|
} | undefined;
|
674
|
+
validations?: {
|
675
|
+
message: {
|
676
|
+
id: string;
|
677
|
+
description: string;
|
678
|
+
defaultMessage: string;
|
679
|
+
};
|
680
|
+
validator: import(".").JSONSchema;
|
681
|
+
}[] | undefined;
|
523
682
|
}>;
|
524
683
|
export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
525
684
|
config: z.ZodObject<{
|
@@ -553,6 +712,24 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
553
712
|
defaultMessage: string;
|
554
713
|
}>>;
|
555
714
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
715
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
716
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
717
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
718
|
+
id: string;
|
719
|
+
description: string;
|
720
|
+
defaultMessage: string;
|
721
|
+
}>;
|
722
|
+
}, "strip", z.ZodTypeAny, {
|
723
|
+
message: TranslationConfig;
|
724
|
+
validator: import(".").JSONSchema;
|
725
|
+
}, {
|
726
|
+
message: {
|
727
|
+
id: string;
|
728
|
+
description: string;
|
729
|
+
defaultMessage: string;
|
730
|
+
};
|
731
|
+
validator: import(".").JSONSchema;
|
732
|
+
}>, "many">>>;
|
556
733
|
}, {
|
557
734
|
fieldId: z.ZodString;
|
558
735
|
fieldType: z.ZodLiteral<"field">;
|
@@ -577,6 +754,10 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
577
754
|
conditional: import(".").JSONSchema;
|
578
755
|
})[] | undefined;
|
579
756
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
757
|
+
validations?: {
|
758
|
+
message: TranslationConfig;
|
759
|
+
validator: import(".").JSONSchema;
|
760
|
+
}[] | undefined;
|
580
761
|
}, {
|
581
762
|
config: {
|
582
763
|
type: "exact" | "fuzzy" | "range";
|
@@ -606,6 +787,14 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
606
787
|
description: string;
|
607
788
|
defaultMessage: string;
|
608
789
|
} | undefined;
|
790
|
+
validations?: {
|
791
|
+
message: {
|
792
|
+
id: string;
|
793
|
+
description: string;
|
794
|
+
defaultMessage: string;
|
795
|
+
};
|
796
|
+
validator: import(".").JSONSchema;
|
797
|
+
}[] | undefined;
|
609
798
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
610
799
|
config: z.ZodObject<{
|
611
800
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -638,14 +827,32 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
638
827
|
defaultMessage: string;
|
639
828
|
}>>;
|
640
829
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
830
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
831
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
832
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
833
|
+
id: string;
|
834
|
+
description: string;
|
835
|
+
defaultMessage: string;
|
836
|
+
}>;
|
837
|
+
}, "strip", z.ZodTypeAny, {
|
838
|
+
message: TranslationConfig;
|
839
|
+
validator: import(".").JSONSchema;
|
840
|
+
}, {
|
841
|
+
message: {
|
842
|
+
id: string;
|
843
|
+
description: string;
|
844
|
+
defaultMessage: string;
|
845
|
+
};
|
846
|
+
validator: import(".").JSONSchema;
|
847
|
+
}>, "many">>>;
|
641
848
|
}, {
|
642
|
-
fieldId: z.ZodEnum<["trackingId", "status", "
|
849
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
643
850
|
fieldType: z.ZodLiteral<"event">;
|
644
851
|
}>, "strip", z.ZodTypeAny, {
|
645
852
|
config: {
|
646
853
|
type: "exact" | "fuzzy" | "range";
|
647
854
|
};
|
648
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
855
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
649
856
|
fieldType: "event";
|
650
857
|
options?: {
|
651
858
|
value: string;
|
@@ -662,11 +869,15 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
662
869
|
conditional: import(".").JSONSchema;
|
663
870
|
})[] | undefined;
|
664
871
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
872
|
+
validations?: {
|
873
|
+
message: TranslationConfig;
|
874
|
+
validator: import(".").JSONSchema;
|
875
|
+
}[] | undefined;
|
665
876
|
}, {
|
666
877
|
config: {
|
667
878
|
type: "exact" | "fuzzy" | "range";
|
668
879
|
};
|
669
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
880
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
670
881
|
fieldType: "event";
|
671
882
|
options?: {
|
672
883
|
value: string;
|
@@ -691,6 +902,14 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
691
902
|
description: string;
|
692
903
|
defaultMessage: string;
|
693
904
|
} | undefined;
|
905
|
+
validations?: {
|
906
|
+
message: {
|
907
|
+
id: string;
|
908
|
+
description: string;
|
909
|
+
defaultMessage: string;
|
910
|
+
};
|
911
|
+
validator: import(".").JSONSchema;
|
912
|
+
}[] | undefined;
|
694
913
|
}>]>;
|
695
914
|
export type SearchField = z.infer<typeof SearchField>;
|
696
915
|
export declare const AdvancedSearchConfig: z.ZodObject<{
|
@@ -731,6 +950,24 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
731
950
|
defaultMessage: string;
|
732
951
|
}>>;
|
733
952
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
953
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
954
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
955
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
956
|
+
id: string;
|
957
|
+
description: string;
|
958
|
+
defaultMessage: string;
|
959
|
+
}>;
|
960
|
+
}, "strip", z.ZodTypeAny, {
|
961
|
+
message: TranslationConfig;
|
962
|
+
validator: import(".").JSONSchema;
|
963
|
+
}, {
|
964
|
+
message: {
|
965
|
+
id: string;
|
966
|
+
description: string;
|
967
|
+
defaultMessage: string;
|
968
|
+
};
|
969
|
+
validator: import(".").JSONSchema;
|
970
|
+
}>, "many">>>;
|
734
971
|
}, {
|
735
972
|
fieldId: z.ZodString;
|
736
973
|
fieldType: z.ZodLiteral<"field">;
|
@@ -755,6 +992,10 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
755
992
|
conditional: import(".").JSONSchema;
|
756
993
|
})[] | undefined;
|
757
994
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
995
|
+
validations?: {
|
996
|
+
message: TranslationConfig;
|
997
|
+
validator: import(".").JSONSchema;
|
998
|
+
}[] | undefined;
|
758
999
|
}, {
|
759
1000
|
config: {
|
760
1001
|
type: "exact" | "fuzzy" | "range";
|
@@ -784,6 +1025,14 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
784
1025
|
description: string;
|
785
1026
|
defaultMessage: string;
|
786
1027
|
} | undefined;
|
1028
|
+
validations?: {
|
1029
|
+
message: {
|
1030
|
+
id: string;
|
1031
|
+
description: string;
|
1032
|
+
defaultMessage: string;
|
1033
|
+
};
|
1034
|
+
validator: import(".").JSONSchema;
|
1035
|
+
}[] | undefined;
|
787
1036
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
788
1037
|
config: z.ZodObject<{
|
789
1038
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -816,14 +1065,32 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
816
1065
|
defaultMessage: string;
|
817
1066
|
}>>;
|
818
1067
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1068
|
+
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
1069
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
1070
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
1071
|
+
id: string;
|
1072
|
+
description: string;
|
1073
|
+
defaultMessage: string;
|
1074
|
+
}>;
|
1075
|
+
}, "strip", z.ZodTypeAny, {
|
1076
|
+
message: TranslationConfig;
|
1077
|
+
validator: import(".").JSONSchema;
|
1078
|
+
}, {
|
1079
|
+
message: {
|
1080
|
+
id: string;
|
1081
|
+
description: string;
|
1082
|
+
defaultMessage: string;
|
1083
|
+
};
|
1084
|
+
validator: import(".").JSONSchema;
|
1085
|
+
}>, "many">>>;
|
819
1086
|
}, {
|
820
|
-
fieldId: z.ZodEnum<["trackingId", "status", "
|
1087
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
821
1088
|
fieldType: z.ZodLiteral<"event">;
|
822
1089
|
}>, "strip", z.ZodTypeAny, {
|
823
1090
|
config: {
|
824
1091
|
type: "exact" | "fuzzy" | "range";
|
825
1092
|
};
|
826
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
1093
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
827
1094
|
fieldType: "event";
|
828
1095
|
options?: {
|
829
1096
|
value: string;
|
@@ -840,11 +1107,15 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
840
1107
|
conditional: import(".").JSONSchema;
|
841
1108
|
})[] | undefined;
|
842
1109
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1110
|
+
validations?: {
|
1111
|
+
message: TranslationConfig;
|
1112
|
+
validator: import(".").JSONSchema;
|
1113
|
+
}[] | undefined;
|
843
1114
|
}, {
|
844
1115
|
config: {
|
845
1116
|
type: "exact" | "fuzzy" | "range";
|
846
1117
|
};
|
847
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
1118
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
848
1119
|
fieldType: "event";
|
849
1120
|
options?: {
|
850
1121
|
value: string;
|
@@ -869,6 +1140,14 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
869
1140
|
description: string;
|
870
1141
|
defaultMessage: string;
|
871
1142
|
} | undefined;
|
1143
|
+
validations?: {
|
1144
|
+
message: {
|
1145
|
+
id: string;
|
1146
|
+
description: string;
|
1147
|
+
defaultMessage: string;
|
1148
|
+
};
|
1149
|
+
validator: import(".").JSONSchema;
|
1150
|
+
}[] | undefined;
|
872
1151
|
}>]>, "many">;
|
873
1152
|
}, "strip", z.ZodTypeAny, {
|
874
1153
|
title: TranslationConfig;
|
@@ -893,11 +1172,15 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
893
1172
|
conditional: import(".").JSONSchema;
|
894
1173
|
})[] | undefined;
|
895
1174
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1175
|
+
validations?: {
|
1176
|
+
message: TranslationConfig;
|
1177
|
+
validator: import(".").JSONSchema;
|
1178
|
+
}[] | undefined;
|
896
1179
|
} | {
|
897
1180
|
config: {
|
898
1181
|
type: "exact" | "fuzzy" | "range";
|
899
1182
|
};
|
900
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
1183
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
901
1184
|
fieldType: "event";
|
902
1185
|
options?: {
|
903
1186
|
value: string;
|
@@ -914,6 +1197,10 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
914
1197
|
conditional: import(".").JSONSchema;
|
915
1198
|
})[] | undefined;
|
916
1199
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1200
|
+
validations?: {
|
1201
|
+
message: TranslationConfig;
|
1202
|
+
validator: import(".").JSONSchema;
|
1203
|
+
}[] | undefined;
|
917
1204
|
})[];
|
918
1205
|
}, {
|
919
1206
|
title: {
|
@@ -950,11 +1237,19 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
950
1237
|
description: string;
|
951
1238
|
defaultMessage: string;
|
952
1239
|
} | undefined;
|
1240
|
+
validations?: {
|
1241
|
+
message: {
|
1242
|
+
id: string;
|
1243
|
+
description: string;
|
1244
|
+
defaultMessage: string;
|
1245
|
+
};
|
1246
|
+
validator: import(".").JSONSchema;
|
1247
|
+
}[] | undefined;
|
953
1248
|
} | {
|
954
1249
|
config: {
|
955
1250
|
type: "exact" | "fuzzy" | "range";
|
956
1251
|
};
|
957
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
1252
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
958
1253
|
fieldType: "event";
|
959
1254
|
options?: {
|
960
1255
|
value: string;
|
@@ -979,6 +1274,14 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
979
1274
|
description: string;
|
980
1275
|
defaultMessage: string;
|
981
1276
|
} | undefined;
|
1277
|
+
validations?: {
|
1278
|
+
message: {
|
1279
|
+
id: string;
|
1280
|
+
description: string;
|
1281
|
+
defaultMessage: string;
|
1282
|
+
};
|
1283
|
+
validator: import(".").JSONSchema;
|
1284
|
+
}[] | undefined;
|
982
1285
|
})[];
|
983
1286
|
}>;
|
984
1287
|
export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
|