@ndla/types-taxonomy 1.0.26 → 1.0.27

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.
@@ -26,6 +26,10 @@ export interface Node {
26
26
  baseName: string;
27
27
  breadcrumbs: string[];
28
28
  contentUri?: string;
29
+ /**
30
+ * The context object selected when fetching node
31
+ */
32
+ context?: TaxonomyContext;
29
33
  /**
30
34
  * An id unique for this context.
31
35
  */
@@ -58,10 +62,6 @@ export interface Node {
58
62
  export interface NodeChild extends Node {
59
63
  connectionId: string;
60
64
  isPrimary: boolean;
61
- /**
62
- * @deprecated
63
- */
64
- parent: string;
65
65
  parentId: string;
66
66
  rank: number;
67
67
  }
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  "devDependencies": {
18
18
  "typescript": "^5.0.2"
19
19
  },
20
- "version": "1.0.26"
20
+ "version": "1.0.27"
21
21
  }
package/taxonomy-api.ts CHANGED
@@ -32,6 +32,10 @@ export interface Node {
32
32
  baseName: string;
33
33
  breadcrumbs: string[];
34
34
  contentUri?: string;
35
+ /**
36
+ * The context object selected when fetching node
37
+ */
38
+ context?: TaxonomyContext;
35
39
  /**
36
40
  * An id unique for this context.
37
41
  */
@@ -65,10 +69,6 @@ export interface Node {
65
69
  export interface NodeChild extends Node {
66
70
  connectionId: string;
67
71
  isPrimary: boolean;
68
- /**
69
- * @deprecated
70
- */
71
- parent: string;
72
72
  parentId: string;
73
73
  rank: number;
74
74
  }