@ndla/types-taxonomy 1.0.26 → 1.0.28
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 +4 -17
- package/package.json +1 -1
- package/taxonomy-api.ts +4 -18
package/build/taxonomy-api.d.ts
CHANGED
|
@@ -26,6 +26,10 @@ export interface Node {
|
|
|
26
26
|
baseName: string;
|
|
27
27
|
breadcrumbs: string[];
|
|
28
28
|
contentUri?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The context object selected when fetching node
|
|
31
|
+
*/
|
|
32
|
+
context?: TaxonomyContext;
|
|
29
33
|
/**
|
|
30
34
|
* An id unique for this context.
|
|
31
35
|
*/
|
|
@@ -58,10 +62,6 @@ export interface Node {
|
|
|
58
62
|
export interface NodeChild extends Node {
|
|
59
63
|
connectionId: string;
|
|
60
64
|
isPrimary: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated
|
|
63
|
-
*/
|
|
64
|
-
parent: string;
|
|
65
65
|
parentId: string;
|
|
66
66
|
rank: number;
|
|
67
67
|
}
|
|
@@ -289,21 +289,8 @@ export interface Relevance {
|
|
|
289
289
|
* List of language codes supported by translations
|
|
290
290
|
*/
|
|
291
291
|
supportedLanguages: string[];
|
|
292
|
-
/**
|
|
293
|
-
* All translations of this relevance
|
|
294
|
-
*/
|
|
295
292
|
translations: Translation[];
|
|
296
293
|
}
|
|
297
|
-
export interface RelevancePUT {
|
|
298
|
-
/**
|
|
299
|
-
* If specified, set the id to this value. Must start with urn:relevance: and be a valid URI. If ommitted, an id will be assigned automatically. Ignored on update
|
|
300
|
-
*/
|
|
301
|
-
id: string;
|
|
302
|
-
/**
|
|
303
|
-
* The name of the relevance
|
|
304
|
-
*/
|
|
305
|
-
name: string;
|
|
306
|
-
}
|
|
307
294
|
export interface ResolvedOldUrl {
|
|
308
295
|
/**
|
|
309
296
|
* URL path for resource
|
package/package.json
CHANGED
package/taxonomy-api.ts
CHANGED
|
@@ -32,6 +32,10 @@ export interface Node {
|
|
|
32
32
|
baseName: string;
|
|
33
33
|
breadcrumbs: string[];
|
|
34
34
|
contentUri?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The context object selected when fetching node
|
|
37
|
+
*/
|
|
38
|
+
context?: TaxonomyContext;
|
|
35
39
|
/**
|
|
36
40
|
* An id unique for this context.
|
|
37
41
|
*/
|
|
@@ -65,10 +69,6 @@ export interface Node {
|
|
|
65
69
|
export interface NodeChild extends Node {
|
|
66
70
|
connectionId: string;
|
|
67
71
|
isPrimary: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* @deprecated
|
|
70
|
-
*/
|
|
71
|
-
parent: string;
|
|
72
72
|
parentId: string;
|
|
73
73
|
rank: number;
|
|
74
74
|
}
|
|
@@ -307,23 +307,9 @@ export interface Relevance {
|
|
|
307
307
|
* List of language codes supported by translations
|
|
308
308
|
*/
|
|
309
309
|
supportedLanguages: string[];
|
|
310
|
-
/**
|
|
311
|
-
* All translations of this relevance
|
|
312
|
-
*/
|
|
313
310
|
translations: Translation[];
|
|
314
311
|
}
|
|
315
312
|
|
|
316
|
-
export interface RelevancePUT {
|
|
317
|
-
/**
|
|
318
|
-
* If specified, set the id to this value. Must start with urn:relevance: and be a valid URI. If ommitted, an id will be assigned automatically. Ignored on update
|
|
319
|
-
*/
|
|
320
|
-
id: string;
|
|
321
|
-
/**
|
|
322
|
-
* The name of the relevance
|
|
323
|
-
*/
|
|
324
|
-
name: string;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
313
|
export interface ResolvedOldUrl {
|
|
328
314
|
/**
|
|
329
315
|
* URL path for resource
|