@bigfootai/bigfoot-types 5.4.1 → 5.4.3
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 +45 -5
- package/model.ts +41 -1
- package/package.json +1 -1
package/model.js
CHANGED
@@ -1,10 +1,11 @@
|
|
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.TaskStepQL = exports.TaskStepInputQL = exports.ExternalIdLinkQL = exports.ExternalIdLinkInputQL = exports.BusinessObjectLinkQL = exports.BusinessObjectLinkInputQL = exports.SharingTenantQL = exports.TenantSettingQL = exports.SharingDomainQL = exports.SharingTagQL = exports.SharingTagInputQL = exports.InviteSharingTagInputQL = exports.EditorQL = exports.EditorInputQL = exports.HighlightQL = exports.PubSubType = 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.
|
5
|
-
exports.
|
6
|
-
exports.
|
7
|
-
exports.
|
4
|
+
exports.RecommendationQL = exports.NotificationRecommendationQL = exports.MessageRecommendationQL = exports.ShareRecommendationQL = exports.UpsertRecommendationQL = exports.ChangeRecommendationQL = exports.ReactionRecommendationQL = exports.ConnectRecommendationQL = exports.TenantLight = exports.TenantLightQL = exports.TenantLightInputQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.GraphTagsInputQL = exports.GraphTagQL = exports.TagTypeQL = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.ExternalIdQL = exports.DashboardTagSubscriptionQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Folder = exports.FolderQL = exports.History = exports.Metadata = exports.MetadataQL = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFieldsForUpsert = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFieldsForUpsert = exports.PrimitiveFields = exports.FindExternalTagReferenceInputQL = exports.FindExternalTagReferencesInputQL = exports.PersonReferenceQL = exports.PersonReferenceInputQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ReferenceBlockInputQL = exports.ConnectedProviderQL = void 0;
|
5
|
+
exports.DashboardQL = exports.BlockData = exports.BlockDataQL = exports.Document = exports.DocumentQL = exports.DocumentFields = exports.Message = exports.MessageQL = exports.UpsertMessageInputQL = exports.Email = exports.EmailQL = exports.UpsertEmailInputQL = exports.Todo = exports.Calendar = exports.CalendarQL = exports.Event = exports.EventQL = exports.AttachmentQL = exports.AttachmentInputQL = exports.PersonAcceptanceQL = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.ConferenceQL = exports.ConferenceEntrypointQL = exports.TranscriptionQL = exports.TranscriptionEntryQL = exports.Task = exports.TaskQL = exports.Note = exports.NoteQL = exports.Section = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFieldsForUpsert = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockQL = exports.BlockFieldsForUpsert = exports.BlockFields = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.Recommendation = void 0;
|
6
|
+
exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveRecommendationOutputQL = exports.ArchiveRecommendationInputQL = exports.UpdateRecommendationInputQL = exports.ArchiveBlockOutputQL = exports.ArchiveBlockInputQL = exports.FindBlocksInputQL = exports.FindBlockInputQL = exports.UpsertNoteInputQL = exports.FindDashboardBlockInputQL = exports.FindDashboardInputQL = exports.UpsertDocumentInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindDomainInputQL = exports.FindTenantsInputQL = exports.FindTenantInputQL = exports.UpsertRecordsInputQL = exports.FindRecordsInputQL = exports.FindRecordInputQL = exports.Table = exports.TableQL = 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 = void 0;
|
7
|
+
exports.GraphSearchQL = exports.GraphSearchFields = exports.GraphSearchInputFields = exports.SortOptionInputQL = exports.SortOptionQL = exports.SortOptionFieldsQL = exports.BusinessObjectFilterInputQL = exports.BusinessObjectFilterQL = exports.BusinessObjectFilterFieldsQL = exports.StringFilterInputQL = exports.StringFilterQL = exports.StringFilterFieldsQL = exports.NumberFilterInputQL = exports.NumberFilterQL = exports.NumberFilterFieldsQL = exports.ChildItemQL = exports.ChildItemInputQL = exports.ChildItemFields = exports.ParentItemQL = exports.ParentItemInputQL = exports.ParentItemFields = exports.RemoveReactionInputQL = exports.AddReactionInputQL = exports.FindReactionsInputQL = exports.ReactionQL = exports.FindTagsVisibilityInputQL = exports.OrderDirection = exports.OrderDirectionQL = exports.TaskStatusQL = exports.RecommendationTypeQL = exports.BlockTypeQL = 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.UpdateTaskInputQL = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.MergeTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = void 0;
|
8
|
+
exports.GraphQLTypes = exports.UpdateTagSharingInputQL = exports.GraphSearchEventsInputQL = exports.GraphSearchInputQL = void 0;
|
8
9
|
const uuid_1 = require("uuid");
|
9
10
|
/*
|
10
11
|
These are the core primitives of our model. These represent the entities that show
|
@@ -18,6 +19,7 @@ var BlockType;
|
|
18
19
|
BlockType["Section"] = "section";
|
19
20
|
BlockType["Calendar"] = "calendar";
|
20
21
|
BlockType["Event"] = "event";
|
22
|
+
BlockType["Email"] = "email";
|
21
23
|
BlockType["Task"] = "task";
|
22
24
|
BlockType["Todo"] = "todo";
|
23
25
|
BlockType["Document"] = "document";
|
@@ -477,6 +479,9 @@ type Changes {
|
|
477
479
|
exports.PersonReferenceFields = `
|
478
480
|
email: String!
|
479
481
|
`;
|
482
|
+
exports.PersonReferenceInputQL = `
|
483
|
+
input PersonReferenceInput {${exports.PersonReferenceFields}
|
484
|
+
}`;
|
480
485
|
exports.PersonReferenceQL = `
|
481
486
|
type PersonReference {${exports.PersonReferenceFields}
|
482
487
|
}`;
|
@@ -1134,6 +1139,22 @@ exports.PersonAcceptanceQL = `
|
|
1134
1139
|
type PersonAcceptance {${exports.PersonReferenceFields}
|
1135
1140
|
responseStatus: String!
|
1136
1141
|
}`;
|
1142
|
+
exports.AttachmentInputQL = `
|
1143
|
+
input AttachmentInput {
|
1144
|
+
externalId: String!
|
1145
|
+
url: String!
|
1146
|
+
iconUrl: String
|
1147
|
+
mimeType: String
|
1148
|
+
title: String
|
1149
|
+
}`;
|
1150
|
+
exports.AttachmentQL = `
|
1151
|
+
type Attachment {
|
1152
|
+
externalId: String!
|
1153
|
+
url: String!
|
1154
|
+
iconUrl: String
|
1155
|
+
mimeType: String
|
1156
|
+
title: String
|
1157
|
+
}`;
|
1137
1158
|
exports.EventQL = `
|
1138
1159
|
type Event {${exports.BusinessObjectFields}
|
1139
1160
|
calendarId: String!
|
@@ -1185,12 +1206,25 @@ class Todo extends BusinessObject {
|
|
1185
1206
|
exports.Todo = Todo;
|
1186
1207
|
//// EXTERNAL TASK END
|
1187
1208
|
//// EMAIL START
|
1209
|
+
exports.UpsertEmailInputQL = `
|
1210
|
+
input UpsertEmailInput {${exports.BlockFieldsForUpsert}
|
1211
|
+
to: [PersonReferenceInput]
|
1212
|
+
cc: [PersonReferenceInput]
|
1213
|
+
bcc: [PersonReferenceInput]
|
1214
|
+
from: PersonReferenceInput
|
1215
|
+
subject: String
|
1216
|
+
attachments: [AttachmentInput]
|
1217
|
+
htmlContent: String
|
1218
|
+
}`;
|
1188
1219
|
exports.EmailQL = `
|
1189
1220
|
type Email {${exports.BusinessObjectFields}
|
1190
1221
|
to: [PersonReference]
|
1191
1222
|
cc: [PersonReference]
|
1192
1223
|
bcc: [PersonReference]
|
1224
|
+
from: PersonReferenceInput
|
1193
1225
|
subject: String
|
1226
|
+
attachments: [Attachment]
|
1227
|
+
htmlContent: String
|
1194
1228
|
}`;
|
1195
1229
|
class Email extends BusinessObject {
|
1196
1230
|
constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId) {
|
@@ -1202,11 +1236,12 @@ exports.Email = Email;
|
|
1202
1236
|
//// MESSAGING START
|
1203
1237
|
exports.UpsertMessageInputQL = `
|
1204
1238
|
input UpsertMessageInput {${exports.BlockFieldsForUpsert}
|
1205
|
-
|
1239
|
+
htmlContent: String
|
1206
1240
|
originReferenceTagId: String
|
1207
1241
|
}`;
|
1208
1242
|
exports.MessageQL = `
|
1209
1243
|
type Message {${exports.BusinessObjectFields}
|
1244
|
+
htmlContent: String
|
1210
1245
|
originReferenceTagId: String
|
1211
1246
|
}`;
|
1212
1247
|
class Message extends BusinessObject {
|
@@ -1998,6 +2033,7 @@ ${exports.ChangesInputQL}
|
|
1998
2033
|
${exports.ChangesQL}
|
1999
2034
|
${exports.FindExternalTagReferencesInputQL}
|
2000
2035
|
${exports.FindExternalTagReferenceInputQL}
|
2036
|
+
${exports.PersonReferenceInputQL}
|
2001
2037
|
${exports.PersonReferenceQL}
|
2002
2038
|
${exports.MetadataQL}
|
2003
2039
|
${exports.FolderQL}
|
@@ -2035,9 +2071,13 @@ ${exports.TranscriptionEntryQL}
|
|
2035
2071
|
${exports.TranscriptionQL}
|
2036
2072
|
${exports.ConferenceEntrypointQL}
|
2037
2073
|
${exports.ConferenceQL}
|
2074
|
+
${exports.AttachmentInputQL}
|
2075
|
+
${exports.AttachmentQL}
|
2038
2076
|
${exports.PersonAcceptanceQL}
|
2039
2077
|
${exports.EventQL}
|
2040
2078
|
${exports.CalendarQL}
|
2079
|
+
${exports.UpsertEmailInputQL}
|
2080
|
+
${exports.EmailQL}
|
2041
2081
|
${exports.UpsertMessageInputQL}
|
2042
2082
|
${exports.MessageQL}
|
2043
2083
|
${exports.DocumentQL}
|
package/model.ts
CHANGED
@@ -11,6 +11,7 @@ export enum BlockType {
|
|
11
11
|
Section = 'section',
|
12
12
|
Calendar = 'calendar',
|
13
13
|
Event = 'event',
|
14
|
+
Email = 'email',
|
14
15
|
Task = 'task',
|
15
16
|
Todo = 'todo', // A task from an external application
|
16
17
|
Document = 'document',
|
@@ -671,6 +672,9 @@ export interface Changes {
|
|
671
672
|
export const PersonReferenceFields = `
|
672
673
|
email: String!
|
673
674
|
`;
|
675
|
+
export const PersonReferenceInputQL = `
|
676
|
+
input PersonReferenceInput {${PersonReferenceFields}
|
677
|
+
}`;
|
674
678
|
export const PersonReferenceQL = `
|
675
679
|
type PersonReference {${PersonReferenceFields}
|
676
680
|
}`;
|
@@ -1840,6 +1844,22 @@ export interface PersonAcceptance extends PersonReference {
|
|
1840
1844
|
responseStatus: ResponseStatus;
|
1841
1845
|
}
|
1842
1846
|
|
1847
|
+
export const AttachmentInputQL = `
|
1848
|
+
input AttachmentInput {
|
1849
|
+
externalId: String!
|
1850
|
+
url: String!
|
1851
|
+
iconUrl: String
|
1852
|
+
mimeType: String
|
1853
|
+
title: String
|
1854
|
+
}`;
|
1855
|
+
export const AttachmentQL = `
|
1856
|
+
type Attachment {
|
1857
|
+
externalId: String!
|
1858
|
+
url: String!
|
1859
|
+
iconUrl: String
|
1860
|
+
mimeType: String
|
1861
|
+
title: String
|
1862
|
+
}`;
|
1843
1863
|
export interface Attachment {
|
1844
1864
|
externalId: string;
|
1845
1865
|
url: string;
|
@@ -2037,17 +2057,31 @@ export class Todo extends BusinessObject {
|
|
2037
2057
|
//// EXTERNAL TASK END
|
2038
2058
|
|
2039
2059
|
//// EMAIL START
|
2060
|
+
export const UpsertEmailInputQL = `
|
2061
|
+
input UpsertEmailInput {${BlockFieldsForUpsert}
|
2062
|
+
to: [PersonReferenceInput]
|
2063
|
+
cc: [PersonReferenceInput]
|
2064
|
+
bcc: [PersonReferenceInput]
|
2065
|
+
from: PersonReferenceInput
|
2066
|
+
subject: String
|
2067
|
+
attachments: [AttachmentInput]
|
2068
|
+
htmlContent: String
|
2069
|
+
}`;
|
2040
2070
|
export const EmailQL = `
|
2041
2071
|
type Email {${BusinessObjectFields}
|
2042
2072
|
to: [PersonReference]
|
2043
2073
|
cc: [PersonReference]
|
2044
2074
|
bcc: [PersonReference]
|
2075
|
+
from: PersonReferenceInput
|
2045
2076
|
subject: String
|
2077
|
+
attachments: [Attachment]
|
2078
|
+
htmlContent: String
|
2046
2079
|
}`;
|
2047
2080
|
export class Email extends BusinessObject {
|
2048
2081
|
to?: PersonReference[];
|
2049
2082
|
cc?: PersonReference[];
|
2050
2083
|
bcc?: PersonReference[];
|
2084
|
+
from?: PersonReference;
|
2051
2085
|
subject?: string | null;
|
2052
2086
|
attachments?: Attachment[] | null;
|
2053
2087
|
htmlContent?: string;
|
@@ -2078,11 +2112,12 @@ export class Email extends BusinessObject {
|
|
2078
2112
|
//// MESSAGING START
|
2079
2113
|
export const UpsertMessageInputQL = `
|
2080
2114
|
input UpsertMessageInput {${BlockFieldsForUpsert}
|
2081
|
-
|
2115
|
+
htmlContent: String
|
2082
2116
|
originReferenceTagId: String
|
2083
2117
|
}`;
|
2084
2118
|
export const MessageQL = `
|
2085
2119
|
type Message {${BusinessObjectFields}
|
2120
|
+
htmlContent: String
|
2086
2121
|
originReferenceTagId: String
|
2087
2122
|
}`;
|
2088
2123
|
export class Message extends BusinessObject {
|
@@ -3528,6 +3563,7 @@ ${ChangesInputQL}
|
|
3528
3563
|
${ChangesQL}
|
3529
3564
|
${FindExternalTagReferencesInputQL}
|
3530
3565
|
${FindExternalTagReferenceInputQL}
|
3566
|
+
${PersonReferenceInputQL}
|
3531
3567
|
${PersonReferenceQL}
|
3532
3568
|
${MetadataQL}
|
3533
3569
|
${FolderQL}
|
@@ -3565,9 +3601,13 @@ ${TranscriptionEntryQL}
|
|
3565
3601
|
${TranscriptionQL}
|
3566
3602
|
${ConferenceEntrypointQL}
|
3567
3603
|
${ConferenceQL}
|
3604
|
+
${AttachmentInputQL}
|
3605
|
+
${AttachmentQL}
|
3568
3606
|
${PersonAcceptanceQL}
|
3569
3607
|
${EventQL}
|
3570
3608
|
${CalendarQL}
|
3609
|
+
${UpsertEmailInputQL}
|
3610
|
+
${EmailQL}
|
3571
3611
|
${UpsertMessageInputQL}
|
3572
3612
|
${MessageQL}
|
3573
3613
|
${DocumentQL}
|