triangle-types 1.0.310 → 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.
@@ -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 url: string;
14
- readonly s3_id?: string;
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
- url;
17
- s3_id;
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,8 +30,12 @@ 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.url = federal_congress_bill_document.url;
30
- this.s3_id = federal_congress_bill_document.s3_id;
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 &&
@@ -39,6 +47,11 @@ export class FederalCongressBillDocument {
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.s3_id === undefined || typeof federal_congress_bill_document.s3_id === "string"));
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.310",
3
+ "version": "1.0.311",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -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 url : string
22
- readonly s3_id? : string
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.url = federal_congress_bill_document.url
36
- this.s3_id = federal_congress_bill_document.s3_id
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 {
@@ -47,7 +55,12 @@ export class FederalCongressBillDocument {
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.s3_id === undefined || typeof federal_congress_bill_document.s3_id === "string")
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