@openframe-org/criteria-set-protocol 2.1.3 → 2.1.5
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.
- package/dist/v1/schemas/common.d.ts +38 -0
- package/dist/v1/schemas/common.js +34 -1
- package/dist/v1/schemas/criteria-set.d.ts +3 -3
- package/dist/v1/schemas/criteria-set.js +1 -3
- package/dist/v1/schemas/criteria-tree.d.ts +651 -411
- package/dist/v1/schemas/criteria-tree.js +0 -1
- package/dist/v1/schemas/criterion.d.ts +142 -83
- package/dist/v1/schemas/criterion.js +6 -23
- package/dist/v1/schemas/task-group.d.ts +26 -30
- package/dist/v1/schemas/task-group.js +2 -10
- package/dist/v1/schemas/task.d.ts +20 -20
- package/dist/v1/schemas/task.js +1 -6
- package/dist/v1/schemas/theme.d.ts +250 -137
- package/dist/v1/schemas/theme.js +3 -22
- package/dist/v1/types/criteria.d.ts +1 -2
- package/dist/v1/utils.d.ts +15 -1
- package/dist/v1/utils.js +15 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const taskOptionsSchema: z.ZodObject<{
|
|
3
|
-
breadcrumbTextFormat: z.
|
|
4
|
-
documentTreeFolderTextFormat: z.
|
|
3
|
+
breadcrumbTextFormat: z.ZodString;
|
|
4
|
+
documentTreeFolderTextFormat: z.ZodString;
|
|
5
5
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
breadcrumbTextFormat: string;
|
|
8
8
|
documentTreeFolderTextFormat: string;
|
|
9
9
|
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
10
10
|
}, {
|
|
11
|
-
breadcrumbTextFormat
|
|
12
|
-
documentTreeFolderTextFormat
|
|
11
|
+
breadcrumbTextFormat: string;
|
|
12
|
+
documentTreeFolderTextFormat: string;
|
|
13
13
|
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const taskSchema: z.ZodObject<{
|
|
@@ -542,23 +542,28 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
542
542
|
sortOrder?: number | undefined;
|
|
543
543
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
544
544
|
}>>, "many">;
|
|
545
|
-
options: z.
|
|
546
|
-
breadcrumbTextFormat: z.
|
|
547
|
-
documentTreeFolderTextFormat: z.
|
|
545
|
+
options: z.ZodObject<{
|
|
546
|
+
breadcrumbTextFormat: z.ZodString;
|
|
547
|
+
documentTreeFolderTextFormat: z.ZodString;
|
|
548
548
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
549
549
|
}, "strip", z.ZodTypeAny, {
|
|
550
550
|
breadcrumbTextFormat: string;
|
|
551
551
|
documentTreeFolderTextFormat: string;
|
|
552
552
|
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
553
553
|
}, {
|
|
554
|
-
breadcrumbTextFormat
|
|
555
|
-
documentTreeFolderTextFormat
|
|
554
|
+
breadcrumbTextFormat: string;
|
|
555
|
+
documentTreeFolderTextFormat: string;
|
|
556
556
|
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
557
|
-
}
|
|
557
|
+
}>;
|
|
558
558
|
}, "strip", z.ZodTypeAny, {
|
|
559
559
|
code: string;
|
|
560
560
|
type: "task";
|
|
561
561
|
title: string;
|
|
562
|
+
options: {
|
|
563
|
+
breadcrumbTextFormat: string;
|
|
564
|
+
documentTreeFolderTextFormat: string;
|
|
565
|
+
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
566
|
+
};
|
|
562
567
|
items: {
|
|
563
568
|
code: string;
|
|
564
569
|
type: "task-item";
|
|
@@ -657,11 +662,6 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
657
662
|
step?: number | undefined;
|
|
658
663
|
readOnly?: boolean | undefined;
|
|
659
664
|
} | undefined;
|
|
660
|
-
options?: {
|
|
661
|
-
breadcrumbTextFormat: string;
|
|
662
|
-
documentTreeFolderTextFormat: string;
|
|
663
|
-
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
664
|
-
} | undefined;
|
|
665
665
|
description?: string | undefined;
|
|
666
666
|
longFormTitle?: string | undefined;
|
|
667
667
|
tags?: string[] | undefined;
|
|
@@ -685,6 +685,11 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
685
685
|
code: string;
|
|
686
686
|
type: "task";
|
|
687
687
|
title: string;
|
|
688
|
+
options: {
|
|
689
|
+
breadcrumbTextFormat: string;
|
|
690
|
+
documentTreeFolderTextFormat: string;
|
|
691
|
+
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
692
|
+
};
|
|
688
693
|
items: {
|
|
689
694
|
code: string;
|
|
690
695
|
type: "task-item";
|
|
@@ -783,11 +788,6 @@ export declare const taskSchema: z.ZodObject<{
|
|
|
783
788
|
step?: number | undefined;
|
|
784
789
|
readOnly?: boolean | undefined;
|
|
785
790
|
} | undefined;
|
|
786
|
-
options?: {
|
|
787
|
-
breadcrumbTextFormat?: string | undefined;
|
|
788
|
-
documentTreeFolderTextFormat?: string | undefined;
|
|
789
|
-
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
790
|
-
} | undefined;
|
|
791
791
|
description?: string | undefined;
|
|
792
792
|
longFormTitle?: string | undefined;
|
|
793
793
|
tags?: string[] | undefined;
|
package/dist/v1/schemas/task.js
CHANGED
|
@@ -7,20 +7,16 @@ const common_1 = require("./common");
|
|
|
7
7
|
exports.taskOptionsSchema = zod_1.z.object({
|
|
8
8
|
breadcrumbTextFormat: zod_1.z
|
|
9
9
|
.string()
|
|
10
|
-
.optional()
|
|
11
|
-
.default(":title:")
|
|
12
10
|
.describe("The format of the breadcrumb text, use ':code:' and ':title:' to define where the code and/or title should be inserted"),
|
|
13
11
|
documentTreeFolderTextFormat: zod_1.z
|
|
14
12
|
.string()
|
|
15
|
-
.optional()
|
|
16
|
-
.default(":code:")
|
|
17
13
|
.describe("The format of the document tree folder text, use ':code:' and ':title:' to define where the code and/or title should be inserted"),
|
|
18
14
|
showCodeAsIndicatorTaskViewTitle: zod_1.z
|
|
19
15
|
.boolean()
|
|
20
16
|
.optional()
|
|
21
17
|
.default(false)
|
|
22
18
|
.describe("Whether the title of the indicator task view should show the task code, or the hardcoded description text"),
|
|
23
|
-
});
|
|
19
|
+
}).describe("TaskOptions - Configuration options for task display and behavior");
|
|
24
20
|
exports.taskSchema = common_1.abstractElementSchema.extend({
|
|
25
21
|
type: zod_1.z.literal("task").describe("Identifies the schema type as a task"),
|
|
26
22
|
description: zod_1.z
|
|
@@ -31,6 +27,5 @@ exports.taskSchema = common_1.abstractElementSchema.extend({
|
|
|
31
27
|
.array(zod_1.z.lazy(() => task_item_1.taskItemSchema))
|
|
32
28
|
.describe("The task items in this task"),
|
|
33
29
|
options: exports.taskOptionsSchema
|
|
34
|
-
.optional()
|
|
35
30
|
.describe("Configuration options for the task display and behavior"),
|
|
36
31
|
});
|