@bigfootai/bigfoot-types 2.9.4 → 2.9.5

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.
Files changed (3) hide show
  1. package/model.js +61 -1
  2. package/model.ts +2 -2
  3. 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)();
package/model.ts CHANGED
@@ -278,7 +278,7 @@ export interface ProviderInfo {
278
278
 
279
279
  export interface ProviderRequest {
280
280
  providerInfo: ProviderInfo;
281
- email: string;
281
+ connectionId: string;
282
282
  }
283
283
 
284
284
  export interface ProviderResponse {
@@ -508,6 +508,7 @@ export class Article extends Primitive {
508
508
  topics?: EntityEntry[];
509
509
  mentions?: EntityEntry[];
510
510
  relations?: RelationEntry[];
511
+ linkUrls?: string[];
511
512
 
512
513
  constructor(referenceNote: ReferenceNote) {
513
514
  super();
@@ -524,7 +525,6 @@ export class Note extends Primitive {
524
525
  changes?: Changes;
525
526
  _sharedTags?: string[];
526
527
  reactions?: Reaction[];
527
- linkUrls?: string[];
528
528
 
529
529
  constructor(
530
530
  tenantIdCreated: string,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "2.9.4",
4
+ "version": "2.9.5",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",