triangle-types 1.0.280 → 1.0.281

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.
@@ -4,7 +4,7 @@ export declare class WebDocument {
4
4
  readonly url: string;
5
5
  readonly title: string;
6
6
  readonly description: string;
7
- readonly time: string;
7
+ readonly time?: string;
8
8
  readonly snippets?: string[];
9
9
  readonly s3_id_html?: string;
10
10
  readonly s3_id_txt?: string;
@@ -29,7 +29,7 @@ export class WebDocument {
29
29
  typeof web_document.url === "string" &&
30
30
  typeof web_document.title === "string" &&
31
31
  typeof web_document.description === "string" &&
32
- typeof web_document.time === "string" &&
32
+ (web_document.time === undefined || typeof web_document.time === "string") &&
33
33
  (web_document.snippets === undefined || Array.isArray(web_document.snippets) && web_document.snippets.every((snippet) => typeof snippet === "string")) &&
34
34
  (web_document.s3_id_html === undefined || typeof web_document.s3_id_html === "string") &&
35
35
  (web_document.s3_id_txt === undefined || typeof web_document.s3_id_txt === "string"));
@@ -3,7 +3,7 @@ export declare class WebDocumentTag {
3
3
  readonly web_document_id: string;
4
4
  readonly tag_type_id: string;
5
5
  readonly tag_id: string;
6
- readonly time: string;
6
+ readonly time?: string;
7
7
  readonly is_relevant?: boolean;
8
8
  readonly sentiment_id?: string;
9
9
  readonly [x: string]: any;
@@ -22,7 +22,7 @@ export class WebDocumentTag {
22
22
  typeof web_document_tag.web_document_id === "string" &&
23
23
  typeof web_document_tag.tag_type_id === "string" &&
24
24
  typeof web_document_tag.tag_id === "string" &&
25
- typeof web_document_tag.time === "string" &&
25
+ (web_document_tag.time === undefined || typeof web_document_tag.time === "string") &&
26
26
  (web_document_tag.is_relevant === undefined || typeof web_document_tag.is_relevant === "boolean") &&
27
27
  (web_document_tag.sentiment_id === undefined || typeof web_document_tag.sentiment_id === "string"));
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.280",
3
+ "version": "1.0.281",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -4,7 +4,7 @@ export class WebDocument {
4
4
  readonly url : string
5
5
  readonly title : string
6
6
  readonly description : string
7
- readonly time : string
7
+ readonly time? : string
8
8
  readonly snippets? : string[]
9
9
  readonly s3_id_html? : string
10
10
  readonly s3_id_txt? : string
@@ -32,7 +32,7 @@ export class WebDocument {
32
32
  typeof web_document.url === "string" &&
33
33
  typeof web_document.title === "string" &&
34
34
  typeof web_document.description === "string" &&
35
- typeof web_document.time === "string" &&
35
+ (web_document.time === undefined || typeof web_document.time === "string") &&
36
36
  (web_document.snippets === undefined || Array.isArray(web_document.snippets) && web_document.snippets.every((snippet : any) => typeof snippet === "string")) &&
37
37
  (web_document.s3_id_html === undefined || typeof web_document.s3_id_html === "string") &&
38
38
  (web_document.s3_id_txt === undefined || typeof web_document.s3_id_txt === "string")
@@ -4,7 +4,7 @@ export class WebDocumentTag {
4
4
  readonly web_document_id : string
5
5
  readonly tag_type_id : string
6
6
  readonly tag_id : string
7
- readonly time : string
7
+ readonly time? : string
8
8
  readonly is_relevant? : boolean
9
9
  readonly sentiment_id? : string
10
10
  readonly [x : string] : any
@@ -27,7 +27,7 @@ export class WebDocumentTag {
27
27
  typeof web_document_tag.web_document_id === "string" &&
28
28
  typeof web_document_tag.tag_type_id === "string" &&
29
29
  typeof web_document_tag.tag_id === "string" &&
30
- typeof web_document_tag.time === "string" &&
30
+ (web_document_tag.time === undefined || typeof web_document_tag.time === "string") &&
31
31
  (web_document_tag.is_relevant === undefined || typeof web_document_tag.is_relevant === "boolean") &&
32
32
  (web_document_tag.sentiment_id === undefined || typeof web_document_tag.sentiment_id === "string")
33
33
  )