@openframe-org/criteria-set-protocol 2.2.0 → 2.2.2

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.
@@ -4,7 +4,8 @@ exports.taskGroupSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_1 = require("./task");
6
6
  const common_1 = require("./common");
7
- exports.taskGroupSchema = common_1.abstractElementSchema.extend({
7
+ exports.taskGroupSchema = common_1.abstractElementSchema
8
+ .extend({
8
9
  type: zod_1.z
9
10
  .literal("task-group")
10
11
  .describe("Identifies the schema type as a task group"),
@@ -19,4 +20,5 @@ exports.taskGroupSchema = common_1.abstractElementSchema.extend({
19
20
  items: zod_1.z
20
21
  .array(zod_1.z.lazy(() => task_1.taskSchema))
21
22
  .describe("List of tasks contained within this task group"),
22
- }).describe("TaskGroup");
23
+ })
24
+ .describe("TaskGroup");
@@ -362,86 +362,34 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
362
362
  defaultValue?: boolean | undefined;
363
363
  readOnly?: boolean | undefined;
364
364
  }>]>;
365
- export declare const taskItemDataSchema: z.ZodIntersection<z.ZodIntersection<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
366
- type: z.ZodOptional<z.ZodLiteral<"number">>;
365
+ export declare const taskItemDataSchema: z.ZodIntersection<z.ZodObject<{
366
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
367
367
  value: z.ZodOptional<z.ZodNumber>;
368
+ text: z.ZodOptional<z.ZodString>;
368
369
  total: z.ZodOptional<z.ZodNumber>;
369
370
  maximumValue: z.ZodOptional<z.ZodNumber>;
370
371
  minimumValue: z.ZodOptional<z.ZodNumber>;
371
372
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
372
373
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
373
374
  }, "strip", z.ZodTypeAny, {
374
- type?: "number" | undefined;
375
+ type?: "number" | "boolean" | "percentage" | undefined;
375
376
  total?: number | undefined;
376
377
  value?: number | undefined;
378
+ text?: string | undefined;
377
379
  maximumValue?: number | undefined;
378
380
  minimumValue?: number | undefined;
379
381
  exclusiveMaximum?: number | undefined;
380
382
  exclusiveMinimum?: number | undefined;
381
383
  }, {
382
- type?: "number" | undefined;
384
+ type?: "number" | "boolean" | "percentage" | undefined;
383
385
  total?: number | undefined;
384
386
  value?: number | undefined;
387
+ text?: string | undefined;
385
388
  maximumValue?: number | undefined;
386
389
  minimumValue?: number | undefined;
387
390
  exclusiveMaximum?: number | undefined;
388
391
  exclusiveMinimum?: number | undefined;
389
392
  }>, z.ZodObject<{
390
- maximumValue: z.ZodOptional<z.ZodNumber>;
391
- minimumValue: z.ZodOptional<z.ZodNumber>;
392
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
393
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
394
- } & {
395
- type: z.ZodLiteral<"percentage">;
396
- value: z.ZodOptional<z.ZodNumber>;
397
- total: z.ZodOptional<z.ZodNever>;
398
- }, "strip", z.ZodTypeAny, {
399
- type: "percentage";
400
- total?: undefined;
401
- value?: number | undefined;
402
- maximumValue?: number | undefined;
403
- minimumValue?: number | undefined;
404
- exclusiveMaximum?: number | undefined;
405
- exclusiveMinimum?: number | undefined;
406
- }, {
407
- type: "percentage";
408
- total?: undefined;
409
- value?: number | undefined;
410
- maximumValue?: number | undefined;
411
- minimumValue?: number | undefined;
412
- exclusiveMaximum?: number | undefined;
413
- exclusiveMinimum?: number | undefined;
414
- }>, z.ZodObject<{
415
- type: z.ZodLiteral<"boolean">;
416
- value: z.ZodOptional<z.ZodBoolean>;
417
- total: z.ZodOptional<z.ZodNever>;
418
- maximumValue: z.ZodOptional<z.ZodNever>;
419
- minimumValue: z.ZodOptional<z.ZodNever>;
420
- exclusiveMaximum: z.ZodOptional<z.ZodNever>;
421
- exclusiveMinimum: z.ZodOptional<z.ZodNever>;
422
- }, "strip", z.ZodTypeAny, {
423
- type: "boolean";
424
- total?: undefined;
425
- value?: boolean | undefined;
426
- maximumValue?: undefined;
427
- minimumValue?: undefined;
428
- exclusiveMaximum?: undefined;
429
- exclusiveMinimum?: undefined;
430
- }, {
431
- type: "boolean";
432
- total?: undefined;
433
- value?: boolean | undefined;
434
- maximumValue?: undefined;
435
- minimumValue?: undefined;
436
- exclusiveMaximum?: undefined;
437
- exclusiveMinimum?: undefined;
438
- }>]>, z.ZodObject<{
439
- text: z.ZodOptional<z.ZodString>;
440
- }, "strip", z.ZodTypeAny, {
441
- text?: string | undefined;
442
- }, {
443
- text?: string | undefined;
444
- }>>, z.ZodObject<{
445
393
  readOnly: z.ZodOptional<z.ZodBoolean>;
446
394
  valueReference: 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">]>>;
447
395
  }, "strip", z.ZodTypeAny, {
@@ -510,86 +458,34 @@ export declare const taskItemSchema: z.ZodObject<{
510
458
  sortOrder: z.ZodOptional<z.ZodNumber>;
511
459
  } & {
512
460
  type: z.ZodLiteral<"task-item">;
513
- data: z.ZodOptional<z.ZodIntersection<z.ZodIntersection<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
514
- type: z.ZodOptional<z.ZodLiteral<"number">>;
461
+ data: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
462
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
515
463
  value: z.ZodOptional<z.ZodNumber>;
464
+ text: z.ZodOptional<z.ZodString>;
516
465
  total: z.ZodOptional<z.ZodNumber>;
517
466
  maximumValue: z.ZodOptional<z.ZodNumber>;
518
467
  minimumValue: z.ZodOptional<z.ZodNumber>;
519
468
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
520
469
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
521
470
  }, "strip", z.ZodTypeAny, {
522
- type?: "number" | undefined;
471
+ type?: "number" | "boolean" | "percentage" | undefined;
523
472
  total?: number | undefined;
524
473
  value?: number | undefined;
474
+ text?: string | undefined;
525
475
  maximumValue?: number | undefined;
526
476
  minimumValue?: number | undefined;
527
477
  exclusiveMaximum?: number | undefined;
528
478
  exclusiveMinimum?: number | undefined;
529
479
  }, {
530
- type?: "number" | undefined;
480
+ type?: "number" | "boolean" | "percentage" | undefined;
531
481
  total?: number | undefined;
532
482
  value?: number | undefined;
483
+ text?: string | undefined;
533
484
  maximumValue?: number | undefined;
534
485
  minimumValue?: number | undefined;
535
486
  exclusiveMaximum?: number | undefined;
536
487
  exclusiveMinimum?: number | undefined;
537
488
  }>, z.ZodObject<{
538
- maximumValue: z.ZodOptional<z.ZodNumber>;
539
- minimumValue: z.ZodOptional<z.ZodNumber>;
540
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
541
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
542
- } & {
543
- type: z.ZodLiteral<"percentage">;
544
- value: z.ZodOptional<z.ZodNumber>;
545
- total: z.ZodOptional<z.ZodNever>;
546
- }, "strip", z.ZodTypeAny, {
547
- type: "percentage";
548
- total?: undefined;
549
- value?: number | undefined;
550
- maximumValue?: number | undefined;
551
- minimumValue?: number | undefined;
552
- exclusiveMaximum?: number | undefined;
553
- exclusiveMinimum?: number | undefined;
554
- }, {
555
- type: "percentage";
556
- total?: undefined;
557
- value?: number | undefined;
558
- maximumValue?: number | undefined;
559
- minimumValue?: number | undefined;
560
- exclusiveMaximum?: number | undefined;
561
- exclusiveMinimum?: number | undefined;
562
- }>, z.ZodObject<{
563
- type: z.ZodLiteral<"boolean">;
564
- value: z.ZodOptional<z.ZodBoolean>;
565
- total: z.ZodOptional<z.ZodNever>;
566
- maximumValue: z.ZodOptional<z.ZodNever>;
567
- minimumValue: z.ZodOptional<z.ZodNever>;
568
- exclusiveMaximum: z.ZodOptional<z.ZodNever>;
569
- exclusiveMinimum: z.ZodOptional<z.ZodNever>;
570
- }, "strip", z.ZodTypeAny, {
571
- type: "boolean";
572
- total?: undefined;
573
- value?: boolean | undefined;
574
- maximumValue?: undefined;
575
- minimumValue?: undefined;
576
- exclusiveMaximum?: undefined;
577
- exclusiveMinimum?: undefined;
578
- }, {
579
- type: "boolean";
580
- total?: undefined;
581
- value?: boolean | undefined;
582
- maximumValue?: undefined;
583
- minimumValue?: undefined;
584
- exclusiveMaximum?: undefined;
585
- exclusiveMinimum?: undefined;
586
- }>]>, z.ZodObject<{
587
- text: z.ZodOptional<z.ZodString>;
588
- }, "strip", z.ZodTypeAny, {
589
- text?: string | undefined;
590
- }, {
591
- text?: string | undefined;
592
- }>>, z.ZodObject<{
593
489
  readOnly: z.ZodOptional<z.ZodBoolean>;
594
490
  valueReference: 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">]>>;
595
491
  }, "strip", z.ZodTypeAny, {
@@ -770,7 +666,6 @@ export declare const taskItemSchema: z.ZodObject<{
770
666
  readOnly?: boolean | undefined;
771
667
  }>]>;
