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