@pie-qti/element-schemas 0.1.1
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/.turbo/turbo-build.log +2 -0
- package/CHANGELOG.md +7 -0
- package/README.md +107 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +80 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/drag-in-the-blank.json +1181 -0
- package/dist/schemas/ebsr.json +2911 -0
- package/dist/schemas/explicit-constructed-response.json +1130 -0
- package/dist/schemas/extended-text-entry.json +954 -0
- package/dist/schemas/hotspot.json +1204 -0
- package/dist/schemas/image-cloze-association.json +1085 -0
- package/dist/schemas/inline-dropdown.json +1152 -0
- package/dist/schemas/match-list.json +170 -0
- package/dist/schemas/match.json +1530 -0
- package/dist/schemas/multiple-choice.json +1332 -0
- package/dist/schemas/passage.json +775 -0
- package/dist/schemas/placement-ordering.json +1613 -0
- package/dist/schemas/select-text.json +1248 -0
- package/package.json +34 -0
- package/schema-versions.json +80 -0
- package/scripts/check-schema-versions.ts +112 -0
- package/scripts/sync-schemas.ts +171 -0
- package/src/index.ts +94 -0
- package/src/schemas/drag-in-the-blank.json +1181 -0
- package/src/schemas/ebsr.json +2911 -0
- package/src/schemas/explicit-constructed-response.json +1130 -0
- package/src/schemas/extended-text-entry.json +954 -0
- package/src/schemas/hotspot.json +1204 -0
- package/src/schemas/image-cloze-association.json +1085 -0
- package/src/schemas/inline-dropdown.json +1152 -0
- package/src/schemas/match-list.json +170 -0
- package/src/schemas/match.json +1530 -0
- package/src/schemas/multiple-choice.json +1332 -0
- package/src/schemas/passage.json +775 -0
- package/src/schemas/placement-ordering.json +1613 -0
- package/src/schemas/select-text.json +1248 -0
- package/tsconfig.json +9 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Model for the @pie-elements/match-list Interaction",
|
|
3
|
+
"additionalProperties": false,
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"prompt": {
|
|
7
|
+
"description": "The question prompt or item stem",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"title": "prompt"
|
|
10
|
+
},
|
|
11
|
+
"prompts": {
|
|
12
|
+
"description": "The question prompts that are going to be displayed.",
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"description": "Multiple question prompts",
|
|
16
|
+
"title": "Prompt",
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"id": {
|
|
20
|
+
"description": "Identifier for a question prompt",
|
|
21
|
+
"type": [
|
|
22
|
+
"string",
|
|
23
|
+
"number"
|
|
24
|
+
],
|
|
25
|
+
"title": "id"
|
|
26
|
+
},
|
|
27
|
+
"title": {
|
|
28
|
+
"description": "Text that will be displayed in the question prompt row",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"title": "title"
|
|
31
|
+
},
|
|
32
|
+
"relatedAnswer": {
|
|
33
|
+
"description": "Id for the correct answer for this question prompt",
|
|
34
|
+
"type": [
|
|
35
|
+
"string",
|
|
36
|
+
"number"
|
|
37
|
+
],
|
|
38
|
+
"title": "relatedAnswer"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": [
|
|
42
|
+
"id",
|
|
43
|
+
"relatedAnswer",
|
|
44
|
+
"title"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"title": "prompts"
|
|
48
|
+
},
|
|
49
|
+
"answers": {
|
|
50
|
+
"description": "The answer rows that are going to be displayed.",
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"description": "Multiple answers",
|
|
54
|
+
"title": "Answer",
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"id": {
|
|
58
|
+
"description": "Identifier for an answer row",
|
|
59
|
+
"type": [
|
|
60
|
+
"string",
|
|
61
|
+
"number"
|
|
62
|
+
],
|
|
63
|
+
"title": "id"
|
|
64
|
+
},
|
|
65
|
+
"title": {
|
|
66
|
+
"description": "Text that will be displayed in the answer row",
|
|
67
|
+
"type": "string",
|
|
68
|
+
"title": "title"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": [
|
|
72
|
+
"id",
|
|
73
|
+
"title"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"title": "answers"
|
|
77
|
+
},
|
|
78
|
+
"lockChoiceOrder": {
|
|
79
|
+
"description": "Indicates if answers should be locked in order according to the model or if they should be shuffed\ntrue - order is respected according to model\nfalse - order is shuffled",
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"title": "lockChoiceOrder"
|
|
82
|
+
},
|
|
83
|
+
"duplicates": {
|
|
84
|
+
"description": "Indicates if duplicates are allowed",
|
|
85
|
+
"type": "boolean",
|
|
86
|
+
"title": "duplicates"
|
|
87
|
+
},
|
|
88
|
+
"language": {
|
|
89
|
+
"description": "Indicates the language of the component\nSupported options: en, es, en_US, en-US, es_ES, es-ES, es_MX, es-MX",
|
|
90
|
+
"type": "string",
|
|
91
|
+
"title": "language"
|
|
92
|
+
},
|
|
93
|
+
"id": {
|
|
94
|
+
"description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
|
|
95
|
+
"type": "string",
|
|
96
|
+
"title": "id"
|
|
97
|
+
},
|
|
98
|
+
"element": {
|
|
99
|
+
"description": "The html Element tag name",
|
|
100
|
+
"type": "string",
|
|
101
|
+
"title": "element"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": [
|
|
105
|
+
"answers",
|
|
106
|
+
"element",
|
|
107
|
+
"id",
|
|
108
|
+
"prompts"
|
|
109
|
+
],
|
|
110
|
+
"definitions": {
|
|
111
|
+
"Prompt": {
|
|
112
|
+
"description": "Multiple question prompts",
|
|
113
|
+
"title": "Prompt",
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"id": {
|
|
117
|
+
"description": "Identifier for a question prompt",
|
|
118
|
+
"type": [
|
|
119
|
+
"string",
|
|
120
|
+
"number"
|
|
121
|
+
],
|
|
122
|
+
"title": "id"
|
|
123
|
+
},
|
|
124
|
+
"title": {
|
|
125
|
+
"description": "Text that will be displayed in the question prompt row",
|
|
126
|
+
"type": "string",
|
|
127
|
+
"title": "title"
|
|
128
|
+
},
|
|
129
|
+
"relatedAnswer": {
|
|
130
|
+
"description": "Id for the correct answer for this question prompt",
|
|
131
|
+
"type": [
|
|
132
|
+
"string",
|
|
133
|
+
"number"
|
|
134
|
+
],
|
|
135
|
+
"title": "relatedAnswer"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"required": [
|
|
139
|
+
"id",
|
|
140
|
+
"relatedAnswer",
|
|
141
|
+
"title"
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"Answer": {
|
|
145
|
+
"description": "Multiple answers",
|
|
146
|
+
"title": "Answer",
|
|
147
|
+
"type": "object",
|
|
148
|
+
"properties": {
|
|
149
|
+
"id": {
|
|
150
|
+
"description": "Identifier for an answer row",
|
|
151
|
+
"type": [
|
|
152
|
+
"string",
|
|
153
|
+
"number"
|
|
154
|
+
],
|
|
155
|
+
"title": "id"
|
|
156
|
+
},
|
|
157
|
+
"title": {
|
|
158
|
+
"description": "Text that will be displayed in the answer row",
|
|
159
|
+
"type": "string",
|
|
160
|
+
"title": "title"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"required": [
|
|
164
|
+
"id",
|
|
165
|
+
"title"
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
170
|
+
}
|