@openframe-org/criteria-set-protocol 2.0.16 → 2.0.17
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/README.md +1 -1
- package/dist/index.js +17 -7
- package/dist/v1/schemas/certification.d.ts +8 -8
- package/dist/v1/schemas/common.d.ts +2 -2
- package/dist/v1/schemas/criteria-tree.d.ts +118 -166
- package/dist/v1/schemas/criterion.d.ts +20 -29
- package/dist/v1/schemas/metadata.d.ts +2 -2
- package/dist/v1/schemas/response.d.ts +2 -2
- package/dist/v1/schemas/task-group.d.ts +12 -19
- package/dist/v1/schemas/task-item.d.ts +2 -5
- package/dist/v1/schemas/task-item.js +0 -1
- package/dist/v1/schemas/task.d.ts +6 -11
- package/dist/v1/schemas/theme.d.ts +30 -41
- package/dist/v1/types/express.d.ts +0 -1
- package/dist/v1/utils.d.ts +6 -761
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<img alt="
|
|
1
|
+
<img alt="Openframe ApS" src="https://openframe-public.s3.eu-west-1.amazonaws.com/assets/logo-text-google-admin.png" width="200" />
|
|
2
2
|
|
|
3
3
|
# Criteria Set Protocol
|
|
4
4
|
|
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;
|
|
@@ -140,8 +140,8 @@ export declare const abstractElementSchema: z.ZodObject<{
|
|
|
140
140
|
}>>;
|
|
141
141
|
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
142
142
|
}, "strip", z.ZodTypeAny, {
|
|
143
|
-
type: "theme" | "criterion" | "task-group" | "task" | "task-item";
|
|
144
143
|
code: string;
|
|
144
|
+
type: "theme" | "criterion" | "task-group" | "task" | "task-item";
|
|
145
145
|
title: string;
|
|
146
146
|
data?: {
|
|
147
147
|
type?: "number" | "percentage" | undefined;
|
|
@@ -174,8 +174,8 @@ export declare const abstractElementSchema: z.ZodObject<{
|
|
|
174
174
|
})[] | undefined;
|
|
175
175
|
sortOrder?: number | undefined;
|
|
176
176
|
}, {
|
|
177
|
-
type: "theme" | "criterion" | "task-group" | "task" | "task-item";
|
|
178
177
|
code: string;
|
|
178
|
+
type: "theme" | "criterion" | "task-group" | "task" | "task-item";
|
|
179
179
|
title: string;
|
|
180
180
|
data?: {
|
|
181
181
|
type?: "number" | "percentage" | undefined;
|