@bigfootai/bigfoot-types 4.5.19 → 4.5.20

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 +34 -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',
@@ -1102,6 +1109,30 @@ export class History extends Primitive {
1102
1109
  }
1103
1110
  }
1104
1111
 
1112
+ export class Notification extends SharedPrimitive {
1113
+ notificationType: NotificationType;
1114
+ referenceBlock: ReferenceBlock;
1115
+
1116
+ constructor(
1117
+ tenantIdCreated: string,
1118
+ sharingTags: SharingTag[],
1119
+ notificationType: NotificationType
1120
+ ) {
1121
+ super(sharingTags);
1122
+
1123
+ this.notificationType = notificationType;
1124
+ this.tenantIdCreated = tenantIdCreated;
1125
+ }
1126
+ }
1127
+
1128
+ export class IngestionNotification extends Notification {
1129
+ connectedProvider?: ConnectedProvider;
1130
+
1131
+ constructor(tenantIdCreated: string, sharingTags: SharingTag[]) {
1132
+ super(tenantIdCreated, sharingTags, NotificationType.Ingestion);
1133
+ }
1134
+ }
1135
+
1105
1136
  export interface SubscribingProviderApplication {
1106
1137
  provider: Provider;
1107
1138
  application: ProviderApplication;
@@ -1953,13 +1984,15 @@ input UpsertNoteInput {
1953
1984
  _id: String
1954
1985
  document: String!
1955
1986
  editor: EditorInput!
1956
- version: Float!
1987
+ version: Float!
1988
+ sharingTags: [SharingTagInput]
1957
1989
  }`;
1958
1990
  export interface UpsertNoteInput {
1959
1991
  _id: string;
1960
1992
  document: string;
1961
1993
  editor: Editor;
1962
1994
  version: number;
1995
+ sharingTags?: SharingTag[];
1963
1996
  }
1964
1997
 
1965
1998
  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.20",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",