@ndla/types-taxonomy 1.0.15 → 1.0.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.
@@ -119,6 +119,10 @@ export interface NodePostPut {
119
119
  * ID of content introducing this node. Must be a valid URI, but preferably not a URL.
120
120
  */
121
121
  contentUri?: string;
122
+ /**
123
+ * The node is the root in a context. Default is false. Only used if present.
124
+ */
125
+ context?: boolean;
122
126
  /**
123
127
  * The name of the node. Required on create.
124
128
  */
@@ -130,8 +134,13 @@ export interface NodePostPut {
130
134
  nodeType: NodeType;
131
135
  /**
132
136
  * The node is a root node. Default is false. Only used if present.
137
+ * @deprecated
133
138
  */
134
139
  root?: boolean;
140
+ /**
141
+ * The node is visible. Default is true.
142
+ */
143
+ visible?: boolean;
135
144
  }
136
145
  export interface NodeResource {
137
146
  /**
@@ -685,5 +694,5 @@ export interface VersionPostPut {
685
694
  name: string;
686
695
  }
687
696
  export type DateAsString = string;
688
- export type NodeType = "NODE" | "SUBJECT" | "TOPIC" | "RESOURCE";
697
+ export type NodeType = "NODE" | "SUBJECT" | "TOPIC" | "RESOURCE" | "PROGRAMME";
689
698
  export type VersionType = "BETA" | "PUBLISHED" | "ARCHIVED";
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  "devDependencies": {
18
18
  "typescript": "^5.0.2"
19
19
  },
20
- "version": "1.0.15"
20
+ "version": "1.0.17"
21
21
  }
package/taxonomy-api.ts CHANGED
@@ -129,6 +129,10 @@ export interface NodePostPut {
129
129
  * ID of content introducing this node. Must be a valid URI, but preferably not a URL.
130
130
  */
131
131
  contentUri?: string;
132
+ /**
133
+ * The node is the root in a context. Default is false. Only used if present.
134
+ */
135
+ context?: boolean;
132
136
  /**
133
137
  * The name of the node. Required on create.
134
138
  */
@@ -140,8 +144,13 @@ export interface NodePostPut {
140
144
  nodeType: NodeType;
141
145
  /**
142
146
  * The node is a root node. Default is false. Only used if present.
147
+ * @deprecated
143
148
  */
144
149
  root?: boolean;
150
+ /**
151
+ * The node is visible. Default is true.
152
+ */
153
+ visible?: boolean;
145
154
  }
146
155
 
147
156
  export interface NodeResource {
@@ -730,6 +739,6 @@ export interface VersionPostPut {
730
739
 
731
740
  export type DateAsString = string;
732
741
 
733
- export type NodeType = "NODE" | "SUBJECT" | "TOPIC" | "RESOURCE";
742
+ export type NodeType = "NODE" | "SUBJECT" | "TOPIC" | "RESOURCE" | "PROGRAMME";
734
743
 
735
744
  export type VersionType = "BETA" | "PUBLISHED" | "ARCHIVED";