triangle-types 1.0.200 → 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.
@@ -3,6 +3,11 @@ import { FederalElectionFile } from "./FederalElectionFile.js";
3
3
  import { StateID } from "../regions/State.js";
4
4
  export declare class FederalElectionF2File extends FederalElectionFile {
5
5
  readonly federal_election_candidate_id: string;
6
+ readonly name_prefix?: string;
7
+ readonly name_first: string;
8
+ readonly name_middle?: string;
9
+ readonly name_last: string;
10
+ readonly name_suffix?: string;
6
11
  readonly name: string;
7
12
  readonly federal_election_office_id: FederalElectionOfficeID;
8
13
  readonly state_id?: StateID;
@@ -3,6 +3,11 @@ import { FederalElectionFile } from "./FederalElectionFile.js";
3
3
  import { is_state_id } from "../regions/State.js";
4
4
  export class FederalElectionF2File extends FederalElectionFile {
5
5
  federal_election_candidate_id;
6
+ name_prefix;
7
+ name_first;
8
+ name_middle;
9
+ name_last;
10
+ name_suffix;
6
11
  name;
7
12
  federal_election_office_id;
8
13
  state_id;
@@ -17,6 +22,11 @@ export class FederalElectionF2File extends FederalElectionFile {
17
22
  }
18
23
  super(federal_election_file);
19
24
  this.federal_election_candidate_id = federal_election_file.federal_election_candidate_id;
25
+ this.name_prefix = federal_election_file.name_prefix;
26
+ this.name_first = federal_election_file.name_first;
27
+ this.name_middle = federal_election_file.name_middle;
28
+ this.name_last = federal_election_file.name_last;
29
+ this.name_suffix = federal_election_file.name_suffix;
20
30
  this.name = federal_election_file.name;
21
31
  this.federal_election_office_id = federal_election_file.federal_election_office_id;
22
32
  this.state_id = federal_election_file.state_id;
@@ -30,6 +40,11 @@ export class FederalElectionF2File extends FederalElectionFile {
30
40
  return (FederalElectionFile.is(federal_election_file) &&
31
41
  federal_election_file.form_type_id === "F2" &&
32
42
  typeof federal_election_file.federal_election_candidate_id === "string" &&
43
+ (federal_election_file.name_prefix === undefined || typeof federal_election_file.name_prefix === "string") &&
44
+ typeof federal_election_file.name_first === "string" &&
45
+ (federal_election_file.name_middle === undefined || typeof federal_election_file.name_middle === "string") &&
46
+ typeof federal_election_file.name_last === "string" &&
47
+ (federal_election_file.name_suffix === undefined || typeof federal_election_file.name_suffix === "string") &&
33
48
  typeof federal_election_file.name === "string" &&
34
49
  is_federal_election_office_id(federal_election_file.federal_election_office_id) &&
35
50
  (federal_election_file.state_id === undefined || is_state_id(federal_election_file.state_id)) &&
@@ -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.200",
3
+ "version": "1.0.202",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -4,6 +4,11 @@ import { is_state_id, StateID } from "../regions/State"
4
4
 
5
5
  export class FederalElectionF2File extends FederalElectionFile {
6
6
  readonly federal_election_candidate_id : string
7
+ readonly name_prefix? : string
8
+ readonly name_first : string
9
+ readonly name_middle? : string
10
+ readonly name_last : string
11
+ readonly name_suffix? : string
7
12
  readonly name : string
8
13
  readonly federal_election_office_id : FederalElectionOfficeID
9
14
  readonly state_id? : StateID
@@ -19,6 +24,11 @@ export class FederalElectionF2File extends FederalElectionFile {
19
24
  }
20
25
  super(federal_election_file)
21
26
  this.federal_election_candidate_id = federal_election_file.federal_election_candidate_id
27
+ this.name_prefix = federal_election_file.name_prefix
28
+ this.name_first = federal_election_file.name_first
29
+ this.name_middle = federal_election_file.name_middle
30
+ this.name_last = federal_election_file.name_last
31
+ this.name_suffix = federal_election_file.name_suffix
22
32
  this.name = federal_election_file.name
23
33
  this.federal_election_office_id = federal_election_file.federal_election_office_id
24
34
  this.state_id = federal_election_file.state_id
@@ -34,6 +44,11 @@ export class FederalElectionF2File extends FederalElectionFile {
34
44
  FederalElectionFile.is(federal_election_file) &&
35
45
  federal_election_file.form_type_id === "F2" &&
36
46
  typeof federal_election_file.federal_election_candidate_id === "string" &&
47
+ (federal_election_file.name_prefix === undefined || typeof federal_election_file.name_prefix === "string") &&
48
+ typeof federal_election_file.name_first === "string" &&
49
+ (federal_election_file.name_middle === undefined || typeof federal_election_file.name_middle === "string") &&
50
+ typeof federal_election_file.name_last === "string" &&
51
+ (federal_election_file.name_suffix === undefined || typeof federal_election_file.name_suffix === "string") &&
37
52
  typeof federal_election_file.name === "string" &&
38
53
  is_federal_election_office_id(federal_election_file.federal_election_office_id) &&
39
54
  (federal_election_file.state_id === undefined || is_state_id(federal_election_file.state_id)) &&
@@ -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")