@bigfootai/bigfoot-types 3.0.0 → 3.0.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 +15 -13
- package/model.ts +5 -0
- 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
@@ -333,6 +333,9 @@ type EntityEntry {
|
|
333
333
|
export interface EntityEntry extends MachineLearningEntry {
|
334
334
|
text: string;
|
335
335
|
confidence: number;
|
336
|
+
_tagId?: string;
|
337
|
+
_email?: string;
|
338
|
+
_url?: string;
|
336
339
|
}
|
337
340
|
|
338
341
|
export interface DateEntityEntry extends EntityEntry {
|
@@ -588,6 +591,7 @@ export class Domain extends Primitive {
|
|
588
591
|
export class Organization extends Tag {
|
589
592
|
url?: string;
|
590
593
|
favicon?: string;
|
594
|
+
dbpedia?: string;
|
591
595
|
|
592
596
|
constructor(tenantIdCreated: string, alias: string) {
|
593
597
|
super(tenantIdCreated, alias, TagType.Organization);
|
@@ -632,6 +636,7 @@ export class Article extends Primitive {
|
|
632
636
|
_changes?: Changes;
|
633
637
|
_tasks?: Task[];
|
634
638
|
_entities?: EntityEntry[];
|
639
|
+
_emails?: EntityEntry[];
|
635
640
|
|
636
641
|
constructor(referenceBlock: ReferenceBlock) {
|
637
642
|
super();
|