@bigfootai/bigfoot-types 4.5.19 → 4.5.21

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 +27 -5
  2. package/model.ts +37 -1
  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
- 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.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;
3
+ 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.NotificationType = exports.BlockType = void 0;
4
+ 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.IngestionNotification = exports.Notification = 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 = exports.PersonReferenceFields = void 0;
5
+ 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 = exports.EventStatus = exports.Conference = exports.ConferenceQL = 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 = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.ArchiveTagOutputQL = 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
@@ -27,6 +27,13 @@ var BlockType;
27
27
  BlockType["Template"] = "template";
28
28
  BlockType["Table"] = "table";
29
29
  })(BlockType || (exports.BlockType = BlockType = {}));
30
+ var NotificationType;
31
+ (function (NotificationType) {
32
+ NotificationType["Ingestion"] = "ingestion";
33
+ NotificationType["Sync"] = "sync";
34
+ NotificationType["Shared"] = "shared";
35
+ NotificationType["Record"] = "record";
36
+ })(NotificationType || (exports.NotificationType = NotificationType = {}));
30
37
  var TagType;
31
38
  (function (TagType) {
32
39
  TagType["Person"] = "person";
@@ -703,6 +710,20 @@ class History extends Primitive {
703
710
  }
704
711
  }
705
712
  exports.History = History;
713
+ class Notification extends SharedPrimitive {
714
+ constructor(tenantIdCreated, sharingTags, notificationType) {
715
+ super(sharingTags);
716
+ this.notificationType = notificationType;
717
+ this.tenantIdCreated = tenantIdCreated;
718
+ }
719
+ }
720
+ exports.Notification = Notification;
721
+ class IngestionNotification extends Notification {
722
+ constructor(tenantIdCreated, sharingTags) {
723
+ super(tenantIdCreated, sharingTags, NotificationType.Ingestion);
724
+ }
725
+ }
726
+ exports.IngestionNotification = IngestionNotification;
706
727
  class BusinessObjectIngestionRequest extends Primitive {
707
728
  constructor(tenantIdCreated, originReferenceBlock, uri) {
708
729
  super();
@@ -1074,7 +1095,8 @@ input UpsertNoteInput {
1074
1095
  _id: String
1075
1096
  document: String!
1076
1097
  editor: EditorInput!
1077
- version: Float!
1098
+ version: Float!
1099
+ sharingTags: [SharingTagInput]
1078
1100
  }`;
1079
1101
  exports.FindNoteInputQL = `
1080
1102
  input FindNoteInput {
package/model.ts CHANGED
@@ -22,6 +22,13 @@ export enum BlockType {
22
22
  Table = 'table',
23
23
  }
24
24
 
25
+ export enum NotificationType {
26
+ Ingestion = 'ingestion',
27
+ Sync = 'sync',
28
+ Shared = 'shared',
29
+ Record = 'record',
30
+ }
31
+
25
32
  export enum TagType {
26
33
  Person = 'person',
27
34
  Organization = 'organization',
@@ -818,6 +825,7 @@ export class Tag extends Primitive {
818
825
  email?: string;
819
826
  avatar?: string;
820
827
  inviteStatus?: InviteStatus;
828
+ tenantIdInvite?: string;
821
829
  originNoteId?: string; // If the tag originated from a note, we store that here
822
830
  tenantIdVerified?: string; // The tenant._id that claimed/verified this tag as being them
823
831
  archived: boolean;
@@ -829,6 +837,8 @@ export class Tag extends Primitive {
829
837
  _createdByAI: boolean;
830
838
  _orphan?: boolean;
831
839
  _savedSearchId?: string;
840
+ _inviteCode?: string;
841
+ _dateInviteCodeExpires?: number;
832
842
 
833
843
  constructor(tenantIdCreated: string, alias: string, tagType: TagType) {
834
844
  super();
@@ -1102,6 +1112,30 @@ export class History extends Primitive {
1102
1112
  }
1103
1113
  }
1104
1114
 
1115
+ export class Notification extends SharedPrimitive {
1116
+ notificationType: NotificationType;
1117
+ referenceBlock: ReferenceBlock;
1118
+
1119
+ constructor(
1120
+ tenantIdCreated: string,
1121
+ sharingTags: SharingTag[],
1122
+ notificationType: NotificationType
1123
+ ) {
1124
+ super(sharingTags);
1125
+
1126
+ this.notificationType = notificationType;
1127
+ this.tenantIdCreated = tenantIdCreated;
1128
+ }
1129
+ }
1130
+
1131
+ export class IngestionNotification extends Notification {
1132
+ connectedProvider?: ConnectedProvider;
1133
+
1134
+ constructor(tenantIdCreated: string, sharingTags: SharingTag[]) {
1135
+ super(tenantIdCreated, sharingTags, NotificationType.Ingestion);
1136
+ }
1137
+ }
1138
+
1105
1139
  export interface SubscribingProviderApplication {
1106
1140
  provider: Provider;
1107
1141
  application: ProviderApplication;
@@ -1953,13 +1987,15 @@ input UpsertNoteInput {
1953
1987
  _id: String
1954
1988
  document: String!
1955
1989
  editor: EditorInput!
1956
- version: Float!
1990
+ version: Float!
1991
+ sharingTags: [SharingTagInput]
1957
1992
  }`;
1958
1993
  export interface UpsertNoteInput {
1959
1994
  _id: string;
1960
1995
  document: string;
1961
1996
  editor: Editor;
1962
1997
  version: number;
1998
+ sharingTags?: SharingTag[];
1963
1999
  }
1964
2000
 
1965
2001
  export const FindNoteInputQL = `
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.5.19",
4
+ "version": "4.5.21",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",