@bigfootai/bigfoot-types 4.5.3 → 4.5.5

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 +55 -3
  2. package/model.ts +90 -0
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ReferenceBlockInputQL = exports.ConnectedProviderQL = exports.CredentialQL = exports.StandardObjectsQL = exports.ProviderResponseQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.DateEntityEntryQL = exports.EntityEntryQL = exports.EntityEntryFields = exports.RelationEntryQL = exports.ArgumentEntryQL = exports.EntityReferenceQL = exports.DocumentSentimentQL = exports.TaskStepQL = exports.TaskStepInputQL = exports.ReactionQL = exports.ReactionSkinToneQL = exports.SharingTenantQL = exports.SharingDomainQL = exports.SharingTagQL = exports.SharingTagInputQL = exports.InviteSharingTagInputQL = exports.EditorQL = exports.EditorInputQL = exports.HighlightQL = exports.RelationType = exports.EntityType = exports.RecordType = exports.ProcessingStage = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.TagRecommendationVariation = exports.TagRecommendationType = exports.InviteStatus = exports.OrderByDirection = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.TaskPriority = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = void 0;
4
- exports.PersonAcceptanceQL = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.ConferenceQL = exports.ConferenceEntrypointQL = exports.TranscriptionQL = exports.TranscriptionEntryQL = exports.Task = exports.TaskQL = exports.TaskFields = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.History = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.ProviderRecommendationQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Metadata = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = void 0;
5
- exports.FindTaskInputQL = exports.UpdateTaskInputQL = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.FindDomainInputQL = exports.FindTenantInputQL = exports.Table = exports.TableQL = exports.Record = exports.RecordQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = exports.FieldQL = exports.OptionQL = exports.FieldVariation = exports.FieldType = exports.Template = exports.TemplateQL = exports.DocumentMetadata = exports.DocumentMetadataQL = exports.BlockDescriptionQL = exports.Website = exports.WebsiteQL = exports.Document = exports.DocumentQL = exports.Thread = exports.Todo = exports.Calendar = exports.CalendarQL = exports.Event = exports.EventQL = void 0;
6
- exports.GraphQLTypes = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = void 0;
4
+ exports.EventStatus = exports.Conference = exports.ConferenceQL = exports.ConferenceEntrypointQL = exports.TranscriptionQL = exports.TranscriptionEntryQL = exports.Task = exports.TaskQL = exports.TaskFields = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.History = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.ProviderRecommendationQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Folder = exports.FolderQL = exports.Metadata = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = void 0;
5
+ exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.FindDomainInputQL = exports.FindTenantInputQL = exports.Table = exports.TableQL = exports.Record = exports.RecordQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = exports.FieldQL = exports.OptionQL = exports.FieldVariation = exports.FieldType = exports.Template = exports.TemplateQL = exports.DocumentMetadata = exports.DocumentMetadataQL = exports.BlockDescriptionQL = exports.Website = exports.WebsiteQL = exports.Document = exports.DocumentQL = exports.Thread = exports.Todo = exports.Calendar = exports.CalendarQL = exports.Event = exports.EventQL = exports.PersonAcceptanceQL = exports.ResponseStatus = void 0;
6
+ exports.GraphQLTypes = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveFolderOutputQL = exports.ArchiveFolderInputQL = exports.FindFoldersInputQL = exports.FindFolderInputQL = exports.UpsertFolderInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.UpdateTaskInputQL = void 0;
7
7
  const uuid_1 = require("uuid");
