triangle-types 1.0.204 → 1.0.206

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,6 @@ export declare class WebArticle {
4
4
  readonly domain: string;
5
5
  readonly title: string;
6
6
  readonly date: string;
7
- readonly relevance?: string;
8
7
  readonly s3_id_html?: string;
9
8
  readonly s3_id_txt?: string;
10
9
  constructor(web_article: WebArticle);
@@ -4,7 +4,6 @@ export class WebArticle {
4
4
  domain;
5
5
  title;
6
6
  date;
7
- relevance;
8
7
  s3_id_html;
9
8
  s3_id_txt;
10
9
  constructor(web_article) {
@@ -16,7 +15,6 @@ export class WebArticle {
16
15
  this.domain = web_article.domain;
17
16
  this.title = web_article.title;
18
17
  this.date = web_article.date;
19
- this.relevance = web_article.relevance;
20
18
  this.s3_id_html = web_article.s3_id_html;
21
19
  this.s3_id_txt = web_article.s3_id_txt;
22
20
  }
@@ -27,7 +25,6 @@ export class WebArticle {
27
25
  typeof web_article.domain === "string" &&
28
26
  typeof web_article.title === "string" &&
29
27
  typeof web_article.date === "string" &&
30
- (web_article.relevance === undefined || typeof web_article.relevance === "string") &&
31
28
  (web_article.s3_id_html === undefined || typeof web_article.s3_id_html === "string") &&
32
29
  (web_article.s3_id_txt === undefined || typeof web_article.s3_id_txt === "string"));
33
30
  }
@@ -5,8 +5,8 @@ export declare class WebArticleTag {
5
5
  readonly url: string;
6
6
  readonly domain: string;
7
7
  readonly date: string;
8
- readonly relevance?: string;
9
- readonly sentiment?: string;
8
+ readonly is_relevant?: boolean;
9
+ readonly sentiment_id?: string;
10
10
  readonly [x: string]: any;
11
11
  constructor(web_article_tag: WebArticleTag);
12
12
  static is(web_article_tag: any): web_article_tag is WebArticleTag;
@@ -5,8 +5,8 @@ export class WebArticleTag {
5
5
  url;
6
6
  domain;
7
7
  date;
8
- relevance;
9
- sentiment;
8
+ is_relevant;
9
+ sentiment_id;
10
10
  constructor(web_article_tag) {
11
11
  if (!WebArticleTag.is(web_article_tag)) {
12
12
  throw Error("Invalid input.");
@@ -16,8 +16,8 @@ export class WebArticleTag {
16
16
  this.url = web_article_tag.url;
17
17
  this.domain = web_article_tag.domain;
18
18
  this.date = web_article_tag.date;
19
- this.relevance = web_article_tag.relevance;
20
- this.sentiment = web_article_tag.sentiment;
19
+ this.is_relevant = web_article_tag.is_relevant;
20
+ this.sentiment_id = web_article_tag.sentiment_id;
21
21
  }
22
22
  static is(web_article_tag) {
23
23
  return (web_article_tag !== undefined &&
@@ -26,8 +26,8 @@ export class WebArticleTag {
26
26
  typeof web_article_tag.url === "string" &&
27
27
  typeof web_article_tag.domain === "string" &&
28
28
  web_article_tag.date === "string" &&
29
- (web_article_tag.relevance === undefined || typeof web_article_tag.relevance === "string") &&
30
- (web_article_tag.sentiment === undefined || typeof web_article_tag.sentiment === "string"));
29
+ (web_article_tag.is_relevant === undefined || typeof web_article_tag.is_relevant === "boolean") &&
30
+ (web_article_tag.sentiment_id === undefined || typeof web_article_tag.sentiment_id === "string"));
31
31
  }
32
32
  }
33
33
  export class WebArticleTagAux extends WebArticleTag {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.204",
3
+ "version": "1.0.206",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -4,7 +4,6 @@ export class WebArticle {
4
4
  readonly domain : string
5
5
  readonly title : string
6
6
  readonly date : string
7
- readonly relevance? : string
8
7
  readonly s3_id_html? : string
9
8
  readonly s3_id_txt? : string
10
9
 
@@ -17,7 +16,6 @@ export class WebArticle {
17
16
  this.domain = web_article.domain
18
17
  this.title = web_article.title
19
18
  this.date = web_article.date
20
- this.relevance = web_article.relevance
21
19
  this.s3_id_html = web_article.s3_id_html
22
20
  this.s3_id_txt = web_article.s3_id_txt
23
21
  }
@@ -30,7 +28,6 @@ export class WebArticle {
30
28
  typeof web_article.domain === "string" &&
31
29
  typeof web_article.title === "string" &&
32
30
  typeof web_article.date === "string" &&
33
- (web_article.relevance === undefined || typeof web_article.relevance === "string") &&
34
31
  (web_article.s3_id_html === undefined || typeof web_article.s3_id_html === "string") &&
35
32
  (web_article.s3_id_txt === undefined || typeof web_article.s3_id_txt === "string")
36
33
  )
@@ -6,8 +6,8 @@ export class WebArticleTag {
6
6
  readonly url : string
7
7
  readonly domain : string
8
8
  readonly date : string
9
- readonly relevance? : string
10
- readonly sentiment? : string
9
+ readonly is_relevant? : boolean
10
+ readonly sentiment_id? : string
11
11
  readonly [x : string] : any
12
12
 
13
13
  constructor(web_article_tag : WebArticleTag) {
@@ -19,8 +19,8 @@ export class WebArticleTag {
19
19
  this.url = web_article_tag.url
20
20
  this.domain = web_article_tag.domain
21
21
  this.date = web_article_tag.date
22
- this.relevance = web_article_tag.relevance
23
- this.sentiment = web_article_tag.sentiment
22
+ this.is_relevant = web_article_tag.is_relevant
23
+ this.sentiment_id = web_article_tag.sentiment_id
24
24
  }
25
25
 
26
26
  static is(web_article_tag : any) : web_article_tag is WebArticleTag {
@@ -31,8 +31,8 @@ export class WebArticleTag {
31
31
  typeof web_article_tag.url === "string" &&
32
32
  typeof web_article_tag.domain === "string" &&
33
33
  web_article_tag.date === "string" &&
34
- (web_article_tag.relevance === undefined || typeof web_article_tag.relevance === "string") &&
35
- (web_article_tag.sentiment === undefined || typeof web_article_tag.sentiment === "string")
34
+ (web_article_tag.is_relevant === undefined || typeof web_article_tag.is_relevant === "boolean") &&
35
+ (web_article_tag.sentiment_id === undefined || typeof web_article_tag.sentiment_id === "string")
36
36
  )
37
37
  }
38
38
  }