@ndla/types-taxonomy 1.0.5 → 1.0.7

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.
@@ -576,6 +576,10 @@ export interface TaxonomyContext {
576
576
  * Whether the base connection is primary or not
577
577
  */
578
578
  isPrimary: boolean;
579
+ /**
580
+ * Whether the base connection is marked as active subject
581
+ */
582
+ isActive: boolean;
579
583
  /**
580
584
  * Whether the base connection is visible or not
581
585
  */
@@ -586,8 +590,8 @@ export interface TaxonomyContext {
586
590
  contextId: string;
587
591
  id: string;
588
592
  subject: Record<string, string>;
589
- subjectId: string;
590
593
  parentTopicIds: string[];
594
+ subjectId: string;
591
595
  isPrimaryConnection: boolean;
592
596
  }
593
597
  export interface Connection {
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  "devDependencies": {
18
18
  "typescript": "^5.0.2"
19
19
  },
20
- "version": "1.0.5"
20
+ "version": "1.0.7"
21
21
  }
package/taxonomy-api.ts CHANGED
@@ -609,6 +609,10 @@ export interface TaxonomyContext {
609
609
  * Whether the base connection is primary or not
610
610
  */
611
611
  isPrimary: boolean;
612
+ /**
613
+ * Whether the base connection is marked as active subject
614
+ */
615
+ isActive: boolean;
612
616
  /**
613
617
  * Whether the base connection is visible or not
614
618
  */
@@ -619,8 +623,8 @@ export interface TaxonomyContext {
619
623
  contextId: string;
620
624
  id: string;
621
625
  subject: Record<string, string>;
622
- subjectId: string;
623
626
  parentTopicIds: string[];
627
+ subjectId: string;
624
628
  isPrimaryConnection: boolean;
625
629
  }
626
630