@bigfootai/bigfoot-types 3.0.4 → 3.1.0
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 +34 -10
- package/model.ts +41 -10
- package/package.json +1 -1
package/model.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.
|
3
|
+
exports.Domain = exports.Tenant = exports.TenantQL = exports.Tag = exports.Provider = exports.ProviderQL = exports.Sync = exports.SyncQL = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ConnectedProviderQL = exports.CredentialQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.TagRecommendationQL = exports.DateEntityEntryQL = exports.EntityEntryQL = exports.EntityEntryFields = exports.RelationEntryQL = exports.ArgumentEntryQL = exports.EntityReferenceQL = exports.DocumentSentimentQL = exports.ReactionQL = exports.ReactionSkinToneQL = exports.SharingTagQL = 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.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = void 0;
|
4
|
+
exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.InsertNoteInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.Table = exports.FieldVariation = exports.FieldType = exports.Template = exports.Website = 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.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Organization = void 0;
|
5
|
+
exports.GraphQLTypes = exports.SearchInputQL = void 0;
|
5
6
|
const uuid_1 = require("uuid");
|
6
7
|
/*
|
7
8
|
These are the core primitives of our model. These represent the entities that show
|
@@ -64,6 +65,17 @@ var InviteStatus;
|
|
64
65
|
InviteStatus[InviteStatus["InviteSent"] = 1] = "InviteSent";
|
65
66
|
InviteStatus[InviteStatus["InviteAccepted"] = 2] = "InviteAccepted";
|
66
67
|
})(InviteStatus || (exports.InviteStatus = InviteStatus = {}));
|
68
|
+
var TagRecommendationType;
|
69
|
+
(function (TagRecommendationType) {
|
70
|
+
TagRecommendationType["TagMissing"] = "missing";
|
71
|
+
TagRecommendationType["TagCreated"] = "created";
|
72
|
+
TagRecommendationType["TagFound"] = "found";
|
73
|
+
TagRecommendationType["MultipleTagsFound"] = "multiple_found";
|
74
|
+
})(TagRecommendationType || (exports.TagRecommendationType = TagRecommendationType = {}));
|
75
|
+
var TagRecommendationVariation;
|
76
|
+
(function (TagRecommendationVariation) {
|
77
|
+
TagRecommendationVariation["TypeChange"] = "type_change";
|
78
|
+
})(TagRecommendationVariation || (exports.TagRecommendationVariation = TagRecommendationVariation = {}));
|
67
79
|
var RecurrenceRFC;
|
68
80
|
(function (RecurrenceRFC) {
|
69
81
|
RecurrenceRFC["FREQ"] = "FREQ";
|
@@ -235,10 +247,22 @@ type RelationEntry {
|
|
235
247
|
confidence: Int!
|
236
248
|
arguments: [ArgumentEntry]!
|
237
249
|
}`;
|
238
|
-
exports.
|
239
|
-
type EntityEntry {
|
250
|
+
exports.EntityEntryFields = `
|
240
251
|
text: String!
|
241
252
|
confidence: Int!
|
253
|
+
`;
|
254
|
+
exports.EntityEntryQL = `
|
255
|
+
type EntityEntry {${exports.EntityEntryFields}
|
256
|
+
}`;
|
257
|
+
exports.DateEntityEntryQL = `
|
258
|
+
type EntityEntry {${exports.EntityEntryFields}
|
259
|
+
date: Float!
|
260
|
+
}`;
|
261
|
+
exports.TagRecommendationQL = `
|
262
|
+
type TagRecommendation {
|
263
|
+
type: String!
|
264
|
+
tags: [EntityEntry]!
|
265
|
+
variation: String
|
242
266
|
}`;
|
243
267
|
exports.ProviderInfoQL = `
|
244
268
|
type ProviderInfo {
|
@@ -391,13 +415,11 @@ type Article {${exports.PrimitiveFields}
|
|
391
415
|
sentiment: DocumentSentiment
|
392
416
|
dates: [EntityEntry]
|
393
417
|
locations: [EntityEntry]
|
394
|
-
organizations: [EntityEntry]
|
395
|
-
names: [EntityEntry]
|
396
|
-
sentiments: [EntityEntry]
|
397
|
-
topics: [EntityEntry]
|
398
|
-
mentions: [EntityEntry]
|
399
|
-
relations: [RelationEntry]
|
400
418
|
linkUrls: [String]
|
419
|
+
sharingTags: [SharingTag]
|
420
|
+
recommendations: [TagRecommendation]
|
421
|
+
relations: [RelationEntry]
|
422
|
+
archived: Boolean!
|
401
423
|
}`;
|
402
424
|
class Article extends Primitive {
|
403
425
|
constructor(referenceBlock) {
|
@@ -763,6 +785,8 @@ ${exports.EntityReferenceQL}
|
|
763
785
|
${exports.ArgumentEntryQL}
|
764
786
|
${exports.RelationEntryQL}
|
765
787
|
${exports.EntityEntryQL}
|
788
|
+
${exports.DateEntityEntryQL}
|
789
|
+
${exports.TagRecommendationQL}
|
766
790
|
${exports.ProviderInfoQL}
|
767
791
|
${exports.ProviderRequestQL}
|
768
792
|
${exports.CredentialQL}
|
package/model.ts
CHANGED
@@ -61,6 +61,17 @@ export enum InviteStatus {
|
|
61
61
|
InviteAccepted = 2,
|
62
62
|
}
|
63
63
|
|
64
|
+
export enum TagRecommendationType {
|
65
|
+
TagMissing = 'missing',
|
66
|
+
TagCreated = 'created',
|
67
|
+
TagFound = 'found',
|
68
|
+
MultipleTagsFound = 'multiple_found',
|
69
|
+
}
|
70
|
+
|
71
|
+
export enum TagRecommendationVariation {
|
72
|
+
TypeChange = 'type_change',
|
73
|
+
}
|
74
|
+
|
64
75
|
export enum RecurrenceRFC {
|
65
76
|
FREQ = 'FREQ', // The frequency of the event (e.g., DAILY, WEEKLY, MONTHLY, YEARLY).
|
66
77
|
UNTIL = 'UNTIL', // A date until when the event should occur.
|
@@ -325,10 +336,12 @@ export interface MachineLearningEntry {
|
|
325
336
|
_highlights?: Highlight[];
|
326
337
|
}
|
327
338
|
|
328
|
-
export const
|
329
|
-
type EntityEntry {
|
339
|
+
export const EntityEntryFields = `
|
330
340
|
text: String!
|
331
341
|
confidence: Int!
|
342
|
+
`;
|
343
|
+
export const EntityEntryQL = `
|
344
|
+
type EntityEntry {${EntityEntryFields}
|
332
345
|
}`;
|
333
346
|
export interface EntityEntry extends MachineLearningEntry {
|
334
347
|
text: string;
|
@@ -339,12 +352,29 @@ export interface EntityEntry extends MachineLearningEntry {
|
|
339
352
|
_avatar?: string;
|
340
353
|
_favicon?: string;
|
341
354
|
_friendlyName?: string;
|
355
|
+
_dbpedia?: string;
|
342
356
|
}
|
343
357
|
|
358
|
+
export const DateEntityEntryQL = `
|
359
|
+
type EntityEntry {${EntityEntryFields}
|
360
|
+
date: Float!
|
361
|
+
}`;
|
344
362
|
export interface DateEntityEntry extends EntityEntry {
|
345
363
|
date: number;
|
346
364
|
}
|
347
365
|
|
366
|
+
export const TagRecommendationQL = `
|
367
|
+
type TagRecommendation {
|
368
|
+
type: String!
|
369
|
+
tags: [EntityEntry]!
|
370
|
+
variation: String
|
371
|
+
}`;
|
372
|
+
export interface TagRecommendation {
|
373
|
+
type: TagRecommendationType;
|
374
|
+
tags: EntityEntry[];
|
375
|
+
variation?: TagRecommendationVariation;
|
376
|
+
}
|
377
|
+
|
348
378
|
export const ProviderInfoQL = `
|
349
379
|
type ProviderInfo {
|
350
380
|
provider: String!
|
@@ -603,6 +633,7 @@ export class Organization extends Tag {
|
|
603
633
|
|
604
634
|
export class Person extends Tag {
|
605
635
|
email?: string;
|
636
|
+
avatar?: string;
|
606
637
|
inviteStatus?: InviteStatus;
|
607
638
|
tenantIdVerified?: string; // The tenant._id that claimed/verified this tag as being them
|
608
639
|
|
@@ -617,13 +648,11 @@ type Article {${PrimitiveFields}
|
|
617
648
|
sentiment: DocumentSentiment
|
618
649
|
dates: [EntityEntry]
|
619
650
|
locations: [EntityEntry]
|
620
|
-
organizations: [EntityEntry]
|
621
|
-
names: [EntityEntry]
|
622
|
-
sentiments: [EntityEntry]
|
623
|
-
topics: [EntityEntry]
|
624
|
-
mentions: [EntityEntry]
|
625
|
-
relations: [RelationEntry]
|
626
651
|
linkUrls: [String]
|
652
|
+
sharingTags: [SharingTag]
|
653
|
+
recommendations: [TagRecommendation]
|
654
|
+
relations: [RelationEntry]
|
655
|
+
archived: Boolean!
|
627
656
|
}`;
|
628
657
|
export class Article extends Primitive {
|
629
658
|
referenceBlock: ReferenceBlock;
|
@@ -631,10 +660,10 @@ export class Article extends Primitive {
|
|
631
660
|
sentiment?: DocumentSentiment;
|
632
661
|
dates?: EntityEntry[];
|
633
662
|
locations?: EntityEntry[];
|
634
|
-
sentiments?: EntityEntry[];
|
635
|
-
relations?: RelationEntry[];
|
636
663
|
linkUrls?: string[];
|
637
664
|
sharingTags?: SharingTag[];
|
665
|
+
recommendations?: TagRecommendation[];
|
666
|
+
relations?: RelationEntry[];
|
638
667
|
archived: boolean;
|
639
668
|
_changes?: Changes;
|
640
669
|
_tasks?: Task[];
|
@@ -1470,6 +1499,8 @@ ${EntityReferenceQL}
|
|
1470
1499
|
${ArgumentEntryQL}
|
1471
1500
|
${RelationEntryQL}
|
1472
1501
|
${EntityEntryQL}
|
1502
|
+
${DateEntityEntryQL}
|
1503
|
+
${TagRecommendationQL}
|
1473
1504
|
${ProviderInfoQL}
|
1474
1505
|
${ProviderRequestQL}
|
1475
1506
|
${CredentialQL}
|