@nakafa/aksara-contracts 6.5.0 → 7.0.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/assessment/catalog.d.ts +18 -5
- package/dist/assessment/catalog.js +18 -8
- package/dist/assessment/choice.d.ts +10 -0
- package/dist/assessment/closure.d.ts +2 -1
- package/dist/assessment/closure.js +43 -62
- package/dist/assessment/document.d.ts +18 -0
- package/dist/assessment/document.js +10 -0
- package/dist/assessment/figure.d.ts +47605 -1555
- package/dist/assessment/figure.js +14 -217
- package/dist/assessment/hash.d.ts +274 -4
- package/dist/assessment/inline.d.ts +25 -0
- package/dist/assessment/inline.js +22 -3
- package/dist/assessment/interaction.d.ts +10 -0
- package/dist/assessment/item.d.ts +864 -0
- package/dist/assessment/item.js +10 -2
- package/dist/assessment/locales.d.ts +10 -0
- package/dist/assessment/locales.js +58 -0
- package/dist/assessment/paper.d.ts +1349 -12
- package/dist/assessment/paper.js +93 -9
- package/dist/assessment/part.d.ts +5 -0
- package/dist/assessment/profile.d.ts +4 -4
- package/dist/assessment/rows.d.ts +1409 -0
- package/dist/assessment/rows.js +44 -0
- package/dist/assessment/scalar.d.ts +1 -1
- package/dist/assessment/scoring.d.ts +1 -1
- package/dist/assessment/snapshot.d.ts +372 -20
- package/dist/assessment/structure.d.ts +6 -0
- package/dist/assessment/structure.js +22 -2
- package/dist/locale.d.ts +9 -9
- package/dist/locale.js +4 -3
- package/dist/program/snapshot/hash.d.ts +2 -2
- package/dist/program/snapshot/spec.d.ts +2 -2
- package/dist/projection/material.d.ts +10 -0
- package/dist/projection/material.js +1 -1
- package/dist/quran/attribution.d.ts +2 -2
- package/dist/quran/identity.d.ts +31 -10
- package/dist/quran/identity.js +15 -3
- package/dist/quran/provenance.d.ts +16 -16
- package/dist/quran/provenance.js +4 -1
- package/dist/quran/snapshot/hash.d.ts +2 -2
- package/dist/quran/snapshot/row/hash.d.ts +48 -15
- package/dist/quran/snapshot/row.d.ts +18 -8
- package/dist/quran/snapshot/spec.d.ts +2 -2
- package/dist/quran/source.d.ts +17 -7
- package/dist/quran/source.js +13 -1
- package/dist/quran/spec.d.ts +4 -4
- package/dist/quran/spec.js +2 -1
- package/dist/release/current/evidence.d.ts +9 -9
- package/dist/release/current/state.d.ts +11 -11
- package/dist/release/hash.d.ts +2 -2
- package/dist/release/identity.d.ts +1 -1
- package/dist/release/lifecycle.d.ts +7 -7
- package/dist/release/policy.d.ts +1 -1
- package/dist/release/snapshot/data.d.ts +36 -11
- package/dist/release/snapshot/evidence/assessment.d.ts +1 -1
- package/dist/release/snapshot/evidence/program.d.ts +1 -1
- package/dist/release/snapshot/evidence/quran.d.ts +1 -1
- package/dist/release/snapshot/evidence.d.ts +3 -3
- package/dist/release/snapshot/verify.d.ts +179 -12
- package/dist/release/spec.d.ts +13 -13
- package/dist/release/verify.d.ts +2 -2
- package/dist/runtime/spec.d.ts +6 -6
- package/dist/runtime/verify.d.ts +4 -4
- package/dist/transport/group.d.ts +108 -33
- package/dist/transport/request.d.ts +1166 -114
- package/dist/transport/response.d.ts +64 -64
- package/dist/transport/snapshot.d.ts +72 -22
- package/dist/visual/base/layout.d.ts +27 -0
- package/dist/visual/base/layout.js +35 -0
- package/dist/visual/base/math.d.ts +523 -0
- package/dist/visual/base/math.js +72 -0
- package/dist/visual/base/media.d.ts +13 -0
- package/dist/visual/base/media.js +25 -0
- package/dist/visual/biology.d.ts +203 -0
- package/dist/visual/biology.js +108 -0
- package/dist/visual/card.d.ts +32 -0
- package/dist/visual/card.js +30 -0
- package/dist/visual/catalog.d.ts +28633 -0
- package/dist/visual/catalog.js +73 -0
- package/dist/visual/chemistry/atom.d.ts +79 -0
- package/dist/visual/chemistry/atom.js +109 -0
- package/dist/visual/chemistry/electron.d.ts +41 -0
- package/dist/visual/chemistry/electron.js +69 -0
- package/dist/visual/chemistry/laws.d.ts +86 -0
- package/dist/visual/chemistry/laws.js +117 -0
- package/dist/visual/chemistry/particles.d.ts +114 -0
- package/dist/visual/chemistry/particles.js +149 -0
- package/dist/visual/chemistry/periodic.d.ts +52 -0
- package/dist/visual/chemistry/periodic.js +85 -0
- package/dist/visual/chemistry/reaction.d.ts +60 -0
- package/dist/visual/chemistry/reaction.js +76 -0
- package/dist/visual/entry.d.ts +42 -0
- package/dist/visual/entry.js +48 -0
- package/dist/visual/mathematics/chart.d.ts +30 -0
- package/dist/{assessment → visual/mathematics}/chart.js +26 -18
- package/dist/visual/mathematics/charts.d.ts +118 -0
- package/dist/visual/mathematics/charts.js +100 -0
- package/dist/visual/mathematics/function.d.ts +82 -0
- package/dist/visual/mathematics/function.js +102 -0
- package/dist/visual/mathematics/geometry.d.ts +222 -0
- package/dist/visual/mathematics/geometry.js +81 -0
- package/dist/visual/mathematics/line.d.ts +179 -0
- package/dist/visual/mathematics/line.js +156 -0
- package/dist/visual/mathematics/number.d.ts +21 -0
- package/dist/visual/mathematics/number.js +53 -0
- package/dist/visual/physics/measurement.d.ts +66 -0
- package/dist/visual/physics/measurement.js +85 -0
- package/dist/visual/physics/motion.d.ts +85 -0
- package/dist/visual/physics/motion.js +110 -0
- package/dist/visual/physics/parabolic.d.ts +42 -0
- package/dist/visual/physics/parabolic.js +56 -0
- package/dist/visual/physics/velocity.d.ts +112 -0
- package/dist/visual/physics/velocity.js +144 -0
- package/dist/visual/politics.d.ts +92 -0
- package/dist/visual/politics.js +76 -0
- package/package.json +13 -5
- package/dist/assessment/chart.d.ts +0 -62
|
@@ -1,20 +1,41 @@
|
|
|
1
1
|
import { Effect, Schema } from "effect";
|
|
2
|
-
/** One
|
|
2
|
+
/** One language of a place: the language a learner reads it in and that item version's hash. */
|
|
3
|
+
export declare const PlacedVersionSchema: Schema.Struct<{
|
|
4
|
+
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
5
|
+
readonly language: Schema.brand<Schema.String, "@NakafaAI/AksaraContentLanguage">;
|
|
6
|
+
}>;
|
|
7
|
+
/**
|
|
8
|
+
* One place in a section: an item family and its version in each language of
|
|
9
|
+
* the section, in the section's order. A learner answers the place once, and
|
|
10
|
+
* may read it in any of those languages.
|
|
11
|
+
*/
|
|
3
12
|
export declare const PlacementSchema: Schema.Struct<{
|
|
4
13
|
readonly family: Schema.brand<Schema.String, "@NakafaAI/AksaraItemFamilyId">;
|
|
5
|
-
readonly
|
|
14
|
+
readonly versions: Schema.NonEmptyArray<Schema.Struct<{
|
|
15
|
+
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
16
|
+
readonly language: Schema.brand<Schema.String, "@NakafaAI/AksaraContentLanguage">;
|
|
17
|
+
}>>;
|
|
6
18
|
}>;
|
|
7
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* One section of a paper: the key of a section of the profile, the languages
|
|
21
|
+
* its questions are written in, the first being the one a learner starts in,
|
|
22
|
+
* and its places in order.
|
|
23
|
+
*/
|
|
8
24
|
export declare const PaperSectionSchema: Schema.Struct<{
|
|
25
|
+
readonly languages: Schema.NonEmptyArray<Schema.brand<Schema.String, "@NakafaAI/AksaraContentLanguage">>;
|
|
9
26
|
readonly placements: Schema.NonEmptyArray<Schema.Struct<{
|
|
10
27
|
readonly family: Schema.brand<Schema.String, "@NakafaAI/AksaraItemFamilyId">;
|
|
11
|
-
readonly
|
|
28
|
+
readonly versions: Schema.NonEmptyArray<Schema.Struct<{
|
|
29
|
+
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
30
|
+
readonly language: Schema.brand<Schema.String, "@NakafaAI/AksaraContentLanguage">;
|
|
31
|
+
}>>;
|
|
12
32
|
}>>;
|
|
13
33
|
readonly section: Schema.String;
|
|
14
34
|
}>;
|
|
15
35
|
/**
|
|
16
36
|
* A frozen paper: the profile it follows, by identifier and hash; the sections
|
|
17
|
-
* with their places in order, each place an item
|
|
37
|
+
* with their languages and their places in order, each place an item family
|
|
38
|
+
* with its version in every language of the section;
|
|
18
39
|
* and the stimulus versions that the items use, by identifier and hash. A
|
|
19
40
|
* paper is frozen and named by its content hash. A paper bundle carries
|
|
20
41
|
* prompts and stimuli only, never an answer key and never an explanation. A
|
|
@@ -29,9 +50,13 @@ export declare const PaperSchema: Schema.Struct<{
|
|
|
29
50
|
readonly id: Schema.brand<Schema.String, "@NakafaAI/AksaraExamProfileId">;
|
|
30
51
|
}>;
|
|
31
52
|
readonly sections: Schema.NonEmptyArray<Schema.Struct<{
|
|
53
|
+
readonly languages: Schema.NonEmptyArray<Schema.brand<Schema.String, "@NakafaAI/AksaraContentLanguage">>;
|
|
32
54
|
readonly placements: Schema.NonEmptyArray<Schema.Struct<{
|
|
33
55
|
readonly family: Schema.brand<Schema.String, "@NakafaAI/AksaraItemFamilyId">;
|
|
34
|
-
readonly
|
|
56
|
+
readonly versions: Schema.NonEmptyArray<Schema.Struct<{
|
|
57
|
+
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
58
|
+
readonly language: Schema.brand<Schema.String, "@NakafaAI/AksaraContentLanguage">;
|
|
59
|
+
}>>;
|
|
35
60
|
}>>;
|
|
36
61
|
readonly section: Schema.String;
|
|
37
62
|
}>>;
|
|
@@ -64,8 +89,8 @@ export declare class PaperStimuliMismatchError extends PaperStimuliMismatchError
|
|
|
64
89
|
* Requires a paper to list the stimulus versions that its item versions use,
|
|
65
90
|
* each once, and no other: the paper names the readings it uses and its items
|
|
66
91
|
* name theirs, and the two must agree. `versions` are the item versions that
|
|
67
|
-
* the places of the paper name,
|
|
68
|
-
* frozen.
|
|
92
|
+
* the places of the paper name, every language of every place. Run it before
|
|
93
|
+
* the paper is frozen.
|
|
69
94
|
*/
|
|
70
95
|
export declare const verifyPaperStimuli: (paper: {
|
|
71
96
|
readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPaperId">;
|
|
@@ -74,21 +99,47 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
74
99
|
readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraExamProfileId">;
|
|
75
100
|
};
|
|
76
101
|
readonly sections: readonly [{
|
|
102
|
+
readonly languages: readonly [string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">, ...(string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">)[]];
|
|
77
103
|
readonly placements: readonly [{
|
|
78
104
|
readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
|
|
79
|
-
readonly
|
|
105
|
+
readonly versions: readonly [{
|
|
106
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
107
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
108
|
+
}, ...{
|
|
109
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
110
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
111
|
+
}[]];
|
|
80
112
|
}, ...{
|
|
81
113
|
readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
|
|
82
|
-
readonly
|
|
114
|
+
readonly versions: readonly [{
|
|
115
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
116
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
117
|
+
}, ...{
|
|
118
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
119
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
120
|
+
}[]];
|
|
83
121
|
}[]];
|
|
84
122
|
readonly section: string;
|
|
85
123
|
}, ...{
|
|
124
|
+
readonly languages: readonly [string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">, ...(string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">)[]];
|
|
86
125
|
readonly placements: readonly [{
|
|
87
126
|
readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
|
|
88
|
-
readonly
|
|
127
|
+
readonly versions: readonly [{
|
|
128
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
129
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
130
|
+
}, ...{
|
|
131
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
132
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
133
|
+
}[]];
|
|
89
134
|
}, ...{
|
|
90
135
|
readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
|
|
91
|
-
readonly
|
|
136
|
+
readonly versions: readonly [{
|
|
137
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
138
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
139
|
+
}, ...{
|
|
140
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
141
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
142
|
+
}[]];
|
|
92
143
|
}[]];
|
|
93
144
|
readonly section: string;
|
|
94
145
|
}[]];
|
|
@@ -206,6 +257,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
206
257
|
readonly href: string;
|
|
207
258
|
};
|
|
208
259
|
readonly type: "link";
|
|
260
|
+
} | {
|
|
261
|
+
readonly attrs: {
|
|
262
|
+
readonly variant: "success" | "warning" | null;
|
|
263
|
+
};
|
|
264
|
+
readonly type: "highlight";
|
|
209
265
|
}, ...({
|
|
210
266
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
211
267
|
} | {
|
|
@@ -213,6 +269,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
213
269
|
readonly href: string;
|
|
214
270
|
};
|
|
215
271
|
readonly type: "link";
|
|
272
|
+
} | {
|
|
273
|
+
readonly attrs: {
|
|
274
|
+
readonly variant: "success" | "warning" | null;
|
|
275
|
+
};
|
|
276
|
+
readonly type: "highlight";
|
|
216
277
|
})[]];
|
|
217
278
|
readonly text: string;
|
|
218
279
|
readonly type: "text";
|
|
@@ -229,6 +290,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
229
290
|
readonly href: string;
|
|
230
291
|
};
|
|
231
292
|
readonly type: "link";
|
|
293
|
+
} | {
|
|
294
|
+
readonly attrs: {
|
|
295
|
+
readonly variant: "success" | "warning" | null;
|
|
296
|
+
};
|
|
297
|
+
readonly type: "highlight";
|
|
232
298
|
}, ...({
|
|
233
299
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
234
300
|
} | {
|
|
@@ -236,6 +302,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
236
302
|
readonly href: string;
|
|
237
303
|
};
|
|
238
304
|
readonly type: "link";
|
|
305
|
+
} | {
|
|
306
|
+
readonly attrs: {
|
|
307
|
+
readonly variant: "success" | "warning" | null;
|
|
308
|
+
};
|
|
309
|
+
readonly type: "highlight";
|
|
239
310
|
})[]];
|
|
240
311
|
readonly text: string;
|
|
241
312
|
readonly type: "text";
|
|
@@ -260,6 +331,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
260
331
|
readonly href: string;
|
|
261
332
|
};
|
|
262
333
|
readonly type: "link";
|
|
334
|
+
} | {
|
|
335
|
+
readonly attrs: {
|
|
336
|
+
readonly variant: "success" | "warning" | null;
|
|
337
|
+
};
|
|
338
|
+
readonly type: "highlight";
|
|
263
339
|
}, ...({
|
|
264
340
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
265
341
|
} | {
|
|
@@ -267,6 +343,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
267
343
|
readonly href: string;
|
|
268
344
|
};
|
|
269
345
|
readonly type: "link";
|
|
346
|
+
} | {
|
|
347
|
+
readonly attrs: {
|
|
348
|
+
readonly variant: "success" | "warning" | null;
|
|
349
|
+
};
|
|
350
|
+
readonly type: "highlight";
|
|
270
351
|
})[]];
|
|
271
352
|
readonly text: string;
|
|
272
353
|
readonly type: "text";
|
|
@@ -283,6 +364,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
283
364
|
readonly href: string;
|
|
284
365
|
};
|
|
285
366
|
readonly type: "link";
|
|
367
|
+
} | {
|
|
368
|
+
readonly attrs: {
|
|
369
|
+
readonly variant: "success" | "warning" | null;
|
|
370
|
+
};
|
|
371
|
+
readonly type: "highlight";
|
|
286
372
|
}, ...({
|
|
287
373
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
288
374
|
} | {
|
|
@@ -290,6 +376,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
290
376
|
readonly href: string;
|
|
291
377
|
};
|
|
292
378
|
readonly type: "link";
|
|
379
|
+
} | {
|
|
380
|
+
readonly attrs: {
|
|
381
|
+
readonly variant: "success" | "warning" | null;
|
|
382
|
+
};
|
|
383
|
+
readonly type: "highlight";
|
|
293
384
|
})[]];
|
|
294
385
|
readonly text: string;
|
|
295
386
|
readonly type: "text";
|
|
@@ -310,6 +401,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
310
401
|
readonly href: string;
|
|
311
402
|
};
|
|
312
403
|
readonly type: "link";
|
|
404
|
+
} | {
|
|
405
|
+
readonly attrs: {
|
|
406
|
+
readonly variant: "success" | "warning" | null;
|
|
407
|
+
};
|
|
408
|
+
readonly type: "highlight";
|
|
313
409
|
}, ...({
|
|
314
410
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
315
411
|
} | {
|
|
@@ -317,6 +413,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
317
413
|
readonly href: string;
|
|
318
414
|
};
|
|
319
415
|
readonly type: "link";
|
|
416
|
+
} | {
|
|
417
|
+
readonly attrs: {
|
|
418
|
+
readonly variant: "success" | "warning" | null;
|
|
419
|
+
};
|
|
420
|
+
readonly type: "highlight";
|
|
320
421
|
})[]];
|
|
321
422
|
readonly text: string;
|
|
322
423
|
readonly type: "text";
|
|
@@ -333,6 +434,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
333
434
|
readonly href: string;
|
|
334
435
|
};
|
|
335
436
|
readonly type: "link";
|
|
437
|
+
} | {
|
|
438
|
+
readonly attrs: {
|
|
439
|
+
readonly variant: "success" | "warning" | null;
|
|
440
|
+
};
|
|
441
|
+
readonly type: "highlight";
|
|
336
442
|
}, ...({
|
|
337
443
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
338
444
|
} | {
|
|
@@ -340,6 +446,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
340
446
|
readonly href: string;
|
|
341
447
|
};
|
|
342
448
|
readonly type: "link";
|
|
449
|
+
} | {
|
|
450
|
+
readonly attrs: {
|
|
451
|
+
readonly variant: "success" | "warning" | null;
|
|
452
|
+
};
|
|
453
|
+
readonly type: "highlight";
|
|
343
454
|
})[]];
|
|
344
455
|
readonly text: string;
|
|
345
456
|
readonly type: "text";
|
|
@@ -535,6 +646,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
535
646
|
readonly href: string;
|
|
536
647
|
};
|
|
537
648
|
readonly type: "link";
|
|
649
|
+
} | {
|
|
650
|
+
readonly attrs: {
|
|
651
|
+
readonly variant: "success" | "warning" | null;
|
|
652
|
+
};
|
|
653
|
+
readonly type: "highlight";
|
|
538
654
|
}, ...({
|
|
539
655
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
540
656
|
} | {
|
|
@@ -542,6 +658,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
542
658
|
readonly href: string;
|
|
543
659
|
};
|
|
544
660
|
readonly type: "link";
|
|
661
|
+
} | {
|
|
662
|
+
readonly attrs: {
|
|
663
|
+
readonly variant: "success" | "warning" | null;
|
|
664
|
+
};
|
|
665
|
+
readonly type: "highlight";
|
|
545
666
|
})[]];
|
|
546
667
|
readonly text: string;
|
|
547
668
|
readonly type: "text";
|
|
@@ -558,6 +679,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
558
679
|
readonly href: string;
|
|
559
680
|
};
|
|
560
681
|
readonly type: "link";
|
|
682
|
+
} | {
|
|
683
|
+
readonly attrs: {
|
|
684
|
+
readonly variant: "success" | "warning" | null;
|
|
685
|
+
};
|
|
686
|
+
readonly type: "highlight";
|
|
561
687
|
}, ...({
|
|
562
688
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
563
689
|
} | {
|
|
@@ -565,6 +691,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
565
691
|
readonly href: string;
|
|
566
692
|
};
|
|
567
693
|
readonly type: "link";
|
|
694
|
+
} | {
|
|
695
|
+
readonly attrs: {
|
|
696
|
+
readonly variant: "success" | "warning" | null;
|
|
697
|
+
};
|
|
698
|
+
readonly type: "highlight";
|
|
568
699
|
})[]];
|
|
569
700
|
readonly text: string;
|
|
570
701
|
readonly type: "text";
|
|
@@ -589,6 +720,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
589
720
|
readonly href: string;
|
|
590
721
|
};
|
|
591
722
|
readonly type: "link";
|
|
723
|
+
} | {
|
|
724
|
+
readonly attrs: {
|
|
725
|
+
readonly variant: "success" | "warning" | null;
|
|
726
|
+
};
|
|
727
|
+
readonly type: "highlight";
|
|
592
728
|
}, ...({
|
|
593
729
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
594
730
|
} | {
|
|
@@ -596,6 +732,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
596
732
|
readonly href: string;
|
|
597
733
|
};
|
|
598
734
|
readonly type: "link";
|
|
735
|
+
} | {
|
|
736
|
+
readonly attrs: {
|
|
737
|
+
readonly variant: "success" | "warning" | null;
|
|
738
|
+
};
|
|
739
|
+
readonly type: "highlight";
|
|
599
740
|
})[]];
|
|
600
741
|
readonly text: string;
|
|
601
742
|
readonly type: "text";
|
|
@@ -612,6 +753,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
612
753
|
readonly href: string;
|
|
613
754
|
};
|
|
614
755
|
readonly type: "link";
|
|
756
|
+
} | {
|
|
757
|
+
readonly attrs: {
|
|
758
|
+
readonly variant: "success" | "warning" | null;
|
|
759
|
+
};
|
|
760
|
+
readonly type: "highlight";
|
|
615
761
|
}, ...({
|
|
616
762
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
617
763
|
} | {
|
|
@@ -619,6 +765,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
619
765
|
readonly href: string;
|
|
620
766
|
};
|
|
621
767
|
readonly type: "link";
|
|
768
|
+
} | {
|
|
769
|
+
readonly attrs: {
|
|
770
|
+
readonly variant: "success" | "warning" | null;
|
|
771
|
+
};
|
|
772
|
+
readonly type: "highlight";
|
|
622
773
|
})[]];
|
|
623
774
|
readonly text: string;
|
|
624
775
|
readonly type: "text";
|
|
@@ -639,6 +790,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
639
790
|
readonly href: string;
|
|
640
791
|
};
|
|
641
792
|
readonly type: "link";
|
|
793
|
+
} | {
|
|
794
|
+
readonly attrs: {
|
|
795
|
+
readonly variant: "success" | "warning" | null;
|
|
796
|
+
};
|
|
797
|
+
readonly type: "highlight";
|
|
642
798
|
}, ...({
|
|
643
799
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
644
800
|
} | {
|
|
@@ -646,6 +802,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
646
802
|
readonly href: string;
|
|
647
803
|
};
|
|
648
804
|
readonly type: "link";
|
|
805
|
+
} | {
|
|
806
|
+
readonly attrs: {
|
|
807
|
+
readonly variant: "success" | "warning" | null;
|
|
808
|
+
};
|
|
809
|
+
readonly type: "highlight";
|
|
649
810
|
})[]];
|
|
650
811
|
readonly text: string;
|
|
651
812
|
readonly type: "text";
|
|
@@ -662,6 +823,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
662
823
|
readonly href: string;
|
|
663
824
|
};
|
|
664
825
|
readonly type: "link";
|
|
826
|
+
} | {
|
|
827
|
+
readonly attrs: {
|
|
828
|
+
readonly variant: "success" | "warning" | null;
|
|
829
|
+
};
|
|
830
|
+
readonly type: "highlight";
|
|
665
831
|
}, ...({
|
|
666
832
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
667
833
|
} | {
|
|
@@ -669,6 +835,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
669
835
|
readonly href: string;
|
|
670
836
|
};
|
|
671
837
|
readonly type: "link";
|
|
838
|
+
} | {
|
|
839
|
+
readonly attrs: {
|
|
840
|
+
readonly variant: "success" | "warning" | null;
|
|
841
|
+
};
|
|
842
|
+
readonly type: "highlight";
|
|
672
843
|
})[]];
|
|
673
844
|
readonly text: string;
|
|
674
845
|
readonly type: "text";
|
|
@@ -816,4 +987,1170 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
816
987
|
};
|
|
817
988
|
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
818
989
|
}[]) => Effect.Effect<undefined, PaperStimuliMismatchError, never>;
|
|
990
|
+
/** Why a place of a paper does not hold one item in every language of its section. */
|
|
991
|
+
export declare const PaperPlaceReasonSchema: Schema.Literals<readonly ["key", "structure", "version"]>;
|
|
992
|
+
declare const PaperPlaceMismatchError_base: Schema.Class<PaperPlaceMismatchError, Schema.TaggedStruct<"PaperPlaceMismatchError", {
|
|
993
|
+
readonly family: Schema.brand<Schema.String, "@NakafaAI/AksaraItemFamilyId">;
|
|
994
|
+
readonly reason: Schema.Literals<readonly ["key", "structure", "version"]>;
|
|
995
|
+
}>, import("effect/Cause").YieldableError & {
|
|
996
|
+
readonly brand: unique symbol;
|
|
997
|
+
}>;
|
|
998
|
+
/**
|
|
999
|
+
* A place names a version that is not of its family or not in the language it
|
|
1000
|
+
* claims (`version`), its versions differ in more than words (`structure`), or
|
|
1001
|
+
* their answer keys do (`key`).
|
|
1002
|
+
*/
|
|
1003
|
+
export declare class PaperPlaceMismatchError extends PaperPlaceMismatchError_base {
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* Requires every place of a paper to hold one item in every language of its
|
|
1007
|
+
* section: each placed version is of the place's family and written in the
|
|
1008
|
+
* language it is placed for, the versions share one interaction structure, and
|
|
1009
|
+
* their answer keys agree on every answer apart from the texts a learner may
|
|
1010
|
+
* type and the words of a rubric. A learner answers a place once, so a switch
|
|
1011
|
+
* of language never changes what is asked or how it is graded. `versions` and
|
|
1012
|
+
* `keys` are the item versions and keys that the places name.
|
|
1013
|
+
*/
|
|
1014
|
+
export declare const verifyPaperPlaces: (paper: {
|
|
1015
|
+
readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPaperId">;
|
|
1016
|
+
readonly profile: {
|
|
1017
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
1018
|
+
readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraExamProfileId">;
|
|
1019
|
+
};
|
|
1020
|
+
readonly sections: readonly [{
|
|
1021
|
+
readonly languages: readonly [string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">, ...(string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">)[]];
|
|
1022
|
+
readonly placements: readonly [{
|
|
1023
|
+
readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
|
|
1024
|
+
readonly versions: readonly [{
|
|
1025
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
1026
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
1027
|
+
}, ...{
|
|
1028
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
1029
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
1030
|
+
}[]];
|
|
1031
|
+
}, ...{
|
|
1032
|
+
readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
|
|
1033
|
+
readonly versions: readonly [{
|
|
1034
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
1035
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
1036
|
+
}, ...{
|
|
1037
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
1038
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
1039
|
+
}[]];
|
|
1040
|
+
}[]];
|
|
1041
|
+
readonly section: string;
|
|
1042
|
+
}, ...{
|
|
1043
|
+
readonly languages: readonly [string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">, ...(string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">)[]];
|
|
1044
|
+
readonly placements: readonly [{
|
|
1045
|
+
readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
|
|
1046
|
+
readonly versions: readonly [{
|
|
1047
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
1048
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
1049
|
+
}, ...{
|
|
1050
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
1051
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
1052
|
+
}[]];
|
|
1053
|
+
}, ...{
|
|
1054
|
+
readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
|
|
1055
|
+
readonly versions: readonly [{
|
|
1056
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
1057
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
1058
|
+
}, ...{
|
|
1059
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
1060
|
+
readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
1061
|
+
}[]];
|
|
1062
|
+
}[]];
|
|
1063
|
+
readonly section: string;
|
|
1064
|
+
}[]];
|
|
1065
|
+
readonly stimuli: readonly {
|
|
1066
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
1067
|
+
readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraStimulusId">;
|
|
1068
|
+
}[];
|
|
1069
|
+
}, versions: readonly {
|
|
1070
|
+
readonly deliveryLanguage: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
|
|
1071
|
+
readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
|
|
1072
|
+
readonly interactions: readonly [{
|
|
1073
|
+
readonly id: string;
|
|
1074
|
+
readonly label: string;
|
|
1075
|
+
readonly kind: "choice";
|
|
1076
|
+
readonly maxChoices: number;
|
|
1077
|
+
readonly minChoices: number;
|
|
1078
|
+
readonly options: readonly {
|
|
1079
|
+
readonly id: string;
|
|
1080
|
+
readonly label: {
|
|
1081
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1082
|
+
readonly type: "doc";
|
|
1083
|
+
};
|
|
1084
|
+
}[];
|
|
1085
|
+
readonly shuffle: boolean;
|
|
1086
|
+
} | {
|
|
1087
|
+
readonly id: string;
|
|
1088
|
+
readonly label: string;
|
|
1089
|
+
readonly columns: readonly {
|
|
1090
|
+
readonly id: string;
|
|
1091
|
+
readonly label: {
|
|
1092
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1093
|
+
readonly type: "doc";
|
|
1094
|
+
};
|
|
1095
|
+
}[];
|
|
1096
|
+
readonly kind: "matrix";
|
|
1097
|
+
readonly shuffle: boolean;
|
|
1098
|
+
readonly statements: readonly [{
|
|
1099
|
+
readonly id: string;
|
|
1100
|
+
readonly label: {
|
|
1101
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1102
|
+
readonly type: "doc";
|
|
1103
|
+
};
|
|
1104
|
+
}, ...{
|
|
1105
|
+
readonly id: string;
|
|
1106
|
+
readonly label: {
|
|
1107
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1108
|
+
readonly type: "doc";
|
|
1109
|
+
};
|
|
1110
|
+
}[]];
|
|
1111
|
+
} | {
|
|
1112
|
+
readonly id: string;
|
|
1113
|
+
readonly label: string;
|
|
1114
|
+
readonly kind: "match";
|
|
1115
|
+
readonly shuffle: boolean;
|
|
1116
|
+
readonly sources: readonly [{
|
|
1117
|
+
readonly id: string;
|
|
1118
|
+
readonly label: {
|
|
1119
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1120
|
+
readonly type: "doc";
|
|
1121
|
+
};
|
|
1122
|
+
readonly maxMatches: number;
|
|
1123
|
+
}, ...{
|
|
1124
|
+
readonly id: string;
|
|
1125
|
+
readonly label: {
|
|
1126
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1127
|
+
readonly type: "doc";
|
|
1128
|
+
};
|
|
1129
|
+
readonly maxMatches: number;
|
|
1130
|
+
}[]];
|
|
1131
|
+
readonly targets: readonly [{
|
|
1132
|
+
readonly id: string;
|
|
1133
|
+
readonly label: {
|
|
1134
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1135
|
+
readonly type: "doc";
|
|
1136
|
+
};
|
|
1137
|
+
readonly maxMatches: number;
|
|
1138
|
+
}, ...{
|
|
1139
|
+
readonly id: string;
|
|
1140
|
+
readonly label: {
|
|
1141
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1142
|
+
readonly type: "doc";
|
|
1143
|
+
};
|
|
1144
|
+
readonly maxMatches: number;
|
|
1145
|
+
}[]];
|
|
1146
|
+
} | {
|
|
1147
|
+
readonly id: string;
|
|
1148
|
+
readonly label: string;
|
|
1149
|
+
readonly items: readonly {
|
|
1150
|
+
readonly id: string;
|
|
1151
|
+
readonly label: {
|
|
1152
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1153
|
+
readonly type: "doc";
|
|
1154
|
+
};
|
|
1155
|
+
}[];
|
|
1156
|
+
readonly kind: "order";
|
|
1157
|
+
readonly maxChoices: number;
|
|
1158
|
+
readonly minChoices: number;
|
|
1159
|
+
readonly shuffle: boolean;
|
|
1160
|
+
} | {
|
|
1161
|
+
readonly id: string;
|
|
1162
|
+
readonly label: string;
|
|
1163
|
+
readonly kind: "inlineChoice";
|
|
1164
|
+
readonly options: readonly {
|
|
1165
|
+
readonly id: string;
|
|
1166
|
+
readonly label: readonly [{
|
|
1167
|
+
readonly attrs: {
|
|
1168
|
+
readonly latex: string;
|
|
1169
|
+
};
|
|
1170
|
+
readonly type: "mathInline";
|
|
1171
|
+
} | {
|
|
1172
|
+
readonly marks?: readonly [{
|
|
1173
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1174
|
+
} | {
|
|
1175
|
+
readonly attrs: {
|
|
1176
|
+
readonly href: string;
|
|
1177
|
+
};
|
|
1178
|
+
readonly type: "link";
|
|
1179
|
+
} | {
|
|
1180
|
+
readonly attrs: {
|
|
1181
|
+
readonly variant: "success" | "warning" | null;
|
|
1182
|
+
};
|
|
1183
|
+
readonly type: "highlight";
|
|
1184
|
+
}, ...({
|
|
1185
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1186
|
+
} | {
|
|
1187
|
+
readonly attrs: {
|
|
1188
|
+
readonly href: string;
|
|
1189
|
+
};
|
|
1190
|
+
readonly type: "link";
|
|
1191
|
+
} | {
|
|
1192
|
+
readonly attrs: {
|
|
1193
|
+
readonly variant: "success" | "warning" | null;
|
|
1194
|
+
};
|
|
1195
|
+
readonly type: "highlight";
|
|
1196
|
+
})[]];
|
|
1197
|
+
readonly text: string;
|
|
1198
|
+
readonly type: "text";
|
|
1199
|
+
}, ...({
|
|
1200
|
+
readonly attrs: {
|
|
1201
|
+
readonly latex: string;
|
|
1202
|
+
};
|
|
1203
|
+
readonly type: "mathInline";
|
|
1204
|
+
} | {
|
|
1205
|
+
readonly marks?: readonly [{
|
|
1206
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1207
|
+
} | {
|
|
1208
|
+
readonly attrs: {
|
|
1209
|
+
readonly href: string;
|
|
1210
|
+
};
|
|
1211
|
+
readonly type: "link";
|
|
1212
|
+
} | {
|
|
1213
|
+
readonly attrs: {
|
|
1214
|
+
readonly variant: "success" | "warning" | null;
|
|
1215
|
+
};
|
|
1216
|
+
readonly type: "highlight";
|
|
1217
|
+
}, ...({
|
|
1218
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1219
|
+
} | {
|
|
1220
|
+
readonly attrs: {
|
|
1221
|
+
readonly href: string;
|
|
1222
|
+
};
|
|
1223
|
+
readonly type: "link";
|
|
1224
|
+
} | {
|
|
1225
|
+
readonly attrs: {
|
|
1226
|
+
readonly variant: "success" | "warning" | null;
|
|
1227
|
+
};
|
|
1228
|
+
readonly type: "highlight";
|
|
1229
|
+
})[]];
|
|
1230
|
+
readonly text: string;
|
|
1231
|
+
readonly type: "text";
|
|
1232
|
+
})[]];
|
|
1233
|
+
}[];
|
|
1234
|
+
readonly shuffle: boolean;
|
|
1235
|
+
} | {
|
|
1236
|
+
readonly id: string;
|
|
1237
|
+
readonly label: string;
|
|
1238
|
+
readonly choices: readonly [{
|
|
1239
|
+
readonly id: string;
|
|
1240
|
+
readonly label: readonly [{
|
|
1241
|
+
readonly attrs: {
|
|
1242
|
+
readonly latex: string;
|
|
1243
|
+
};
|
|
1244
|
+
readonly type: "mathInline";
|
|
1245
|
+
} | {
|
|
1246
|
+
readonly marks?: readonly [{
|
|
1247
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1248
|
+
} | {
|
|
1249
|
+
readonly attrs: {
|
|
1250
|
+
readonly href: string;
|
|
1251
|
+
};
|
|
1252
|
+
readonly type: "link";
|
|
1253
|
+
} | {
|
|
1254
|
+
readonly attrs: {
|
|
1255
|
+
readonly variant: "success" | "warning" | null;
|
|
1256
|
+
};
|
|
1257
|
+
readonly type: "highlight";
|
|
1258
|
+
}, ...({
|
|
1259
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1260
|
+
} | {
|
|
1261
|
+
readonly attrs: {
|
|
1262
|
+
readonly href: string;
|
|
1263
|
+
};
|
|
1264
|
+
readonly type: "link";
|
|
1265
|
+
} | {
|
|
1266
|
+
readonly attrs: {
|
|
1267
|
+
readonly variant: "success" | "warning" | null;
|
|
1268
|
+
};
|
|
1269
|
+
readonly type: "highlight";
|
|
1270
|
+
})[]];
|
|
1271
|
+
readonly text: string;
|
|
1272
|
+
readonly type: "text";
|
|
1273
|
+
}, ...({
|
|
1274
|
+
readonly attrs: {
|
|
1275
|
+
readonly latex: string;
|
|
1276
|
+
};
|
|
1277
|
+
readonly type: "mathInline";
|
|
1278
|
+
} | {
|
|
1279
|
+
readonly marks?: readonly [{
|
|
1280
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1281
|
+
} | {
|
|
1282
|
+
readonly attrs: {
|
|
1283
|
+
readonly href: string;
|
|
1284
|
+
};
|
|
1285
|
+
readonly type: "link";
|
|
1286
|
+
} | {
|
|
1287
|
+
readonly attrs: {
|
|
1288
|
+
readonly variant: "success" | "warning" | null;
|
|
1289
|
+
};
|
|
1290
|
+
readonly type: "highlight";
|
|
1291
|
+
}, ...({
|
|
1292
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1293
|
+
} | {
|
|
1294
|
+
readonly attrs: {
|
|
1295
|
+
readonly href: string;
|
|
1296
|
+
};
|
|
1297
|
+
readonly type: "link";
|
|
1298
|
+
} | {
|
|
1299
|
+
readonly attrs: {
|
|
1300
|
+
readonly variant: "success" | "warning" | null;
|
|
1301
|
+
};
|
|
1302
|
+
readonly type: "highlight";
|
|
1303
|
+
})[]];
|
|
1304
|
+
readonly text: string;
|
|
1305
|
+
readonly type: "text";
|
|
1306
|
+
})[]];
|
|
1307
|
+
readonly maxMatches: number;
|
|
1308
|
+
}, ...{
|
|
1309
|
+
readonly id: string;
|
|
1310
|
+
readonly label: readonly [{
|
|
1311
|
+
readonly attrs: {
|
|
1312
|
+
readonly latex: string;
|
|
1313
|
+
};
|
|
1314
|
+
readonly type: "mathInline";
|
|
1315
|
+
} | {
|
|
1316
|
+
readonly marks?: readonly [{
|
|
1317
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1318
|
+
} | {
|
|
1319
|
+
readonly attrs: {
|
|
1320
|
+
readonly href: string;
|
|
1321
|
+
};
|
|
1322
|
+
readonly type: "link";
|
|
1323
|
+
} | {
|
|
1324
|
+
readonly attrs: {
|
|
1325
|
+
readonly variant: "success" | "warning" | null;
|
|
1326
|
+
};
|
|
1327
|
+
readonly type: "highlight";
|
|
1328
|
+
}, ...({
|
|
1329
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1330
|
+
} | {
|
|
1331
|
+
readonly attrs: {
|
|
1332
|
+
readonly href: string;
|
|
1333
|
+
};
|
|
1334
|
+
readonly type: "link";
|
|
1335
|
+
} | {
|
|
1336
|
+
readonly attrs: {
|
|
1337
|
+
readonly variant: "success" | "warning" | null;
|
|
1338
|
+
};
|
|
1339
|
+
readonly type: "highlight";
|
|
1340
|
+
})[]];
|
|
1341
|
+
readonly text: string;
|
|
1342
|
+
readonly type: "text";
|
|
1343
|
+
}, ...({
|
|
1344
|
+
readonly attrs: {
|
|
1345
|
+
readonly latex: string;
|
|
1346
|
+
};
|
|
1347
|
+
readonly type: "mathInline";
|
|
1348
|
+
} | {
|
|
1349
|
+
readonly marks?: readonly [{
|
|
1350
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1351
|
+
} | {
|
|
1352
|
+
readonly attrs: {
|
|
1353
|
+
readonly href: string;
|
|
1354
|
+
};
|
|
1355
|
+
readonly type: "link";
|
|
1356
|
+
} | {
|
|
1357
|
+
readonly attrs: {
|
|
1358
|
+
readonly variant: "success" | "warning" | null;
|
|
1359
|
+
};
|
|
1360
|
+
readonly type: "highlight";
|
|
1361
|
+
}, ...({
|
|
1362
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1363
|
+
} | {
|
|
1364
|
+
readonly attrs: {
|
|
1365
|
+
readonly href: string;
|
|
1366
|
+
};
|
|
1367
|
+
readonly type: "link";
|
|
1368
|
+
} | {
|
|
1369
|
+
readonly attrs: {
|
|
1370
|
+
readonly variant: "success" | "warning" | null;
|
|
1371
|
+
};
|
|
1372
|
+
readonly type: "highlight";
|
|
1373
|
+
})[]];
|
|
1374
|
+
readonly text: string;
|
|
1375
|
+
readonly type: "text";
|
|
1376
|
+
})[]];
|
|
1377
|
+
readonly maxMatches: number;
|
|
1378
|
+
}[]];
|
|
1379
|
+
readonly gaps: readonly [{
|
|
1380
|
+
readonly id: string;
|
|
1381
|
+
}, ...{
|
|
1382
|
+
readonly id: string;
|
|
1383
|
+
}[]];
|
|
1384
|
+
readonly kind: "gapMatch";
|
|
1385
|
+
readonly shuffle: boolean;
|
|
1386
|
+
} | {
|
|
1387
|
+
readonly id: string;
|
|
1388
|
+
readonly label: string;
|
|
1389
|
+
readonly kind: "mathEntry";
|
|
1390
|
+
} | {
|
|
1391
|
+
readonly id: string;
|
|
1392
|
+
readonly label: string;
|
|
1393
|
+
readonly areas: readonly ({
|
|
1394
|
+
readonly id: string;
|
|
1395
|
+
readonly label: string;
|
|
1396
|
+
readonly coords: readonly [number, number, number, number];
|
|
1397
|
+
readonly shape: "rect";
|
|
1398
|
+
} | {
|
|
1399
|
+
readonly id: string;
|
|
1400
|
+
readonly label: string;
|
|
1401
|
+
readonly coords: readonly [number, number, number];
|
|
1402
|
+
readonly shape: "circle";
|
|
1403
|
+
} | {
|
|
1404
|
+
readonly id: string;
|
|
1405
|
+
readonly label: string;
|
|
1406
|
+
readonly coords: readonly [number, number, number, number];
|
|
1407
|
+
readonly shape: "ellipse";
|
|
1408
|
+
} | {
|
|
1409
|
+
readonly id: string;
|
|
1410
|
+
readonly label: string;
|
|
1411
|
+
readonly coords: readonly [number, number, number, number, number, number, ...number[]];
|
|
1412
|
+
readonly shape: "poly";
|
|
1413
|
+
} | {
|
|
1414
|
+
readonly id: string;
|
|
1415
|
+
readonly label: string;
|
|
1416
|
+
readonly shape: "default";
|
|
1417
|
+
})[];
|
|
1418
|
+
readonly image: {
|
|
1419
|
+
readonly alt: string;
|
|
1420
|
+
readonly asset: string;
|
|
1421
|
+
readonly height: number;
|
|
1422
|
+
readonly width: number;
|
|
1423
|
+
};
|
|
1424
|
+
readonly kind: "hotspot";
|
|
1425
|
+
readonly maxChoices: number;
|
|
1426
|
+
readonly minChoices: number;
|
|
1427
|
+
} | {
|
|
1428
|
+
readonly id: string;
|
|
1429
|
+
readonly label: string;
|
|
1430
|
+
readonly expectedLength?: number;
|
|
1431
|
+
readonly kind: "textEntry";
|
|
1432
|
+
} | {
|
|
1433
|
+
readonly id: string;
|
|
1434
|
+
readonly label: string;
|
|
1435
|
+
readonly acceptsFractions: boolean;
|
|
1436
|
+
readonly kind: "numericEntry";
|
|
1437
|
+
readonly unit?: string;
|
|
1438
|
+
} | {
|
|
1439
|
+
readonly id: string;
|
|
1440
|
+
readonly label: string;
|
|
1441
|
+
readonly expectedLines?: number;
|
|
1442
|
+
readonly kind: "extendedText";
|
|
1443
|
+
} | {
|
|
1444
|
+
readonly id: string;
|
|
1445
|
+
readonly label: string;
|
|
1446
|
+
readonly count: number;
|
|
1447
|
+
readonly frame: {
|
|
1448
|
+
readonly kind: "cartesian";
|
|
1449
|
+
readonly x: {
|
|
1450
|
+
readonly max: number;
|
|
1451
|
+
readonly min: number;
|
|
1452
|
+
};
|
|
1453
|
+
readonly y: {
|
|
1454
|
+
readonly max: number;
|
|
1455
|
+
readonly min: number;
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
readonly kind: "graphPoint";
|
|
1459
|
+
readonly placing: "lines" | "points";
|
|
1460
|
+
readonly snap?: number;
|
|
1461
|
+
}, ...({
|
|
1462
|
+
readonly id: string;
|
|
1463
|
+
readonly label: string;
|
|
1464
|
+
readonly kind: "choice";
|
|
1465
|
+
readonly maxChoices: number;
|
|
1466
|
+
readonly minChoices: number;
|
|
1467
|
+
readonly options: readonly {
|
|
1468
|
+
readonly id: string;
|
|
1469
|
+
readonly label: {
|
|
1470
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1471
|
+
readonly type: "doc";
|
|
1472
|
+
};
|
|
1473
|
+
}[];
|
|
1474
|
+
readonly shuffle: boolean;
|
|
1475
|
+
} | {
|
|
1476
|
+
readonly id: string;
|
|
1477
|
+
readonly label: string;
|
|
1478
|
+
readonly columns: readonly {
|
|
1479
|
+
readonly id: string;
|
|
1480
|
+
readonly label: {
|
|
1481
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1482
|
+
readonly type: "doc";
|
|
1483
|
+
};
|
|
1484
|
+
}[];
|
|
1485
|
+
readonly kind: "matrix";
|
|
1486
|
+
readonly shuffle: boolean;
|
|
1487
|
+
readonly statements: readonly [{
|
|
1488
|
+
readonly id: string;
|
|
1489
|
+
readonly label: {
|
|
1490
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1491
|
+
readonly type: "doc";
|
|
1492
|
+
};
|
|
1493
|
+
}, ...{
|
|
1494
|
+
readonly id: string;
|
|
1495
|
+
readonly label: {
|
|
1496
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1497
|
+
readonly type: "doc";
|
|
1498
|
+
};
|
|
1499
|
+
}[]];
|
|
1500
|
+
} | {
|
|
1501
|
+
readonly id: string;
|
|
1502
|
+
readonly label: string;
|
|
1503
|
+
readonly kind: "match";
|
|
1504
|
+
readonly shuffle: boolean;
|
|
1505
|
+
readonly sources: readonly [{
|
|
1506
|
+
readonly id: string;
|
|
1507
|
+
readonly label: {
|
|
1508
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1509
|
+
readonly type: "doc";
|
|
1510
|
+
};
|
|
1511
|
+
readonly maxMatches: number;
|
|
1512
|
+
}, ...{
|
|
1513
|
+
readonly id: string;
|
|
1514
|
+
readonly label: {
|
|
1515
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1516
|
+
readonly type: "doc";
|
|
1517
|
+
};
|
|
1518
|
+
readonly maxMatches: number;
|
|
1519
|
+
}[]];
|
|
1520
|
+
readonly targets: readonly [{
|
|
1521
|
+
readonly id: string;
|
|
1522
|
+
readonly label: {
|
|
1523
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1524
|
+
readonly type: "doc";
|
|
1525
|
+
};
|
|
1526
|
+
readonly maxMatches: number;
|
|
1527
|
+
}, ...{
|
|
1528
|
+
readonly id: string;
|
|
1529
|
+
readonly label: {
|
|
1530
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1531
|
+
readonly type: "doc";
|
|
1532
|
+
};
|
|
1533
|
+
readonly maxMatches: number;
|
|
1534
|
+
}[]];
|
|
1535
|
+
} | {
|
|
1536
|
+
readonly id: string;
|
|
1537
|
+
readonly label: string;
|
|
1538
|
+
readonly items: readonly {
|
|
1539
|
+
readonly id: string;
|
|
1540
|
+
readonly label: {
|
|
1541
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1542
|
+
readonly type: "doc";
|
|
1543
|
+
};
|
|
1544
|
+
}[];
|
|
1545
|
+
readonly kind: "order";
|
|
1546
|
+
readonly maxChoices: number;
|
|
1547
|
+
readonly minChoices: number;
|
|
1548
|
+
readonly shuffle: boolean;
|
|
1549
|
+
} | {
|
|
1550
|
+
readonly id: string;
|
|
1551
|
+
readonly label: string;
|
|
1552
|
+
readonly kind: "inlineChoice";
|
|
1553
|
+
readonly options: readonly {
|
|
1554
|
+
readonly id: string;
|
|
1555
|
+
readonly label: readonly [{
|
|
1556
|
+
readonly attrs: {
|
|
1557
|
+
readonly latex: string;
|
|
1558
|
+
};
|
|
1559
|
+
readonly type: "mathInline";
|
|
1560
|
+
} | {
|
|
1561
|
+
readonly marks?: readonly [{
|
|
1562
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1563
|
+
} | {
|
|
1564
|
+
readonly attrs: {
|
|
1565
|
+
readonly href: string;
|
|
1566
|
+
};
|
|
1567
|
+
readonly type: "link";
|
|
1568
|
+
} | {
|
|
1569
|
+
readonly attrs: {
|
|
1570
|
+
readonly variant: "success" | "warning" | null;
|
|
1571
|
+
};
|
|
1572
|
+
readonly type: "highlight";
|
|
1573
|
+
}, ...({
|
|
1574
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1575
|
+
} | {
|
|
1576
|
+
readonly attrs: {
|
|
1577
|
+
readonly href: string;
|
|
1578
|
+
};
|
|
1579
|
+
readonly type: "link";
|
|
1580
|
+
} | {
|
|
1581
|
+
readonly attrs: {
|
|
1582
|
+
readonly variant: "success" | "warning" | null;
|
|
1583
|
+
};
|
|
1584
|
+
readonly type: "highlight";
|
|
1585
|
+
})[]];
|
|
1586
|
+
readonly text: string;
|
|
1587
|
+
readonly type: "text";
|
|
1588
|
+
}, ...({
|
|
1589
|
+
readonly attrs: {
|
|
1590
|
+
readonly latex: string;
|
|
1591
|
+
};
|
|
1592
|
+
readonly type: "mathInline";
|
|
1593
|
+
} | {
|
|
1594
|
+
readonly marks?: readonly [{
|
|
1595
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1596
|
+
} | {
|
|
1597
|
+
readonly attrs: {
|
|
1598
|
+
readonly href: string;
|
|
1599
|
+
};
|
|
1600
|
+
readonly type: "link";
|
|
1601
|
+
} | {
|
|
1602
|
+
readonly attrs: {
|
|
1603
|
+
readonly variant: "success" | "warning" | null;
|
|
1604
|
+
};
|
|
1605
|
+
readonly type: "highlight";
|
|
1606
|
+
}, ...({
|
|
1607
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1608
|
+
} | {
|
|
1609
|
+
readonly attrs: {
|
|
1610
|
+
readonly href: string;
|
|
1611
|
+
};
|
|
1612
|
+
readonly type: "link";
|
|
1613
|
+
} | {
|
|
1614
|
+
readonly attrs: {
|
|
1615
|
+
readonly variant: "success" | "warning" | null;
|
|
1616
|
+
};
|
|
1617
|
+
readonly type: "highlight";
|
|
1618
|
+
})[]];
|
|
1619
|
+
readonly text: string;
|
|
1620
|
+
readonly type: "text";
|
|
1621
|
+
})[]];
|
|
1622
|
+
}[];
|
|
1623
|
+
readonly shuffle: boolean;
|
|
1624
|
+
} | {
|
|
1625
|
+
readonly id: string;
|
|
1626
|
+
readonly label: string;
|
|
1627
|
+
readonly choices: readonly [{
|
|
1628
|
+
readonly id: string;
|
|
1629
|
+
readonly label: readonly [{
|
|
1630
|
+
readonly attrs: {
|
|
1631
|
+
readonly latex: string;
|
|
1632
|
+
};
|
|
1633
|
+
readonly type: "mathInline";
|
|
1634
|
+
} | {
|
|
1635
|
+
readonly marks?: readonly [{
|
|
1636
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1637
|
+
} | {
|
|
1638
|
+
readonly attrs: {
|
|
1639
|
+
readonly href: string;
|
|
1640
|
+
};
|
|
1641
|
+
readonly type: "link";
|
|
1642
|
+
} | {
|
|
1643
|
+
readonly attrs: {
|
|
1644
|
+
readonly variant: "success" | "warning" | null;
|
|
1645
|
+
};
|
|
1646
|
+
readonly type: "highlight";
|
|
1647
|
+
}, ...({
|
|
1648
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1649
|
+
} | {
|
|
1650
|
+
readonly attrs: {
|
|
1651
|
+
readonly href: string;
|
|
1652
|
+
};
|
|
1653
|
+
readonly type: "link";
|
|
1654
|
+
} | {
|
|
1655
|
+
readonly attrs: {
|
|
1656
|
+
readonly variant: "success" | "warning" | null;
|
|
1657
|
+
};
|
|
1658
|
+
readonly type: "highlight";
|
|
1659
|
+
})[]];
|
|
1660
|
+
readonly text: string;
|
|
1661
|
+
readonly type: "text";
|
|
1662
|
+
}, ...({
|
|
1663
|
+
readonly attrs: {
|
|
1664
|
+
readonly latex: string;
|
|
1665
|
+
};
|
|
1666
|
+
readonly type: "mathInline";
|
|
1667
|
+
} | {
|
|
1668
|
+
readonly marks?: readonly [{
|
|
1669
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1670
|
+
} | {
|
|
1671
|
+
readonly attrs: {
|
|
1672
|
+
readonly href: string;
|
|
1673
|
+
};
|
|
1674
|
+
readonly type: "link";
|
|
1675
|
+
} | {
|
|
1676
|
+
readonly attrs: {
|
|
1677
|
+
readonly variant: "success" | "warning" | null;
|
|
1678
|
+
};
|
|
1679
|
+
readonly type: "highlight";
|
|
1680
|
+
}, ...({
|
|
1681
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1682
|
+
} | {
|
|
1683
|
+
readonly attrs: {
|
|
1684
|
+
readonly href: string;
|
|
1685
|
+
};
|
|
1686
|
+
readonly type: "link";
|
|
1687
|
+
} | {
|
|
1688
|
+
readonly attrs: {
|
|
1689
|
+
readonly variant: "success" | "warning" | null;
|
|
1690
|
+
};
|
|
1691
|
+
readonly type: "highlight";
|
|
1692
|
+
})[]];
|
|
1693
|
+
readonly text: string;
|
|
1694
|
+
readonly type: "text";
|
|
1695
|
+
})[]];
|
|
1696
|
+
readonly maxMatches: number;
|
|
1697
|
+
}, ...{
|
|
1698
|
+
readonly id: string;
|
|
1699
|
+
readonly label: readonly [{
|
|
1700
|
+
readonly attrs: {
|
|
1701
|
+
readonly latex: string;
|
|
1702
|
+
};
|
|
1703
|
+
readonly type: "mathInline";
|
|
1704
|
+
} | {
|
|
1705
|
+
readonly marks?: readonly [{
|
|
1706
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1707
|
+
} | {
|
|
1708
|
+
readonly attrs: {
|
|
1709
|
+
readonly href: string;
|
|
1710
|
+
};
|
|
1711
|
+
readonly type: "link";
|
|
1712
|
+
} | {
|
|
1713
|
+
readonly attrs: {
|
|
1714
|
+
readonly variant: "success" | "warning" | null;
|
|
1715
|
+
};
|
|
1716
|
+
readonly type: "highlight";
|
|
1717
|
+
}, ...({
|
|
1718
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1719
|
+
} | {
|
|
1720
|
+
readonly attrs: {
|
|
1721
|
+
readonly href: string;
|
|
1722
|
+
};
|
|
1723
|
+
readonly type: "link";
|
|
1724
|
+
} | {
|
|
1725
|
+
readonly attrs: {
|
|
1726
|
+
readonly variant: "success" | "warning" | null;
|
|
1727
|
+
};
|
|
1728
|
+
readonly type: "highlight";
|
|
1729
|
+
})[]];
|
|
1730
|
+
readonly text: string;
|
|
1731
|
+
readonly type: "text";
|
|
1732
|
+
}, ...({
|
|
1733
|
+
readonly attrs: {
|
|
1734
|
+
readonly latex: string;
|
|
1735
|
+
};
|
|
1736
|
+
readonly type: "mathInline";
|
|
1737
|
+
} | {
|
|
1738
|
+
readonly marks?: readonly [{
|
|
1739
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1740
|
+
} | {
|
|
1741
|
+
readonly attrs: {
|
|
1742
|
+
readonly href: string;
|
|
1743
|
+
};
|
|
1744
|
+
readonly type: "link";
|
|
1745
|
+
} | {
|
|
1746
|
+
readonly attrs: {
|
|
1747
|
+
readonly variant: "success" | "warning" | null;
|
|
1748
|
+
};
|
|
1749
|
+
readonly type: "highlight";
|
|
1750
|
+
}, ...({
|
|
1751
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
1752
|
+
} | {
|
|
1753
|
+
readonly attrs: {
|
|
1754
|
+
readonly href: string;
|
|
1755
|
+
};
|
|
1756
|
+
readonly type: "link";
|
|
1757
|
+
} | {
|
|
1758
|
+
readonly attrs: {
|
|
1759
|
+
readonly variant: "success" | "warning" | null;
|
|
1760
|
+
};
|
|
1761
|
+
readonly type: "highlight";
|
|
1762
|
+
})[]];
|
|
1763
|
+
readonly text: string;
|
|
1764
|
+
readonly type: "text";
|
|
1765
|
+
})[]];
|
|
1766
|
+
readonly maxMatches: number;
|
|
1767
|
+
}[]];
|
|
1768
|
+
readonly gaps: readonly [{
|
|
1769
|
+
readonly id: string;
|
|
1770
|
+
}, ...{
|
|
1771
|
+
readonly id: string;
|
|
1772
|
+
}[]];
|
|
1773
|
+
readonly kind: "gapMatch";
|
|
1774
|
+
readonly shuffle: boolean;
|
|
1775
|
+
} | {
|
|
1776
|
+
readonly id: string;
|
|
1777
|
+
readonly label: string;
|
|
1778
|
+
readonly kind: "mathEntry";
|
|
1779
|
+
} | {
|
|
1780
|
+
readonly id: string;
|
|
1781
|
+
readonly label: string;
|
|
1782
|
+
readonly areas: readonly ({
|
|
1783
|
+
readonly id: string;
|
|
1784
|
+
readonly label: string;
|
|
1785
|
+
readonly coords: readonly [number, number, number, number];
|
|
1786
|
+
readonly shape: "rect";
|
|
1787
|
+
} | {
|
|
1788
|
+
readonly id: string;
|
|
1789
|
+
readonly label: string;
|
|
1790
|
+
readonly coords: readonly [number, number, number];
|
|
1791
|
+
readonly shape: "circle";
|
|
1792
|
+
} | {
|
|
1793
|
+
readonly id: string;
|
|
1794
|
+
readonly label: string;
|
|
1795
|
+
readonly coords: readonly [number, number, number, number];
|
|
1796
|
+
readonly shape: "ellipse";
|
|
1797
|
+
} | {
|
|
1798
|
+
readonly id: string;
|
|
1799
|
+
readonly label: string;
|
|
1800
|
+
readonly coords: readonly [number, number, number, number, number, number, ...number[]];
|
|
1801
|
+
readonly shape: "poly";
|
|
1802
|
+
} | {
|
|
1803
|
+
readonly id: string;
|
|
1804
|
+
readonly label: string;
|
|
1805
|
+
readonly shape: "default";
|
|
1806
|
+
})[];
|
|
1807
|
+
readonly image: {
|
|
1808
|
+
readonly alt: string;
|
|
1809
|
+
readonly asset: string;
|
|
1810
|
+
readonly height: number;
|
|
1811
|
+
readonly width: number;
|
|
1812
|
+
};
|
|
1813
|
+
readonly kind: "hotspot";
|
|
1814
|
+
readonly maxChoices: number;
|
|
1815
|
+
readonly minChoices: number;
|
|
1816
|
+
} | {
|
|
1817
|
+
readonly id: string;
|
|
1818
|
+
readonly label: string;
|
|
1819
|
+
readonly expectedLength?: number;
|
|
1820
|
+
readonly kind: "textEntry";
|
|
1821
|
+
} | {
|
|
1822
|
+
readonly id: string;
|
|
1823
|
+
readonly label: string;
|
|
1824
|
+
readonly acceptsFractions: boolean;
|
|
1825
|
+
readonly kind: "numericEntry";
|
|
1826
|
+
readonly unit?: string;
|
|
1827
|
+
} | {
|
|
1828
|
+
readonly id: string;
|
|
1829
|
+
readonly label: string;
|
|
1830
|
+
readonly expectedLines?: number;
|
|
1831
|
+
readonly kind: "extendedText";
|
|
1832
|
+
} | {
|
|
1833
|
+
readonly id: string;
|
|
1834
|
+
readonly label: string;
|
|
1835
|
+
readonly count: number;
|
|
1836
|
+
readonly frame: {
|
|
1837
|
+
readonly kind: "cartesian";
|
|
1838
|
+
readonly x: {
|
|
1839
|
+
readonly max: number;
|
|
1840
|
+
readonly min: number;
|
|
1841
|
+
};
|
|
1842
|
+
readonly y: {
|
|
1843
|
+
readonly max: number;
|
|
1844
|
+
readonly min: number;
|
|
1845
|
+
};
|
|
1846
|
+
};
|
|
1847
|
+
readonly kind: "graphPoint";
|
|
1848
|
+
readonly placing: "lines" | "points";
|
|
1849
|
+
readonly snap?: number;
|
|
1850
|
+
})[]];
|
|
1851
|
+
readonly joint?: {
|
|
1852
|
+
readonly levels: readonly [{
|
|
1853
|
+
readonly correct: readonly [string, ...string[]];
|
|
1854
|
+
readonly points: number;
|
|
1855
|
+
}, ...{
|
|
1856
|
+
readonly correct: readonly [string, ...string[]];
|
|
1857
|
+
readonly points: number;
|
|
1858
|
+
}[]];
|
|
1859
|
+
};
|
|
1860
|
+
readonly prompt: {
|
|
1861
|
+
readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
|
|
1862
|
+
readonly type: "doc";
|
|
1863
|
+
};
|
|
1864
|
+
readonly scoring: readonly {
|
|
1865
|
+
readonly interaction: string;
|
|
1866
|
+
readonly rule: {
|
|
1867
|
+
readonly kind: "allOrNothing";
|
|
1868
|
+
} | {
|
|
1869
|
+
readonly bands: readonly [{
|
|
1870
|
+
readonly points: number;
|
|
1871
|
+
readonly wrong: number;
|
|
1872
|
+
}, ...{
|
|
1873
|
+
readonly points: number;
|
|
1874
|
+
readonly wrong: number;
|
|
1875
|
+
}[]];
|
|
1876
|
+
readonly kind: "wrongParts";
|
|
1877
|
+
} | {
|
|
1878
|
+
readonly criteria: readonly [{
|
|
1879
|
+
readonly id: string;
|
|
1880
|
+
readonly label: string;
|
|
1881
|
+
readonly levels: readonly {
|
|
1882
|
+
readonly id: string;
|
|
1883
|
+
readonly label: string;
|
|
1884
|
+
readonly points: number;
|
|
1885
|
+
}[];
|
|
1886
|
+
}, ...{
|
|
1887
|
+
readonly id: string;
|
|
1888
|
+
readonly label: string;
|
|
1889
|
+
readonly levels: readonly {
|
|
1890
|
+
readonly id: string;
|
|
1891
|
+
readonly label: string;
|
|
1892
|
+
readonly points: number;
|
|
1893
|
+
}[];
|
|
1894
|
+
}[]];
|
|
1895
|
+
readonly kind: "rubric";
|
|
1896
|
+
} | {
|
|
1897
|
+
readonly floor: number;
|
|
1898
|
+
readonly kind: "perPart";
|
|
1899
|
+
readonly penaltyPerWrongPart?: number;
|
|
1900
|
+
readonly pointsPerPart: number;
|
|
1901
|
+
};
|
|
1902
|
+
}[];
|
|
1903
|
+
readonly stimulus?: {
|
|
1904
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
1905
|
+
readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraStimulusId">;
|
|
1906
|
+
};
|
|
1907
|
+
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
1908
|
+
}[], keys: readonly {
|
|
1909
|
+
readonly answers: readonly [{
|
|
1910
|
+
readonly interaction: string;
|
|
1911
|
+
readonly correct: readonly [string, ...string[]];
|
|
1912
|
+
readonly kind: "choice";
|
|
1913
|
+
} | {
|
|
1914
|
+
readonly interaction: string;
|
|
1915
|
+
readonly answers: readonly [{
|
|
1916
|
+
readonly column: string;
|
|
1917
|
+
readonly statement: string;
|
|
1918
|
+
}, ...{
|
|
1919
|
+
readonly column: string;
|
|
1920
|
+
readonly statement: string;
|
|
1921
|
+
}[]];
|
|
1922
|
+
readonly kind: "matrix";
|
|
1923
|
+
} | {
|
|
1924
|
+
readonly interaction: string;
|
|
1925
|
+
readonly kind: "match";
|
|
1926
|
+
readonly pairs: readonly [{
|
|
1927
|
+
readonly source: string;
|
|
1928
|
+
readonly target: string;
|
|
1929
|
+
}, ...{
|
|
1930
|
+
readonly source: string;
|
|
1931
|
+
readonly target: string;
|
|
1932
|
+
}[]];
|
|
1933
|
+
} | {
|
|
1934
|
+
readonly interaction: string;
|
|
1935
|
+
readonly kind: "order";
|
|
1936
|
+
readonly sequence: readonly [string, ...string[]];
|
|
1937
|
+
} | {
|
|
1938
|
+
readonly interaction: string;
|
|
1939
|
+
readonly correct: string;
|
|
1940
|
+
readonly kind: "inlineChoice";
|
|
1941
|
+
} | {
|
|
1942
|
+
readonly interaction: string;
|
|
1943
|
+
readonly accepted: {
|
|
1944
|
+
readonly acceptedAnswers: readonly [string, ...string[]];
|
|
1945
|
+
readonly collapseWhitespace: boolean;
|
|
1946
|
+
readonly ignoreCase: boolean;
|
|
1947
|
+
readonly kind: "text";
|
|
1948
|
+
};
|
|
1949
|
+
readonly kind: "textEntry";
|
|
1950
|
+
} | {
|
|
1951
|
+
readonly interaction: string;
|
|
1952
|
+
readonly expression: string;
|
|
1953
|
+
readonly kind: "mathEntry";
|
|
1954
|
+
} | {
|
|
1955
|
+
readonly interaction: string;
|
|
1956
|
+
readonly correct: readonly [string, ...string[]];
|
|
1957
|
+
readonly kind: "hotspot";
|
|
1958
|
+
} | {
|
|
1959
|
+
readonly interaction: string;
|
|
1960
|
+
readonly kind: "gapMatch";
|
|
1961
|
+
readonly pairs: readonly [{
|
|
1962
|
+
readonly choice: string;
|
|
1963
|
+
readonly gap: string;
|
|
1964
|
+
}, ...{
|
|
1965
|
+
readonly choice: string;
|
|
1966
|
+
readonly gap: string;
|
|
1967
|
+
}[]];
|
|
1968
|
+
} | {
|
|
1969
|
+
readonly interaction: string;
|
|
1970
|
+
readonly kind: "graphPoint";
|
|
1971
|
+
readonly target: {
|
|
1972
|
+
readonly kind: "points";
|
|
1973
|
+
readonly points: readonly [{
|
|
1974
|
+
readonly x: number;
|
|
1975
|
+
readonly y: number;
|
|
1976
|
+
}, ...{
|
|
1977
|
+
readonly x: number;
|
|
1978
|
+
readonly y: number;
|
|
1979
|
+
}[]];
|
|
1980
|
+
} | {
|
|
1981
|
+
readonly kind: "lines";
|
|
1982
|
+
readonly lines: readonly [{
|
|
1983
|
+
readonly through: readonly [{
|
|
1984
|
+
readonly x: number;
|
|
1985
|
+
readonly y: number;
|
|
1986
|
+
}, {
|
|
1987
|
+
readonly x: number;
|
|
1988
|
+
readonly y: number;
|
|
1989
|
+
}];
|
|
1990
|
+
}, ...{
|
|
1991
|
+
readonly through: readonly [{
|
|
1992
|
+
readonly x: number;
|
|
1993
|
+
readonly y: number;
|
|
1994
|
+
}, {
|
|
1995
|
+
readonly x: number;
|
|
1996
|
+
readonly y: number;
|
|
1997
|
+
}];
|
|
1998
|
+
}[]];
|
|
1999
|
+
};
|
|
2000
|
+
readonly tolerance: number;
|
|
2001
|
+
} | {
|
|
2002
|
+
readonly interaction: string;
|
|
2003
|
+
readonly criteria: readonly [{
|
|
2004
|
+
readonly criterion: string;
|
|
2005
|
+
readonly levels: readonly [{
|
|
2006
|
+
readonly descriptor: string;
|
|
2007
|
+
readonly level: string;
|
|
2008
|
+
}, ...{
|
|
2009
|
+
readonly descriptor: string;
|
|
2010
|
+
readonly level: string;
|
|
2011
|
+
}[]];
|
|
2012
|
+
}, ...{
|
|
2013
|
+
readonly criterion: string;
|
|
2014
|
+
readonly levels: readonly [{
|
|
2015
|
+
readonly descriptor: string;
|
|
2016
|
+
readonly level: string;
|
|
2017
|
+
}, ...{
|
|
2018
|
+
readonly descriptor: string;
|
|
2019
|
+
readonly level: string;
|
|
2020
|
+
}[]];
|
|
2021
|
+
}[]];
|
|
2022
|
+
readonly kind: "extendedText";
|
|
2023
|
+
} | {
|
|
2024
|
+
readonly interaction: string;
|
|
2025
|
+
readonly kind: "numericEntry";
|
|
2026
|
+
readonly tolerance?: {
|
|
2027
|
+
readonly kind: "absolute" | "relative";
|
|
2028
|
+
readonly value: string;
|
|
2029
|
+
};
|
|
2030
|
+
readonly value: string;
|
|
2031
|
+
}, ...({
|
|
2032
|
+
readonly interaction: string;
|
|
2033
|
+
readonly correct: readonly [string, ...string[]];
|
|
2034
|
+
readonly kind: "choice";
|
|
2035
|
+
} | {
|
|
2036
|
+
readonly interaction: string;
|
|
2037
|
+
readonly answers: readonly [{
|
|
2038
|
+
readonly column: string;
|
|
2039
|
+
readonly statement: string;
|
|
2040
|
+
}, ...{
|
|
2041
|
+
readonly column: string;
|
|
2042
|
+
readonly statement: string;
|
|
2043
|
+
}[]];
|
|
2044
|
+
readonly kind: "matrix";
|
|
2045
|
+
} | {
|
|
2046
|
+
readonly interaction: string;
|
|
2047
|
+
readonly kind: "match";
|
|
2048
|
+
readonly pairs: readonly [{
|
|
2049
|
+
readonly source: string;
|
|
2050
|
+
readonly target: string;
|
|
2051
|
+
}, ...{
|
|
2052
|
+
readonly source: string;
|
|
2053
|
+
readonly target: string;
|
|
2054
|
+
}[]];
|
|
2055
|
+
} | {
|
|
2056
|
+
readonly interaction: string;
|
|
2057
|
+
readonly kind: "order";
|
|
2058
|
+
readonly sequence: readonly [string, ...string[]];
|
|
2059
|
+
} | {
|
|
2060
|
+
readonly interaction: string;
|
|
2061
|
+
readonly correct: string;
|
|
2062
|
+
readonly kind: "inlineChoice";
|
|
2063
|
+
} | {
|
|
2064
|
+
readonly interaction: string;
|
|
2065
|
+
readonly accepted: {
|
|
2066
|
+
readonly acceptedAnswers: readonly [string, ...string[]];
|
|
2067
|
+
readonly collapseWhitespace: boolean;
|
|
2068
|
+
readonly ignoreCase: boolean;
|
|
2069
|
+
readonly kind: "text";
|
|
2070
|
+
};
|
|
2071
|
+
readonly kind: "textEntry";
|
|
2072
|
+
} | {
|
|
2073
|
+
readonly interaction: string;
|
|
2074
|
+
readonly expression: string;
|
|
2075
|
+
readonly kind: "mathEntry";
|
|
2076
|
+
} | {
|
|
2077
|
+
readonly interaction: string;
|
|
2078
|
+
readonly correct: readonly [string, ...string[]];
|
|
2079
|
+
readonly kind: "hotspot";
|
|
2080
|
+
} | {
|
|
2081
|
+
readonly interaction: string;
|
|
2082
|
+
readonly kind: "gapMatch";
|
|
2083
|
+
readonly pairs: readonly [{
|
|
2084
|
+
readonly choice: string;
|
|
2085
|
+
readonly gap: string;
|
|
2086
|
+
}, ...{
|
|
2087
|
+
readonly choice: string;
|
|
2088
|
+
readonly gap: string;
|
|
2089
|
+
}[]];
|
|
2090
|
+
} | {
|
|
2091
|
+
readonly interaction: string;
|
|
2092
|
+
readonly kind: "graphPoint";
|
|
2093
|
+
readonly target: {
|
|
2094
|
+
readonly kind: "points";
|
|
2095
|
+
readonly points: readonly [{
|
|
2096
|
+
readonly x: number;
|
|
2097
|
+
readonly y: number;
|
|
2098
|
+
}, ...{
|
|
2099
|
+
readonly x: number;
|
|
2100
|
+
readonly y: number;
|
|
2101
|
+
}[]];
|
|
2102
|
+
} | {
|
|
2103
|
+
readonly kind: "lines";
|
|
2104
|
+
readonly lines: readonly [{
|
|
2105
|
+
readonly through: readonly [{
|
|
2106
|
+
readonly x: number;
|
|
2107
|
+
readonly y: number;
|
|
2108
|
+
}, {
|
|
2109
|
+
readonly x: number;
|
|
2110
|
+
readonly y: number;
|
|
2111
|
+
}];
|
|
2112
|
+
}, ...{
|
|
2113
|
+
readonly through: readonly [{
|
|
2114
|
+
readonly x: number;
|
|
2115
|
+
readonly y: number;
|
|
2116
|
+
}, {
|
|
2117
|
+
readonly x: number;
|
|
2118
|
+
readonly y: number;
|
|
2119
|
+
}];
|
|
2120
|
+
}[]];
|
|
2121
|
+
};
|
|
2122
|
+
readonly tolerance: number;
|
|
2123
|
+
} | {
|
|
2124
|
+
readonly interaction: string;
|
|
2125
|
+
readonly criteria: readonly [{
|
|
2126
|
+
readonly criterion: string;
|
|
2127
|
+
readonly levels: readonly [{
|
|
2128
|
+
readonly descriptor: string;
|
|
2129
|
+
readonly level: string;
|
|
2130
|
+
}, ...{
|
|
2131
|
+
readonly descriptor: string;
|
|
2132
|
+
readonly level: string;
|
|
2133
|
+
}[]];
|
|
2134
|
+
}, ...{
|
|
2135
|
+
readonly criterion: string;
|
|
2136
|
+
readonly levels: readonly [{
|
|
2137
|
+
readonly descriptor: string;
|
|
2138
|
+
readonly level: string;
|
|
2139
|
+
}, ...{
|
|
2140
|
+
readonly descriptor: string;
|
|
2141
|
+
readonly level: string;
|
|
2142
|
+
}[]];
|
|
2143
|
+
}[]];
|
|
2144
|
+
readonly kind: "extendedText";
|
|
2145
|
+
} | {
|
|
2146
|
+
readonly interaction: string;
|
|
2147
|
+
readonly kind: "numericEntry";
|
|
2148
|
+
readonly tolerance?: {
|
|
2149
|
+
readonly kind: "absolute" | "relative";
|
|
2150
|
+
readonly value: string;
|
|
2151
|
+
};
|
|
2152
|
+
readonly value: string;
|
|
2153
|
+
})[]];
|
|
2154
|
+
readonly version: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
2155
|
+
}[]) => Effect.Effect<undefined, PaperPlaceMismatchError, never>;
|
|
819
2156
|
export {};
|