@ndla/types-taxonomy 1.0.18 → 1.0.20

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.
@@ -19,6 +19,7 @@ export interface Metadata {
19
19
  visible: boolean;
20
20
  }
21
21
  export interface Node {
22
+ baseName: string;
22
23
  breadcrumbs: string[];
23
24
  contentUri?: string;
24
25
  /**
@@ -27,6 +28,7 @@ export interface Node {
27
28
  contextId?: string;
28
29
  contexts: TaxonomyContext[];
29
30
  id: string;
31
+ language: string;
30
32
  metadata: Metadata;
31
33
  name: string;
32
34
  /**
@@ -484,7 +486,7 @@ export interface TaxonomyContext {
484
486
  /**
485
487
  * Id of the relevance of the parent connection
486
488
  */
487
- relevanceId?: string;
489
+ relevanceId: string;
488
490
  /**
489
491
  * Resource-types of the node
490
492
  */
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  "devDependencies": {
18
18
  "typescript": "^5.0.2"
19
19
  },
20
- "version": "1.0.18"
20
+ "version": "1.0.20"
21
21
  }
package/taxonomy-api.ts CHANGED
@@ -24,6 +24,7 @@ export interface Metadata {
24
24
  }
25
25
 
26
26
  export interface Node {
27
+ baseName: string;
27
28
  breadcrumbs: string[];
28
29
  contentUri?: string;
29
30
  /**
@@ -32,6 +33,7 @@ export interface Node {
32
33
  contextId?: string;
33
34
  contexts: TaxonomyContext[];
34
35
  id: string;
36
+ language: string;
35
37
  metadata: Metadata;
36
38
  name: string;
37
39
  /**
@@ -515,7 +517,7 @@ export interface TaxonomyContext {
515
517
  /**
516
518
  * Id of the relevance of the parent connection
517
519
  */
518
- relevanceId?: string;
520
+ relevanceId: string;
519
521
  /**
520
522
  * Resource-types of the node
521
523
  */