@openframe-org/criteria-set-protocol 2.0.6 → 2.0.7-beta.1

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.
Files changed (35) hide show
  1. package/dist/v1/schemas/certification.d.ts +80 -80
  2. package/dist/v1/schemas/certification.js +6 -7
  3. package/dist/v1/schemas/common.d.ts +71 -140
  4. package/dist/v1/schemas/common.js +14 -15
  5. package/dist/v1/schemas/criteria-tree.d.ts +2466 -4285
  6. package/dist/v1/schemas/criteria-tree.js +1 -2
  7. package/dist/v1/schemas/criterion.d.ts +454 -795
  8. package/dist/v1/schemas/criterion.js +3 -4
  9. package/dist/v1/schemas/data-map.d.ts +2 -2
  10. package/dist/v1/schemas/data-map.js +1 -2
  11. package/dist/v1/schemas/index.d.ts +0 -1
  12. package/dist/v1/schemas/index.js +0 -1
  13. package/dist/v1/schemas/metadata.d.ts +18 -27
  14. package/dist/v1/schemas/metadata.js +6 -7
  15. package/dist/v1/schemas/request/matrix-body-schema.d.ts +9 -9
  16. package/dist/v1/schemas/request/matrix-body-schema.js +5 -6
  17. package/dist/v1/schemas/request/matrix-request-body-schema.d.ts +9 -9
  18. package/dist/v1/schemas/request/matrix-request-body-schema.js +5 -6
  19. package/dist/v1/schemas/request/tree-and-data-body-schema.d.ts +8 -8
  20. package/dist/v1/schemas/request/tree-and-data-body-schema.js +4 -5
  21. package/dist/v1/schemas/request/tree-and-data-request-body-schema.d.ts +8 -8
  22. package/dist/v1/schemas/request/tree-and-data-request-body-schema.js +4 -5
  23. package/dist/v1/schemas/response.d.ts +14 -23
  24. package/dist/v1/schemas/task-group.d.ts +324 -587
  25. package/dist/v1/schemas/task-group.js +4 -5
  26. package/dist/v1/schemas/task-item.d.ts +204 -314
  27. package/dist/v1/schemas/task-item.js +14 -15
  28. package/dist/v1/schemas/task.d.ts +213 -398
  29. package/dist/v1/schemas/task.js +3 -4
  30. package/dist/v1/schemas/theme.d.ts +602 -1035
  31. package/dist/v1/schemas/theme.js +3 -4
  32. package/dist/v1/schemas/utils.d.ts +1 -1
  33. package/dist/v1/schemas/utils.js +6 -4
  34. package/dist/v1/utils.d.ts +298 -298
  35. package/package.json +1 -1
@@ -4,13 +4,12 @@ exports.criterionSchema = exports.criterionOptionsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_group_1 = require("./task-group");
6
6
  const common_1 = require("./common");
7
- const utils_1 = require("./utils");
8
7
  exports.criterionOptionsSchema = zod_1.z.object({
9
- hideCode: (0, utils_1.optional)(zod_1.z.boolean()),
10
- hideFromHierarchy: (0, utils_1.optional)(zod_1.z.boolean()),
8
+ hideCode: zod_1.z.boolean().nullish(),
9
+ hideFromHierarchy: zod_1.z.boolean().nullish(),
11
10
  });
12
11
  exports.criterionSchema = common_1.abstractElementSchema.extend({
13
12
  type: zod_1.z.literal("criterion"),
14
13
  items: zod_1.z.array(zod_1.z.lazy(() => task_group_1.taskGroupSchema)),
15
- options: (0, utils_1.optional)(exports.criterionOptionsSchema),
14
+ options: exports.criterionOptionsSchema.nullish(),
16
15
  });
