@bigfootai/bigfoot-types 4.2.8 → 4.2.9

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.
Files changed (3) hide show
  1. package/model.js +9 -0
  2. package/model.ts +11 -0
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -381,6 +381,15 @@ class SharedPrimitive extends Primitive {
381
381
  constructor(sharingTags) {
382
382
  super();
383
383
  this.sharingTags = sharingTags;
384
+ this._sharingTagIds = [];
385
+ // Add sharing tags to the internal array
386
+ if (sharingTags && sharingTags.length > 0) {
387
+ for (const sharingTag of sharingTags) {
388
+ if (sharingTag.shared == true) {
389
+ this._sharingTagIds.push(sharingTag.tagId);
390
+ }
391
+ }
392
+ }
384
393
  }
385
394
  }
386
395
  exports.SharedPrimitive = SharedPrimitive;
package/model.ts CHANGED
@@ -557,11 +557,22 @@ export const SharedPrimitiveFields = `${PrimitiveFields}
557
557
  sharingTags: [SharingTag]!`;
558
558
  export class SharedPrimitive extends Primitive {
559
559
  sharingTags: SharingTag[];
560
+ _sharingTagIds: string[];
560
561
 
561
562
  constructor(sharingTags: SharingTag[]) {
562
563
  super();
563
564
 
564
565
  this.sharingTags = sharingTags;
566
+ this._sharingTagIds = [];
567
+
568
+ // Add sharing tags to the internal array
569
+ if (sharingTags && sharingTags.length > 0) {
570
+ for (const sharingTag of sharingTags) {
571
+ if (sharingTag.shared == true) {
572
+ this._sharingTagIds.push(sharingTag.tagId);
573
+ }
574
+ }
575
+ }
565
576
  }
566
577
  }
567
578
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.2.8",
4
+ "version": "4.2.9",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",