@openframe-org/criteria-set-protocol 2.0.0-beta.4 → 2.0.0-beta.6

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.
@@ -12,16 +12,7 @@ export declare const colorSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
12
12
  green: number;
13
13
  blue: number;
14
14
  }>]>;
15
- export declare const elementDataSchema: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
16
- value: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
17
- text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
18
- }, "strip", z.ZodTypeAny, {
19
- value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
20
- text?: string | undefined;
21
- }, {
22
- value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
23
- text?: string | undefined;
24
- }>>;
15
+ export declare const elementDataSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
25
16
  export declare const criteriaTreeElementTypeSchema: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
26
17
  export declare const abstractElementSchema: z.ZodObject<{
27
18
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
@@ -77,25 +68,13 @@ export declare const abstractElementSchema: z.ZodObject<{
77
68
  label: string;
78
69
  text: string;
79
70
  }>]>, "many">>;
80
- data: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
81
- value: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
82
- text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
83
- }, "strip", z.ZodTypeAny, {
84
- value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
85
- text?: string | undefined;
86
- }, {
87
- value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
88
- text?: string | undefined;
89
- }>>>;
71
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
90
72
  sortOrder: z.ZodOptional<z.ZodNumber>;
91
73
  }, "strip", z.ZodTypeAny, {
92
74
  type: "theme" | "criterion" | "task-group" | "task" | "task-item";
93
75
  code: string;
94
76
  title: string;
95
- data?: (Record<string, any> & {
96
- value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
97
- text?: string | undefined;
98
- }) | undefined;
77
+ data?: Record<string, any> | undefined;
99
78
  tags?: string[] | undefined;
100
79
  documentation?: ({
101
80
  type: "pdf";
@@ -117,10 +96,7 @@ export declare const abstractElementSchema: z.ZodObject<{
117
96
  type: "theme" | "criterion" | "task-group" | "task" | "task-item";
118
97
  code: string;
119
98
  title: string;
120
- data?: (Record<string, any> & {
121
- value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
122
- text?: string | undefined;
123
- }) | undefined;
99
+ data?: Record<string, any> | undefined;
124
100
  tags?: string[] | undefined;
125
101
  documentation?: ({
126
102
  type: "pdf";
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.abstractElementSchema = exports.criteriaTreeElementTypeSchema = exports.elementDataSchema = exports.colorSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const task_item_1 = require("./task-item");
6
5
  const documentation_1 = require("./documentation");
7
6
  exports.colorSchema = zod_1.z.union([
8
7
  zod_1.z.string(),
@@ -12,12 +11,7 @@ exports.colorSchema = zod_1.z.union([
12
11
  blue: zod_1.z.number(),
13
12
  }),
14
13
  ]);
15
- exports.elementDataSchema = zod_1.z.intersection(zod_1.z.record(zod_1.z.string(), zod_1.z.any()), zod_1.z
16
- .object({
17
- value: task_item_1.taskItemValueSchema,
18
- text: zod_1.z.string().optional(),
19
- })
20
- .partial());
14
+ exports.elementDataSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
21
15
  exports.criteriaTreeElementTypeSchema = zod_1.z.enum([
22
16
  "theme",
23
17
  "criterion",