@bigfootai/bigfoot-types 4.7.7 → 4.7.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.
- package/model.js +13 -0
- package/model.ts +30 -1
- package/package.json +1 -1
package/model.js
CHANGED
@@ -454,6 +454,9 @@ class SharedPrimitive extends Primitive {
|
|
454
454
|
}
|
455
455
|
}
|
456
456
|
}
|
457
|
+
if (sharingTags && sharingTags.length > 0) {
|
458
|
+
this._tagIds = sharingTags.map((sharingTag) => sharingTag.tagId);
|
459
|
+
}
|
457
460
|
}
|
458
461
|
}
|
459
462
|
exports.SharedPrimitive = SharedPrimitive;
|
@@ -647,6 +650,12 @@ type Recommendation {${exports.SharedPrimitiveFields}
|
|
647
650
|
connectRecommendation: ConnectRecommendation
|
648
651
|
upsertRecommendation: UpsertRecommendation
|
649
652
|
parentId: String
|
653
|
+
dateDue: Float
|
654
|
+
dateRemindMe: Float
|
655
|
+
archived: Boolean!
|
656
|
+
favorite: Boolean!
|
657
|
+
snoozed: Boolean!
|
658
|
+
status: Int
|
650
659
|
}`;
|
651
660
|
class Recommendation extends SharedPrimitive {
|
652
661
|
constructor(sharingTags, referenceBlock, tenantIdCreated, recommendationType) {
|
@@ -658,6 +667,10 @@ class Recommendation extends SharedPrimitive {
|
|
658
667
|
this.referenceBlock = referenceBlock;
|
659
668
|
this.tenantIdCreated = tenantIdCreated;
|
660
669
|
this.recommendationType = recommendationType;
|
670
|
+
this.archived = false;
|
671
|
+
this.favorite = false;
|
672
|
+
this.snoozed = false;
|
673
|
+
this.status = TaskStatus.NotStarted;
|
661
674
|
}
|
662
675
|
}
|
663
676
|
exports.Recommendation = Recommendation;
|
package/model.ts
CHANGED
@@ -657,6 +657,9 @@ export class SharedPrimitive extends Primitive {
|
|
657
657
|
}
|
658
658
|
}
|
659
659
|
}
|
660
|
+
if (sharingTags && sharingTags.length > 0) {
|
661
|
+
this._tagIds = sharingTags.map((sharingTag) => sharingTag.tagId);
|
662
|
+
}
|
660
663
|
}
|
661
664
|
}
|
662
665
|
|
@@ -971,6 +974,15 @@ export interface UpsertRecommendation {
|
|
971
974
|
upsertType: UpsertType;
|
972
975
|
}
|
973
976
|
|
977
|
+
export interface BaseTask {
|
978
|
+
dateDue?: number;
|
979
|
+
dateRemindMe?: number;
|
980
|
+
archived: boolean;
|
981
|
+
favorite: boolean;
|
982
|
+
snoozed: boolean;
|
983
|
+
status?: TaskStatus;
|
984
|
+
}
|
985
|
+
|
974
986
|
export const RecommendationQL = `
|
975
987
|
type Recommendation {${SharedPrimitiveFields}
|
976
988
|
referenceBlock: ReferenceBlock
|
@@ -978,13 +990,25 @@ type Recommendation {${SharedPrimitiveFields}
|
|
978
990
|
connectRecommendation: ConnectRecommendation
|
979
991
|
upsertRecommendation: UpsertRecommendation
|
980
992
|
parentId: String
|
993
|
+
dateDue: Float
|
994
|
+
dateRemindMe: Float
|
995
|
+
archived: Boolean!
|
996
|
+
favorite: Boolean!
|
997
|
+
snoozed: Boolean!
|
998
|
+
status: Int
|
981
999
|
}`;
|
982
|
-
export class Recommendation extends SharedPrimitive {
|
1000
|
+
export class Recommendation extends SharedPrimitive implements BaseTask {
|
983
1001
|
referenceBlock: ReferenceBlock; // This is the block that caused the recommendation to happen
|
984
1002
|
recommendationType: RecommendationType;
|
985
1003
|
connectRecommendation?: ConnectRecommendation; // For provider recommendations, we use this field
|
986
1004
|
upsertRecommendation?: UpsertRecommendation; // For data upsert recommendations, we use this field
|
987
1005
|
parentId?: string; // Any parent recommendation that generated this recommendation
|
1006
|
+
dateDue?: number;
|
1007
|
+
dateRemindMe?: number;
|
1008
|
+
archived: boolean;
|
1009
|
+
favorite: boolean;
|
1010
|
+
snoozed: boolean;
|
1011
|
+
status?: TaskStatus;
|
988
1012
|
|
989
1013
|
constructor(
|
990
1014
|
sharingTags: SharingTag[],
|
@@ -1001,6 +1025,11 @@ export class Recommendation extends SharedPrimitive {
|
|
1001
1025
|
this.referenceBlock = referenceBlock;
|
1002
1026
|
this.tenantIdCreated = tenantIdCreated;
|
1003
1027
|
this.recommendationType = recommendationType;
|
1028
|
+
|
1029
|
+
this.archived = false;
|
1030
|
+
this.favorite = false;
|
1031
|
+
this.snoozed = false;
|
1032
|
+
this.status = TaskStatus.NotStarted;
|
1004
1033
|
}
|
1005
1034
|
}
|
1006
1035
|
|