8
8
  /*
9
9
  These are the core primitives of our model. These represent the entities that show
@@ -442,6 +442,21 @@ class Metadata extends Primitive {
442
442
  }
443
443
  }
444
444
  exports.Metadata = Metadata;
445
+ exports.FolderQL = `
446
+ type Folder {${exports.SharedPrimitiveFields}
447
+ label: String!
448
+ description: String
449
+ searchIds: [String]
450
+ archived: Boolean!
451
+ }`;
452
+ class Folder extends SharedPrimitive {
453
+ constructor(tenantIdCreated, sharingTags) {
454
+ super(sharingTags);
455
+ this.tenantIdCreated = tenantIdCreated;
456
+ this.archived = false;
457
+ }
458
+ }
459
+ exports.Folder = Folder;
445
460
  exports.SearchQL = `
446
461
  type Search {${exports.SharedPrimitiveFields}
447
462
  search: String
@@ -522,6 +537,7 @@ exports.TagFieldsWithoutSharing = `${exports.PrimitiveFields}
522
537
  originNoteId: String
523
538
  tenantIdVerified: String
524
539
  archived: Boolean!
540
+ favorite: Boolean!
525
541
  taskCount: Int`;
526
542
  exports.TagFieldsJustSharing = `
527
543
  sharingDomains: [SharingDomain]
@@ -536,6 +552,7 @@ class Tag extends Primitive {
536
552
  this.alias = alias;
537
553
  this.tagType = tagType;
538
554
  this.archived = false;
555
+ this.favorite = false;
539
556
  this._createdByAI = false;
540
557
  }
541
558
  }
@@ -1106,6 +1123,7 @@ input UpsertTagInput {
1106
1123
  avatar: String
1107
1124
  inviteStatus: Int
1108
1125
  originNoteId: String
1126
+ favorite: Boolean
1109
1127
  sharingDomains: [SharingDomainInput]
1110
1128
  sharingTenants: [SharingTenantInput]
1111
1129
  }`;
@@ -1119,6 +1137,7 @@ input FindTagsInput {
1119
1137
  alias: String
1120
1138
  friendlyName: String
1121
1139
  archived: Boolean
1140
+ favorite: Boolean
1122
1141
  }`;
1123
1142
  exports.ArchiveTagInputQL = `
1124
1143
  input ArchiveTagInput {
@@ -1171,6 +1190,33 @@ type ArchiveTaskOutput {
1171
1190
  _id: String!
1172
1191
  archived: Boolean!
1173
1192
  }`;
1193
+ exports.UpsertFolderInputQL = `
1194
+ input UpsertFolderInput {
1195
+ _id: String
1196
+ sharingTags: [SharingTagInput]
1197
+ label: string;
1198
+ description?: string;
1199
+ searchIds?: string[];
1200
+ }`;
1201
+ exports.FindFolderInputQL = `
1202
+ input FindFolderInput {
1203
+ _id: String!
1204
+ archived: Boolean
1205
+ }`;
1206
+ exports.FindFoldersInputQL = `
1207
+ input FindFoldersInput {
1208
+ archived: Boolean
1209
+ }`;
1210
+ exports.ArchiveFolderInputQL = `
1211
+ input ArchiveFolderInput {
1212
+ _id: String!
1213
+ archive: Boolean
1214
+ }`;
1215
+ exports.ArchiveFolderOutputQL = `
1216
+ type ArchiveFolderOutput {
1217
+ _id: String!
1218
+ archived: Boolean!
1219
+ }`;
1174
1220
  exports.UpsertSearchInputQL = `
1175
1221
  input UpsertSearchInput {
1176
1222
  _id: String
@@ -1222,6 +1268,7 @@ input SearchTagsInput {
1222
1268
  email: String
1223
1269
  inviteStatus: Int
1224
1270
  archived: Boolean
1271
+ favorite: Boolean
1225
1272
  hasTasks: Boolean
1226
1273
  orderByAlias: String
1227
1274
  orderByTaskCount: String
@@ -1343,6 +1390,11 @@ ${exports.FindTaskInputQL}
1343
1390
  ${exports.FindTasksInputQL}
1344
1391
  ${exports.ArchiveTaskInputQL}
1345
1392
  ${exports.ArchiveTaskOutputQL}
1393
+ ${exports.UpsertFolderInputQL}
1394
+ ${exports.FindFolderInputQL}
1395
+ ${exports.FindFoldersInputQL}
1396
+ ${exports.ArchiveFolderInputQL}
1397
+ ${exports.ArchiveFolderOutputQL}
1346
1398
  ${exports.UpsertSearchInputQL}
1347
1399
  ${exports.FindSearchInputQL}
1348
1400
  ${exports.FindSearchesInputQL}
package/model.ts CHANGED
@@ -641,6 +641,28 @@ export class Metadata extends Primitive {
641
641
  }
642
642
  }
643
643
 
644
+ export const FolderQL = `
645
+ type Folder {${SharedPrimitiveFields}
646
+ label: String!
647
+ description: String
648
+ searchIds: [String]
649
+ archived: Boolean!
650
+ }`;
651
+ export class Folder extends SharedPrimitive {
652
+ label: string;
653
+ description?: string;
654
+ searchIds?: string[];
655
+ archived: boolean;
656
+ _tagType: string;
657
+
658
+ constructor(tenantIdCreated: string, sharingTags: SharingTag[]) {
659
+ super(sharingTags);
660
+
661
+ this.tenantIdCreated = tenantIdCreated;
662
+ this.archived = false;
663
+ }
664
+ }
665
+
644
666
  export const SearchQL = `
645
667
  type Search {${SharedPrimitiveFields}
646
668
  search: String
@@ -764,6 +786,7 @@ export const TagFieldsWithoutSharing = `${PrimitiveFields}
764
786
  originNoteId: String
765
787
  tenantIdVerified: String
766
788
  archived: Boolean!
789
+ favorite: Boolean!
767
790
  taskCount: Int`;
768
791
  export const TagFieldsJustSharing = `
769
792
  sharingDomains: [SharingDomain]
@@ -786,9 +809,11 @@ export class Tag extends Primitive {
786
809
  originNoteId?: string; // If the tag originated from a note, we store that here
787
810
  tenantIdVerified?: string; // The tenant._id that claimed/verified this tag as being them
788
811
  archived: boolean;
812
+ favorite: boolean;
789
813
  taskCount?: number;
790
814
  _createdByAI: boolean;
791
815
  _orphan?: boolean;
816
+ _savedSearchId?: string;
792
817
 
793
818
  constructor(tenantIdCreated: string, alias: string, tagType: TagType) {
794
819
  super();
@@ -798,6 +823,7 @@ export class Tag extends Primitive {
798
823
  this.tagType = tagType;
799
824
 
800
825
  this.archived = false;
826
+ this.favorite = false;
801
827
  this._createdByAI = false;
802
828
  }
803
829
  }
@@ -1997,6 +2023,7 @@ input UpsertTagInput {
1997
2023
  avatar: String
1998
2024
  inviteStatus: Int
1999
2025
  originNoteId: String
2026
+ favorite: Boolean
2000
2027
  sharingDomains: [SharingDomainInput]
2001
2028
  sharingTenants: [SharingTenantInput]
2002
2029
  }`;
@@ -2017,11 +2044,13 @@ input FindTagsInput {
2017
2044
  alias: String
2018
2045
  friendlyName: String
2019
2046
  archived: Boolean
2047
+ favorite: Boolean
2020
2048
  }`;
2021
2049
  export interface FindTagsInput {
2022
2050
  alias?: string;
2023
2051
  friendlyName?: string;
2024
2052
  archived?: boolean;
2053
+ favorite?: boolean;
2025
2054
  }
2026
2055
 
2027
2056
  export const ArchiveTagInputQL = `
@@ -2126,6 +2155,60 @@ export interface ArchiveTaskOutput {
2126
2155
  archived: boolean;
2127
2156
  }
2128
2157
 
2158
+ export const UpsertFolderInputQL = `
2159
+ input UpsertFolderInput {
2160
+ _id: String
2161
+ sharingTags: [SharingTagInput]
2162
+ label: string;
2163
+ description?: string;
2164
+ searchIds?: string[];
2165
+ }`;
2166
+ export interface UpsertFolderInput {
2167
+ _id: string;
2168
+ sharingTags?: SharingTag[];
2169
+ label: string;
2170
+ description?: string;
2171
+ searchIds?: string[];
2172
+ }
2173
+
2174
+ export const FindFolderInputQL = `
2175
+ input FindFolderInput {
2176
+ _id: String!
2177
+ archived: Boolean
2178
+ }`;
2179
+ export interface FindFolderInput {
2180
+ _id: string;
2181
+ archived?: boolean;
2182
+ }
2183
+
2184
+ export const FindFoldersInputQL = `
2185
+ input FindFoldersInput {
2186
+ archived: Boolean
2187
+ }`;
2188
+ export interface FindFoldersInput {
2189
+ archived?: boolean;
2190
+ }
2191
+
2192
+ export const ArchiveFolderInputQL = `
2193
+ input ArchiveFolderInput {
2194
+ _id: String!
2195
+ archive: Boolean
2196
+ }`;
2197
+ export interface ArchiveFolderInput {
2198
+ _id: string;
2199
+ archive?: boolean;
2200
+ }
2201
+
2202
+ export const ArchiveFolderOutputQL = `
2203
+ type ArchiveFolderOutput {
2204
+ _id: String!
2205
+ archived: Boolean!
2206
+ }`;
2207
+ export interface ArchiveFolderOutput {
2208
+ _id: string;
2209
+ archived: boolean;
2210
+ }
2211
+
2129
2212
  export const UpsertSearchInputQL = `
2130
2213
  input UpsertSearchInput {
2131
2214
  _id: String
@@ -2219,6 +2302,7 @@ input SearchTagsInput {
2219
2302
  email: String
2220
2303
  inviteStatus: Int
2221
2304
  archived: Boolean
2305
+ favorite: Boolean
2222
2306
  hasTasks: Boolean
2223
2307
  orderByAlias: String
2224
2308
  orderByTaskCount: String
@@ -2236,6 +2320,7 @@ export interface SearchTagsInput {
2236
2320
  email?: string;
2237
2321
  inviteStatus?: InviteStatus;
2238
2322
  archived?: boolean;
2323
+ favorite?: boolean;
2239
2324
  hasTasks?: boolean;
2240
2325
  orderByAlias?: OrderByDirection;
2241
2326
  orderByTaskCount?: OrderByDirection;
@@ -2381,6 +2466,11 @@ ${FindTaskInputQL}
2381
2466
  ${FindTasksInputQL}
2382
2467
  ${ArchiveTaskInputQL}
2383
2468
  ${ArchiveTaskOutputQL}
2469
+ ${UpsertFolderInputQL}
2470
+ ${FindFolderInputQL}
2471
+ ${FindFoldersInputQL}
2472
+ ${ArchiveFolderInputQL}
2473
+ ${ArchiveFolderOutputQL}
2384
2474
  ${UpsertSearchInputQL}
2385
2475
  ${FindSearchInputQL}
2386
2476
  ${FindSearchesInputQL}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.5.3",
4
+ "version": "4.5.5",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",