@openframe-org/criteria-set-protocol 2.2.11 → 2.2.13

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.
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const taskOptionsSchema: z.ZodIntersection<z.ZodObject<{
2
+ export declare const taskOptionsSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
3
3
  breadcrumbTextFormat: z.ZodString;
4
4
  documentTreeFolderTextFormat: z.ZodString;
5
5
  showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -17,6 +17,12 @@ export declare const taskOptionsSchema: z.ZodIntersection<z.ZodObject<{
17
17
  criteriaTreeElementTextFormat: string;
18
18
  }, {
19
19
  criteriaTreeElementTextFormat: string;
20
+ }>>, z.ZodObject<{
21
+ reportTextFormat: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ reportTextFormat?: string | undefined;
24
+ }, {
25
+ reportTextFormat?: string | undefined;
20
26
  }>>;
21
27
  export declare const taskSchema: z.ZodObject<{
22
28
  title: z.ZodString;
@@ -78,25 +84,25 @@ export declare const taskSchema: z.ZodObject<{
78
84
  minimumValue: z.ZodOptional<z.ZodNumber>;
79
85
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
80
86
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
81
- }, "strip", z.ZodTypeAny, {
82
- type?: "number" | "boolean" | "percentage" | undefined;
83
- total?: number | undefined;
84
- value?: number | boolean | undefined;
85
- text?: string | undefined;
86
- maximumValue?: number | undefined;
87
- minimumValue?: number | undefined;
88
- exclusiveMaximum?: number | undefined;
89
- exclusiveMinimum?: number | undefined;
90
- }, {
91
- type?: "number" | "boolean" | "percentage" | undefined;
92
- total?: number | undefined;
93
- value?: number | boolean | undefined;
94
- text?: string | undefined;
95
- maximumValue?: number | undefined;
96
- minimumValue?: number | undefined;
97
- exclusiveMaximum?: number | undefined;
98
- exclusiveMinimum?: number | undefined;
99
- }>>;
87
+ }, "strip", z.ZodAny, z.objectOutputType<{
88
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
89
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
90
+ text: z.ZodOptional<z.ZodString>;
91
+ total: z.ZodOptional<z.ZodNumber>;
92
+ maximumValue: z.ZodOptional<z.ZodNumber>;
93
+ minimumValue: z.ZodOptional<z.ZodNumber>;
94
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
95
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
96
+ }, z.ZodAny, "strip">, z.objectInputType<{
97
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
98
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
99
+ text: z.ZodOptional<z.ZodString>;
100
+ total: z.ZodOptional<z.ZodNumber>;
101
+ maximumValue: z.ZodOptional<z.ZodNumber>;
102
+ minimumValue: z.ZodOptional<z.ZodNumber>;
103
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
104
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
105
+ }, z.ZodAny, "strip">>>;
100
106
  sortOrder: z.ZodOptional<z.ZodNumber>;
101
107
  } & {
102
108
  type: z.ZodLiteral<"task">;
@@ -162,25 +168,25 @@ export declare const taskSchema: z.ZodObject<{
162
168
  minimumValue: z.ZodOptional<z.ZodNumber>;
163
169
  exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
164
170
  exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
165
- }, "strip", z.ZodTypeAny, {
166
- type?: "number" | "boolean" | "percentage" | undefined;
167
- total?: number | undefined;
168
- value?: number | boolean | undefined;
169
- text?: string | undefined;
170
- maximumValue?: number | undefined;
171
- minimumValue?: number | undefined;
172
- exclusiveMaximum?: number | undefined;
173
- exclusiveMinimum?: number | undefined;
174
- }, {
175
- type?: "number" | "boolean" | "percentage" | undefined;
176
- total?: number | undefined;
177
- value?: number | boolean | undefined;
178
- text?: string | undefined;
179
- maximumValue?: number | undefined;
180
- minimumValue?: number | undefined;
181
- exclusiveMaximum?: number | undefined;
182
- exclusiveMinimum?: number | undefined;
183
- }>, z.ZodObject<{
171
+ }, "strip", z.ZodAny, z.objectOutputType<{
172
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
173
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
174
+ text: z.ZodOptional<z.ZodString>;
175
+ total: z.ZodOptional<z.ZodNumber>;
176
+ maximumValue: z.ZodOptional<z.ZodNumber>;
177
+ minimumValue: z.ZodOptional<z.ZodNumber>;
178
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
179
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
180
+ }, z.ZodAny, "strip">, z.objectInputType<{
181
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
182
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
183
+ text: z.ZodOptional<z.ZodString>;
184
+ total: z.ZodOptional<z.ZodNumber>;
185
+ maximumValue: z.ZodOptional<z.ZodNumber>;
186
+ minimumValue: z.ZodOptional<z.ZodNumber>;
187
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
188
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
189
+ }, z.ZodAny, "strip">>, z.ZodObject<{
184
190
  readOnly: z.ZodOptional<z.ZodBoolean>;
185
191
  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">]>>;
186
192
  }, "strip", z.ZodTypeAny, {
@@ -429,6 +435,8 @@ export declare const taskSchema: z.ZodObject<{
429
435
  minimumValue?: number | undefined;
430
436
  exclusiveMaximum?: number | undefined;
431
437
  exclusiveMinimum?: number | undefined;
438
+ } & {
439
+ [k: string]: any;
432
440
  } & {
433
441
  readOnly?: boolean | undefined;
434
442
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -512,6 +520,8 @@ export declare const taskSchema: z.ZodObject<{
512
520
  minimumValue?: number | undefined;
513
521
  exclusiveMaximum?: number | undefined;
514
522
  exclusiveMinimum?: number | undefined;
523
+ } & {
524
+ [k: string]: any;
515
525
  } & {
516
526
  readOnly?: boolean | undefined;
517
527
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -535,7 +545,7 @@ export declare const taskSchema: z.ZodObject<{
535
545
  })[] | undefined;
536
546
  sortOrder?: number | undefined;
537
547
  }>>, "many">;
538
- options: z.ZodIntersection<z.ZodObject<{
548
+ options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
539
549
  breadcrumbTextFormat: z.ZodString;
540
550
  documentTreeFolderTextFormat: z.ZodString;
541
551
  showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -553,6 +563,12 @@ export declare const taskSchema: z.ZodObject<{
553
563
  criteriaTreeElementTextFormat: string;
554
564
  }, {
555
565
  criteriaTreeElementTextFormat: string;
566
+ }>>, z.ZodObject<{
567
+ reportTextFormat: z.ZodOptional<z.ZodString>;
568
+ }, "strip", z.ZodTypeAny, {
569
+ reportTextFormat?: string | undefined;
570
+ }, {
571
+ reportTextFormat?: string | undefined;
556
572
  }>>;
557
573
  }, "strip", z.ZodTypeAny, {
558
574
  code: string;
@@ -564,6 +580,8 @@ export declare const taskSchema: z.ZodObject<{
564
580
  showCodeAsIndicatorTaskViewTitle: boolean;
565
581
  } & {
566
582
  criteriaTreeElementTextFormat: string;
583
+ } & {
584
+ reportTextFormat?: string | undefined;
567
585
  };
568
586
  items: {
569
587
  code: string;
@@ -626,6 +644,8 @@ export declare const taskSchema: z.ZodObject<{
626
644
  minimumValue?: number | undefined;
627
645
  exclusiveMaximum?: number | undefined;
628
646
  exclusiveMinimum?: number | undefined;
647
+ } & {
648
+ [k: string]: any;
629
649
  } & {
630
650
  readOnly?: boolean | undefined;
631
651
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -650,16 +670,16 @@ export declare const taskSchema: z.ZodObject<{
650
670
  sortOrder?: number | undefined;
651
671
  }[];
652
672
  longFormTitle: string;
653
- data?: {
654
- type?: "number" | "boolean" | "percentage" | undefined;
655
- total?: number | undefined;
656
- value?: number | boolean | undefined;
657
- text?: string | undefined;
658
- maximumValue?: number | undefined;
659
- minimumValue?: number | undefined;
660
- exclusiveMaximum?: number | undefined;
661
- exclusiveMinimum?: number | undefined;
662
- } | undefined;
673
+ data?: z.objectOutputType<{
674
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
675
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
676
+ text: z.ZodOptional<z.ZodString>;
677
+ total: z.ZodOptional<z.ZodNumber>;
678
+ maximumValue: z.ZodOptional<z.ZodNumber>;
679
+ minimumValue: z.ZodOptional<z.ZodNumber>;
680
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
681
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
682
+ }, z.ZodAny, "strip"> | undefined;
663
683
  description?: string | undefined;
664
684
  tags?: string[] | undefined;
665
685
  documentation?: ({
@@ -688,6 +708,8 @@ export declare const taskSchema: z.ZodObject<{
688
708
  showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
689
709
  } & {
690
710
  criteriaTreeElementTextFormat: string;
711
+ } & {
712
+ reportTextFormat?: string | undefined;
691
713
  };
692
714
  items: {
693
715
  code: string;
@@ -750,6 +772,8 @@ export declare const taskSchema: z.ZodObject<{
750
772
  minimumValue?: number | undefined;
751
773
  exclusiveMaximum?: number | undefined;
752
774
  exclusiveMinimum?: number | undefined;
775
+ } & {
776
+ [k: string]: any;
753
777
  } & {
754
778
  readOnly?: boolean | undefined;
755
779
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -774,16 +798,16 @@ export declare const taskSchema: z.ZodObject<{
774
798
  sortOrder?: number | undefined;
775
799
  }[];
776
800
  longFormTitle: string;
777
- data?: {
778
- type?: "number" | "boolean" | "percentage" | undefined;
779
- total?: number | undefined;
780
- value?: number | boolean | undefined;
781
- text?: string | undefined;
782
- maximumValue?: number | undefined;
783
- minimumValue?: number | undefined;
784
- exclusiveMaximum?: number | undefined;
785
- exclusiveMinimum?: number | undefined;
786
- } | undefined;
801
+ data?: z.objectInputType<{
802
+ type: z.ZodOptional<z.ZodEnum<["number", "percentage", "boolean"]>>;
803
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
804
+ text: z.ZodOptional<z.ZodString>;
805
+ total: z.ZodOptional<z.ZodNumber>;
806
+ maximumValue: z.ZodOptional<z.ZodNumber>;
807
+ minimumValue: z.ZodOptional<z.ZodNumber>;
808
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
809
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
810
+ }, z.ZodAny, "strip"> | undefined;
787
811
  description?: string | undefined;
788
812
  tags?: string[] | undefined;
789
813
  documentation?: ({
@@ -19,6 +19,7 @@ exports.taskOptionsSchema = zod_1.z
19
19
  .describe("Whether the title of the indicator task view should show the task code, or the hardcoded description text"),
20
20
  })
21
21
  .and(common_1.criteriaTreeOptionsSchema)
22
+ .and(common_1.reportOptionsSchema)
22
23
  .describe("TaskOptions - Configuration options for task display and behavior");
23
24
  exports.taskSchema = common_1.abstractElementSchema.extend({
24
25
  type: zod_1.z.literal("task").describe("Identifies the schema type as a task"),