@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.
@@ -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 path
425
+ * A breadcrumb of the names of the context's parents
426
426
  */
427
427
  breadcrumbs: Record<string, string[]>;
428
428
  /**
429
- * Unique id of context based on root + connection
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 base connection is marked as active subject
445
+ * Whether the parent connection is marked as active
442
446
  */
443
447
  isActive: boolean;
444
448
  /**
445
- * Whether the base connection is primary or not
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 base connection is visible or not
457
+ * Whether the parent connection is visible or not
454
458
  */
455
459
  isVisible: boolean;
456
460
  /**
457
- * List of all parent topic-ids
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
- * Name of the relevance of the connection of the base
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 of the base
485
+ * Id of the relevance of the parent connection
478
486
  */
479
487
  relevanceId?: string;
480
488
  /**
481
- * Resource-types of the base
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
@@ -17,5 +17,5 @@
17
17
  "devDependencies": {
18
18
  "typescript": "^5.0.2"
19
19
  },
20
- "version": "1.0.17"
20
+ "version": "1.0.18"
21
21
  }
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 path
456
+ * A breadcrumb of the names of the context's parents
457
457
  */
458
458
  breadcrumbs: Record<string, string[]>;
459
459
  /**
460
- * Unique id of context based on root + connection
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 base connection is marked as active subject
476
+ * Whether the parent connection is marked as active
473
477
  */
474
478
  isActive: boolean;
475
479
  /**
476
- * Whether the base connection is primary or not
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 base connection is visible or not
488
+ * Whether the parent connection is visible or not
485
489
  */
486
490
  isVisible: boolean;
487
491
  /**
488
- * List of all parent topic-ids
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
- * Name of the relevance of the connection of the base
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 of the base
516
+ * Id of the relevance of the parent connection
509
517
  */
510
518
  relevanceId?: string;
511
519
  /**
512
- * Resource-types of the base
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 {