@intellectif/lk-core 1.9.0 → 1.10.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.
@@ -138,6 +138,19 @@ export function validationCases(seeds) {
138
138
  add(`validateItemGroup|${label}`, (core) => validation(core.validateItemGroup(input)));
139
139
  add(`validateItemGroupDraft|${label}`, (core) => issuesOf(core.validateItemGroupDraft(input)));
140
140
  }
141
+ // Interactive videos (1.10.0): one holding a spoken answer, with every
142
+ // variant, and one holding a written response, which a video refuses.
143
+ for (const [name, group] of Object.entries(seeds.timelineGroups ?? {})) {
144
+ const inputs = name === 'written-response' ? [['seed', group]] : variants(group);
145
+ for (const [label, input] of inputs) {
146
+ add(`validateItemGroup|timeline|${name}|${label}`, (core) =>
147
+ validation(core.validateItemGroup(input)),
148
+ );
149
+ add(`validateItemGroupDraft|timeline|${name}|${label}`, (core) =>
150
+ issuesOf(core.validateItemGroupDraft(input)),
151
+ );
152
+ }
153
+ }
141
154
  for (const [name, assessment] of Object.entries(seeds.assessments)) {
142
155
  for (const [label, input] of variants(assessment)) {
143
156
  add(`validateSpeechAssessment|${name}|${label}`, (core) =>