scout-types 1.0.2 → 1.0.4

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.
@@ -14,6 +14,13 @@ export interface ScoutConfig extends ScoutUtilsConfig {
14
14
  cognito_client_id: string;
15
15
  cognito_client_secret: string;
16
16
  secret_key: string;
17
+ dynamodb_scouts: string;
18
+ dynamodb_scout_documents: string;
19
+ dynamodb_conversations: string;
20
+ dynamodb_jurisdictions: string;
21
+ dynamodb_jurisdiction_documents: string;
22
+ dynamodb_messages: string;
23
+ dynamodb_users: string;
17
24
  s3_bucket: string;
18
25
  s3vectors_bucket: string;
19
26
  }
@@ -2,8 +2,9 @@ import { Tweet } from "./Tweet.js";
2
2
  export declare class ScoutDocument {
3
3
  readonly scout_id: string;
4
4
  readonly document_id: string;
5
- readonly type: "URL" | "TWEET" | "TWITTER";
5
+ readonly type: "URL" | "TWEET" | "TWITTER" | "PRESS";
6
6
  readonly s3_filename?: string;
7
+ readonly s3_text_filename?: string;
7
8
  readonly url?: string;
8
9
  readonly username?: string;
9
10
  readonly vector_keys?: string[];
@@ -4,6 +4,7 @@ export class ScoutDocument {
4
4
  document_id;
5
5
  type;
6
6
  s3_filename;
7
+ s3_text_filename;
7
8
  url;
8
9
  username;
9
10
  vector_keys;
@@ -17,6 +18,7 @@ export class ScoutDocument {
17
18
  this.document_id = scout_document.document_id;
18
19
  this.type = scout_document.type;
19
20
  this.s3_filename = scout_document.s3_filename;
21
+ this.s3_text_filename = scout_document.s3_text_filename;
20
22
  this.url = scout_document.url;
21
23
  this.username = scout_document.username;
22
24
  this.vector_keys = scout_document.vector_keys;
@@ -29,6 +31,7 @@ export class ScoutDocument {
29
31
  typeof scout_document.document_id === "string" &&
30
32
  typeof scout_document.type === "string" &&
31
33
  (scout_document.s3_filename === undefined || typeof scout_document.s3_filename === "string") &&
34
+ (scout_document.s3_text_filename === undefined || typeof scout_document.s3_text_filename === "string") &&
32
35
  (scout_document.url === undefined || typeof scout_document.url === "string") &&
33
36
  (scout_document.username === undefined || typeof scout_document.username === "string") &&
34
37
  (scout_document.vector_keys === undefined || Array.isArray(scout_document.vector_keys) && scout_document.vector_keys.every((vector_key) => typeof vector_key === "string")) &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scout-types",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -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")) &&