triangle-types 1.0.338 → 1.0.340
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/index.d.ts +0 -1
- package/dist/src/index.js +0 -1
- package/dist/src/types/federal_dockets/FederalDocketComment.d.ts +11 -16
- package/dist/src/types/federal_dockets/FederalDocketComment.js +33 -46
- package/dist/src/types/federal_dockets/FederalDocketCommentAttachment.d.ts +3 -3
- package/dist/src/types/federal_dockets/FederalDocketCommentAttachment.js +7 -7
- package/dist/src/types/federal_dockets/FederalDocketDocument.d.ts +8 -8
- package/dist/src/types/federal_dockets/FederalDocketDocument.js +20 -20
- package/package.json +1 -1
- package/src/index.ts +0 -1
- package/src/types/federal_dockets/FederalDocketComment.ts +33 -52
- package/src/types/federal_dockets/FederalDocketCommentAttachment.ts +8 -8
- package/src/types/federal_dockets/FederalDocketDocument.ts +22 -22
- package/src/types/federal_rules/FederalRuleSection.ts +0 -42
package/dist/src/index.d.ts
CHANGED
|
@@ -60,7 +60,6 @@ export * from "./types/federal_dockets/FederalDocketDocument.js";
|
|
|
60
60
|
export * from "./types/federal_dockets/FederalDocketComment.js";
|
|
61
61
|
export * from "./types/federal_dockets/FederalDocketCommentAttachment.js";
|
|
62
62
|
export * from "./types/federal_rules/FederalRuleTitle.js";
|
|
63
|
-
export * from "./types/federal_rules/FederalRuleSection.js";
|
|
64
63
|
export * from "./types/jurisdictions/County.js";
|
|
65
64
|
export * from "./types/jurisdictions/Jurisdiction.js";
|
|
66
65
|
export * from "./types/jurisdictions/JurisdictionMetric.js";
|
package/dist/src/index.js
CHANGED
|
@@ -60,7 +60,6 @@ export * from "./types/federal_dockets/FederalDocketDocument.js";
|
|
|
60
60
|
export * from "./types/federal_dockets/FederalDocketComment.js";
|
|
61
61
|
export * from "./types/federal_dockets/FederalDocketCommentAttachment.js";
|
|
62
62
|
export * from "./types/federal_rules/FederalRuleTitle.js";
|
|
63
|
-
export * from "./types/federal_rules/FederalRuleSection.js";
|
|
64
63
|
export * from "./types/jurisdictions/County.js";
|
|
65
64
|
export * from "./types/jurisdictions/Jurisdiction.js";
|
|
66
65
|
export * from "./types/jurisdictions/JurisdictionMetric.js";
|
|
@@ -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
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
|
5
|
-
readonly
|
|
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
|
-
|
|
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.
|
|
22
|
-
|
|
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
|
|
9
|
-
readonly
|
|
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
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
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
|
|
20
|
+
readonly author_names?: string[];
|
|
21
21
|
readonly media_type_id?: string;
|
|
22
22
|
readonly abstract?: string;
|
|
23
|
-
readonly urls
|
|
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
|
-
|
|
10
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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.
|
|
34
|
-
this.
|
|
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.
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
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.
|
|
57
|
-
(federal_docket_document.
|
|
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.
|
|
63
|
-
(federal_docket_document.
|
|
64
|
-
typeof federal_docket_document.
|
|
65
|
-
typeof federal_docket_document.
|
|
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
package/src/index.ts
CHANGED
|
@@ -71,7 +71,6 @@ export * from "./types/federal_dockets/FederalDocketComment"
|
|
|
71
71
|
export * from "./types/federal_dockets/FederalDocketCommentAttachment"
|
|
72
72
|
|
|
73
73
|
export * from "./types/federal_rules/FederalRuleTitle"
|
|
74
|
-
export * from "./types/federal_rules/FederalRuleSection"
|
|
75
74
|
|
|
76
75
|
export * from "./types/jurisdictions/County"
|
|
77
76
|
export * from "./types/jurisdictions/Jurisdiction"
|
|
@@ -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
|
|
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.
|
|
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
|
-
|
|
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
|
|
5
|
-
readonly
|
|
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.
|
|
25
|
-
|
|
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
|
|
14
|
-
readonly
|
|
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
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
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.
|
|
39
|
-
this.
|
|
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.
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
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.
|
|
64
|
-
(federal_docket_document.
|
|
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.
|
|
70
|
-
(federal_docket_document.
|
|
71
|
-
typeof federal_docket_document.
|
|
72
|
-
typeof federal_docket_document.
|
|
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
|
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export class FederalRuleSection {
|
|
2
|
-
readonly federal_rule_section_id : string
|
|
3
|
-
readonly federal_rule_title_id : number
|
|
4
|
-
readonly section_id : string
|
|
5
|
-
readonly part_id : string
|
|
6
|
-
readonly subpart_id? : string
|
|
7
|
-
readonly name : string
|
|
8
|
-
readonly is_substantive : boolean
|
|
9
|
-
readonly is_removed : boolean
|
|
10
|
-
readonly s3_id? : string
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
constructor(federal_rule_section : FederalRuleSection) {
|
|
14
|
-
if (!FederalRuleSection.is(federal_rule_section)) {
|
|
15
|
-
throw Error("Invalid input.")
|
|
16
|
-
}
|
|
17
|
-
this.federal_rule_section_id = federal_rule_section.federal_rule_section_id
|
|
18
|
-
this.federal_rule_title_id = federal_rule_section.federal_rule_title_id
|
|
19
|
-
this.section_id = federal_rule_section.section_id
|
|
20
|
-
this.part_id = federal_rule_section.part_id
|
|
21
|
-
this.subpart_id = federal_rule_section.subpart_id
|
|
22
|
-
this.name = federal_rule_section.name
|
|
23
|
-
this.is_substantive = federal_rule_section.is_substantive
|
|
24
|
-
this.is_removed = federal_rule_section.is_removed
|
|
25
|
-
this.s3_id = federal_rule_section.s3_id
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
static is(federal_rule_section : any) : federal_rule_section is FederalRuleSection {
|
|
29
|
-
return (
|
|
30
|
-
federal_rule_section !== undefined &&
|
|
31
|
-
typeof federal_rule_section.federal_rule_section_id === "string" &&
|
|
32
|
-
typeof federal_rule_section.federal_rule_title_id === "number" && !isNaN(federal_rule_section.federal_rule_title_id) &&
|
|
33
|
-
typeof federal_rule_section.section_id === "string" &&
|
|
34
|
-
typeof federal_rule_section.part_id === "string" &&
|
|
35
|
-
(federal_rule_section.subpart_id === undefined || typeof federal_rule_section.subpart_id === "string") &&
|
|
36
|
-
typeof federal_rule_section.name === "string" &&
|
|
37
|
-
typeof federal_rule_section.is_substantive === "boolean" &&
|
|
38
|
-
typeof federal_rule_section.is_removed === "boolean" &&
|
|
39
|
-
(federal_rule_section.s3_id === undefined || typeof federal_rule_section.s3_id === "string")
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
}
|