@@ -3,12 +3,12 @@ export declare const dataMapSchema: z.ZodObject<{
3
3
  version: z.ZodString;
4
4
  elements: z.ZodRecord<z.ZodString, z.ZodAny>;
5
5
  result: z.ZodAny;
6
- certifications: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>, string[] | undefined, string[] | null | undefined>, z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>>;
6
+ certifications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  elements: Record<string, any>;
9
9
  version: string;
10
10
  result?: any;
11
- certifications?: string[] | undefined;
11
+ certifications?: string[] | null | undefined;
12
12
  }, {
13
13
  elements: Record<string, any>;
14
14
  version: string;
@@ -2,10 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.dataMapSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const utils_1 = require("./utils");
6
5
  exports.dataMapSchema = zod_1.z.object({
7
6
  version: zod_1.z.string(),
8
7
  elements: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
9
8
  result: zod_1.z.any(),
10
- certifications: (0, utils_1.optional)(zod_1.z.array(zod_1.z.string())),
9
+ certifications: zod_1.z.array(zod_1.z.string()).nullish(),
11
10
  });
@@ -11,4 +11,3 @@ export * from "./task";
11
11
  export * from "./task-group";
12
12
  export * from "./task-item";
13
13
  export * from "./theme";
14
- export * from "./utils";
@@ -27,4 +27,3 @@ __exportStar(require("./task"), exports);
27
27
  __exportStar(require("./task-group"), exports);
28
28
  __exportStar(require("./task-item"), exports);
29
29
  __exportStar(require("./theme"), exports);
30
- __exportStar(require("./utils"), exports);
@@ -1,11 +1,11 @@
1
1
  import { z } from "zod";
2
2
  export declare const schemaDefinitionSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
3
3
  export declare const schemaDefinitionsSchema: z.ZodObject<{
4
- parameters: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>, Record<string, any> | undefined, Record<string, any> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
5
- result: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>, Record<string, any> | undefined, Record<string, any> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
4
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5
+ result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6
6
  }, "strip", z.ZodTypeAny, {
7
- parameters?: Record<string, any> | undefined;
8
- result?: Record<string, any> | undefined;
7
+ parameters?: Record<string, any> | null | undefined;
8
+ result?: Record<string, any> | null | undefined;
9
9
  }, {
10
10
  parameters?: Record<string, any> | null | undefined;
11
11
  result?: Record<string, any> | null | undefined;
@@ -16,25 +16,16 @@ export declare const metadataSchema: z.ZodObject<{
16
16
  date: z.ZodDate;
17
17
  name: z.ZodString;
18
18
  description: z.ZodString;
19
- documentation: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
20
- locales: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>, string[] | undefined, string[] | null | undefined>, z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>>;
21
- defaultLocale: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
22
- schemas: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
23
- parameters?: Record<string, any> | undefined;
24
- result?: Record<string, any> | undefined;
25
- }, z.ZodTypeDef, {
19
+ documentation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ locales: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
21
+ defaultLocale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ schemas: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
24
+ result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
25
+ }, "strip", z.ZodTypeAny, {
26
26
  parameters?: Record<string, any> | null | undefined;
27
27
  result?: Record<string, any> | null | undefined;
28
- }>>>, {
29
- parameters?: Record<string, any> | undefined;
30
- result?: Record<string, any> | undefined;
31
- } | undefined, {
32
- parameters?: Record<string, any> | null | undefined;
33
- result?: Record<string, any> | null | undefined;
34
- } | null | undefined>, z.ZodOptional<z.ZodType<{
35
- parameters?: Record<string, any> | undefined;
36
- result?: Record<string, any> | undefined;
37
- }, z.ZodTypeDef, {
28
+ }, {
38
29
  parameters?: Record<string, any> | null | undefined;
39
30
  result?: Record<string, any> | null | undefined;
40
31
  }>>>;
@@ -44,13 +35,13 @@ export declare const metadataSchema: z.ZodObject<{
44
35
  description: string;
45
36
  date: Date;
46
37
  version: string;
47
- documentation?: string | undefined;
48
- locales?: string[] | undefined;
49
- defaultLocale?: string | undefined;
38
+ documentation?: string | null | undefined;
39
+ locales?: string[] | null | undefined;
40
+ defaultLocale?: string | null | undefined;
50
41
  schemas?: {
51
- parameters?: Record<string, any> | undefined;
52
- result?: Record<string, any> | undefined;
53
- } | undefined;
42
+ parameters?: Record<string, any> | null | undefined;
43
+ result?: Record<string, any> | null | undefined;
44
+ } | null | undefined;
54
45
  }, {
55
46
  id: string;
56
47
  name: string;
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.metadataSchema = exports.schemaDefinitionsSchema = exports.schemaDefinitionSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const utils_1 = require("./utils");
6
5
  exports.schemaDefinitionSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
7
6
  exports.schemaDefinitionsSchema = zod_1.z.object({
8
- parameters: (0, utils_1.optional)(exports.schemaDefinitionSchema),
9
- result: (0, utils_1.optional)(exports.schemaDefinitionSchema),
7
+ parameters: exports.schemaDefinitionSchema.nullish(),
8
+ result: exports.schemaDefinitionSchema.nullish(),
10
9
  });
11
10
  exports.metadataSchema = zod_1.z.object({
12
11
  id: zod_1.z.string(),
@@ -14,8 +13,8 @@ exports.metadataSchema = zod_1.z.object({
14
13
  date: zod_1.z.date(),
15
14
  name: zod_1.z.string(),
16
15
  description: zod_1.z.string(),
17
- documentation: (0, utils_1.optional)(zod_1.z.string()),
18
- locales: (0, utils_1.optional)(zod_1.z.array(zod_1.z.string())),
19
- defaultLocale: (0, utils_1.optional)(zod_1.z.string()),
20
- schemas: (0, utils_1.optional)(exports.schemaDefinitionsSchema),
16
+ documentation: zod_1.z.string().nullish(),
17
+ locales: zod_1.z.array(zod_1.z.string()).nullish(),
18
+ defaultLocale: zod_1.z.string().nullish(),
19
+ schemas: exports.schemaDefinitionsSchema.nullish(),
21
20
  });
@@ -2,19 +2,19 @@ import { z } from "zod";
2
2
  /**
3
3
  * Validates the request body for the matrix endpoints
4
4
  */
5
- export declare const matrixBodySchema: z.ZodOptional<z.ZodObject<{
6
- locale: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
7
- parameters: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>, Record<string, any> | undefined, Record<string, any> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
8
- values: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>;
9
- additional: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>, any, any>, z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>>;
5
+ export declare const matrixBodySchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
8
+ values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, 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">]>>>>;
9
+ additional: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
12
- locale?: string | undefined;
13
- parameters?: Record<string, any> | undefined;
11
+ values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
12
+ locale?: string | null | undefined;
13
+ parameters?: Record<string, any> | null | undefined;
14
14
  additional?: any;
15
15
  }, {
16
16
  values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
17
17
  locale?: string | null | undefined;
18
18
  parameters?: Record<string, any> | null | undefined;
19
19
  additional?: any;
20
- }>>;
20
+ }>>>;
@@ -3,15 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.matrixBodySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_item_1 = require("../task-item");
6
- const utils_1 = require("../utils");
7
6
  /**
8
7
  * Validates the request body for the matrix endpoints
9
8
  */
10
9
  exports.matrixBodySchema = zod_1.z
11
10
  .object({
12
- locale: (0, utils_1.optional)(zod_1.z.string()),
13
- parameters: (0, utils_1.optional)(zod_1.z.record(zod_1.z.string(), zod_1.z.any())),
14
- values: (0, utils_1.optional)(task_item_1.taskItemValueMapSchema),
15
- additional: (0, utils_1.optional)(zod_1.z.any()),
11
+ locale: zod_1.z.string().nullish(),
12
+ parameters: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).nullish(),
13
+ values: task_item_1.taskItemValueMapSchema.nullish(),
14
+ additional: zod_1.z.any().nullish(),
16
15
  })
17
- .optional();
16
+ .nullish();
@@ -2,19 +2,19 @@ import { z } from "zod";
2
2
  /**
3
3
  * Validates the request body for the matrix endpoints
4
4
  */
5
- export declare const matrixRequestBodySchema: z.ZodOptional<z.ZodObject<{
6
- locale: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
7
- parameters: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>, Record<string, any> | undefined, Record<string, any> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
8
- values: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>;
9
- additional: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>, any, any>, z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>>;
5
+ export declare const matrixRequestBodySchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
8
+ values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, 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">]>>>>;
9
+ additional: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
12
- locale?: string | undefined;
13
- parameters?: Record<string, any> | undefined;
11
+ values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
12
+ locale?: string | null | undefined;
13
+ parameters?: Record<string, any> | null | undefined;
14
14
  additional?: any;
15
15
  }, {
16
16
  values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
17
17
  locale?: string | null | undefined;
18
18
  parameters?: Record<string, any> | null | undefined;
19
19
  additional?: any;
20
- }>>;
20
+ }>>>;
@@ -3,15 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.matrixRequestBodySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_item_1 = require("../task-item");
6
- const utils_1 = require("../utils");
7
6
  /**
8
7
  * Validates the request body for the matrix endpoints
9
8
  */
10
9
  exports.matrixRequestBodySchema = zod_1.z
11
10
  .object({
12
- locale: (0, utils_1.optional)(zod_1.z.string()),
13
- parameters: (0, utils_1.optional)(zod_1.z.record(zod_1.z.string(), zod_1.z.any())),
14
- values: (0, utils_1.optional)(task_item_1.taskItemValueMapSchema),
15
- additional: (0, utils_1.optional)(zod_1.z.any()),
11
+ locale: zod_1.z.string().nullish(),
12
+ parameters: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).nullish(),
13
+ values: task_item_1.taskItemValueMapSchema.nullish(),
14
+ additional: zod_1.z.any().nullish(),
16
15
  })
