@bigfootai/bigfoot-types 4.5.21 → 4.6.1

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 +10 -6
  2. package/model.ts +11 -6
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -83,9 +83,10 @@ var OrderByDirection;
83
83
  })(OrderByDirection || (exports.OrderByDirection = OrderByDirection = {}));
84
84
  var InviteStatus;
85
85
  (function (InviteStatus) {
86
- InviteStatus[InviteStatus["NotInvited"] = 0] = "NotInvited";
87
- InviteStatus[InviteStatus["InviteSent"] = 1] = "InviteSent";
88
- InviteStatus[InviteStatus["InviteAccepted"] = 2] = "InviteAccepted";
86
+ InviteStatus["NotInvited"] = "not_invited";
87
+ InviteStatus["SendInvite"] = "send_invite";
88
+ InviteStatus["InviteSent"] = "invite_sent";
89
+ InviteStatus["InviteAccepted"] = "invite_accepted";
89
90
  })(InviteStatus || (exports.InviteStatus = InviteStatus = {}));
90
91
  var TagRecommendationType;
91
92
  (function (TagRecommendationType) {
@@ -544,7 +545,7 @@ exports.TagFieldsWithoutSharing = `${exports.PrimitiveFields}
544
545
  dbpedia: String
545
546
  email: String
546
547
  avatar: String
547
- inviteStatus: Int
548
+ inviteStatus: String
548
549
  originNoteId: String
549
550
  tenantIdVerified: String
550
551
  archived: Boolean!
@@ -565,6 +566,9 @@ class Tag extends Primitive {
565
566
  this.archived = false;
566
567
  this.favorite = false;
567
568
  this._createdByAI = false;
569
+ if (this.tagType == TagType.Person) {
570
+ this.inviteStatus = InviteStatus.NotInvited;
571
+ }
568
572
  }
569
573
  }
570
574
  exports.Tag = Tag;
@@ -1149,7 +1153,7 @@ input UpsertTagInput {
1149
1153
  dbpedia: String
1150
1154
  email: String
1151
1155
  avatar: String
1152
- inviteStatus: Int
1156
+ inviteStatus: String
1153
1157
  originNoteId: String
1154
1158
  favorite: Boolean
1155
1159
  hasAutoShareNotesOn: Boolean
@@ -1297,7 +1301,7 @@ input SearchTagsInput {
1297
1301
  _ids: [String]
1298
1302
  search: String
1299
1303
  email: String
1300
- inviteStatus: Int
1304
+ inviteStatus: String
1301
1305
  archived: Boolean
1302
1306
  favorite: Boolean
1303
1307
  hasTasks: Boolean
package/model.ts CHANGED
@@ -77,9 +77,10 @@ export enum OrderByDirection {
77
77
  }
78
78
 
79
79
  export enum InviteStatus {
80
- NotInvited = 0,
81
- InviteSent = 1,
82
- InviteAccepted = 2,
80
+ NotInvited = 'not_invited',
81
+ SendInvite = 'send_invite',
82
+ InviteSent = 'invite_sent',
83
+ InviteAccepted = 'invite_accepted',
83
84
  }
84
85
 
85
86
  export enum TagRecommendationType {
@@ -801,7 +802,7 @@ export const TagFieldsWithoutSharing = `${PrimitiveFields}
801
802
  dbpedia: String
802
803
  email: String
803
804
  avatar: String
804
- inviteStatus: Int
805
+ inviteStatus: String
805
806
  originNoteId: String
806
807
  tenantIdVerified: String
807
808
  archived: Boolean!
@@ -850,6 +851,10 @@ export class Tag extends Primitive {
850
851
  this.archived = false;
851
852
  this.favorite = false;
852
853
  this._createdByAI = false;
854
+
855
+ if (this.tagType == TagType.Person) {
856
+ this.inviteStatus = InviteStatus.NotInvited;
857
+ }
853
858
  }
854
859
  }
855
860
 
@@ -2076,7 +2081,7 @@ input UpsertTagInput {
2076
2081
  dbpedia: String
2077
2082
  email: String
2078
2083
  avatar: String
2079
- inviteStatus: Int
2084
+ inviteStatus: String
2080
2085
  originNoteId: String
2081
2086
  favorite: Boolean
2082
2087
  hasAutoShareNotesOn: Boolean
@@ -2361,7 +2366,7 @@ input SearchTagsInput {
2361
2366
  _ids: [String]
2362
2367
  search: String
2363
2368
  email: String
2364
- inviteStatus: Int
2369
+ inviteStatus: String
2365
2370
  archived: Boolean
2366
2371
  favorite: Boolean
2367
2372
  hasTasks: Boolean
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.5.21",
4
+ "version": "4.6.1",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",