@openframe-org/criteria-set-protocol 2.6.4 → 2.6.6-beta.0
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/v1/schemas/common.d.ts +8 -8
- package/dist/v1/schemas/common.js +38 -38
- package/dist/v1/schemas/criteria-tree.d.ts +58 -76
- package/dist/v1/schemas/criterion.d.ts +22 -28
- package/dist/v1/schemas/criterion.js +2 -2
- package/dist/v1/schemas/task-group.d.ts +2 -4
- package/dist/v1/schemas/task.d.ts +4 -8
- package/dist/v1/schemas/task.js +2 -2
- package/dist/v1/schemas/theme.d.ts +30 -36
- package/dist/v1/schemas/theme.js +1 -1
- package/dist/v1/utils.js +3 -0
- package/package.json +1 -1
|
@@ -70,20 +70,20 @@ export declare const abstractElementSchema: z.ZodObject<{
|
|
|
70
70
|
}, z.core.$strip>], "type">>>;
|
|
71
71
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
72
72
|
}, z.core.$strip>;
|
|
73
|
-
export declare const breadcrumbOptionsSchema: z.
|
|
73
|
+
export declare const breadcrumbOptionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
74
74
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
75
|
-
breadcrumbTextFormat: z.
|
|
75
|
+
breadcrumbTextFormat: z.ZodNever;
|
|
76
76
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
-
hideFromBreadcrumbs: z.
|
|
77
|
+
hideFromBreadcrumbs: z.ZodLiteral<false>;
|
|
78
78
|
breadcrumbTextFormat: z.ZodString;
|
|
79
|
-
}, z.core.$strip>]>;
|
|
80
|
-
export declare const documentTreeOptionsSchema: z.
|
|
79
|
+
}, z.core.$strip>], "hideFromBreadcrumbs">;
|
|
80
|
+
export declare const documentTreeOptionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
81
81
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
82
|
-
documentTreeFolderTextFormat: z.
|
|
82
|
+
documentTreeFolderTextFormat: z.ZodNever;
|
|
83
83
|
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
-
hideFromDocumentTree: z.
|
|
84
|
+
hideFromDocumentTree: z.ZodLiteral<false>;
|
|
85
85
|
documentTreeFolderTextFormat: z.ZodString;
|
|
86
|
-
}, z.core.$strip>]>;
|
|
86
|
+
}, z.core.$strip>], "hideFromDocumentTree">;
|
|
87
87
|
export declare const criteriaTreeOptionsSchema: z.ZodObject<{
|
|
88
88
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
89
89
|
}, z.core.$strip>;
|
|
@@ -21,7 +21,8 @@ exports.taskItemValueSchema = zod_1.z
|
|
|
21
21
|
.union([exports.taskItemScalarValueSchema, zod_1.z.array(exports.taskItemScalarValueSchema)])
|
|
22
22
|
.describe("TaskItemValue - Can be either a scalar value or an array of scalar values");
|
|
23
23
|
const abstractElementDataSchema = zod_1.z.object({}).catchall(zod_1.z.any());
|
|
24
|
-
const numericElementDataValueSchema = abstractElementDataSchema
|
|
24
|
+
const numericElementDataValueSchema = abstractElementDataSchema
|
|
25
|
+
.extend({
|
|
25
26
|
value: zod_1.z.number().describe("Value of the element"),
|
|
26
27
|
maximumValue: zod_1.z
|
|
27
28
|
.number()
|
|
@@ -49,19 +50,19 @@ const numberElementDataValueSchema = numericElementDataValueSchema.extend({
|
|
|
49
50
|
.describe("Type of data - if omitted, defaults to 'number'"),
|
|
50
51
|
total: zod_1.z
|
|
51
52
|
.number()
|
|
52
|
-
.describe("Total value, understood as 'value'/'total'")
|
|
53
|
+
.describe("Total value, understood as 'value'/'total'")
|
|
53
54
|
});
|
|
54
55
|
const percentageElementDataValueSchema = numericElementDataValueSchema.extend({
|
|
55
56
|
type: zod_1.z
|
|
56
57
|
.literal("percentage")
|
|
57
58
|
.describe("Type of data"),
|
|
58
|
-
value: zod_1.z.number().describe("Value of the element")
|
|
59
|
+
value: zod_1.z.number().describe("Value of the element")
|
|
59
60
|
});
|
|
60
61
|
const booleanElementDataValueSchema = abstractElementDataSchema.extend({
|
|
61
62
|
type: zod_1.z
|
|
62
63
|
.literal("boolean")
|
|
63
64
|
.describe("Type of data"),
|
|
64
|
-
value: zod_1.z.boolean().describe("Value of the element")
|
|
65
|
+
value: zod_1.z.boolean().describe("Value of the element")
|
|
65
66
|
});
|
|
66
67
|
exports.elementDataValueSchema = zod_1.z.discriminatedUnion("type", [
|
|
67
68
|
numberElementDataValueSchema,
|
|
@@ -69,7 +70,7 @@ exports.elementDataValueSchema = zod_1.z.discriminatedUnion("type", [
|
|
|
69
70
|
booleanElementDataValueSchema
|
|
70
71
|
]);
|
|
71
72
|
exports.elementDataTextSchema = zod_1.z.object({
|
|
72
|
-
text: zod_1.z.string().describe("Text representation of the value")
|
|
73
|
+
text: zod_1.z.string().describe("Text representation of the value")
|
|
73
74
|
});
|
|
74
75
|
exports.elementDataSchema = zod_1.z.intersection(exports.elementDataTextSchema, exports.elementDataValueSchema);
|
|
75
76
|
exports.criteriaTreeElementTypeSchema = zod_1.z
|
|
@@ -95,39 +96,38 @@ exports.abstractElementSchema = zod_1.z
|
|
|
95
96
|
.describe("Custom sorting position within parent")
|
|
96
97
|
})
|
|
97
98
|
.describe("AbstractElement - Base schema for all tree elements");
|
|
98
|
-
exports.breadcrumbOptionsSchema = zod_1.z
|
|
99
|
-
.object({
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
})
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}));
|
|
99
|
+
exports.breadcrumbOptionsSchema = zod_1.z.discriminatedUnion("hideFromBreadcrumbs", [
|
|
100
|
+
zod_1.z.object({
|
|
101
|
+
hideFromBreadcrumbs: zod_1.z
|
|
102
|
+
.literal(true)
|
|
103
|
+
.describe("Whether to hide the element from the breadcrumbs"),
|
|
104
|
+
breadcrumbTextFormat: zod_1.z.never()
|
|
105
|
+
}),
|
|
106
|
+
zod_1.z.object({
|
|
107
|
+
hideFromBreadcrumbs: zod_1.z
|
|
108
|
+
.literal(false)
|
|
109
|
+
.describe("Whether to hide the element from the breadcrumbs"),
|
|
110
|
+
breadcrumbTextFormat: zod_1.z
|
|
111
|
+
.string()
|
|
112
|
+
.describe("The format of the breadcrumb text, use ':code:' and ':title:' to define where the code and/or title should be inserted")
|
|
113
|
+
})
|
|
114
|
+
]);
|
|
115
|
+
exports.documentTreeOptionsSchema = zod_1.z.discriminatedUnion("hideFromDocumentTree", [
|
|
116
|
+
zod_1.z.object({
|
|
117
|
+
hideFromDocumentTree: zod_1.z
|
|
118
|
+
.literal(true)
|
|
119
|
+
.describe("Whether to hide the element from the document tree folder structure"),
|
|
120
|
+
documentTreeFolderTextFormat: zod_1.z.never()
|
|
121
|
+
}),
|
|
122
|
+
zod_1.z.object({
|
|
123
|
+
hideFromDocumentTree: zod_1.z
|
|
124
|
+
.literal(false)
|
|
125
|
+
.describe("Whether to hide the element from the document tree folder structure"),
|
|
126
|
+
documentTreeFolderTextFormat: zod_1.z
|
|
127
|
+
.string()
|
|
128
|
+
.describe("The format of the document tree folder text, use ':code:' and ':title:' to define where the code and/or title should be inserted")
|
|
129
|
+
})
|
|
130
|
+
]);
|
|
131
131
|
exports.criteriaTreeOptionsSchema = zod_1.z
|
|
132
132
|
.object({
|
|
133
133
|
criteriaTreeElementTextFormat: zod_1.z
|
|
@@ -333,15 +333,13 @@ export declare const criteriaTreeSchema: z.ZodObject<{
|
|
|
333
333
|
type: "boolean";
|
|
334
334
|
value: boolean;
|
|
335
335
|
}), unknown>>;
|
|
336
|
-
options: z.
|
|
336
|
+
options: z.ZodObject<{
|
|
337
337
|
breadcrumbTextFormat: z.ZodString;
|
|
338
338
|
documentTreeFolderTextFormat: z.ZodString;
|
|
339
339
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
340
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
341
340
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
342
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
343
341
|
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
344
|
-
}, z.core.$strip
|
|
342
|
+
}, z.core.$strip>;
|
|
345
343
|
}, z.core.$strip>>>;
|
|
346
344
|
}, z.core.$strip>>>;
|
|
347
345
|
data: z.ZodType<{
|
|
@@ -395,25 +393,23 @@ export declare const criteriaTreeSchema: z.ZodObject<{
|
|
|
395
393
|
type: "boolean";
|
|
396
394
|
value: boolean;
|
|
397
395
|
}), unknown>>;
|
|
398
|
-
options: z.ZodIntersection<z.ZodIntersection<z.
|
|
396
|
+
options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
399
397
|
hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
400
|
-
|
|
398
|
+
criteriaTreeElementTextFormat: z.ZodString;
|
|
399
|
+
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
400
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
401
401
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
402
|
-
breadcrumbTextFormat: z.
|
|
402
|
+
breadcrumbTextFormat: z.ZodNever;
|
|
403
403
|
}, z.core.$strip>, z.ZodObject<{
|
|
404
|
-
hideFromBreadcrumbs: z.
|
|
404
|
+
hideFromBreadcrumbs: z.ZodLiteral<false>;
|
|
405
405
|
breadcrumbTextFormat: z.ZodString;
|
|
406
|
-
}, z.core.$strip>]>>, z.
|
|
406
|
+
}, z.core.$strip>], "hideFromBreadcrumbs">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
407
407
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
408
|
-
documentTreeFolderTextFormat: z.
|
|
408
|
+
documentTreeFolderTextFormat: z.ZodNever;
|
|
409
409
|
}, z.core.$strip>, z.ZodObject<{
|
|
410
|
-
hideFromDocumentTree: z.
|
|
410
|
+
hideFromDocumentTree: z.ZodLiteral<false>;
|
|
411
411
|
documentTreeFolderTextFormat: z.ZodString;
|
|
412
|
-
}, z.core.$strip>]
|
|
413
|
-
criteriaTreeElementTextFormat: z.ZodString;
|
|
414
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
415
|
-
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
416
|
-
}, z.core.$strip>>;
|
|
412
|
+
}, z.core.$strip>], "hideFromDocumentTree">>;
|
|
417
413
|
}, z.core.$strip>>;
|
|
418
414
|
data: z.ZodType<{
|
|
419
415
|
text: string;
|
|
@@ -466,23 +462,22 @@ export declare const criteriaTreeSchema: z.ZodObject<{
|
|
|
466
462
|
type: "boolean";
|
|
467
463
|
value: boolean;
|
|
468
464
|
}), unknown>>;
|
|
469
|
-
options: z.ZodIntersection<z.ZodIntersection<z.
|
|
465
|
+
options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
470
466
|
hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
471
|
-
|
|
467
|
+
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
468
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
472
469
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
473
|
-
breadcrumbTextFormat: z.
|
|
470
|
+
breadcrumbTextFormat: z.ZodNever;
|
|
474
471
|
}, z.core.$strip>, z.ZodObject<{
|
|
475
|
-
hideFromBreadcrumbs: z.
|
|
472
|
+
hideFromBreadcrumbs: z.ZodLiteral<false>;
|
|
476
473
|
breadcrumbTextFormat: z.ZodString;
|
|
477
|
-
}, z.core.$strip>]>>, z.
|
|
474
|
+
}, z.core.$strip>], "hideFromBreadcrumbs">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
478
475
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
479
|
-
documentTreeFolderTextFormat: z.
|
|
476
|
+
documentTreeFolderTextFormat: z.ZodNever;
|
|
480
477
|
}, z.core.$strip>, z.ZodObject<{
|
|
481
|
-
hideFromDocumentTree: z.
|
|
478
|
+
hideFromDocumentTree: z.ZodLiteral<false>;
|
|
482
479
|
documentTreeFolderTextFormat: z.ZodString;
|
|
483
|
-
}, z.core.$strip>]
|
|
484
|
-
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
485
|
-
}, z.core.$strip>>;
|
|
480
|
+
}, z.core.$strip>], "hideFromDocumentTree">>;
|
|
486
481
|
}, z.core.$strip>>;
|
|
487
482
|
certificationDefinitions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
488
483
|
code: z.ZodString;
|
|
@@ -797,15 +792,13 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
797
792
|
type: "boolean";
|
|
798
793
|
value: boolean;
|
|
799
794
|
}), unknown>>;
|
|
800
|
-
options: z.
|
|
795
|
+
options: z.ZodObject<{
|
|
801
796
|
breadcrumbTextFormat: z.ZodString;
|
|
802
797
|
documentTreeFolderTextFormat: z.ZodString;
|
|
803
798
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
804
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
805
799
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
806
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
807
800
|
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
808
|
-
}, z.core.$strip
|
|
801
|
+
}, z.core.$strip>;
|
|
809
802
|
}, z.core.$strip>>>;
|
|
810
803
|
}, z.core.$strip>>>;
|
|
811
804
|
data: z.ZodType<{
|
|
@@ -859,25 +852,23 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
859
852
|
type: "boolean";
|
|
860
853
|
value: boolean;
|
|
861
854
|
}), unknown>>;
|
|
862
|
-
options: z.ZodIntersection<z.ZodIntersection<z.
|
|
855
|
+
options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
863
856
|
hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
864
|
-
|
|
857
|
+
criteriaTreeElementTextFormat: z.ZodString;
|
|
858
|
+
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
859
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
865
860
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
866
|
-
breadcrumbTextFormat: z.
|
|
861
|
+
breadcrumbTextFormat: z.ZodNever;
|
|
867
862
|
}, z.core.$strip>, z.ZodObject<{
|
|
868
|
-
hideFromBreadcrumbs: z.
|
|
863
|
+
hideFromBreadcrumbs: z.ZodLiteral<false>;
|
|
869
864
|
breadcrumbTextFormat: z.ZodString;
|
|
870
|
-
}, z.core.$strip>]>>, z.
|
|
865
|
+
}, z.core.$strip>], "hideFromBreadcrumbs">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
871
866
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
872
|
-
documentTreeFolderTextFormat: z.
|
|
867
|
+
documentTreeFolderTextFormat: z.ZodNever;
|
|
873
868
|
}, z.core.$strip>, z.ZodObject<{
|
|
874
|
-
hideFromDocumentTree: z.
|
|
869
|
+
hideFromDocumentTree: z.ZodLiteral<false>;
|
|
875
870
|
documentTreeFolderTextFormat: z.ZodString;
|
|
876
|
-
}, z.core.$strip>]
|
|
877
|
-
criteriaTreeElementTextFormat: z.ZodString;
|
|
878
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
879
|
-
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
880
|
-
}, z.core.$strip>>;
|
|
871
|
+
}, z.core.$strip>], "hideFromDocumentTree">>;
|
|
881
872
|
}, z.core.$strip>>;
|
|
882
873
|
data: z.ZodType<{
|
|
883
874
|
text: string;
|
|
@@ -930,23 +921,22 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
930
921
|
type: "boolean";
|
|
931
922
|
value: boolean;
|
|
932
923
|
}), unknown>>;
|
|
933
|
-
options: z.ZodIntersection<z.ZodIntersection<z.
|
|
924
|
+
options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
934
925
|
hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
935
|
-
|
|
926
|
+
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
927
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
936
928
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
937
|
-
breadcrumbTextFormat: z.
|
|
929
|
+
breadcrumbTextFormat: z.ZodNever;
|
|
938
930
|
}, z.core.$strip>, z.ZodObject<{
|
|
939
|
-
hideFromBreadcrumbs: z.
|
|
931
|
+
hideFromBreadcrumbs: z.ZodLiteral<false>;
|
|
940
932
|
breadcrumbTextFormat: z.ZodString;
|
|
941
|
-
}, z.core.$strip>]>>, z.
|
|
933
|
+
}, z.core.$strip>], "hideFromBreadcrumbs">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
942
934
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
943
|
-
documentTreeFolderTextFormat: z.
|
|
935
|
+
documentTreeFolderTextFormat: z.ZodNever;
|
|
944
936
|
}, z.core.$strip>, z.ZodObject<{
|
|
945
|
-
hideFromDocumentTree: z.
|
|
937
|
+
hideFromDocumentTree: z.ZodLiteral<false>;
|
|
946
938
|
documentTreeFolderTextFormat: z.ZodString;
|
|
947
|
-
}, z.core.$strip>]
|
|
948
|
-
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
949
|
-
}, z.core.$strip>>;
|
|
939
|
+
}, z.core.$strip>], "hideFromDocumentTree">>;
|
|
950
940
|
}, z.core.$strip>, z.ZodObject<{
|
|
951
941
|
title: z.ZodString;
|
|
952
942
|
longFormTitle: z.ZodString;
|
|
@@ -1192,15 +1182,13 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1192
1182
|
type: "boolean";
|
|
1193
1183
|
value: boolean;
|
|
1194
1184
|
}), unknown>>;
|
|
1195
|
-
options: z.
|
|
1185
|
+
options: z.ZodObject<{
|
|
1196
1186
|
breadcrumbTextFormat: z.ZodString;
|
|
1197
1187
|
documentTreeFolderTextFormat: z.ZodString;
|
|
1198
1188
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1199
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1200
1189
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
1201
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
1202
1190
|
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
1203
|
-
}, z.core.$strip
|
|
1191
|
+
}, z.core.$strip>;
|
|
1204
1192
|
}, z.core.$strip>>>;
|
|
1205
1193
|
}, z.core.$strip>>>;
|
|
1206
1194
|
data: z.ZodType<{
|
|
@@ -1254,25 +1242,23 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1254
1242
|
type: "boolean";
|
|
1255
1243
|
value: boolean;
|
|
1256
1244
|
}), unknown>>;
|
|
1257
|
-
options: z.ZodIntersection<z.ZodIntersection<z.
|
|
1245
|
+
options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
1258
1246
|
hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1259
|
-
|
|
1247
|
+
criteriaTreeElementTextFormat: z.ZodString;
|
|
1248
|
+
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
1249
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1260
1250
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
1261
|
-
breadcrumbTextFormat: z.
|
|
1251
|
+
breadcrumbTextFormat: z.ZodNever;
|
|
1262
1252
|
}, z.core.$strip>, z.ZodObject<{
|
|
1263
|
-
hideFromBreadcrumbs: z.
|
|
1253
|
+
hideFromBreadcrumbs: z.ZodLiteral<false>;
|
|
1264
1254
|
breadcrumbTextFormat: z.ZodString;
|
|
1265
|
-
}, z.core.$strip>]>>, z.
|
|
1255
|
+
}, z.core.$strip>], "hideFromBreadcrumbs">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1266
1256
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
1267
|
-
documentTreeFolderTextFormat: z.
|
|
1257
|
+
documentTreeFolderTextFormat: z.ZodNever;
|
|
1268
1258
|
}, z.core.$strip>, z.ZodObject<{
|
|
1269
|
-
hideFromDocumentTree: z.
|
|
1259
|
+
hideFromDocumentTree: z.ZodLiteral<false>;
|
|
1270
1260
|
documentTreeFolderTextFormat: z.ZodString;
|
|
1271
|
-
}, z.core.$strip>]
|
|
1272
|
-
criteriaTreeElementTextFormat: z.ZodString;
|
|
1273
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
1274
|
-
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
1275
|
-
}, z.core.$strip>>;
|
|
1261
|
+
}, z.core.$strip>], "hideFromDocumentTree">>;
|
|
1276
1262
|
}, z.core.$strip>, z.ZodObject<{
|
|
1277
1263
|
title: z.ZodString;
|
|
1278
1264
|
longFormTitle: z.ZodString;
|
|
@@ -1496,15 +1482,13 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1496
1482
|
type: "boolean";
|
|
1497
1483
|
value: boolean;
|
|
1498
1484
|
}), unknown>>;
|
|
1499
|
-
options: z.
|
|
1485
|
+
options: z.ZodObject<{
|
|
1500
1486
|
breadcrumbTextFormat: z.ZodString;
|
|
1501
1487
|
documentTreeFolderTextFormat: z.ZodString;
|
|
1502
1488
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1503
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1504
1489
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
1505
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
1506
1490
|
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
1507
|
-
}, z.core.$strip
|
|
1491
|
+
}, z.core.$strip>;
|
|
1508
1492
|
}, z.core.$strip>>>;
|
|
1509
1493
|
}, z.core.$strip>, z.ZodObject<{
|
|
1510
1494
|
title: z.ZodString;
|
|
@@ -1705,15 +1689,13 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1705
1689
|
type: "boolean";
|
|
1706
1690
|
value: boolean;
|
|
1707
1691
|
}), unknown>>;
|
|
1708
|
-
options: z.
|
|
1692
|
+
options: z.ZodObject<{
|
|
1709
1693
|
breadcrumbTextFormat: z.ZodString;
|
|
1710
1694
|
documentTreeFolderTextFormat: z.ZodString;
|
|
1711
1695
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1712
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1713
1696
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
1714
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
1715
1697
|
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
1716
|
-
}, z.core.$strip
|
|
1698
|
+
}, z.core.$strip>;
|
|
1717
1699
|
}, z.core.$strip>, z.ZodObject<{
|
|
1718
1700
|
code: z.ZodString;
|
|
1719
1701
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const criterionOptionsSchema: z.ZodIntersection<z.ZodIntersection<z.
|
|
2
|
+
export declare const criterionOptionsSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
3
3
|
hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
4
|
-
|
|
4
|
+
criteriaTreeElementTextFormat: z.ZodString;
|
|
5
|
+
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
7
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
6
|
-
breadcrumbTextFormat: z.
|
|
8
|
+
breadcrumbTextFormat: z.ZodNever;
|
|
7
9
|
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
-
hideFromBreadcrumbs: z.
|
|
10
|
+
hideFromBreadcrumbs: z.ZodLiteral<false>;
|
|
9
11
|
breadcrumbTextFormat: z.ZodString;
|
|
10
|
-
}, z.core.$strip>]>>, z.
|
|
12
|
+
}, z.core.$strip>], "hideFromBreadcrumbs">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
13
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
12
|
-
documentTreeFolderTextFormat: z.
|
|
14
|
+
documentTreeFolderTextFormat: z.ZodNever;
|
|
13
15
|
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
-
hideFromDocumentTree: z.
|
|
16
|
+
hideFromDocumentTree: z.ZodLiteral<false>;
|
|
15
17
|
documentTreeFolderTextFormat: z.ZodString;
|
|
16
|
-
}, z.core.$strip>]
|
|
17
|
-
criteriaTreeElementTextFormat: z.ZodString;
|
|
18
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
19
|
-
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>], "hideFromDocumentTree">>;
|
|
21
19
|
export declare const criterionSchema: z.ZodObject<{
|
|
22
20
|
title: z.ZodString;
|
|
23
21
|
longFormTitle: z.ZodString;
|
|
@@ -263,15 +261,13 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
263
261
|
type: "boolean";
|
|
264
262
|
value: boolean;
|
|
265
263
|
}), unknown>>;
|
|
266
|
-
options: z.
|
|
264
|
+
options: z.ZodObject<{
|
|
267
265
|
breadcrumbTextFormat: z.ZodString;
|
|
268
266
|
documentTreeFolderTextFormat: z.ZodString;
|
|
269
267
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
270
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
271
268
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
272
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
273
269
|
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
274
|
-
}, z.core.$strip
|
|
270
|
+
}, z.core.$strip>;
|
|
275
271
|
}, z.core.$strip>>>;
|
|
276
272
|
}, z.core.$strip>>>;
|
|
277
273
|
data: z.ZodType<{
|
|
@@ -325,23 +321,21 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
325
321
|
type: "boolean";
|
|
326
322
|
value: boolean;
|
|
327
323
|
}), unknown>>;
|
|
328
|
-
options: z.ZodIntersection<z.ZodIntersection<z.
|
|
324
|
+
options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
329
325
|
hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
330
|
-
|
|
326
|
+
criteriaTreeElementTextFormat: z.ZodString;
|
|
327
|
+
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
328
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
331
329
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
332
|
-
breadcrumbTextFormat: z.
|
|
330
|
+
breadcrumbTextFormat: z.ZodNever;
|
|
333
331
|
}, z.core.$strip>, z.ZodObject<{
|
|
334
|
-
hideFromBreadcrumbs: z.
|
|
332
|
+
hideFromBreadcrumbs: z.ZodLiteral<false>;
|
|
335
333
|
breadcrumbTextFormat: z.ZodString;
|
|
336
|
-
}, z.core.$strip>]>>, z.
|
|
334
|
+
}, z.core.$strip>], "hideFromBreadcrumbs">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
337
335
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
338
|
-
documentTreeFolderTextFormat: z.
|
|
336
|
+
documentTreeFolderTextFormat: z.ZodNever;
|
|
339
337
|
}, z.core.$strip>, z.ZodObject<{
|
|
340
|
-
hideFromDocumentTree: z.
|
|
338
|
+
hideFromDocumentTree: z.ZodLiteral<false>;
|
|
341
339
|
documentTreeFolderTextFormat: z.ZodString;
|
|
342
|
-
}, z.core.$strip>]
|
|
343
|
-
criteriaTreeElementTextFormat: z.ZodString;
|
|
344
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
345
|
-
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
346
|
-
}, z.core.$strip>>;
|
|
340
|
+
}, z.core.$strip>], "hideFromDocumentTree">>;
|
|
347
341
|
}, z.core.$strip>;
|
|
@@ -12,10 +12,10 @@ exports.criterionOptionsSchema = zod_1.z
|
|
|
12
12
|
.default(false)
|
|
13
13
|
.describe("Whether to hide the criterion code in the generated PDF report"),
|
|
14
14
|
})
|
|
15
|
+
.extend(common_1.criteriaTreeOptionsSchema.shape)
|
|
16
|
+
.extend(common_1.reportOptionsSchema.shape)
|
|
15
17
|
.and(common_1.breadcrumbOptionsSchema)
|
|
16
18
|
.and(common_1.documentTreeOptionsSchema)
|
|
17
|
-
.and(common_1.criteriaTreeOptionsSchema)
|
|
18
|
-
.and(common_1.reportOptionsSchema)
|
|
19
19
|
.describe("CriterionOptions - Configuration options for criterion display and behavior");
|
|
20
20
|
exports.criterionSchema = common_1.abstractElementSchema
|
|
21
21
|
.extend({
|
|
@@ -222,14 +222,12 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
222
222
|
type: "boolean";
|
|
223
223
|
value: boolean;
|
|
224
224
|
}), unknown>>;
|
|
225
|
-
options: z.
|
|
225
|
+
options: z.ZodObject<{
|
|
226
226
|
breadcrumbTextFormat: z.ZodString;
|
|
227
227
|
documentTreeFolderTextFormat: z.ZodString;
|
|
228
228
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
229
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
230
229
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
231
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
232
230
|
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
233
|
-
}, z.core.$strip
|
|
231
|
+
}, z.core.$strip>;
|
|
234
232
|
}, z.core.$strip>>>;
|
|
235
233
|
}, z.core.$strip>;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const taskOptionsSchema: z.
|
|
2
|
+
export declare const taskOptionsSchema: z.ZodObject<{
|
|
3
3
|
breadcrumbTextFormat: z.ZodString;
|
|
4
4
|
documentTreeFolderTextFormat: z.ZodString;
|
|
5
5
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7
6
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
8
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
9
7
|
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, z.core.$strip
|
|
8
|
+
}, z.core.$strip>;
|
|
11
9
|
export declare const taskSchema: z.ZodObject<{
|
|
12
10
|
title: z.ZodString;
|
|
13
11
|
longFormTitle: z.ZodString;
|
|
@@ -207,13 +205,11 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
207
205
|
type: "boolean";
|
|
208
206
|
value: boolean;
|
|
209
207
|
}), unknown>>;
|
|
210
|
-
options: z.
|
|
208
|
+
options: z.ZodObject<{
|
|
211
209
|
breadcrumbTextFormat: z.ZodString;
|
|
212
210
|
documentTreeFolderTextFormat: z.ZodString;
|
|
213
211
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
214
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
215
212
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
216
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
217
213
|
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
218
|
-
}, z.core.$strip
|
|
214
|
+
}, z.core.$strip>;
|
|
219
215
|
}, z.core.$strip>;
|
package/dist/v1/schemas/task.js
CHANGED
|
@@ -18,8 +18,8 @@ exports.taskOptionsSchema = zod_1.z
|
|
|
18
18
|
.default(false)
|
|
19
19
|
.describe("Whether the title of the indicator task view should show the task code, or the hardcoded description text"),
|
|
20
20
|
})
|
|
21
|
-
.
|
|
22
|
-
.
|
|
21
|
+
.extend(common_1.criteriaTreeOptionsSchema.shape)
|
|
22
|
+
.extend(common_1.reportOptionsSchema.shape)
|
|
23
23
|
.describe("TaskOptions - Configuration options for task display and behavior");
|
|
24
24
|
exports.taskSchema = common_1.abstractElementSchema.extend({
|
|
25
25
|
type: zod_1.z.literal("task").describe("Identifies the schema type as a task"),
|
|
@@ -11,23 +11,22 @@ export declare const themeStyleSchema: z.ZodObject<{
|
|
|
11
11
|
blue: z.ZodNumber;
|
|
12
12
|
}, z.core.$strip>]>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
|
-
export declare const themeOptionsSchema: z.ZodIntersection<z.ZodIntersection<z.
|
|
14
|
+
export declare const themeOptionsSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
15
15
|
hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
16
|
-
|
|
16
|
+
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
17
18
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
18
|
-
breadcrumbTextFormat: z.
|
|
19
|
+
breadcrumbTextFormat: z.ZodNever;
|
|
19
20
|
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
hideFromBreadcrumbs: z.
|
|
21
|
+
hideFromBreadcrumbs: z.ZodLiteral<false>;
|
|
21
22
|
breadcrumbTextFormat: z.ZodString;
|
|
22
|
-
}, z.core.$strip>]>>, z.
|
|
23
|
+
}, z.core.$strip>], "hideFromBreadcrumbs">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23
24
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
24
|
-
documentTreeFolderTextFormat: z.
|
|
25
|
+
documentTreeFolderTextFormat: z.ZodNever;
|
|
25
26
|
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
hideFromDocumentTree: z.
|
|
27
|
+
hideFromDocumentTree: z.ZodLiteral<false>;
|
|
27
28
|
documentTreeFolderTextFormat: z.ZodString;
|
|
28
|
-
}, z.core.$strip>]
|
|
29
|
-
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
30
|
-
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>], "hideFromDocumentTree">>;
|
|
31
30
|
export declare const themeSchema: z.ZodObject<{
|
|
32
31
|
title: z.ZodString;
|
|
33
32
|
longFormTitle: z.ZodString;
|
|
@@ -307,15 +306,13 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
307
306
|
type: "boolean";
|
|
308
307
|
value: boolean;
|
|
309
308
|
}), unknown>>;
|
|
310
|
-
options: z.
|
|
309
|
+
options: z.ZodObject<{
|
|
311
310
|
breadcrumbTextFormat: z.ZodString;
|
|
312
311
|
documentTreeFolderTextFormat: z.ZodString;
|
|
313
312
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
314
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
315
313
|
criteriaTreeElementTextFormat: z.ZodString;
|
|
316
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
317
314
|
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
318
|
-
}, z.core.$strip
|
|
315
|
+
}, z.core.$strip>;
|
|
319
316
|
}, z.core.$strip>>>;
|
|
320
317
|
}, z.core.$strip>>>;
|
|
321
318
|
data: z.ZodType<{
|
|
@@ -369,25 +366,23 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
369
366
|
type: "boolean";
|
|
370
367
|
value: boolean;
|
|
371
368
|
}), unknown>>;
|
|
372
|
-
options: z.ZodIntersection<z.ZodIntersection<z.
|
|
369
|
+
options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
373
370
|
hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
374
|
-
|
|
371
|
+
criteriaTreeElementTextFormat: z.ZodString;
|
|
372
|
+
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
373
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
375
374
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
376
|
-
breadcrumbTextFormat: z.
|
|
375
|
+
breadcrumbTextFormat: z.ZodNever;
|
|
377
376
|
}, z.core.$strip>, z.ZodObject<{
|
|
378
|
-
hideFromBreadcrumbs: z.
|
|
377
|
+
hideFromBreadcrumbs: z.ZodLiteral<false>;
|
|
379
378
|
breadcrumbTextFormat: z.ZodString;
|
|
380
|
-
}, z.core.$strip>]>>, z.
|
|
379
|
+
}, z.core.$strip>], "hideFromBreadcrumbs">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
381
380
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
382
|
-
documentTreeFolderTextFormat: z.
|
|
381
|
+
documentTreeFolderTextFormat: z.ZodNever;
|
|
383
382
|
}, z.core.$strip>, z.ZodObject<{
|
|
384
|
-
hideFromDocumentTree: z.
|
|
383
|
+
hideFromDocumentTree: z.ZodLiteral<false>;
|
|
385
384
|
documentTreeFolderTextFormat: z.ZodString;
|
|
386
|
-
}, z.core.$strip>]
|
|
387
|
-
criteriaTreeElementTextFormat: z.ZodString;
|
|
388
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
389
|
-
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
390
|
-
}, z.core.$strip>>;
|
|
385
|
+
}, z.core.$strip>], "hideFromDocumentTree">>;
|
|
391
386
|
}, z.core.$strip>>;
|
|
392
387
|
data: z.ZodType<{
|
|
393
388
|
text: string;
|
|
@@ -440,21 +435,20 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
440
435
|
type: "boolean";
|
|
441
436
|
value: boolean;
|
|
442
437
|
}), unknown>>;
|
|
443
|
-
options: z.ZodIntersection<z.ZodIntersection<z.
|
|
438
|
+
options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
444
439
|
hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
445
|
-
|
|
440
|
+
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
441
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
446
442
|
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
447
|
-
breadcrumbTextFormat: z.
|
|
443
|
+
breadcrumbTextFormat: z.ZodNever;
|
|
448
444
|
}, z.core.$strip>, z.ZodObject<{
|
|
449
|
-
hideFromBreadcrumbs: z.
|
|
445
|
+
hideFromBreadcrumbs: z.ZodLiteral<false>;
|
|
450
446
|
breadcrumbTextFormat: z.ZodString;
|
|
451
|
-
}, z.core.$strip>]>>, z.
|
|
447
|
+
}, z.core.$strip>], "hideFromBreadcrumbs">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
452
448
|
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
453
|
-
documentTreeFolderTextFormat: z.
|
|
449
|
+
documentTreeFolderTextFormat: z.ZodNever;
|
|
454
450
|
}, z.core.$strip>, z.ZodObject<{
|
|
455
|
-
hideFromDocumentTree: z.
|
|
451
|
+
hideFromDocumentTree: z.ZodLiteral<false>;
|
|
456
452
|
documentTreeFolderTextFormat: z.ZodString;
|
|
457
|
-
}, z.core.$strip>]
|
|
458
|
-
reportTitleTextFormat: z.ZodOptional<z.ZodString>;
|
|
459
|
-
}, z.core.$strip>>;
|
|
453
|
+
}, z.core.$strip>], "hideFromDocumentTree">>;
|
|
460
454
|
}, z.core.$strip>;
|
package/dist/v1/schemas/theme.js
CHANGED
|
@@ -18,9 +18,9 @@ exports.themeOptionsSchema = zod_1.z
|
|
|
18
18
|
.default(false)
|
|
19
19
|
.describe("Whether to hide the theme code in the generated PDF report"),
|
|
20
20
|
})
|
|
21
|
+
.extend(common_1.reportOptionsSchema.shape)
|
|
21
22
|
.and(common_1.breadcrumbOptionsSchema)
|
|
22
23
|
.and(common_1.documentTreeOptionsSchema)
|
|
23
|
-
.and(common_1.reportOptionsSchema)
|
|
24
24
|
.describe("ThemeOptions - Configuration options for theme display and behavior");
|
|
25
25
|
exports.themeSchema = common_1.abstractElementSchema
|
|
26
26
|
.extend({
|
package/dist/v1/utils.js
CHANGED
|
@@ -101,6 +101,9 @@ exports.getCertificationsByValue = getCertificationsByValue;
|
|
|
101
101
|
* In all cases, the data should contain 'text' and 'readOnly' properties
|
|
102
102
|
*/
|
|
103
103
|
const validateData = (dataOrTreeElement) => {
|
|
104
|
+
if ("type" in dataOrTreeElement && dataOrTreeElement.type === "task-group") {
|
|
105
|
+
throw new Error("Task groups cannot have data");
|
|
106
|
+
}
|
|
104
107
|
if (("type" in dataOrTreeElement) && dataOrTreeElement.type === "task-item" && !("readOnly" in dataOrTreeElement)) {
|
|
105
108
|
throw new Error("Data is missing 'readOnly' property");
|
|
106
109
|
}
|
package/package.json
CHANGED