17
- .optional();
16
+ .nullish();
@@ -2,16 +2,16 @@ import { z } from "zod";
2
2
  /**
3
3
  * Validates the request body for the tree and data endpoints
4
4
  */
5
- export declare const treeAndDataBodySchema: z.ZodOptional<z.ZodObject<{
6
- locale: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
7
- parameters: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>, Record<string, any> | undefined, Record<string, any> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
8
- values: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>;
5
+ export declare const treeAndDataBodySchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
8
+ values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, 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">]>>>>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
11
- locale?: string | undefined;
12
- parameters?: Record<string, any> | undefined;
10
+ values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
11
+ locale?: string | null | undefined;
12
+ parameters?: Record<string, any> | null | undefined;
13
13
  }, {
14
14
  values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
15
15
  locale?: string | null | undefined;
16
16
  parameters?: Record<string, any> | null | undefined;
17
- }>>;
17
+ }>>>;
@@ -3,14 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.treeAndDataBodySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_item_1 = require("../task-item");
6
- const utils_1 = require("../utils");
7
6
  /**
8
7
  * Validates the request body for the tree and data endpoints
9
8
  */
10
9
  exports.treeAndDataBodySchema = zod_1.z
11
10
  .object({
12
- locale: (0, utils_1.optional)(zod_1.z.string()),
13
- parameters: (0, utils_1.optional)(zod_1.z.record(zod_1.z.string(), zod_1.z.any())),
14
- values: (0, utils_1.optional)(task_item_1.taskItemValueMapSchema),
11
+ locale: zod_1.z.string().nullish(),
12
+ parameters: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).nullish(),
13
+ values: task_item_1.taskItemValueMapSchema.nullish(),
15
14
  })
