@bigfootai/bigfoot-types 5.0.16 → 5.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/model.js +12 -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;
|
@@ -1372,6 +1375,8 @@ input UpsertTagInput {
|
|
1372
1375
|
inviteStatus: String
|
1373
1376
|
originNoteId: String
|
1374
1377
|
favorite: Boolean
|
1378
|
+
sharingDomains: [SharingDomainInput]
|
1379
|
+
sharingTenants: [SharingTenantInput]
|
1375
1380
|
businessObjects: [BusinessObjectLinkInput]
|
1376
1381
|
hasAutoShareNotesOn: Boolean
|
1377
1382
|
hasAutoShareTasksOn: Boolean
|
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
|
}
|
@@ -2419,6 +2421,8 @@ input UpsertTagInput {
|
|
2419
2421
|
inviteStatus: String
|
2420
2422
|
originNoteId: String
|
2421
2423
|
favorite: Boolean
|
2424
|
+
sharingDomains: [SharingDomainInput]
|
2425
|
+
sharingTenants: [SharingTenantInput]
|
2422
2426
|
businessObjects: [BusinessObjectLinkInput]
|
2423
2427
|
hasAutoShareNotesOn: Boolean
|
2424
2428
|
hasAutoShareTasksOn: Boolean
|