triangle-types 1.0.339 → 1.0.341

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.
@@ -2,7 +2,6 @@ export declare class FederalDocketAgency {
2
2
  readonly federal_docket_agency_id: string;
3
3
  readonly federal_register_agency_id: number;
4
4
  readonly name: string;
5
- readonly supreme_federal_register_agency_id: number;
6
5
  constructor(federal_docket_agency: any);
7
6
  static is(federal_docket_agency: any): federal_docket_agency is FederalDocketAgency;
8
7
  }
@@ -2,7 +2,6 @@ export class FederalDocketAgency {
2
2
  federal_docket_agency_id;
3
3
  federal_register_agency_id;
4
4
  name;
5
- supreme_federal_register_agency_id;
6
5
  constructor(federal_docket_agency) {
7
6
  if (!FederalDocketAgency.is(federal_docket_agency)) {
8
7
  throw Error("Invalid input.");
@@ -10,13 +9,11 @@ export class FederalDocketAgency {
10
9
  this.federal_docket_agency_id = federal_docket_agency.federal_docket_agency_id;
11
10
  this.federal_register_agency_id = federal_docket_agency.federal_register_agency_id;
12
11
  this.name = federal_docket_agency.name;
13
- this.supreme_federal_register_agency_id = federal_docket_agency.supreme_federal_register_agency_id;
14
12
  }
15
13
  static is(federal_docket_agency) {
16
14
  return (federal_docket_agency !== undefined &&
17
15
  typeof federal_docket_agency.federal_docket_agency_id === "string" &&
18
16
  typeof federal_docket_agency.federal_register_agency_id === "number" &&
19
- typeof federal_docket_agency.name === "string" &&
20
- typeof federal_docket_agency.supreme_federal_register_agency_id === "number");
17
+ typeof federal_docket_agency.name === "string");
21
18
  }
22
19
  }
@@ -1,18 +1,3 @@
1
- export declare class Commentor {
2
- readonly first_name?: string;
3
- readonly last_name?: string;
4
- readonly organization_name?: string;
5
- readonly address_1?: string;
6
- readonly address_2?: string;
7
- readonly city?: string;
8
- readonly state_id?: string;
9
- readonly zip?: string;
10
- readonly country?: string;
11
- readonly email?: string;
12
- readonly phone?: string;
13
- constructor(commentor: any);
14
- static is(commentor: any): commentor is Commentor;
15
- }
16
1
  export declare class FederalDocketComment {
17
2
  readonly federal_docket_comment_id: string;
18
3
  readonly federal_docket_agency_id: string;
@@ -23,7 +8,17 @@ export declare class FederalDocketComment {
23
8
  readonly comment_time?: string;
24
9
  readonly modify_time: string;
25
10
  readonly is_withdrawn: boolean;
26
- readonly commentor: Commentor;
11
+ readonly commentor_name_first?: string;
12
+ readonly commentor_name_last?: string;
13
+ readonly commentor_name_org?: string;
14
+ readonly commentor_address_1?: string;
15
+ readonly commentor_address_2?: string;
16
+ readonly commentor_address_city?: string;
17
+ readonly commentor_address_state_id?: string;
18
+ readonly commentor_address_zip_id?: string;
19
+ readonly commentor_address_country_id?: string;
20
+ readonly commentor_email?: string;
21
+ readonly commentor_phone?: string;
27
22
  readonly text: string;
28
23
  constructor(federal_docket_comment: any);
29
24
  static is(federal_docket_comment: any): federal_docket_comment is FederalDocketComment;
@@ -1,46 +1,3 @@
1
- export class Commentor {
2
- first_name;
3
- last_name;
4
- organization_name;
5
- address_1;
6
- address_2;
7
- city;
8
- state_id;
9
- zip;
10
- country;
11
- email;
12
- phone;
13
- constructor(commentor) {
14
- if (!Commentor.is(commentor)) {
15
- throw Error("Invalid input.");
16
- }
17
- this.first_name = commentor.first_name;
18
- this.last_name = commentor.last_name;
19
- this.organization_name = commentor.organization_name;
20
- this.address_1 = commentor.address_1;
21
- this.address_2 = commentor.address_2;
22
- this.city = commentor.city;
23
- this.state_id = commentor.state_id;
24
- this.zip = commentor.zip;
25
- this.country = commentor.country;
26
- this.email = commentor.email;
27
- this.phone = commentor.phone;
28
- }
29
- static is(commentor) {
30
- return (commentor !== undefined &&
31
- (commentor.first_name === undefined || typeof commentor.first_name === "string") &&
32
- (commentor.last_name === undefined || typeof commentor.last_name === "string") &&
33
- (commentor.organization_name === undefined || typeof commentor.organization_name === "string") &&
34
- (commentor.address_1 === undefined || typeof commentor.address_1 === "string") &&
35
- (commentor.address_2 === undefined || typeof commentor.address_2 === "string") &&
36
- (commentor.city === undefined || typeof commentor.city === "string") &&
37
- (commentor.state_id === undefined || typeof commentor.state_id === "string") &&
38
- (commentor.zip === undefined || typeof commentor.zip === "string") &&
39
- (commentor.country === undefined || typeof commentor.country === "string") &&
40
- (commentor.email === undefined || typeof commentor.email === "string") &&
41
- (commentor.phone === undefined || typeof commentor.phone === "string"));
42
- }
43
- }
44
1
  export class FederalDocketComment {
45
2
  federal_docket_comment_id;
46
3
  federal_docket_agency_id;
@@ -51,7 +8,17 @@ export class FederalDocketComment {
51
8
  comment_time;
52
9
  modify_time;
53
10
  is_withdrawn;
54
- commentor;
11
+ commentor_name_first;
12
+ commentor_name_last;
13
+ commentor_name_org;
14
+ commentor_address_1;
15
+ commentor_address_2;
16
+ commentor_address_city;
17
+ commentor_address_state_id;
18
+ commentor_address_zip_id;
19
+ commentor_address_country_id;
20
+ commentor_email;
21
+ commentor_phone;
55
22
  text;
56
23
  constructor(federal_docket_comment) {
57
24
  if (!FederalDocketComment.is(federal_docket_comment)) {
@@ -66,7 +33,17 @@ export class FederalDocketComment {
66
33
  this.comment_time = federal_docket_comment.comment_time;
67
34
  this.modify_time = federal_docket_comment.modify_time;
68
35
  this.is_withdrawn = federal_docket_comment.is_withdrawn;
69
- this.commentor = new Commentor(federal_docket_comment.commentor);
36
+ this.commentor_name_first = federal_docket_comment.commentor_name_first;
37
+ this.commentor_name_last = federal_docket_comment.commentor_name_last;
38
+ this.commentor_name_org = federal_docket_comment.commentor_name_org;
39
+ this.commentor_address_1 = federal_docket_comment.commentor_address_1;
40
+ this.commentor_address_2 = federal_docket_comment.commentor_address_2;
41
+ this.commentor_address_city = federal_docket_comment.commentor_address_city;
42
+ this.commentor_address_state_id = federal_docket_comment.commentor_address_state_id;
43
+ this.commentor_address_zip_id = federal_docket_comment.commentor_address_zip_id;
44
+ this.commentor_address_country_id = federal_docket_comment.commentor_address_country_id;
45
+ this.commentor_email = federal_docket_comment.commentor_email;
46
+ this.commentor_phone = federal_docket_comment.commentor_phone;
70
47
  this.text = federal_docket_comment.text;
71
48
  }
72
49
  static is(federal_docket_comment) {
@@ -80,7 +57,17 @@ export class FederalDocketComment {
80
57
  (federal_docket_comment.comment_time === undefined || typeof federal_docket_comment.comment_time === "string") &&
81
58
  typeof federal_docket_comment.modify_time === "string" &&
82
59
  typeof federal_docket_comment.is_withdrawn === "boolean" &&
83
- Commentor.is(federal_docket_comment.commentor) &&
60
+ (federal_docket_comment.commentor_name_first === undefined || typeof federal_docket_comment.commentor_name_first === "string") &&
61
+ (federal_docket_comment.commentor_name_last === undefined || typeof federal_docket_comment.commentor_name_last === "string") &&
62
+ (federal_docket_comment.commentor_name_org === undefined || typeof federal_docket_comment.commentor_name_org === "string") &&
63
+ (federal_docket_comment.commentor_address_1 === undefined || typeof federal_docket_comment.commentor_address_1 === "string") &&
64
+ (federal_docket_comment.commentor_address_2 === undefined || typeof federal_docket_comment.commentor_address_2 === "string") &&
65
+ (federal_docket_comment.commentor_address_city === undefined || typeof federal_docket_comment.commentor_address_city === "string") &&
66
+ (federal_docket_comment.commentor_address_state_id === undefined || typeof federal_docket_comment.commentor_address_state_id === "string") &&
67
+ (federal_docket_comment.commentor_address_zip_id === undefined || typeof federal_docket_comment.commentor_address_zip_id === "string") &&
68
+ (federal_docket_comment.commentor_address_country_id === undefined || typeof federal_docket_comment.commentor_address_country_id === "string") &&
69
+ (federal_docket_comment.commentor_email === undefined || typeof federal_docket_comment.commentor_email === "string") &&
70
+ (federal_docket_comment.commentor_phone === undefined || typeof federal_docket_comment.commentor_phone === "string") &&
84
71
  typeof federal_docket_comment.text === "string");
85
72
  }
86
73
  }
@@ -1,8 +1,8 @@
1
1
  export declare class FederalDocketCommentAttachment {
2
- readonly federal_docket_comment_attachment_id: string;
3
2
  readonly federal_docket_comment_id: string;
4
- readonly attachment_number: number;
5
- readonly urls: string[];
3
+ readonly attachment_id: number;
4
+ readonly hash: string;
5
+ readonly urls?: string[];
6
6
  readonly s3_ids?: string[];
7
7
  constructor(federal_docket_comment_attachment: any);
8
8
  static is(federal_docket_comment_attachment: any): federal_docket_comment_attachment is FederalDocketCommentAttachment;
@@ -1,25 +1,25 @@
1
1
  export class FederalDocketCommentAttachment {
2
- federal_docket_comment_attachment_id;
3
2
  federal_docket_comment_id;
4
- attachment_number;
3
+ attachment_id;
4
+ hash;
5
5
  urls;
6
6
  s3_ids;
7
7
  constructor(federal_docket_comment_attachment) {
8
8
  if (!FederalDocketCommentAttachment.is(federal_docket_comment_attachment)) {
9
9
  throw Error("Invalid input.");
10
10
  }
11
- this.federal_docket_comment_attachment_id = federal_docket_comment_attachment.federal_docket_comment_attachment_id;
12
- this.attachment_number = federal_docket_comment_attachment.attachment_number;
13
11
  this.federal_docket_comment_id = federal_docket_comment_attachment.federal_docket_comment_id;
12
+ this.attachment_id = federal_docket_comment_attachment.attachment_id;
13
+ this.hash = federal_docket_comment_attachment.hash;
14
14
  this.urls = federal_docket_comment_attachment.urls;
15
15
  this.s3_ids = federal_docket_comment_attachment.s3_ids;
16
16
  }
17
17
  static is(federal_docket_comment_attachment) {
18
18
  return (federal_docket_comment_attachment !== undefined &&
19
- typeof federal_docket_comment_attachment.federal_docket_comment_attachment_id === "string" &&
20
19
  typeof federal_docket_comment_attachment.federal_docket_comment_id === "string" &&
21
- typeof federal_docket_comment_attachment.attachment_number === "number" &&
22
- Array.isArray(federal_docket_comment_attachment.urls) && federal_docket_comment_attachment.urls.every((url) => typeof url === "string") &&
20
+ typeof federal_docket_comment_attachment.attachment_id === "number" &&
21
+ typeof federal_docket_comment_attachment.hash === "string" &&
22
+ (federal_docket_comment_attachment.urls === undefined || Array.isArray(federal_docket_comment_attachment.urls) && federal_docket_comment_attachment.urls.every((url) => typeof url === "string")) &&
23
23
  (federal_docket_comment_attachment.s3_ids === undefined || Array.isArray(federal_docket_comment_attachment.s3_ids) && federal_docket_comment_attachment.s3_ids.every((s3_id) => typeof s3_id === "string")));
24
24
  }
25
25
  }
@@ -5,22 +5,22 @@ export declare class FederalDocketDocument {
5
5
  readonly federal_docket_document_id: string;
6
6
  readonly federal_docket_agency_id: string;
7
7
  readonly federal_docket_id?: string;
8
- readonly type_id: FederalDocketDocumentTypeID;
9
- readonly subtype_id?: string;
8
+ readonly document_type_id: FederalDocketDocumentTypeID;
9
+ readonly document_subtype_id?: string;
10
10
  readonly federal_register_document_id?: string;
11
11
  readonly title: string;
12
12
  readonly publish_time?: string;
13
13
  readonly modify_time: string;
14
- readonly comment_start_time?: string;
15
- readonly comment_end_time?: string;
16
- readonly comments_open: boolean;
17
- readonly comments_late_allow: boolean;
14
+ readonly min_time_comment?: string;
15
+ readonly max_time_comment?: string;
16
+ readonly is_commentable: boolean;
17
+ readonly is_commentable_late: boolean;
18
18
  readonly is_withdrawn: boolean;
19
19
  readonly author_date?: string;
20
- readonly author_names: string[];
20
+ readonly author_names?: string[];
21
21
  readonly media_type_id?: string;
22
22
  readonly abstract?: string;
23
- readonly urls: string[];
23
+ readonly urls?: string[];
24
24
  readonly s3_ids?: string[];
25
25
  constructor(federal_docket_document: any);
26
26
  static is(federal_docket_document: any): federal_docket_document is FederalDocketDocument;
@@ -6,16 +6,16 @@ export class FederalDocketDocument {
6
6
  federal_docket_document_id;
7
7
  federal_docket_agency_id;
8
8
  federal_docket_id;
9
- type_id;
10
- subtype_id;
9
+ document_type_id;
10
+ document_subtype_id;
11
11
  federal_register_document_id;
12
12
  title;
13
13
  publish_time;
14
14
  modify_time;
15
- comment_start_time;
16
- comment_end_time;
17
- comments_open;
18
- comments_late_allow;
15
+ min_time_comment;
16
+ max_time_comment;
17
+ is_commentable;
18
+ is_commentable_late;
19
19
  is_withdrawn;
20
20
  author_date;
21
21
  author_names;
@@ -30,16 +30,16 @@ export class FederalDocketDocument {
30
30
  this.federal_docket_document_id = federal_docket_document.federal_docket_document_id;
31
31
  this.federal_docket_agency_id = federal_docket_document.federal_docket_agency_id;
32
32
  this.federal_docket_id = federal_docket_document.federal_docket_id;
33
- this.type_id = federal_docket_document.type_id;
34
- this.subtype_id = federal_docket_document.subtype_id;
33
+ this.document_type_id = federal_docket_document.document_type_id;
34
+ this.document_subtype_id = federal_docket_document.document_subtype_id;
35
35
  this.federal_register_document_id = federal_docket_document.federal_register_document_id;
36
36
  this.title = federal_docket_document.title;
37
37
  this.publish_time = federal_docket_document.publish_time;
38
38
  this.modify_time = federal_docket_document.modify_time;
39
- this.comment_start_time = federal_docket_document.comment_start_time;
40
- this.comment_end_time = federal_docket_document.comment_end_time;
41
- this.comments_open = federal_docket_document.comments_open;
42
- this.comments_late_allow = federal_docket_document.comments_late_allow;
39
+ this.min_time_comment = federal_docket_document.min_time_comment;
40
+ this.max_time_comment = federal_docket_document.max_time_comment;
41
+ this.is_commentable = federal_docket_document.is_commentable;
42
+ this.is_commentable_late = federal_docket_document.is_commentable_late;
43
43
  this.is_withdrawn = federal_docket_document.is_withdrawn;
44
44
  this.author_date = federal_docket_document.author_date;
45
45
  this.author_names = federal_docket_document.author_names;
@@ -53,22 +53,22 @@ export class FederalDocketDocument {
53
53
  typeof federal_docket_document.federal_docket_document_id === "string" &&
54
54
  typeof federal_docket_document.federal_docket_agency_id === "string" &&
55
55
  (federal_docket_document.federal_docket_id === undefined || typeof federal_docket_document.federal_docket_id === "string") &&
56
- is_federal_docket_document_type_id(federal_docket_document.type_id) &&
57
- (federal_docket_document.subtype_id === undefined || typeof federal_docket_document.subtype_id === "string") &&
56
+ is_federal_docket_document_type_id(federal_docket_document.document_type_id) &&
57
+ (federal_docket_document.document_subtype_id === undefined || typeof federal_docket_document.document_subtype_id === "string") &&
58
58
  (federal_docket_document.federal_register_document_id === undefined || typeof federal_docket_document.federal_register_document_id === "string") &&
59
59
  typeof federal_docket_document.title === "string" &&
60
60
  (federal_docket_document.publish_time === undefined || typeof federal_docket_document.publish_time === "string") &&
61
61
  typeof federal_docket_document.modify_time === "string" &&
62
- (federal_docket_document.comment_start_time === undefined || typeof federal_docket_document.comment_start_time === "string") &&
63
- (federal_docket_document.comment_end_time === undefined || typeof federal_docket_document.comment_end_time === "string") &&
64
- typeof federal_docket_document.comments_open === "boolean" &&
65
- typeof federal_docket_document.comments_late_allow === "boolean" &&
62
+ (federal_docket_document.min_time_comment === undefined || typeof federal_docket_document.min_time_comment === "string") &&
63
+ (federal_docket_document.max_time_comment === undefined || typeof federal_docket_document.max_time_comment === "string") &&
64
+ typeof federal_docket_document.is_commentable === "boolean" &&
65
+ typeof federal_docket_document.is_commentable_late === "boolean" &&
66
66
  typeof federal_docket_document.is_withdrawn === "boolean" &&
67
67
  (federal_docket_document.author_date === undefined || typeof federal_docket_document.author_date === "string") &&
68
- Array.isArray(federal_docket_document.author_names) && federal_docket_document.author_names.every((author_name) => typeof author_name === "string") &&
68
+ (federal_docket_document.author_names === undefined || Array.isArray(federal_docket_document.author_names) && federal_docket_document.author_names.every((author_name) => typeof author_name === "string")) &&
69
69
  (federal_docket_document.media_type_id === undefined || typeof federal_docket_document.media_type_id === "string") &&
70
70
  (federal_docket_document.abstract === undefined || typeof federal_docket_document.abstract === "string") &&
71
- Array.isArray(federal_docket_document.urls) && federal_docket_document.urls.every((url) => typeof url === "string") &&
71
+ (federal_docket_document.urls === undefined || Array.isArray(federal_docket_document.urls) && federal_docket_document.urls.every((url) => typeof url === "string")) &&
72
72
  (federal_docket_document.s3_ids === undefined || Array.isArray(federal_docket_document.s3_ids) && federal_docket_document.s3_ids.every((s3_id) => typeof s3_id === "string")));
73
73
  }
74
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.339",
3
+ "version": "1.0.341",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -2,7 +2,6 @@ export class FederalDocketAgency {
2
2
  readonly federal_docket_agency_id : string
3
3
  readonly federal_register_agency_id : number
4
4
  readonly name : string
5
- readonly supreme_federal_register_agency_id : number
6
5
 
7
6
  constructor(federal_docket_agency : any) {
8
7
  if (!FederalDocketAgency.is(federal_docket_agency)) {
@@ -11,7 +10,6 @@ export class FederalDocketAgency {
11
10
  this.federal_docket_agency_id = federal_docket_agency.federal_docket_agency_id
12
11
  this.federal_register_agency_id = federal_docket_agency.federal_register_agency_id
13
12
  this.name = federal_docket_agency.name
14
- this.supreme_federal_register_agency_id = federal_docket_agency.supreme_federal_register_agency_id
15
13
  }
16
14
 
17
15
  static is(federal_docket_agency : any) : federal_docket_agency is FederalDocketAgency {
@@ -19,8 +17,7 @@ export class FederalDocketAgency {
19
17
  federal_docket_agency !== undefined &&
20
18
  typeof federal_docket_agency.federal_docket_agency_id === "string" &&
21
19
  typeof federal_docket_agency.federal_register_agency_id === "number" &&
22
- typeof federal_docket_agency.name === "string" &&
23
- typeof federal_docket_agency.supreme_federal_register_agency_id === "number"
20
+ typeof federal_docket_agency.name === "string"
24
21
  )
25
22
  }
26
23
  }
@@ -1,52 +1,3 @@
1
- export class Commentor {
2
- readonly first_name? : string
3
- readonly last_name? : string
4
- readonly organization_name? : string
5
- readonly address_1? : string
6
- readonly address_2? : string
7
- readonly city? : string
8
- readonly state_id? : string
9
- readonly zip? : string
10
- readonly country? : string
11
- readonly email? : string
12
- readonly phone? : string
13
-
14
- constructor(commentor : any) {
15
- if (!Commentor.is(commentor)) {
16
- throw Error("Invalid input.")
17
- }
18
- this.first_name = commentor.first_name
19
- this.last_name = commentor.last_name
20
- this.organization_name = commentor.organization_name
21
- this.address_1 = commentor.address_1
22
- this.address_2 = commentor.address_2
23
- this.city = commentor.city
24
- this.state_id = commentor.state_id
25
- this.zip = commentor.zip
26
- this.country = commentor.country
27
- this.email = commentor.email
28
- this.phone = commentor.phone
29
- }
30
-
31
- static is(commentor : any) : commentor is Commentor {
32
- return (
33
- commentor !== undefined &&
34
- (commentor.first_name === undefined || typeof commentor.first_name === "string") &&
35
- (commentor.last_name === undefined || typeof commentor.last_name === "string") &&
36
- (commentor.organization_name === undefined || typeof commentor.organization_name === "string") &&
37
- (commentor.address_1 === undefined || typeof commentor.address_1 === "string") &&
38
- (commentor.address_2 === undefined || typeof commentor.address_2 === "string") &&
39
- (commentor.city === undefined || typeof commentor.city === "string") &&
40
- (commentor.state_id === undefined || typeof commentor.state_id === "string") &&
41
- (commentor.zip === undefined || typeof commentor.zip === "string") &&
42
- (commentor.country === undefined || typeof commentor.country === "string") &&
43
- (commentor.email === undefined || typeof commentor.email === "string") &&
44
- (commentor.phone === undefined || typeof commentor.phone === "string")
45
- )
46
- }
47
- }
48
-
49
-
50
1
  export class FederalDocketComment {
51
2
  readonly federal_docket_comment_id : string
52
3
  readonly federal_docket_agency_id : string
@@ -57,7 +8,17 @@ export class FederalDocketComment {
57
8
  readonly comment_time? : string
58
9
  readonly modify_time : string
59
10
  readonly is_withdrawn : boolean
60
- readonly commentor : Commentor
11
+ readonly commentor_name_first? : string
12
+ readonly commentor_name_last? : string
13
+ readonly commentor_name_org? : string
14
+ readonly commentor_address_1? : string
15
+ readonly commentor_address_2? : string
16
+ readonly commentor_address_city? : string
17
+ readonly commentor_address_state_id? : string
18
+ readonly commentor_address_zip_id? : string
19
+ readonly commentor_address_country_id? : string
20
+ readonly commentor_email? : string
21
+ readonly commentor_phone? : string
61
22
  readonly text : string
62
23
 
63
24
  constructor(federal_docket_comment : any) {
@@ -73,7 +34,17 @@ export class FederalDocketComment {
73
34
  this.comment_time = federal_docket_comment.comment_time
74
35
  this.modify_time = federal_docket_comment.modify_time
75
36
  this.is_withdrawn = federal_docket_comment.is_withdrawn
76
- this.commentor = new Commentor(federal_docket_comment.commentor)
37
+ this.commentor_name_first = federal_docket_comment.commentor_name_first
38
+ this.commentor_name_last = federal_docket_comment.commentor_name_last
39
+ this.commentor_name_org = federal_docket_comment.commentor_name_org
40
+ this.commentor_address_1 = federal_docket_comment.commentor_address_1
41
+ this.commentor_address_2 = federal_docket_comment.commentor_address_2
42
+ this.commentor_address_city = federal_docket_comment.commentor_address_city
43
+ this.commentor_address_state_id = federal_docket_comment.commentor_address_state_id
44
+ this.commentor_address_zip_id = federal_docket_comment.commentor_address_zip_id
45
+ this.commentor_address_country_id = federal_docket_comment.commentor_address_country_id
46
+ this.commentor_email = federal_docket_comment.commentor_email
47
+ this.commentor_phone = federal_docket_comment.commentor_phone
77
48
  this.text = federal_docket_comment.text
78
49
  }
79
50
 
@@ -89,7 +60,17 @@ export class FederalDocketComment {
89
60
  (federal_docket_comment.comment_time === undefined || typeof federal_docket_comment.comment_time === "string") &&
90
61
  typeof federal_docket_comment.modify_time === "string" &&
91
62
  typeof federal_docket_comment.is_withdrawn === "boolean" &&
92
- Commentor.is(federal_docket_comment.commentor) &&
63
+ (federal_docket_comment.commentor_name_first === undefined || typeof federal_docket_comment.commentor_name_first === "string") &&
64
+ (federal_docket_comment.commentor_name_last === undefined || typeof federal_docket_comment.commentor_name_last === "string") &&
65
+ (federal_docket_comment.commentor_name_org === undefined || typeof federal_docket_comment.commentor_name_org === "string") &&
66
+ (federal_docket_comment.commentor_address_1 === undefined || typeof federal_docket_comment.commentor_address_1 === "string") &&
67
+ (federal_docket_comment.commentor_address_2 === undefined || typeof federal_docket_comment.commentor_address_2 === "string") &&
68
+ (federal_docket_comment.commentor_address_city === undefined || typeof federal_docket_comment.commentor_address_city === "string") &&
69
+ (federal_docket_comment.commentor_address_state_id === undefined || typeof federal_docket_comment.commentor_address_state_id === "string") &&
70
+ (federal_docket_comment.commentor_address_zip_id === undefined || typeof federal_docket_comment.commentor_address_zip_id === "string") &&
71
+ (federal_docket_comment.commentor_address_country_id === undefined || typeof federal_docket_comment.commentor_address_country_id === "string") &&
72
+ (federal_docket_comment.commentor_email === undefined || typeof federal_docket_comment.commentor_email === "string") &&
73
+ (federal_docket_comment.commentor_phone === undefined || typeof federal_docket_comment.commentor_phone === "string") &&
93
74
  typeof federal_docket_comment.text === "string"
94
75
  )
95
76
  }
@@ -1,17 +1,17 @@
1
1
  export class FederalDocketCommentAttachment {
2
- readonly federal_docket_comment_attachment_id : string
3
2
  readonly federal_docket_comment_id : string
4
- readonly attachment_number : number
5
- readonly urls : string[]
3
+ readonly attachment_id : number
4
+ readonly hash : string
5
+ readonly urls? : string[]
6
6
  readonly s3_ids? : string[]
7
7
 
8
8
  constructor(federal_docket_comment_attachment : any) {
9
9
  if (!FederalDocketCommentAttachment.is(federal_docket_comment_attachment)) {
10
10
  throw Error("Invalid input.")
11
11
  }
12
- this.federal_docket_comment_attachment_id = federal_docket_comment_attachment.federal_docket_comment_attachment_id
13
- this.attachment_number = federal_docket_comment_attachment.attachment_number
14
12
  this.federal_docket_comment_id = federal_docket_comment_attachment.federal_docket_comment_id
13
+ this.attachment_id = federal_docket_comment_attachment.attachment_id
14
+ this.hash = federal_docket_comment_attachment.hash
15
15
  this.urls = federal_docket_comment_attachment.urls
16
16
  this.s3_ids = federal_docket_comment_attachment.s3_ids
17
17
  }
@@ -19,10 +19,10 @@ export class FederalDocketCommentAttachment {
19
19
  static is(federal_docket_comment_attachment : any) : federal_docket_comment_attachment is FederalDocketCommentAttachment {
20
20
  return (
21
21
  federal_docket_comment_attachment !== undefined &&
22
- typeof federal_docket_comment_attachment.federal_docket_comment_attachment_id === "string" &&
23
22
  typeof federal_docket_comment_attachment.federal_docket_comment_id === "string" &&
24
- typeof federal_docket_comment_attachment.attachment_number === "number" &&
25
- Array.isArray(federal_docket_comment_attachment.urls) && federal_docket_comment_attachment.urls.every((url : any) => typeof url === "string") &&
23
+ typeof federal_docket_comment_attachment.attachment_id === "number" &&
24
+ typeof federal_docket_comment_attachment.hash === "string" &&
25
+ (federal_docket_comment_attachment.urls === undefined || Array.isArray(federal_docket_comment_attachment.urls) && federal_docket_comment_attachment.urls.every((url : any) => typeof url === "string")) &&
26
26
  (federal_docket_comment_attachment.s3_ids === undefined || Array.isArray(federal_docket_comment_attachment.s3_ids) && federal_docket_comment_attachment.s3_ids.every((s3_id : any) => typeof s3_id === "string"))
27
27
  )
28
28
  }
@@ -10,22 +10,22 @@ export class FederalDocketDocument {
10
10
  readonly federal_docket_document_id : string
11
11
  readonly federal_docket_agency_id : string
12
12
  readonly federal_docket_id? : string
13
- readonly type_id : FederalDocketDocumentTypeID
14
- readonly subtype_id? : string
13
+ readonly document_type_id : FederalDocketDocumentTypeID
14
+ readonly document_subtype_id? : string
15
15
  readonly federal_register_document_id? : string
16
16
  readonly title : string
17
17
  readonly publish_time? : string
18
18
  readonly modify_time : string
19
- readonly comment_start_time? : string
20
- readonly comment_end_time? : string
21
- readonly comments_open : boolean
22
- readonly comments_late_allow : boolean
19
+ readonly min_time_comment? : string
20
+ readonly max_time_comment? : string
21
+ readonly is_commentable : boolean
22
+ readonly is_commentable_late : boolean
23
23
  readonly is_withdrawn : boolean
24
24
  readonly author_date? : string
25
- readonly author_names : string[]
25
+ readonly author_names? : string[]
26
26
  readonly media_type_id? : string
27
27
  readonly abstract? : string
28
- readonly urls : string[]
28
+ readonly urls? : string[]
29
29
  readonly s3_ids? : string[]
30
30
 
31
31
  constructor(federal_docket_document : any) {
@@ -35,16 +35,16 @@ export class FederalDocketDocument {
35
35
  this.federal_docket_document_id = federal_docket_document.federal_docket_document_id
36
36
  this.federal_docket_agency_id = federal_docket_document.federal_docket_agency_id
37
37
  this.federal_docket_id = federal_docket_document.federal_docket_id
38
- this.type_id = federal_docket_document.type_id
39
- this.subtype_id = federal_docket_document.subtype_id
38
+ this.document_type_id = federal_docket_document.document_type_id
39
+ this.document_subtype_id = federal_docket_document.document_subtype_id
40
40
  this.federal_register_document_id = federal_docket_document.federal_register_document_id
41
41
  this.title = federal_docket_document.title
42
42
  this.publish_time = federal_docket_document.publish_time
43
43
  this.modify_time = federal_docket_document.modify_time
44
- this.comment_start_time = federal_docket_document.comment_start_time
45
- this.comment_end_time = federal_docket_document.comment_end_time
46
- this.comments_open = federal_docket_document.comments_open
47
- this.comments_late_allow = federal_docket_document.comments_late_allow
44
+ this.min_time_comment = federal_docket_document.min_time_comment
45
+ this.max_time_comment = federal_docket_document.max_time_comment
46
+ this.is_commentable = federal_docket_document.is_commentable
47
+ this.is_commentable_late = federal_docket_document.is_commentable_late
48
48
  this.is_withdrawn = federal_docket_document.is_withdrawn
49
49
  this.author_date = federal_docket_document.author_date
50
50
  this.author_names = federal_docket_document.author_names
@@ -60,22 +60,22 @@ export class FederalDocketDocument {
60
60
  typeof federal_docket_document.federal_docket_document_id === "string" &&
61
61
  typeof federal_docket_document.federal_docket_agency_id === "string" &&
62
62
  (federal_docket_document.federal_docket_id === undefined || typeof federal_docket_document.federal_docket_id === "string") &&
63
- is_federal_docket_document_type_id(federal_docket_document.type_id) &&
64
- (federal_docket_document.subtype_id === undefined || typeof federal_docket_document.subtype_id === "string") &&
63
+ is_federal_docket_document_type_id(federal_docket_document.document_type_id) &&
64
+ (federal_docket_document.document_subtype_id === undefined || typeof federal_docket_document.document_subtype_id === "string") &&
65
65
  (federal_docket_document.federal_register_document_id === undefined || typeof federal_docket_document.federal_register_document_id === "string") &&
66
66
  typeof federal_docket_document.title === "string" &&
67
67
  (federal_docket_document.publish_time === undefined || typeof federal_docket_document.publish_time === "string") &&
68
68
  typeof federal_docket_document.modify_time === "string" &&
69
- (federal_docket_document.comment_start_time === undefined || typeof federal_docket_document.comment_start_time === "string") &&
70
- (federal_docket_document.comment_end_time === undefined || typeof federal_docket_document.comment_end_time === "string") &&
71
- typeof federal_docket_document.comments_open === "boolean" &&
72
- typeof federal_docket_document.comments_late_allow === "boolean" &&
69
+ (federal_docket_document.min_time_comment === undefined || typeof federal_docket_document.min_time_comment === "string") &&
70
+ (federal_docket_document.max_time_comment === undefined || typeof federal_docket_document.max_time_comment === "string") &&
71
+ typeof federal_docket_document.is_commentable === "boolean" &&
72
+ typeof federal_docket_document.is_commentable_late === "boolean" &&
73
73
  typeof federal_docket_document.is_withdrawn === "boolean" &&
74
74
  (federal_docket_document.author_date === undefined || typeof federal_docket_document.author_date === "string") &&
75
- Array.isArray(federal_docket_document.author_names) && federal_docket_document.author_names.every((author_name : any) => typeof author_name === "string") &&
75
+ (federal_docket_document.author_names === undefined || Array.isArray(federal_docket_document.author_names) && federal_docket_document.author_names.every((author_name : any) => typeof author_name === "string")) &&
76
76
  (federal_docket_document.media_type_id === undefined || typeof federal_docket_document.media_type_id === "string") &&
77
77
  (federal_docket_document.abstract === undefined || typeof federal_docket_document.abstract === "string") &&
78
- Array.isArray(federal_docket_document.urls) && federal_docket_document.urls.every((url : any) => typeof url === "string") &&
78
+ (federal_docket_document.urls === undefined || Array.isArray(federal_docket_document.urls) && federal_docket_document.urls.every((url : any) => typeof url === "string")) &&
79
79
  (federal_docket_document.s3_ids === undefined || Array.isArray(federal_docket_document.s3_ids) && federal_docket_document.s3_ids.every((s3_id : any) => typeof s3_id === "string"))
80
80
  )
81
81
  }