16
- .optional();
15
+ .nullish();
@@ -2,16 +2,16 @@ import { z } from "zod";
2
2
  /**
3
3
  * Validates the request body for the tree and data endpoints
4
4
  */
5
- export declare const treeAndDataRequestBodySchema: z.ZodOptional<z.ZodObject<{
6
- locale: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
7
- parameters: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>, Record<string, any> | undefined, Record<string, any> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
8
- values: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>;
5
+ export declare const treeAndDataRequestBodySchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
8
+ values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, 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">]>>>>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
11
- locale?: string | undefined;
12
- parameters?: Record<string, any> | undefined;
10
+ values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
11
+ locale?: string | null | undefined;
12
+ parameters?: Record<string, any> | null | undefined;
13
13
  }, {
14
14
  values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
15
15
  locale?: string | null | undefined;
16
16
  parameters?: Record<string, any> | null | undefined;
17
- }>>;
17
+ }>>>;
@@ -3,14 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.treeAndDataRequestBodySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_item_1 = require("../task-item");
6
- const utils_1 = require("../utils");
7
6
  /**
8
7
  * Validates the request body for the tree and data endpoints
9
8
  */
10
9
  exports.treeAndDataRequestBodySchema = zod_1.z
11
10
  .object({
12
- locale: (0, utils_1.optional)(zod_1.z.string()),
13
- parameters: (0, utils_1.optional)(zod_1.z.record(zod_1.z.string(), zod_1.z.any())),
14
- values: (0, utils_1.optional)(task_item_1.taskItemValueMapSchema),
11
+ locale: zod_1.z.string().nullish(),
12
+ parameters: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).nullish(),
13
+ values: task_item_1.taskItemValueMapSchema.nullish(),
15
14
  })
