triangle-types 1.0.310 → 1.0.312

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.
@@ -8,10 +8,13 @@ export declare class FederalCongressBillDocument {
8
8
  readonly bill_id: number;
9
9
  readonly document_id: string;
10
10
  readonly bill_document_type_id: FederalCongressBillDocumentTypeID;
11
- readonly format_id: string;
12
11
  readonly time?: string;
13
- readonly url: string;
14
- readonly s3_id?: string;
12
+ readonly url_html?: string;
13
+ readonly url_xml?: string;
14
+ readonly url_pdf?: string;
15
+ readonly s3_id_html?: string;
16
+ readonly s3_id_xml?: string;
17
+ readonly s3_id_pdf?: string;
15
18
  constructor(federal_congress_bill_document: any);
16
19
  static is(federal_congress_bill_document: any): federal_congress_bill_document is FederalCongressBillDocument;
17
20
  }
@@ -11,10 +11,13 @@ export class FederalCongressBillDocument {
11
11
  bill_id;
12
12
  document_id;
13
13
  bill_document_type_id;
14
- format_id;
15
14
  time;
16
- url;
17
- s3_id;
15
+ url_html;
16
+ url_xml;
17
+ url_pdf;
18
+ s3_id_html;
19
+ s3_id_xml;
20
+ s3_id_pdf;
18
21
  constructor(federal_congress_bill_document) {
19
22
  if (!FederalCongressBillDocument.is(federal_congress_bill_document)) {
20
23
  throw Error("Invalid input.");
@@ -24,10 +27,13 @@ export class FederalCongressBillDocument {
24
27
  this.bill_id = federal_congress_bill_document.bill_id;
25
28
  this.document_id = federal_congress_bill_document.document_id;
26
29
  this.bill_document_type_id = federal_congress_bill_document.bill_document_type_id;
27
- this.format_id = federal_congress_bill_document.format_id;
28
30
  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;
31
+ this.url_html = federal_congress_bill_document.url_html;
32
+ this.url_xml = federal_congress_bill_document.url_xml;
33
+ this.url_pdf = federal_congress_bill_document.url_pdf;
34
+ this.s3_id_html = federal_congress_bill_document.s3_id_html;
35
+ this.s3_id_xml = federal_congress_bill_document.s3_id_xml;
36
+ this.s3_id_pdf = federal_congress_bill_document.s3_id_pdf;
31
37
  }
32
38
  static is(federal_congress_bill_document) {
33
39
  return (federal_congress_bill_document !== undefined &&
@@ -36,9 +42,13 @@ export class FederalCongressBillDocument {
36
42
  typeof federal_congress_bill_document.bill_id === "number" &&
37
43
  typeof federal_congress_bill_document.document_id === "string" &&
38
44
  is_federal_congress_bill_document_type_id(federal_congress_bill_document.bill_document_type_id) &&
39
- typeof federal_congress_bill_document.format_id === "string" &&
40
45
  (federal_congress_bill_document.time === undefined || typeof federal_congress_bill_document.time === "string") &&
41
46
  typeof federal_congress_bill_document.url === "string" &&
42
- (federal_congress_bill_document.s3_id === undefined || typeof federal_congress_bill_document.s3_id === "string"));
47
+ (federal_congress_bill_document.url_html === undefined || typeof federal_congress_bill_document.url_html === "string") &&
48
+ (federal_congress_bill_document.url_xml === undefined || typeof federal_congress_bill_document.url_xml === "string") &&
49
+ (federal_congress_bill_document.url_pdf === undefined || typeof federal_congress_bill_document.url_pdf === "string") &&
50
+ (federal_congress_bill_document.s3_id_html === undefined || typeof federal_congress_bill_document.s3_id_html === "string") &&
51
+ (federal_congress_bill_document.s3_id_xml === undefined || typeof federal_congress_bill_document.s3_id_xml === "string") &&
52
+ (federal_congress_bill_document.s3_id_pdf === undefined || typeof federal_congress_bill_document.s3_id_pdf === "string"));
43
53
  }
44
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.310",
3
+ "version": "1.0.312",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -16,10 +16,13 @@ export class FederalCongressBillDocument {
16
16
  readonly bill_id : number
17
17
  readonly document_id : string
18
18
  readonly bill_document_type_id : FederalCongressBillDocumentTypeID
19
- readonly format_id : string
20
19
  readonly time? : string
21
- readonly url : string
22
- readonly s3_id? : string
20
+ readonly url_html? : string
21
+ readonly url_xml? : string
22
+ readonly url_pdf? : string
23
+ readonly s3_id_html? : string
24
+ readonly s3_id_xml? : string
25
+ readonly s3_id_pdf? : string
23
26
 
24
27
  constructor(federal_congress_bill_document : any) {
25
28
  if (!FederalCongressBillDocument.is(federal_congress_bill_document)) {
@@ -30,10 +33,13 @@ export class FederalCongressBillDocument {
30
33
  this.bill_id = federal_congress_bill_document.bill_id
31
34
  this.document_id = federal_congress_bill_document.document_id
32
35
  this.bill_document_type_id = federal_congress_bill_document.bill_document_type_id
33
- this.format_id = federal_congress_bill_document.format_id
34
36
  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
37
+ this.url_html = federal_congress_bill_document.url_html
38
+ this.url_xml = federal_congress_bill_document.url_xml
39
+ this.url_pdf = federal_congress_bill_document.url_pdf
40
+ this.s3_id_html = federal_congress_bill_document.s3_id_html
41
+ this.s3_id_xml = federal_congress_bill_document.s3_id_xml
42
+ this.s3_id_pdf = federal_congress_bill_document.s3_id_pdf
37
43
  }
38
44
 
39
45
  static is(federal_congress_bill_document : any) : federal_congress_bill_document is FederalCongressBillDocument {
@@ -44,10 +50,14 @@ export class FederalCongressBillDocument {
44
50
  typeof federal_congress_bill_document.bill_id === "number" &&
45
51
  typeof federal_congress_bill_document.document_id === "string" &&
46
52
  is_federal_congress_bill_document_type_id(federal_congress_bill_document.bill_document_type_id) &&
47
- typeof federal_congress_bill_document.format_id === "string" &&
48
53
  (federal_congress_bill_document.time === undefined || typeof federal_congress_bill_document.time === "string") &&
49
54
  typeof federal_congress_bill_document.url === "string" &&
50
- (federal_congress_bill_document.s3_id === undefined || typeof federal_congress_bill_document.s3_id === "string")
55
+ (federal_congress_bill_document.url_html === undefined || typeof federal_congress_bill_document.url_html === "string") &&
56
+ (federal_congress_bill_document.url_xml === undefined || typeof federal_congress_bill_document.url_xml === "string") &&
57
+ (federal_congress_bill_document.url_pdf === undefined || typeof federal_congress_bill_document.url_pdf === "string") &&
58
+ (federal_congress_bill_document.s3_id_html === undefined || typeof federal_congress_bill_document.s3_id_html === "string") &&
59
+ (federal_congress_bill_document.s3_id_xml === undefined || typeof federal_congress_bill_document.s3_id_xml === "string") &&
60
+ (federal_congress_bill_document.s3_id_pdf === undefined || typeof federal_congress_bill_document.s3_id_pdf === "string")
51
61
  )
52
62
  }
53
63