@bigfootai/bigfoot-types 4.8.1 → 4.8.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 +27 -12
- package/model.ts +27 -18
- 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
3
|
exports.ReferenceBlockInputQL = exports.ConnectedProviderQL = exports.CredentialQL = exports.StandardObjectsQL = exports.ProviderResponseQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.EntityEntryQL = exports.EntityEntryFields = exports.RelationEntryQL = exports.ArgumentEntryQL = exports.EntityReferenceQL = exports.DocumentSentimentQL = exports.TaskStepQL = exports.TaskStepInputQL = exports.ReactionQL = exports.ReactionSkinToneQL = exports.BusinessObjectLinkQL = exports.BusinessObjectLinkInputQL = exports.SharingTenantQL = exports.SharingDomainQL = exports.SharingTagQL = exports.SharingTagInputQL = exports.InviteSharingTagInputQL = exports.EditorQL = exports.EditorInputQL = exports.HighlightQL = 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.TagType = exports.UpsertType = exports.RecommendationType = exports.BlockType = void 0;
|
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 = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.MergeTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveRecommendationOutputQL = exports.ArchiveRecommendationInputQL = void 0;
|
4
|
+
exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.History = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFieldsForUpsert = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.Recommendation = exports.RecommendationQL = exports.UpsertRecommendationQL = exports.ConnectRecommendationQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.BusinessObjectLinkingToTagQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Folder = exports.FolderQL = exports.Metadata = exports.MetadataQL = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFieldsForUpsert = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFieldsForUpsert = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = void 0;
|
5
|
+
exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindDocumentInputQL = 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 = exports.ConferenceEntrypointQL = exports.TranscriptionQL = exports.TranscriptionEntryQL = exports.Task = exports.TaskQL = exports.TaskFieldsForUpsert = exports.TaskFields = exports.Note = exports.NoteQL = exports.BusinessObject = 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.MergeTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveRecommendationOutputQL = exports.ArchiveRecommendationInputQL = exports.UpdateRecommendationInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = 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
|
@@ -433,6 +433,11 @@ exports.PrimitiveFields = `
|
|
433
433
|
dateCreated: Float!
|
434
434
|
dateUpdated: Float!
|
435
435
|
tenantIdCreated: String`;
|
436
|
+
exports.PrimitiveFieldsForUpsert = `
|
437
|
+
_id: ID
|
438
|
+
dateCreated: Float
|
439
|
+
dateUpdated: Float
|
440
|
+
tenantIdCreated: String`;
|
436
441
|
class Primitive {
|
437
442
|
constructor() {
|
438
443
|
this._id = (0, uuid_1.v4)();
|
@@ -444,6 +449,8 @@ class Primitive {
|
|
444
449
|
exports.Primitive = Primitive;
|
445
450
|
exports.SharedPrimitiveFields = `${exports.PrimitiveFields}
|
446
451
|
sharingTags: [SharingTag]!`;
|
452
|
+
exports.SharedPrimitiveFieldsForUpsert = `${exports.PrimitiveFieldsForUpsert}
|
453
|
+
sharingTags: [SharingTag]`;
|
447
454
|
class SharedPrimitive extends Primitive {
|
448
455
|
constructor(sharingTags) {
|
449
456
|
super();
|
@@ -668,6 +675,7 @@ type UpsertRecommendation {
|
|
668
675
|
blockType: String!
|
669
676
|
upsertType: String!
|
670
677
|
metadata: Metadata
|
678
|
+
connectionId: String!
|
671
679
|
}`;
|
672
680
|
exports.RecommendationQL = `
|
673
681
|
type Recommendation {${exports.SharedPrimitiveFields}
|
@@ -793,6 +801,12 @@ exports.BlockFields = `${exports.SharedPrimitiveFields}
|
|
793
801
|
originNoteId: String
|
794
802
|
document: String
|
795
803
|
reactions: [Reaction]`;
|
804
|
+
exports.BlockFieldsForUpsert = `${exports.SharedPrimitiveFieldsForUpsert}
|
805
|
+
archived: Boolean
|
806
|
+
favorite: Boolean
|
807
|
+
parentId: String
|
808
|
+
document: String
|
809
|
+
reactions: [Reaction]`;
|
796
810
|
class Block extends SharedPrimitive {
|
797
811
|
constructor(tenantIdCreated, editors, sharingTags, version, blockType) {
|
798
812
|
super(sharingTags);
|
@@ -885,6 +899,14 @@ exports.TaskFields = `${exports.BlockFields}
|
|
885
899
|
dateRemindMe: Float
|
886
900
|
recurrence: [String]
|
887
901
|
`;
|
902
|
+
exports.TaskFieldsForUpsert = `${exports.BlockFieldsForUpsert}
|
903
|
+
status: String
|
904
|
+
dateDue: Float
|
905
|
+
snoozed: Boolean
|
906
|
+
steps: [TaskStep]
|
907
|
+
dateRemindMe: Float
|
908
|
+
recurrence: [String]
|
909
|
+
`;
|
888
910
|
exports.TaskQL = `
|
889
911
|
type Task {${exports.TaskFields}
|
890
912
|
}`;
|
@@ -1318,15 +1340,8 @@ input DeleteSharingTagInput {
|
|
1318
1340
|
tagId: String!
|
1319
1341
|
}`;
|
1320
1342
|
exports.UpdateTaskInputQL = `
|
1321
|
-
input
|
1322
|
-
|
1323
|
-
editor: EditorInput!
|
1324
|
-
status: Int
|
1325
|
-
dateDue: Float
|
1326
|
-
snoozed: Boolean
|
1327
|
-
steps: [TaskStepInput]
|
1328
|
-
dateRemindMe: Float
|
1329
|
-
recurrence: [String]
|
1343
|
+
input UpsertTaskInput {${exports.TaskFieldsForUpsert}
|
1344
|
+
editor: Editor!
|
1330
1345
|
}`;
|
1331
1346
|
exports.FindTaskInputQL = `
|
1332
1347
|
input FindTaskInput {
|
package/model.ts
CHANGED
@@ -621,6 +621,11 @@ export const PrimitiveFields = `
|
|
621
621
|
dateCreated: Float!
|
622
622
|
dateUpdated: Float!
|
623
623
|
tenantIdCreated: String`;
|
624
|
+
export const PrimitiveFieldsForUpsert = `
|
625
|
+
_id: ID
|
626
|
+
dateCreated: Float
|
627
|
+
dateUpdated: Float
|
628
|
+
tenantIdCreated: String`;
|
624
629
|
export class Primitive {
|
625
630
|
_id: string;
|
626
631
|
dateCreated: number;
|
@@ -638,6 +643,8 @@ export class Primitive {
|
|
638
643
|
|
639
644
|
export const SharedPrimitiveFields = `${PrimitiveFields}
|
640
645
|
sharingTags: [SharingTag]!`;
|
646
|
+
export const SharedPrimitiveFieldsForUpsert = `${PrimitiveFieldsForUpsert}
|
647
|
+
sharingTags: [SharingTag]`;
|
641
648
|
export class SharedPrimitive extends Primitive {
|
642
649
|
sharingTags: SharingTag[];
|
643
650
|
_parentSharingTagIds: string[];
|
@@ -1010,6 +1017,7 @@ type UpsertRecommendation {
|
|
1010
1017
|
blockType: String!
|
1011
1018
|
upsertType: String!
|
1012
1019
|
metadata: Metadata
|
1020
|
+
connectionId: String!
|
1013
1021
|
}`;
|
1014
1022
|
export interface UpsertRecommendation {
|
1015
1023
|
table?: Table;
|
@@ -1017,6 +1025,7 @@ export interface UpsertRecommendation {
|
|
1017
1025
|
blockType: BlockType;
|
1018
1026
|
upsertType: UpsertType;
|
1019
1027
|
metadata: Metadata;
|
1028
|
+
connectionId: string;
|
1020
1029
|
}
|
1021
1030
|
|
1022
1031
|
export interface BaseTask {
|
@@ -1242,6 +1251,12 @@ export const BlockFields = `${SharedPrimitiveFields}
|
|
1242
1251
|
originNoteId: String
|
1243
1252
|
document: String
|
1244
1253
|
reactions: [Reaction]`;
|
1254
|
+
export const BlockFieldsForUpsert = `${SharedPrimitiveFieldsForUpsert}
|
1255
|
+
archived: Boolean
|
1256
|
+
favorite: Boolean
|
1257
|
+
parentId: String
|
1258
|
+
document: String
|
1259
|
+
reactions: [Reaction]`;
|
1245
1260
|
export class Block extends SharedPrimitive {
|
1246
1261
|
editors: Editor[];
|
1247
1262
|
version: number;
|
@@ -1430,10 +1445,18 @@ export const TaskFields = `${BlockFields}
|
|
1430
1445
|
dateRemindMe: Float
|
1431
1446
|
recurrence: [String]
|
1432
1447
|
`;
|
1448
|
+
export const TaskFieldsForUpsert = `${BlockFieldsForUpsert}
|
1449
|
+
status: String
|
1450
|
+
dateDue: Float
|
1451
|
+
snoozed: Boolean
|
1452
|
+
steps: [TaskStep]
|
1453
|
+
dateRemindMe: Float
|
1454
|
+
recurrence: [String]
|
1455
|
+
`;
|
1433
1456
|
export const TaskQL = `
|
1434
1457
|
type Task {${TaskFields}
|
1435
1458
|
}`;
|
1436
|
-
export class Task extends Block {
|
1459
|
+
export class Task extends Block implements BaseTask {
|
1437
1460
|
status: TaskStatus;
|
1438
1461
|
dateDue?: number;
|
1439
1462
|
originNoteId?: string;
|
@@ -2386,25 +2409,11 @@ export interface DeleteSharingTagInput {
|
|
2386
2409
|
}
|
2387
2410
|
|
2388
2411
|
export const UpdateTaskInputQL = `
|
2389
|
-
input
|
2390
|
-
|
2391
|
-
editor: EditorInput!
|
2392
|
-
status: Int
|
2393
|
-
dateDue: Float
|
2394
|
-
snoozed: Boolean
|
2395
|
-
steps: [TaskStepInput]
|
2396
|
-
dateRemindMe: Float
|
2397
|
-
recurrence: [String]
|
2412
|
+
input UpsertTaskInput {${TaskFieldsForUpsert}
|
2413
|
+
editor: Editor!
|
2398
2414
|
}`;
|
2399
|
-
export interface
|
2400
|
-
_id: string;
|
2415
|
+
export interface UpsertTaskInput extends Task {
|
2401
2416
|
editor: Editor;
|
2402
|
-
status?: TaskStatus;
|
2403
|
-
dateDue?: number;
|
2404
|
-
snoozed?: boolean;
|
2405
|
-
steps?: TaskStep[];
|
2406
|
-
dateRemindMe?: number;
|
2407
|
-
recurrence?: RecurrenceRFC[];
|
2408
2417
|
}
|
2409
2418
|
|
2410
2419
|
export const FindTaskInputQL = `
|