triangle-types 1.0.164 → 1.0.166
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.
- package/dist/src/types/federal_census/FederalCensusBlock.d.ts +1 -1
- package/dist/src/types/federal_census/FederalCensusBlock.js +1 -1
- package/dist/src/types/federal_census/FederalCensusCounty.d.ts +1 -0
- package/dist/src/types/federal_census/FederalCensusCounty.js +4 -1
- package/dist/src/types/federal_census/FederalCensusMunicipality.d.ts +1 -0
- package/dist/src/types/federal_census/FederalCensusMunicipality.js +4 -1
- package/dist/src/types/federal_census/FederalCensusTract.d.ts +1 -0
- package/dist/src/types/federal_census/FederalCensusTract.js +4 -1
- package/dist/src/types/regions/State.js +1 -1
- package/package.json +1 -1
- package/src/types/federal_census/FederalCensusBlock.ts +2 -2
- package/src/types/federal_census/FederalCensusCounty.ts +4 -1
- package/src/types/federal_census/FederalCensusMunicipality.ts +4 -1
- package/src/types/federal_census/FederalCensusTract.ts +4 -1
- package/src/types/regions/State.ts +1 -1
- package/src/types/federal_census/FederalCensusCity.ts +0 -35
|
@@ -9,7 +9,7 @@ export declare class FederalCensusBlock {
|
|
|
9
9
|
readonly block_id: string;
|
|
10
10
|
readonly state_id: StateID;
|
|
11
11
|
readonly name: string;
|
|
12
|
-
readonly s3_id
|
|
12
|
+
readonly s3_id: string;
|
|
13
13
|
constructor(federal_census_block: any);
|
|
14
14
|
static is(federal_census_block: any): federal_census_block is FederalCensusBlock;
|
|
15
15
|
}
|
|
@@ -36,6 +36,6 @@ export class FederalCensusBlock {
|
|
|
36
36
|
typeof federal_census_block.block_id === "string" &&
|
|
37
37
|
is_state_id(federal_census_block.state_id) &&
|
|
38
38
|
typeof federal_census_block.name === "string" &&
|
|
39
|
-
|
|
39
|
+
typeof federal_census_block.s3_id === "string");
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -7,6 +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
11
|
constructor(federal_census_county: any);
|
|
11
12
|
static is(federal_census_county: any): federal_census_county is FederalCensusCounty;
|
|
12
13
|
}
|
|
@@ -7,6 +7,7 @@ export class FederalCensusCounty {
|
|
|
7
7
|
name;
|
|
8
8
|
county_type_id;
|
|
9
9
|
function_type_id;
|
|
10
|
+
s3_id;
|
|
10
11
|
constructor(federal_census_county) {
|
|
11
12
|
if (!FederalCensusCounty.is(federal_census_county)) {
|
|
12
13
|
throw Error("Invalid input.");
|
|
@@ -18,6 +19,7 @@ export class FederalCensusCounty {
|
|
|
18
19
|
this.name = federal_census_county.name;
|
|
19
20
|
this.county_type_id = federal_census_county.county_type_id;
|
|
20
21
|
this.function_type_id = federal_census_county.function_type_id;
|
|
22
|
+
this.s3_id = federal_census_county.s3_id;
|
|
21
23
|
}
|
|
22
24
|
static is(federal_census_county) {
|
|
23
25
|
return (federal_census_county !== undefined &&
|
|
@@ -27,6 +29,7 @@ export class FederalCensusCounty {
|
|
|
27
29
|
is_state_id(federal_census_county.state_id) &&
|
|
28
30
|
typeof federal_census_county.name === "string" &&
|
|
29
31
|
typeof federal_census_county.county_type_id === "string" &&
|
|
30
|
-
typeof federal_census_county.function_type_id === "string"
|
|
32
|
+
typeof federal_census_county.function_type_id === "string" &&
|
|
33
|
+
typeof federal_census_county.s3_id === "string");
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -6,6 +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
10
|
constructor(federal_census_municipality: any);
|
|
10
11
|
static is(federal_census_municipality: any): federal_census_municipality is FederalCensusMunicipality;
|
|
11
12
|
}
|
|
@@ -6,6 +6,7 @@ export class FederalCensusMunicipality {
|
|
|
6
6
|
state_id;
|
|
7
7
|
municipality_type_id;
|
|
8
8
|
name;
|
|
9
|
+
s3_id;
|
|
9
10
|
constructor(federal_census_municipality) {
|
|
10
11
|
if (!FederalCensusMunicipality.is(federal_census_municipality)) {
|
|
11
12
|
throw Error("Invalid input.");
|
|
@@ -16,6 +17,7 @@ export class FederalCensusMunicipality {
|
|
|
16
17
|
this.state_id = federal_census_municipality.state_id;
|
|
17
18
|
this.municipality_type_id = federal_census_municipality.municipality_type_id;
|
|
18
19
|
this.name = federal_census_municipality.name;
|
|
20
|
+
this.s3_id = federal_census_municipality.s3_id;
|
|
19
21
|
}
|
|
20
22
|
static is(federal_census_municipality) {
|
|
21
23
|
return (federal_census_municipality !== undefined &&
|
|
@@ -24,6 +26,7 @@ export class FederalCensusMunicipality {
|
|
|
24
26
|
typeof federal_census_municipality.municipality_id === "string" &&
|
|
25
27
|
is_state_id(federal_census_municipality.state_id) &&
|
|
26
28
|
(federal_census_municipality.municipality_type_id === undefined || typeof federal_census_municipality.municipality_type_id === "string") &&
|
|
27
|
-
typeof federal_census_municipality.name === "string"
|
|
29
|
+
typeof federal_census_municipality.name === "string" &&
|
|
30
|
+
typeof federal_census_municipality.s3_id === "string");
|
|
28
31
|
}
|
|
29
32
|
}
|
|
@@ -7,6 +7,7 @@ export declare class FederalCensusTract {
|
|
|
7
7
|
readonly tract_id: string;
|
|
8
8
|
readonly state_id: StateID;
|
|
9
9
|
readonly name: string;
|
|
10
|
+
readonly s3_id: string;
|
|
10
11
|
constructor(federal_census_tract: any);
|
|
11
12
|
static is(federal_census_tract: any): federal_census_tract is FederalCensusTract;
|
|
12
13
|
}
|
|
@@ -7,6 +7,7 @@ export class FederalCensusTract {
|
|
|
7
7
|
tract_id;
|
|
8
8
|
state_id;
|
|
9
9
|
name;
|
|
10
|
+
s3_id;
|
|
10
11
|
constructor(federal_census_tract) {
|
|
11
12
|
if (!FederalCensusTract.is(federal_census_tract)) {
|
|
12
13
|
throw Error("Invalid input.");
|
|
@@ -18,6 +19,7 @@ export class FederalCensusTract {
|
|
|
18
19
|
this.tract_id = federal_census_tract.tract_id;
|
|
19
20
|
this.state_id = federal_census_tract.state_id;
|
|
20
21
|
this.name = federal_census_tract.name;
|
|
22
|
+
this.s3_id = federal_census_tract.s3_id;
|
|
21
23
|
}
|
|
22
24
|
static is(federal_census_tract) {
|
|
23
25
|
return (federal_census_tract !== undefined &&
|
|
@@ -27,6 +29,7 @@ export class FederalCensusTract {
|
|
|
27
29
|
typeof federal_census_tract.county_id === "string" &&
|
|
28
30
|
typeof federal_census_tract.tract_id === "string" &&
|
|
29
31
|
is_state_id(federal_census_tract.state_id) &&
|
|
30
|
-
typeof federal_census_tract.name === "string"
|
|
32
|
+
typeof federal_census_tract.name === "string" &&
|
|
33
|
+
typeof federal_census_tract.s3_id === "string");
|
|
31
34
|
}
|
|
32
35
|
}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ export class FederalCensusBlock {
|
|
|
10
10
|
readonly block_id : string
|
|
11
11
|
readonly state_id : StateID
|
|
12
12
|
readonly name : string
|
|
13
|
-
readonly s3_id
|
|
13
|
+
readonly s3_id : string
|
|
14
14
|
|
|
15
15
|
constructor(federal_census_block : any) {
|
|
16
16
|
if (!FederalCensusBlock.is(federal_census_block)) {
|
|
@@ -40,7 +40,7 @@ export class FederalCensusBlock {
|
|
|
40
40
|
typeof federal_census_block.block_id === "string" &&
|
|
41
41
|
is_state_id(federal_census_block.state_id) &&
|
|
42
42
|
typeof federal_census_block.name === "string" &&
|
|
43
|
-
|
|
43
|
+
typeof federal_census_block.s3_id === "string"
|
|
44
44
|
)
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -8,6 +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
12
|
|
|
12
13
|
constructor(federal_census_county : any) {
|
|
13
14
|
if (!FederalCensusCounty.is(federal_census_county)) {
|
|
@@ -20,6 +21,7 @@ export class FederalCensusCounty {
|
|
|
20
21
|
this.name = federal_census_county.name
|
|
21
22
|
this.county_type_id = federal_census_county.county_type_id
|
|
22
23
|
this.function_type_id = federal_census_county.function_type_id
|
|
24
|
+
this.s3_id = federal_census_county.s3_id
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
static is(federal_census_county : any) : federal_census_county is FederalCensusCounty {
|
|
@@ -31,7 +33,8 @@ export class FederalCensusCounty {
|
|
|
31
33
|
is_state_id(federal_census_county.state_id) &&
|
|
32
34
|
typeof federal_census_county.name === "string" &&
|
|
33
35
|
typeof federal_census_county.county_type_id === "string" &&
|
|
34
|
-
typeof federal_census_county.function_type_id === "string"
|
|
36
|
+
typeof federal_census_county.function_type_id === "string" &&
|
|
37
|
+
typeof federal_census_county.s3_id === "string"
|
|
35
38
|
)
|
|
36
39
|
}
|
|
37
40
|
|
|
@@ -7,6 +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
11
|
|
|
11
12
|
constructor(federal_census_municipality : any) {
|
|
12
13
|
if (!FederalCensusMunicipality.is(federal_census_municipality)) {
|
|
@@ -18,6 +19,7 @@ export class FederalCensusMunicipality {
|
|
|
18
19
|
this.state_id = federal_census_municipality.state_id
|
|
19
20
|
this.municipality_type_id = federal_census_municipality.municipality_type_id
|
|
20
21
|
this.name = federal_census_municipality.name
|
|
22
|
+
this.s3_id = federal_census_municipality.s3_id
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
static is(federal_census_municipality : any) : federal_census_municipality is FederalCensusMunicipality {
|
|
@@ -28,7 +30,8 @@ export class FederalCensusMunicipality {
|
|
|
28
30
|
typeof federal_census_municipality.municipality_id === "string" &&
|
|
29
31
|
is_state_id(federal_census_municipality.state_id) &&
|
|
30
32
|
(federal_census_municipality.municipality_type_id === undefined || typeof federal_census_municipality.municipality_type_id === "string") &&
|
|
31
|
-
typeof federal_census_municipality.name === "string"
|
|
33
|
+
typeof federal_census_municipality.name === "string" &&
|
|
34
|
+
typeof federal_census_municipality.s3_id === "string"
|
|
32
35
|
)
|
|
33
36
|
}
|
|
34
37
|
|
|
@@ -8,6 +8,7 @@ export class FederalCensusTract {
|
|
|
8
8
|
readonly tract_id : string
|
|
9
9
|
readonly state_id : StateID
|
|
10
10
|
readonly name : string
|
|
11
|
+
readonly s3_id : string
|
|
11
12
|
|
|
12
13
|
constructor(federal_census_tract : any) {
|
|
13
14
|
if (!FederalCensusTract.is(federal_census_tract)) {
|
|
@@ -20,6 +21,7 @@ export class FederalCensusTract {
|
|
|
20
21
|
this.tract_id = federal_census_tract.tract_id
|
|
21
22
|
this.state_id = federal_census_tract.state_id
|
|
22
23
|
this.name = federal_census_tract.name
|
|
24
|
+
this.s3_id = federal_census_tract.s3_id
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
static is(federal_census_tract : any) : federal_census_tract is FederalCensusTract {
|
|
@@ -31,7 +33,8 @@ export class FederalCensusTract {
|
|
|
31
33
|
typeof federal_census_tract.county_id === "string" &&
|
|
32
34
|
typeof federal_census_tract.tract_id === "string" &&
|
|
33
35
|
is_state_id(federal_census_tract.state_id) &&
|
|
34
|
-
typeof federal_census_tract.name === "string"
|
|
36
|
+
typeof federal_census_tract.name === "string" &&
|
|
37
|
+
typeof federal_census_tract.s3_id === "string"
|
|
35
38
|
)
|
|
36
39
|
}
|
|
37
40
|
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { is_state_id, StateID } from "../regions/State"
|
|
2
|
-
|
|
3
|
-
export class FederalCensusCity {
|
|
4
|
-
readonly federal_census_city_id : string
|
|
5
|
-
readonly federal_census_id : number
|
|
6
|
-
readonly city_id : string
|
|
7
|
-
readonly state_id : StateID
|
|
8
|
-
readonly city_type_id? : string
|
|
9
|
-
readonly name : string
|
|
10
|
-
|
|
11
|
-
constructor(federal_census_city : any) {
|
|
12
|
-
if (!FederalCensusCity.is(federal_census_city)) {
|
|
13
|
-
throw Error("Invalid input.")
|
|
14
|
-
}
|
|
15
|
-
this.federal_census_city_id = federal_census_city.federal_census_city_id
|
|
16
|
-
this.federal_census_id = federal_census_city.federal_census_id
|
|
17
|
-
this.city_id = federal_census_city.city_id
|
|
18
|
-
this.state_id = federal_census_city.state_id
|
|
19
|
-
this.city_type_id = federal_census_city.city_type_id
|
|
20
|
-
this.name = federal_census_city.name
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
static is(federal_census_city : any) : federal_census_city is FederalCensusCity {
|
|
24
|
-
return (
|
|
25
|
-
federal_census_city !== undefined &&
|
|
26
|
-
typeof federal_census_city.federal_census_city_id === "string" &&
|
|
27
|
-
typeof federal_census_city.federal_census_id === "number" &&
|
|
28
|
-
typeof federal_census_city.city_id === "string" &&
|
|
29
|
-
is_state_id(federal_census_city.state_id) &&
|
|
30
|
-
(federal_census_city.city_type_id === undefined || typeof federal_census_city.city_type_id === "string") &&
|
|
31
|
-
typeof federal_census_city.name === "string"
|
|
32
|
-
)
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}
|