16
- .optional();
15
+ .nullish();
@@ -5,25 +5,16 @@ export declare const criteriaSetsAndVersionsSchema: z.ZodRecord<z.ZodString, z.Z
5
5
  date: z.ZodDate;
6
6
  name: z.ZodString;
7
7
  description: z.ZodString;
8
- documentation: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
9
- locales: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>, string[] | undefined, string[] | null | undefined>, z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>>;
10
- defaultLocale: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
11
- schemas: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
12
- parameters?: Record<string, any> | undefined;
13
- result?: Record<string, any> | undefined;
14
- }, z.ZodTypeDef, {
8
+ documentation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ locales: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
10
+ defaultLocale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ schemas: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
13
+ result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
14
+ }, "strip", z.ZodTypeAny, {
15
15
  parameters?: Record<string, any> | null | undefined;
16
16
  result?: Record<string, any> | null | undefined;
17
- }>>>, {
18
- parameters?: Record<string, any> | undefined;
19
- result?: Record<string, any> | undefined;
20
- } | undefined, {
21
- parameters?: Record<string, any> | null | undefined;
22
- result?: Record<string, any> | null | undefined;
23
- } | null | undefined>, z.ZodOptional<z.ZodType<{
24
- parameters?: Record<string, any> | undefined;
25
- result?: Record<string, any> | undefined;
26
- }, z.ZodTypeDef, {
17
+ }, {
27
18
  parameters?: Record<string, any> | null | undefined;
28
19
  result?: Record<string, any> | null | undefined;
29
20
  }>>>;
@@ -33,13 +24,13 @@ export declare const criteriaSetsAndVersionsSchema: z.ZodRecord<z.ZodString, z.Z
33
24
  description: string;
34
25
  date: Date;
35
26
  version: string;
36
- documentation?: string | undefined;
37
- locales?: string[] | undefined;
38
- defaultLocale?: string | undefined;
27
+ documentation?: string | null | undefined;
28
+ locales?: string[] | null | undefined;
29
+ defaultLocale?: string | null | undefined;
39
30
  schemas?: {
40
- parameters?: Record<string, any> | undefined;
41
- result?: Record<string, any> | undefined;
42
- } | undefined;
31
+ parameters?: Record<string, any> | null | undefined;
32
+ result?: Record<string, any> | null | undefined;
33
+ } | null | undefined;
43
34
  }, {
44
35
  id: string;
45
36
  name: string;