@altnovatrail/spec 0.8.5 → 0.9.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/formatv0/index.d.ts +46 -4
- package/formatv0/open/index.d.ts +2 -2
- package/package.json +1 -1
package/formatv0/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by tools/types from format/schemas; DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* The types of the module format, major version 0, generated from the schemas of version 0.
|
|
4
|
+
* The types of the module format, major version 0, generated from the schemas of version 0.3 in
|
|
5
5
|
* format/schemas by tools/types (R72 and R73 in spec's docs/decisions.md): the same types as the Go
|
|
6
6
|
* package formatv0, by the same names. The schemas decide what is valid: a type gives the shape of
|
|
7
7
|
* a value alone, and code that reads a value from elsewhere checks it against its schema first. A
|
|
@@ -95,7 +95,7 @@ export type Numbers = Readonly<Record<TemplateName, number>>;
|
|
|
95
95
|
*/
|
|
96
96
|
export interface Manifest {
|
|
97
97
|
/**
|
|
98
|
-
* The version of the module format the module is written in, "0.
|
|
98
|
+
* The version of the module format the module is written in, "0.3": the module is checked, built
|
|
99
99
|
* and run by it. It stands at the root of the manifest in every version of the format, so that a
|
|
100
100
|
* reader finds it before it knows which schemas to read the module by.
|
|
101
101
|
*/
|
|
@@ -243,7 +243,7 @@ export interface Author {
|
|
|
243
243
|
/**
|
|
244
244
|
* ModuleFormatVersion is the type of common.schema.json#/$defs/module_format_version.
|
|
245
245
|
*
|
|
246
|
-
* A version of the module format, MAJOR.MINOR, written as a string: "0.
|
|
246
|
+
* A version of the module format, MAJOR.MINOR, written as a string: "0.3".
|
|
247
247
|
*/
|
|
248
248
|
export type ModuleFormatVersion = string;
|
|
249
249
|
|
|
@@ -1282,7 +1282,7 @@ export interface IndexVector {
|
|
|
1282
1282
|
* The rule of the index by which the build is refused, when it is: the case breaks that rule and no
|
|
1283
1283
|
* other.
|
|
1284
1284
|
*/
|
|
1285
|
-
export type IndexVectorRefusal = "module-index.entries-kept" | "module-index.one-package" | "module-index.known-withdrawals";
|
|
1285
|
+
export type IndexVectorRefusal = "module-index.entries-kept" | "module-index.one-package" | "module-index.known-withdrawals" | "module-index.version-above";
|
|
1286
1286
|
|
|
1287
1287
|
// The types of module-index.schema.json.
|
|
1288
1288
|
|
|
@@ -1852,3 +1852,45 @@ export type Verdict = "correct" | "not_yet" | "unreadable" | "unchecked";
|
|
|
1852
1852
|
* check kind.
|
|
1853
1853
|
*/
|
|
1854
1854
|
export type SlotReadingReason = "blank" | "notation";
|
|
1855
|
+
|
|
1856
|
+
// The types of version-vector.schema.json.
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* VersionVector is the type of version-vector.schema.json.
|
|
1860
|
+
*
|
|
1861
|
+
* What a test vector of versions of a module gives, version.yaml beside the new version in module/
|
|
1862
|
+
* and the published versions in published/ (sections 9 and 27 of the format text): either the part
|
|
1863
|
+
* of the version that the comparison of the new version with the newest published version finds, or
|
|
1864
|
+
* the rule of versions by which the new version is refused. An implementation compares the new
|
|
1865
|
+
* version with every published version and gets exactly this.
|
|
1866
|
+
*/
|
|
1867
|
+
export interface VersionVector {
|
|
1868
|
+
/**
|
|
1869
|
+
* The lowest part of its version that the new version raises, which the comparison finds, when
|
|
1870
|
+
* the new version is not refused: none when nothing but the version changed, or when the new
|
|
1871
|
+
* version is the newest published one as it was.
|
|
1872
|
+
*/
|
|
1873
|
+
readonly version_part?: VersionVectorVersionPart;
|
|
1874
|
+
/**
|
|
1875
|
+
* The rule of versions by which the new version is refused, when it is: the case breaks that rule
|
|
1876
|
+
* and no other.
|
|
1877
|
+
*/
|
|
1878
|
+
readonly refusal?: VersionVectorRefusal;
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* VersionVectorVersionPart is the type of version-vector.schema.json#/properties/version_part.
|
|
1883
|
+
*
|
|
1884
|
+
* The lowest part of its version that the new version raises, which the comparison finds, when the
|
|
1885
|
+
* new version is not refused: none when nothing but the version changed, or when the new version is
|
|
1886
|
+
* the newest published one as it was.
|
|
1887
|
+
*/
|
|
1888
|
+
export type VersionVectorVersionPart = "major" | "minor" | "patch" | "none";
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* VersionVectorRefusal is the type of version-vector.schema.json#/properties/refusal.
|
|
1892
|
+
*
|
|
1893
|
+
* The rule of versions by which the new version is refused, when it is: the case breaks that rule
|
|
1894
|
+
* and no other.
|
|
1895
|
+
*/
|
|
1896
|
+
export type VersionVectorRefusal = "module-version.above" | "module-version.step" | "module-version.retired-complete" | "module-version.retired-kept" | "module-version.retired-known" | "module-version.ids-kept" | "module-version.languages-kept" | "module-version.bands-kept";
|
package/formatv0/open/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* The open view of each part of a module (format/README.md, section 6): the type of each struct the
|
|
5
5
|
* open view of a part reaches, by the name it has in formatv0, with the fields marked x-open alone,
|
|
6
|
-
* of version 0.
|
|
6
|
+
* of version 0.3. An open view has no check, no template and no solver; a task's has its givens and
|
|
7
7
|
* its unknown. Strings, integers and enumerations are formatv0's.
|
|
8
8
|
*
|
|
9
9
|
* @packageDocumentation
|
|
@@ -25,7 +25,7 @@ import type * as formatv0 from "../index.js";
|
|
|
25
25
|
*/
|
|
26
26
|
export interface Manifest {
|
|
27
27
|
/**
|
|
28
|
-
* The version of the module format the module is written in, "0.
|
|
28
|
+
* The version of the module format the module is written in, "0.3": the module is checked, built
|
|
29
29
|
* and run by it. It stands at the root of the manifest in every version of the format, so that a
|
|
30
30
|
* reader finds it before it knows which schemas to read the module by.
|
|
31
31
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altnovatrail/spec",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
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.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|