@bigfootai/bigfoot-types 2.13.3 → 3.0.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 +15 -13
- package/model.ts +30 -31
- package/package.json +1 -1
package/model.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = 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.EntityEntryQL = exports.
|
3
|
+
exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Organization = 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.EntityEntryQL = 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.InviteStatus = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = void 0;
|
4
4
|
exports.GraphQLTypes = exports.SearchInputQL = 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 = void 0;
|
5
5
|
const uuid_1 = require("uuid");
|
6
6
|
/*
|
@@ -28,6 +28,7 @@ var BlockType;
|
|
28
28
|
var TagType;
|
29
29
|
(function (TagType) {
|
30
30
|
TagType["Person"] = "person";
|
31
|
+
TagType["Organization"] = "organization";
|
31
32
|
TagType["Topic"] = "topic";
|
32
33
|
})(TagType || (exports.TagType = TagType = {}));
|
33
34
|
var ClientType;
|
@@ -200,6 +201,8 @@ type SharingTag {
|
|
200
201
|
isShared: Boolean!
|
201
202
|
sharingApproach: String!
|
202
203
|
sharingLevel: String!
|
204
|
+
confidence: Float
|
205
|
+
text: String
|
203
206
|
}`;
|
204
207
|
exports.ReactionSkinToneQL = `
|
205
208
|
type ReactionSkinTone {
|
@@ -224,23 +227,18 @@ type EntityReference {
|
|
224
227
|
exports.ArgumentEntryQL = `
|
225
228
|
type ArgumentEntry {
|
226
229
|
text: String!
|
227
|
-
highlight: Highlight!
|
228
230
|
entities: [EntityReference]!
|
229
231
|
}`;
|
230
232
|
exports.RelationEntryQL = `
|
231
233
|
type RelationEntry {
|
232
234
|
type: String!
|
233
|
-
|
234
|
-
highlight: Highlight!
|
235
|
+
confidence: Int!
|
235
236
|
arguments: [ArgumentEntry]!
|
236
237
|
}`;
|
237
|
-
exports.MachineLearningEntryFields = `
|
238
|
-
highlights: [Highlight]`;
|
239
238
|
exports.EntityEntryQL = `
|
240
|
-
type EntityEntry {
|
241
|
-
|
242
|
-
|
243
|
-
score: Int!
|
239
|
+
type EntityEntry {
|
240
|
+
text: String!
|
241
|
+
confidence: Int!
|
244
242
|
}`;
|
245
243
|
exports.ProviderInfoQL = `
|
246
244
|
type ProviderInfo {
|
@@ -375,11 +373,15 @@ class Domain extends Primitive {
|
|
375
373
|
}
|
376
374
|
}
|
377
375
|
exports.Domain = Domain;
|
376
|
+
class Organization extends Tag {
|
377
|
+
constructor(tenantIdCreated, alias) {
|
378
|
+
super(tenantIdCreated, alias, TagType.Organization);
|
379
|
+
}
|
380
|
+
}
|
381
|
+
exports.Organization = Organization;
|
378
382
|
class Person extends Tag {
|
379
|
-
constructor(tenantIdCreated, alias
|
383
|
+
constructor(tenantIdCreated, alias) {
|
380
384
|
super(tenantIdCreated, alias, TagType.Person);
|
381
|
-
this.tenantIdVerified = tenantIdVerified;
|
382
|
-
this.email = email;
|
383
385
|
}
|
384
386
|
}
|
385
387
|
exports.Person = Person;
|
package/model.ts
CHANGED
@@ -24,6 +24,7 @@ export enum BlockType {
|
|
24
24
|
|
25
25
|
export enum TagType {
|
26
26
|
Person = 'person',
|
27
|
+
Organization = 'organization',
|
27
28
|
Topic = 'topic',
|
28
29
|
}
|
29
30
|
|
@@ -226,12 +227,16 @@ type SharingTag {
|
|
226
227
|
isShared: Boolean!
|
227
228
|
sharingApproach: String!
|
228
229
|
sharingLevel: String!
|
230
|
+
confidence: Float
|
231
|
+
text: String
|
229
232
|
}`;
|
230
233
|
export interface SharingTag {
|
231
234
|
tagId: string;
|
232
235
|
isShared: boolean;
|
233
236
|
sharingApproach: SharingApproach;
|
234
237
|
sharingLevel: SharingLevel;
|
238
|
+
confidence?: number;
|
239
|
+
text?: string;
|
235
240
|
}
|
236
241
|
|
237
242
|
export interface SharingDomain {
|
@@ -295,45 +300,39 @@ export interface EntityReference {
|
|
295
300
|
export const ArgumentEntryQL = `
|
296
301
|
type ArgumentEntry {
|
297
302
|
text: String!
|
298
|
-
highlight: Highlight!
|
299
303
|
entities: [EntityReference]!
|
300
304
|
}`;
|
301
305
|
export interface ArgumentEntry {
|
302
306
|
text: string;
|
303
|
-
highlight: Highlight;
|
304
307
|
entities: EntityReference[];
|
308
|
+
_highlight?: Highlight;
|
305
309
|
}
|
306
310
|
|
307
311
|
export const RelationEntryQL = `
|
308
312
|
type RelationEntry {
|
309
313
|
type: String!
|
310
|
-
|
311
|
-
highlight: Highlight!
|
314
|
+
confidence: Int!
|
312
315
|
arguments: [ArgumentEntry]!
|
313
316
|
}`;
|
314
317
|
export interface RelationEntry {
|
315
318
|
type: RelationType;
|
316
|
-
|
317
|
-
highlight: Highlight;
|
319
|
+
confidence: number;
|
318
320
|
arguments: ArgumentEntry[];
|
321
|
+
_highlight?: Highlight;
|
319
322
|
}
|
320
323
|
|
321
|
-
export const MachineLearningEntryFields = `
|
322
|
-
highlights: [Highlight]`;
|
323
324
|
export interface MachineLearningEntry {
|
324
|
-
|
325
|
+
_highlights?: Highlight[];
|
325
326
|
}
|
326
327
|
|
327
328
|
export const EntityEntryQL = `
|
328
|
-
type EntityEntry {
|
329
|
-
|
330
|
-
|
331
|
-
score: Int!
|
329
|
+
type EntityEntry {
|
330
|
+
text: String!
|
331
|
+
confidence: Int!
|
332
332
|
}`;
|
333
333
|
export interface EntityEntry extends MachineLearningEntry {
|
334
|
-
|
335
|
-
|
336
|
-
score: number;
|
334
|
+
text: string;
|
335
|
+
confidence: number;
|
337
336
|
}
|
338
337
|
|
339
338
|
export interface DateEntityEntry extends EntityEntry {
|
@@ -586,21 +585,23 @@ export class Domain extends Primitive {
|
|
586
585
|
}
|
587
586
|
}
|
588
587
|
|
588
|
+
export class Organization extends Tag {
|
589
|
+
url?: string;
|
590
|
+
favicon?: string;
|
591
|
+
dbpedia?: string;
|
592
|
+
|
593
|
+
constructor(tenantIdCreated: string, alias: string) {
|
594
|
+
super(tenantIdCreated, alias, TagType.Organization);
|
595
|
+
}
|
596
|
+
}
|
597
|
+
|
589
598
|
export class Person extends Tag {
|
590
|
-
|
591
|
-
email: string;
|
599
|
+
email?: string;
|
592
600
|
inviteStatus?: InviteStatus;
|
601
|
+
tenantIdVerified?: string; // The tenant._id that claimed/verified this tag as being them
|
593
602
|
|
594
|
-
constructor(
|
595
|
-
tenantIdCreated: string,
|
596
|
-
alias: string,
|
597
|
-
tenantIdVerified: string,
|
598
|
-
email: string
|
599
|
-
) {
|
603
|
+
constructor(tenantIdCreated: string, alias: string) {
|
600
604
|
super(tenantIdCreated, alias, TagType.Person);
|
601
|
-
|
602
|
-
this.tenantIdVerified = tenantIdVerified;
|
603
|
-
this.email = email;
|
604
605
|
}
|
605
606
|
}
|
606
607
|
|
@@ -624,17 +625,15 @@ export class Article extends Primitive {
|
|
624
625
|
sentiment?: DocumentSentiment;
|
625
626
|
dates?: EntityEntry[];
|
626
627
|
locations?: EntityEntry[];
|
627
|
-
organizations?: EntityEntry[];
|
628
|
-
names?: EntityEntry[];
|
629
628
|
sentiments?: EntityEntry[];
|
630
|
-
topics?: EntityEntry[];
|
631
|
-
mentions?: EntityEntry[];
|
632
629
|
relations?: RelationEntry[];
|
633
630
|
linkUrls?: string[];
|
634
631
|
sharingTags?: SharingTag[];
|
635
632
|
archived: boolean;
|
636
633
|
_changes?: Changes;
|
637
634
|
_tasks?: Task[];
|
635
|
+
_entities?: EntityEntry[];
|
636
|
+
_emails?: EntityEntry[];
|
638
637
|
|
639
638
|
constructor(referenceBlock: ReferenceBlock) {
|
640
639
|
super();
|