@examplary/schemas 1.11.1 → 1.12.0
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/question-type/index.d.ts +2 -0
- package/dist/question-type/index.js +1 -0
- package/dist/question-type/question-type-capabilities.d.ts +5 -0
- package/dist/question-type/question-type-capabilities.js +10 -0
- package/dist/question-type/question-type.d.ts +3 -0
- package/dist/question-type/question-type.js +2 -0
- package/dist/schemas/question-type.json +11 -0
- package/package.json +1 -1
|
@@ -10,5 +10,7 @@ export * from "./question-type-grading-options";
|
|
|
10
10
|
export type * from "./question-type-grading-options";
|
|
11
11
|
export * from "./question-type-scanning-options";
|
|
12
12
|
export type * from "./question-type-scanning-options";
|
|
13
|
+
export * from "./question-type-capabilities";
|
|
14
|
+
export type * from "./question-type-capabilities";
|
|
13
15
|
export * from "./question-type-qti3";
|
|
14
16
|
export type * from "./question-type-qti3";
|
|
@@ -20,4 +20,5 @@ __exportStar(require("./question-type-components"), exports);
|
|
|
20
20
|
__exportStar(require("./question-type-generation-options"), exports);
|
|
21
21
|
__exportStar(require("./question-type-grading-options"), exports);
|
|
22
22
|
__exportStar(require("./question-type-scanning-options"), exports);
|
|
23
|
+
__exportStar(require("./question-type-capabilities"), exports);
|
|
23
24
|
__exportStar(require("./question-type-qti3"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuestionTypeCapabilitiesSchema = void 0;
|
|
4
|
+
var zod_1 = require("zod");
|
|
5
|
+
exports.QuestionTypeCapabilitiesSchema = zod_1.z.looseObject({
|
|
6
|
+
"answer-scanning": zod_1.z
|
|
7
|
+
.boolean()
|
|
8
|
+
.optional()
|
|
9
|
+
.describe("Whether this question type allows the student to scan an answer using their phone. Only supported for practice spaces."),
|
|
10
|
+
});
|
|
@@ -68,6 +68,9 @@ export declare const QuestionTypeSchema: z.ZodObject<{
|
|
|
68
68
|
}, z.core.$strict>>>;
|
|
69
69
|
public: z.ZodOptional<z.ZodBoolean>;
|
|
70
70
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
|
71
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
"answer-scanning": z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
}, z.core.$loose>>;
|
|
71
74
|
export: z.ZodOptional<z.ZodObject<{
|
|
72
75
|
qti3: z.ZodOptional<z.ZodObject<{
|
|
73
76
|
interaction: z.ZodObject<{
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.QuestionTypeSchema = void 0;
|
|
4
4
|
var zod_1 = require("zod");
|
|
5
|
+
var question_type_capabilities_1 = require("./question-type-capabilities");
|
|
5
6
|
var question_type_components_1 = require("./question-type-components");
|
|
6
7
|
var question_type_generation_options_1 = require("./question-type-generation-options");
|
|
7
8
|
var question_type_grading_options_1 = require("./question-type-grading-options");
|
|
@@ -74,6 +75,7 @@ exports.QuestionTypeSchema = zod_1.z
|
|
|
74
75
|
.record(zod_1.z.string(), translatable_1.Translatable)
|
|
75
76
|
.optional()
|
|
76
77
|
.describe("Custom translations for this question type"),
|
|
78
|
+
capabilities: question_type_capabilities_1.QuestionTypeCapabilitiesSchema.optional().describe("Capabilities of the question type for various operations"),
|
|
77
79
|
export: zod_1.z
|
|
78
80
|
.object({
|
|
79
81
|
qti3: question_type_qti3_1.Qti3Mapping.optional().describe("QTI 3.0 mapping configuration for transforming questions to QTI format"),
|
|
@@ -484,6 +484,17 @@
|
|
|
484
484
|
]
|
|
485
485
|
}
|
|
486
486
|
},
|
|
487
|
+
"capabilities": {
|
|
488
|
+
"description": "Capabilities of the question type for various operations",
|
|
489
|
+
"type": "object",
|
|
490
|
+
"properties": {
|
|
491
|
+
"answer-scanning": {
|
|
492
|
+
"description": "Whether this question type allows the student to scan an answer using their phone. Only supported for practice spaces.",
|
|
493
|
+
"type": "boolean"
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
"additionalProperties": {}
|
|
497
|
+
},
|
|
487
498
|
"export": {
|
|
488
499
|
"description": "Export configuration for various formats",
|
|
489
500
|
"type": "object",
|