triangle-types 1.0.177 → 1.0.179

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,7 @@ 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;
10
+ readonly [x: string]: any;
11
11
  constructor(federal_census_county: any);
12
12
  static is(federal_census_county: any): federal_census_county is FederalCensusCounty;
13
13
  }
@@ -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,7 @@ 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;
9
+ readonly [x: string]: any;
10
10
  constructor(federal_census_municipality: any);
11
11
  static is(federal_census_municipality: any): federal_census_municipality is FederalCensusMunicipality;
12
12
  }
@@ -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,7 @@ 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;
12
+ readonly [x: string]: any;
13
13
  constructor(federal_census_school_district: any);
14
14
  static is(federal_census_school_district: any): federal_census_school_district is FederalCensusSchoolDistrict;
15
15
  }
@@ -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
+ // }
@@ -7,6 +7,7 @@ export declare class FederalCongressDistrict {
7
7
  readonly district_id: number;
8
8
  readonly name: string;
9
9
  readonly s3_id: string;
10
+ readonly [x: string]: any;
10
11
  constructor(federal_congress_district: any);
11
12
  static is(federal_congress_district: any): federal_congress_district is FederalCongressDistrict;
12
13
  }
@@ -6,7 +6,7 @@ export declare class StateLegislatureDistrict {
6
6
  readonly chamber_id: string;
7
7
  readonly district_id: string;
8
8
  readonly name: string;
9
- readonly s3_id: string;
9
+ readonly [x: string]: any;
10
10
  constructor(state_legislature_district: any);
11
11
  static is(state_legislature_district: any): state_legislature_district is StateLegislatureDistrict;
12
12
  }
@@ -6,7 +6,6 @@ export class StateLegislatureDistrict {
6
6
  chamber_id;
7
7
  district_id;
8
8
  name;
9
- s3_id;
10
9
  constructor(state_legislature_district) {
11
10
  if (!StateLegislatureDistrict.is(state_legislature_district)) {
12
11
  throw Error("Invalid input.");
@@ -17,7 +16,6 @@ export class StateLegislatureDistrict {
17
16
  this.chamber_id = state_legislature_district.chamber_id;
18
17
  this.district_id = state_legislature_district.district_id;
19
18
  this.name = state_legislature_district.name;
20
- this.s3_id = state_legislature_district.s3_id;
21
19
  }
22
20
  static is(state_legislature_district) {
23
21
  return (state_legislature_district !== undefined &&
@@ -26,7 +24,6 @@ export class StateLegislatureDistrict {
26
24
  typeof state_legislature_district.legislature_id === "number" &&
27
25
  typeof state_legislature_district.chamber_id === "string" &&
28
26
  typeof state_legislature_district.district_id === "string" &&
29
- typeof state_legislature_district.name === "string" &&
30
- typeof state_legislature_district.s3_id === "string");
27
+ typeof state_legislature_district.name === "string");
31
28
  }
32
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.177",
3
+ "version": "1.0.179",
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,7 @@ 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
11
+ readonly [x : string] : any
12
12
 
13
13
  constructor(federal_census_county : any) {
14
14
  if (!FederalCensusCounty.is(federal_census_county)) {
@@ -21,7 +21,6 @@ export class FederalCensusCounty {
21
21
  this.name = federal_census_county.name
22
22
  this.county_type_id = federal_census_county.county_type_id
23
23
  this.function_type_id = federal_census_county.function_type_id
24
- this.s3_id = federal_census_county.s3_id
25
24
  }
26
25
 
27
26
  static is(federal_census_county : any) : federal_census_county is FederalCensusCounty {
@@ -33,8 +32,7 @@ export class FederalCensusCounty {
33
32
  is_state_id(federal_census_county.state_id) &&
34
33
  typeof federal_census_county.name === "string" &&
35
34
  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"
35
+ typeof federal_census_county.function_type_id === "string"
38
36
  )
39
37
  }
40
38
 
@@ -7,7 +7,7 @@ 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
10
+ readonly [x : string] : any
11
11
 
12
12
  constructor(federal_census_municipality : any) {
13
13
  if (!FederalCensusMunicipality.is(federal_census_municipality)) {
@@ -19,7 +19,6 @@ export class FederalCensusMunicipality {
19
19
  this.state_id = federal_census_municipality.state_id
20
20
  this.municipality_type_id = federal_census_municipality.municipality_type_id
21
21
  this.name = federal_census_municipality.name
22
- this.s3_id = federal_census_municipality.s3_id
23
22
  }
24
23
 
25
24
  static is(federal_census_municipality : any) : federal_census_municipality is FederalCensusMunicipality {
@@ -30,8 +29,7 @@ export class FederalCensusMunicipality {
30
29
  typeof federal_census_municipality.municipality_id === "string" &&
31
30
  is_state_id(federal_census_municipality.state_id) &&
32
31
  (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"
32
+ typeof federal_census_municipality.name === "string"
35
33
  )
36
34
  }
37
35
 
@@ -15,7 +15,7 @@ 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
18
+ readonly [x : string] : any
19
19
 
20
20
  constructor(federal_census_school_district : any) {
21
21
  if (!FederalCensusSchoolDistrict.is(federal_census_school_district)) {
@@ -27,7 +27,6 @@ export class FederalCensusSchoolDistrict {
27
27
  this.state_id = federal_census_school_district.state_id
28
28
  this.school_district_type_id = federal_census_school_district.school_district_type_id
29
29
  this.name = federal_census_school_district.name
30
- this.s3_id = federal_census_school_district.s3_id
31
30
  }
32
31
 
33
32
  static is(federal_census_school_district : any) : federal_census_school_district is FederalCensusSchoolDistrict {
@@ -38,8 +37,7 @@ export class FederalCensusSchoolDistrict {
38
37
  typeof federal_census_school_district.school_district_id === "string" &&
39
38
  is_state_id(federal_census_school_district.state_id) &&
40
39
  (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"
40
+ typeof federal_census_school_district.name === "string"
43
41
  )
44
42
  }
45
43
 
@@ -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
+ // }
@@ -8,6 +8,7 @@ export class FederalCongressDistrict {
8
8
  readonly district_id : number
9
9
  readonly name : string
10
10
  readonly s3_id : string
11
+ readonly [x : string] : any
11
12
 
12
13
 
13
14
  constructor(federal_congress_district : any) {
@@ -7,7 +7,7 @@ export class StateLegislatureDistrict {
7
7
  readonly chamber_id : string
8
8
  readonly district_id : string
9
9
  readonly name : string
10
- readonly s3_id : string
10
+ readonly [x : string] : any
11
11
 
12
12
 
13
13
  constructor(state_legislature_district : any) {
@@ -20,7 +20,6 @@ export class StateLegislatureDistrict {
20
20
  this.chamber_id = state_legislature_district.chamber_id
21
21
  this.district_id = state_legislature_district.district_id
22
22
  this.name = state_legislature_district.name
23
- this.s3_id = state_legislature_district.s3_id
24
23
  }
25
24
 
26
25
  static is(state_legislature_district : any) : state_legislature_district is StateLegislatureDistrict {
@@ -31,8 +30,7 @@ export class StateLegislatureDistrict {
31
30
  typeof state_legislature_district.legislature_id === "number" &&
32
31
  typeof state_legislature_district.chamber_id === "string" &&
33
32
  typeof state_legislature_district.district_id === "string" &&
34
- typeof state_legislature_district.name === "string" &&
35
- typeof state_legislature_district.s3_id === "string"
33
+ typeof state_legislature_district.name === "string"
36
34
  )
37
35
  }
38
36