@openframe-org/criteria-set-protocol 2.5.0 → 3.0.0-alpha.3

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.
@@ -3,70 +3,112 @@ export declare const certificationDefinitionTypeSchema: z.ZodEnum<{
3
3
  number: "number";
4
4
  percentage: "percentage";
5
5
  }>;
6
- export declare const numberBasedCertificationDefinitionRulesSchema: z.ZodObject<{
7
- minimum: z.ZodOptional<z.ZodNumber>;
8
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
9
- maximum: z.ZodOptional<z.ZodNumber>;
10
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
11
- }, z.core.$strip>;
12
- export declare const percentageBasedCertificationDefinitionRulesSchema: z.ZodObject<{
13
- minimum: z.ZodOptional<z.ZodNumber>;
14
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
15
- maximum: z.ZodOptional<z.ZodNumber>;
16
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
17
- }, z.core.$strip>;
6
+ export declare const numberBasedCertificationDefinitionRulesSchema: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
7
+ minimum: z.ZodNullable<z.ZodNumber>;
8
+ exclusiveMinimum: z.ZodOptional<z.ZodNever>;
9
+ }, z.core.$strip>, z.ZodObject<{
10
+ minimum: z.ZodOptional<z.ZodNever>;
11
+ exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
12
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
13
+ maximum: z.ZodNullable<z.ZodNumber>;
14
+ exclusiveMaximum: z.ZodOptional<z.ZodNever>;
15
+ }, z.core.$strip>, z.ZodObject<{
16
+ maximum: z.ZodOptional<z.ZodNever>;
17
+ exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
18
+ }, z.core.$strip>]>>;
19
+ export declare const percentageBasedCertificationDefinitionRulesSchema: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
20
+ minimum: z.ZodNullable<z.ZodNumber>;
21
+ exclusiveMinimum: z.ZodOptional<z.ZodNever>;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ minimum: z.ZodOptional<z.ZodNever>;
24
+ exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
25
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
26
+ maximum: z.ZodNullable<z.ZodNumber>;
27
+ exclusiveMaximum: z.ZodOptional<z.ZodNever>;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ maximum: z.ZodOptional<z.ZodNever>;
30
+ exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
31
+ }, z.core.$strip>]>>;
18
32
  export declare const numberBasedCertificationDefinitionSchema: z.ZodObject<{
19
33
  code: z.ZodString;
20
- icon: z.ZodOptional<z.ZodString>;
34
+ icon: z.ZodNullable<z.ZodString>;
21
35
  name: z.ZodString;
22
- description: z.ZodOptional<z.ZodString>;
36
+ description: z.ZodNullable<z.ZodString>;
23
37
  rulesText: z.ZodString;
24
38
  type: z.ZodLiteral<"number">;
25
- rules: z.ZodObject<{
26
- minimum: z.ZodOptional<z.ZodNumber>;
27
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
28
- maximum: z.ZodOptional<z.ZodNumber>;
29
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
30
- }, z.core.$strip>;
39
+ rules: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
40
+ minimum: z.ZodNullable<z.ZodNumber>;
41
+ exclusiveMinimum: z.ZodOptional<z.ZodNever>;
42
+ }, z.core.$strip>, z.ZodObject<{
43
+ minimum: z.ZodOptional<z.ZodNever>;
44
+ exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
45
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
46
+ maximum: z.ZodNullable<z.ZodNumber>;
47
+ exclusiveMaximum: z.ZodOptional<z.ZodNever>;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ maximum: z.ZodOptional<z.ZodNever>;
50
+ exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
51
+ }, z.core.$strip>]>>;
31
52
  }, z.core.$strip>;
32
53
  export declare const percentageBasedCertificationDefinitionSchema: z.ZodObject<{
33
54
  code: z.ZodString;
34
- icon: z.ZodOptional<z.ZodString>;
55
+ icon: z.ZodNullable<z.ZodString>;
35
56
  name: z.ZodString;
36
- description: z.ZodOptional<z.ZodString>;
57
+ description: z.ZodNullable<z.ZodString>;
37
58
  rulesText: z.ZodString;
38
59
  type: z.ZodLiteral<"percentage">;
39
- rules: z.ZodObject<{
40
- minimum: z.ZodOptional<z.ZodNumber>;
41
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
42
- maximum: z.ZodOptional<z.ZodNumber>;
43
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
44
- }, z.core.$strip>;
60
+ rules: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
61
+ minimum: z.ZodNullable<z.ZodNumber>;
62
+ exclusiveMinimum: z.ZodOptional<z.ZodNever>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ minimum: z.ZodOptional<z.ZodNever>;
65
+ exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
66
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
67
+ maximum: z.ZodNullable<z.ZodNumber>;
68
+ exclusiveMaximum: z.ZodOptional<z.ZodNever>;
69
+ }, z.core.$strip>, z.ZodObject<{
70
+ maximum: z.ZodOptional<z.ZodNever>;
71
+ exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
72
+ }, z.core.$strip>]>>;
45
73
  }, z.core.$strip>;
