@altnovatrail/spec 0.13.0 → 0.15.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.
@@ -1,15 +1,15 @@
1
1
  // Code generated by tools/types from legal/schemas; DO NOT EDIT.
2
2
 
3
3
  /**
4
- * The types of the legal texts, version 1 of the part, generated from the schemas in legal/schemas
4
+ * The types of the legal texts, version 2 of the part, generated from the schemas in legal/schemas
5
5
  * by tools/types (R72, R73 and R130 in spec's docs/decisions.md): the same types as the Go package
6
- * legalv1, by the same names — the passport legal/legal.yaml, with the texts, their versions and
6
+ * legalv2, by the same names — the passport legal/legal.yaml, with the texts, their versions and
7
7
  * the sets of texts of the samples page, and the vectors of reading. The words of a version are a
8
- * file of their own, texts/<id>/<n>.md, which no type holds. A vector's passport is any JSON value,
9
- * unknown, as a reader gets it. The schemas decide what is valid: a type gives the shape of a value
10
- * alone, and code that reads a value from elsewhere checks it against its schema first, and then
11
- * against the rules of reading (legal/README.md, section 5). A field the object always holds is
12
- * required; any other is optional.
8
+ * file of their own, texts/<id>/<n>.md, and those of its translations too, texts/<id>/<n>.<tag>.md,
9
+ * which no type holds. A vector's passport is any JSON value, unknown, as a reader gets it. The
10
+ * schemas decide what is valid: a type gives the shape of a value alone, and code that reads a
11
+ * value from elsewhere checks it against its schema first, and then against the rules of reading
12
+ * (legal/README.md, section 5). A field the object always holds is required; any other is optional.
13
13
  *
14
14
  * @packageDocumentation
15
15
  */
@@ -78,6 +78,13 @@ export interface TextVersion {
78
78
  * one build of app serves every copy.
79
79
  */
80
80
  readonly summary: Gist;
81
+ /**
82
+ * The languages of the interface other than English that the version has a translation in: a file
83
+ * of its own, texts/<id>/<n>.<tag>.md, with no force of its own, which a screen in that language
84
+ * shows beside the English text in force. A version in force keeps its translations as it keeps
85
+ * its file.
86
+ */
87
+ readonly translations?: readonly TextVersionTranslations[];
81
88
  /**
82
89
  * The number of the version.
83
90
  */
@@ -145,6 +152,14 @@ export interface Gist {
145
152
  */
146
153
  export type Summary = string;
147
154
 
155
+ /**
156
+ * TextVersionTranslations is the type of
157
+ * legal.schema.json#/$defs/text_version/properties/translations/items.
158
+ *
159
+ * The tag of a language of the interface other than English.
160
+ */
161
+ export type TextVersionTranslations = "ru";
162
+
148
163
  /**
149
164
  * SetID is the type of legal.schema.json#/$defs/set_id.
150
165
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@altnovatrail/spec",
3
- "version": "0.13.0",
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.",
3
+ "version": "0.15.0",
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": {
7
7
  "type": "git",
@@ -26,8 +26,14 @@
26
26
  "./deploymentv1": {
27
27
  "types": "./deploymentv1/index.d.ts"
28
28
  },
29
- "./legalv1": {
30
- "types": "./legalv1/index.d.ts"
29
+ "./legalv2": {
30
+ "types": "./legalv2/index.d.ts"
31
+ },
32
+ "./consentagev1": {
33
+ "types": "./consentagev1/index.d.ts"
34
+ },
35
+ "./exportv1": {
36
+ "types": "./exportv1/index.d.ts"
31
37
  },
32
38
  "./package.json": "./package.json"
33
39
  },
@@ -37,7 +43,9 @@
37
43
  "admissionv0",
38
44
  "format",
39
45
  "deploymentv1",
40
- "legalv1"
46
+ "legalv2",
47
+ "consentagev1",
48
+ "exportv1"
41
49
  ],
42
50
  "sideEffects": false
43
51
  }