@ndla/types-taxonomy 1.0.3 → 1.0.4
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.
- package/build/taxonomy-api.d.ts +6 -6
- package/package.json +1 -1
- package/taxonomy-api.ts +6 -6
package/build/taxonomy-api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
*/
|
|
@@ -586,8 +586,8 @@ export interface TaxonomyContext {
|
|
|
586
586
|
contextId: string;
|
|
587
587
|
id: string;
|
|
588
588
|
subject: Record<string, string>;
|
|
589
|
-
subjectId: string;
|
|
590
589
|
parentTopicIds: string[];
|
|
590
|
+
subjectId: string;
|
|
591
591
|
isPrimaryConnection: boolean;
|
|
592
592
|
}
|
|
593
593
|
export interface Connection {
|
package/package.json
CHANGED
package/taxonomy-api.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
export interface
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
*/
|
|
@@ -619,8 +619,8 @@ export interface TaxonomyContext {
|
|
|
619
619
|
contextId: string;
|
|
620
620
|
id: string;
|
|
621
621
|
subject: Record<string, string>;
|
|
622
|
-
subjectId: string;
|
|
623
622
|
parentTopicIds: string[];
|
|
623
|
+
subjectId: string;
|
|
624
624
|
isPrimaryConnection: boolean;
|
|
625
625
|
}
|
|
626
626
|
|