@bigfootai/bigfoot-types 2.10.7 → 2.10.9
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 +2 -0
- package/model.ts +9 -1
- package/package.json +1 -1
package/model.js
CHANGED
|
@@ -116,6 +116,8 @@ var ProcessingStage;
|
|
|
116
116
|
ProcessingStage["NotProcessed"] = "not_processed";
|
|
117
117
|
ProcessingStage["Processing"] = "processing";
|
|
118
118
|
ProcessingStage["Processed"] = "processed";
|
|
119
|
+
ProcessingStage["NotConnected"] = "not_connected";
|
|
120
|
+
ProcessingStage["NoCredential"] = "no_credential";
|
|
119
121
|
ProcessingStage["Failed"] = "failed";
|
|
120
122
|
})(ProcessingStage || (exports.ProcessingStage = ProcessingStage = {}));
|
|
121
123
|
// Referenced here: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-entity-types-version-2
|
package/model.ts
CHANGED
|
@@ -113,6 +113,8 @@ export enum ProcessingStage {
|
|
|
113
113
|
NotProcessed = 'not_processed',
|
|
114
114
|
Processing = 'processing',
|
|
115
115
|
Processed = 'processed',
|
|
116
|
+
NotConnected = 'not_connected',
|
|
117
|
+
NoCredential = 'no_credential',
|
|
116
118
|
Failed = 'failed',
|
|
117
119
|
}
|
|
118
120
|
|
|
@@ -176,9 +178,14 @@ export enum RelationType {
|
|
|
176
178
|
SubsidiaryOf = 'subsidiaryOf',
|
|
177
179
|
}
|
|
178
180
|
|
|
181
|
+
export interface Attrs {
|
|
182
|
+
href?: string;
|
|
183
|
+
title?: string;
|
|
184
|
+
}
|
|
185
|
+
|
|
179
186
|
export interface Mark {
|
|
180
187
|
type: string;
|
|
181
|
-
attrs?:
|
|
188
|
+
attrs?: Attrs;
|
|
182
189
|
}
|
|
183
190
|
|
|
184
191
|
export interface Highlight {
|
|
@@ -415,6 +422,7 @@ export class BusinessObject extends Primitive {
|
|
|
415
422
|
processingStage: ProcessingStage; // Indicates if the business object has been processed yet
|
|
416
423
|
processingAttempts: number; // Indicates the number of attempts made to process this business object
|
|
417
424
|
dateProcessed: number; // The date this document was last processed
|
|
425
|
+
processingReason: string; // The reason the processing is at this stage
|
|
418
426
|
externalId?: string; // An identifier that allows us to do entity resolution
|
|
419
427
|
businessObjectType?: BusinessObjectType;
|
|
420
428
|
externalResponse?: any; // The full response from the external system that created this object
|