scout-types 1.0.2 → 1.0.3
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/package.json
CHANGED
|
@@ -3,8 +3,9 @@ import { Tweet } from "./Tweet"
|
|
|
3
3
|
export class ScoutDocument {
|
|
4
4
|
readonly scout_id : string
|
|
5
5
|
readonly document_id : string
|
|
6
|
-
readonly type : "URL" | "TWEET" | "TWITTER"
|
|
6
|
+
readonly type : "URL" | "TWEET" | "TWITTER" | "PRESS"
|
|
7
7
|
readonly s3_filename? : string
|
|
8
|
+
readonly s3_text_filename? : string
|
|
8
9
|
readonly url? : string
|
|
9
10
|
readonly username? : string
|
|
10
11
|
readonly vector_keys? : string[]
|
|
@@ -19,6 +20,7 @@ export class ScoutDocument {
|
|
|
19
20
|
this.document_id = scout_document.document_id
|
|
20
21
|
this.type = scout_document.type
|
|
21
22
|
this.s3_filename = scout_document.s3_filename
|
|
23
|
+
this.s3_text_filename = scout_document.s3_text_filename
|
|
22
24
|
this.url = scout_document.url
|
|
23
25
|
this.username = scout_document.username
|
|
24
26
|
this.vector_keys = scout_document.vector_keys
|
|
@@ -33,6 +35,7 @@ export class ScoutDocument {
|
|
|
33
35
|
typeof scout_document.document_id === "string" &&
|
|
34
36
|
typeof scout_document.type === "string" &&
|
|
35
37
|
(scout_document.s3_filename === undefined || typeof scout_document.s3_filename === "string") &&
|
|
38
|
+
(scout_document.s3_text_filename === undefined || typeof scout_document.s3_text_filename === "string") &&
|
|
36
39
|
(scout_document.url === undefined || typeof scout_document.url === "string") &&
|
|
37
40
|
(scout_document.username === undefined || typeof scout_document.username === "string") &&
|
|
38
41
|
(scout_document.vector_keys === undefined || Array.isArray(scout_document.vector_keys) && scout_document.vector_keys.every((vector_key : any) => typeof vector_key === "string")) &&
|