@ndla/types-taxonomy 1.0.29 → 1.0.31
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 +10 -2
- package/package.json +1 -1
- package/taxonomy-api.ts +10 -2
package/build/taxonomy-api.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export interface Node {
|
|
|
44
44
|
* The type of node
|
|
45
45
|
*/
|
|
46
46
|
nodeType: NodeType;
|
|
47
|
-
path
|
|
47
|
+
path?: string;
|
|
48
48
|
paths: string[];
|
|
49
49
|
/**
|
|
50
50
|
* Quality evaluation of the article
|
|
@@ -261,10 +261,18 @@ export interface NodeSearchBody {
|
|
|
261
261
|
* How many results to return per page
|
|
262
262
|
*/
|
|
263
263
|
pageSize: number;
|
|
264
|
+
/**
|
|
265
|
+
* Id to parent id in context.
|
|
266
|
+
*/
|
|
267
|
+
parentId?: string;
|
|
264
268
|
/**
|
|
265
269
|
* Query to search names
|
|
266
270
|
*/
|
|
267
271
|
query?: string;
|
|
272
|
+
/**
|
|
273
|
+
* Id to root id in context.
|
|
274
|
+
*/
|
|
275
|
+
rootId?: string;
|
|
268
276
|
}
|
|
269
277
|
export interface NodeWithParents extends Node {
|
|
270
278
|
parents: NodeChild[];
|
|
@@ -549,7 +557,7 @@ export interface TaxonomyContext {
|
|
|
549
557
|
/**
|
|
550
558
|
* Pretty-url of this particular context
|
|
551
559
|
*/
|
|
552
|
-
url
|
|
560
|
+
url: string;
|
|
553
561
|
}
|
|
554
562
|
export interface TaxonomyCrumb {
|
|
555
563
|
/**
|
package/package.json
CHANGED
package/taxonomy-api.ts
CHANGED
|
@@ -50,7 +50,7 @@ export interface Node {
|
|
|
50
50
|
* The type of node
|
|
51
51
|
*/
|
|
52
52
|
nodeType: NodeType;
|
|
53
|
-
path
|
|
53
|
+
path?: string;
|
|
54
54
|
paths: string[];
|
|
55
55
|
/**
|
|
56
56
|
* Quality evaluation of the article
|
|
@@ -276,10 +276,18 @@ export interface NodeSearchBody {
|
|
|
276
276
|
* How many results to return per page
|
|
277
277
|
*/
|
|
278
278
|
pageSize: number;
|
|
279
|
+
/**
|
|
280
|
+
* Id to parent id in context.
|
|
281
|
+
*/
|
|
282
|
+
parentId?: string;
|
|
279
283
|
/**
|
|
280
284
|
* Query to search names
|
|
281
285
|
*/
|
|
282
286
|
query?: string;
|
|
287
|
+
/**
|
|
288
|
+
* Id to root id in context.
|
|
289
|
+
*/
|
|
290
|
+
rootId?: string;
|
|
283
291
|
}
|
|
284
292
|
|
|
285
293
|
export interface NodeWithParents extends Node {
|
|
@@ -582,7 +590,7 @@ export interface TaxonomyContext {
|
|
|
582
590
|
/**
|
|
583
591
|
* Pretty-url of this particular context
|
|
584
592
|
*/
|
|
585
|
-
url
|
|
593
|
+
url: string;
|
|
586
594
|
}
|
|
587
595
|
|
|
588
596
|
export interface TaxonomyCrumb {
|