triangle-types 1.0.309 → 1.0.311
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/FederalCongressBillAction.js +1 -1
- package/dist/src/types/federal_congress/FederalCongressBillDocument.d.ts +6 -2
- package/dist/src/types/federal_congress/FederalCongressBillDocument.js +19 -6
- package/dist/src/types/federal_congress/FederalCongressBillMember.js +1 -1
- package/package.json +1 -1
- package/src/types/federal_congress/FederalCongressBillAction.ts +1 -1
- package/src/types/federal_congress/FederalCongressBillDocument.ts +19 -6
- package/src/types/federal_congress/FederalCongressBillMember.ts +1 -1
|
@@ -42,7 +42,7 @@ export class FederalCongressBillAction {
|
|
|
42
42
|
return (federal_congress_bill_action !== undefined &&
|
|
43
43
|
typeof federal_congress_bill_action.federal_congress_id === "number" &&
|
|
44
44
|
is_federal_congress_bill_type_id(federal_congress_bill_action.federal_congress_bill_type_id) &&
|
|
45
|
-
typeof federal_congress_bill_action.bill_id === "
|
|
45
|
+
typeof federal_congress_bill_action.bill_id === "number" &&
|
|
46
46
|
typeof federal_congress_bill_action.action_id === "number" &&
|
|
47
47
|
(federal_congress_bill_action.bill_action_type_id === undefined || is_federal_congress_bill_action_type_id(federal_congress_bill_action.bill_action_type_id)) &&
|
|
48
48
|
typeof federal_congress_bill_action.date === "string" &&
|
|
@@ -10,8 +10,12 @@ export declare class FederalCongressBillDocument {
|
|
|
10
10
|
readonly bill_document_type_id: FederalCongressBillDocumentTypeID;
|
|
11
11
|
readonly format_id: string;
|
|
12
12
|
readonly time?: string;
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
13
|
+
readonly url_html?: string;
|
|
14
|
+
readonly url_xml?: string;
|
|
15
|
+
readonly url_pdf?: string;
|
|
16
|
+
readonly s3_id_html?: string;
|
|
17
|
+
readonly s3_id_xml?: string;
|
|
18
|
+
readonly s3_id_pdf?: string;
|
|
15
19
|
constructor(federal_congress_bill_document: any);
|
|
16
20
|
static is(federal_congress_bill_document: any): federal_congress_bill_document is FederalCongressBillDocument;
|
|
17
21
|
}
|
|
@@ -13,8 +13,12 @@ export class FederalCongressBillDocument {
|
|
|
13
13
|
bill_document_type_id;
|
|
14
14
|
format_id;
|
|
15
15
|
time;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
url_html;
|
|
17
|
+
url_xml;
|
|
18
|
+
url_pdf;
|
|
19
|
+
s3_id_html;
|
|
20
|
+
s3_id_xml;
|
|
21
|
+
s3_id_pdf;
|
|
18
22
|
constructor(federal_congress_bill_document) {
|
|
19
23
|
if (!FederalCongressBillDocument.is(federal_congress_bill_document)) {
|
|
20
24
|
throw Error("Invalid input.");
|
|
@@ -26,19 +30,28 @@ export class FederalCongressBillDocument {
|
|
|
26
30
|
this.bill_document_type_id = federal_congress_bill_document.bill_document_type_id;
|
|
27
31
|
this.format_id = federal_congress_bill_document.format_id;
|
|
28
32
|
this.time = federal_congress_bill_document.time;
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
33
|
+
this.url_html = federal_congress_bill_document.url_html;
|
|
34
|
+
this.url_xml = federal_congress_bill_document.url_xml;
|
|
35
|
+
this.url_pdf = federal_congress_bill_document.url_pdf;
|
|
36
|
+
this.s3_id_html = federal_congress_bill_document.s3_id_html;
|
|
37
|
+
this.s3_id_xml = federal_congress_bill_document.s3_id_xml;
|
|
38
|
+
this.s3_id_pdf = federal_congress_bill_document.s3_id_pdf;
|
|
31
39
|
}
|
|
32
40
|
static is(federal_congress_bill_document) {
|
|
33
41
|
return (federal_congress_bill_document !== undefined &&
|
|
34
42
|
typeof federal_congress_bill_document.federal_congress_id === "number" &&
|
|
35
43
|
is_federal_congress_bill_type_id(federal_congress_bill_document.bill_type_id) &&
|
|
36
|
-
typeof federal_congress_bill_document.bill_id === "
|
|
44
|
+
typeof federal_congress_bill_document.bill_id === "number" &&
|
|
37
45
|
typeof federal_congress_bill_document.document_id === "string" &&
|
|
38
46
|
is_federal_congress_bill_document_type_id(federal_congress_bill_document.bill_document_type_id) &&
|
|
39
47
|
typeof federal_congress_bill_document.format_id === "string" &&
|
|
40
48
|
(federal_congress_bill_document.time === undefined || typeof federal_congress_bill_document.time === "string") &&
|
|
41
49
|
typeof federal_congress_bill_document.url === "string" &&
|
|
42
|
-
(federal_congress_bill_document.
|
|
50
|
+
(federal_congress_bill_document.url_html === undefined || typeof federal_congress_bill_document.url_html === "string") &&
|
|
51
|
+
(federal_congress_bill_document.url_xml === undefined || typeof federal_congress_bill_document.url_xml === "string") &&
|
|
52
|
+
(federal_congress_bill_document.url_pdf === undefined || typeof federal_congress_bill_document.url_pdf === "string") &&
|
|
53
|
+
(federal_congress_bill_document.s3_id_html === undefined || typeof federal_congress_bill_document.s3_id_html === "string") &&
|
|
54
|
+
(federal_congress_bill_document.s3_id_xml === undefined || typeof federal_congress_bill_document.s3_id_xml === "string") &&
|
|
55
|
+
(federal_congress_bill_document.s3_id_pdf === undefined || typeof federal_congress_bill_document.s3_id_pdf === "string"));
|
|
43
56
|
}
|
|
44
57
|
}
|
|
@@ -17,7 +17,7 @@ export class FederalCongressBillMember {
|
|
|
17
17
|
return (federal_congress_bill !== undefined &&
|
|
18
18
|
typeof federal_congress_bill.federal_congress_id === "number" &&
|
|
19
19
|
is_federal_congress_bill_type_id(federal_congress_bill.bill_type_id) &&
|
|
20
|
-
typeof federal_congress_bill.bill_id === "
|
|
20
|
+
typeof federal_congress_bill.bill_id === "number" &&
|
|
21
21
|
typeof federal_congress_bill.federal_congress_member_id === "string");
|
|
22
22
|
}
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -50,7 +50,7 @@ export class FederalCongressBillAction {
|
|
|
50
50
|
federal_congress_bill_action !== undefined &&
|
|
51
51
|
typeof federal_congress_bill_action.federal_congress_id === "number" &&
|
|
52
52
|
is_federal_congress_bill_type_id(federal_congress_bill_action.federal_congress_bill_type_id) &&
|
|
53
|
-
typeof federal_congress_bill_action.bill_id === "
|
|
53
|
+
typeof federal_congress_bill_action.bill_id === "number" &&
|
|
54
54
|
typeof federal_congress_bill_action.action_id === "number" &&
|
|
55
55
|
(federal_congress_bill_action.bill_action_type_id === undefined || is_federal_congress_bill_action_type_id(federal_congress_bill_action.bill_action_type_id)) &&
|
|
56
56
|
typeof federal_congress_bill_action.date === "string" &&
|
|
@@ -18,8 +18,12 @@ export class FederalCongressBillDocument {
|
|
|
18
18
|
readonly bill_document_type_id : FederalCongressBillDocumentTypeID
|
|
19
19
|
readonly format_id : string
|
|
20
20
|
readonly time? : string
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
21
|
+
readonly url_html? : string
|
|
22
|
+
readonly url_xml? : string
|
|
23
|
+
readonly url_pdf? : string
|
|
24
|
+
readonly s3_id_html? : string
|
|
25
|
+
readonly s3_id_xml? : string
|
|
26
|
+
readonly s3_id_pdf? : string
|
|
23
27
|
|
|
24
28
|
constructor(federal_congress_bill_document : any) {
|
|
25
29
|
if (!FederalCongressBillDocument.is(federal_congress_bill_document)) {
|
|
@@ -32,8 +36,12 @@ export class FederalCongressBillDocument {
|
|
|
32
36
|
this.bill_document_type_id = federal_congress_bill_document.bill_document_type_id
|
|
33
37
|
this.format_id = federal_congress_bill_document.format_id
|
|
34
38
|
this.time = federal_congress_bill_document.time
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
39
|
+
this.url_html = federal_congress_bill_document.url_html
|
|
40
|
+
this.url_xml = federal_congress_bill_document.url_xml
|
|
41
|
+
this.url_pdf = federal_congress_bill_document.url_pdf
|
|
42
|
+
this.s3_id_html = federal_congress_bill_document.s3_id_html
|
|
43
|
+
this.s3_id_xml = federal_congress_bill_document.s3_id_xml
|
|
44
|
+
this.s3_id_pdf = federal_congress_bill_document.s3_id_pdf
|
|
37
45
|
}
|
|
38
46
|
|
|
39
47
|
static is(federal_congress_bill_document : any) : federal_congress_bill_document is FederalCongressBillDocument {
|
|
@@ -41,13 +49,18 @@ export class FederalCongressBillDocument {
|
|
|
41
49
|
federal_congress_bill_document !== undefined &&
|
|
42
50
|
typeof federal_congress_bill_document.federal_congress_id === "number" &&
|
|
43
51
|
is_federal_congress_bill_type_id(federal_congress_bill_document.bill_type_id) &&
|
|
44
|
-
typeof federal_congress_bill_document.bill_id === "
|
|
52
|
+
typeof federal_congress_bill_document.bill_id === "number" &&
|
|
45
53
|
typeof federal_congress_bill_document.document_id === "string" &&
|
|
46
54
|
is_federal_congress_bill_document_type_id(federal_congress_bill_document.bill_document_type_id) &&
|
|
47
55
|
typeof federal_congress_bill_document.format_id === "string" &&
|
|
48
56
|
(federal_congress_bill_document.time === undefined || typeof federal_congress_bill_document.time === "string") &&
|
|
49
57
|
typeof federal_congress_bill_document.url === "string" &&
|
|
50
|
-
(federal_congress_bill_document.
|
|
58
|
+
(federal_congress_bill_document.url_html === undefined || typeof federal_congress_bill_document.url_html === "string") &&
|
|
59
|
+
(federal_congress_bill_document.url_xml === undefined || typeof federal_congress_bill_document.url_xml === "string") &&
|
|
60
|
+
(federal_congress_bill_document.url_pdf === undefined || typeof federal_congress_bill_document.url_pdf === "string") &&
|
|
61
|
+
(federal_congress_bill_document.s3_id_html === undefined || typeof federal_congress_bill_document.s3_id_html === "string") &&
|
|
62
|
+
(federal_congress_bill_document.s3_id_xml === undefined || typeof federal_congress_bill_document.s3_id_xml === "string") &&
|
|
63
|
+
(federal_congress_bill_document.s3_id_pdf === undefined || typeof federal_congress_bill_document.s3_id_pdf === "string")
|
|
51
64
|
)
|
|
52
65
|
}
|
|
53
66
|
|
|
@@ -22,7 +22,7 @@ export class FederalCongressBillMember {
|
|
|
22
22
|
federal_congress_bill !== undefined &&
|
|
23
23
|
typeof federal_congress_bill.federal_congress_id === "number" &&
|
|
24
24
|
is_federal_congress_bill_type_id(federal_congress_bill.bill_type_id) &&
|
|
25
|
-
typeof federal_congress_bill.bill_id === "
|
|
25
|
+
typeof federal_congress_bill.bill_id === "number" &&
|
|
26
26
|
typeof federal_congress_bill.federal_congress_member_id === "string"
|
|
27
27
|
)
|
|
28
28
|
}
|