@bigfootai/bigfoot-types 4.8.0 → 4.8.2
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 +36 -15
- package/model.ts +37 -24
- 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,17 @@ exports.BlockFields = `${exports.SharedPrimitiveFields}
|
|
793
801
|
originNoteId: String
|
794
802
|
document: String
|
795
803
|
reactions: [Reaction]`;
|
804
|
+
exports.BlockFieldsForUpsert = `${exports.SharedPrimitiveFieldsForUpsert}
|
805
|
+
editors: [Editor]!
|
806
|
+
version: Float
|
807
|
+
blockType: String
|
808
|
+
archived: Boolean
|
809
|
+
favorite: Boolean
|
810
|
+
parentId: String
|
811
|
+
score: Float
|
812
|
+
originNoteId: String
|
813
|
+
document: String
|
814
|
+
reactions: [Reaction]`;
|
796
815
|
class Block extends SharedPrimitive {
|
797
816
|
constructor(tenantIdCreated, editors, sharingTags, version, blockType) {
|
798
817
|
super(sharingTags);
|
@@ -885,6 +904,16 @@ exports.TaskFields = `${exports.BlockFields}
|
|
885
904
|
dateRemindMe: Float
|
886
905
|
recurrence: [String]
|
887
906
|
`;
|
907
|
+
exports.TaskFieldsForUpsert = `${exports.BlockFieldsForUpsert}
|
908
|
+
status: String
|
909
|
+
dateDue: Float
|
910
|
+
editorId: String
|
911
|
+
editorGroupId: String
|
912
|
+
snoozed: Boolean
|
913
|
+
steps: [TaskStep]
|
914
|
+
dateRemindMe: Float
|
915
|
+
recurrence: [String]
|
916
|
+
`;
|
888
917
|
exports.TaskQL = `
|
889
918
|
type Task {${exports.TaskFields}
|
890
919
|
}`;
|
@@ -1264,9 +1293,9 @@ input SharingTenantInput {
|
|
1264
1293
|
exports.UpsertTagInputQL = `
|
1265
1294
|
input UpsertTagInput {
|
1266
1295
|
_id: ID
|
1267
|
-
alias: String
|
1296
|
+
alias: String
|
1268
1297
|
friendlyName: String
|
1269
|
-
tagType: String
|
1298
|
+
tagType: String
|
1270
1299
|
url: String
|
1271
1300
|
favicon: String
|
1272
1301
|
dbpedia: String
|
@@ -1318,15 +1347,7 @@ input DeleteSharingTagInput {
|
|
1318
1347
|
tagId: String!
|
1319
1348
|
}`;
|
1320
1349
|
exports.UpdateTaskInputQL = `
|
1321
|
-
input
|
1322
|
-
_id: String
|
1323
|
-
editor: EditorInput!
|
1324
|
-
status: Int!
|
1325
|
-
dateDue: Float
|
1326
|
-
snoozed: Boolean
|
1327
|
-
steps: [TaskStepInput]
|
1328
|
-
dateRemindMe: Float
|
1329
|
-
recurrence: [String]
|
1350
|
+
input UpsertTaskInput {${exports.TaskFieldsForUpsert}
|
1330
1351
|
}`;
|
1331
1352
|
exports.FindTaskInputQL = `
|
1332
1353
|
input FindTaskInput {
|
@@ -1353,7 +1374,7 @@ input UpsertFolderInput {
|
|
1353
1374
|
_id: String
|
1354
1375
|
sharingTags: [SharingTagInput]
|
1355
1376
|
icon: String
|
1356
|
-
label: String
|
1377
|
+
label: String
|
1357
1378
|
description: String
|
1358
1379
|
searchIds: [String]
|
1359
1380
|
}`;
|
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,17 @@ export const BlockFields = `${SharedPrimitiveFields}
|
|
1242
1251
|
originNoteId: String
|
1243
1252
|
document: String
|
1244
1253
|
reactions: [Reaction]`;
|
1254
|
+
export const BlockFieldsForUpsert = `${SharedPrimitiveFieldsForUpsert}
|
1255
|
+
editors: [Editor]!
|
1256
|
+
version: Float
|
1257
|
+
blockType: String
|
1258
|
+
archived: Boolean
|
1259
|
+
favorite: Boolean
|
1260
|
+
parentId: String
|
1261
|
+
score: Float
|
1262
|
+
originNoteId: String
|
1263
|
+
document: String
|
1264
|
+
reactions: [Reaction]`;
|
1245
1265
|
export class Block extends SharedPrimitive {
|
1246
1266
|
editors: Editor[];
|
1247
1267
|
version: number;
|
@@ -1430,10 +1450,20 @@ export const TaskFields = `${BlockFields}
|
|
1430
1450
|
dateRemindMe: Float
|
1431
1451
|
recurrence: [String]
|
1432
1452
|
`;
|
1453
|
+
export const TaskFieldsForUpsert = `${BlockFieldsForUpsert}
|
1454
|
+
status: String
|
1455
|
+
dateDue: Float
|
1456
|
+
editorId: String
|
1457
|
+
editorGroupId: String
|
1458
|
+
snoozed: Boolean
|
1459
|
+
steps: [TaskStep]
|
1460
|
+
dateRemindMe: Float
|
1461
|
+
recurrence: [String]
|
1462
|
+
`;
|
1433
1463
|
export const TaskQL = `
|
1434
1464
|
type Task {${TaskFields}
|
1435
1465
|
}`;
|
1436
|
-
export class Task extends Block {
|
1466
|
+
export class Task extends Block implements BaseTask {
|
1437
1467
|
status: TaskStatus;
|
1438
1468
|
dateDue?: number;
|
1439
1469
|
originNoteId?: string;
|
@@ -2293,9 +2323,9 @@ input SharingTenantInput {
|
|
2293
2323
|
export const UpsertTagInputQL = `
|
2294
2324
|
input UpsertTagInput {
|
2295
2325
|
_id: ID
|
2296
|
-
alias: String
|
2326
|
+
alias: String
|
2297
2327
|
friendlyName: String
|
2298
|
-
tagType: String
|
2328
|
+
tagType: String
|
2299
2329
|
url: String
|
2300
2330
|
favicon: String
|
2301
2331
|
dbpedia: String
|
@@ -2386,26 +2416,9 @@ export interface DeleteSharingTagInput {
|
|
2386
2416
|
}
|
2387
2417
|
|
2388
2418
|
export const UpdateTaskInputQL = `
|
2389
|
-
input
|
2390
|
-
_id: String
|
2391
|
-
editor: EditorInput!
|
2392
|
-
status: Int!
|
2393
|
-
dateDue: Float
|
2394
|
-
snoozed: Boolean
|
2395
|
-
steps: [TaskStepInput]
|
2396
|
-
dateRemindMe: Float
|
2397
|
-
recurrence: [String]
|
2419
|
+
input UpsertTaskInput {${TaskFieldsForUpsert}
|
2398
2420
|
}`;
|
2399
|
-
export interface
|
2400
|
-
_id: string;
|
2401
|
-
editor: Editor;
|
2402
|
-
status: TaskStatus;
|
2403
|
-
dateDue: number;
|
2404
|
-
snoozed: boolean;
|
2405
|
-
steps: TaskStep[];
|
2406
|
-
dateRemindMe: number;
|
2407
|
-
recurrence: RecurrenceRFC[];
|
2408
|
-
}
|
2421
|
+
export interface UpsertTaskInput extends Task {}
|
2409
2422
|
|
2410
2423
|
export const FindTaskInputQL = `
|
2411
2424
|
input FindTaskInput {
|
@@ -2452,7 +2465,7 @@ input UpsertFolderInput {
|
|
2452
2465
|
_id: String
|
2453
2466
|
sharingTags: [SharingTagInput]
|
2454
2467
|
icon: String
|
2455
|
-
label: String
|
2468
|
+
label: String
|
2456
2469
|
description: String
|
2457
2470
|
searchIds: [String]
|
2458
2471
|
}`;
|
@@ -2460,7 +2473,7 @@ export interface UpsertFolderInput {
|
|
2460
2473
|
_id?: string;
|
2461
2474
|
sharingTags?: SharingTag[];
|
2462
2475
|
icon?: string;
|
2463
|
-
label
|
2476
|
+
label?: string;
|
2464
2477
|
description?: string;
|
2465
2478
|
searchIds?: string[];
|
2466
2479
|
_tagType?: TagType;
|