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

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.
@@ -13,13 +13,13 @@ export declare const colorSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
13
13
  blue: number;
14
14
  }>]>;
15
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">]>>;
16
+ value: z.ZodOptional<z.ZodAny>;
17
17
  text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
19
+ value?: any;
20
20
  text?: string | undefined;
21
21
  }, {
22
- value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
22
+ value?: any;
23
23
  text?: string | undefined;
24
24
  }>>;
25
25
  export declare const criteriaTreeElementTypeSchema: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
@@ -78,13 +78,13 @@ export declare const abstractElementSchema: z.ZodObject<{
78
78
  text: string;
79
79
  }>]>, "many">>;
80
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">]>>;
81
+ value: z.ZodOptional<z.ZodAny>;
82
82
  text: z.ZodOptional<z.ZodOptional<z.ZodString>>;
83
83
  }, "strip", z.ZodTypeAny, {
84
- value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
84
+ value?: any;
85
85
  text?: string | undefined;
86
86
  }, {
87
- value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
87
+ value?: any;
88
88
  text?: string | undefined;
89
89
  }>>>;
90
90
  sortOrder: z.ZodOptional<z.ZodNumber>;
@@ -93,7 +93,7 @@ export declare const abstractElementSchema: z.ZodObject<{
93
93
  code: string;
94
94
  title: string;
95
95
  data?: (Record<string, any> & {
96
- value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
96
+ value?: any;
97
97
  text?: string | undefined;
98
98
  }) | undefined;
99
99
  tags?: string[] | undefined;
@@ -118,7 +118,7 @@ export declare const abstractElementSchema: z.ZodObject<{
118
118
  code: string;
119
119
  title: string;
120
120
  data?: (Record<string, any> & {
121
- value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
121
+ value?: any;
122
122
  text?: string | undefined;
123
123
  }) | undefined;
124
124
  tags?: string[] | undefined;
@@ -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(),
@@ -14,7 +13,7 @@ exports.colorSchema = zod_1.z.union([
14
13
  ]);
15
14
  exports.elementDataSchema = zod_1.z.intersection(zod_1.z.record(zod_1.z.string(), zod_1.z.any()), zod_1.z
16
15
  .object({
17
- value: task_item_1.taskItemValueSchema,
16
+ value: zod_1.z.any(),
18
17
  text: zod_1.z.string().optional(),
19
18
  })
20
19
  .partial());