@opencrvs/toolkit 1.8.0-rc.ffe24c3 → 1.8.1-rc.38945e7
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 +1742 -14918
- package/dist/commons/conditionals/conditionals.d.ts +0 -12
- package/dist/commons/conditionals/validate.d.ts +5 -0
- package/dist/commons/events/ActionConfig.d.ts +37041 -35133
- package/dist/commons/events/ActionDocument.d.ts +3159 -1626
- package/dist/commons/events/ActionInput.d.ts +2280 -1380
- package/dist/commons/events/ActionType.d.ts +7 -4
- package/dist/commons/events/AdvancedSearchConfig.d.ts +100 -51
- package/dist/commons/events/CompositeFieldValue.d.ts +15 -15
- package/dist/commons/events/CountryConfigQueryInput.d.ts +1162 -760
- package/dist/commons/events/Draft.d.ts +190 -118
- package/dist/commons/events/EventConfig.d.ts +20824 -22965
- package/dist/commons/events/EventDocument.d.ts +1669 -1021
- package/dist/commons/events/EventIndex.d.ts +394 -175
- package/dist/commons/events/EventMetadata.d.ts +6 -4
- package/dist/commons/events/FieldConfig.d.ts +1528 -449
- package/dist/commons/events/FieldType.d.ts +3 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +80 -41
- package/dist/commons/events/FieldValue.d.ts +58 -28
- package/dist/commons/events/FormConfig.d.ts +9263 -2657
- package/dist/commons/events/PageConfig.d.ts +3642 -2028
- package/dist/commons/events/SummaryConfig.d.ts +10 -10
- package/dist/commons/events/User.d.ts +6 -3
- package/dist/commons/events/WorkqueueConfig.d.ts +2153 -1337
- package/dist/commons/events/defineConfig.d.ts +2759 -3250
- package/dist/commons/events/event.d.ts +10 -18
- package/dist/commons/events/field.d.ts +13 -1
- package/dist/commons/events/scopes.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +58 -34
- package/dist/commons/events/utils.d.ts +8848 -6794
- package/dist/conditionals/index.js +23 -53
- package/dist/events/index.js +1594 -1341
- package/dist/scopes/index.d.ts +92 -6
- package/dist/scopes/index.js +38 -9
- package/package.json +3 -3
@@ -22,9 +22,13 @@ export declare const ActionType: {
|
|
22
22
|
readonly UNASSIGN: "UNASSIGN";
|
23
23
|
};
|
24
24
|
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
25
|
-
export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"];
|
25
|
+
export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION"];
|
26
26
|
/** Testing building types from enums as an alternative */
|
27
27
|
export declare const ActionTypes: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
28
|
+
export declare const ExclusiveActions: {
|
29
|
+
readonly REVIEW_CORRECTION_REQUEST: "REVIEW_CORRECTION_REQUEST";
|
30
|
+
};
|
31
|
+
export type ExclusiveActionTypes = (typeof ExclusiveActions)[keyof typeof ExclusiveActions];
|
28
32
|
/** Actions which change event data (declaration) before registration / during declaration. */
|
29
33
|
export declare const DeclarationActions: z.ZodEnum<["DECLARE", "VALIDATE", "REGISTER"]>;
|
30
34
|
export type DeclarationActionType = z.infer<typeof DeclarationActions>;
|
@@ -36,10 +40,9 @@ export declare const annotationActions: z.ZodEnum<["DELETE", "CREATE", "NOTIFY",
|
|
36
40
|
export type AnnotationActionType = z.infer<typeof annotationActions>;
|
37
41
|
/** Actions which requires the user to be assigned */
|
38
42
|
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 change the status of the event */
|
40
|
-
export declare const StatusChangingActions: z.ZodEnum<["CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
|
41
43
|
/** Actions which are visible in action menu and workqueue */
|
42
|
-
export declare const workqueueActions: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN"]>;
|
44
|
+
export declare const workqueueActions: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
43
45
|
export type WorkqueueActionType = z.infer<typeof workqueueActions>;
|
46
|
+
export type DisplayableAction = ActionType | ExclusiveActionTypes;
|
44
47
|
export declare function isMetaAction(actionType: ActionType): boolean;
|
45
48
|
//# 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.
|
6
|
-
|
5
|
+
}, "strip", z.ZodUnion<[z.ZodString, 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.
|
145
|
-
|
153
|
+
}, z.ZodUnion<[z.ZodString, 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.
|
284
|
-
|
301
|
+
}, z.ZodUnion<[z.ZodString, 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>;
|
@@ -472,6 +499,8 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
472
499
|
}, {
|
473
500
|
fieldId: z.ZodString;
|
474
501
|
fieldType: z.ZodLiteral<"field">;
|
502
|
+
alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
503
|
+
excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
475
504
|
}>, "strip", z.ZodTypeAny, {
|
476
505
|
config: {
|
477
506
|
type: "exact" | "fuzzy" | "range";
|
@@ -497,6 +526,8 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
497
526
|
message: TranslationConfig;
|
498
527
|
validator: import(".").JSONSchema;
|
499
528
|
}[] | undefined;
|
529
|
+
alternateFieldIds?: string[] | undefined;
|
530
|
+
excludeInSearchQuery?: boolean | undefined;
|
500
531
|
}, {
|
501
532
|
config: {
|
502
533
|
type: "exact" | "fuzzy" | "range";
|
@@ -534,8 +565,10 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
534
565
|
};
|
535
566
|
validator: import(".").JSONSchema;
|
536
567
|
}[] | undefined;
|
568
|
+
alternateFieldIds?: string[] | undefined;
|
569
|
+
excludeInSearchQuery?: boolean | undefined;
|
537
570
|
}>;
|
538
|
-
export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "
|
571
|
+
export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
539
572
|
export type EventFieldId = z.infer<typeof EventFieldId>;
|
540
573
|
export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
541
574
|
config: z.ZodObject<{
|
@@ -588,13 +621,13 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
588
621
|
validator: import(".").JSONSchema;
|
589
622
|
}>, "many">>>;
|
590
623
|
}, {
|
591
|
-
fieldId: z.ZodEnum<["trackingId", "status", "
|
624
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
592
625
|
fieldType: z.ZodLiteral<"event">;
|
593
626
|
}>, "strip", z.ZodTypeAny, {
|
594
627
|
config: {
|
595
628
|
type: "exact" | "fuzzy" | "range";
|
596
629
|
};
|
597
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
630
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
598
631
|
fieldType: "event";
|
599
632
|
options?: {
|
600
633
|
value: string;
|
@@ -619,7 +652,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
619
652
|
config: {
|
620
653
|
type: "exact" | "fuzzy" | "range";
|
621
654
|
};
|
622
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
655
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
623
656
|
fieldType: "event";
|
624
657
|
options?: {
|
625
658
|
value: string;
|
@@ -706,6 +739,8 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
706
739
|
}, {
|
707
740
|
fieldId: z.ZodString;
|
708
741
|
fieldType: z.ZodLiteral<"field">;
|
742
|
+
alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
743
|
+
excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
709
744
|
}>, "strip", z.ZodTypeAny, {
|
710
745
|
config: {
|
711
746
|
type: "exact" | "fuzzy" | "range";
|
@@ -731,6 +766,8 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
731
766
|
message: TranslationConfig;
|
732
767
|
validator: import(".").JSONSchema;
|
733
768
|
}[] | undefined;
|
769
|
+
alternateFieldIds?: string[] | undefined;
|
770
|
+
excludeInSearchQuery?: boolean | undefined;
|
734
771
|
}, {
|
735
772
|
config: {
|
736
773
|
type: "exact" | "fuzzy" | "range";
|
@@ -768,6 +805,8 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
768
805
|
};
|
769
806
|
validator: import(".").JSONSchema;
|
770
807
|
}[] | undefined;
|
808
|
+
alternateFieldIds?: string[] | undefined;
|
809
|
+
excludeInSearchQuery?: boolean | undefined;
|
771
810
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
772
811
|
config: z.ZodObject<{
|
773
812
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -819,13 +858,13 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
819
858
|
validator: import(".").JSONSchema;
|
820
859
|
}>, "many">>>;
|
821
860
|
}, {
|
822
|
-
fieldId: z.ZodEnum<["trackingId", "status", "
|
861
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
823
862
|
fieldType: z.ZodLiteral<"event">;
|
824
863
|
}>, "strip", z.ZodTypeAny, {
|
825
864
|
config: {
|
826
865
|
type: "exact" | "fuzzy" | "range";
|
827
866
|
};
|
828
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
867
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
829
868
|
fieldType: "event";
|
830
869
|
options?: {
|
831
870
|
value: string;
|
@@ -850,7 +889,7 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
850
889
|
config: {
|
851
890
|
type: "exact" | "fuzzy" | "range";
|
852
891
|
};
|
853
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
892
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
854
893
|
fieldType: "event";
|
855
894
|
options?: {
|
856
895
|
value: string;
|
@@ -944,6 +983,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
944
983
|
}, {
|
945
984
|
fieldId: z.ZodString;
|
946
985
|
fieldType: z.ZodLiteral<"field">;
|
986
|
+
alternateFieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
987
|
+
excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
947
988
|
}>, "strip", z.ZodTypeAny, {
|
948
989
|
config: {
|
949
990
|
type: "exact" | "fuzzy" | "range";
|
@@ -969,6 +1010,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
969
1010
|
message: TranslationConfig;
|
970
1011
|
validator: import(".").JSONSchema;
|
971
1012
|
}[] | undefined;
|
1013
|
+
alternateFieldIds?: string[] | undefined;
|
1014
|
+
excludeInSearchQuery?: boolean | undefined;
|
972
1015
|
}, {
|
973
1016
|
config: {
|
974
1017
|
type: "exact" | "fuzzy" | "range";
|
@@ -1006,6 +1049,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1006
1049
|
};
|
1007
1050
|
validator: import(".").JSONSchema;
|
1008
1051
|
}[] | undefined;
|
1052
|
+
alternateFieldIds?: string[] | undefined;
|
1053
|
+
excludeInSearchQuery?: boolean | undefined;
|
1009
1054
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
1010
1055
|
config: z.ZodObject<{
|
1011
1056
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -1057,13 +1102,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1057
1102
|
validator: import(".").JSONSchema;
|
1058
1103
|
}>, "many">>>;
|
1059
1104
|
}, {
|
1060
|
-
fieldId: z.ZodEnum<["trackingId", "status", "
|
1105
|
+
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
1061
1106
|
fieldType: z.ZodLiteral<"event">;
|
1062
1107
|
}>, "strip", z.ZodTypeAny, {
|
1063
1108
|
config: {
|
1064
1109
|
type: "exact" | "fuzzy" | "range";
|
1065
1110
|
};
|
1066
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
1111
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
1067
1112
|
fieldType: "event";
|
1068
1113
|
options?: {
|
1069
1114
|
value: string;
|
@@ -1088,7 +1133,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1088
1133
|
config: {
|
1089
1134
|
type: "exact" | "fuzzy" | "range";
|
1090
1135
|
};
|
1091
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
1136
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
1092
1137
|
fieldType: "event";
|
1093
1138
|
options?: {
|
1094
1139
|
value: string;
|
@@ -1149,11 +1194,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1149
1194
|
message: TranslationConfig;
|
1150
1195
|
validator: import(".").JSONSchema;
|
1151
1196
|
}[] | undefined;
|
1197
|
+
alternateFieldIds?: string[] | undefined;
|
1198
|
+
excludeInSearchQuery?: boolean | undefined;
|
1152
1199
|
} | {
|
1153
1200
|
config: {
|
1154
1201
|
type: "exact" | "fuzzy" | "range";
|
1155
1202
|
};
|
1156
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
1203
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
1157
1204
|
fieldType: "event";
|
1158
1205
|
options?: {
|
1159
1206
|
value: string;
|
@@ -1218,11 +1265,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1218
1265
|
};
|
1219
1266
|
validator: import(".").JSONSchema;
|
1220
1267
|
}[] | undefined;
|
1268
|
+
alternateFieldIds?: string[] | undefined;
|
1269
|
+
excludeInSearchQuery?: boolean | undefined;
|
1221
1270
|
} | {
|
1222
1271
|
config: {
|
1223
1272
|
type: "exact" | "fuzzy" | "range";
|
1224
1273
|
};
|
1225
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "
|
1274
|
+
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
1226
1275
|
fieldType: "event";
|
1227
1276
|
options?: {
|
1228
1277
|
value: string;
|
@@ -11,16 +11,16 @@ export declare const AddressType: {
|
|
11
11
|
readonly INTERNATIONAL: "INTERNATIONAL";
|
12
12
|
};
|
13
13
|
export declare const FileFieldValue: z.ZodObject<{
|
14
|
-
|
14
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
15
15
|
originalFilename: z.ZodString;
|
16
16
|
type: z.ZodString;
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
18
18
|
type: string;
|
19
|
-
|
19
|
+
path: string;
|
20
20
|
originalFilename: string;
|
21
21
|
}, {
|
22
22
|
type: string;
|
23
|
-
|
23
|
+
path: string;
|
24
24
|
originalFilename: string;
|
25
25
|
}>;
|
26
26
|
export type FileFieldValue = z.infer<typeof FileFieldValue>;
|
@@ -131,16 +131,16 @@ export declare const NameFieldValue: z.ZodObject<{
|
|
131
131
|
middlename?: string | undefined;
|
132
132
|
}>;
|
133
133
|
export declare const NameFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
134
|
-
firstname: z.ZodString
|
135
|
-
surname: z.ZodString
|
134
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
135
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
136
136
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
138
|
-
firstname
|
139
|
-
surname
|
138
|
+
firstname?: string | null | undefined;
|
139
|
+
surname?: string | null | undefined;
|
140
140
|
middlename?: string | null | undefined;
|
141
141
|
}, {
|
142
|
-
firstname
|
143
|
-
surname
|
142
|
+
firstname?: string | null | undefined;
|
143
|
+
surname?: string | null | undefined;
|
144
144
|
middlename?: string | null | undefined;
|
145
145
|
}>, z.ZodNull]>, z.ZodUndefined]>;
|
146
146
|
export type NameFieldValue = z.infer<typeof NameFieldValue>;
|
@@ -409,36 +409,36 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
409
409
|
}>]>;
|
410
410
|
export type AddressFieldValue = z.infer<typeof AddressFieldValue>;
|
411
411
|
export declare const FileFieldValueWithOption: z.ZodObject<{
|
412
|
-
|
412
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
413
413
|
originalFilename: z.ZodString;
|
414
414
|
type: z.ZodString;
|
415
415
|
option: z.ZodString;
|
416
416
|
}, "strip", z.ZodTypeAny, {
|
417
417
|
type: string;
|
418
418
|
option: string;
|
419
|
-
|
419
|
+
path: string;
|
420
420
|
originalFilename: string;
|
421
421
|
}, {
|
422
422
|
type: string;
|
423
423
|
option: string;
|
424
|
-
|
424
|
+
path: string;
|
425
425
|
originalFilename: string;
|
426
426
|
}>;
|
427
427
|
export type FileFieldValueWithOption = z.infer<typeof FileFieldValueWithOption>;
|
428
428
|
export declare const FileFieldWithOptionValue: z.ZodArray<z.ZodObject<{
|
429
|
-
|
429
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
430
430
|
originalFilename: z.ZodString;
|
431
431
|
type: z.ZodString;
|
432
432
|
option: z.ZodString;
|
433
433
|
}, "strip", z.ZodTypeAny, {
|
434
434
|
type: string;
|
435
435
|
option: string;
|
436
|
-
|
436
|
+
path: string;
|
437
437
|
originalFilename: string;
|
438
438
|
}, {
|
439
439
|
type: string;
|
440
440
|
option: string;
|
441
|
-
|
441
|
+
path: string;
|
442
442
|
originalFilename: string;
|
443
443
|
}>, "many">;
|
444
444
|
export type FileFieldWithOptionValue = z.infer<typeof FileFieldWithOptionValue>;
|