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.
- package/dist/src/types/federal_congress/FederalCongressBill.d.ts +1 -0
- package/dist/src/types/federal_congress/FederalCongressBill.js +4 -1
- package/dist/src/types/federal_congress/FederalCongressBillTag.d.ts +4 -3
- package/dist/src/types/federal_congress/FederalCongressBillTag.js +14 -11
- package/package.json +1 -1
- package/src/types/federal_congress/FederalCongressBill.ts +4 -1
- package/src/types/federal_congress/FederalCongressBillTag.ts +14 -13
|
@@ -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
|
|
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(
|
|
7
|
-
static is(
|
|
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
|
-
|
|
2
|
+
federal_congress_id;
|
|
3
|
+
bill_id;
|
|
3
4
|
tag_type_id;
|
|
4
5
|
tag_id;
|
|
5
|
-
constructor(
|
|
6
|
-
if (!FederalCongressBillTag.is(
|
|
6
|
+
constructor(federal_congress_bill) {
|
|
7
|
+
if (!FederalCongressBillTag.is(federal_congress_bill)) {
|
|
7
8
|
throw Error("Invalid input.");
|
|
8
9
|
}
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
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(
|
|
14
|
-
return (
|
|
15
|
-
typeof
|
|
16
|
-
typeof
|
|
17
|
-
typeof
|
|
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
|
@@ -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
|
|
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(
|
|
10
|
-
if (!FederalCongressBillTag.is(
|
|
8
|
+
constructor(federal_congress_bill : FederalCongressBillTag) {
|
|
9
|
+
if (!FederalCongressBillTag.is(federal_congress_bill)) {
|
|
11
10
|
throw Error("Invalid input.")
|
|
12
11
|
}
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
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(
|
|
18
|
+
static is(federal_congress_bill : any) : federal_congress_bill is FederalCongressBillTag {
|
|
19
19
|
return (
|
|
20
|
-
|
|
21
|
-
typeof
|
|
22
|
-
typeof
|
|
23
|
-
typeof
|
|
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
|
}
|