@bigfootai/bigfoot-types 4.1.5 → 4.1.7
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 +10 -2
- package/model.ts +36 -8
- package/package.json +1 -1
package/model.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SharedPrimitive = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ConnectedProviderQL = exports.CredentialQL = exports.StandardObjectsQL = 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.EditorQL = exports.EditorInputQL = exports.HighlightQL = exports.RelationType = exports.EntityType = 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.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = void 0;
|
4
|
-
exports.
|
5
|
-
exports.GraphQLTypes = exports.SearchInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.UpdateTaskInputQL = 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.Table = exports.FieldVariation = void 0;
|
4
|
+
exports.Template = exports.Website = exports.Document = 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.TaskFields = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Organization = exports.Domain = exports.Tenant = exports.TenantQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.Provider = exports.ProviderQL = exports.ProviderApplication = exports.ProviderApplicationQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = void 0;
|
5
|
+
exports.GraphQLTypes = exports.SearchInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.UpdateTaskInputQL = 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.Table = exports.FieldVariation = exports.FieldType = void 0;
|
6
6
|
const uuid_1 = require("uuid");
|
7
7
|
/*
|
8
8
|
These are the core primitives of our model. These represent the entities that show
|
@@ -779,6 +779,14 @@ class Thread extends BusinessObject {
|
|
779
779
|
}
|
780
780
|
exports.Thread = Thread;
|
781
781
|
//// MESSAGING END
|
782
|
+
//// DOCUMENT START
|
783
|
+
class Document extends BusinessObject {
|
784
|
+
constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
|
785
|
+
super(tenantIdCreated, editors, sharingTags, version, BlockType.Document, provider, application, uri, externalId);
|
786
|
+
}
|
787
|
+
}
|
788
|
+
exports.Document = Document;
|
789
|
+
//// DOCUMENT END
|
782
790
|
//// WEBSITE START
|
783
791
|
class Website extends BusinessObject {
|
784
792
|
constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId) {
|
package/model.ts
CHANGED
@@ -216,14 +216,6 @@ export interface Highlight {
|
|
216
216
|
indexEnd: number;
|
217
217
|
}
|
218
218
|
|
219
|
-
export interface Document {
|
220
|
-
attrs?: Map<string, string>;
|
221
|
-
content?: Document[];
|
222
|
-
text?: string;
|
223
|
-
type: string;
|
224
|
-
marks?: Mark[];
|
225
|
-
}
|
226
|
-
|
227
219
|
export const EditorInputQL = `
|
228
220
|
input EditorInput {
|
229
221
|
clientType: String!
|
@@ -454,6 +446,11 @@ export interface Subscriptions {
|
|
454
446
|
linkDomains: string[];
|
455
447
|
}
|
456
448
|
|
449
|
+
export interface LinkSubscriptionProviderRequest {
|
450
|
+
url: string;
|
451
|
+
credential: Credential;
|
452
|
+
}
|
453
|
+
|
457
454
|
export const CredentialQL = `
|
458
455
|
type Credential {
|
459
456
|
email: String!
|
@@ -1345,6 +1342,37 @@ export class Thread extends BusinessObject {
|
|
1345
1342
|
}
|
1346
1343
|
//// MESSAGING END
|
1347
1344
|
|
1345
|
+
//// DOCUMENT START
|
1346
|
+
export class Document extends BusinessObject {
|
1347
|
+
title?: string;
|
1348
|
+
description?: string;
|
1349
|
+
previewImage?: string;
|
1350
|
+
|
1351
|
+
constructor(
|
1352
|
+
tenantIdCreated: string,
|
1353
|
+
editors: Editor[],
|
1354
|
+
sharingTags: SharingTag[],
|
1355
|
+
version: number,
|
1356
|
+
provider: string,
|
1357
|
+
application: string,
|
1358
|
+
uri: string,
|
1359
|
+
externalId: string
|
1360
|
+
) {
|
1361
|
+
super(
|
1362
|
+
tenantIdCreated,
|
1363
|
+
editors,
|
1364
|
+
sharingTags,
|
1365
|
+
version,
|
1366
|
+
BlockType.Document,
|
1367
|
+
provider,
|
1368
|
+
application,
|
1369
|
+
uri,
|
1370
|
+
externalId
|
1371
|
+
);
|
1372
|
+
}
|
1373
|
+
}
|
1374
|
+
//// DOCUMENT END
|
1375
|
+
|
1348
1376
|
//// WEBSITE START
|
1349
1377
|
export class Website extends BusinessObject {
|
1350
1378
|
title?: string;
|