triangle-types 1.0.176 → 1.0.178

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.
@@ -1,15 +1 @@
1
- import { StateID } from "../regions/State.js";
2
- export declare class FederalCensusBlock {
3
- readonly federal_census_block_id: string;
4
- readonly federal_census_tract_id: string;
5
- readonly federal_census_county_id: string;
6
- readonly federal_census_id: number;
7
- readonly county_id: string;
8
- readonly tract_id: string;
9
- readonly block_id: string;
10
- readonly state_id: StateID;
11
- readonly name: string;
12
- readonly s3_id: string;
13
- constructor(federal_census_block: any);
14
- static is(federal_census_block: any): federal_census_block is FederalCensusBlock;
15
- }
1
+ export {};
@@ -1,41 +1,44 @@
1
- import { is_state_id } from "../regions/State.js";
2
- export class FederalCensusBlock {
3
- federal_census_block_id;
4
- federal_census_tract_id;
5
- federal_census_county_id;
6
- federal_census_id;
7
- county_id;
8
- tract_id;
9
- block_id;
10
- state_id;
11
- name;
12
- s3_id;
13
- constructor(federal_census_block) {
14
- if (!FederalCensusBlock.is(federal_census_block)) {
15
- throw Error("Invalid input.");
16
- }
17
- this.federal_census_block_id = federal_census_block.federal_census_block_id;
18
- this.federal_census_tract_id = federal_census_block.federal_census_tract_id;
19
- this.federal_census_county_id = federal_census_block.federal_census_county_id;
20
- this.federal_census_id = federal_census_block.federal_census_id;
21
- this.county_id = federal_census_block.county_id;
22
- this.tract_id = federal_census_block.tract_id;
23
- this.block_id = federal_census_block.block_id;
24
- this.state_id = federal_census_block.state_id;
25
- this.name = federal_census_block.name;
26
- this.s3_id = federal_census_block.s3_id;
27
- }
28
- static is(federal_census_block) {
29
- return (federal_census_block !== undefined &&
30
- typeof federal_census_block.federal_census_block_id === "string" &&
31
- typeof federal_census_block.federal_census_tract_id === "string" &&
32
- typeof federal_census_block.federal_census_county_id === "string" &&
33
- typeof federal_census_block.federal_census_id === "number" &&
34
- typeof federal_census_block.county_id === "string" &&
35
- typeof federal_census_block.tract_id === "string" &&
36
- typeof federal_census_block.block_id === "string" &&
37
- is_state_id(federal_census_block.state_id) &&
38
- typeof federal_census_block.name === "string" &&
39
- typeof federal_census_block.s3_id === "string");
40
- }
41
- }
1
+ // import { is_state_id, StateID } from "../regions/State.js"
2
+ export {};
3
+ // export class FederalCensusBlock {
4
+ // readonly federal_census_block_id : string
5
+ // readonly federal_census_tract_id : string
6
+ // readonly federal_census_county_id : string
7
+ // readonly federal_census_id : number
8
+ // readonly county_id : string
9
+ // readonly tract_id : string
10
+ // readonly block_id : string
11
+ // readonly state_id : StateID
12
+ // readonly name : string
13
+ // readonly s3_id : string
14
+ // constructor(federal_census_block : any) {
15
+ // if (!FederalCensusBlock.is(federal_census_block)) {
16
+ // throw Error("Invalid input.")
17
+ // }
18
+ // this.federal_census_block_id = federal_census_block.federal_census_block_id
19
+ // this.federal_census_tract_id = federal_census_block.federal_census_tract_id
20
+ // this.federal_census_county_id = federal_census_block.federal_census_county_id
21
+ // this.federal_census_id = federal_census_block.federal_census_id
22
+ // this.county_id = federal_census_block.county_id
23
+ // this.tract_id = federal_census_block.tract_id
24
+ // this.block_id = federal_census_block.block_id
25
+ // this.state_id = federal_census_block.state_id
26
+ // this.name = federal_census_block.name
27
+ // this.s3_id = federal_census_block.s3_id
28
+ // }
29
+ // static is(federal_census_block : any) : federal_census_block is FederalCensusBlock {
30
+ // return (
31
+ // federal_census_block !== undefined &&
32
+ // typeof federal_census_block.federal_census_block_id === "string" &&
33
+ // typeof federal_census_block.federal_census_tract_id === "string" &&
34
+ // typeof federal_census_block.federal_census_county_id === "string" &&
35
+ // typeof federal_census_block.federal_census_id === "number" &&
36
+ // typeof federal_census_block.county_id === "string" &&
37
+ // typeof federal_census_block.tract_id === "string" &&
38
+ // typeof federal_census_block.block_id === "string" &&
39
+ // is_state_id(federal_census_block.state_id) &&
40
+ // typeof federal_census_block.name === "string" &&
41
+ // typeof federal_census_block.s3_id === "string"
42
+ // )
43
+ // }
44
+ // }
@@ -7,7 +7,6 @@ export declare class FederalCensusCounty {
7
7
  readonly name: string;
8
8
  readonly county_type_id: string;
9
9
  readonly function_type_id: string;
10
- readonly s3_id: string;
11
10
  constructor(federal_census_county: any);
12
11
  static is(federal_census_county: any): federal_census_county is FederalCensusCounty;
13
12
  }
