triangle-types 1.0.153 → 1.0.154
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.
|
@@ -10,6 +10,7 @@ export declare class FederalElectionF2File extends FederalElectionFile {
|
|
|
10
10
|
readonly federal_election_id: string;
|
|
11
11
|
readonly party_id?: string;
|
|
12
12
|
readonly report_date: string;
|
|
13
|
+
readonly federal_election_committee_id?: string;
|
|
13
14
|
constructor(federal_election_file: any);
|
|
14
15
|
static is(federal_election_file: any): federal_election_file is FederalElectionF2File;
|
|
15
16
|
}
|
|
@@ -10,6 +10,7 @@ export class FederalElectionF2File extends FederalElectionFile {
|
|
|
10
10
|
federal_election_id;
|
|
11
11
|
party_id;
|
|
12
12
|
report_date;
|
|
13
|
+
federal_election_committee_id;
|
|
13
14
|
constructor(federal_election_file) {
|
|
14
15
|
if (!FederalElectionF2File.is(federal_election_file)) {
|
|
15
16
|
throw Error("Invalid input.");
|
|
@@ -23,6 +24,7 @@ export class FederalElectionF2File extends FederalElectionFile {
|
|
|
23
24
|
this.federal_election_id = federal_election_file.federal_election_id;
|
|
24
25
|
this.party_id = federal_election_file.party_id;
|
|
25
26
|
this.report_date = federal_election_file.report_date;
|
|
27
|
+
this.federal_election_committee_id = federal_election_file.federal_election_committee_id;
|
|
26
28
|
}
|
|
27
29
|
static is(federal_election_file) {
|
|
28
30
|
return (FederalElectionFile.is(federal_election_file) &&
|
|
@@ -34,6 +36,7 @@ export class FederalElectionF2File extends FederalElectionFile {
|
|
|
34
36
|
(federal_election_file.district_id === undefined || typeof federal_election_file.district_id === "number") &&
|
|
35
37
|
typeof federal_election_file.federal_election_id === "string" &&
|
|
36
38
|
(federal_election_file.party_id === undefined || typeof federal_election_file.party_id === "string") &&
|
|
37
|
-
typeof federal_election_file.report_date === "string"
|
|
39
|
+
typeof federal_election_file.report_date === "string" &&
|
|
40
|
+
(federal_election_file.federal_election_committee_id === undefined || typeof federal_election_file.federal_election_committee_id === "string"));
|
|
38
41
|
}
|
|
39
42
|
}
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ export class FederalElectionF2File extends FederalElectionFile {
|
|
|
11
11
|
readonly federal_election_id : string
|
|
12
12
|
readonly party_id? : string
|
|
13
13
|
readonly report_date : string
|
|
14
|
+
readonly federal_election_committee_id? : string
|
|
14
15
|
|
|
15
16
|
constructor(federal_election_file : any) {
|
|
16
17
|
if (!FederalElectionF2File.is(federal_election_file)) {
|
|
@@ -25,6 +26,7 @@ export class FederalElectionF2File extends FederalElectionFile {
|
|
|
25
26
|
this.federal_election_id = federal_election_file.federal_election_id
|
|
26
27
|
this.party_id = federal_election_file.party_id
|
|
27
28
|
this.report_date = federal_election_file.report_date
|
|
29
|
+
this.federal_election_committee_id = federal_election_file.federal_election_committee_id
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
static is(federal_election_file : any) : federal_election_file is FederalElectionF2File {
|
|
@@ -38,7 +40,8 @@ export class FederalElectionF2File extends FederalElectionFile {
|
|
|
38
40
|
(federal_election_file.district_id === undefined || typeof federal_election_file.district_id === "number") &&
|
|
39
41
|
typeof federal_election_file.federal_election_id === "string" &&
|
|
40
42
|
(federal_election_file.party_id === undefined || typeof federal_election_file.party_id === "string") &&
|
|
41
|
-
typeof federal_election_file.report_date === "string"
|
|
43
|
+
typeof federal_election_file.report_date === "string" &&
|
|
44
|
+
(federal_election_file.federal_election_committee_id === undefined || typeof federal_election_file.federal_election_committee_id === "string")
|
|
42
45
|
)
|
|
43
46
|
}
|
|
44
47
|
}
|