triangle-types 1.0.112 → 1.0.114

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.
@@ -11,7 +11,7 @@ export declare class Prism {
11
11
  readonly state_legislature_senate_district_id?: string;
12
12
  readonly county_id?: string;
13
13
  readonly school_district_id?: string;
14
- readonly party_type_id: VoterPartyTypeID;
14
+ readonly party_type_id?: VoterPartyTypeID;
15
15
  readonly [x: string]: any;
16
16
  constructor(prism: any);
17
17
  static is(prism: any): prism is Prism;
@@ -36,7 +36,7 @@ export class Prism {
36
36
  (prism.state_legislature_senate_district_id === undefined || typeof prism.state_legislature_senate_district_id === "string") &&
37
37
  (prism.county_id === undefined || typeof prism.county_id === "string") &&
38
38
  (prism.school_district_id === undefined || typeof prism.school_district_id === "string") &&
39
- is_voter_party_type_id(prism.party_type_id));
39
+ (prism.party_type_id === undefined || is_voter_party_type_id(prism.party_type_id)));
40
40
  }
41
41
  }
42
42
  export class PrismAux extends Prism {
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.112",
3
+ "version": "1.0.114",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -12,7 +12,7 @@ export class Prism {
12
12
  readonly state_legislature_senate_district_id? : string
13
13
  readonly county_id? : string
14
14
  readonly school_district_id? : string
15
- readonly party_type_id : VoterPartyTypeID
15
+ readonly party_type_id? : VoterPartyTypeID
16
16
  readonly [x : string] : any
17
17
 
18
18
  constructor(prism : any) {
@@ -41,7 +41,7 @@ export class Prism {
41
41
  (prism.state_legislature_senate_district_id === undefined || typeof prism.state_legislature_senate_district_id === "string") &&
42
42
  (prism.county_id === undefined || typeof prism.county_id === "string") &&
43
43
  (prism.school_district_id === undefined || typeof prism.school_district_id === "string") &&
44
- is_voter_party_type_id(prism.party_type_id)
44
+ (prism.party_type_id === undefined || is_voter_party_type_id(prism.party_type_id))
45
45
  )
46
46
  }
47
47
  }
@@ -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
  }