@@ -7,7 +7,6 @@ export class FederalCensusCounty {
7
7
  name;
8
8
  county_type_id;
9
9
  function_type_id;
10
- s3_id;
11
10
  constructor(federal_census_county) {
12
11
  if (!FederalCensusCounty.is(federal_census_county)) {
13
12
  throw Error("Invalid input.");
@@ -19,7 +18,6 @@ export class FederalCensusCounty {
19
18
  this.name = federal_census_county.name;
20
19
  this.county_type_id = federal_census_county.county_type_id;
21
20
  this.function_type_id = federal_census_county.function_type_id;
22
- this.s3_id = federal_census_county.s3_id;
23
21
  }
24
22
  static is(federal_census_county) {
25
23
  return (federal_census_county !== undefined &&
@@ -29,7 +27,6 @@ export class FederalCensusCounty {
29
27
  is_state_id(federal_census_county.state_id) &&
30
28
  typeof federal_census_county.name === "string" &&
31
29
  typeof federal_census_county.county_type_id === "string" &&
32
- typeof federal_census_county.function_type_id === "string" &&
33
- typeof federal_census_county.s3_id === "string");
30
+ typeof federal_census_county.function_type_id === "string");
34
31
  }
35
32
  }
@@ -6,7 +6,6 @@ export declare class FederalCensusMunicipality {
6
6
  readonly state_id: StateID;
7
7
  readonly municipality_type_id?: string;
8
8
  readonly name: string;
9
- readonly s3_id: string;
10
9
  constructor(federal_census_municipality: any);
11
10
  static is(federal_census_municipality: any): federal_census_municipality is FederalCensusMunicipality;
12
11
  }
@@ -6,7 +6,6 @@ export class FederalCensusMunicipality {
6
6
  state_id;
7
7
  municipality_type_id;
8
8
  name;
9
- s3_id;
10
9
  constructor(federal_census_municipality) {
11
10
  if (!FederalCensusMunicipality.is(federal_census_municipality)) {
12
11
  throw Error("Invalid input.");
@@ -17,7 +16,6 @@ export class FederalCensusMunicipality {
17
16
  this.state_id = federal_census_municipality.state_id;
18
17
  this.municipality_type_id = federal_census_municipality.municipality_type_id;
19
18
  this.name = federal_census_municipality.name;
20
- this.s3_id = federal_census_municipality.s3_id;
21
19
  }
22
20
  static is(federal_census_municipality) {
23
21
  return (federal_census_municipality !== undefined &&
@@ -26,7 +24,6 @@ export class FederalCensusMunicipality {
26
24
  typeof federal_census_municipality.municipality_id === "string" &&
27
25
  is_state_id(federal_census_municipality.state_id) &&
28
26
  (federal_census_municipality.municipality_type_id === undefined || typeof federal_census_municipality.municipality_type_id === "string") &&
29
- typeof federal_census_municipality.name === "string" &&
30
- typeof federal_census_municipality.s3_id === "string");
27
+ typeof federal_census_municipality.name === "string");
31
28
  }
32
29
  }
@@ -9,7 +9,6 @@ export declare class FederalCensusSchoolDistrict {
9
9
  readonly state_id: StateID;
10
10
  readonly school_district_type_id?: FederalCensusSchoolDistrictTypeID;
11
11
  readonly name: string;
12
- readonly s3_id: string;
13
12
  constructor(federal_census_school_district: any);
14
13
  static is(federal_census_school_district: any): federal_census_school_district is FederalCensusSchoolDistrict;
15
14
  }
@@ -10,7 +10,6 @@ export class FederalCensusSchoolDistrict {
10
10
  state_id;
11
11
  school_district_type_id;
12
12
  name;
13
- s3_id;
14
13
  constructor(federal_census_school_district) {
15
14
  if (!FederalCensusSchoolDistrict.is(federal_census_school_district)) {
16
15
  throw Error("Invalid input.");
@@ -21,7 +20,6 @@ export class FederalCensusSchoolDistrict {
21
20
  this.state_id = federal_census_school_district.state_id;
22
21
  this.school_district_type_id = federal_census_school_district.school_district_type_id;
23
22
  this.name = federal_census_school_district.name;
24
- this.s3_id = federal_census_school_district.s3_id;
25
23
  }
26
24
  static is(federal_census_school_district) {
27
25
  return (federal_census_school_district !== undefined &&
@@ -30,7 +28,6 @@ export class FederalCensusSchoolDistrict {
30
28
  typeof federal_census_school_district.school_district_id === "string" &&
31
29
  is_state_id(federal_census_school_district.state_id) &&
32
30
  (federal_census_school_district.school_district_type_id === undefined || typeof federal_census_school_district.school_district_type_id === "string") &&
33
- typeof federal_census_school_district.name === "string" &&
34
- typeof federal_census_school_district.s3_id === "string");
31
+ typeof federal_census_school_district.name === "string");
35
32
  }
36
33
  }
@@ -1,13 +1 @@
1
- import { StateID } from "../regions/State.js";
2
- export declare class FederalCensusTract {
3
- readonly federal_census_tract_id: string;
4
- readonly federal_census_county_id: string;
5
- readonly federal_census_id: number;
6
- readonly county_id: string;
7
- readonly tract_id: string;
8
- readonly state_id: StateID;
9
- readonly name: string;
10
- readonly s3_id: string;
11
- constructor(federal_census_tract: any);
12
- static is(federal_census_tract: any): federal_census_tract is FederalCensusTract;
13
- }
1
+ export {};
@@ -1,35 +1,38 @@
1
- import { is_state_id } from "../regions/State.js";
2
- export class FederalCensusTract {
3
- federal_census_tract_id;
4
- federal_census_county_id;
5
- federal_census_id;
6
- county_id;
7
- tract_id;
8
- state_id;
9
- name;
10
- s3_id;
11
- constructor(federal_census_tract) {
12
- if (!FederalCensusTract.is(federal_census_tract)) {
13
- throw Error("Invalid input.");
14
- }
15
- this.federal_census_tract_id = federal_census_tract.federal_census_tract_id;
16
- this.federal_census_county_id = federal_census_tract.federal_census_county_id;
17
- this.federal_census_id = federal_census_tract.federal_census_id;
18
- this.county_id = federal_census_tract.county_id;
19
- this.tract_id = federal_census_tract.tract_id;
20
- this.state_id = federal_census_tract.state_id;
21
- this.name = federal_census_tract.name;
22
- this.s3_id = federal_census_tract.s3_id;
23
- }
24
- static is(federal_census_tract) {
25
- return (federal_census_tract !== undefined &&
26
- typeof federal_census_tract.federal_census_tract_id === "string" &&
27
- typeof federal_census_tract.federal_census_county_id === "string" &&
28
- typeof federal_census_tract.federal_census_id === "number" &&
29
- typeof federal_census_tract.county_id === "string" &&
30
- typeof federal_census_tract.tract_id === "string" &&
31
- is_state_id(federal_census_tract.state_id) &&
32
- typeof federal_census_tract.name === "string" &&
33
- typeof federal_census_tract.s3_id === "string");
34
- }
35
- }
1
+ // import { is_state_id, StateID } from "../regions/State.js"
2
+ export {};
3
+ // export class FederalCensusTract {
4
+ // readonly federal_census_tract_id : string
5
+ // readonly federal_census_county_id : string
6
+ // readonly federal_census_id : number
7
+ // readonly county_id : string
8
+ // readonly tract_id : string
9
+ // readonly state_id : StateID
10
+ // readonly name : string
11
+ // readonly s3_id : string
12
+ // constructor(federal_census_tract : any) {
13
+ // if (!FederalCensusTract.is(federal_census_tract)) {
14
+ // throw Error("Invalid input.")
15
+ // }
16
+ // this.federal_census_tract_id = federal_census_tract.federal_census_tract_id
17
+ // this.federal_census_county_id = federal_census_tract.federal_census_county_id
18
+ // this.federal_census_id = federal_census_tract.federal_census_id
19
+ // this.county_id = federal_census_tract.county_id
20
+ // this.tract_id = federal_census_tract.tract_id
21
+ // this.state_id = federal_census_tract.state_id
22
+ // this.name = federal_census_tract.name
23
+ // this.s3_id = federal_census_tract.s3_id
24
+ // }
25
+ // static is(federal_census_tract : any) : federal_census_tract is FederalCensusTract {
26
+ // return (
27
+ // federal_census_tract !== undefined &&
28
+ // typeof federal_census_tract.federal_census_tract_id === "string" &&
29
+ // typeof federal_census_tract.federal_census_county_id === "string" &&
30
+ // typeof federal_census_tract.federal_census_id === "number" &&
31
+ // typeof federal_census_tract.county_id === "string" &&
32
+ // typeof federal_census_tract.tract_id === "string" &&
33
+ // is_state_id(federal_census_tract.state_id) &&
34
+ // typeof federal_census_tract.name === "string" &&
35
+ // typeof federal_census_tract.s3_id === "string"
36
+ // )
37
+ // }
38
+ // }
@@ -26,7 +26,7 @@ export declare class LALFileVoter {
26
26
  readonly address_mail_1: string;
27
27
  readonly address_mail_2?: string;
28
28
  readonly address_mail_city?: string;
29
- readonly address_mail_state_id: StateID;
29
+ readonly address_mail_state_id: string;
30
30
  readonly address_mail_zip_id?: string;
31
31
  readonly party_type_id: VoterPartyTypeID;
32
32
  readonly lal_occupation_group_id?: string;
@@ -113,7 +113,7 @@ export class LALFileVoter {
113
113
  typeof lal_file_voter.address_mail_1 === "string" &&
114
114
  (lal_file_voter.address_mail_2 === undefined || typeof lal_file_voter.address_mail_2 === "string") &&
115
115
  (lal_file_voter.address_mail_city === undefined || typeof lal_file_voter.address_mail_city === "string") &&
116
- is_state_id(lal_file_voter.address_mail_state_id) &&
116
+ typeof lal_file_voter.address_mail_state_id === "string" &&
117
117
  (lal_file_voter.address_mail_zip_id === undefined || typeof lal_file_voter.address_mail_zip_id === "string") &&
118
118
  is_voter_party_type_id(lal_file_voter.party_type_id) &&
119
119
  (lal_file_voter.lal_occupation_group_id === undefined || typeof lal_file_voter.lal_occupation_group_id === "string") &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.176",
3
+ "version": "1.0.178",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -1,47 +1,47 @@
1
- import { is_state_id, StateID } from "../regions/State"
1
+ // import { is_state_id, StateID } from "../regions/State"
2
2
 
3
- export class FederalCensusBlock {
4
- readonly federal_census_block_id : string
5
- readonly federal_census_tract_id : string
6
- readonly federal_census_county_id : string
7
- readonly federal_census_id : number
8
- readonly county_id : string
9
- readonly tract_id : string
10
- readonly block_id : string
11
- readonly state_id : StateID
12
- readonly name : string
13
- readonly s3_id : string
3
+ // export class FederalCensusBlock {
4
+ // readonly federal_census_block_id : string
5
+ // readonly federal_census_tract_id : string
6
+ // readonly federal_census_county_id : string
7
+ // readonly federal_census_id : number
8
+ // readonly county_id : string
9
+ // readonly tract_id : string
10
+ // readonly block_id : string
11
+ // readonly state_id : StateID
12
+ // readonly name : string
13
+ // readonly s3_id : string
14
14
 
15
- constructor(federal_census_block : any) {
16
- if (!FederalCensusBlock.is(federal_census_block)) {
17
- throw Error("Invalid input.")
18
- }
19
- this.federal_census_block_id = federal_census_block.federal_census_block_id
20
- this.federal_census_tract_id = federal_census_block.federal_census_tract_id
21
- this.federal_census_county_id = federal_census_block.federal_census_county_id
22
- this.federal_census_id = federal_census_block.federal_census_id
23
- this.county_id = federal_census_block.county_id
24
- this.tract_id = federal_census_block.tract_id
25
- this.block_id = federal_census_block.block_id
26
- this.state_id = federal_census_block.state_id
27
- this.name = federal_census_block.name
28
- this.s3_id = federal_census_block.s3_id
29
- }
15
+ // constructor(federal_census_block : any) {
16
+ // if (!FederalCensusBlock.is(federal_census_block)) {
17
+ // throw Error("Invalid input.")
18
+ // }
19
+ // this.federal_census_block_id = federal_census_block.federal_census_block_id
20
+ // this.federal_census_tract_id = federal_census_block.federal_census_tract_id
21
+ // this.federal_census_county_id = federal_census_block.federal_census_county_id
22
+ // this.federal_census_id = federal_census_block.federal_census_id
23
+ // this.county_id = federal_census_block.county_id
24
+ // this.tract_id = federal_census_block.tract_id
25
+ // this.block_id = federal_census_block.block_id
26
+ // this.state_id = federal_census_block.state_id
27
+ // this.name = federal_census_block.name
28
+ // this.s3_id = federal_census_block.s3_id
29
+ // }
30
30
 
31
- static is(federal_census_block : any) : federal_census_block is FederalCensusBlock {
32
- return (
33
- federal_census_block !== undefined &&
34
- typeof federal_census_block.federal_census_block_id === "string" &&
35
- typeof federal_census_block.federal_census_tract_id === "string" &&
36
- typeof federal_census_block.federal_census_county_id === "string" &&
37
- typeof federal_census_block.federal_census_id === "number" &&
38
- typeof federal_census_block.county_id === "string" &&
39
- typeof federal_census_block.tract_id === "string" &&
40
- typeof federal_census_block.block_id === "string" &&
41
- is_state_id(federal_census_block.state_id) &&
42
- typeof federal_census_block.name === "string" &&
43
- typeof federal_census_block.s3_id === "string"
44
- )
45
- }
31
+ // static is(federal_census_block : any) : federal_census_block is FederalCensusBlock {
32
+ // return (
33
+ // federal_census_block !== undefined &&
34
+ // typeof federal_census_block.federal_census_block_id === "string" &&
35
+ // typeof federal_census_block.federal_census_tract_id === "string" &&
36
+ // typeof federal_census_block.federal_census_county_id === "string" &&
37
+ // typeof federal_census_block.federal_census_id === "number" &&
38
+ // typeof federal_census_block.county_id === "string" &&
39
+ // typeof federal_census_block.tract_id === "string" &&
40
+ // typeof federal_census_block.block_id === "string" &&
41
+ // is_state_id(federal_census_block.state_id) &&
42
+ // typeof federal_census_block.name === "string" &&
43
+ // typeof federal_census_block.s3_id === "string"
44
+ // )
45
+ // }
46
46
 
47
- }
47
+ // }
@@ -8,7 +8,6 @@ export class FederalCensusCounty {
8
8
  readonly name : string
9
9
  readonly county_type_id : string
10
10
  readonly function_type_id : string
11
- readonly s3_id : string
12
11
 
13
12
  constructor(federal_census_county : any) {
14
13
  if (!FederalCensusCounty.is(federal_census_county)) {
@@ -21,7 +20,6 @@ export class FederalCensusCounty {
21
20
  this.name = federal_census_county.name
22
21
  this.county_type_id = federal_census_county.county_type_id
23
22
  this.function_type_id = federal_census_county.function_type_id
24
- this.s3_id = federal_census_county.s3_id
25
23
  }
26
24
 
27
25
  static is(federal_census_county : any) : federal_census_county is FederalCensusCounty {
@@ -33,8 +31,7 @@ export class FederalCensusCounty {
33
31
  is_state_id(federal_census_county.state_id) &&
34
32
  typeof federal_census_county.name === "string" &&
35
33
  typeof federal_census_county.county_type_id === "string" &&
36
- typeof federal_census_county.function_type_id === "string" &&
37
- typeof federal_census_county.s3_id === "string"
34
+ typeof federal_census_county.function_type_id === "string"
38
35
  )
39
36
  }
40
37
 
@@ -7,7 +7,6 @@ export class FederalCensusMunicipality {
7
7
  readonly state_id : StateID
8
8
  readonly municipality_type_id? : string
9
9
  readonly name : string
10
- readonly s3_id : string
11
10
 
12
11
  constructor(federal_census_municipality : any) {
13
12
  if (!FederalCensusMunicipality.is(federal_census_municipality)) {
@@ -19,7 +18,6 @@ export class FederalCensusMunicipality {
19
18
  this.state_id = federal_census_municipality.state_id
20
19
  this.municipality_type_id = federal_census_municipality.municipality_type_id
21
20
  this.name = federal_census_municipality.name
22
- this.s3_id = federal_census_municipality.s3_id
23
21
  }
24
22
 
25
23
  static is(federal_census_municipality : any) : federal_census_municipality is FederalCensusMunicipality {
@@ -30,8 +28,7 @@ export class FederalCensusMunicipality {
30
28
  typeof federal_census_municipality.municipality_id === "string" &&
31
29
  is_state_id(federal_census_municipality.state_id) &&
32
30
  (federal_census_municipality.municipality_type_id === undefined || typeof federal_census_municipality.municipality_type_id === "string") &&
33
- typeof federal_census_municipality.name === "string" &&
34
- typeof federal_census_municipality.s3_id === "string"
31
+ typeof federal_census_municipality.name === "string"
35
32
  )
36
33
  }
37
34
 
@@ -15,7 +15,6 @@ export class FederalCensusSchoolDistrict {
15
15
  readonly state_id : StateID
16
16
  readonly school_district_type_id? : FederalCensusSchoolDistrictTypeID
17
17
  readonly name : string
18
- readonly s3_id : string
19
18
 
20
19
  constructor(federal_census_school_district : any) {
21
20
  if (!FederalCensusSchoolDistrict.is(federal_census_school_district)) {
@@ -27,7 +26,6 @@ export class FederalCensusSchoolDistrict {
27
26
  this.state_id = federal_census_school_district.state_id
28
27
  this.school_district_type_id = federal_census_school_district.school_district_type_id
29
28
  this.name = federal_census_school_district.name
30
- this.s3_id = federal_census_school_district.s3_id
31
29
  }
32
30
 
33
31
  static is(federal_census_school_district : any) : federal_census_school_district is FederalCensusSchoolDistrict {
@@ -38,8 +36,7 @@ export class FederalCensusSchoolDistrict {
38
36
  typeof federal_census_school_district.school_district_id === "string" &&
39
37
  is_state_id(federal_census_school_district.state_id) &&
40
38
  (federal_census_school_district.school_district_type_id === undefined || typeof federal_census_school_district.school_district_type_id === "string") &&
41
- typeof federal_census_school_district.name === "string" &&
42
- typeof federal_census_school_district.s3_id === "string"
39
+ typeof federal_census_school_district.name === "string"
43
40
  )
44
41
  }
45
42
 
@@ -1,41 +1,41 @@
1
- import { is_state_id, StateID } from "../regions/State"
1
+ // import { is_state_id, StateID } from "../regions/State"
2
2
 
3
- export class FederalCensusTract {
4
- readonly federal_census_tract_id : string
5
- readonly federal_census_county_id : string
6
- readonly federal_census_id : number
7
- readonly county_id : string
8
- readonly tract_id : string
9
- readonly state_id : StateID
10
- readonly name : string
11
- readonly s3_id : string
3
+ // export class FederalCensusTract {
4
+ // readonly federal_census_tract_id : string
5
+ // readonly federal_census_county_id : string
6
+ // readonly federal_census_id : number
7
+ // readonly county_id : string
8
+ // readonly tract_id : string
9
+ // readonly state_id : StateID
10
+ // readonly name : string
11
+ // readonly s3_id : string
12
12
 
13
- constructor(federal_census_tract : any) {
14
- if (!FederalCensusTract.is(federal_census_tract)) {
15
- throw Error("Invalid input.")
16
- }
17
- this.federal_census_tract_id = federal_census_tract.federal_census_tract_id
18
- this.federal_census_county_id = federal_census_tract.federal_census_county_id
19
- this.federal_census_id = federal_census_tract.federal_census_id
20
- this.county_id = federal_census_tract.county_id
21
- this.tract_id = federal_census_tract.tract_id
22
- this.state_id = federal_census_tract.state_id
23
- this.name = federal_census_tract.name
24
- this.s3_id = federal_census_tract.s3_id
25
- }
13
+ // constructor(federal_census_tract : any) {
14
+ // if (!FederalCensusTract.is(federal_census_tract)) {
15
+ // throw Error("Invalid input.")
16
+ // }
17
+ // this.federal_census_tract_id = federal_census_tract.federal_census_tract_id
18
+ // this.federal_census_county_id = federal_census_tract.federal_census_county_id
19
+ // this.federal_census_id = federal_census_tract.federal_census_id
20
+ // this.county_id = federal_census_tract.county_id
21
+ // this.tract_id = federal_census_tract.tract_id
22
+ // this.state_id = federal_census_tract.state_id
23
+ // this.name = federal_census_tract.name
24
+ // this.s3_id = federal_census_tract.s3_id
25
+ // }
26
26
 
27
- static is(federal_census_tract : any) : federal_census_tract is FederalCensusTract {
28
- return (
29
- federal_census_tract !== undefined &&
30
- typeof federal_census_tract.federal_census_tract_id === "string" &&
31
- typeof federal_census_tract.federal_census_county_id === "string" &&
32
- typeof federal_census_tract.federal_census_id === "number" &&
33
- typeof federal_census_tract.county_id === "string" &&
34
- typeof federal_census_tract.tract_id === "string" &&
35
- is_state_id(federal_census_tract.state_id) &&
36
- typeof federal_census_tract.name === "string" &&
37
- typeof federal_census_tract.s3_id === "string"
38
- )
39
- }
27
+ // static is(federal_census_tract : any) : federal_census_tract is FederalCensusTract {
28
+ // return (
29
+ // federal_census_tract !== undefined &&
30
+ // typeof federal_census_tract.federal_census_tract_id === "string" &&
31
+ // typeof federal_census_tract.federal_census_county_id === "string" &&
32
+ // typeof federal_census_tract.federal_census_id === "number" &&
33
+ // typeof federal_census_tract.county_id === "string" &&
34
+ // typeof federal_census_tract.tract_id === "string" &&
35
+ // is_state_id(federal_census_tract.state_id) &&
36
+ // typeof federal_census_tract.name === "string" &&
37
+ // typeof federal_census_tract.s3_id === "string"
38
+ // )
39
+ // }
40
40
 
41
- }
41
+ // }
@@ -27,7 +27,7 @@ export class LALFileVoter {
27
27
  readonly address_mail_1 : string
28
28
  readonly address_mail_2? : string
29
29
  readonly address_mail_city? : string
30
- readonly address_mail_state_id : StateID
30
+ readonly address_mail_state_id : string
31
31
  readonly address_mail_zip_id? : string
32
32
  readonly party_type_id : VoterPartyTypeID
33
33
  readonly lal_occupation_group_id? : string
@@ -118,7 +118,7 @@ export class LALFileVoter {
118
118
  typeof lal_file_voter.address_mail_1 === "string" &&
119
119
  (lal_file_voter.address_mail_2 === undefined || typeof lal_file_voter.address_mail_2 === "string") &&
120
120
  (lal_file_voter.address_mail_city === undefined || typeof lal_file_voter.address_mail_city === "string") &&
121
- is_state_id(lal_file_voter.address_mail_state_id) &&
121
+ typeof lal_file_voter.address_mail_state_id === "string" &&
122
122
  (lal_file_voter.address_mail_zip_id === undefined || typeof lal_file_voter.address_mail_zip_id === "string") &&
123
123
  is_voter_party_type_id(lal_file_voter.party_type_id) &&
124
124
  (lal_file_voter.lal_occupation_group_id === undefined || typeof lal_file_voter.lal_occupation_group_id === "string") &&