@bigfootai/bigfoot-types 4.9.34 → 5.0.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 (4) hide show
  1. package/a_article.txt +58 -0
  2. package/model.js +47 -89
  3. package/model.ts +49 -158
  4. package/package.json +1 -1
package/a_article.txt ADDED
@@ -0,0 +1,58 @@
1
+ _id: string;
2
+ dateCreated: number;
3
+ dateUpdated: number;
4
+ tenantIdCreated?: string;
5
+ blockType: BlockType;
6
+ editors: Editor[];
7
+
8
+ -> document?: any;
9
+ embedding?: number[];
10
+
11
+ dates?: EntityEntry[];
12
+ locations?: EntityEntry[];
13
+ emails?: string[];
14
+ businessObjects?: BusinessObjectLink[];
15
+
16
+ sharingTags?: SharingTag[];
17
+ _parentSharingTagIds?: string[];
18
+ _parentTagIds?: string[];
19
+ _sharingTagIds?: string[];
20
+ _tagIds?: string[];
21
+
22
+ archived: boolean;
23
+ favorite: boolean;
24
+ snoozed: boolean;
25
+ _empty: boolean;
26
+
27
+ dateDue?: number;
28
+ dateRemindMe?: number;
29
+ status?: TaskStatus;
30
+ _dateDueUserAssigned: Boolean;
31
+
32
+ editorId?: string;
33
+ editorGroupId?: string;
34
+
35
+ parentId?: string;
36
+
37
+ originNoteId -> originBlockId?: string;
38
+
39
+ _timeZone?: string;
40
+ _locale?: string;
41
+
42
+ score?: number;
43
+ _tasks?: Task[];
44
+
45
+ -> _tagRecommendations?: TagRecommendation[];
46
+ _entitiesPerson?: EntityEntry[];
47
+ _entitiesOrganization?: EntityEntry[];
48
+ _entitiesTopic?: EntityEntry[];
49
+ _emails?: EntityEntry[];
50
+
51
+
52
+ Remove --
53
+ sentiment?: DocumentSentiment;
54
+ _changes?: Changes;
55
+ relations?: RelationEntry[];
56
+ referenceBlock: ReferenceBlock;
57
+ version: number;
58
+ reactions?: Reaction[];
package/model.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CredentialQL = exports.StandardObjectsQL = exports.ProviderResponseQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.EntityEntryQL = exports.EntityEntryFields = exports.RelationEntryQL = exports.ArgumentEntryQL = exports.EntityReferenceQL = exports.DocumentSentimentQL = exports.TaskStepQL = exports.TaskStepInputQL = exports.ReactionQL = exports.ReactionSkinToneQL = exports.BusinessObjectLinkQL = exports.BusinessObjectLinkInputQL = exports.SharingTenantQL = exports.TenantSettingQL = exports.SharingDomainQL = exports.SharingTagQL = exports.SharingTagInputQL = exports.InviteSharingTagInputQL = exports.EditorQL = exports.EditorInputQL = exports.HighlightQL = exports.RelationType = exports.EntityType = exports.RecordType = exports.ThumbsDirection = exports.ProcessingStage = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.TagRecommendationType = exports.InviteStatus = exports.OrderByDirection = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.TaskPriority = exports.AccessType = exports.SharingLevel = exports.ClientType = exports.ExportType = exports.TagType = exports.UpsertType = exports.RecommendationType = exports.BlockType = void 0;
4
- exports.BlockProcessingRequest = exports.Block = exports.BlockFieldsForUpsert = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.Recommendation = exports.RecommendationQL = exports.ShareRecommendationQL = exports.UpsertRecommendationQL = exports.ConnectRecommendationQL = exports.TenantLight = exports.TenantLightQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.DashboardTagSubscriptionQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Folder = exports.FolderQL = exports.Metadata = exports.MetadataQL = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFieldsForUpsert = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFieldsForUpsert = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ReferenceBlockInputQL = exports.ConnectedProviderQL = void 0;
5
- exports.RecordInputQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = exports.FieldValueInputQL = exports.FieldQL = exports.OptionQL = exports.FieldVariation = exports.FieldType = exports.Template = exports.TemplateQL = exports.DashboardMetadata = exports.DashboardMetadataQL = exports.DocumentMetadata = exports.DocumentMetadataQL = exports.BlockDescriptionQL = exports.Website = exports.WebsiteQL = exports.Dashboard = exports.DashboardQL = exports.BlockDataQL = exports.Document = exports.DocumentQL = exports.Thread = exports.Todo = exports.Calendar = exports.CalendarQL = exports.Event = exports.EventQL = exports.PersonAcceptanceQL = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.ConferenceQL = exports.ConferenceEntrypointQL = exports.TranscriptionQL = exports.TranscriptionEntryQL = exports.Task = exports.TaskQL = exports.TaskFieldsForUpsert = exports.TaskFields = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFieldsForUpsert = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.History = exports.BlockProcessingResponse = void 0;
6
- 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 = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.MergeTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveRecommendationOutputQL = exports.ArchiveRecommendationInputQL = exports.UpdateRecommendationInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindDashboardInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.FindDomainInputQL = exports.FindTenantInputQL = exports.UpsertRecordsInputQL = exports.FindRecordsInputQL = exports.FindRecordInputQL = exports.Table = exports.TableQL = exports.TableFields = exports.Record = exports.RecordQL = void 0;
7
- exports.GraphQLTypes = exports.UpdateTagSharingInputQL = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = void 0;
4
+ exports.BusinessObjectIngestionRequest = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFieldsForUpsert = exports.BlockFields = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.Recommendation = exports.RecommendationQL = exports.ShareRecommendationQL = exports.UpsertRecommendationQL = exports.ConnectRecommendationQL = exports.TenantLight = exports.TenantLightQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.DashboardTagSubscriptionQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Folder = exports.FolderQL = exports.Metadata = exports.MetadataQL = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFieldsForUpsert = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFieldsForUpsert = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ReferenceBlockInputQL = exports.ConnectedProviderQL = void 0;
5
+ exports.TableFields = exports.Record = exports.RecordQL = exports.RecordInputQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = exports.FieldValueInputQL = exports.FieldQL = exports.OptionQL = exports.FieldVariation = exports.FieldType = exports.Template = exports.TemplateQL = exports.DashboardMetadata = exports.DashboardMetadataQL = exports.DocumentMetadata = exports.DocumentMetadataQL = exports.BlockDescriptionQL = exports.Website = exports.WebsiteQL = exports.Dashboard = exports.DashboardQL = exports.BlockDataQL = exports.Document = exports.DocumentQL = exports.Thread = exports.Todo = exports.Calendar = exports.CalendarQL = exports.Event = exports.EventQL = exports.PersonAcceptanceQL = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.ConferenceQL = exports.ConferenceEntrypointQL = exports.TranscriptionQL = exports.TranscriptionEntryQL = exports.Task = exports.TaskQL = exports.TaskFieldsForUpsert = exports.TaskFields = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFieldsForUpsert = exports.BusinessObjectFields = void 0;
6
+ 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 = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.MergeTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveRecommendationOutputQL = exports.ArchiveRecommendationInputQL = exports.UpdateRecommendationInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindDashboardInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.FindDomainInputQL = exports.FindTenantInputQL = exports.UpsertRecordsInputQL = exports.FindRecordsInputQL = exports.FindRecordInputQL = exports.Table = exports.TableQL = void 0;
7
+ exports.GraphQLTypes = exports.UpdateTagSharingInputQL = void 0;
8
8
  const uuid_1 = require("uuid");
