@openframe-org/criteria-set-protocol 2.0.7 → 2.0.8

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 (34) hide show
  1. package/dist/v1/schemas/certification.d.ts +80 -80
  2. package/dist/v1/schemas/certification.js +7 -6
  3. package/dist/v1/schemas/common.d.ts +144 -75
  4. package/dist/v1/schemas/common.js +15 -14
  5. package/dist/v1/schemas/criteria-tree.d.ts +4397 -2524
  6. package/dist/v1/schemas/criteria-tree.js +2 -1
  7. package/dist/v1/schemas/criterion.d.ts +810 -460
  8. package/dist/v1/schemas/criterion.js +4 -3
  9. package/dist/v1/schemas/data-map.d.ts +2 -2
  10. package/dist/v1/schemas/data-map.js +2 -1
  11. package/dist/v1/schemas/index.d.ts +1 -0
  12. package/dist/v1/schemas/index.js +14 -0
  13. package/dist/v1/schemas/metadata.d.ts +28 -19
  14. package/dist/v1/schemas/metadata.js +7 -6
  15. package/dist/v1/schemas/request/matrix-body-schema.d.ts +23 -8
  16. package/dist/v1/schemas/request/matrix-body-schema.js +7 -7
  17. package/dist/v1/schemas/request/matrix-request-body-schema.d.ts +23 -8
  18. package/dist/v1/schemas/request/matrix-request-body-schema.js +7 -7
  19. package/dist/v1/schemas/request/tree-and-data-body-schema.d.ts +19 -7
  20. package/dist/v1/schemas/request/tree-and-data-body-schema.js +6 -6
  21. package/dist/v1/schemas/request/tree-and-data-request-body-schema.d.ts +19 -7
  22. package/dist/v1/schemas/request/tree-and-data-request-body-schema.js +6 -6
  23. package/dist/v1/schemas/response.d.ts +24 -15
  24. package/dist/v1/schemas/task-group.d.ts +606 -334
  25. package/dist/v1/schemas/task-group.js +5 -4
  26. package/dist/v1/schemas/task-item.d.ts +355 -218
  27. package/dist/v1/schemas/task-item.js +18 -18
  28. package/dist/v1/schemas/task.d.ts +416 -222
  29. package/dist/v1/schemas/task.js +4 -3
  30. package/dist/v1/schemas/theme.d.ts +1057 -615
  31. package/dist/v1/schemas/theme.js +4 -3
  32. package/dist/v1/schemas/utils.d.ts +2 -3
  33. package/dist/v1/schemas/utils.js +5 -8
  34. package/package.json +1 -1
@@ -4,12 +4,13 @@ exports.taskSchema = exports.taskOptionsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_item_1 = require("./task-item");
6
6
  const common_1 = require("./common");
7
+ const utils_1 = require("./utils");
7
8
  exports.taskOptionsSchema = zod_1.z.object({
8
- hideCode: zod_1.z.boolean().optional(),
9
+ hideCode: (0, utils_1.optional)(zod_1.z.boolean()),
9
10
  });
10
11
  exports.taskSchema = common_1.abstractElementSchema.extend({
11
12
  type: zod_1.z.literal("task"),
12
- description: zod_1.z.string().optional(),
13
+ description: (0, utils_1.optional)(zod_1.z.string()),
13
14
  items: zod_1.z.array(zod_1.z.lazy(() => task_item_1.taskItemSchema)),
14
- options: exports.taskOptionsSchema.optional(),
15
+ options: (0, utils_1.optional)(exports.taskOptionsSchema),
15
16
  });