triangle-types 1.0.207 → 1.0.209
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.
- package/dist/src/types/fragments/Fragment.d.ts +8 -8
- package/dist/src/types/fragments/Fragment.js +16 -16
- package/package.json +1 -1
- package/src/types/fragments/Fragment.ts +19 -19
- package/dist/src/types/APIError.d.ts +0 -4
- package/dist/src/types/APIError.js +0 -19
- package/dist/src/types/County.d.ts +0 -8
- package/dist/src/types/County.js +0 -25
- package/dist/src/types/SchoolDistrict.d.ts +0 -10
- package/dist/src/types/SchoolDistrict.js +0 -26
- package/dist/src/types/State.d.ts +0 -8
- package/dist/src/types/State.js +0 -210
- package/dist/src/types/User.d.ts +0 -10
- package/dist/src/types/User.js +0 -29
- package/dist/src/types/federal_census/FederalCensusCity.d.ts +0 -11
- package/dist/src/types/federal_census/FederalCensusCity.js +0 -29
- package/dist/src/types/jurisdiction/Jurisdiction.d.ts +0 -1
- package/dist/src/types/jurisdiction/Jurisdiction.js +0 -21
- package/dist/src/types/prism/PrismMetric.d.ts +0 -9
- package/dist/src/types/prism/PrismMetric.js +0 -25
- package/dist/src/types/prism/PrismSubPrism.d.ts +0 -7
- package/dist/src/types/prism/PrismSubPrism.js +0 -16
- package/dist/src/types/prism/PrismVoter.d.ts +0 -9
- package/dist/src/types/prism/PrismVoter.js +0 -25
- package/dist/src/types/prism/TenantVoterTarget.d.ts +0 -10
- package/dist/src/types/prism/TenantVoterTarget.js +0 -47
- package/dist/src/types/prism/UserPrism.d.ts +0 -7
- package/dist/src/types/prism/UserPrism.js +0 -19
- package/dist/src/types/prism/VoterTurnout.d.ts +0 -1
- package/dist/src/types/prism/VoterTurnout.js +0 -45
- package/dist/src/types/vectors/S3Vector.d.ts +0 -1
- package/dist/src/types/vectors/S3Vector.js +0 -11
- package/dist/src/types/voters/UserStateScore.d.ts +0 -9
- package/dist/src/types/voters/UserStateScore.js +0 -22
- package/dist/src/types/voters/Voter.d.ts +0 -47
- package/dist/src/types/voters/Voter.js +0 -131
- package/dist/src/types/voters/VoterScore.d.ts +0 -9
- package/dist/src/types/voters/VoterScore.js +0 -25
- package/dist/src/types/voters/VoterTurnout.d.ts +0 -11
- package/dist/src/types/voters/VoterTurnout.js +0 -31
- package/dist/src/types/www/WWWArticle.d.ts +0 -11
- package/dist/src/types/www/WWWArticle.js +0 -31
- package/dist/src/types/www/WWWArticleTag.d.ts +0 -17
- package/dist/src/types/www/WWWArticleTag.js +0 -43
- package/src/types/press/PressArticle.ts +0 -38
- package/src/types/press/PressArticleTag.ts +0 -54
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { WWWArticle } from "./WWWArticle.js";
|
|
2
|
-
export class WWWArticleTag {
|
|
3
|
-
www_article_id;
|
|
4
|
-
tag_id;
|
|
5
|
-
url;
|
|
6
|
-
date;
|
|
7
|
-
relevance;
|
|
8
|
-
sentiment;
|
|
9
|
-
constructor(www_article_tag) {
|
|
10
|
-
if (!WWWArticleTag.is(www_article_tag)) {
|
|
11
|
-
throw Error("Invalid input.");
|
|
12
|
-
}
|
|
13
|
-
this.www_article_id = www_article_tag.www_article_id;
|
|
14
|
-
this.tag_id = www_article_tag.tag_id;
|
|
15
|
-
this.url = www_article_tag.url;
|
|
16
|
-
this.date = www_article_tag.date;
|
|
17
|
-
this.relevance = www_article_tag.relevance;
|
|
18
|
-
this.sentiment = www_article_tag.sentiment;
|
|
19
|
-
}
|
|
20
|
-
static is(www_article_tag) {
|
|
21
|
-
return (www_article_tag !== undefined &&
|
|
22
|
-
typeof www_article_tag.www_article_id === "string" &&
|
|
23
|
-
typeof www_article_tag.tag_id === "string" &&
|
|
24
|
-
typeof www_article_tag.url === "string" &&
|
|
25
|
-
(www_article_tag.date === undefined || typeof www_article_tag.date === "string") &&
|
|
26
|
-
(www_article_tag.relevance === undefined || typeof www_article_tag.relevance === "string") &&
|
|
27
|
-
(www_article_tag.sentiment === undefined || typeof www_article_tag.sentiment === "string"));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export class WWWArticleTagAux extends WWWArticleTag {
|
|
31
|
-
www_article;
|
|
32
|
-
constructor(www_article_tag) {
|
|
33
|
-
if (!WWWArticleTagAux.is(www_article_tag)) {
|
|
34
|
-
throw Error("Invalid input.");
|
|
35
|
-
}
|
|
36
|
-
super(www_article_tag);
|
|
37
|
-
this.www_article = www_article_tag.www_article;
|
|
38
|
-
}
|
|
39
|
-
static is(www_article_tag) {
|
|
40
|
-
return (WWWArticleTag.is(www_article_tag) &&
|
|
41
|
-
WWWArticle.is(www_article_tag.www_article));
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export class PressArticle {
|
|
2
|
-
readonly press_article_id : string
|
|
3
|
-
readonly publish_date : string
|
|
4
|
-
readonly title : string
|
|
5
|
-
readonly publisher? : string
|
|
6
|
-
readonly domain : string
|
|
7
|
-
readonly url : string
|
|
8
|
-
readonly relevance? : string
|
|
9
|
-
readonly s3_id? : string
|
|
10
|
-
|
|
11
|
-
constructor(press_article : PressArticle) {
|
|
12
|
-
if (!PressArticle.is(press_article)) {
|
|
13
|
-
throw Error("Invalid input.")
|
|
14
|
-
}
|
|
15
|
-
this.press_article_id = press_article.press_article_id
|
|
16
|
-
this.publish_date = press_article.publish_date
|
|
17
|
-
this.title = press_article.title
|
|
18
|
-
this.publisher = press_article.publisher
|
|
19
|
-
this.domain = press_article.domain
|
|
20
|
-
this.url = press_article.url
|
|
21
|
-
this.relevance = press_article.relevance
|
|
22
|
-
this.s3_id = press_article.s3_id
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
static is(press_article : any) : press_article is PressArticle {
|
|
26
|
-
return (
|
|
27
|
-
press_article !== undefined &&
|
|
28
|
-
typeof press_article.press_article_id === "string" &&
|
|
29
|
-
typeof press_article.publish_date === "string" &&
|
|
30
|
-
typeof press_article.title === "string" &&
|
|
31
|
-
(press_article.publisher === undefined || typeof press_article.publisher === "string") &&
|
|
32
|
-
typeof press_article.domain === "string" &&
|
|
33
|
-
typeof press_article.url === "string" &&
|
|
34
|
-
(press_article.relevance === undefined || typeof press_article.relevance === "string") &&
|
|
35
|
-
(press_article.s3_id === undefined || typeof press_article.s3_id === "string")
|
|
36
|
-
)
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { PressArticle } from "./PressArticle"
|
|
2
|
-
|
|
3
|
-
export class PressArticleTag {
|
|
4
|
-
readonly press_article_id : string
|
|
5
|
-
readonly tag_id : string
|
|
6
|
-
readonly publish_date : string
|
|
7
|
-
readonly url : string
|
|
8
|
-
readonly relevance? : string
|
|
9
|
-
readonly sentiment? : string
|
|
10
|
-
readonly [x : string] : any
|
|
11
|
-
|
|
12
|
-
constructor(press_article_tag : PressArticleTag) {
|
|
13
|
-
if (!PressArticleTag.is(press_article_tag)) {
|
|
14
|
-
throw Error("Invalid input.")
|
|
15
|
-
}
|
|
16
|
-
this.press_article_id = press_article_tag.press_article_id
|
|
17
|
-
this.tag_id = press_article_tag.tag_id
|
|
18
|
-
this.publish_date = press_article_tag.publish_date
|
|
19
|
-
this.url = press_article_tag.url
|
|
20
|
-
this.relevance = press_article_tag.relevance
|
|
21
|
-
this.sentiment = press_article_tag.sentiment
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
static is(press_article_tag : any) : press_article_tag is PressArticleTag {
|
|
25
|
-
return (
|
|
26
|
-
press_article_tag !== undefined &&
|
|
27
|
-
typeof press_article_tag.press_article_id === "string" &&
|
|
28
|
-
typeof press_article_tag.tag_id === "string" &&
|
|
29
|
-
typeof press_article_tag.publish_date === "string" &&
|
|
30
|
-
typeof press_article_tag.url === "string" &&
|
|
31
|
-
(press_article_tag.relevance === undefined || typeof press_article_tag.relevance === "string") &&
|
|
32
|
-
(press_article_tag.sentiment === undefined || typeof press_article_tag.sentiment === "string")
|
|
33
|
-
)
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export class PressArticleTagAux extends PressArticleTag {
|
|
38
|
-
readonly press_article : PressArticle
|
|
39
|
-
|
|
40
|
-
constructor(press_article_tag : any) {
|
|
41
|
-
if (!PressArticleTagAux.is(press_article_tag)) {
|
|
42
|
-
throw Error("Invalid input.")
|
|
43
|
-
}
|
|
44
|
-
super(press_article_tag)
|
|
45
|
-
this.press_article = press_article_tag.press_article
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
static is(press_article_tag : any) : press_article_tag is PressArticleTagAux {
|
|
49
|
-
return (
|
|
50
|
-
PressArticleTag.is(press_article_tag) &&
|
|
51
|
-
PressArticle.is(press_article_tag.press_article)
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
}
|