@openframe-org/criteria-set-protocol 2.0.13 → 2.0.15
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/index.js +17 -7
- package/dist/v1/schemas/certification.d.ts +8 -8
- package/dist/v1/schemas/common.d.ts +5 -2
- package/dist/v1/schemas/common.js +1 -0
- package/dist/v1/schemas/criteria-tree.d.ts +248 -163
- package/dist/v1/schemas/criterion.d.ts +44 -29
- package/dist/v1/schemas/metadata.d.ts +2 -2
- package/dist/v1/schemas/quality.d.ts +181 -498
- package/dist/v1/schemas/quality.js +2 -2
- package/dist/v1/schemas/response.d.ts +2 -2
- package/dist/v1/schemas/task-group.d.ts +27 -19
- package/dist/v1/schemas/task-item.d.ts +5 -2
- package/dist/v1/schemas/task.d.ts +14 -14
- package/dist/v1/schemas/task.js +0 -2
- package/dist/v1/schemas/theme.d.ts +65 -41
- package/dist/v1/schemas/utils.d.ts +1 -4
- package/dist/v1/schemas/utils.js +1 -7
- package/dist/v1/types/express.d.ts +0 -1
- package/dist/v1/utils.d.ts +6 -750
- package/package.json +4 -4
- package/dist/services/i-versioned.service.d.ts +0 -16
- package/dist/services/i-versioned.service.js +0 -2
- package/dist/services/index.d.ts +0 -2
- package/dist/services/index.js +0 -18
- package/dist/services/versions.service.d.ts +0 -38
- package/dist/services/versions.service.js +0 -49
- package/dist/types.d.ts +0 -2
- package/dist/types.js +0 -2
- package/dist/v1/schemas/criteria-set-id-param-schema.d.ts +0 -11
- package/dist/v1/schemas/criteria-set-id-param-schema.js +0 -11
- package/dist/v1/schemas/download-matrix-body-schema.d.ts +0 -15
- package/dist/v1/schemas/download-matrix-body-schema.js +0 -36
- package/dist/v1/schemas/matrix-body-schema.d.ts +0 -20
- package/dist/v1/schemas/matrix-body-schema.js +0 -14
- package/dist/v1/schemas/tree-and-data-body-schema.d.ts +0 -17
- package/dist/v1/schemas/tree-and-data-body-schema.js +0 -13
- package/dist/v1/schemas/tree-and-matrix-body-schema.d.ts +0 -19
- package/dist/v1/schemas/tree-and-matrix-body-schema.js +0 -38
- package/dist/v1/schemas/tree-body-schema.d.ts +0 -17
- package/dist/v1/schemas/tree-body-schema.js +0 -37
- package/dist/v1/schemas/version-param-schema.d.ts +0 -11
- package/dist/v1/schemas/version-param-schema.js +0 -11
- package/dist/v1/services/i-protocol-v1.service.d.ts +0 -26
- package/dist/v1/services/i-protocol-v1.service.js +0 -2
- package/dist/v1/utils/color.d.ts +0 -2
- package/dist/v1/utils/color.js +0 -10
- package/dist/v1/utils/index.d.ts +0 -7
- package/dist/v1/utils/index.js +0 -15
package/dist/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.v1 = void 0;
|
|
27
37
|
exports.v1 = __importStar(require("./v1"));
|
|
@@ -58,9 +58,9 @@ export declare const numberBasedCertificationDefinitionSchema: z.ZodObject<z.obj
|
|
|
58
58
|
exclusiveMinimum?: number | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
}>, "strip", z.ZodTypeAny, {
|
|
61
|
-
type: "number";
|
|
62
61
|
code: string;
|
|
63
62
|
name: string;
|
|
63
|
+
type: "number";
|
|
64
64
|
rulesText: string;
|
|
65
65
|
rules: {
|
|
66
66
|
minimum?: number | undefined;
|
|
@@ -71,9 +71,9 @@ export declare const numberBasedCertificationDefinitionSchema: z.ZodObject<z.obj
|
|
|
71
71
|
description?: string | undefined;
|
|
72
72
|
icon?: string | undefined;
|
|
73
73
|
}, {
|
|
74
|
-
type: "number";
|
|
75
74
|
code: string;
|
|
76
75
|
name: string;
|
|
76
|
+
type: "number";
|
|
77
77
|
rulesText: string;
|
|
78
78
|
rules: {
|
|
79
79
|
minimum?: number | undefined;
|
|
@@ -110,9 +110,9 @@ export declare const percentageBasedCertificationDefinitionSchema: z.ZodObject<z
|
|
|
110
110
|
exclusiveMinimum?: number | undefined;
|
|
111
111
|
}>;
|
|
112
112
|
}>, "strip", z.ZodTypeAny, {
|
|
113
|
-
type: "percentage";
|
|
114
113
|
code: string;
|
|
115
114
|
name: string;
|
|
115
|
+
type: "percentage";
|
|
116
116
|
rulesText: string;
|
|
117
117
|
rules: {
|
|
118
118
|
minimum?: number | undefined;
|
|
@@ -123,9 +123,9 @@ export declare const percentageBasedCertificationDefinitionSchema: z.ZodObject<z
|
|
|
123
123
|
description?: string | undefined;
|
|
124
124
|
icon?: string | undefined;
|
|
125
125
|
}, {
|
|
126
|
-
type: "percentage";
|
|
127
126
|
code: string;
|
|
128
127
|
name: string;
|
|
128
|
+
type: "percentage";
|
|
129
129
|
rulesText: string;
|
|
130
130
|
rules: {
|
|
131
131
|
minimum?: number | undefined;
|
|
@@ -162,9 +162,9 @@ export declare const certificationDefinitionSchema: z.ZodDiscriminatedUnion<"typ
|
|
|
162
162
|
exclusiveMinimum?: number | undefined;
|
|
163
163
|
}>;
|
|
164
164
|
}>, "strip", z.ZodTypeAny, {
|
|
165
|
-
type: "number";
|
|
166
165
|
code: string;
|
|
167
166
|
name: string;
|
|
167
|
+
type: "number";
|
|
168
168
|
rulesText: string;
|
|
169
169
|
rules: {
|
|
170
170
|
minimum?: number | undefined;
|
|
@@ -175,9 +175,9 @@ export declare const certificationDefinitionSchema: z.ZodDiscriminatedUnion<"typ
|
|
|
175
175
|
description?: string | undefined;
|
|
176
176
|
icon?: string | undefined;
|
|
177
177
|
}, {
|
|
178
|
-
type: "number";
|
|
179
178
|
code: string;
|
|
180
179
|
name: string;
|
|
180
|
+
type: "number";
|
|
181
181
|
rulesText: string;
|
|
182
182
|
rules: {
|
|
183
183
|
minimum?: number | undefined;
|
|
@@ -213,9 +213,9 @@ export declare const certificationDefinitionSchema: z.ZodDiscriminatedUnion<"typ
|
|
|
213
213
|
exclusiveMinimum?: number | undefined;
|
|
214
214
|
}>;
|
|
215
215
|
}>, "strip", z.ZodTypeAny, {
|
|
216
|
-
type: "percentage";
|
|
217
216
|
code: string;
|
|
218
217
|
name: string;
|
|
218
|
+
type: "percentage";
|
|
219
219
|
rulesText: string;
|
|
220
220
|
rules: {
|
|
221
221
|
minimum?: number | undefined;
|
|
@@ -226,9 +226,9 @@ export declare const certificationDefinitionSchema: z.ZodDiscriminatedUnion<"typ
|
|
|
226
226
|
description?: string | undefined;
|
|
227
227
|
icon?: string | undefined;
|
|
228
228
|
}, {
|
|
229
|
-
type: "percentage";
|
|
230
229
|
code: string;
|
|
231
230
|
name: string;
|
|
231
|
+
type: "percentage";
|
|
232
232
|
rulesText: string;
|
|
233
233
|
rules: {
|
|
234
234
|
minimum?: number | undefined;
|
|
@@ -52,6 +52,7 @@ export declare const criteriaTreeElementTypeSchema: z.ZodEnum<["theme", "criteri
|
|
|
52
52
|
export declare const abstractElementSchema: z.ZodObject<{
|
|
53
53
|
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
54
54
|
title: z.ZodString;
|
|
55
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
55
56
|
code: z.ZodString;
|
|
56
57
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
57
58
|
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -139,8 +140,8 @@ export declare const abstractElementSchema: z.ZodObject<{
|
|
|
139
140
|
}>>;
|
|
140
141
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
141
142
|
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
type: "theme" | "criterion" | "task-group" | "task" | "task-item";
|
|
143
143
|
code: string;
|
|
144
|
+
type: "theme" | "criterion" | "task-group" | "task" | "task-item";
|
|
144
145
|
title: string;
|
|
145
146
|
data?: {
|
|
146
147
|
type?: "number" | "percentage" | undefined;
|
|
@@ -154,6 +155,7 @@ export declare const abstractElementSchema: z.ZodObject<{
|
|
|
154
155
|
step?: number | undefined;
|
|
155
156
|
readOnly?: boolean | undefined;
|
|
156
157
|
} | undefined;
|
|
158
|
+
longFormTitle?: string | undefined;
|
|
157
159
|
tags?: string[] | undefined;
|
|
158
160
|
documentation?: ({
|
|
159
161
|
type: "pdf";
|
|
@@ -172,8 +174,8 @@ export declare const abstractElementSchema: z.ZodObject<{
|
|
|
172
174
|
})[] | undefined;
|
|
173
175
|
sortOrder?: number | undefined;
|
|
174
176
|
}, {
|
|
175
|
-
type: "theme" | "criterion" | "task-group" | "task" | "task-item";
|
|
176
177
|
code: string;
|
|
178
|
+
type: "theme" | "criterion" | "task-group" | "task" | "task-item";
|
|
177
179
|
title: string;
|
|
178
180
|
data?: {
|
|
179
181
|
type?: "number" | "percentage" | undefined;
|
|
@@ -187,6 +189,7 @@ export declare const abstractElementSchema: z.ZodObject<{
|
|
|
187
189
|
step?: number | undefined;
|
|
188
190
|
readOnly?: boolean | undefined;
|
|
189
191
|
} | undefined;
|
|
192
|
+
longFormTitle?: string | undefined;
|
|
190
193
|
tags?: string[] | undefined;
|
|
191
194
|
documentation?: ({
|
|
192
195
|
type: "pdf";
|
|
@@ -44,6 +44,7 @@ exports.criteriaTreeElementTypeSchema = zod_1.z.enum([
|
|
|
44
44
|
exports.abstractElementSchema = zod_1.z.object({
|
|
45
45
|
type: exports.criteriaTreeElementTypeSchema,
|
|
46
46
|
title: zod_1.z.string(),
|
|
47
|
+
longFormTitle: zod_1.z.string().optional(),
|
|
47
48
|
code: zod_1.z.string(),
|
|
48
49
|
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
49
50
|
documentation: zod_1.z.array(documentation_1.documentationItemSchema).optional(),
|