scout-types 1.0.22 → 1.0.24

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,11 @@ 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.username = scout_document.username;
23
+ this.file_type = scout_document.file_type;
24
+ this.filename = scout_document.filename;
25
+ this.tweet = scout_document.tweet;
21
26
  }
22
27
  static is(scout_document) {
23
28
  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.24",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -8,7 +8,12 @@ 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
+ // readonly url? : string
12
+ // readonly username? : string
13
+ // readonly file_type? : string
14
+ // readonly filename? : string
15
+ // readonly tweet? : Tweet
16
+ [x : string] : any
12
17
 
13
18
  constructor(scout_document : any) {
14
19
  if (!ScoutDocument.is(scout_document)) {
@@ -21,6 +26,11 @@ export class ScoutDocument {
21
26
  this.s3_text_filename = scout_document.s3_text_filename
22
27
  this.text = scout_document.text
23
28
  this.vector_keys = scout_document.vector_keys
29
+ this.url = scout_document.url
30
+ this.username = scout_document.username
31
+ this.file_type = scout_document.file_type
32
+ this.filename = scout_document.filename
33
+ this.tweet = scout_document.tweet
24
34
  }
25
35
 
26
36
  static is(scout_document : any) : scout_document is ScoutDocument {