triangle-types 1.0.279 → 1.0.281

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.
Files changed (40) hide show
  1. package/dist/src/types/federal_census/FederalCensusBlock.d.ts +2 -0
  2. package/dist/src/types/federal_census/FederalCensusBlock.js +5 -1
  3. package/dist/src/types/federal_census/FederalCensusCounty.d.ts +2 -0
  4. package/dist/src/types/federal_census/FederalCensusCounty.js +5 -1
  5. package/dist/src/types/federal_census/FederalCensusMunicipality.d.ts +2 -0
  6. package/dist/src/types/federal_census/FederalCensusMunicipality.js +5 -1
  7. package/dist/src/types/federal_census/FederalCensusSchoolDistrict.d.ts +2 -0
  8. package/dist/src/types/federal_census/FederalCensusSchoolDistrict.js +5 -1
  9. package/dist/src/types/federal_census/FederalCensusTract.d.ts +2 -0
  10. package/dist/src/types/federal_census/FederalCensusTract.js +5 -1
  11. package/dist/src/types/federal_congress/FederalCongressDistrict.d.ts +2 -0
  12. package/dist/src/types/federal_congress/FederalCongressDistrict.js +5 -1
  13. package/dist/src/types/jurisdictions/Geom.d.ts +5 -0
  14. package/dist/src/types/jurisdictions/Geom.js +13 -0
  15. package/dist/src/types/jurisdictions/State.d.ts +2 -0
  16. package/dist/src/types/jurisdictions/State.js +5 -1
  17. package/dist/src/types/lal/LALFileVoter.d.ts +2 -0
  18. package/dist/src/types/lal/LALFileVoter.js +4 -0
  19. package/dist/src/types/prism/StateVoter.d.ts +2 -0
  20. package/dist/src/types/prism/StateVoter.js +4 -0
  21. package/dist/src/types/state_legislature/StateLegislatureDistrict.d.ts +2 -0
  22. package/dist/src/types/state_legislature/StateLegislatureDistrict.js +5 -1
  23. package/dist/src/types/web/WebDocument.d.ts +1 -1
  24. package/dist/src/types/web/WebDocument.js +1 -1
  25. package/dist/src/types/web/WebDocumentTag.d.ts +1 -1
  26. package/dist/src/types/web/WebDocumentTag.js +1 -1
  27. package/package.json +1 -1
  28. package/src/types/federal_census/FederalCensusBlock.ts +5 -1
  29. package/src/types/federal_census/FederalCensusCounty.ts +5 -1
  30. package/src/types/federal_census/FederalCensusMunicipality.ts +5 -1
  31. package/src/types/federal_census/FederalCensusSchoolDistrict.ts +5 -1
  32. package/src/types/federal_census/FederalCensusTract.ts +5 -1
  33. package/src/types/federal_congress/FederalCongressDistrict.ts +5 -1
  34. package/src/types/jurisdictions/Geom.ts +17 -0
  35. package/src/types/jurisdictions/State.ts +6 -1
  36. package/src/types/lal/LALFileVoter.ts +4 -0
  37. package/src/types/prism/StateVoter.ts +4 -0
  38. package/src/types/state_legislature/StateLegislatureDistrict.ts +5 -1
  39. package/src/types/web/WebDocument.ts +2 -2
  40. package/src/types/web/WebDocumentTag.ts +2 -2
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { StateID } from "../jurisdictions/State.js";
2
3
  export declare class FederalCensusBlock {
3
4
  readonly federal_census_block_id: string;
@@ -8,6 +9,7 @@ export declare class FederalCensusBlock {
8
9
  readonly tract_id: string;
9
10
  readonly block_id: string;
10
11
  readonly state_id: StateID;
12
+ readonly geom: Geom;
11
13
  readonly [x: string]: any;
12
14
  constructor(federal_census_block: any);
13
15
  static is(federal_census_block: any): federal_census_block is FederalCensusBlock;
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { is_state_id } from "../jurisdictions/State.js";
2
3
  export class FederalCensusBlock {
3
4
  federal_census_block_id;
@@ -8,6 +9,7 @@ export class FederalCensusBlock {
8
9
  tract_id;
9
10
  block_id;
10
11
  state_id;
12
+ geom;
11
13
  constructor(federal_census_block) {
12
14
  if (!FederalCensusBlock.is(federal_census_block)) {
13
15
  throw Error("Invalid input.");
@@ -20,6 +22,7 @@ export class FederalCensusBlock {
20
22
  this.tract_id = federal_census_block.tract_id;
21
23
  this.block_id = federal_census_block.block_id;
22
24
  this.state_id = federal_census_block.state_id;
25
+ this.geom = federal_census_block.geom;
23
26
  }
24
27
  static is(federal_census_block) {
25
28
  return (federal_census_block !== undefined &&
@@ -30,6 +33,7 @@ export class FederalCensusBlock {
30
33
  typeof federal_census_block.county_id === "string" &&
31
34
  typeof federal_census_block.tract_id === "string" &&
32
35
  typeof federal_census_block.block_id === "string" &&
33
- is_state_id(federal_census_block.state_id));
36
+ is_state_id(federal_census_block.state_id) &&
37
+ Geom.is(federal_census_block.geom));
34
38
  }
35
39
  }
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { StateID } from "../jurisdictions/State.js";
2
3
  export declare class FederalCensusCounty {
3
4
  readonly federal_census_county_id: string;
@@ -7,6 +8,7 @@ export declare class FederalCensusCounty {
7
8
  readonly name: string;
8
9
  readonly county_type_id: string;
9
10
  readonly function_type_id: string;
11
+ readonly geom: Geom;
10
12
  readonly [x: string]: any;
11
13
  constructor(federal_census_county: any);
12
14
  static is(federal_census_county: any): federal_census_county is FederalCensusCounty;
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { is_state_id } from "../jurisdictions/State.js";
2
3
  export class FederalCensusCounty {
3
4
  federal_census_county_id;
@@ -7,6 +8,7 @@ export class FederalCensusCounty {
7
8
  name;
8
9
  county_type_id;
9
10
  function_type_id;
11
+ geom;
10
12
  constructor(federal_census_county) {
11
13
  if (!FederalCensusCounty.is(federal_census_county)) {
12
14
  throw Error("Invalid input.");
@@ -18,6 +20,7 @@ export class FederalCensusCounty {
18
20
  this.name = federal_census_county.name;
19
21
  this.county_type_id = federal_census_county.county_type_id;
20
22
  this.function_type_id = federal_census_county.function_type_id;
23
+ this.geom = federal_census_county.geom;
21
24
  }
22
25
  static is(federal_census_county) {
23
26
  return (federal_census_county !== undefined &&
@@ -27,6 +30,7 @@ export class FederalCensusCounty {
27
30
  is_state_id(federal_census_county.state_id) &&
28
31
  typeof federal_census_county.name === "string" &&
29
32
  typeof federal_census_county.county_type_id === "string" &&
30
- typeof federal_census_county.function_type_id === "string");
33
+ typeof federal_census_county.function_type_id === "string" &&
34
+ Geom.is(federal_census_county.geom));
31
35
  }
32
36
  }
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { StateID } from "../jurisdictions/State.js";
2
3
  export declare class FederalCensusMunicipality {
3
4
  readonly federal_census_municipality_id: string;
@@ -6,6 +7,7 @@ export declare class FederalCensusMunicipality {
6
7
  readonly state_id: StateID;
7
8
  readonly municipality_type_id?: string;
8
9
  readonly name: string;
10
+ readonly geom: Geom;
9
11
  readonly [x: string]: any;
10
12
  constructor(federal_census_municipality: any);
11
13
  static is(federal_census_municipality: any): federal_census_municipality is FederalCensusMunicipality;
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { is_state_id } from "../jurisdictions/State.js";
2
3
  export class FederalCensusMunicipality {
3
4
  federal_census_municipality_id;
@@ -6,6 +7,7 @@ export class FederalCensusMunicipality {
6
7
  state_id;
7
8
  municipality_type_id;
8
9
  name;
10
+ geom;
9
11
  constructor(federal_census_municipality) {
10
12
  if (!FederalCensusMunicipality.is(federal_census_municipality)) {
11
13
  throw Error("Invalid input.");
@@ -16,6 +18,7 @@ export class FederalCensusMunicipality {
16
18
  this.state_id = federal_census_municipality.state_id;
17
19
  this.municipality_type_id = federal_census_municipality.municipality_type_id;
18
20
  this.name = federal_census_municipality.name;
21
+ this.geom = federal_census_municipality.geom;
19
22
  }
20
23
  static is(federal_census_municipality) {
21
24
  return (federal_census_municipality !== undefined &&
@@ -24,6 +27,7 @@ export class FederalCensusMunicipality {
24
27
  typeof federal_census_municipality.municipality_id === "string" &&
25
28
  is_state_id(federal_census_municipality.state_id) &&
26
29
  (federal_census_municipality.municipality_type_id === undefined || typeof federal_census_municipality.municipality_type_id === "string") &&
27
- typeof federal_census_municipality.name === "string");
30
+ typeof federal_census_municipality.name === "string" &&
31
+ Geom.is(federal_census_municipality.geom));
28
32
  }
29
33
  }
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { StateID } from "../jurisdictions/State.js";
2
3
  export declare const federal_census_school_district_type_ids: readonly ["UNIFIED", "PRIMARY", "SECONDARY"];
3
4
  export type FederalCensusSchoolDistrictTypeID = typeof federal_census_school_district_type_ids[number];
@@ -9,6 +10,7 @@ export declare class FederalCensusSchoolDistrict {
9
10
  readonly state_id: StateID;
10
11
  readonly school_district_type_id?: FederalCensusSchoolDistrictTypeID;
11
12
  readonly name: string;
13
+ readonly geom: Geom;
12
14
  readonly [x: string]: any;
13
15
  constructor(federal_census_school_district: any);
14
16
  static is(federal_census_school_district: any): federal_census_school_district is FederalCensusSchoolDistrict;
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { is_state_id } from "../jurisdictions/State.js";
2
3
  export const federal_census_school_district_type_ids = ["UNIFIED", "PRIMARY", "SECONDARY"];
3
4
  export function is_federal_census_school_district_type_id(federal_census_school_district_type_id) {
@@ -10,6 +11,7 @@ export class FederalCensusSchoolDistrict {
10
11
  state_id;
11
12
  school_district_type_id;
12
13
  name;
14
+ geom;
13
15
  constructor(federal_census_school_district) {
14
16
  if (!FederalCensusSchoolDistrict.is(federal_census_school_district)) {
15
17
  throw Error("Invalid input.");
@@ -20,6 +22,7 @@ export class FederalCensusSchoolDistrict {
20
22
  this.state_id = federal_census_school_district.state_id;
21
23
  this.school_district_type_id = federal_census_school_district.school_district_type_id;
22
24
  this.name = federal_census_school_district.name;
25
+ this.geom = federal_census_school_district.geom;
23
26
  }
24
27
  static is(federal_census_school_district) {
25
28
  return (federal_census_school_district !== undefined &&
@@ -28,6 +31,7 @@ export class FederalCensusSchoolDistrict {
28
31
  typeof federal_census_school_district.school_district_id === "string" &&
29
32
  is_state_id(federal_census_school_district.state_id) &&
30
33
  (federal_census_school_district.school_district_type_id === undefined || typeof federal_census_school_district.school_district_type_id === "string") &&
31
- typeof federal_census_school_district.name === "string");
34
+ typeof federal_census_school_district.name === "string" &&
35
+ Geom.is(federal_census_school_district.geom));
32
36
  }
33
37
  }
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { StateID } from "../jurisdictions/State.js";
2
3
  export declare class FederalCensusTract {
3
4
  readonly federal_census_tract_id: string;
@@ -6,6 +7,7 @@ export declare class FederalCensusTract {
6
7
  readonly county_id: string;
7
8
  readonly tract_id: string;
8
9
  readonly state_id: StateID;
10
+ readonly geom: Geom;
9
11
  readonly [x: string]: any;
10
12
  constructor(federal_census_tract: any);
11
13
  static is(federal_census_tract: any): federal_census_tract is FederalCensusTract;
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { is_state_id } from "../jurisdictions/State.js";
2
3
  export class FederalCensusTract {
3
4
  federal_census_tract_id;
@@ -6,6 +7,7 @@ export class FederalCensusTract {
6
7
  county_id;
7
8
  tract_id;
8
9
  state_id;
10
+ geom;
9
11
  constructor(federal_census_tract) {
10
12
  if (!FederalCensusTract.is(federal_census_tract)) {
11
13
  throw Error("Invalid input.");
@@ -16,6 +18,7 @@ export class FederalCensusTract {
16
18
  this.county_id = federal_census_tract.county_id;
17
19
  this.tract_id = federal_census_tract.tract_id;
18
20
  this.state_id = federal_census_tract.state_id;
21
+ this.geom = federal_census_tract.geom;
19
22
  }
20
23
  static is(federal_census_tract) {
21
24
  return (federal_census_tract !== undefined &&
@@ -24,6 +27,7 @@ export class FederalCensusTract {
24
27
  typeof federal_census_tract.federal_census_id === "number" &&
25
28
  typeof federal_census_tract.county_id === "string" &&
26
29
  typeof federal_census_tract.tract_id === "string" &&
27
- is_state_id(federal_census_tract.state_id));
30
+ is_state_id(federal_census_tract.state_id) &&
31
+ Geom.is(federal_census_tract.geom));
28
32
  }
29
33
  }
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { StateID } from "../jurisdictions/State.js";
2
3
  export declare class FederalCongressDistrict {
3
4
  readonly federal_congress_district_id: string;
@@ -6,6 +7,7 @@ export declare class FederalCongressDistrict {
6
7
  readonly state_id: StateID;
7
8
  readonly district_id: number;
8
9
  readonly name: string;
10
+ readonly geom: Geom;
9
11
  readonly [x: string]: any;
10
12
  constructor(federal_congress_district: any);
11
13
  static is(federal_congress_district: any): federal_congress_district is FederalCongressDistrict;
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { is_state_id } from "../jurisdictions/State.js";
2
3
  export class FederalCongressDistrict {
3
4
  federal_congress_district_id;
@@ -6,6 +7,7 @@ export class FederalCongressDistrict {
6
7
  state_id;
7
8
  district_id;
8
9
  name;
10
+ geom;
9
11
  constructor(federal_congress_district) {
10
12
  if (!FederalCongressDistrict.is(federal_congress_district)) {
11
13
  throw Error("Invalid input.");
@@ -16,6 +18,7 @@ export class FederalCongressDistrict {
16
18
  this.state_id = federal_congress_district.state_id;
17
19
  this.district_id = federal_congress_district.district_id;
18
20
  this.name = federal_congress_district.name;
21
+ this.geom = federal_congress_district.geom;
19
22
  }
20
23
  static is(federal_congress_district) {
21
24
  return (federal_congress_district !== undefined &&
@@ -24,6 +27,7 @@ export class FederalCongressDistrict {
24
27
  typeof federal_congress_district.chamber_id === "string" &&
25
28
  is_state_id(federal_congress_district.state_id) &&
26
29
  typeof federal_congress_district.district_id === "number" &&
27
- typeof federal_congress_district.name === "string");
30
+ typeof federal_congress_district.name === "string" &&
31
+ Geom.is(federal_congress_district.geom));
28
32
  }
29
33
  }
@@ -0,0 +1,5 @@
1
+ export declare class Geom {
2
+ readonly wkt: string;
3
+ constructor(geom: any);
4
+ static is(geom: any): geom is Geom;
5
+ }
@@ -0,0 +1,13 @@
1
+ export class Geom {
2
+ wkt;
3
+ constructor(geom) {
4
+ if (!Geom.is(geom)) {
5
+ throw Error("Invalid input.");
6
+ }
7
+ this.wkt = geom.wkt;
8
+ }
9
+ static is(geom) {
10
+ return (geom !== undefined &&
11
+ typeof geom.wkt === "string");
12
+ }
13
+ }
@@ -1,3 +1,4 @@
1
+ import { Geom } from "./Geom.js";
1
2
  export declare const state_ids: readonly ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY", "DC", "PR", "AS", "GU", "MP", "VI"];
2
3
  export type StateID = typeof state_ids[number];
3
4
  export declare function is_state_id(state_id: any): state_id is StateID;
@@ -6,6 +7,7 @@ export declare class State {
6
7
  readonly name: string;
7
8
  readonly federal_census_state_id: string;
8
9
  readonly is_territory: boolean;
10
+ readonly geom?: Geom;
9
11
  constructor(state: any);
10
12
  static is(state: any): state is State;
11
13
  }
@@ -1,3 +1,4 @@
1
+ import { Geom } from "./Geom.js";
1
2
  export const state_ids = ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY", "DC", "PR", "AS", "GU", "MP", "VI"];
2
3
  export function is_state_id(state_id) {
3
4
  return state_ids.includes(state_id);
@@ -7,6 +8,7 @@ export class State {
7
8
  name;
8
9
  federal_census_state_id;
9
10
  is_territory;
11
+ geom;
10
12
  constructor(state) {
11
13
  if (!State.is(state)) {
12
14
  throw Error("Invalid input.");
@@ -15,13 +17,15 @@ export class State {
15
17
  this.name = state.name;
16
18
  this.federal_census_state_id = state.federal_census_state_id;
17
19
  this.is_territory = state.is_territory;
20
+ this.geom = state.geom;
18
21
  }
19
22
  static is(state) {
20
23
  return (state !== undefined &&
21
24
  is_state_id(state.state_id) &&
22
25
  typeof state.name === "string" &&
23
26
  typeof state.federal_census_state_id === "string" &&
24
- typeof state.is_territory === "boolean");
27
+ typeof state.is_territory === "boolean" &&
28
+ Geom.is(state.geom));
25
29
  }
26
30
  }
27
31
  export const states_by_state_id = {
@@ -1,5 +1,6 @@
1
1
  import { VoterPartyTypeID } from "../prism/Voter.js";
2
2
  import { StateID } from "../jurisdictions/State.js";
3
+ import { Geom } from "../jurisdictions/Geom.js";
3
4
  export declare class LALFileVoter {
4
5
  readonly lal_file_id: string;
5
6
  readonly lal_voter_id: string;
@@ -19,6 +20,7 @@ export declare class LALFileVoter {
19
20
  readonly address_residence_zip_id?: string;
20
21
  readonly address_residence_latitude: number;
21
22
  readonly address_residence_longitude: number;
23
+ readonly address_residence_geom: Geom;
22
24
  readonly address_residence_coordinates_type_id: string;
23
25
  readonly address_residence_property_sqft?: number;
24
26
  readonly address_residence_property_type_id?: string;
@@ -1,5 +1,6 @@
1
1
  import { is_voter_party_type_id } from "../prism/Voter.js";
2
2
  import { is_state_id } from "../jurisdictions/State.js";
3
+ import { Geom } from "../jurisdictions/Geom.js";
3
4
  export class LALFileVoter {
4
5
  lal_file_id;
5
6
  lal_voter_id;
@@ -19,6 +20,7 @@ export class LALFileVoter {
19
20
  address_residence_zip_id;
20
21
  address_residence_latitude;
21
22
  address_residence_longitude;
23
+ address_residence_geom;
22
24
  address_residence_coordinates_type_id;
23
25
  address_residence_property_sqft;
24
26
  address_residence_property_type_id;
@@ -63,6 +65,7 @@ export class LALFileVoter {
63
65
  this.address_residence_zip_id = lal_file_voter.address_residence_zip_id;
64
66
  this.address_residence_latitude = lal_file_voter.address_residence_latitude;
65
67
  this.address_residence_longitude = lal_file_voter.address_residence_longitude;
68
+ this.address_residence_geom = lal_file_voter.address_residence_geom;
66
69
  this.address_residence_coordinates_type_id = lal_file_voter.address_residence_coordinates_type_id;
67
70
  this.address_residence_property_sqft = lal_file_voter.address_residence_property_sqft;
68
71
  this.address_residence_property_type_id = lal_file_voter.address_residence_property_type_id;
@@ -106,6 +109,7 @@ export class LALFileVoter {
106
109
  (lal_file_voter.address_residence_zip_id === undefined || typeof lal_file_voter.address_residence_zip_id === "string") &&
107
110
  typeof lal_file_voter.address_residence_latitude === "number" && !isNaN(lal_file_voter.address_residence_latitude) &&
108
111
  typeof lal_file_voter.address_residence_longitude === "number" && !isNaN(lal_file_voter.address_residence_longitude) &&
112
+ Geom.is(lal_file_voter.address_residence_geom) &&
109
113
  typeof lal_file_voter.address_residence_coordinates_type_id === "string" &&
110
114
  (lal_file_voter.address_residence_property_sqft === undefined || typeof lal_file_voter.address_residence_property_sqft === "number" && !isNaN(lal_file_voter.address_residence_property_sqft)) &&
111
115
  (lal_file_voter.address_residence_property_type_id === undefined || typeof lal_file_voter.address_residence_property_type_id === "string") &&
@@ -1,6 +1,7 @@
1
1
  import { LALFileVoter } from "../lal/LALFileVoter.js";
2
2
  import { StateID } from "../jurisdictions/State.js";
3
3
  import { VoterPartyTypeID } from "./Voter.js";
4
+ import { Geom } from "../jurisdictions/Geom.js";
4
5
  export declare class StateVoter {
5
6
  readonly state_id: StateID;
6
7
  readonly voter_id: string;
@@ -17,6 +18,7 @@ export declare class StateVoter {
17
18
  readonly address_residence_zip_id?: string;
18
19
  readonly address_residence_latitude: number;
19
20
  readonly address_residence_longitude: number;
21
+ readonly address_residence_geom: Geom;
20
22
  readonly address_residence_coordinates_type_id: string;
21
23
  readonly party_type_id: VoterPartyTypeID;
22
24
  readonly [x: string]: any;
@@ -1,6 +1,7 @@
1
1
  import { LALFileVoter } from "../lal/LALFileVoter.js";
2
2
  import { is_state_id } from "../jurisdictions/State.js";
3
3
  import { is_voter_party_type_id } from "./Voter.js";
4
+ import { Geom } from "../jurisdictions/Geom.js";
4
5
  export class StateVoter {
5
6
  state_id;
6
7
  voter_id;
@@ -17,6 +18,7 @@ export class StateVoter {
17
18
  address_residence_zip_id;
18
19
  address_residence_latitude;
19
20
  address_residence_longitude;
21
+ address_residence_geom;
20
22
  address_residence_coordinates_type_id;
21
23
  party_type_id;
22
24
  constructor(state_voter) {
@@ -38,6 +40,7 @@ export class StateVoter {
38
40
  this.address_residence_zip_id = state_voter.address_residence_zip_id;
39
41
  this.address_residence_latitude = state_voter.address_residence_latitude;
40
42
  this.address_residence_longitude = state_voter.address_residence_longitude;
43
+ this.address_residence_geom = state_voter.address_residence_geom;
41
44
  this.address_residence_coordinates_type_id = state_voter.address_residence_coordinates_type_id;
42
45
  this.party_type_id = state_voter.party_type_id;
43
46
  }
@@ -58,6 +61,7 @@ export class StateVoter {
58
61
  (state_voter.address_residence_zip_id === undefined || typeof state_voter.address_residence_zip_id === "string") &&
59
62
  typeof state_voter.address_residence_latitude === "number" && !isNaN(state_voter.address_residence_latitude) &&
60
63
  typeof state_voter.address_residence_longitude === "number" && !isNaN(state_voter.address_residence_longitude) &&
64
+ Geom.is(state_voter.address_residence_geom) &&
61
65
  typeof state_voter.address_residence_coordinates_type_id === "string" &&
62
66
  is_voter_party_type_id(state_voter.party_type_id));
63
67
  }
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { StateID } from "../jurisdictions/State.js";
2
3
  export declare class StateLegislatureDistrict {
3
4
  readonly state_legislature_district_id: string;
@@ -6,6 +7,7 @@ export declare class StateLegislatureDistrict {
6
7
  readonly chamber_id: string;
7
8
  readonly district_id: string;
8
9
  readonly name: string;
10
+ readonly geom: Geom;
9
11
  readonly [x: string]: any;
10
12
  constructor(state_legislature_district: any);
11
13
  static is(state_legislature_district: any): state_legislature_district is StateLegislatureDistrict;
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom.js";
1
2
  import { is_state_id } from "../jurisdictions/State.js";
2
3
  export class StateLegislatureDistrict {
3
4
  state_legislature_district_id;
@@ -6,6 +7,7 @@ export class StateLegislatureDistrict {
6
7
  chamber_id;
7
8
  district_id;
8
9
  name;
10
+ geom;
9
11
  constructor(state_legislature_district) {
10
12
  if (!StateLegislatureDistrict.is(state_legislature_district)) {
11
13
  throw Error("Invalid input.");
@@ -16,6 +18,7 @@ export class StateLegislatureDistrict {
16
18
  this.chamber_id = state_legislature_district.chamber_id;
17
19
  this.district_id = state_legislature_district.district_id;
18
20
  this.name = state_legislature_district.name;
21
+ this.geom = state_legislature_district.geom;
19
22
  }
20
23
  static is(state_legislature_district) {
21
24
  return (state_legislature_district !== undefined &&
@@ -24,6 +27,7 @@ export class StateLegislatureDistrict {
24
27
  typeof state_legislature_district.legislature_id === "number" &&
25
28
  typeof state_legislature_district.chamber_id === "string" &&
26
29
  typeof state_legislature_district.district_id === "string" &&
27
- typeof state_legislature_district.name === "string");
30
+ typeof state_legislature_district.name === "string" &&
31
+ Geom.is(state_legislature_district.geom));
28
32
  }
29
33
  }
@@ -4,7 +4,7 @@ export declare class WebDocument {
4
4
  readonly url: string;
5
5
  readonly title: string;
6
6
  readonly description: string;
7
- readonly time: string;
7
+ readonly time?: string;
8
8
  readonly snippets?: string[];
9
9
  readonly s3_id_html?: string;
10
10
  readonly s3_id_txt?: string;
@@ -29,7 +29,7 @@ export class WebDocument {
29
29
  typeof web_document.url === "string" &&
30
30
  typeof web_document.title === "string" &&
31
31
  typeof web_document.description === "string" &&
32
- typeof web_document.time === "string" &&
32
+ (web_document.time === undefined || typeof web_document.time === "string") &&
33
33
  (web_document.snippets === undefined || Array.isArray(web_document.snippets) && web_document.snippets.every((snippet) => typeof snippet === "string")) &&
34
34
  (web_document.s3_id_html === undefined || typeof web_document.s3_id_html === "string") &&
35
35
  (web_document.s3_id_txt === undefined || typeof web_document.s3_id_txt === "string"));
@@ -3,7 +3,7 @@ export declare class WebDocumentTag {
3
3
  readonly web_document_id: string;
4
4
  readonly tag_type_id: string;
5
5
  readonly tag_id: string;
6
- readonly time: string;
6
+ readonly time?: string;
7
7
  readonly is_relevant?: boolean;
8
8
  readonly sentiment_id?: string;
9
9
  readonly [x: string]: any;
@@ -22,7 +22,7 @@ export class WebDocumentTag {
22
22
  typeof web_document_tag.web_document_id === "string" &&
23
23
  typeof web_document_tag.tag_type_id === "string" &&
24
24
  typeof web_document_tag.tag_id === "string" &&
25
- typeof web_document_tag.time === "string" &&
25
+ (web_document_tag.time === undefined || typeof web_document_tag.time === "string") &&
26
26
  (web_document_tag.is_relevant === undefined || typeof web_document_tag.is_relevant === "boolean") &&
27
27
  (web_document_tag.sentiment_id === undefined || typeof web_document_tag.sentiment_id === "string"));
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.279",
3
+ "version": "1.0.281",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom"
1
2
  import { is_state_id, StateID } from "../jurisdictions/State"
2
3
 
3
4
  export class FederalCensusBlock {
@@ -9,6 +10,7 @@ export class FederalCensusBlock {
9
10
  readonly tract_id : string
10
11
  readonly block_id : string
11
12
  readonly state_id : StateID
13
+ readonly geom : Geom
12
14
  readonly [x : string] : any
13
15
 
14
16
  constructor(federal_census_block : any) {
@@ -23,6 +25,7 @@ export class FederalCensusBlock {
23
25
  this.tract_id = federal_census_block.tract_id
24
26
  this.block_id = federal_census_block.block_id
25
27
  this.state_id = federal_census_block.state_id
28
+ this.geom = federal_census_block.geom
26
29
  }
27
30
 
28
31
  static is(federal_census_block : any) : federal_census_block is FederalCensusBlock {
@@ -35,7 +38,8 @@ export class FederalCensusBlock {
35
38
  typeof federal_census_block.county_id === "string" &&
36
39
  typeof federal_census_block.tract_id === "string" &&
37
40
  typeof federal_census_block.block_id === "string" &&
38
- is_state_id(federal_census_block.state_id)
41
+ is_state_id(federal_census_block.state_id) &&
42
+ Geom.is(federal_census_block.geom)
39
43
  )
40
44
  }
41
45
 
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom"
1
2
  import { is_state_id, StateID } from "../jurisdictions/State"
2
3
 
3
4
  export class FederalCensusCounty {
@@ -8,6 +9,7 @@ export class FederalCensusCounty {
8
9
  readonly name : string
9
10
  readonly county_type_id : string
10
11
  readonly function_type_id : string
12
+ readonly geom : Geom
11
13
  readonly [x : string] : any
12
14
 
13
15
  constructor(federal_census_county : any) {
@@ -21,6 +23,7 @@ export class FederalCensusCounty {
21
23
  this.name = federal_census_county.name
22
24
  this.county_type_id = federal_census_county.county_type_id
23
25
  this.function_type_id = federal_census_county.function_type_id
26
+ this.geom = federal_census_county.geom
24
27
  }
25
28
 
26
29
  static is(federal_census_county : any) : federal_census_county is FederalCensusCounty {
@@ -32,7 +35,8 @@ export class FederalCensusCounty {
32
35
  is_state_id(federal_census_county.state_id) &&
33
36
  typeof federal_census_county.name === "string" &&
34
37
  typeof federal_census_county.county_type_id === "string" &&
35
- typeof federal_census_county.function_type_id === "string"
38
+ typeof federal_census_county.function_type_id === "string" &&
39
+ Geom.is(federal_census_county.geom)
36
40
  )
37
41
  }
38
42
 
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom"
1
2
  import { is_state_id, StateID } from "../jurisdictions/State"
2
3
 
3
4
  export class FederalCensusMunicipality {
@@ -7,6 +8,7 @@ export class FederalCensusMunicipality {
7
8
  readonly state_id : StateID
8
9
  readonly municipality_type_id? : string
9
10
  readonly name : string
11
+ readonly geom : Geom
10
12
  readonly [x : string] : any
11
13
 
12
14
  constructor(federal_census_municipality : any) {
@@ -19,6 +21,7 @@ export class FederalCensusMunicipality {
19
21
  this.state_id = federal_census_municipality.state_id
20
22
  this.municipality_type_id = federal_census_municipality.municipality_type_id
21
23
  this.name = federal_census_municipality.name
24
+ this.geom = federal_census_municipality.geom
22
25
  }
23
26
 
24
27
  static is(federal_census_municipality : any) : federal_census_municipality is FederalCensusMunicipality {
@@ -29,7 +32,8 @@ export class FederalCensusMunicipality {
29
32
  typeof federal_census_municipality.municipality_id === "string" &&
30
33
  is_state_id(federal_census_municipality.state_id) &&
31
34
  (federal_census_municipality.municipality_type_id === undefined || typeof federal_census_municipality.municipality_type_id === "string") &&
32
- typeof federal_census_municipality.name === "string"
35
+ typeof federal_census_municipality.name === "string" &&
36
+ Geom.is(federal_census_municipality.geom)
33
37
  )
34
38
  }
35
39
 
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom"
1
2
  import { is_state_id, StateID } from "../jurisdictions/State"
2
3
 
3
4
  export const federal_census_school_district_type_ids = ["UNIFIED", "PRIMARY", "SECONDARY"] as const
@@ -15,6 +16,7 @@ export class FederalCensusSchoolDistrict {
15
16
  readonly state_id : StateID
16
17
  readonly school_district_type_id? : FederalCensusSchoolDistrictTypeID
17
18
  readonly name : string
19
+ readonly geom : Geom
18
20
  readonly [x : string] : any
19
21
 
20
22
  constructor(federal_census_school_district : any) {
@@ -27,6 +29,7 @@ export class FederalCensusSchoolDistrict {
27
29
  this.state_id = federal_census_school_district.state_id
28
30
  this.school_district_type_id = federal_census_school_district.school_district_type_id
29
31
  this.name = federal_census_school_district.name
32
+ this.geom = federal_census_school_district.geom
30
33
  }
31
34
 
32
35
  static is(federal_census_school_district : any) : federal_census_school_district is FederalCensusSchoolDistrict {
@@ -37,7 +40,8 @@ export class FederalCensusSchoolDistrict {
37
40
  typeof federal_census_school_district.school_district_id === "string" &&
38
41
  is_state_id(federal_census_school_district.state_id) &&
39
42
  (federal_census_school_district.school_district_type_id === undefined || typeof federal_census_school_district.school_district_type_id === "string") &&
40
- typeof federal_census_school_district.name === "string"
43
+ typeof federal_census_school_district.name === "string" &&
44
+ Geom.is(federal_census_school_district.geom)
41
45
  )
42
46
  }
43
47
 
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom"
1
2
  import { is_state_id, StateID } from "../jurisdictions/State"
2
3
 
3
4
  export class FederalCensusTract {
@@ -7,6 +8,7 @@ export class FederalCensusTract {
7
8
  readonly county_id : string
8
9
  readonly tract_id : string
9
10
  readonly state_id : StateID
11
+ readonly geom : Geom
10
12
  readonly [x : string] : any
11
13
 
12
14
  constructor(federal_census_tract : any) {
@@ -19,6 +21,7 @@ export class FederalCensusTract {
19
21
  this.county_id = federal_census_tract.county_id
20
22
  this.tract_id = federal_census_tract.tract_id
21
23
  this.state_id = federal_census_tract.state_id
24
+ this.geom = federal_census_tract.geom
22
25
  }
23
26
 
24
27
  static is(federal_census_tract : any) : federal_census_tract is FederalCensusTract {
@@ -29,7 +32,8 @@ export class FederalCensusTract {
29
32
  typeof federal_census_tract.federal_census_id === "number" &&
30
33
  typeof federal_census_tract.county_id === "string" &&
31
34
  typeof federal_census_tract.tract_id === "string" &&
32
- is_state_id(federal_census_tract.state_id)
35
+ is_state_id(federal_census_tract.state_id) &&
36
+ Geom.is(federal_census_tract.geom)
33
37
  )
34
38
  }
35
39
 
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom"
1
2
  import { is_state_id, state_ids, StateID } from "../jurisdictions/State"
2
3
 
3
4
  export class FederalCongressDistrict {
@@ -7,6 +8,7 @@ export class FederalCongressDistrict {
7
8
  readonly state_id : StateID
8
9
  readonly district_id : number
9
10
  readonly name : string
11
+ readonly geom : Geom
10
12
  readonly [x : string] : any
11
13
 
12
14
 
@@ -20,6 +22,7 @@ export class FederalCongressDistrict {
20
22
  this.state_id = federal_congress_district.state_id
21
23
  this.district_id = federal_congress_district.district_id
22
24
  this.name = federal_congress_district.name
25
+ this.geom = federal_congress_district.geom
23
26
  }
24
27
 
25
28
  static is(federal_congress_district : any) : federal_congress_district is FederalCongressDistrict {
@@ -30,7 +33,8 @@ export class FederalCongressDistrict {
30
33
  typeof federal_congress_district.chamber_id === "string" &&
31
34
  is_state_id(federal_congress_district.state_id) &&
32
35
  typeof federal_congress_district.district_id === "number" &&
33
- typeof federal_congress_district.name === "string"
36
+ typeof federal_congress_district.name === "string" &&
37
+ Geom.is(federal_congress_district.geom)
34
38
  )
35
39
  }
36
40
 
@@ -0,0 +1,17 @@
1
+ export class Geom {
2
+ readonly wkt : string
3
+
4
+ constructor(geom : any) {
5
+ if (!Geom.is(geom)) {
6
+ throw Error("Invalid input.")
7
+ }
8
+ this.wkt = geom.wkt
9
+ }
10
+
11
+ static is(geom : any) : geom is Geom {
12
+ return (
13
+ geom !== undefined &&
14
+ typeof geom.wkt === "string"
15
+ )
16
+ }
17
+ }
@@ -1,3 +1,5 @@
1
+ import { Geom } from "./Geom"
2
+
1
3
  export const state_ids = ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY", "DC", "PR", "AS", "GU", "MP", "VI"] as const
2
4
 
3
5
  export type StateID = typeof state_ids[number]
@@ -11,6 +13,7 @@ export class State {
11
13
  readonly name : string
12
14
  readonly federal_census_state_id : string
13
15
  readonly is_territory : boolean
16
+ readonly geom? : Geom
14
17
 
15
18
  constructor(state : any) {
16
19
  if (!State.is(state)) {
@@ -20,6 +23,7 @@ export class State {
20
23
  this.name = state.name
21
24
  this.federal_census_state_id = state.federal_census_state_id
22
25
  this.is_territory = state.is_territory
26
+ this.geom = state.geom
23
27
  }
24
28
 
25
29
  static is(state : any) : state is State {
@@ -28,7 +32,8 @@ export class State {
28
32
  is_state_id(state.state_id) &&
29
33
  typeof state.name === "string" &&
30
34
  typeof state.federal_census_state_id === "string" &&
31
- typeof state.is_territory === "boolean"
35
+ typeof state.is_territory === "boolean" &&
36
+ Geom.is(state.geom)
32
37
  )
33
38
  }
34
39
  }
@@ -1,5 +1,6 @@
1
1
  import { is_voter_party_type_id, VoterPartyTypeID } from "../prism/Voter"
2
2
  import { is_state_id, StateID } from "../jurisdictions/State"
3
+ import { Geom } from "../jurisdictions/Geom"
3
4
 
4
5
  export class LALFileVoter {
5
6
  readonly lal_file_id : string
@@ -20,6 +21,7 @@ export class LALFileVoter {
20
21
  readonly address_residence_zip_id? : string
21
22
  readonly address_residence_latitude : number
22
23
  readonly address_residence_longitude : number
24
+ readonly address_residence_geom : Geom
23
25
  readonly address_residence_coordinates_type_id : string
24
26
  readonly address_residence_property_sqft? : number
25
27
  readonly address_residence_property_type_id? : string
@@ -66,6 +68,7 @@ export class LALFileVoter {
66
68
  this.address_residence_zip_id = lal_file_voter.address_residence_zip_id
67
69
  this.address_residence_latitude = lal_file_voter.address_residence_latitude
68
70
  this.address_residence_longitude = lal_file_voter.address_residence_longitude
71
+ this.address_residence_geom = lal_file_voter.address_residence_geom
69
72
  this.address_residence_coordinates_type_id = lal_file_voter.address_residence_coordinates_type_id
70
73
  this.address_residence_property_sqft = lal_file_voter.address_residence_property_sqft
71
74
  this.address_residence_property_type_id = lal_file_voter.address_residence_property_type_id
@@ -111,6 +114,7 @@ export class LALFileVoter {
111
114
  (lal_file_voter.address_residence_zip_id === undefined || typeof lal_file_voter.address_residence_zip_id === "string") &&
112
115
  typeof lal_file_voter.address_residence_latitude === "number" && !isNaN(lal_file_voter.address_residence_latitude) &&
113
116
  typeof lal_file_voter.address_residence_longitude === "number" && !isNaN(lal_file_voter.address_residence_longitude) &&
117
+ Geom.is(lal_file_voter.address_residence_geom) &&
114
118
  typeof lal_file_voter.address_residence_coordinates_type_id === "string" &&
115
119
  (lal_file_voter.address_residence_property_sqft === undefined || typeof lal_file_voter.address_residence_property_sqft === "number" && !isNaN(lal_file_voter.address_residence_property_sqft)) &&
116
120
  (lal_file_voter.address_residence_property_type_id === undefined || typeof lal_file_voter.address_residence_property_type_id === "string") &&
@@ -3,6 +3,7 @@ import { is_state_id, StateID } from "../jurisdictions/State"
3
3
  import { StateVoterFeature } from "./StateVoterFeature"
4
4
  import { StateVoterTarget } from "./StateVoterTarget"
5
5
  import { is_voter_party_type_id, VoterPartyTypeID } from "./Voter"
6
+ import { Geom } from "../jurisdictions/Geom"
6
7
 
7
8
  export class StateVoter {
8
9
  readonly state_id : StateID
@@ -20,6 +21,7 @@ export class StateVoter {
20
21
  readonly address_residence_zip_id? : string
21
22
  readonly address_residence_latitude : number
22
23
  readonly address_residence_longitude : number
24
+ readonly address_residence_geom : Geom
23
25
  readonly address_residence_coordinates_type_id : string
24
26
  readonly party_type_id : VoterPartyTypeID
25
27
  readonly [x : string] : any
@@ -43,6 +45,7 @@ export class StateVoter {
43
45
  this.address_residence_zip_id = state_voter.address_residence_zip_id
44
46
  this.address_residence_latitude = state_voter.address_residence_latitude
45
47
  this.address_residence_longitude = state_voter.address_residence_longitude
48
+ this.address_residence_geom = state_voter.address_residence_geom
46
49
  this.address_residence_coordinates_type_id = state_voter.address_residence_coordinates_type_id
47
50
  this.party_type_id = state_voter.party_type_id
48
51
  }
@@ -65,6 +68,7 @@ export class StateVoter {
65
68
  (state_voter.address_residence_zip_id === undefined || typeof state_voter.address_residence_zip_id === "string") &&
66
69
  typeof state_voter.address_residence_latitude === "number" && !isNaN(state_voter.address_residence_latitude) &&
67
70
  typeof state_voter.address_residence_longitude === "number" && !isNaN(state_voter.address_residence_longitude) &&
71
+ Geom.is(state_voter.address_residence_geom) &&
68
72
  typeof state_voter.address_residence_coordinates_type_id === "string" &&
69
73
  is_voter_party_type_id(state_voter.party_type_id)
70
74
  )
@@ -1,3 +1,4 @@
1
+ import { Geom } from "../jurisdictions/Geom"
1
2
  import { is_state_id, StateID } from "../jurisdictions/State"
2
3
 
3
4
  export class StateLegislatureDistrict {
@@ -7,6 +8,7 @@ export class StateLegislatureDistrict {
7
8
  readonly chamber_id : string
8
9
  readonly district_id : string
9
10
  readonly name : string
11
+ readonly geom : Geom
10
12
  readonly [x : string] : any
11
13
 
12
14
 
@@ -20,6 +22,7 @@ export class StateLegislatureDistrict {
20
22
  this.chamber_id = state_legislature_district.chamber_id
21
23
  this.district_id = state_legislature_district.district_id
22
24
  this.name = state_legislature_district.name
25
+ this.geom = state_legislature_district.geom
23
26
  }
24
27
 
25
28
  static is(state_legislature_district : any) : state_legislature_district is StateLegislatureDistrict {
@@ -30,7 +33,8 @@ export class StateLegislatureDistrict {
30
33
  typeof state_legislature_district.legislature_id === "number" &&
31
34
  typeof state_legislature_district.chamber_id === "string" &&
32
35
  typeof state_legislature_district.district_id === "string" &&
33
- typeof state_legislature_district.name === "string"
36
+ typeof state_legislature_district.name === "string" &&
37
+ Geom.is(state_legislature_district.geom)
34
38
  )
35
39
  }
36
40
 
@@ -4,7 +4,7 @@ export class WebDocument {
4
4
  readonly url : string
5
5
  readonly title : string
6
6
  readonly description : string
7
- readonly time : string
7
+ readonly time? : string
8
8
  readonly snippets? : string[]
9
9
  readonly s3_id_html? : string
10
10
  readonly s3_id_txt? : string
@@ -32,7 +32,7 @@ export class WebDocument {
32
32
  typeof web_document.url === "string" &&
33
33
  typeof web_document.title === "string" &&
34
34
  typeof web_document.description === "string" &&
35
- typeof web_document.time === "string" &&
35
+ (web_document.time === undefined || typeof web_document.time === "string") &&
36
36
  (web_document.snippets === undefined || Array.isArray(web_document.snippets) && web_document.snippets.every((snippet : any) => typeof snippet === "string")) &&
37
37
  (web_document.s3_id_html === undefined || typeof web_document.s3_id_html === "string") &&
38
38
  (web_document.s3_id_txt === undefined || typeof web_document.s3_id_txt === "string")
@@ -4,7 +4,7 @@ export class WebDocumentTag {
4
4
  readonly web_document_id : string
5
5
  readonly tag_type_id : string
6
6
  readonly tag_id : string
7
- readonly time : string
7
+ readonly time? : string
8
8
  readonly is_relevant? : boolean
9
9
  readonly sentiment_id? : string
10
10
  readonly [x : string] : any
@@ -27,7 +27,7 @@ export class WebDocumentTag {
27
27
  typeof web_document_tag.web_document_id === "string" &&
28
28
  typeof web_document_tag.tag_type_id === "string" &&
29
29
  typeof web_document_tag.tag_id === "string" &&
30
- typeof web_document_tag.time === "string" &&
30
+ (web_document_tag.time === undefined || typeof web_document_tag.time === "string") &&
31
31
  (web_document_tag.is_relevant === undefined || typeof web_document_tag.is_relevant === "boolean") &&
32
32
  (web_document_tag.sentiment_id === undefined || typeof web_document_tag.sentiment_id === "string")
33
33
  )