elections-types 1.1.22 → 1.1.23
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.
|
@@ -5,7 +5,6 @@ export class PressArticle {
|
|
|
5
5
|
publisher;
|
|
6
6
|
domain;
|
|
7
7
|
url;
|
|
8
|
-
fetch_time;
|
|
9
8
|
relevance;
|
|
10
9
|
s3_id;
|
|
11
10
|
constructor(press_article) {
|
|
@@ -18,7 +17,6 @@ export class PressArticle {
|
|
|
18
17
|
this.publisher = press_article.publisher;
|
|
19
18
|
this.domain = press_article.domain;
|
|
20
19
|
this.url = press_article.url;
|
|
21
|
-
this.fetch_time = press_article.fetch_time;
|
|
22
20
|
this.relevance = press_article.relevance;
|
|
23
21
|
this.s3_id = press_article.s3_id;
|
|
24
22
|
}
|
|
@@ -30,7 +28,6 @@ export class PressArticle {
|
|
|
30
28
|
(press_article.publisher === undefined || typeof press_article.publisher === "string") &&
|
|
31
29
|
typeof press_article.domain === "string" &&
|
|
32
30
|
typeof press_article.url === "string" &&
|
|
33
|
-
typeof press_article.fetch_time === "string" &&
|
|
34
31
|
(press_article.relevance === undefined || typeof press_article.relevance === "string") &&
|
|
35
32
|
(press_article.s3_id === undefined || typeof press_article.s3_id === "string"));
|
|
36
33
|
}
|
package/package.json
CHANGED
|
@@ -5,7 +5,6 @@ export class PressArticle {
|
|
|
5
5
|
readonly publisher? : string
|
|
6
6
|
readonly domain : string
|
|
7
7
|
readonly url : string
|
|
8
|
-
readonly fetch_time : string
|
|
9
8
|
readonly relevance? : string
|
|
10
9
|
readonly s3_id? : string
|
|
11
10
|
|
|
@@ -19,7 +18,6 @@ export class PressArticle {
|
|
|
19
18
|
this.publisher = press_article.publisher
|
|
20
19
|
this.domain = press_article.domain
|
|
21
20
|
this.url = press_article.url
|
|
22
|
-
this.fetch_time = press_article.fetch_time
|
|
23
21
|
this.relevance = press_article.relevance
|
|
24
22
|
this.s3_id = press_article.s3_id
|
|
25
23
|
}
|
|
@@ -33,7 +31,6 @@ export class PressArticle {
|
|
|
33
31
|
(press_article.publisher === undefined || typeof press_article.publisher === "string") &&
|
|
34
32
|
typeof press_article.domain === "string" &&
|
|
35
33
|
typeof press_article.url === "string" &&
|
|
36
|
-
typeof press_article.fetch_time === "string" &&
|
|
37
34
|
(press_article.relevance === undefined || typeof press_article.relevance === "string") &&
|
|
38
35
|
(press_article.s3_id === undefined || typeof press_article.s3_id === "string")
|
|
39
36
|
)
|