triangle-types 1.0.112 → 1.0.113
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.
|
@@ -9,6 +9,8 @@ export declare class VoterFeature {
|
|
|
9
9
|
readonly federal_congress_district_id?: string;
|
|
10
10
|
readonly state_legislature_house_district_id?: string;
|
|
11
11
|
readonly state_legislature_senate_district_id?: string;
|
|
12
|
+
readonly county_id?: string;
|
|
13
|
+
readonly school_district_id?: string;
|
|
12
14
|
readonly party_type_id: VoterPartyTypeID;
|
|
13
15
|
constructor(voter_feature: any);
|
|
14
16
|
static is(voter_feature: any): voter_feature is VoterFeature;
|
|
@@ -9,6 +9,8 @@ export class VoterFeature {
|
|
|
9
9
|
federal_congress_district_id;
|
|
10
10
|
state_legislature_house_district_id;
|
|
11
11
|
state_legislature_senate_district_id;
|
|
12
|
+
county_id;
|
|
13
|
+
school_district_id;
|
|
12
14
|
party_type_id;
|
|
13
15
|
constructor(voter_feature) {
|
|
14
16
|
if (!VoterFeature.is(voter_feature)) {
|
|
@@ -22,6 +24,8 @@ export class VoterFeature {
|
|
|
22
24
|
this.federal_congress_district_id = voter_feature.federal_congress_district_id;
|
|
23
25
|
this.state_legislature_house_district_id = voter_feature.state_legislature_house_district_id;
|
|
24
26
|
this.state_legislature_senate_district_id = voter_feature.state_legislature_senate_district_id;
|
|
27
|
+
this.county_id = voter_feature.county_id;
|
|
28
|
+
this.school_district_id = voter_feature.school_district_id;
|
|
25
29
|
this.party_type_id = voter_feature.party_type_id;
|
|
26
30
|
}
|
|
27
31
|
static is(voter_feature) {
|
|
@@ -34,6 +38,8 @@ export class VoterFeature {
|
|
|
34
38
|
(voter_feature.federal_congress_district_id === undefined || typeof voter_feature.federal_congress_district_id === "string") &&
|
|
35
39
|
(voter_feature.state_legislature_house_district_id === undefined || typeof voter_feature.state_legislature_house_district_id === "string") &&
|
|
36
40
|
(voter_feature.state_legislature_senate_district_id === undefined || typeof voter_feature.state_legislature_senate_district_id === "string") &&
|
|
41
|
+
(voter_feature.county_id === undefined || typeof voter_feature.county_id === "string") &&
|
|
42
|
+
(voter_feature.school_district_id === undefined || typeof voter_feature.school_district_id === "string") &&
|
|
37
43
|
is_voter_party_type_id(voter_feature.party_type_id));
|
|
38
44
|
}
|
|
39
45
|
}
|
package/package.json
CHANGED
|
@@ -10,6 +10,8 @@ export class VoterFeature {
|
|
|
10
10
|
readonly federal_congress_district_id? : string
|
|
11
11
|
readonly state_legislature_house_district_id? : string
|
|
12
12
|
readonly state_legislature_senate_district_id? : string
|
|
13
|
+
readonly county_id? : string
|
|
14
|
+
readonly school_district_id? : string
|
|
13
15
|
readonly party_type_id : VoterPartyTypeID
|
|
14
16
|
|
|
15
17
|
constructor(voter_feature : any) {
|
|
@@ -24,6 +26,8 @@ export class VoterFeature {
|
|
|
24
26
|
this.federal_congress_district_id = voter_feature.federal_congress_district_id
|
|
25
27
|
this.state_legislature_house_district_id = voter_feature.state_legislature_house_district_id
|
|
26
28
|
this.state_legislature_senate_district_id = voter_feature.state_legislature_senate_district_id
|
|
29
|
+
this.county_id = voter_feature.county_id
|
|
30
|
+
this.school_district_id = voter_feature.school_district_id
|
|
27
31
|
this.party_type_id = voter_feature.party_type_id
|
|
28
32
|
}
|
|
29
33
|
|
|
@@ -38,6 +42,8 @@ export class VoterFeature {
|
|
|
38
42
|
(voter_feature.federal_congress_district_id === undefined || typeof voter_feature.federal_congress_district_id === "string") &&
|
|
39
43
|
(voter_feature.state_legislature_house_district_id === undefined || typeof voter_feature.state_legislature_house_district_id === "string") &&
|
|
40
44
|
(voter_feature.state_legislature_senate_district_id === undefined || typeof voter_feature.state_legislature_senate_district_id === "string") &&
|
|
45
|
+
(voter_feature.county_id === undefined || typeof voter_feature.county_id === "string") &&
|
|
46
|
+
(voter_feature.school_district_id === undefined || typeof voter_feature.school_district_id === "string") &&
|
|
41
47
|
is_voter_party_type_id(voter_feature.party_type_id)
|
|
42
48
|
)
|
|
43
49
|
}
|