@altnovatrail/spec 0.18.15 → 0.18.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/canvas/index.d.ts +12 -5
- package/exportv3/index.d.ts +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ function show(task: open.Task, manifest: open.Manifest) {
|
|
|
54
54
|
- **`@altnovatrail/spec/consentagev1`** holds the types of version 1 of the table of the age of digital consent: the table, `ConsentAge`, with each country's `Entry`, the `Country` codes, and the test vectors of reading the table, `ReadingVector`, whose table is any JSON value, `unknown`, and of the category, `CategoryVector`. A type gives the shape alone: a reader checks the table against its schema and then against the rules of reading, section 5 of the part's text, and computes a learner's category as the part's text says.
|
|
55
55
|
- **`@altnovatrail/spec/exportv3`** holds the types of version 3 of the format of the export: `Manifest`, `Account`, `Profile` with its `Attempt`, `Submission`, `Choice`, `EvidenceEntry`, `StateEntry` and `WorkInfo`, `Device`, `Work`, and the test vectors of reading an export, `ReadingVector`. A type gives the shape alone: a reader checks each file against its schema and then the export against the rules of reading, section 5 of the part's text.
|
|
56
56
|
- **`@altnovatrail/spec/canvas`** holds the types of `<novatrail-canvas>`:
|
|
57
|
-
- `CanvasElement`, which describes the element's properties `tool`, `task`, `workedExample`, `demoState`, `manifest`, `media`, `history`, `marks` and `filled` and its
|
|
57
|
+
- `CanvasElement`, which describes the element's properties `tool`, `task`, `workedExample`, `demoState`, `manifest`, `media`, `history`, `marks` and `filled` and its methods `exportWork()` and `exportPicture()`, the PNG of the work that the app stores;
|
|
58
58
|
- `Media`, the function by which the consumer gives the files of the pictures: the canvas goes to no network;
|
|
59
59
|
- the events `toolchange`, `historychange` and `demochange`, with `CanvasEventMap` naming them;
|
|
60
60
|
- the state of a worked example's demo, `DemoState`;
|
package/canvas/index.d.ts
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* The types of the element `<novatrail-canvas>`: the contract of canvas and app (R36). The element
|
|
6
6
|
* takes a task and its module's manifest, the files of its pictures and the learner's history of
|
|
7
|
-
* writing, by properties; it gives the work for checking
|
|
8
|
-
* by events. In place of a task it may show a lesson's worked example,
|
|
9
|
-
* part by part with its buttons, and how far they have gone is a
|
|
10
|
-
* types of the task, of the worked example and of the manifest are
|
|
11
|
-
* formatv0/open.
|
|
7
|
+
* writing, by properties; it gives the work for checking and the work's picture by its methods, and
|
|
8
|
+
* tells what the learner did by events. In place of a task it may show a lesson's worked example,
|
|
9
|
+
* whose demo the learner opens part by part with its buttons, and how far they have gone is a
|
|
10
|
+
* property and an event too. The types of the task, of the worked example and of the manifest are
|
|
11
|
+
* the module format's open views, formatv0/open.
|
|
12
12
|
*
|
|
13
13
|
* It takes the tutor's marks of a submission too, by a property, with the submission's context:
|
|
14
14
|
* their kind and their place come from the contract between app and api, novatrail.api.v1, whose
|
|
@@ -413,4 +413,11 @@ export interface CanvasElement extends HTMLElement {
|
|
|
413
413
|
* worked example give `null`.
|
|
414
414
|
*/
|
|
415
415
|
exportWork(): Promise<ExportedWork | null>;
|
|
416
|
+
/**
|
|
417
|
+
* The picture of the work, which app puts as the stored work's `picture` (contracts/README.md,
|
|
418
|
+
* section 15): always a Blob of a PNG, with no condition, of the strokes of the whole surface — the
|
|
419
|
+
* sheet or the workbook's page — as it is when it is called, within the limit of a stored work
|
|
420
|
+
* there. Its size and its colours are canvas's (R83 canvas).
|
|
421
|
+
*/
|
|
422
|
+
exportPicture(): Promise<Blob>;
|
|
416
423
|
}
|
package/exportv3/index.d.ts
CHANGED
|
@@ -919,7 +919,8 @@ export interface Submission {
|
|
|
919
919
|
*/
|
|
920
920
|
readonly items: readonly SubmissionItem[];
|
|
921
921
|
/**
|
|
922
|
-
* The observation merged from the two readings
|
|
922
|
+
* The observation of the reading: merged from the two readings in the reading mode pair, the one
|
|
923
|
+
* reader's in the mode single; absent when only taps were sent.
|
|
923
924
|
*/
|
|
924
925
|
readonly observation?: unknown;
|
|
925
926
|
/**
|
|
@@ -1176,11 +1177,14 @@ export interface EvidenceEntry {
|
|
|
1176
1177
|
*/
|
|
1177
1178
|
readonly seq: number;
|
|
1178
1179
|
/**
|
|
1179
|
-
* The attempt the evidence is of; one per attempt.
|
|
1180
|
+
* The attempt the evidence is of; one per attempt. An adult's correction of the module's level,
|
|
1181
|
+
* whose evidence has level_set_by_adult, is of no attempt: it holds the correction's ID.
|
|
1180
1182
|
*/
|
|
1181
1183
|
readonly attempt_id: ID;
|
|
1182
1184
|
/**
|
|
1183
|
-
* The digest of the attempt's package, by which wrong_key versions are filtered.
|
|
1185
|
+
* The digest of the attempt's package, by which wrong_key versions are filtered. For an adult's
|
|
1186
|
+
* correction of the module's level, the digest of the package of the module's current version,
|
|
1187
|
+
* which no wrong_key version filters out.
|
|
1184
1188
|
*/
|
|
1185
1189
|
readonly package_digest: string;
|
|
1186
1190
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altnovatrail/spec",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.17",
|
|
4
4
|
"description": "The types of NovaTrail's module format for TypeScript, generated from its schemas: the parts of a module and their open views, the canonical view, the inventory, the module index and the test vectors. And the types of the element <novatrail-canvas>, the contract of the canvas and the app. And the types of the admission table, which says which AI provider may serve which age category. And the numbers and widths of the workbook's page and its test vectors, as JSON, by which a canvas lays the page out. And the types of the deployment configuration, the file /deployment.json that the app reads at its start. And the types of the legal texts' passport, which names each text, its versions and the sets of texts of the samples page. And the types of the table of the age of digital consent, which gives each country's age with the law that sets it. And the types of the files of an export, the file the owner of an account gets of a profile or of the account.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|