772
668
  description: z.ZodOptional<z.ZodString>;
773
- valueReference: 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">]>>;
774
669
  options: z.ZodObject<{
775
670
  excludeFromTargets: z.ZodOptional<z.ZodBoolean>;
776
671
  }, "strip", z.ZodTypeAny, {
@@ -830,33 +725,16 @@ export declare const taskItemSchema: z.ZodObject<{
830
725
  defaultValue?: boolean | undefined;
831
726
  readOnly?: boolean | undefined;
832
727
  };
833
- data?: ((({
834
- type?: "number" | undefined;
728
+ data?: ({
729
+ type?: "number" | "boolean" | "percentage" | undefined;
835
730
  total?: number | undefined;
836
731
  value?: number | undefined;
732
+ text?: string | undefined;
837
733
  maximumValue?: number | undefined;
838
734
  minimumValue?: number | undefined;
839
735
  exclusiveMaximum?: number | undefined;
840
736
  exclusiveMinimum?: number | undefined;
841
- } | {
842
- type: "percentage";
843
- total?: undefined;
844
- value?: number | undefined;
845
- maximumValue?: number | undefined;
846
- minimumValue?: number | undefined;
847
- exclusiveMaximum?: number | undefined;
848
- exclusiveMinimum?: number | undefined;
849
- } | {
850
- type: "boolean";
851
- total?: undefined;
852
- value?: boolean | undefined;
853
- maximumValue?: undefined;
854
- minimumValue?: undefined;
855
- exclusiveMaximum?: undefined;
856
- exclusiveMinimum?: undefined;
857
- }) & {
858
- text?: string | undefined;
859
- }) & {
737
+ } & {
860
738
  readOnly?: boolean | undefined;
861
739
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
862
740
  }) | undefined;
@@ -878,7 +756,6 @@ export declare const taskItemSchema: z.ZodObject<{
878
756
  text: string;
879
757
  })[] | undefined;
880
758
  sortOrder?: number | undefined;
881
- valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
882
759
  }, {
883
760
  code: string;
884
761
  type: "task-item";
@@ -931,33 +808,16 @@ export declare const taskItemSchema: z.ZodObject<{
931
808
  defaultValue?: boolean | undefined;
932
809
  readOnly?: boolean | undefined;
933
810
  };
934
- data?: ((({
935
- type?: "number" | undefined;
811
+ data?: ({
812
+ type?: "number" | "boolean" | "percentage" | undefined;
936
813
  total?: number | undefined;
937
814
  value?: number | undefined;
815
+ text?: string | undefined;
938
816
  maximumValue?: number | undefined;
939
817
  minimumValue?: number | undefined;
940
818
  exclusiveMaximum?: number | undefined;
941
819
  exclusiveMinimum?: number | undefined;
942
- } | {
943
- type: "percentage";
944
- total?: undefined;
945
- value?: number | undefined;
946
- maximumValue?: number | undefined;
947
- minimumValue?: number | undefined;
948
- exclusiveMaximum?: number | undefined;
949
- exclusiveMinimum?: number | undefined;
950
- } | {
951
- type: "boolean";
952
- total?: undefined;
953
- value?: boolean | undefined;
954
- maximumValue?: undefined;
955
- minimumValue?: undefined;
956
- exclusiveMaximum?: undefined;
957
- exclusiveMinimum?: undefined;
958
- }) & {
959
- text?: string | undefined;
960
- }) & {
820
+ } & {
961
821
  readOnly?: boolean | undefined;
962
822
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
963
823
  }) | undefined;
@@ -979,5 +839,4 @@ export declare const taskItemSchema: z.ZodObject<{
979
839
  text: string;
980
840
  })[] | undefined;
981
841
  sortOrder?: number | undefined;
982
- valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
983
842
  }>;
@@ -72,7 +72,10 @@ exports.selectMultipleTypeSchema = abstractDefinitionSchema.extend({
72
72
  .describe("Default selected values"),
73
73
  });
74
74
  exports.numberTypeSchema = abstractDefinitionSchema.extend({
75
- type: zod_1.z.literal("number").optional().describe("Indicates a numeric type task item"),
75
+ type: zod_1.z
76
+ .literal("number")
77
+ .optional()
78
+ .describe("Indicates a numeric type task item"),
76
79
  minimum: zod_1.z.number().optional().describe("Minimum allowed value"),
77
80
  maximum: zod_1.z.number().optional().describe("Maximum allowed value"),
78
81
  step: zod_1.z.number().optional().describe("Step size for numeric input"),
@@ -130,9 +133,5 @@ exports.taskItemSchema = common_1.abstractElementSchema
130
133
  .string()
131
134
  .optional()
132
135
  .describe("Additional detailed description of the task item"),
133
- valueReference: common_1.taskItemValueSchema
134
- .optional()
135
- .describe("Reference to the task item's value"),
136
- options: exports.taskItemOptionsSchema
137
- .describe("Configuration options for the task item display and behavior"),
136
+ options: exports.taskItemOptionsSchema.describe("Configuration options for the task item display and behavior"),
138
137
  });