46
74
  export declare const certificationDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
47
75
  code: z.ZodString;
48
- icon: z.ZodOptional<z.ZodString>;
76
+ icon: z.ZodNullable<z.ZodString>;
49
77
  name: z.ZodString;
50
- description: z.ZodOptional<z.ZodString>;
78
+ description: z.ZodNullable<z.ZodString>;
51
79
  rulesText: z.ZodString;
52
80
  type: z.ZodLiteral<"number">;
53
- rules: z.ZodObject<{
54
- minimum: z.ZodOptional<z.ZodNumber>;
55
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
56
- maximum: z.ZodOptional<z.ZodNumber>;
57
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
58
- }, z.core.$strip>;
81
+ rules: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
82
+ minimum: z.ZodNullable<z.ZodNumber>;
83
+ exclusiveMinimum: z.ZodOptional<z.ZodNever>;
84
+ }, z.core.$strip>, z.ZodObject<{
85
+ minimum: z.ZodOptional<z.ZodNever>;
86
+ exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
87
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
88
+ maximum: z.ZodNullable<z.ZodNumber>;
89
+ exclusiveMaximum: z.ZodOptional<z.ZodNever>;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ maximum: z.ZodOptional<z.ZodNever>;
92
+ exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
93
+ }, z.core.$strip>]>>;
59
94
  }, z.core.$strip>, z.ZodObject<{
60
95
  code: z.ZodString;
61
- icon: z.ZodOptional<z.ZodString>;
96
+ icon: z.ZodNullable<z.ZodString>;
62
97
  name: z.ZodString;
63
- description: z.ZodOptional<z.ZodString>;
98
+ description: z.ZodNullable<z.ZodString>;
64
99
  rulesText: z.ZodString;
65
100
  type: z.ZodLiteral<"percentage">;
66
- rules: z.ZodObject<{
67
- minimum: z.ZodOptional<z.ZodNumber>;
68
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
69
- maximum: z.ZodOptional<z.ZodNumber>;
70
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
71
- }, z.core.$strip>;
101
+ rules: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
102
+ minimum: z.ZodNullable<z.ZodNumber>;
103
+ exclusiveMinimum: z.ZodOptional<z.ZodNever>;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ minimum: z.ZodOptional<z.ZodNever>;
106
+ exclusiveMinimum: z.ZodNullable<z.ZodNumber>;
107
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
108
+ maximum: z.ZodNullable<z.ZodNumber>;
109
+ exclusiveMaximum: z.ZodOptional<z.ZodNever>;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ maximum: z.ZodOptional<z.ZodNever>;
112
+ exclusiveMaximum: z.ZodNullable<z.ZodNumber>;
113
+ }, z.core.$strip>]>>;
72
114
  }, z.core.$strip>], "type">;
@@ -5,13 +5,33 @@ const zod_1 = require("zod");
5
5
  exports.certificationDefinitionTypeSchema = zod_1.z
6
6
  .enum(["number", "percentage"])
7
7
  .describe("CertificationDefinitionType");
