@bigfootai/bigfoot-types 2.8.2 → 2.9.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.
Files changed (2) hide show
  1. package/model.ts +26 -0
  2. package/package.json +1 -3
package/model.ts CHANGED
@@ -174,11 +174,33 @@ export interface Step {
174
174
  status: StepStatus;
175
175
  }
176
176
 
177
+ export interface DocumentSentiment {
178
+ name: string;
179
+ score: number;
180
+ }
181
+
182
+ export interface ArgumentEntry {
183
+ text: string;
184
+ highlight: Highlight;
185
+ entities: EntityEntry[];
186
+ }
187
+
188
+ export interface RelationEntry {
189
+ name: string;
190
+ score: number;
191
+ highlight: Highlight;
192
+ arguments: ArgumentEntry;
193
+ }
194
+
177
195
  export interface EntityEntry extends MachineLearningEntry {
178
196
  name: string;
179
197
  score: number;
180
198
  }
181
199
 
200
+ export interface DateEntityEntry extends EntityEntry {
201
+ date: number;
202
+ }
203
+
182
204
  export interface MachineLearningEntry {
183
205
  highlights?: Highlight[];
184
206
  }
@@ -411,11 +433,15 @@ export class Person extends Tag {
411
433
 
412
434
  export class Article extends Primitive {
413
435
  referenceNote: ReferenceNote;
436
+ sentiment?: DocumentSentiment;
414
437
  dates?: EntityEntry[];
415
438
  locations?: EntityEntry[];
416
439
  organizations?: EntityEntry[];
417
440
  names?: EntityEntry[];
418
441
  sentiments?: EntityEntry[];
442
+ topics?: EntityEntry[];
443
+ mentions?: EntityEntry[];
444
+ relations?: RelationEntry[];
419
445
 
420
446
  constructor(referenceNote: ReferenceNote) {
421
447
  super();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "2.8.2",
4
+ "version": "2.9.1",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",
@@ -11,8 +11,6 @@
11
11
  "dev": "node model.js"
12
12
  },
13
13
  "dependencies": {
14
- "prosemirror-model": "^1.19.4",
15
- "prosemirror-schema-basic": "^1.2.2",
16
14
  "uuid": "^9.0.1"
17
15
  },
18
16
  "devDependencies": {