@ndla/types-taxonomy 1.0.17 → 1.0.19
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 +23 -9
- package/package.json +1 -1
- package/taxonomy-api.ts +23 -9
package/build/taxonomy-api.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface Metadata {
|
|
|
19
19
|
visible: boolean;
|
|
20
20
|
}
|
|
21
21
|
export interface Node {
|
|
22
|
+
baseName: string;
|
|
22
23
|
breadcrumbs: string[];
|
|
23
24
|
contentUri?: string;
|
|
24
25
|
/**
|
|
@@ -27,6 +28,7 @@ export interface Node {
|
|
|
27
28
|
contextId?: string;
|
|
28
29
|
contexts: TaxonomyContext[];
|
|
29
30
|
id: string;
|
|
31
|
+
language: string;
|
|
30
32
|
metadata: Metadata;
|
|
31
33
|
name: string;
|
|
32
34
|
/**
|
|
@@ -422,11 +424,15 @@ export interface SubjectTopicPUT {
|
|
|
422
424
|
}
|
|
423
425
|
export interface TaxonomyContext {
|
|
424
426
|
/**
|
|
425
|
-
* A breadcrumb of the names of the context's
|
|
427
|
+
* A breadcrumb of the names of the context's parents
|
|
426
428
|
*/
|
|
427
429
|
breadcrumbs: Record<string, string[]>;
|
|
428
430
|
/**
|
|
429
|
-
*
|
|
431
|
+
* The id of the parent connection object
|
|
432
|
+
*/
|
|
433
|
+
connectionId: string;
|
|
434
|
+
/**
|
|
435
|
+
* Unique id of context based on root + parent connection
|
|
430
436
|
*/
|
|
431
437
|
contextId: string;
|
|
432
438
|
/**
|
|
@@ -438,11 +444,11 @@ export interface TaxonomyContext {
|
|
|
438
444
|
*/
|
|
439
445
|
id?: string;
|
|
440
446
|
/**
|
|
441
|
-
* Whether the
|
|
447
|
+
* Whether the parent connection is marked as active
|
|
442
448
|
*/
|
|
443
449
|
isActive: boolean;
|
|
444
450
|
/**
|
|
445
|
-
* Whether the
|
|
451
|
+
* Whether the parent connection is primary or not
|
|
446
452
|
*/
|
|
447
453
|
isPrimary: boolean;
|
|
448
454
|
/**
|
|
@@ -450,11 +456,11 @@ export interface TaxonomyContext {
|
|
|
450
456
|
*/
|
|
451
457
|
isPrimaryConnection?: boolean;
|
|
452
458
|
/**
|
|
453
|
-
* Whether the
|
|
459
|
+
* Whether the parent connection is visible or not
|
|
454
460
|
*/
|
|
455
461
|
isVisible: boolean;
|
|
456
462
|
/**
|
|
457
|
-
* List of all parent
|
|
463
|
+
* List of all parent ids
|
|
458
464
|
*/
|
|
459
465
|
parentIds: string[];
|
|
460
466
|
/**
|
|
@@ -470,15 +476,19 @@ export interface TaxonomyContext {
|
|
|
470
476
|
*/
|
|
471
477
|
publicId: string;
|
|
472
478
|
/**
|
|
473
|
-
*
|
|
479
|
+
* The rank of the parent connection object
|
|
480
|
+
*/
|
|
481
|
+
rank: number;
|
|
482
|
+
/**
|
|
483
|
+
* Name of the relevance of the parent connection
|
|
474
484
|
*/
|
|
475
485
|
relevance: Record<string, string>;
|
|
476
486
|
/**
|
|
477
|
-
* Id of the relevance of the connection
|
|
487
|
+
* Id of the relevance of the parent connection
|
|
478
488
|
*/
|
|
479
489
|
relevanceId?: string;
|
|
480
490
|
/**
|
|
481
|
-
* Resource-types of the
|
|
491
|
+
* Resource-types of the node
|
|
482
492
|
*/
|
|
483
493
|
resourceTypes: SearchableTaxonomyResourceType[];
|
|
484
494
|
/**
|
|
@@ -497,6 +507,10 @@ export interface TaxonomyContext {
|
|
|
497
507
|
* @deprecated
|
|
498
508
|
*/
|
|
499
509
|
subjectId?: string;
|
|
510
|
+
/**
|
|
511
|
+
* Pretty-url of this particular context
|
|
512
|
+
*/
|
|
513
|
+
url?: string;
|
|
500
514
|
}
|
|
501
515
|
export interface TopicPostPut {
|
|
502
516
|
/**
|
package/package.json
CHANGED
package/taxonomy-api.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface Metadata {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export interface Node {
|
|
27
|
+
baseName: string;
|
|
27
28
|
breadcrumbs: string[];
|
|
28
29
|
contentUri?: string;
|
|
29
30
|
/**
|
|
@@ -32,6 +33,7 @@ export interface Node {
|
|
|
32
33
|
contextId?: string;
|
|
33
34
|
contexts: TaxonomyContext[];
|
|
34
35
|
id: string;
|
|
36
|
+
language: string;
|
|
35
37
|
metadata: Metadata;
|
|
36
38
|
name: string;
|
|
37
39
|
/**
|
|
@@ -453,11 +455,15 @@ export interface SubjectTopicPUT {
|
|
|
453
455
|
|
|
454
456
|
export interface TaxonomyContext {
|
|
455
457
|
/**
|
|
456
|
-
* A breadcrumb of the names of the context's
|
|
458
|
+
* A breadcrumb of the names of the context's parents
|
|
457
459
|
*/
|
|
458
460
|
breadcrumbs: Record<string, string[]>;
|
|
459
461
|
/**
|
|
460
|
-
*
|
|
462
|
+
* The id of the parent connection object
|
|
463
|
+
*/
|
|
464
|
+
connectionId: string;
|
|
465
|
+
/**
|
|
466
|
+
* Unique id of context based on root + parent connection
|
|
461
467
|
*/
|
|
462
468
|
contextId: string;
|
|
463
469
|
/**
|
|
@@ -469,11 +475,11 @@ export interface TaxonomyContext {
|
|
|
469
475
|
*/
|
|
470
476
|
id?: string;
|
|
471
477
|
/**
|
|
472
|
-
* Whether the
|
|
478
|
+
* Whether the parent connection is marked as active
|
|
473
479
|
*/
|
|
474
480
|
isActive: boolean;
|
|
475
481
|
/**
|
|
476
|
-
* Whether the
|
|
482
|
+
* Whether the parent connection is primary or not
|
|
477
483
|
*/
|
|
478
484
|
isPrimary: boolean;
|
|
479
485
|
/**
|
|
@@ -481,11 +487,11 @@ export interface TaxonomyContext {
|
|
|
481
487
|
*/
|
|
482
488
|
isPrimaryConnection?: boolean;
|
|
483
489
|
/**
|
|
484
|
-
* Whether the
|
|
490
|
+
* Whether the parent connection is visible or not
|
|
485
491
|
*/
|
|
486
492
|
isVisible: boolean;
|
|
487
493
|
/**
|
|
488
|
-
* List of all parent
|
|
494
|
+
* List of all parent ids
|
|
489
495
|
*/
|
|
490
496
|
parentIds: string[];
|
|
491
497
|
/**
|
|
@@ -501,15 +507,19 @@ export interface TaxonomyContext {
|
|
|
501
507
|
*/
|
|
502
508
|
publicId: string;
|
|
503
509
|
/**
|
|
504
|
-
*
|
|
510
|
+
* The rank of the parent connection object
|
|
511
|
+
*/
|
|
512
|
+
rank: number;
|
|
513
|
+
/**
|
|
514
|
+
* Name of the relevance of the parent connection
|
|
505
515
|
*/
|
|
506
516
|
relevance: Record<string, string>;
|
|
507
517
|
/**
|
|
508
|
-
* Id of the relevance of the connection
|
|
518
|
+
* Id of the relevance of the parent connection
|
|
509
519
|
*/
|
|
510
520
|
relevanceId?: string;
|
|
511
521
|
/**
|
|
512
|
-
* Resource-types of the
|
|
522
|
+
* Resource-types of the node
|
|
513
523
|
*/
|
|
514
524
|
resourceTypes: SearchableTaxonomyResourceType[];
|
|
515
525
|
/**
|
|
@@ -528,6 +538,10 @@ export interface TaxonomyContext {
|
|
|
528
538
|
* @deprecated
|
|
529
539
|
*/
|
|
530
540
|
subjectId?: string;
|
|
541
|
+
/**
|
|
542
|
+
* Pretty-url of this particular context
|
|
543
|
+
*/
|
|
544
|
+
url?: string;
|
|
531
545
|
}
|
|
532
546
|
|
|
533
547
|
export interface TopicPostPut {
|