9
9
  /*
10
10
  These are the core primitives of our model. These represent the entities that show
@@ -415,13 +415,11 @@ type ConnectedProvider {
415
415
  exports.ReferenceBlockInputQL = `
416
416
  input ReferenceBlockInput {
417
417
  id: String!
418
- version: Int
419
418
  type: String!
420
419
  }`;
421
420
  exports.ReferenceBlockQL = `
422
421
  type ReferenceBlock {
423
422
  id: String!
424
- version: Int!
425
423
  type: String!
426
424
  }`;
427
425
  exports.ChangesInputQL = `
@@ -808,91 +806,53 @@ class Person extends Tag {
808
806
  }
809
807
  }
810
808
  exports.Person = Person;
811
- exports.ArticleQL = `
812
- type Article {${exports.PrimitiveFields}
813
- referenceBlock: ReferenceBlock!
814
- sentiment: DocumentSentiment
815
- dateDue: Float
816
- dateRemindMe: Float
817
- dates: [EntityEntry]
818
- locations: [EntityEntry]
819
- emails: [String]
820
- businessObjects: [BusinessObjectLink]
821
- sharingTags: [SharingTag]
822
- tagRecommendations: [TagRecommendation]
823
- relations: [RelationEntry]
824
- archived: Boolean!
825
- favorite: Boolean!
826
- snoozed: Boolean
827
- status: String
828
- originNoteId: String
829
- editorId: String
830
- editorGroupId: String
831
- parentId: String
832
- score: Float
833
- }`;
834
- class Article extends Primitive {
835
- constructor(referenceBlock) {
836
- super();
837
- this.archived = false;
838
- this.favorite = false;
839
- this.snoozed = false;
840
- this.referenceBlock = referenceBlock;
841
- this._empty = false;
842
- }
843
- }
844
- exports.Article = Article;
845
809
  exports.BlockFields = `${exports.SharedPrimitiveFields}
846
810
  editors: [Editor]!
847
- version: Float!
848
811
  blockType: String!
812
+ document: String
813
+ dates: [EntityEntry]
814
+ locations: [EntityEntry]
815
+ emails: [String]
816
+ businessObjects: [BusinessObjectLink]
849
817
  archived: Boolean!
850
818
  favorite: Boolean!
819
+ snoozed: Boolean!
820
+ dateDue: Float
821
+ dateRemindMe: Float
822
+ status: String
851
823
  parentId: String
852
- score: Float
853
- originNoteId: String
854
- document: String
855
- reactions: [Reaction]`;
824
+ originReferenceBlock: ReferenceBlock`;
856
825
  exports.BlockFieldsForUpsert = `${exports.SharedPrimitiveFieldsForUpsert}
857
826
  archived: Boolean
858
827
  favorite: Boolean
859
828
  parentId: String
860
829
  document: String`;
861
830
  class Block extends SharedPrimitive {
862
- constructor(tenantIdCreated, editors, sharingTags, version, blockType) {
831
+ constructor(tenantIdCreated, editors, sharingTags, blockType) {
863
832
  super(sharingTags);
864
833
  this.tenantIdCreated = tenantIdCreated;
865
834
  this.editors = editors;
866
- this.version = version;
867
835
  this.blockType = blockType;
868
836
  this.archived = false;
869
837
  this.favorite = false;
838
+ this._dateDueUserAssigned = false;
870
839
  this._empty = false;
871
840
  }
872
841
  }
873
842
  exports.Block = Block;
874
843
  class BlockProcessingRequest {
875
- constructor(historyId, referenceBlock) {
876
- this.historyId = historyId;
844
+ constructor(referenceBlock) {
877
845
  this.referenceBlock = referenceBlock;
878
846
  }
879
847
  }
880
848
  exports.BlockProcessingRequest = BlockProcessingRequest;
881
849
  class BlockProcessingResponse {
882
- constructor(historyId, referenceBlock, articleId) {
883
- this.historyId = historyId;
850
+ constructor(referenceBlock, articleId) {
884
851
  this.referenceBlock = referenceBlock;
885
852
  this.articleId = articleId;
886
853
  }
887
854
  }
888
855
  exports.BlockProcessingResponse = BlockProcessingResponse;
889
- class History extends Primitive {
890
- constructor(block) {
891
- super();
892
- this.block = block;
893
- }
894
- }
895
- exports.History = History;
896
856
  class BusinessObjectIngestionRequest extends Primitive {
897
857
  constructor(tenantIdCreated, originReferenceBlock, uri) {
898
858
  super();
@@ -924,8 +884,8 @@ exports.BusinessObjectQL = `
924
884
  type BusinessObject {${exports.BusinessObjectFields}
925
885
  }`;
926
886
  class BusinessObject extends Block {
927
- constructor(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId) {
928
- super(tenantIdCreated, editors, sharingTags, version, blockType);
887
+ constructor(tenantIdCreated, editors, sharingTags, blockType, provider, application, uri, externalId) {
888
+ super(tenantIdCreated, editors, sharingTags, blockType);
929
889
  this.archived = false;
930
890
  this.provider = provider;
931
891
  this.application = application;
@@ -938,8 +898,8 @@ exports.NoteQL = `
938
898
  type Note {${exports.BlockFields}
939
899
  }`;
940
900
  class Note extends Block {
941
- constructor(tenantIdCreated, editors, sharingTags, version) {
942
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Note);
901
+ constructor(tenantIdCreated, editors, sharingTags) {
902
+ super(tenantIdCreated, editors, sharingTags, BlockType.Note);
943
903
  this.archived = false;
944
904
  }
945
905
  }
@@ -966,13 +926,12 @@ exports.TaskQL = `
966
926
  type Task {${exports.TaskFields}
967
927
  }`;
968
928
  class Task extends Block {
969
- constructor(tenantIdCreated, editors, sharingTags, version, originNoteId) {
970
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Task);
929
+ constructor(tenantIdCreated, editors, sharingTags) {
930
+ super(tenantIdCreated, editors, sharingTags, BlockType.Task);
971
931
  this.status = TaskStatus.NotStarted;
972
932
  this.snoozed = false;
973
933
  this.archived = false;
974
934
  this._dateDueUserAssigned = false;
975
- this.originNoteId = originNoteId;
976
935
  }
977
936
  }
978
937
  exports.Task = Task;
@@ -1013,8 +972,8 @@ type Conference {${exports.BusinessObjectFields}
1013
972
  transcription: Transcription
1014
973
  }`;
1015
974
  class Conference extends BusinessObject {
1016
- constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId, entryPoints) {
1017
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Conference, provider, application, uri, externalId);
975
+ constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId, entryPoints) {
976
+ super(tenantIdCreated, editors, sharingTags, BlockType.Conference, provider, application, uri, externalId);
1018
977
  this.entryPoints = entryPoints;
1019
978
  }
1020
979
  }
@@ -1054,10 +1013,10 @@ type Event {${exports.BusinessObjectFields}
1054
1013
  conference: Conference
1055
1014
  }`;
1056
1015
  class Event extends BusinessObject {
1057
- constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId, calendarId, status, dateStart, organizedBy) {
1058
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Event, provider, application, uri, externalId);
1016
+ constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId, calendarId, eventStatus, dateStart, organizedBy) {
1017
+ super(tenantIdCreated, editors, sharingTags, BlockType.Event, provider, application, uri, externalId);
1059
1018
  this.calendarId = calendarId;
1060
- this.status = status;
1019
+ this.eventStatus = eventStatus;
1061
1020
  this.dateStart = dateStart;
1062
1021
  this.organizedBy = organizedBy;
1063
1022
  }
@@ -1071,8 +1030,8 @@ type Calendar {${exports.BusinessObjectFields}
1071
1030
  events: [Event]
1072
1031
  }`;
1073
1032
  class Calendar extends BusinessObject {
1074
- constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId, timeZone) {
1075
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Calendar, provider, application, uri, externalId);
1033
+ constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId, timeZone) {
1034
+ super(tenantIdCreated, editors, sharingTags, BlockType.Calendar, provider, application, uri, externalId);
1076
1035
  this.timeZone = timeZone;
1077
1036
  }
1078
1037
  }
@@ -1080,8 +1039,8 @@ exports.Calendar = Calendar;
1080
1039
  //// EVENT END
1081
1040
  //// EXTERNAL TASK START
1082
1041
  class Todo extends BusinessObject {
1083
- constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId, status, dateDue) {
1084
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Todo, provider, application, uri, externalId);
1042
+ constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId, status, dateDue) {
1043
+ super(tenantIdCreated, editors, sharingTags, BlockType.Todo, provider, application, uri, externalId);
1085
1044
  this.status = status;
1086
1045
  this.dateDue = dateDue;
1087
1046
  }
@@ -1090,8 +1049,8 @@ exports.Todo = Todo;
1090
1049
  //// EXTERNAL TASK END
1091
1050
  //// MESSAGING START
1092
1051
  class Thread extends BusinessObject {
1093
- constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
1094
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Thread, provider, application, uri, externalId);
1052
+ constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId) {
1053
+ super(tenantIdCreated, editors, sharingTags, BlockType.Thread, provider, application, uri, externalId);
1095
1054
  }
1096
1055
  }
1097
1056
  exports.Thread = Thread;
@@ -1105,8 +1064,8 @@ type Document {${exports.BusinessObjectFields}
1105
1064
  htmlContent: String
1106
1065
  }`;
1107
1066
  class Document extends BusinessObject {
1108
- constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
1109
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Document, provider, application, uri, externalId);
1067
+ constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId) {
1068
+ super(tenantIdCreated, editors, sharingTags, BlockType.Document, provider, application, uri, externalId);
1110
1069
  }
1111
1070
  }
1112
1071
  exports.Document = Document;
@@ -1126,8 +1085,8 @@ type Dashboard {${exports.BusinessObjectFields}
1126
1085
  blockData: [BlockData]
1127
1086
  }`;
1128
1087
  class Dashboard extends BusinessObject {
1129
- constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId, dashboardMetadata) {
1130
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Dashboard, provider, application, uri, externalId);
1088
+ constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId, dashboardMetadata) {
1089
+ super(tenantIdCreated, editors, sharingTags, BlockType.Dashboard, provider, application, uri, externalId);
1131
1090
  this.blockData = [];
1132
1091
  // Go through the block descriptions and create the block data entries
1133
1092
  for (const blockDescription of dashboardMetadata.blockDescriptions) {
@@ -1151,8 +1110,8 @@ type Website {${exports.BusinessObjectFields}
1151
1110
  htmlContent: String
1152
1111
  }`;
1153
1112
  class Website extends BusinessObject {
1154
- constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
1155
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Website, provider, application, uri, externalId);
1113
+ constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId) {
1114
+ super(tenantIdCreated, editors, sharingTags, BlockType.Website, provider, application, uri, externalId);
1156
1115
  }
1157
1116
  }
1158
1117
  exports.Website = Website;
@@ -1197,8 +1156,8 @@ type Template {${exports.BusinessObjectFields}
1197
1156
  metadata: DocumentMetadata
1198
1157
  }`;
1199
1158
  class Template extends BusinessObject {
1200
- constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
1201
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Template, provider, application, uri, externalId);
1159
+ constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId) {
1160
+ super(tenantIdCreated, editors, sharingTags, BlockType.Template, provider, application, uri, externalId);
1202
1161
  }
1203
1162
  }
1204
1163
  exports.Template = Template;
@@ -1278,8 +1237,8 @@ type Record {${exports.BusinessObjectFields}
1278
1237
  values: [FieldValue]!
1279
1238
  }`;
1280
1239
  class Record extends BusinessObject {
1281
- constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId, values) {
1282
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Record, provider, application, uri, externalId);
1240
+ constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId, values) {
1241
+ super(tenantIdCreated, editors, sharingTags, BlockType.Record, provider, application, uri, externalId);
1283
1242
  this.values = values;
1284
1243
  this.enabled = true;
1285
1244
  }
@@ -1292,8 +1251,8 @@ exports.TableQL = `
1292
1251
  type Table {${exports.TableFields}
1293
1252
  }`;
1294
1253
  class Table extends BusinessObject {
1295
- constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId, metadata) {
1296
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Table, provider, application, uri, externalId);
1254
+ constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId, metadata) {
1255
+ super(tenantIdCreated, editors, sharingTags, BlockType.Table, provider, application, uri, externalId);
1297
1256
  this.metadata = metadata;
1298
1257
  }
1299
1258
  }
@@ -1670,7 +1629,6 @@ ${exports.RecommendationQL}
1670
1629
  ${exports.ConnectedProviderQL}
1671
1630
  ${exports.ReferenceBlockInputQL}
1672
1631
  ${exports.ReferenceBlockQL}
1673
- ${exports.ArticleQL}
1674
1632
  ${exports.DomainQL}
1675
1633
  ${exports.TenantQL}
1676
1634
  ${exports.BusinessObjectQL}
package/model.ts CHANGED
@@ -589,18 +589,15 @@ export interface ConnectedProvider {
589
589
  export const ReferenceBlockInputQL = `
590
590
  input ReferenceBlockInput {
591
591
  id: String!
592
- version: Int
593
592
  type: String!
594
593
  }`;
595
594
  export const ReferenceBlockQL = `
596
595
  type ReferenceBlock {
597
596
  id: String!
598
- version: Int!
599
597
  type: String!
600
598
  }`;
601
599
  export interface ReferenceBlock {
602
600
  id: string;
603
- version: number;
604
601
  type: BlockType;
605
602
  }
606
603
 
@@ -1245,90 +1242,22 @@ export class Person extends Tag {
1245
1242
  }
1246
1243
  }
1247
1244
 
1248
- export const ArticleQL = `
1249
- type Article {${PrimitiveFields}
1250
- referenceBlock: ReferenceBlock!
1251
- sentiment: DocumentSentiment
1252
- dateDue: Float
1253
- dateRemindMe: Float
1254
- dates: [EntityEntry]
1255
- locations: [EntityEntry]
1256
- emails: [String]
1257
- businessObjects: [BusinessObjectLink]
1258
- sharingTags: [SharingTag]
1259
- tagRecommendations: [TagRecommendation]
1260
- relations: [RelationEntry]
1261
- archived: Boolean!
1262
- favorite: Boolean!
1263
- snoozed: Boolean
1264
- status: String
1265
- originNoteId: String
1266
- editorId: String
1267
- editorGroupId: String
1268
- parentId: String
1269
- score: Float
1270
- }`;
1271
- export class Article extends Primitive {
1272
- referenceBlock: ReferenceBlock;
1273
- embedding?: number[];
1274
- sentiment?: DocumentSentiment;
1275
- dateDue?: number;
1276
- dateRemindMe?: number;
1277
- dates?: EntityEntry[];
1278
- locations?: EntityEntry[];
1279
- emails?: string[];
1280
- businessObjects?: BusinessObjectLink[];
1281
- sharingTags?: SharingTag[];
1282
- tagRecommendations?: TagRecommendation[];
1283
- relations?: RelationEntry[];
1284
- archived: boolean;
1285
- favorite: boolean;
1286
- snoozed: boolean;
1287
- status?: TaskStatus;
1288
- originNoteId?: string;
1289
- editorId?: string;
1290
- editorGroupId?: string;
1291
- parentId?: string;
1292
- score?: number;
1293
- _timeZone?: string;
1294
- _locale?: string;
1295
- _changes?: Changes;
1296
- _document?: any;
1297
- _tasks?: Task[];
1298
- _entitiesPerson?: EntityEntry[];
1299
- _entitiesOrganization?: EntityEntry[];
1300
- _entitiesTopic?: EntityEntry[];
1301
- _emails?: EntityEntry[];
1302
- _parentSharingTagIds?: string[];
1303
- _parentTagIds?: string[];
1304
- _sharingTagIds?: string[];
1305
- _tagIds?: string[];
1306
- _empty: boolean;
1307
-
1308
- constructor(referenceBlock: ReferenceBlock) {
1309
- super();
1310
-
1311
- this.archived = false;
1312
- this.favorite = false;
1313
- this.snoozed = false;
1314
-
1315
- this.referenceBlock = referenceBlock;
1316
-
1317
- this._empty = false;
1318
- }
1319
- }
1320
-
1321
1245
  export const BlockFields = `${SharedPrimitiveFields}
1322
1246
  editors: [Editor]!
1323
- version: Float!
1324
1247
  blockType: String!
1248
+ document: String
1249
+ dates: [EntityEntry]
1250
+ locations: [EntityEntry]
1251
+ emails: [String]
1252
+ businessObjects: [BusinessObjectLink]
1325
1253
  archived: Boolean!
1326
1254
  favorite: Boolean!
1255
+ snoozed: Boolean!
1256
+ dateDue: Float
1257
+ dateRemindMe: Float
1258
+ status: String
1327
1259
  parentId: String
1328
- score: Float
1329
- originNoteId: String
1330
- document: String
1331
- reactions: [Reaction]`;
1260
+ originReferenceBlock: ReferenceBlock`;
1332
1261
  export const BlockFieldsForUpsert = `${SharedPrimitiveFieldsForUpsert}
1333
1262
  archived: Boolean
1334
1263
  favorite: Boolean
@@ -1336,78 +1265,80 @@ export const BlockFieldsForUpsert = `${SharedPrimitiveFieldsForUpsert}
1336
1265
  document: String`;
1337
1266
  export class Block extends SharedPrimitive {
1338
1267
  editors: Editor[];
1339
- version: number;
1340
1268
  blockType: BlockType;
1269
+ // The document that represents the content of the block
1270
+ document?: any;
1271
+ // Graph properties that help us find the block
1272
+ _embedding?: number[];
1273
+ dates?: EntityEntry[];
1274
+ locations?: EntityEntry[];
1275
+ emails?: string[];
1276
+ businessObjects?: BusinessObjectLink[];
1277
+ // The various binary states
1341
1278
  archived: boolean;
1342
1279
  favorite: boolean;
1280
+ snoozed: boolean;
1281
+ // Tasky things about the block
1282
+ dateDue?: number;
1283
+ dateRemindMe?: number;
1284
+ status?: TaskStatus;
1285
+ _dateDueUserAssigned: boolean;
1286
+ // Editor informatino about teh block
1287
+ _editorId?: string;
1288
+ _editorGroupId?: string;
1289
+ // Relationship information about the block
1343
1290
  parentId?: string;
1344
- score?: number;
1345
- originNoteId?: string;
1346
- document?: any;
1347
- reactions?: Reaction[];
1348
- _changes?: Changes;
1291
+ originReferenceBlock?: ReferenceBlock;
1292
+ // Stuff to help manage the pipeline and search
1349
1293
  _timeZone?: string;
1350
1294
  _locale?: string;
1351
1295
  _empty: boolean;
1296
+ // Internal intelligence stuff
1297
+ _tagRecommendations?: TagRecommendation[];
1298
+ _entitiesPerson?: EntityEntry[];
1299
+ _entitiesOrganization?: EntityEntry[];
1300
+ _entitiesTopic?: EntityEntry[];
1301
+ _emails?: EntityEntry[];
1352
1302
 
1353
1303
  constructor(
1354
1304
  tenantIdCreated: string,
1355
1305
  editors: Editor[],
1356
1306
  sharingTags: SharingTag[],
1357
- version: number,
1358
1307
  blockType: BlockType
1359
1308
  ) {
1360
1309
  super(sharingTags);
1361
1310
 
1362
1311
  this.tenantIdCreated = tenantIdCreated;
1363
1312
  this.editors = editors;
1364
- this.version = version;
1365
1313
  this.blockType = blockType;
1366
1314
 
1367
1315
  this.archived = false;
1368
1316
  this.favorite = false;
1369
1317
 
1318
+ this._dateDueUserAssigned = false;
1319
+
1370
1320
  this._empty = false;
1371
1321
  }
1372
1322
  }
1373
1323
 
1374
1324
  export class BlockProcessingRequest {
1375
- historyId: string;
1376
1325
  referenceBlock: ReferenceBlock;
1377
1326
 
1378
- constructor(historyId: string, referenceBlock: ReferenceBlock) {
1379
- this.historyId = historyId;
1327
+ constructor(referenceBlock: ReferenceBlock) {
1380
1328
  this.referenceBlock = referenceBlock;
1381
1329
  }
1382
1330
  }
1383
1331
 
1384
1332
  export class BlockProcessingResponse {
1385
1333
  articleId: string;
1386
- historyId: string;
1387
1334
  referenceBlock: ReferenceBlock;
1388
1335
 
1389
- constructor(
1390
- historyId: string,
1391
- referenceBlock: ReferenceBlock,
1392
- articleId: string
1393
- ) {
1394
- this.historyId = historyId;
1336
+ constructor(referenceBlock: ReferenceBlock, articleId: string) {
1395
1337
  this.referenceBlock = referenceBlock;
1396
1338
  this.articleId = articleId;
1397
1339
  }
1398
1340
  }
1399
1341
 
1400
- export class History extends Primitive {
1401
- block: Block;
1402
- article?: Article;
1403
-
1404
- constructor(block: Block) {
1405
- super();
1406
-
1407
- this.block = block;
1408
- }
1409
- }
1410
-
1411
1342
  export interface SubscribingProviderApplication {
1412
1343
  provider: Provider;
1413
1344
  application: ProviderApplication;
@@ -1483,14 +1414,13 @@ export class BusinessObject extends Block {
1483
1414
  tenantIdCreated: string,
1484
1415
  editors: Editor[],
1485
1416
  sharingTags: SharingTag[],
1486
- version: number,
1487
1417
  blockType: BlockType,
1488
1418
  provider: string,
1489
1419
  application: string,
1490
1420
  uri: string,
1491
1421
  externalId: string
1492
1422
  ) {
1493
- super(tenantIdCreated, editors, sharingTags, version, blockType);
1423
+ super(tenantIdCreated, editors, sharingTags, blockType);
1494
1424
 
1495
1425
  this.archived = false;
1496
1426
 
@@ -1508,10 +1438,9 @@ export class Note extends Block {
1508
1438
  constructor(
1509
1439
  tenantIdCreated: string,
1510
1440
  editors: Editor[],
1511
- sharingTags: SharingTag[],
1512
- version: number
1441
+ sharingTags: SharingTag[]
1513
1442
  ) {
1514
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Note);
1443
+ super(tenantIdCreated, editors, sharingTags, BlockType.Note);
1515
1444
 
1516
1445
  this.archived = false;
1517
1446
  }
@@ -1539,32 +1468,17 @@ export const TaskQL = `
1539
1468
  type Task {${TaskFields}
1540
1469
  }`;
1541
1470
  export class Task extends Block implements BaseTask {
1542
- status: TaskStatus;
1543
- dateDue?: number;
1544
- originNoteId?: string;
1545
- editorId?: string;
1546
- editorGroupId?: string;
1547
- snoozed: boolean;
1548
- steps?: TaskStep[];
1549
- dateRemindMe?: number;
1550
- recurrence?: RecurrenceRFC[];
1551
- _dateDueUserAssigned: Boolean;
1552
-
1553
1471
  constructor(
1554
1472
  tenantIdCreated: string,
1555
1473
  editors: Editor[],
1556
- sharingTags: SharingTag[],
1557
- version: number,
1558
- originNoteId: string
1474
+ sharingTags: SharingTag[]
1559
1475
  ) {
1560
- super(tenantIdCreated, editors, sharingTags, version, BlockType.Task);
1476
+ super(tenantIdCreated, editors, sharingTags, BlockType.Task);
1561
1477
 
1562
1478
  this.status = TaskStatus.NotStarted;
1563
1479
  this.snoozed = false;
1564
1480
  this.archived = false;
1565
1481
  this._dateDueUserAssigned = false;
1566
-
1567
- this.originNoteId = originNoteId;
1568
1482
  }
1569
1483
  }
1570
1484
  // CORE END
@@ -1636,7 +1550,6 @@ export class Conference extends BusinessObject {
1636
1550
  tenantIdCreated: string,
1637
1551
  editors: Editor[],
1638
1552
  sharingTags: SharingTag[],
1639
- version: number,
1640
1553
  provider: string,
1641
1554
  application: string,
1642
1555
  uri: string,
@@ -1647,7 +1560,6 @@ export class Conference extends BusinessObject {
1647
1560
  tenantIdCreated,
1648
1561
  editors,
1649
1562
  sharingTags,
1650
- version,
1651
1563
  BlockType.Conference,
1652
1564
  provider,
1653
1565
  application,
@@ -1737,7 +1649,7 @@ type Event {${BusinessObjectFields}
1737
1649
  }`;
1738
1650
  export class Event extends BusinessObject {
1739
1651
  calendarId: string;
1740
- status: EventStatus;
1652
+ eventStatus: EventStatus;
1741
1653
  dateStart: number;
1742
1654
  organizedBy: PersonReference;
1743
1655
  location?: string | null;
@@ -1754,13 +1666,12 @@ export class Event extends BusinessObject {
1754
1666
  tenantIdCreated: string,
1755
1667
  editors: Editor[],
1756
1668
  sharingTags: SharingTag[],
1757
- version: number,
1758
1669
  provider: string,
1759
1670
  application: string,
1760
1671
  uri: string,
1761
1672
  externalId: string,
1762
1673
  calendarId: string,
1763
- status: EventStatus,
1674
+ eventStatus: EventStatus,
1764
1675
  dateStart: number,
1765
1676
  organizedBy: PersonReference
1766
1677
  ) {
@@ -1768,7 +1679,6 @@ export class Event extends BusinessObject {
1768
1679
  tenantIdCreated,
1769
1680
  editors,
1770
1681
  sharingTags,
1771
- version,
1772
1682
  BlockType.Event,
1773
1683
  provider,
1774
1684
  application,
@@ -1777,7 +1687,7 @@ export class Event extends BusinessObject {
1777
1687
  );
1778
1688
 
1779
1689
  this.calendarId = calendarId;
1780
- this.status = status;
1690
+ this.eventStatus = eventStatus;
1781
1691
  this.dateStart = dateStart;
1782
1692
  this.organizedBy = organizedBy;
1783
1693
  }
@@ -1800,7 +1710,6 @@ export class Calendar extends BusinessObject {
1800
1710
  tenantIdCreated: string,
1801
1711
  editors: Editor[],
1802
1712
  sharingTags: SharingTag[],
1803
- version: number,
1804
1713
  provider: string,
1805
1714
  application: string,
1806
1715
  uri: string,
@@ -1811,7 +1720,6 @@ export class Calendar extends BusinessObject {
1811
1720
  tenantIdCreated,
1812
1721
  editors,
1813
1722
  sharingTags,
1814
- version,
1815
1723
  BlockType.Calendar,
1816
1724
  provider,
1817
1725
  application,
@@ -1837,7 +1745,6 @@ export class Todo extends BusinessObject {
1837
1745
  tenantIdCreated: string,
1838
1746
  editors: Editor[],
1839
1747
  sharingTags: SharingTag[],
1840
- version: number,
1841
1748
  provider: string,
1842
1749
  application: string,
1843
1750
  uri: string,
@@ -1849,7 +1756,6 @@ export class Todo extends BusinessObject {
1849
1756
  tenantIdCreated,
1850
1757
  editors,
1851
1758
  sharingTags,
1852
- version,
1853
1759
  BlockType.Todo,
1854
1760
  provider,
1855
1761
  application,
@@ -1871,7 +1777,6 @@ export class Thread extends BusinessObject {
1871
1777
  tenantIdCreated: string,
1872
1778
  editors: Editor[],
1873
1779
  sharingTags: SharingTag[],
1874
- version: number,
1875
1780
  provider: string,
1876
1781
  application: string,
1877
1782
  uri: string,
@@ -1881,7 +1786,6 @@ export class Thread extends BusinessObject {
1881
1786
  tenantIdCreated,
1882
1787
  editors,
1883
1788
  sharingTags,
1884
- version,
1885
1789
  BlockType.Thread,
1886
1790
  provider,
1887
1791
  application,
@@ -1910,7 +1814,6 @@ export class Document extends BusinessObject {
1910
1814
  tenantIdCreated: string,
1911
1815
  editors: Editor[],
1912
1816
  sharingTags: SharingTag[],
1913
- version: number,
1914
1817
  provider: string,
1915
1818
  application: string,
1916
1819
  uri: string,
@@ -1920,7 +1823,6 @@ export class Document extends BusinessObject {
1920
1823
  tenantIdCreated,
1921
1824
  editors,
1922
1825
  sharingTags,
1923
- version,
1924
1826
  BlockType.Document,
1925
1827
  provider,
1926
1828
  application,
@@ -1961,7 +1863,6 @@ export class Dashboard extends BusinessObject {
1961
1863
  tenantIdCreated: string,
1962
1864
  editors: Editor[],
1963
1865
  sharingTags: SharingTag[],
1964
- version: number,
1965
1866
  provider: string,
1966
1867
  application: string,
1967
1868
  uri: string,
@@ -1972,7 +1873,6 @@ export class Dashboard extends BusinessObject {
1972
1873
  tenantIdCreated,
1973
1874
  editors,
1974
1875
  sharingTags,
1975
- version,
1976
1876
  BlockType.Dashboard,
1977
1877
  provider,
1978
1878
  application,
@@ -2012,7 +1912,6 @@ export class Website extends BusinessObject {
2012
1912
  tenantIdCreated: string,
2013
1913
  editors: Editor[],
2014
1914
  sharingTags: SharingTag[],
2015
- version: number,
2016
1915
  provider: string,
2017
1916
  application: string,
2018
1917
  uri: string,
@@ -2022,7 +1921,6 @@ export class Website extends BusinessObject {
2022
1921
  tenantIdCreated,
2023
1922
  editors,
2024
1923
  sharingTags,
2025
- version,
2026
1924
  BlockType.Website,
2027
1925
  provider,
2028
1926
  application,
@@ -2110,7 +2008,6 @@ export class Template extends BusinessObject {
2110
2008
  tenantIdCreated: string,
2111
2009
  editors: Editor[],
2112
2010
  sharingTags: SharingTag[],
2113
- version: number,
2114
2011
  provider: string,
2115
2012
  application: string,
2116
2013
  uri: string,
@@ -2120,7 +2017,6 @@ export class Template extends BusinessObject {
2120
2017
  tenantIdCreated,
2121
2018
  editors,
2122
2019
  sharingTags,
2123
- version,
2124
2020
  BlockType.Template,
2125
2021
  provider,
2126
2022
  application,
@@ -2259,7 +2155,6 @@ export class Record extends BusinessObject {
2259
2155
  tenantIdCreated: string,
2260
2156
  editors: Editor[],
2261
2157
  sharingTags: SharingTag[],
2262
- version: number,
2263
2158
  provider: string,
2264
2159
  application: string,
2265
2160
  uri: string,
@@ -2270,7 +2165,6 @@ export class Record extends BusinessObject {
2270
2165
  tenantIdCreated,
2271
2166
  editors,
2272
2167
  sharingTags,
2273
- version,
2274
2168
  BlockType.Record,
2275
2169
  provider,
2276
2170
  application,
@@ -2297,7 +2191,6 @@ export class Table extends BusinessObject {
2297
2191
  tenantIdCreated: string,
2298
2192
  editors: Editor[],
2299
2193
  sharingTags: SharingTag[],
2300
- version: number,
2301
2194
  provider: string,
2302
2195
  application: string,
2303
2196
  uri: string,
@@ -2308,7 +2201,6 @@ export class Table extends BusinessObject {
2308
2201
  tenantIdCreated,
2309
2202
  editors,
2310
2203
  sharingTags,
2311
- version,
2312
2204
  BlockType.Table,
2313
2205
  provider,
2314
2206
  application,
@@ -2989,7 +2881,6 @@ ${RecommendationQL}
2989
2881
  ${ConnectedProviderQL}
2990
2882
  ${ReferenceBlockInputQL}
2991
2883
  ${ReferenceBlockQL}
2992
- ${ArticleQL}
2993
2884
  ${DomainQL}
2994
2885
  ${TenantQL}
2995
2886
  ${BusinessObjectQL}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.9.34",
4
+ "version": "5.0.1",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",