8
- exports.numberBasedCertificationDefinitionRulesSchema = zod_1.z
9
- .object({
10
- minimum: zod_1.z.number().optional(),
11
- exclusiveMinimum: zod_1.z.number().optional(),
12
- maximum: zod_1.z.number().optional(),
13
- exclusiveMaximum: zod_1.z.number().optional(),
14
- })
8
+ const minimumOrExclusiveMinimum = zod_1.z.union([zod_1.z.object({
9
+ minimum: zod_1.z
10
+ .number()
11
+ .nullable()
12
+ .describe("Minimum value for the certification"),
13
+ exclusiveMinimum: zod_1.z.never().optional(),
14
+ }), zod_1.z.object({
15
+ minimum: zod_1.z.never().optional(),
16
+ exclusiveMinimum: zod_1.z
17
+ .number()
18
+ .nullable()
19
+ .describe("Exclusive minimum value for the certification"),
20
+ })]);
21
+ const maximumOrExclusiveMaximum = zod_1.z.union([zod_1.z.object({
22
+ maximum: zod_1.z
23
+ .number()
24
+ .nullable()
25
+ .describe("Maximum value for the certification"),
26
+ exclusiveMaximum: zod_1.z.never().optional(),
27
+ }), zod_1.z.object({
28
+ maximum: zod_1.z.never().optional(),
29
+ exclusiveMaximum: zod_1.z
30
+ .number()
31
+ .nullable()
32
+ .describe("Exclusive maximum value for the certification"),
33
+ })]);
34
+ exports.numberBasedCertificationDefinitionRulesSchema = zod_1.z.intersection(minimumOrExclusiveMinimum, maximumOrExclusiveMaximum)
15
35
  .describe("NumberBasedCertificationDefinitionRules");
16
36
  exports.percentageBasedCertificationDefinitionRulesSchema = exports.numberBasedCertificationDefinitionRulesSchema.describe("PercentageBasedCertificationDefinitionRules");
17
37
  const abstractCertificationDefinitionSchema = zod_1.z
@@ -22,12 +42,12 @@ const abstractCertificationDefinitionSchema = zod_1.z
22
42
  .describe("Unique identifier code for the certification, such as 'platinum' or 'ecolabel'"),
23
43
  icon: zod_1.z
24
44
  .string()
25
- .optional()
45
+ .nullable()
26
46
  .describe("Optional icon URL for the certification"),
27
47
  name: zod_1.z.string().describe("Display name of the certification"),
28
48
  description: zod_1.z
29
49
  .string()
30
- .optional()
50
+ .nullable()
31
51
  .describe("Optional detailed description of the certification"),
32
52
  rulesText: zod_1.z
33
53
  .string()
@@ -7,19 +7,17 @@ export declare const colorSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<
7
7
  export declare const taskItemScalarValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
8
8
  export declare const taskItemValueSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
