triangle-types 1.0.303 → 1.0.304

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.
@@ -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.304",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -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
  }