@bigfootai/bigfoot-types 5.0.15 → 5.0.17
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/model.js +10 -7
- package/model.ts +11 -7
- package/package.json +1 -1
package/model.js
CHANGED
@@ -464,16 +464,19 @@ class SharedPrimitive extends Primitive {
|
|
464
464
|
this._sharingTagIds = [];
|
465
465
|
this._tagIds = [];
|
466
466
|
// Add sharing tags to the internal array
|
467
|
+
// Add sharing tags to the internal array
|
467
468
|
if (sharingTags && sharingTags.length > 0) {
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
}
|
474
|
-
if (sharingTags && sharingTags.length > 0) {
|
469
|
+
this._sharingTagIds = sharingTags
|
470
|
+
.filter((sharingTag) => {
|
471
|
+
return sharingTag.shared == true;
|
472
|
+
})
|
473
|
+
.map((sharingTag) => sharingTag.tagId);
|
475
474
|
this._tagIds = sharingTags.map((sharingTag) => sharingTag.tagId);
|
476
475
|
}
|
476
|
+
else {
|
477
|
+
this._tagIds = [];
|
478
|
+
this._sharingTagIds = [];
|
479
|
+
}
|
477
480
|
}
|
478
481
|
}
|
479
482
|
exports.SharedPrimitive = SharedPrimitive;
|
package/model.ts
CHANGED
@@ -662,16 +662,18 @@ export class SharedPrimitive extends Primitive {
|
|
662
662
|
this._sharingTagIds = [];
|
663
663
|
this._tagIds = [];
|
664
664
|
|
665
|
+
// Add sharing tags to the internal array
|
665
666
|
// Add sharing tags to the internal array
|
666
667
|
if (sharingTags && sharingTags.length > 0) {
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
}
|
671
|
-
|
672
|
-
}
|
673
|
-
if (sharingTags && sharingTags.length > 0) {
|
668
|
+
this._sharingTagIds = sharingTags
|
669
|
+
.filter((sharingTag) => {
|
670
|
+
return sharingTag.shared == true;
|
671
|
+
})
|
672
|
+
.map((sharingTag) => sharingTag.tagId);
|
674
673
|
this._tagIds = sharingTags.map((sharingTag) => sharingTag.tagId);
|
674
|
+
} else {
|
675
|
+
this._tagIds = [];
|
676
|
+
this._sharingTagIds = [];
|
675
677
|
}
|
676
678
|
}
|
677
679
|
}
|
@@ -1294,6 +1296,8 @@ export class Block extends SharedPrimitive {
|
|
1294
1296
|
_entitiesOrganization?: EntityEntry[];
|
1295
1297
|
_entitiesTopic?: EntityEntry[];
|
1296
1298
|
_emails?: EntityEntry[];
|
1299
|
+
// A search field to help with relevancy
|
1300
|
+
score?: number;
|
1297
1301
|
|
1298
1302
|
constructor(
|
1299
1303
|
tenantIdCreated: string,
|