scout-types 1.0.22 → 1.0.23

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.
@@ -7,7 +7,7 @@ export declare class ScoutDocument {
7
7
  readonly s3_text_filename?: string;
8
8
  readonly text?: string;
9
9
  readonly vector_keys?: string[];
10
- readonly [x: string]: any;
10
+ [x: string]: any;
11
11
  constructor(scout_document: any);
12
12
  static is(scout_document: any): scout_document is ScoutDocument;
13
13
  }
@@ -18,6 +18,10 @@ export class ScoutDocument {
18
18
  this.s3_text_filename = scout_document.s3_text_filename;
19
19
  this.text = scout_document.text;
20
20
  this.vector_keys = scout_document.vector_keys;
21
+ this.url = scout_document.url;
22
+ this.file_type = scout_document.file_type;
23
+ this.filename = scout_document.filename;
24
+ this.tweet = scout_document.tweet;
21
25
  }
22
26
  static is(scout_document) {
23
27
  return (scout_document !== undefined &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scout-types",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -8,7 +8,7 @@ export class ScoutDocument {
8
8
  readonly s3_text_filename? : string
9
9
  readonly text? : string
10
10
  readonly vector_keys? : string[]
11
- readonly [x : string] : any
11
+ [x : string] : any
12
12
 
13
13
  constructor(scout_document : any) {
14
14
  if (!ScoutDocument.is(scout_document)) {
@@ -21,6 +21,10 @@ export class ScoutDocument {
21
21
  this.s3_text_filename = scout_document.s3_text_filename
22
22
  this.text = scout_document.text
23
23
  this.vector_keys = scout_document.vector_keys
24
+ this.url = scout_document.url
25
+ this.file_type = scout_document.file_type
26
+ this.filename = scout_document.filename
27
+ this.tweet = scout_document.tweet
24
28
  }
25
29
 
26
30
  static is(scout_document : any) : scout_document is ScoutDocument {