@openframe-org/criteria-set-protocol 2.2.1 → 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, {
@@ -829,33 +725,16 @@ export declare const taskItemSchema: z.ZodObject<{
829
725
  defaultValue?: boolean | undefined;
830
726
  readOnly?: boolean | undefined;
831
727
  };
832
- data?: ((({
833
- type?: "number" | undefined;
728
+ data?: ({
729
+ type?: "number" | "boolean" | "percentage" | undefined;
834
730
  total?: number | undefined;
835
731
  value?: number | undefined;
732
+ text?: string | undefined;
836
733
  maximumValue?: number | undefined;
837
734
  minimumValue?: number | undefined;
838
735
  exclusiveMaximum?: number | undefined;
839
736
  exclusiveMinimum?: number | undefined;
840
- } | {
841
- type: "percentage";
842
- total?: undefined;
843
- value?: number | undefined;
844
- maximumValue?: number | undefined;
845
- minimumValue?: number | undefined;
846
- exclusiveMaximum?: number | undefined;
847
- exclusiveMinimum?: number | undefined;
848
- } | {
849
- type: "boolean";
850
- total?: undefined;
851
- value?: boolean | undefined;
852
- maximumValue?: undefined;
853
- minimumValue?: undefined;
854
- exclusiveMaximum?: undefined;
855
- exclusiveMinimum?: undefined;
856
- }) & {
857
- text?: string | undefined;
858
- }) & {
737
+ } & {
859
738
  readOnly?: boolean | undefined;
860
739
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
861
740
  }) | undefined;
@@ -929,33 +808,16 @@ export declare const taskItemSchema: z.ZodObject<{
929
808
  defaultValue?: boolean | undefined;
930
809
  readOnly?: boolean | undefined;
931
810
  };
932
- data?: ((({
933
- type?: "number" | undefined;
811
+ data?: ({
812
+ type?: "number" | "boolean" | "percentage" | undefined;
934
813
  total?: number | undefined;
935
814
  value?: number | undefined;
815
+ text?: string | undefined;
936
816
  maximumValue?: number | undefined;
937
817
  minimumValue?: number | undefined;
938
818
  exclusiveMaximum?: number | undefined;
939
819
  exclusiveMinimum?: number | undefined;
940
- } | {
941
- type: "percentage";
942
- total?: undefined;
943
- value?: number | undefined;
944
- maximumValue?: number | undefined;
945
- minimumValue?: number | undefined;
946
- exclusiveMaximum?: number | undefined;
947
- exclusiveMinimum?: number | undefined;
948
- } | {
949
- type: "boolean";
950
- total?: undefined;
951
- value?: boolean | undefined;
952
- maximumValue?: undefined;
953
- minimumValue?: undefined;
954
- exclusiveMaximum?: undefined;
955
- exclusiveMinimum?: undefined;
956
- }) & {
957
- text?: string | undefined;
958
- }) & {
820
+ } & {
959
821
  readOnly?: boolean | undefined;
960
822
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
961
823
  }) | undefined;
@@ -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,6 +133,5 @@ exports.taskItemSchema = common_1.abstractElementSchema
130
133
  .string()
131
134
  .optional()
132
135
  .describe("Additional detailed description of the task item"),
133
- options: exports.taskItemOptionsSchema
134
- .describe("Configuration options for the task item display and behavior"),
136
+ options: exports.taskItemOptionsSchema.describe("Configuration options for the task item display and behavior"),
135
137
  });