9
9
  export declare const elementDataSchema: z.ZodObject<{
10
- type: z.ZodOptional<z.ZodEnum<{
10
+ type: z.ZodNullable<z.ZodEnum<{
11
11
  number: "number";
12
12
  boolean: "boolean";
13
13
  percentage: "percentage";
14
14
  }>>;
15
- value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
16
- text: z.ZodOptional<z.ZodString>;
17
- total: z.ZodOptional<z.ZodNumber>;
18
- maximumValue: z.ZodOptional<z.ZodNumber>;
19
- minimumValue: z.ZodOptional<z.ZodNumber>;
20
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
21
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
22
- weight: z.ZodOptional<z.ZodNumber>;
15
+ value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
16
+ text: z.ZodNullable<z.ZodString>;
17
+ total: z.ZodNullable<z.ZodNumber>;
18
+ maximumValue: z.ZodNullable<z.ZodNumber>;
19
+ minimumValue: z.ZodNullable<z.ZodNumber>;
20
+ weight: z.ZodNullable<z.ZodNumber>;
23
21
  }, z.core.$catchall<z.ZodAny>>;
24
22
  export declare const criteriaTreeElementTypeSchema: z.ZodEnum<{
25
23
  theme: "theme";
@@ -39,8 +37,8 @@ export declare const abstractElementSchema: z.ZodObject<{
39
37
  title: z.ZodString;
40
38
  longFormTitle: z.ZodString;
41
39
  code: z.ZodString;
42
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
- documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
40
+ tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
41
+ documentation: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
44
42
  label: z.ZodString;
45
43
  text: z.ZodString;
46
44
  type: z.ZodLiteral<"pdf">;
@@ -55,55 +53,51 @@ export declare const abstractElementSchema: z.ZodObject<{
55
53
  type: z.ZodLiteral<"link">;
56
54
  url: z.ZodString;
57
55
  }, z.core.$strip>], "type">>>;
58
- data: z.ZodOptional<z.ZodObject<{
59
- type: z.ZodOptional<z.ZodEnum<{
56
+ data: z.ZodNullable<z.ZodObject<{
57
+ type: z.ZodNullable<z.ZodEnum<{
60
58
  number: "number";
61
59
  boolean: "boolean";
62
60
  percentage: "percentage";
63
61
  }>>;
64
- value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
65
- text: z.ZodOptional<z.ZodString>;
66
- total: z.ZodOptional<z.ZodNumber>;
67
- maximumValue: z.ZodOptional<z.ZodNumber>;
68
- minimumValue: z.ZodOptional<z.ZodNumber>;
69
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
70
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
71
- weight: z.ZodOptional<z.ZodNumber>;
62
+ value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
63
+ text: z.ZodNullable<z.ZodString>;
64
+ total: z.ZodNullable<z.ZodNumber>;
65
+ maximumValue: z.ZodNullable<z.ZodNumber>;
66
+ minimumValue: z.ZodNullable<z.ZodNumber>;
67
+ weight: z.ZodNullable<z.ZodNumber>;
72
68
  }, z.core.$catchall<z.ZodAny>>>;
73
- sortOrder: z.ZodOptional<z.ZodNumber>;
69
+ sortOrder: z.ZodNullable<z.ZodNumber>;
74
70
  }, z.core.$strip>;
75
71
  export declare const breadcrumbOptionsSchema: z.ZodUnion<[z.ZodObject<{
76
72
  hideFromBreadcrumbs: z.ZodLiteral<true>;
77
- breadcrumbTextFormat: z.ZodOptional<z.ZodNever>;
73
+ breadcrumbTextFormat: z.ZodNullable<z.ZodNever>;
78
74
  }, z.core.$strip>, z.ZodObject<{
79
- hideFromBreadcrumbs: z.ZodDefault<z.ZodOptional<z.ZodLiteral<false>>>;
75
+ hideFromBreadcrumbs: z.ZodDefault<z.ZodNullable<z.ZodLiteral<false>>>;
80
76
  breadcrumbTextFormat: z.ZodString;
81
77
  }, z.core.$strip>]>;
82
78
  export declare const documentTreeOptionsSchema: z.ZodUnion<[z.ZodObject<{
83
79
  hideFromDocumentTree: z.ZodLiteral<true>;
84
- documentTreeFolderTextFormat: z.ZodOptional<z.ZodNever>;
80
+ documentTreeFolderTextFormat: z.ZodNullable<z.ZodNever>;
85
81
  }, z.core.$strip>, z.ZodObject<{
86
- hideFromDocumentTree: z.ZodOptional<z.ZodLiteral<false>>;
82
+ hideFromDocumentTree: z.ZodNullable<z.ZodLiteral<false>>;
87
83
  documentTreeFolderTextFormat: z.ZodString;
88
84
  }, z.core.$strip>]>;
89
85
  export declare const criteriaTreeOptionsSchema: z.ZodObject<{
90
86
  criteriaTreeElementTextFormat: z.ZodString;
91
87
  }, z.core.$strip>;
92
88
  export declare const reportOptionsSchema: z.ZodObject<{
93
- reportTitleTextFormat: z.ZodOptional<z.ZodString>;
89
+ reportTitleTextFormat: z.ZodNullable<z.ZodString>;
94
90
  }, z.core.$strip>;
95
91
  export declare const treeResultSchema: z.ZodObject<{
96
- type: z.ZodOptional<z.ZodEnum<{
92
+ type: z.ZodNullable<z.ZodEnum<{
97
93
  number: "number";
98
94
  boolean: "boolean";
99
95
  percentage: "percentage";
100
96
  }>>;
101
- value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
102
- text: z.ZodOptional<z.ZodString>;
103
- total: z.ZodOptional<z.ZodNumber>;
104
- maximumValue: z.ZodOptional<z.ZodNumber>;
105
- minimumValue: z.ZodOptional<z.ZodNumber>;
106
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
107
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
108
- weight: z.ZodOptional<z.ZodNumber>;
97
+ value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
98
+ text: z.ZodNullable<z.ZodString>;
99
+ total: z.ZodNullable<z.ZodNumber>;
100
+ maximumValue: z.ZodNullable<z.ZodNumber>;
101
+ minimumValue: z.ZodNullable<z.ZodNumber>;
102
+ weight: z.ZodNullable<z.ZodNumber>;
109
103
  }, z.core.$catchall<z.ZodAny>>;
@@ -24,31 +24,23 @@ exports.elementDataSchema = zod_1.z
24
24
  .object({
25
25
  type: zod_1.z
26
26
  .enum(["number", "percentage", "boolean"])
27
- .optional()
27
+ .nullable()
28
28
  .describe("Type of data"),
29
- value: zod_1.z.number().or(zod_1.z.boolean()).optional().describe("Value of the element"),
30
- text: zod_1.z.string().optional().describe("Text representation of the value"),
29
+ value: zod_1.z.number().or(zod_1.z.boolean()).nullable().describe("Value of the element"),
30
+ text: zod_1.z.string().nullable().describe("Text representation of the value"),
31
31
  total: zod_1.z
32
32
  .number()
33
- .optional()
33
+ .nullable()
34
34
  .describe("Total value, understood as 'value'/'total'"),
35
35
  maximumValue: zod_1.z
36
36
  .number()
37
- .optional()
38
- .describe("Maximum allowed value (inclusive)"),
37
+ .nullable()
38
+ .describe("Maximum allowed value"),
39
39
  minimumValue: zod_1.z
40
40
  .number()
41
- .optional()
42
- .describe("Minimum allowed value (inclusive)"),
43
- exclusiveMaximum: zod_1.z
44
- .number()
45
- .optional()
46
- .describe("Maximum allowed value (exclusive)"),
47
- exclusiveMinimum: zod_1.z
48
- .number()
49
- .optional()
50
- .describe("Minimum allowed value (exclusive)"),
51
- weight: zod_1.z.number().optional().describe("Weight of the element")
41
+ .nullable()
42
+ .describe("Minimum allowed value"),
43
+ weight: zod_1.z.number().nullable().describe("Weight of the element")
52
44
  })
53
45
  .catchall(zod_1.z.any())
54
46
  .describe("ElementData - Element data containing value constraints and metadata");
@@ -63,16 +55,16 @@ exports.abstractElementSchema = zod_1.z
63
55
  code: zod_1.z.string().describe("Unique identifier code"),
64
56
  tags: zod_1.z
65
57
  .array(zod_1.z.string())
66
- .optional()
58
+ .nullable()
67
59
  .describe("List of classification tags"),
68
60
  documentation: zod_1.z
69
61
  .array(documentation_1.documentationItemSchema)
70
- .optional()
62
+ .nullable()
71
63
  .describe("Associated documentation items"),
72
- data: exports.elementDataSchema.optional().describe("Element data"),
64
+ data: exports.elementDataSchema.nullable().describe("Element data"),
73
65
  sortOrder: zod_1.z
74
66
  .number()
75
- .optional()
67
+ .nullable()
76
68
  .describe("Custom sorting position within parent")
77
69
  })
78
70
  .describe("AbstractElement - Base schema for all tree elements");
@@ -81,12 +73,12 @@ exports.breadcrumbOptionsSchema = zod_1.z
81
73
  hideFromBreadcrumbs: zod_1.z
82
74
  .literal(true)
83
75
  .describe("Whether to hide the element from the breadcrumbs"),
84
- breadcrumbTextFormat: zod_1.z.never().optional()
76
+ breadcrumbTextFormat: zod_1.z.never().nullable()
85
77
  })
