@bigfootai/bigfoot-types 2.9.4 → 2.9.6
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 +62 -3
- package/model.ts +3 -9
- 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.Table = exports.FieldVariation = exports.FieldType = exports.Template = exports.Thread = exports.ExternalTask = exports.Event = exports.Calendar = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.Task = exports.Block = exports.Note = exports.Article = exports.Person = exports.Domain = exports.Tenant = exports.BusinessObject = exports.Tag = exports.Provider = exports.Sync = exports.Primitive = 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 = exports.BusinessObjectType = void 0;
|
|
3
|
+
exports.Table = exports.FieldVariation = exports.FieldType = exports.Template = exports.Thread = exports.ExternalTask = exports.Event = exports.Calendar = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.Task = exports.Block = exports.Note = exports.Article = exports.Person = exports.Domain = exports.Tenant = exports.BusinessObject = exports.Tag = exports.Provider = exports.Sync = exports.Primitive = 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 = exports.BusinessObjectType = void 0;
|
|
4
4
|
const uuid_1 = require("uuid");
|
|
5
5
|
/*
|
|
6
6
|
These are the core primitives of our model. These represent the entities that show
|
|
@@ -117,6 +117,66 @@ var ProcessingStage;
|
|
|
117
117
|
ProcessingStage["Processed"] = "processed";
|
|
118
118
|
ProcessingStage["Failed"] = "failed";
|
|
119
119
|
})(ProcessingStage || (exports.ProcessingStage = ProcessingStage = {}));
|
|
120
|
+
// Referenced here: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-entity-types-version-2
|
|
121
|
+
var EntityType;
|
|
122
|
+
(function (EntityType) {
|
|
123
|
+
EntityType["Date"] = "Date";
|
|
124
|
+
EntityType["Duration"] = "Duration";
|
|
125
|
+
EntityType["EmailAddress"] = "EmailAddress";
|
|
126
|
+
EntityType["Facility"] = "Facility";
|
|
127
|
+
EntityType["GeographicFeature"] = "GeographicFeature";
|
|
128
|
+
EntityType["Hashtag"] = "Hashtag";
|
|
129
|
+
EntityType["IPAddress"] = "IPAddress";
|
|
130
|
+
EntityType["JobTitle"] = "JobTitle";
|
|
131
|
+
EntityType["Location"] = "Location";
|
|
132
|
+
EntityType["Measure"] = "Measure";
|
|
133
|
+
EntityType["Money"] = "Money";
|
|
134
|
+
EntityType["Number"] = "Number";
|
|
135
|
+
EntityType["Ordinal"] = "Ordinal";
|
|
136
|
+
EntityType["Organization"] = "Organization";
|
|
137
|
+
EntityType["Percent"] = "Percent";
|
|
138
|
+
EntityType["Person"] = "Person";
|
|
139
|
+
EntityType["PhoneNumber"] = "PhoneNumber";
|
|
140
|
+
EntityType["Time"] = "Time";
|
|
141
|
+
EntityType["TwitterHandle"] = "TwitterHandle";
|
|
142
|
+
EntityType["URL"] = "URL";
|
|
143
|
+
})(EntityType || (exports.EntityType = EntityType = {}));
|
|
144
|
+
// Referenced here: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-relation-types-version-2
|
|
145
|
+
var RelationType;
|
|
146
|
+
(function (RelationType) {
|
|
147
|
+
RelationType["AffiliatedWith"] = "affiliatedWith";
|
|
148
|
+
RelationType["BasedIn"] = "basedIn";
|
|
149
|
+
RelationType["BornAt"] = "bornAt";
|
|
150
|
+
RelationType["BornOn"] = "bornOn";
|
|
151
|
+
RelationType["ClientOf"] = "clientOf";
|
|
152
|
+
RelationType["Colleague"] = "colleague";
|
|
153
|
+
RelationType["Competitor"] = "competitor";
|
|
154
|
+
RelationType["ContactOf"] = "contactOf";
|
|
155
|
+
RelationType["DiedAt"] = "diedAt";
|
|
156
|
+
RelationType["DiedOn"] = "diedOn";
|
|
157
|
+
RelationType["DissolvedOn"] = "dissolvedOn";
|
|
158
|
+
RelationType["EducatedAt"] = "educatedAt";
|
|
159
|
+
RelationType["EmployedBy"] = "employedBy";
|
|
160
|
+
RelationType["FoundedOn"] = "foundedOn";
|
|
161
|
+
RelationType["FounderOf"] = "founderOf";
|
|
162
|
+
RelationType["LocatedAt"] = "locatedAt";
|
|
163
|
+
RelationType["ManagerOf"] = "managerOf";
|
|
164
|
+
RelationType["MemberOf"] = "memberOf";
|
|
165
|
+
RelationType["OwnerOf"] = "ownerOf";
|
|
166
|
+
RelationType["ParentOf"] = "parentOf";
|
|
167
|
+
RelationType["Partner"] = "partner";
|
|
168
|
+
RelationType["PartOf"] = "partOf";
|
|
169
|
+
RelationType["PartOfMany"] = "partOfMany";
|
|
170
|
+
RelationType["PopulationOf"] = "populationOf";
|
|
171
|
+
RelationType["MeasureOf"] = "measureOf";
|
|
172
|
+
RelationType["Relative"] = "relative";
|
|
173
|
+
RelationType["ResidesIn"] = "residesIn";
|
|
174
|
+
RelationType["ShareholdersOf"] = "shareholdersOf";
|
|
175
|
+
RelationType["SiblingOf"] = "siblingOf";
|
|
176
|
+
RelationType["SpokespersonFor"] = "spokespersonFor";
|
|
177
|
+
RelationType["SpouseOf"] = "spouseOf";
|
|
178
|
+
RelationType["SubsidiaryOf"] = "subsidiaryOf";
|
|
179
|
+
})(RelationType || (exports.RelationType = RelationType = {}));
|
|
120
180
|
class Primitive {
|
|
121
181
|
constructor() {
|
|
122
182
|
this._id = (0, uuid_1.v4)();
|
|
@@ -127,9 +187,8 @@ class Primitive {
|
|
|
127
187
|
}
|
|
128
188
|
exports.Primitive = Primitive;
|
|
129
189
|
class Sync extends Primitive {
|
|
130
|
-
constructor(
|
|
190
|
+
constructor(tenantIdCreated, providerRequest) {
|
|
131
191
|
super();
|
|
132
|
-
this.connectionId = connectionId;
|
|
133
192
|
this.tenantIdCreated = tenantIdCreated;
|
|
134
193
|
this.providerRequest = providerRequest;
|
|
135
194
|
}
|
package/model.ts
CHANGED
|
@@ -278,7 +278,7 @@ export interface ProviderInfo {
|
|
|
278
278
|
|
|
279
279
|
export interface ProviderRequest {
|
|
280
280
|
providerInfo: ProviderInfo;
|
|
281
|
-
|
|
281
|
+
connectionId: string;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
export interface ProviderResponse {
|
|
@@ -349,17 +349,11 @@ export class Primitive {
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
export class Sync extends Primitive {
|
|
352
|
-
connectionId: string;
|
|
353
352
|
providerRequest: ProviderRequest;
|
|
354
353
|
|
|
355
|
-
constructor(
|
|
356
|
-
connectionId: string,
|
|
357
|
-
tenantIdCreated: string,
|
|
358
|
-
providerRequest: ProviderRequest
|
|
359
|
-
) {
|
|
354
|
+
constructor(tenantIdCreated: string, providerRequest: ProviderRequest) {
|
|
360
355
|
super();
|
|
361
356
|
|
|
362
|
-
this.connectionId = connectionId;
|
|
363
357
|
this.tenantIdCreated = tenantIdCreated;
|
|
364
358
|
this.providerRequest = providerRequest;
|
|
365
359
|
}
|
|
@@ -508,6 +502,7 @@ export class Article extends Primitive {
|
|
|
508
502
|
topics?: EntityEntry[];
|
|
509
503
|
mentions?: EntityEntry[];
|
|
510
504
|
relations?: RelationEntry[];
|
|
505
|
+
linkUrls?: string[];
|
|
511
506
|
|
|
512
507
|
constructor(referenceNote: ReferenceNote) {
|
|
513
508
|
super();
|
|
@@ -524,7 +519,6 @@ export class Note extends Primitive {
|
|
|
524
519
|
changes?: Changes;
|
|
525
520
|
_sharedTags?: string[];
|
|
526
521
|
reactions?: Reaction[];
|
|
527
|
-
linkUrls?: string[];
|
|
528
522
|
|
|
529
523
|
constructor(
|
|
530
524
|
tenantIdCreated: string,
|