@ndla/types-taxonomy 1.0.16 → 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,6 +134,7 @@ 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;
135
140
  /**
@@ -689,5 +694,5 @@ export interface VersionPostPut {
689
694
  name: string;
690
695
  }
691
696
  export type DateAsString = string;
692
- export type NodeType = "NODE" | "SUBJECT" | "TOPIC" | "RESOURCE";
697
+ export type NodeType = "NODE" | "SUBJECT" | "TOPIC" | "RESOURCE" | "PROGRAMME";
693
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.16"
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,6 +144,7 @@ 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;
145
150
  /**
@@ -734,6 +739,6 @@ export interface VersionPostPut {
734
739
 
735
740
  export type DateAsString = string;
736
741
 
737
- export type NodeType = "NODE" | "SUBJECT" | "TOPIC" | "RESOURCE";
742
+ export type NodeType = "NODE" | "SUBJECT" | "TOPIC" | "RESOURCE" | "PROGRAMME";
738
743
 
739
744
  export type VersionType = "BETA" | "PUBLISHED" | "ARCHIVED";