triangle-types 1.0.167 → 1.0.169

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.
@@ -5,6 +5,8 @@ export declare class FederalCongressDistrict {
5
5
  readonly chamber_id: string;
6
6
  readonly state_id: StateID;
7
7
  readonly district_id: number;
8
+ readonly name: string;
9
+ readonly s3_id: string;
8
10
  constructor(federal_congress_district: any);
9
11
  static is(federal_congress_district: any): federal_congress_district is FederalCongressDistrict;
10
12
  }
@@ -5,6 +5,8 @@ export class FederalCongressDistrict {
5
5
  chamber_id;
6
6
  state_id;
7
7
  district_id;
8
+ name;
9
+ s3_id;
8
10
  constructor(federal_congress_district) {
9
11
  if (!FederalCongressDistrict.is(federal_congress_district)) {
10
12
  throw Error("Invalid input.");
@@ -14,6 +16,8 @@ export class FederalCongressDistrict {
14
16
  this.chamber_id = federal_congress_district.chamber_id;
15
17
  this.state_id = federal_congress_district.state_id;
16
18
  this.district_id = federal_congress_district.district_id;
19
+ this.name = federal_congress_district.name;
20
+ this.s3_id = federal_congress_district.s3_id;
17
21
  }
18
22
  static is(federal_congress_district) {
19
23
  return (federal_congress_district !== undefined &&
@@ -21,6 +25,8 @@ export class FederalCongressDistrict {
21
25
  typeof federal_congress_district.federal_congress_id === "number" &&
22
26
  typeof federal_congress_district.chamber_id === "string" &&
23
27
  is_state_id(federal_congress_district.state_id) &&
24
- typeof federal_congress_district.district_id === "number");
28
+ typeof federal_congress_district.district_id === "number" &&
29
+ typeof federal_congress_district.name === "string" &&
30
+ typeof federal_congress_district.s3_id === "number");
25
31
  }
26
32
  }
@@ -6,6 +6,7 @@ export declare class StateLegislatureDistrict {
6
6
  readonly chamber_id: string;
7
7
  readonly district_id: number;
8
8
  readonly name: string;
9
+ readonly s3_id: string;
9
10
  constructor(state_legislature_district: any);
10
11
  static is(state_legislature_district: any): state_legislature_district is StateLegislatureDistrict;
11
12
  }
@@ -6,6 +6,7 @@ export class StateLegislatureDistrict {
6
6
  chamber_id;
7
7
  district_id;
8
8
  name;
9
+ s3_id;
9
10
  constructor(state_legislature_district) {
10
11
  if (!StateLegislatureDistrict.is(state_legislature_district)) {
11
12
  throw Error("Invalid input.");
@@ -16,6 +17,7 @@ export class StateLegislatureDistrict {
16
17
  this.chamber_id = state_legislature_district.chamber_id;
17
18
  this.district_id = state_legislature_district.district_id;
18
19
  this.name = state_legislature_district.name;
20
+ this.s3_id = state_legislature_district.s3_id;
19
21
  }
20
22
  static is(state_legislature_district) {
21
23
  return (state_legislature_district !== undefined &&
@@ -24,6 +26,7 @@ export class StateLegislatureDistrict {
24
26
  typeof state_legislature_district.legislature_id === "number" &&
25
27
  typeof state_legislature_district.chamber_id === "string" &&
26
28
  typeof state_legislature_district.district_id === "number" &&
27
- typeof state_legislature_district.name === "string");
29
+ typeof state_legislature_district.name === "string" &&
30
+ typeof state_legislature_district.s3_id === "string");
28
31
  }
29
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.167",
3
+ "version": "1.0.169",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -6,6 +6,8 @@ export class FederalCongressDistrict {
6
6
  readonly chamber_id : string
7
7
  readonly state_id : StateID
8
8
  readonly district_id : number
9
+ readonly name : string
10
+ readonly s3_id : string
9
11
 
10
12
 
11
13
  constructor(federal_congress_district : any) {
@@ -17,6 +19,8 @@ export class FederalCongressDistrict {
17
19
  this.chamber_id = federal_congress_district.chamber_id
18
20
  this.state_id = federal_congress_district.state_id
19
21
  this.district_id = federal_congress_district.district_id
22
+ this.name = federal_congress_district.name
23
+ this.s3_id = federal_congress_district.s3_id
20
24
  }
21
25
 
22
26
  static is(federal_congress_district : any) : federal_congress_district is FederalCongressDistrict {
@@ -26,7 +30,9 @@ export class FederalCongressDistrict {
26
30
  typeof federal_congress_district.federal_congress_id === "number" &&
27
31
  typeof federal_congress_district.chamber_id === "string" &&
28
32
  is_state_id(federal_congress_district.state_id) &&
29
- typeof federal_congress_district.district_id === "number"
33
+ typeof federal_congress_district.district_id === "number" &&
34
+ typeof federal_congress_district.name === "string" &&
35
+ typeof federal_congress_district.s3_id === "number"
30
36
  )
31
37
  }
32
38
 
@@ -7,6 +7,7 @@ export class StateLegislatureDistrict {
7
7
  readonly chamber_id : string
8
8
  readonly district_id : number
9
9
  readonly name : string
10
+ readonly s3_id : string
10
11
 
11
12
 
12
13
  constructor(state_legislature_district : any) {
@@ -19,6 +20,7 @@ export class StateLegislatureDistrict {
19
20
  this.chamber_id = state_legislature_district.chamber_id
20
21
  this.district_id = state_legislature_district.district_id
21
22
  this.name = state_legislature_district.name
23
+ this.s3_id = state_legislature_district.s3_id
22
24
  }
23
25
 
24
26
  static is(state_legislature_district : any) : state_legislature_district is StateLegislatureDistrict {
@@ -29,7 +31,8 @@ export class StateLegislatureDistrict {
29
31
  typeof state_legislature_district.legislature_id === "number" &&
30
32
  typeof state_legislature_district.chamber_id === "string" &&
31
33
  typeof state_legislature_district.district_id === "number" &&
32
- typeof state_legislature_district.name === "string"
34
+ typeof state_legislature_district.name === "string" &&
35
+ typeof state_legislature_district.s3_id === "string"
33
36
  )
34
37
  }
35
38