triangle-types 1.0.303 → 1.0.305

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.
@@ -9,6 +9,7 @@ export declare class FederalCongressBill {
9
9
  readonly title: string;
10
10
  readonly modify_time: string;
11
11
  readonly intro_date: string;
12
+ readonly federal_congress_member_id?: string;
12
13
  constructor(federal_congress_bill: any);
13
14
  static is(federal_congress_bill: any): federal_congress_bill is FederalCongressBill;
14
15
  }
@@ -10,6 +10,7 @@ export class FederalCongressBill {
10
10
  title;
11
11
  modify_time;
12
12
  intro_date;
13
+ federal_congress_member_id;
13
14
  constructor(federal_congress_bill) {
14
15
  if (!FederalCongressBill.is(federal_congress_bill)) {
15
16
  throw Error("Invalid input.");
@@ -21,6 +22,7 @@ export class FederalCongressBill {
21
22
  this.title = federal_congress_bill.title;
22
23
  this.modify_time = federal_congress_bill.modify_time;
23
24
  this.intro_date = federal_congress_bill.intro_date;
25
+ this.federal_congress_member_id = federal_congress_bill.federal_congress_member_id;
24
26
  }
25
27
  static is(federal_congress_bill) {
26
28
  return (federal_congress_bill !== undefined &&
@@ -30,6 +32,7 @@ export class FederalCongressBill {
30
32
  typeof federal_congress_bill.number === "number" &&
31
33
  typeof federal_congress_bill.title === "string" &&
32
34
  typeof federal_congress_bill.modify_time === "string" &&
33
- typeof federal_congress_bill.intro_date === "string");
35
+ typeof federal_congress_bill.intro_date === "string" &&
36
+ (federal_congress_bill.federal_congress_member_id === undefined || typeof federal_congress_bill.federal_congress_member_id === "string"));
34
37
  }
35
38
  }
@@ -1,8 +1,9 @@
1
1
  export declare class FederalCongressBillTag {
2
- readonly web_document_id: string;
2
+ readonly federal_congress_id: number;
3
+ readonly bill_id: string;
3
4
  readonly tag_type_id: string;
4
5
  readonly tag_id: string;
5
6
  readonly [x: string]: any;
6
- constructor(web_document_tag: FederalCongressBillTag);
7
- static is(web_document_tag: any): web_document_tag is FederalCongressBillTag;
7
+ constructor(federal_congress_bill: FederalCongressBillTag);
8
+ static is(federal_congress_bill: any): federal_congress_bill is FederalCongressBillTag;
8
9
  }
@@ -1,19 +1,22 @@
1
1
  export class FederalCongressBillTag {
2
- web_document_id;
2
+ federal_congress_id;
3
+ bill_id;
3
4
  tag_type_id;
4
5
  tag_id;
5
- constructor(web_document_tag) {
6
- if (!FederalCongressBillTag.is(web_document_tag)) {
6
+ constructor(federal_congress_bill) {
7
+ if (!FederalCongressBillTag.is(federal_congress_bill)) {
7
8
  throw Error("Invalid input.");
8
9
  }
9
- this.web_document_id = web_document_tag.web_document_id;
10
- this.tag_type_id = web_document_tag.tag_type_id;
11
- this.tag_id = web_document_tag.tag_id;
10
+ this.federal_congress_id = federal_congress_bill.federal_congress_id;
11
+ this.bill_id = federal_congress_bill.bill_id;
12
+ this.tag_type_id = federal_congress_bill.tag_type_id;
13
+ this.tag_id = federal_congress_bill.tag_id;
12
14
  }
13
- static is(web_document_tag) {
14
- return (web_document_tag !== undefined &&
15
- typeof web_document_tag.web_document_id === "string" &&
16
- typeof web_document_tag.tag_type_id === "string" &&
17
- typeof web_document_tag.tag_id === "string");
15
+ static is(federal_congress_bill) {
16
+ return (federal_congress_bill !== undefined &&
17
+ typeof federal_congress_bill.federal_congress_id === "number" &&
18
+ typeof federal_congress_bill.bill_id === "string" &&
19
+ typeof federal_congress_bill.tag_type_id === "string" &&
20
+ typeof federal_congress_bill.tag_id === "string");
18
21
  }
19
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.303",
3
+ "version": "1.0.305",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -14,6 +14,7 @@ export class FederalCongressBill {
14
14
  readonly title : string
15
15
  readonly modify_time : string
16
16
  readonly intro_date : string
17
+ readonly federal_congress_member_id? : string
17
18
 
18
19
  constructor(federal_congress_bill : any) {
19
20
  if (!FederalCongressBill.is(federal_congress_bill)) {
@@ -26,6 +27,7 @@ export class FederalCongressBill {
26
27
  this.title = federal_congress_bill.title
27
28
  this.modify_time = federal_congress_bill.modify_time
28
29
  this.intro_date = federal_congress_bill.intro_date
30
+ this.federal_congress_member_id = federal_congress_bill.federal_congress_member_id
29
31
  }
30
32
 
31
33
  static is(federal_congress_bill : any) : federal_congress_bill is FederalCongressBill {
@@ -37,7 +39,8 @@ export class FederalCongressBill {
37
39
  typeof federal_congress_bill.number === "number" &&
38
40
  typeof federal_congress_bill.title === "string" &&
39
41
  typeof federal_congress_bill.modify_time === "string" &&
40
- typeof federal_congress_bill.intro_date === "string"
42
+ typeof federal_congress_bill.intro_date === "string" &&
43
+ (federal_congress_bill.federal_congress_member_id === undefined || typeof federal_congress_bill.federal_congress_member_id === "string")
41
44
  )
42
45
  }
43
46
 
@@ -1,26 +1,27 @@
1
- import { FederalCongressBill } from "./FederalCongressBill"
2
-
3
1
  export class FederalCongressBillTag {
4
- readonly web_document_id : string
2
+ readonly federal_congress_id : number
3
+ readonly bill_id : string
5
4
  readonly tag_type_id : string
6
5
  readonly tag_id : string
7
6
  readonly [x : string] : any
8
7
 
9
- constructor(web_document_tag : FederalCongressBillTag) {
10
- if (!FederalCongressBillTag.is(web_document_tag)) {
8
+ constructor(federal_congress_bill : FederalCongressBillTag) {
9
+ if (!FederalCongressBillTag.is(federal_congress_bill)) {
11
10
  throw Error("Invalid input.")
12
11
  }
13
- this.web_document_id = web_document_tag.web_document_id
14
- this.tag_type_id = web_document_tag.tag_type_id
15
- this.tag_id = web_document_tag.tag_id
12
+ this.federal_congress_id = federal_congress_bill.federal_congress_id
13
+ this.bill_id = federal_congress_bill.bill_id
14
+ this.tag_type_id = federal_congress_bill.tag_type_id
15
+ this.tag_id = federal_congress_bill.tag_id
16
16
  }
17
17
 
18
- static is(web_document_tag : any) : web_document_tag is FederalCongressBillTag {
18
+ static is(federal_congress_bill : any) : federal_congress_bill is FederalCongressBillTag {
19
19
  return (
20
- web_document_tag !== undefined &&
21
- typeof web_document_tag.web_document_id === "string" &&
22
- typeof web_document_tag.tag_type_id === "string" &&
23
- typeof web_document_tag.tag_id === "string"
20
+ federal_congress_bill !== undefined &&
21
+ typeof federal_congress_bill.federal_congress_id === "number" &&
22
+ typeof federal_congress_bill.bill_id === "string" &&
23
+ typeof federal_congress_bill.tag_type_id === "string" &&
24
+ typeof federal_congress_bill.tag_id === "string"
24
25
  )
25
26
  }
26
27
  }