@bigfootai/bigfoot-types 4.5.18 → 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.
- package/model.js +29 -5
- package/model.ts +38 -1
- 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.
|
4
|
-
exports.
|
5
|
-
exports.
|
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";
|
@@ -644,6 +651,7 @@ type Article {${exports.PrimitiveFields}
|
|
644
651
|
editorId: String
|
645
652
|
editorGroupId: String
|
646
653
|
parentId: String
|
654
|
+
score: Float
|
647
655
|
}`;
|
648
656
|
class Article extends Primitive {
|
649
657
|
constructor(referenceBlock) {
|
@@ -663,6 +671,7 @@ exports.BlockFields = `${exports.SharedPrimitiveFields}
|
|
663
671
|
archived: Boolean!
|
664
672
|
favorite: Boolean!
|
665
673
|
parentId: String
|
674
|
+
score: Float
|
666
675
|
originNoteId: String
|
667
676
|
document: String
|
668
677
|
reactions: [Reaction]`;
|
@@ -701,6 +710,20 @@ class History extends Primitive {
|
|
701
710
|
}
|
702
711
|
}
|
703
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;
|
704
727
|
class BusinessObjectIngestionRequest extends Primitive {
|
705
728
|
constructor(tenantIdCreated, originReferenceBlock, uri) {
|
706
729
|
super();
|
@@ -1072,7 +1095,8 @@ input UpsertNoteInput {
|
|
1072
1095
|
_id: String
|
1073
1096
|
document: String!
|
1074
1097
|
editor: EditorInput!
|
1075
|
-
|
1098
|
+
version: Float!
|
1099
|
+
sharingTags: [SharingTagInput]
|
1076
1100
|
}`;
|
1077
1101
|
exports.FindNoteInputQL = `
|
1078
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',
|
@@ -965,6 +972,7 @@ type Article {${PrimitiveFields}
|
|
965
972
|
editorId: String
|
966
973
|
editorGroupId: String
|
967
974
|
parentId: String
|
975
|
+
score: Float
|
968
976
|
}`;
|
969
977
|
export class Article extends Primitive {
|
970
978
|
referenceBlock: ReferenceBlock;
|
@@ -988,6 +996,7 @@ export class Article extends Primitive {
|
|
988
996
|
editorId?: string;
|
989
997
|
editorGroupId?: string;
|
990
998
|
parentId?: string;
|
999
|
+
score?: number;
|
991
1000
|
_timeZone?: string;
|
992
1001
|
_locale?: string;
|
993
1002
|
_changes?: Changes;
|
@@ -1022,6 +1031,7 @@ export const BlockFields = `${SharedPrimitiveFields}
|
|
1022
1031
|
archived: Boolean!
|
1023
1032
|
favorite: Boolean!
|
1024
1033
|
parentId: String
|
1034
|
+
score: Float
|
1025
1035
|
originNoteId: String
|
1026
1036
|
document: String
|
1027
1037
|
reactions: [Reaction]`;
|
@@ -1032,6 +1042,7 @@ export class Block extends SharedPrimitive {
|
|
1032
1042
|
archived: boolean;
|
1033
1043
|
favorite: boolean;
|
1034
1044
|
parentId?: string;
|
1045
|
+
score?: number;
|
1035
1046
|
originNoteId?: string;
|
1036
1047
|
document?: any;
|
1037
1048
|
reactions?: Reaction[];
|
@@ -1098,6 +1109,30 @@ export class History extends Primitive {
|
|
1098
1109
|
}
|
1099
1110
|
}
|
1100
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
|
+
|
1101
1136
|
export interface SubscribingProviderApplication {
|
1102
1137
|
provider: Provider;
|
1103
1138
|
application: ProviderApplication;
|
@@ -1949,13 +1984,15 @@ input UpsertNoteInput {
|
|
1949
1984
|
_id: String
|
1950
1985
|
document: String!
|
1951
1986
|
editor: EditorInput!
|
1952
|
-
|
1987
|
+
version: Float!
|
1988
|
+
sharingTags: [SharingTagInput]
|
1953
1989
|
}`;
|
1954
1990
|
export interface UpsertNoteInput {
|
1955
1991
|
_id: string;
|
1956
1992
|
document: string;
|
1957
1993
|
editor: Editor;
|
1958
1994
|
version: number;
|
1995
|
+
sharingTags?: SharingTag[];
|
1959
1996
|
}
|
1960
1997
|
|
1961
1998
|
export const FindNoteInputQL = `
|