@opencrvs/toolkit 1.8.0-rc.fd8a78f → 1.8.0-rc.fde35f6
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 +3117 -11206
- package/dist/commons/conditionals/conditionals.d.ts +0 -12
- package/dist/commons/events/ActionConfig.d.ts +12032 -3972
- package/dist/commons/events/ActionDocument.d.ts +3029 -1886
- package/dist/commons/events/ActionInput.d.ts +2406 -1506
- package/dist/commons/events/AdvancedSearchConfig.d.ts +304 -51
- package/dist/commons/events/CompositeFieldValue.d.ts +15 -15
- 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 +213 -136
- package/dist/commons/events/EventConfig.d.ts +4770 -755
- package/dist/commons/events/EventDocument.d.ts +1942 -1219
- package/dist/commons/events/EventIndex.d.ts +897 -263
- package/dist/commons/events/EventMetadata.d.ts +73 -31
- package/dist/commons/events/FieldConfig.d.ts +607 -30
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +73 -41
- package/dist/commons/events/FieldValue.d.ts +57 -28
- package/dist/commons/events/FormConfig.d.ts +4685 -1295
- package/dist/commons/events/PageConfig.d.ts +868 -38
- 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 +4490 -1177
- package/dist/commons/events/defineConfig.d.ts +759 -34
- package/dist/commons/events/event.d.ts +15 -10
- package/dist/commons/events/field.d.ts +17 -0
- package/dist/commons/events/scopes.d.ts +1 -2
- package/dist/commons/events/test.utils.d.ts +83 -36
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +2926 -88
- package/dist/conditionals/index.js +22 -51
- package/dist/events/index.js +1550 -1048
- package/dist/scopes/index.d.ts +96 -7
- package/dist/scopes/index.js +105 -26
- package/package.json +3 -3
@@ -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;
|
@@ -128,45 +137,54 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
128
137
|
surname: string;
|
129
138
|
middlename?: string | undefined;
|
130
139
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
131
|
-
firstname: z.ZodString
|
132
|
-
surname: z.ZodString
|
140
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
141
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
133
142
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
134
143
|
}, "strip", z.ZodTypeAny, {
|
135
|
-
firstname
|
136
|
-
surname
|
144
|
+
firstname?: string | null | undefined;
|
145
|
+
surname?: string | null | undefined;
|
137
146
|
middlename?: string | null | undefined;
|
138
147
|
}, {
|
139
|
-
firstname
|
140
|
-
surname
|
148
|
+
firstname?: string | null | undefined;
|
149
|
+
surname?: string | null | undefined;
|
141
150
|
middlename?: string | null | undefined;
|
142
151
|
}>, z.ZodNull]>, z.ZodUndefined]>]>, z.objectOutputType<{
|
143
152
|
eventType: z.ZodOptional<z.ZodString>;
|
144
|
-
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.
|
145
|
-
|
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>;
|
146
164
|
originalFilename: z.ZodString;
|
147
165
|
type: z.ZodString;
|
148
166
|
}, "strip", z.ZodTypeAny, {
|
149
167
|
type: string;
|
150
|
-
|
168
|
+
path: string;
|
151
169
|
originalFilename: string;
|
152
170
|
}, {
|
153
171
|
type: string;
|
154
|
-
|
172
|
+
path: string;
|
155
173
|
originalFilename: string;
|
156
174
|
}>, z.ZodArray<z.ZodObject<{
|
157
|
-
|
175
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
158
176
|
originalFilename: z.ZodString;
|
159
177
|
type: z.ZodString;
|
160
178
|
option: z.ZodString;
|
161
179
|
}, "strip", z.ZodTypeAny, {
|
162
180
|
type: string;
|
163
181
|
option: string;
|
164
|
-
|
182
|
+
path: string;
|
165
183
|
originalFilename: string;
|
166
184
|
}, {
|
167
185
|
type: string;
|
168
186
|
option: string;
|
169
|
-
|
187
|
+
path: string;
|
170
188
|
originalFilename: string;
|
171
189
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
172
190
|
country: z.ZodString;
|
@@ -267,45 +285,54 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
267
285
|
surname: string;
|
268
286
|
middlename?: string | undefined;
|
269
287
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
270
|
-
firstname: z.ZodString
|
271
|
-
surname: z.ZodString
|
288
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
289
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
272
290
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
273
291
|
}, "strip", z.ZodTypeAny, {
|
274
|
-
firstname
|
275
|
-
surname
|
292
|
+
firstname?: string | null | undefined;
|
293
|
+
surname?: string | null | undefined;
|
276
294
|
middlename?: string | null | undefined;
|
277
295
|
}, {
|
278
|
-
firstname
|
279
|
-
surname
|
296
|
+
firstname?: string | null | undefined;
|
297
|
+
surname?: string | null | undefined;
|
280
298
|
middlename?: string | null | undefined;
|
281
299
|
}>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">, z.objectInputType<{
|
282
300
|
eventType: z.ZodOptional<z.ZodString>;
|
283
|
-
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.
|
284
|
-
|
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>;
|
285
312
|
originalFilename: z.ZodString;
|
286
313
|
type: z.ZodString;
|
287
314
|
}, "strip", z.ZodTypeAny, {
|
288
315
|
type: string;
|
289
|
-
|
316
|
+
path: string;
|
290
317
|
originalFilename: string;
|
291
318
|
}, {
|
292
319
|
type: string;
|
293
|
-
|
320
|
+
path: string;
|
294
321
|
originalFilename: string;
|
295
322
|
}>, z.ZodArray<z.ZodObject<{
|
296
|
-
|
323
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
297
324
|
originalFilename: z.ZodString;
|
298
325
|
type: z.ZodString;
|
299
326
|
option: z.ZodString;
|
300
327
|
}, "strip", z.ZodTypeAny, {
|
301
328
|
type: string;
|
302
329
|
option: string;
|
303
|
-
|
330
|
+
path: string;
|
304
331
|
originalFilename: string;
|
305
332
|
}, {
|
306
333
|
type: string;
|
307
334
|
option: string;
|
308
|
-
|
335
|
+
path: string;
|
309
336
|
originalFilename: string;
|
310
337
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
311
338
|
country: z.ZodString;
|
@@ -406,16 +433,16 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
406
433
|
surname: string;
|
407
434
|
middlename?: string | undefined;
|
408
435
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
409
|
-
firstname: z.ZodString
|
410
|
-
surname: z.ZodString
|
436
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
437
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
411
438
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
412
439
|
}, "strip", z.ZodTypeAny, {
|
413
|
-
firstname
|
414
|
-
surname
|
440
|
+
firstname?: string | null | undefined;
|
441
|
+
surname?: string | null | undefined;
|
415
442
|
middlename?: string | null | undefined;
|
416
443
|
}, {
|
417
|
-
firstname
|
418
|
-
surname
|
444
|
+
firstname?: string | null | undefined;
|
445
|
+
surname?: string | null | undefined;
|
419
446
|
middlename?: string | null | undefined;
|
420
447
|
}>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">>;
|
421
448
|
export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
|
@@ -451,9 +478,29 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
451
478
|
defaultMessage: string;
|
452
479
|
}>>;
|
453
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">>>;
|
454
499
|
}, {
|
455
500
|
fieldId: z.ZodString;
|
456
501
|
fieldType: z.ZodLiteral<"field">;
|
502
|
+
alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
503
|
+
excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
457
504
|
}>, "strip", z.ZodTypeAny, {
|
458
505
|
config: {
|
459
506
|
type: "exact" | "fuzzy" | "range";
|
@@ -475,6 +522,12 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
475
522
|
conditional: import(".").JSONSchema;
|
476
523
|
})[] | undefined;
|
477
524
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
525
|
+
validations?: {
|
526
|
+
message: TranslationConfig;
|
527
|
+
validator: import(".").JSONSchema;
|
528
|
+
}[] | undefined;
|
529
|
+
alternateFieldIds?: string[] | undefined;
|
530
|
+
excludeInSearchQuery?: boolean | undefined;
|
478
531
|
}, {
|
479
532
|
config: {
|
480
533
|
type: "exact" | "fuzzy" | "range";
|
@@ -504,8 +557,18 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
504
557
|
description: string;
|
505
558
|
defaultMessage: string;
|
506
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;
|
507
570
|
}>;
|
508
|
-
export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "
|
571
|
+
export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
509
572
|
export type EventFieldId = z.infer<typeof EventFieldId>;
|
510
573
|
export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
511
574
|
config: z.ZodObject<{
|
@@ -539,14 +602,32 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
539
602
|
defaultMessage: string;
|
540
603
|
}>>;
|
541
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">>>;
|
542
623
|
}, {
|
543
|
-
fieldId: z.ZodEnum<["trackingId", "status", "
|
624
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
544
625
|
fieldType: z.ZodLiteral<"event">;
|
545
626
|
}>, "strip", z.ZodTypeAny, {
|
546
627
|
config: {
|
547
628
|
type: "exact" | "fuzzy" | "range";
|
548
629
|
};
|
549
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
630
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
550
631
|
fieldType: "event";
|
551
632
|
options?: {
|
552
633
|
value: string;
|
@@ -563,11 +644,15 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
563
644
|
conditional: import(".").JSONSchema;
|
564
645
|
})[] | undefined;
|
565
646
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
647
|
+
validations?: {
|
648
|
+
message: TranslationConfig;
|
649
|
+
validator: import(".").JSONSchema;
|
650
|
+
}[] | undefined;
|
566
651
|
}, {
|
567
652
|
config: {
|
568
653
|
type: "exact" | "fuzzy" | "range";
|
569
654
|
};
|
570
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
655
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
571
656
|
fieldType: "event";
|
572
657
|
options?: {
|
573
658
|
value: string;
|
@@ -592,6 +677,14 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
592
677
|
description: string;
|
593
678
|
defaultMessage: string;
|
594
679
|
} | undefined;
|
680
|
+
validations?: {
|
681
|
+
message: {
|
682
|
+
id: string;
|
683
|
+
description: string;
|
684
|
+
defaultMessage: string;
|
685
|
+
};
|
686
|
+
validator: import(".").JSONSchema;
|
687
|
+
}[] | undefined;
|
595
688
|
}>;
|
596
689
|
export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
597
690
|
config: z.ZodObject<{
|
@@ -625,9 +718,29 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
625
718
|
defaultMessage: string;
|
626
719
|
}>>;
|
627
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">>>;
|
628
739
|
}, {
|
629
740
|
fieldId: z.ZodString;
|
630
741
|
fieldType: z.ZodLiteral<"field">;
|
742
|
+
alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
743
|
+
excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
631
744
|
}>, "strip", z.ZodTypeAny, {
|
632
745
|
config: {
|
633
746
|
type: "exact" | "fuzzy" | "range";
|
@@ -649,6 +762,12 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
649
762
|
conditional: import(".").JSONSchema;
|
650
763
|
})[] | undefined;
|
651
764
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
765
|
+
validations?: {
|
766
|
+
message: TranslationConfig;
|
767
|
+
validator: import(".").JSONSchema;
|
768
|
+
}[] | undefined;
|
769
|
+
alternateFieldIds?: string[] | undefined;
|
770
|
+
excludeInSearchQuery?: boolean | undefined;
|
652
771
|
}, {
|
653
772
|
config: {
|
654
773
|
type: "exact" | "fuzzy" | "range";
|
@@ -678,6 +797,16 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
678
797
|
description: string;
|
679
798
|
defaultMessage: string;
|
680
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;
|
681
810
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
682
811
|
config: z.ZodObject<{
|
683
812
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -710,14 +839,32 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
710
839
|
defaultMessage: string;
|
711
840
|
}>>;
|
712
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">>>;
|
713
860
|
}, {
|
714
|
-
fieldId: z.ZodEnum<["trackingId", "status", "
|
861
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
715
862
|
fieldType: z.ZodLiteral<"event">;
|
716
863
|
}>, "strip", z.ZodTypeAny, {
|
717
864
|
config: {
|
718
865
|
type: "exact" | "fuzzy" | "range";
|
719
866
|
};
|
720
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
867
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
721
868
|
fieldType: "event";
|
722
869
|
options?: {
|
723
870
|
value: string;
|
@@ -734,11 +881,15 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
734
881
|
conditional: import(".").JSONSchema;
|
735
882
|
})[] | undefined;
|
736
883
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
884
|
+
validations?: {
|
885
|
+
message: TranslationConfig;
|
886
|
+
validator: import(".").JSONSchema;
|
887
|
+
}[] | undefined;
|
737
888
|
}, {
|
738
889
|
config: {
|
739
890
|
type: "exact" | "fuzzy" | "range";
|
740
891
|
};
|
741
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
892
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
742
893
|
fieldType: "event";
|
743
894
|
options?: {
|
744
895
|
value: string;
|
@@ -763,6 +914,14 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
763
914
|
description: string;
|
764
915
|
defaultMessage: string;
|
765
916
|
} | undefined;
|
917
|
+
validations?: {
|
918
|
+
message: {
|
919
|
+
id: string;
|
920
|
+
description: string;
|
921
|
+
defaultMessage: string;
|
922
|
+
};
|
923
|
+
validator: import(".").JSONSchema;
|
924
|
+
}[] | undefined;
|
766
925
|
}>]>;
|
767
926
|
export type SearchField = z.infer<typeof SearchField>;
|
768
927
|
export declare const AdvancedSearchConfig: z.ZodObject<{
|
@@ -803,9 +962,29 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
803
962
|
defaultMessage: string;
|
804
963
|
}>>;
|
805
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">>>;
|
806
983
|
}, {
|
807
984
|
fieldId: z.ZodString;
|
808
985
|
fieldType: z.ZodLiteral<"field">;
|
986
|
+
alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
987
|
+
excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
809
988
|
}>, "strip", z.ZodTypeAny, {
|
810
989
|
config: {
|
811
990
|
type: "exact" | "fuzzy" | "range";
|
@@ -827,6 +1006,12 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
827
1006
|
conditional: import(".").JSONSchema;
|
828
1007
|
})[] | undefined;
|
829
1008
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1009
|
+
validations?: {
|
1010
|
+
message: TranslationConfig;
|
1011
|
+
validator: import(".").JSONSchema;
|
1012
|
+
}[] | undefined;
|
1013
|
+
alternateFieldIds?: string[] | undefined;
|
1014
|
+
excludeInSearchQuery?: boolean | undefined;
|
830
1015
|
}, {
|
831
1016
|
config: {
|
832
1017
|
type: "exact" | "fuzzy" | "range";
|
@@ -856,6 +1041,16 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
856
1041
|
description: string;
|
857
1042
|
defaultMessage: string;
|
858
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;
|
859
1054
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
860
1055
|
config: z.ZodObject<{
|
861
1056
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -888,14 +1083,32 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
888
1083
|
defaultMessage: string;
|
889
1084
|
}>>;
|
890
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">>>;
|
891
1104
|
}, {
|
892
|
-
fieldId: z.ZodEnum<["trackingId", "status", "
|
1105
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
893
1106
|
fieldType: z.ZodLiteral<"event">;
|
894
1107
|
}>, "strip", z.ZodTypeAny, {
|
895
1108
|
config: {
|
896
1109
|
type: "exact" | "fuzzy" | "range";
|
897
1110
|
};
|
898
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
1111
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
899
1112
|
fieldType: "event";
|
900
1113
|
options?: {
|
901
1114
|
value: string;
|
@@ -912,11 +1125,15 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
912
1125
|
conditional: import(".").JSONSchema;
|
913
1126
|
})[] | undefined;
|
914
1127
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1128
|
+
validations?: {
|
1129
|
+
message: TranslationConfig;
|
1130
|
+
validator: import(".").JSONSchema;
|
1131
|
+
}[] | undefined;
|
915
1132
|
}, {
|
916
1133
|
config: {
|
917
1134
|
type: "exact" | "fuzzy" | "range";
|
918
1135
|
};
|
919
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
1136
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
920
1137
|
fieldType: "event";
|
921
1138
|
options?: {
|
922
1139
|
value: string;
|
@@ -941,6 +1158,14 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
941
1158
|
description: string;
|
942
1159
|
defaultMessage: string;
|
943
1160
|
} | undefined;
|
1161
|
+
validations?: {
|
1162
|
+
message: {
|
1163
|
+
id: string;
|
1164
|
+
description: string;
|
1165
|
+
defaultMessage: string;
|
1166
|
+
};
|
1167
|
+
validator: import(".").JSONSchema;
|
1168
|
+
}[] | undefined;
|
944
1169
|
}>]>, "many">;
|
945
1170
|
}, "strip", z.ZodTypeAny, {
|
946
1171
|
title: TranslationConfig;
|
@@ -965,11 +1190,17 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
965
1190
|
conditional: import(".").JSONSchema;
|
966
1191
|
})[] | undefined;
|
967
1192
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1193
|
+
validations?: {
|
1194
|
+
message: TranslationConfig;
|
1195
|
+
validator: import(".").JSONSchema;
|
1196
|
+
}[] | undefined;
|
1197
|
+
alternateFieldIds?: string[] | undefined;
|
1198
|
+
excludeInSearchQuery?: boolean | undefined;
|
968
1199
|
} | {
|
969
1200
|
config: {
|
970
1201
|
type: "exact" | "fuzzy" | "range";
|
971
1202
|
};
|
972
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
1203
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
973
1204
|
fieldType: "event";
|
974
1205
|
options?: {
|
975
1206
|
value: string;
|
@@ -986,6 +1217,10 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
986
1217
|
conditional: import(".").JSONSchema;
|
987
1218
|
})[] | undefined;
|
988
1219
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1220
|
+
validations?: {
|
1221
|
+
message: TranslationConfig;
|
1222
|
+
validator: import(".").JSONSchema;
|
1223
|
+
}[] | undefined;
|
989
1224
|
})[];
|
990
1225
|
}, {
|
991
1226
|
title: {
|
@@ -1022,11 +1257,21 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1022
1257
|
description: string;
|
1023
1258
|
defaultMessage: string;
|
1024
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;
|
1025
1270
|
} | {
|
1026
1271
|
config: {
|
1027
1272
|
type: "exact" | "fuzzy" | "range";
|
1028
1273
|
};
|
1029
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
1274
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
1030
1275
|
fieldType: "event";
|
1031
1276
|
options?: {
|
1032
1277
|
value: string;
|
@@ -1051,6 +1296,14 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1051
1296
|
description: string;
|
1052
1297
|
defaultMessage: string;
|
1053
1298
|
} | undefined;
|
1299
|
+
validations?: {
|
1300
|
+
message: {
|
1301
|
+
id: string;
|
1302
|
+
description: string;
|
1303
|
+
defaultMessage: string;
|
1304
|
+
};
|
1305
|
+
validator: import(".").JSONSchema;
|
1306
|
+
}[] | undefined;
|
1054
1307
|
})[];
|
1055
1308
|
}>;
|
1056
1309
|
export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
|