triangle-types 1.0.318 → 1.0.319

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.
@@ -8,6 +8,9 @@ export declare class FederalCongressCommittee {
8
8
  readonly chamber_id: FederalCongressChamberID;
9
9
  readonly super_federal_congress_committee_id?: string;
10
10
  readonly sub_federal_congress_committee_ids?: string[];
11
+ readonly modify_time: string;
12
+ readonly is_active: boolean;
13
+ readonly url?: string;
11
14
  constructor(federal_congress_committee: any);
12
15
  static is(federal_congress_committee: any): federal_congress_committee is FederalCongressCommittee;
13
16
  }
@@ -9,10 +9,11 @@ export class FederalCongressCommittee {
9
9
  federal_congress_committee_id;
10
10
  name;
11
11
  chamber_id;
12
- // readonly is_active : boolean
13
- // readonly url? : string
14
12
  super_federal_congress_committee_id;
15
13
  sub_federal_congress_committee_ids;
14
+ modify_time;
15
+ is_active;
16
+ url;
16
17
  constructor(federal_congress_committee) {
17
18
  if (!FederalCongressCommittee.is(federal_congress_committee)) {
18
19
  throw Error("Invalid input.");
@@ -20,18 +21,20 @@ export class FederalCongressCommittee {
20
21
  this.federal_congress_committee_id = federal_congress_committee.federal_congress_committee_id;
21
22
  this.name = federal_congress_committee.name;
22
23
  this.chamber_id = federal_congress_committee.chamber_id;
23
- // this.is_active = federal_congress_committee.is_active
24
- // this.url = federal_congress_committee.url
25
24
  this.super_federal_congress_committee_id = federal_congress_committee.super_federal_congress_committee_id;
26
25
  this.sub_federal_congress_committee_ids = federal_congress_committee.sub_federal_congress_committee_ids;
26
+ this.modify_time = federal_congress_committee.modify_time;
27
+ this.is_active = federal_congress_committee.is_active;
28
+ this.url = federal_congress_committee.url;
27
29
  }
28
30
  static is(federal_congress_committee) {
29
31
  return (federal_congress_committee !== undefined &&
30
32
  typeof federal_congress_committee.federal_congress_committee_id === "string" &&
31
33
  typeof federal_congress_committee.name === "string" &&
32
34
  is_federal_congress_chamber_id(federal_congress_committee.chamber_id === "string") &&
33
- // typeof federal_congress_committee.is_active === "boolean" &&
34
- // (federal_congress_committee.url === undefined || typeof federal_congress_committee.url === "string") &&
35
+ typeof federal_congress_committee.is_active === "boolean" &&
36
+ (federal_congress_committee.url === undefined || typeof federal_congress_committee.url === "string") &&
37
+ typeof federal_congress_committee.modify_time === "string" &&
35
38
  (federal_congress_committee.super_federal_congress_committee_id === undefined || typeof federal_congress_committee.super_federal_congress_committee_id === "string") &&
36
39
  (federal_congress_committee.sub_federal_congress_committee_ids === undefined || Array.isArray(federal_congress_committee.sub_federal_congress_committee_ids) && federal_congress_committee.sub_federal_congress_committee_ids.every((sub_federal_congress_committee_id) => typeof sub_federal_congress_committee_id === "string")));
37
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.318",
3
+ "version": "1.0.319",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -14,10 +14,11 @@ export class FederalCongressCommittee {
14
14
  readonly federal_congress_committee_id : string
15
15
  readonly name : string
16
16
  readonly chamber_id : FederalCongressChamberID
17
- // readonly is_active : boolean
18
- // readonly url? : string
19
17
  readonly super_federal_congress_committee_id? : string
20
18
  readonly sub_federal_congress_committee_ids? : string[]
19
+ readonly modify_time : string
20
+ readonly is_active : boolean
21
+ readonly url? : string
21
22
 
22
23
 
23
24
  constructor(federal_congress_committee : any) {
@@ -27,10 +28,11 @@ export class FederalCongressCommittee {
27
28
  this.federal_congress_committee_id = federal_congress_committee.federal_congress_committee_id
28
29
  this.name = federal_congress_committee.name
29
30
  this.chamber_id = federal_congress_committee.chamber_id
30
- // this.is_active = federal_congress_committee.is_active
31
- // this.url = federal_congress_committee.url
32
31
  this.super_federal_congress_committee_id = federal_congress_committee.super_federal_congress_committee_id
33
32
  this.sub_federal_congress_committee_ids = federal_congress_committee.sub_federal_congress_committee_ids
33
+ this.modify_time = federal_congress_committee.modify_time
34
+ this.is_active = federal_congress_committee.is_active
35
+ this.url = federal_congress_committee.url
34
36
  }
35
37
 
36
38
  static is(federal_congress_committee : any) : federal_congress_committee is FederalCongressCommittee {
@@ -39,8 +41,9 @@ export class FederalCongressCommittee {
39
41
  typeof federal_congress_committee.federal_congress_committee_id === "string" &&
40
42
  typeof federal_congress_committee.name === "string" &&
41
43
  is_federal_congress_chamber_id(federal_congress_committee.chamber_id === "string") &&
42
- // typeof federal_congress_committee.is_active === "boolean" &&
43
- // (federal_congress_committee.url === undefined || typeof federal_congress_committee.url === "string") &&
44
+ typeof federal_congress_committee.is_active === "boolean" &&
45
+ (federal_congress_committee.url === undefined || typeof federal_congress_committee.url === "string") &&
46
+ typeof federal_congress_committee.modify_time === "string" &&
44
47
  (federal_congress_committee.super_federal_congress_committee_id === undefined || typeof federal_congress_committee.super_federal_congress_committee_id === "string") &&
45
48
  (federal_congress_committee.sub_federal_congress_committee_ids === undefined || Array.isArray(federal_congress_committee.sub_federal_congress_committee_ids) && federal_congress_committee.sub_federal_congress_committee_ids.every((sub_federal_congress_committee_id : any) => typeof sub_federal_congress_committee_id === "string"))
46
49
  )