@ndla/types-taxonomy 1.0.3 → 1.0.5

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.
@@ -1,4 +1,4 @@
1
- export interface NodeCommand {
1
+ export interface NodePostPut {
2
2
  nodeId?: string;
3
3
  /**
4
4
  * Type of node. Values are subject, topic. Required on create.
@@ -17,7 +17,7 @@ export interface NodeCommand {
17
17
  */
18
18
  root: boolean;
19
19
  }
20
- export interface ResourceCommand {
20
+ export interface ResourcePostPut {
21
21
  /**
22
22
  * If specified, set the id to this value. Must start with urn:resource: and be a valid URI. If omitted, an id will be assigned automatically.
23
23
  */
@@ -31,7 +31,7 @@ export interface ResourceCommand {
31
31
  */
32
32
  name: string;
33
33
  }
34
- export interface SubjectCommand {
34
+ export interface SubjectPostPut {
35
35
  /**
36
36
  * If specified, set the id to this value. Must start with urn:subject: and be a valid URI. If ommitted, an id will be assigned automatically.
37
37
  */
@@ -45,7 +45,7 @@ export interface SubjectCommand {
45
45
  */
46
46
  name: string;
47
47
  }
48
- export interface TopicCommand {
48
+ export interface TopicPostPut {
49
49
  /**
50
50
  * If specified, set the id to this value. Must start with urn:topic: and be a valid URI. If omitted, an id will be assigned automatically.
51
51
  */
@@ -59,7 +59,7 @@ export interface TopicCommand {
59
59
  */
60
60
  name: string;
61
61
  }
62
- export interface VersionCommand {
62
+ export interface VersionPostPut {
63
63
  /**
64
64
  * If specified, set the id to this value. Must start with urn:subject: and be a valid URI. If ommitted, an id will be assigned automatically.
65
65
  */
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  "devDependencies": {
18
18
  "typescript": "^5.0.2"
19
19
  },
20
- "version": "1.0.3"
20
+ "version": "1.0.5"
21
21
  }
package/taxonomy-api.ts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- export interface NodeCommand {
2
+ export interface NodePostPut {
3
3
  nodeId?: string;
4
4
  /**
5
5
  * Type of node. Values are subject, topic. Required on create.
@@ -19,7 +19,7 @@ export interface NodeCommand {
19
19
  root: boolean;
20
20
  }
21
21
 
22
- export interface ResourceCommand {
22
+ export interface ResourcePostPut {
23
23
  /**
24
24
  * If specified, set the id to this value. Must start with urn:resource: and be a valid URI. If omitted, an id will be assigned automatically.
25
25
  */
@@ -34,7 +34,7 @@ export interface ResourceCommand {
34
34
  name: string;
35
35
  }
36
36
 
37
- export interface SubjectCommand {
37
+ export interface SubjectPostPut {
38
38
  /**
39
39
  * If specified, set the id to this value. Must start with urn:subject: and be a valid URI. If ommitted, an id will be assigned automatically.
40
40
  */
@@ -49,7 +49,7 @@ export interface SubjectCommand {
49
49
  name: string;
50
50
  }
51
51
 
52
- export interface TopicCommand {
52
+ export interface TopicPostPut {
53
53
  /**
54
54
  * If specified, set the id to this value. Must start with urn:topic: and be a valid URI. If omitted, an id will be assigned automatically.
55
55
  */
@@ -64,7 +64,7 @@ export interface TopicCommand {
64
64
  name: string;
65
65
  }
66
66
 
67
- export interface VersionCommand {
67
+ export interface VersionPostPut {
68
68
  /**
69
69
  * If specified, set the id to this value. Must start with urn:subject: and be a valid URI. If ommitted, an id will be assigned automatically.
70
70
  */