triangle-types 1.0.201 → 1.0.202

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.
@@ -1,6 +1,7 @@
1
1
  export declare class WebArticle {
2
2
  readonly web_article_id: string;
3
3
  readonly url: string;
4
+ readonly domain: string;
4
5
  readonly title?: string;
5
6
  readonly date?: string;
6
7
  readonly relevance?: string;
@@ -1,6 +1,7 @@
1
1
  export class WebArticle {
2
2
  web_article_id;
3
3
  url;
4
+ domain;
4
5
  title;
5
6
  date;
6
7
  relevance;
@@ -12,6 +13,7 @@ export class WebArticle {
12
13
  }
13
14
  this.web_article_id = web_article.web_article_id;
14
15
  this.url = web_article.url;
16
+ this.domain = web_article.domain;
15
17
  this.title = web_article.title;
16
18
  this.date = web_article.date;
17
19
  this.relevance = web_article.relevance;
@@ -22,6 +24,7 @@ export class WebArticle {
22
24
  return (web_article !== undefined &&
23
25
  typeof web_article.web_article_id === "string" &&
24
26
  typeof web_article.url === "string" &&
27
+ typeof web_article.domain === "string" &&
25
28
  (web_article.title === undefined || typeof web_article.title === "string") &&
26
29
  (web_article.date === undefined || typeof web_article.date === "string") &&
27
30
  (web_article.relevance === undefined || typeof web_article.relevance === "string") &&
@@ -3,6 +3,7 @@ export declare class WebArticleTag {
3
3
  readonly web_article_id: string;
4
4
  readonly tag_id: string;
5
5
  readonly url: string;
6
+ readonly domain: string;
6
7
  readonly date?: string;
7
8
  readonly relevance?: string;
8
9
  readonly sentiment?: string;
@@ -3,6 +3,7 @@ export class WebArticleTag {
3
3
  web_article_id;
4
4
  tag_id;
5
5
  url;
6
+ domain;
6
7
  date;
7
8
  relevance;
8
9
  sentiment;
@@ -13,6 +14,7 @@ export class WebArticleTag {
13
14
  this.web_article_id = web_article_tag.web_article_id;
14
15
  this.tag_id = web_article_tag.tag_id;
15
16
  this.url = web_article_tag.url;
17
+ this.domain = web_article_tag.domain;
16
18
  this.date = web_article_tag.date;
17
19
  this.relevance = web_article_tag.relevance;
18
20
  this.sentiment = web_article_tag.sentiment;
@@ -22,6 +24,7 @@ export class WebArticleTag {
22
24
  typeof web_article_tag.web_article_id === "string" &&
23
25
  typeof web_article_tag.tag_id === "string" &&
24
26
  typeof web_article_tag.url === "string" &&
27
+ typeof web_article_tag.domain === "string" &&
25
28
  (web_article_tag.date === undefined || typeof web_article_tag.date === "string") &&
26
29
  (web_article_tag.relevance === undefined || typeof web_article_tag.relevance === "string") &&
27
30
  (web_article_tag.sentiment === undefined || typeof web_article_tag.sentiment === "string"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.201",
3
+ "version": "1.0.202",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -1,6 +1,7 @@
1
1
  export class WebArticle {
2
2
  readonly web_article_id : string
3
3
  readonly url : string
4
+ readonly domain : string
4
5
  readonly title? : string
5
6
  readonly date? : string
6
7
  readonly relevance? : string
@@ -13,6 +14,7 @@ export class WebArticle {
13
14
  }
14
15
  this.web_article_id = web_article.web_article_id
15
16
  this.url = web_article.url
17
+ this.domain = web_article.domain
16
18
  this.title = web_article.title
17
19
  this.date = web_article.date
18
20
  this.relevance = web_article.relevance
@@ -25,6 +27,7 @@ export class WebArticle {
25
27
  web_article !== undefined &&
26
28
  typeof web_article.web_article_id === "string" &&
27
29
  typeof web_article.url === "string" &&
30
+ typeof web_article.domain === "string" &&
28
31
  (web_article.title === undefined || typeof web_article.title === "string") &&
29
32
  (web_article.date === undefined || typeof web_article.date === "string") &&
30
33
  (web_article.relevance === undefined || typeof web_article.relevance === "string") &&
@@ -4,6 +4,7 @@ export class WebArticleTag {
4
4
  readonly web_article_id : string
5
5
  readonly tag_id : string
6
6
  readonly url : string
7
+ readonly domain : string
7
8
  readonly date? : string
8
9
  readonly relevance? : string
9
10
  readonly sentiment? : string
@@ -16,6 +17,7 @@ export class WebArticleTag {
16
17
  this.web_article_id = web_article_tag.web_article_id
17
18
  this.tag_id = web_article_tag.tag_id
18
19
  this.url = web_article_tag.url
20
+ this.domain = web_article_tag.domain
19
21
  this.date = web_article_tag.date
20
22
  this.relevance = web_article_tag.relevance
21
23
  this.sentiment = web_article_tag.sentiment
@@ -27,6 +29,7 @@ export class WebArticleTag {
27
29
  typeof web_article_tag.web_article_id === "string" &&
28
30
  typeof web_article_tag.tag_id === "string" &&
29
31
  typeof web_article_tag.url === "string" &&
32
+ typeof web_article_tag.domain === "string" &&
30
33
  (web_article_tag.date === undefined || typeof web_article_tag.date === "string") &&
31
34
  (web_article_tag.relevance === undefined || typeof web_article_tag.relevance === "string") &&
32
35
  (web_article_tag.sentiment === undefined || typeof web_article_tag.sentiment === "string")