@bigfootai/bigfoot-types 4.7.38 → 4.8.1
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 +8 -16
- package/model.ts +11 -20
- 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.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.
|
4
|
-
exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = 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.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.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL =
|
5
|
-
exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = 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.TaskFields =
|
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 =
|
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.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = 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.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.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = void 0;
|
5
|
+
exports.UpdateRecommendationInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = 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.TaskFields = 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 = 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
|
@@ -105,16 +105,9 @@ var TagRecommendationType;
|
|
105
105
|
TagRecommendationType["TagCreated"] = "created";
|
106
106
|
TagRecommendationType["TagFound"] = "found";
|
107
107
|
TagRecommendationType["TagNotFound"] = "not_found";
|
108
|
-
TagRecommendationType["MultipleTagsFound"] = "multiple_found";
|
109
|
-
TagRecommendationType["TagCreationFailed"] = "creation_failed";
|
110
108
|
TagRecommendationType["UserAssigned"] = "user_assigned";
|
111
109
|
TagRecommendationType["Ignore"] = "ignore";
|
112
110
|
})(TagRecommendationType || (exports.TagRecommendationType = TagRecommendationType = {}));
|
113
|
-
var TagRecommendationVariation;
|
114
|
-
(function (TagRecommendationVariation) {
|
115
|
-
TagRecommendationVariation["TypeChange"] = "type_change";
|
116
|
-
TagRecommendationVariation["TagFromDocument"] = "tag_from_document";
|
117
|
-
})(TagRecommendationVariation || (exports.TagRecommendationVariation = TagRecommendationVariation = {}));
|
118
111
|
var RecurrenceRFC;
|
119
112
|
(function (RecurrenceRFC) {
|
120
113
|
RecurrenceRFC["FREQ"] = "FREQ";
|
@@ -648,7 +641,6 @@ type TagRecommendation {
|
|
648
641
|
tagType: String!
|
649
642
|
tags: [Tag]!
|
650
643
|
entity: EntityEntry!
|
651
|
-
variation: String
|
652
644
|
}`;
|
653
645
|
// We make recommendations/notifications for a variety of reasons
|
654
646
|
// - Recommend integrating calendar based on dates in the note
|
@@ -1272,9 +1264,9 @@ input SharingTenantInput {
|
|
1272
1264
|
exports.UpsertTagInputQL = `
|
1273
1265
|
input UpsertTagInput {
|
1274
1266
|
_id: ID
|
1275
|
-
alias: String
|
1267
|
+
alias: String
|
1276
1268
|
friendlyName: String
|
1277
|
-
tagType: String
|
1269
|
+
tagType: String
|
1278
1270
|
url: String
|
1279
1271
|
favicon: String
|
1280
1272
|
dbpedia: String
|
@@ -1329,7 +1321,7 @@ exports.UpdateTaskInputQL = `
|
|
1329
1321
|
input UpdateTaskInput {
|
1330
1322
|
_id: String
|
1331
1323
|
editor: EditorInput!
|
1332
|
-
status: Int
|
1324
|
+
status: Int
|
1333
1325
|
dateDue: Float
|
1334
1326
|
snoozed: Boolean
|
1335
1327
|
steps: [TaskStepInput]
|
@@ -1361,7 +1353,7 @@ input UpsertFolderInput {
|
|
1361
1353
|
_id: String
|
1362
1354
|
sharingTags: [SharingTagInput]
|
1363
1355
|
icon: String
|
1364
|
-
label: String
|
1356
|
+
label: String
|
1365
1357
|
description: String
|
1366
1358
|
searchIds: [String]
|
1367
1359
|
}`;
|
package/model.ts
CHANGED
@@ -99,17 +99,10 @@ export enum TagRecommendationType {
|
|
99
99
|
TagCreated = 'created',
|
100
100
|
TagFound = 'found',
|
101
101
|
TagNotFound = 'not_found',
|
102
|
-
MultipleTagsFound = 'multiple_found',
|
103
|
-
TagCreationFailed = 'creation_failed',
|
104
102
|
UserAssigned = 'user_assigned',
|
105
103
|
Ignore = 'ignore',
|
106
104
|
}
|
107
105
|
|
108
|
-
export enum TagRecommendationVariation {
|
109
|
-
TypeChange = 'type_change',
|
110
|
-
TagFromDocument = 'tag_from_document',
|
111
|
-
}
|
112
|
-
|
113
106
|
export enum RecurrenceRFC {
|
114
107
|
FREQ = 'FREQ', // The frequency of the event (e.g., DAILY, WEEKLY, MONTHLY, YEARLY).
|
115
108
|
UNTIL = 'UNTIL', // A date until when the event should occur.
|
@@ -974,7 +967,6 @@ type TagRecommendation {
|
|
974
967
|
tagType: String!
|
975
968
|
tags: [Tag]!
|
976
969
|
entity: EntityEntry!
|
977
|
-
variation: String
|
978
970
|
}`;
|
979
971
|
export interface TagRecommendation {
|
980
972
|
id: string;
|
@@ -982,7 +974,6 @@ export interface TagRecommendation {
|
|
982
974
|
tagType: TagType;
|
983
975
|
tags: Tag[];
|
984
976
|
entity: EntityEntry;
|
985
|
-
variation?: TagRecommendationVariation;
|
986
977
|
}
|
987
978
|
|
988
979
|
// We make recommendations/notifications for a variety of reasons
|
@@ -2302,9 +2293,9 @@ input SharingTenantInput {
|
|
2302
2293
|
export const UpsertTagInputQL = `
|
2303
2294
|
input UpsertTagInput {
|
2304
2295
|
_id: ID
|
2305
|
-
alias: String
|
2296
|
+
alias: String
|
2306
2297
|
friendlyName: String
|
2307
|
-
tagType: String
|
2298
|
+
tagType: String
|
2308
2299
|
url: String
|
2309
2300
|
favicon: String
|
2310
2301
|
dbpedia: String
|
@@ -2398,7 +2389,7 @@ export const UpdateTaskInputQL = `
|
|
2398
2389
|
input UpdateTaskInput {
|
2399
2390
|
_id: String
|
2400
2391
|
editor: EditorInput!
|
2401
|
-
status: Int
|
2392
|
+
status: Int
|
2402
2393
|
dateDue: Float
|
2403
2394
|
snoozed: Boolean
|
2404
2395
|
steps: [TaskStepInput]
|
@@ -2408,12 +2399,12 @@ input UpdateTaskInput {
|
|
2408
2399
|
export interface UpdateTaskInput {
|
2409
2400
|
_id: string;
|
2410
2401
|
editor: Editor;
|
2411
|
-
status
|
2412
|
-
dateDue
|
2413
|
-
snoozed
|
2414
|
-
steps
|
2415
|
-
dateRemindMe
|
2416
|
-
recurrence
|
2402
|
+
status?: TaskStatus;
|
2403
|
+
dateDue?: number;
|
2404
|
+
snoozed?: boolean;
|
2405
|
+
steps?: TaskStep[];
|
2406
|
+
dateRemindMe?: number;
|
2407
|
+
recurrence?: RecurrenceRFC[];
|
2417
2408
|
}
|
2418
2409
|
|
2419
2410
|
export const FindTaskInputQL = `
|
@@ -2461,7 +2452,7 @@ input UpsertFolderInput {
|
|
2461
2452
|
_id: String
|
2462
2453
|
sharingTags: [SharingTagInput]
|
2463
2454
|
icon: String
|
2464
|
-
label: String
|
2455
|
+
label: String
|
2465
2456
|
description: String
|
2466
2457
|
searchIds: [String]
|
2467
2458
|
}`;
|
@@ -2469,7 +2460,7 @@ export interface UpsertFolderInput {
|
|
2469
2460
|
_id?: string;
|
2470
2461
|
sharingTags?: SharingTag[];
|
2471
2462
|
icon?: string;
|
2472
|
-
label
|
2463
|
+
label?: string;
|
2473
2464
|
description?: string;
|
2474
2465
|
searchIds?: string[];
|
2475
2466
|
_tagType?: TagType;
|