86
78
  .or(zod_1.z.object({
87
79
  hideFromBreadcrumbs: zod_1.z
88
80
  .literal(false)
89
- .optional()
81
+ .nullable()
90
82
  .default(false)
91
83
  .describe("Whether to hide the element from the breadcrumbs"),
92
84
  breadcrumbTextFormat: zod_1.z
@@ -98,12 +90,12 @@ exports.documentTreeOptionsSchema = zod_1.z
98
90
  hideFromDocumentTree: zod_1.z
99
91
  .literal(true)
100
92
  .describe("Whether to hide the element from the document tree folder structure"),
101
- documentTreeFolderTextFormat: zod_1.z.never().optional()
93
+ documentTreeFolderTextFormat: zod_1.z.never().nullable()
102
94
  })
103
95
  .or(zod_1.z.object({
104
96
  hideFromDocumentTree: zod_1.z
105
97
  .literal(false)
106
- .optional()
98
+ .nullable()
107
99
  .describe("Whether to hide the element from the document tree folder structure"),
108
100
  documentTreeFolderTextFormat: zod_1.z
109
101
  .string()
@@ -119,7 +111,7 @@ exports.reportOptionsSchema = zod_1.z
119
111
  .object({
120
112
  reportTitleTextFormat: zod_1.z
121
113
  .string()
122
- .optional()
114
+ .nullable()
123
115
  .describe("The format of the report row text, use ':code:' and ':title:' to define where the code and/or title should be inserted, if not provided only the title will be rendered")
124
116
  });
125
117
  exports.treeResultSchema = exports.elementDataSchema.describe("TreeResult - The result of the evaluation of a criteria set");