triage-types 1.0.94 → 1.0.96
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 +2 -0
- package/dist/src/index.js +2 -0
- package/dist/src/types/ApplicationConfig.d.ts +14 -0
- package/dist/src/types/ApplicationConfig.js +37 -0
- package/dist/src/types/GlobalConfig.d.ts +16 -0
- package/dist/src/types/GlobalConfig.js +43 -0
- package/dist/src/types/federal_dockets/FederalDocketCommentAttachment.d.ts +1 -1
- package/dist/src/types/federal_dockets/FederalDocketCommentAttachment.js +3 -3
- package/dist/src/types/federal_dockets/FederalDocketDocument.d.ts +1 -1
- package/dist/src/types/federal_dockets/FederalDocketDocument.js +3 -3
- package/dist/src/types/federal_register/FederalRegisterDocument.d.ts +1 -1
- package/dist/src/types/federal_register/FederalRegisterDocument.js +3 -3
- package/dist/src/types/state_permits/StatePermitDocument.d.ts +2 -2
- package/dist/src/types/state_permits/StatePermitDocument.js +6 -6
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/types/ApplicationConfig.ts +43 -0
- package/src/types/GlobalConfig.ts +48 -0
- package/src/types/federal_dockets/FederalDocketCommentAttachment.ts +3 -3
- package/src/types/federal_dockets/FederalDocketDocument.ts +3 -3
- package/src/types/federal_register/FederalRegisterDocument.ts +3 -3
- package/src/types/state_permits/StatePermitDocument.ts +6 -6
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./types/APIError.js";
|
|
2
|
+
export * from "./types/ApplicationConfig.js";
|
|
3
|
+
export * from "./types/GlobalConfig.js";
|
|
2
4
|
export * from "./types/State.js";
|
|
3
5
|
export * from "./types/federal_register/FederalRegisterAgency.js";
|
|
4
6
|
export * from "./types/federal_register/FederalRegisterDocument.js";
|
package/dist/src/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./types/APIError.js";
|
|
2
|
+
export * from "./types/ApplicationConfig.js";
|
|
3
|
+
export * from "./types/GlobalConfig.js";
|
|
2
4
|
export * from "./types/State.js";
|
|
3
5
|
export * from "./types/federal_register/FederalRegisterAgency.js";
|
|
4
6
|
export * from "./types/federal_register/FederalRegisterDocument.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class ApplicationConfig {
|
|
2
|
+
readonly cognito_user_pool_id: string;
|
|
3
|
+
readonly cognito_client_id: string;
|
|
4
|
+
readonly cognito_client_secret: string;
|
|
5
|
+
readonly secret_key: string;
|
|
6
|
+
readonly client_url: string;
|
|
7
|
+
readonly client_dev_url: string;
|
|
8
|
+
readonly api_url: string;
|
|
9
|
+
readonly api_dev_url: string;
|
|
10
|
+
readonly auth_url: string;
|
|
11
|
+
readonly [x: string]: any;
|
|
12
|
+
constructor(application_config: ApplicationConfig);
|
|
13
|
+
static is(application_config: any): application_config is ApplicationConfig;
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export class ApplicationConfig {
|
|
2
|
+
cognito_user_pool_id;
|
|
3
|
+
cognito_client_id;
|
|
4
|
+
cognito_client_secret;
|
|
5
|
+
secret_key;
|
|
6
|
+
client_url;
|
|
7
|
+
client_dev_url;
|
|
8
|
+
api_url;
|
|
9
|
+
api_dev_url;
|
|
10
|
+
auth_url;
|
|
11
|
+
constructor(application_config) {
|
|
12
|
+
if (!ApplicationConfig.is(application_config)) {
|
|
13
|
+
throw Error("Invalid input.");
|
|
14
|
+
}
|
|
15
|
+
this.cognito_user_pool_id = application_config.cognito_user_pool_id;
|
|
16
|
+
this.cognito_client_id = application_config.cognito_client_id;
|
|
17
|
+
this.cognito_client_secret = application_config.cognito_client_secret;
|
|
18
|
+
this.secret_key = application_config.secret_key;
|
|
19
|
+
this.client_url = application_config.client_url;
|
|
20
|
+
this.client_dev_url = application_config.client_dev_url;
|
|
21
|
+
this.api_url = application_config.api_url;
|
|
22
|
+
this.api_dev_url = application_config.api_dev_url;
|
|
23
|
+
this.auth_url = application_config.auth_url;
|
|
24
|
+
}
|
|
25
|
+
static is(application_config) {
|
|
26
|
+
return (application_config !== undefined &&
|
|
27
|
+
typeof application_config.cognito_user_pool_id === "string" &&
|
|
28
|
+
typeof application_config.cognito_client_id === "string" &&
|
|
29
|
+
typeof application_config.cognito_client_secret === "string" &&
|
|
30
|
+
typeof application_config.secret_key === "string" &&
|
|
31
|
+
typeof application_config.client_url === "string" &&
|
|
32
|
+
typeof application_config.client_dev_url === "string" &&
|
|
33
|
+
typeof application_config.api_url === "string" &&
|
|
34
|
+
typeof application_config.api_dev_url === "string" &&
|
|
35
|
+
typeof application_config.auth_url === "string");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class GlobalConfig {
|
|
2
|
+
readonly s3_elections: string;
|
|
3
|
+
readonly s3_prism: string;
|
|
4
|
+
readonly s3_triage: string;
|
|
5
|
+
readonly super_federal_gov_api_keys: string;
|
|
6
|
+
readonly federal_gov_api_keys: string;
|
|
7
|
+
readonly federal_lobby_api_key: string;
|
|
8
|
+
readonly scraping_bee_api_key: string;
|
|
9
|
+
readonly twitter_api_key: string;
|
|
10
|
+
readonly youtube_api_key: string;
|
|
11
|
+
readonly anthropic_api_key: string;
|
|
12
|
+
readonly xai_api_key: string;
|
|
13
|
+
readonly [x: string]: any;
|
|
14
|
+
constructor(global_config: GlobalConfig);
|
|
15
|
+
static is(global_config: any): global_config is GlobalConfig;
|
|
16
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export class GlobalConfig {
|
|
2
|
+
s3_elections;
|
|
3
|
+
s3_prism;
|
|
4
|
+
s3_triage;
|
|
5
|
+
super_federal_gov_api_keys;
|
|
6
|
+
federal_gov_api_keys;
|
|
7
|
+
federal_lobby_api_key;
|
|
8
|
+
scraping_bee_api_key;
|
|
9
|
+
twitter_api_key;
|
|
10
|
+
youtube_api_key;
|
|
11
|
+
anthropic_api_key;
|
|
12
|
+
xai_api_key;
|
|
13
|
+
constructor(global_config) {
|
|
14
|
+
if (!GlobalConfig.is(global_config)) {
|
|
15
|
+
throw Error("Invalid input.");
|
|
16
|
+
}
|
|
17
|
+
this.s3_elections = global_config.s3_elections;
|
|
18
|
+
this.s3_prism = global_config.s3_prism;
|
|
19
|
+
this.s3_triage = global_config.s3_triage;
|
|
20
|
+
this.super_federal_gov_api_keys = global_config.super_federal_gov_api_keys;
|
|
21
|
+
this.federal_gov_api_keys = global_config.federal_gov_api_keys;
|
|
22
|
+
this.federal_lobby_api_key = global_config.federal_lobby_api_key;
|
|
23
|
+
this.scraping_bee_api_key = global_config.scraping_bee_api_key;
|
|
24
|
+
this.twitter_api_key = global_config.twitter_api_key;
|
|
25
|
+
this.youtube_api_key = global_config.youtube_api_key;
|
|
26
|
+
this.anthropic_api_key = global_config.anthropic_api_key;
|
|
27
|
+
this.xai_api_key = global_config.xai_api_key;
|
|
28
|
+
}
|
|
29
|
+
static is(global_config) {
|
|
30
|
+
return (global_config !== undefined &&
|
|
31
|
+
typeof global_config.s3_elections === "string" &&
|
|
32
|
+
typeof global_config.s3_prism === "string" &&
|
|
33
|
+
typeof global_config.s3_triage === "string" &&
|
|
34
|
+
typeof global_config.super_federal_gov_api_keys === "string" &&
|
|
35
|
+
typeof global_config.federal_gov_api_keys === "string" &&
|
|
36
|
+
typeof global_config.federal_lobby_api_key === "string" &&
|
|
37
|
+
typeof global_config.scraping_bee_api_key === "string" &&
|
|
38
|
+
typeof global_config.twitter_api_key === "string" &&
|
|
39
|
+
typeof global_config.youtube_api_key === "string" &&
|
|
40
|
+
typeof global_config.anthropic_api_key === "string" &&
|
|
41
|
+
typeof global_config.xai_api_key === "string");
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -3,7 +3,7 @@ export declare class FederalDocketCommentAttachment {
|
|
|
3
3
|
readonly federal_docket_comment_id: string;
|
|
4
4
|
readonly attachment_number: number;
|
|
5
5
|
readonly urls: string[];
|
|
6
|
-
readonly
|
|
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;
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@ export class FederalDocketCommentAttachment {
|
|
|
3
3
|
federal_docket_comment_id;
|
|
4
4
|
attachment_number;
|
|
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.");
|
|
@@ -12,7 +12,7 @@ export class FederalDocketCommentAttachment {
|
|
|
12
12
|
this.attachment_number = federal_docket_comment_attachment.attachment_number;
|
|
13
13
|
this.federal_docket_comment_id = federal_docket_comment_attachment.federal_docket_comment_id;
|
|
14
14
|
this.urls = federal_docket_comment_attachment.urls;
|
|
15
|
-
this.
|
|
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 &&
|
|
@@ -20,6 +20,6 @@ export class FederalDocketCommentAttachment {
|
|
|
20
20
|
typeof federal_docket_comment_attachment.federal_docket_comment_id === "string" &&
|
|
21
21
|
typeof federal_docket_comment_attachment.attachment_number === "number" &&
|
|
22
22
|
Array.isArray(federal_docket_comment_attachment.urls) && federal_docket_comment_attachment.urls.every((url) => typeof url === "string") &&
|
|
23
|
-
(federal_docket_comment_attachment.
|
|
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
|
}
|
|
@@ -21,7 +21,7 @@ export declare class FederalDocketDocument {
|
|
|
21
21
|
readonly media_type_id?: string;
|
|
22
22
|
readonly abstract?: string;
|
|
23
23
|
readonly urls: string[];
|
|
24
|
-
readonly
|
|
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;
|
|
27
27
|
}
|
|
@@ -22,7 +22,7 @@ export class FederalDocketDocument {
|
|
|
22
22
|
media_type_id;
|
|
23
23
|
abstract;
|
|
24
24
|
urls;
|
|
25
|
-
|
|
25
|
+
s3_ids;
|
|
26
26
|
constructor(federal_docket_document) {
|
|
27
27
|
if (!FederalDocketDocument.is(federal_docket_document)) {
|
|
28
28
|
throw Error("Invalid input.");
|
|
@@ -46,7 +46,7 @@ export class FederalDocketDocument {
|
|
|
46
46
|
this.media_type_id = federal_docket_document.media_type_id;
|
|
47
47
|
this.abstract = federal_docket_document.abstract;
|
|
48
48
|
this.urls = federal_docket_document.urls;
|
|
49
|
-
this.
|
|
49
|
+
this.s3_ids = federal_docket_document.s3_ids;
|
|
50
50
|
}
|
|
51
51
|
static is(federal_docket_document) {
|
|
52
52
|
return (federal_docket_document !== undefined &&
|
|
@@ -69,6 +69,6 @@ export class FederalDocketDocument {
|
|
|
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
71
|
Array.isArray(federal_docket_document.urls) && federal_docket_document.urls.every((url) => typeof url === "string") &&
|
|
72
|
-
(federal_docket_document.
|
|
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
|
}
|
|
@@ -14,7 +14,7 @@ export declare class FederalRegisterDocument {
|
|
|
14
14
|
readonly abstract?: string;
|
|
15
15
|
readonly url: string;
|
|
16
16
|
readonly topics: string[];
|
|
17
|
-
readonly
|
|
17
|
+
readonly s3_id?: string;
|
|
18
18
|
readonly vector_keys?: string[];
|
|
19
19
|
constructor(federal_register_document: any);
|
|
20
20
|
static is(federal_register_document: any): federal_register_document is FederalRegisterDocument;
|
|
@@ -15,7 +15,7 @@ export class FederalRegisterDocument {
|
|
|
15
15
|
abstract;
|
|
16
16
|
url;
|
|
17
17
|
topics;
|
|
18
|
-
|
|
18
|
+
s3_id;
|
|
19
19
|
vector_keys;
|
|
20
20
|
constructor(federal_register_document) {
|
|
21
21
|
if (!FederalRegisterDocument.is(federal_register_document)) {
|
|
@@ -33,7 +33,7 @@ export class FederalRegisterDocument {
|
|
|
33
33
|
this.abstract = federal_register_document.abstract;
|
|
34
34
|
this.url = federal_register_document.url;
|
|
35
35
|
this.topics = federal_register_document.topics;
|
|
36
|
-
this.
|
|
36
|
+
this.s3_id = federal_register_document.s3_id;
|
|
37
37
|
this.vector_keys = federal_register_document.vector_keys;
|
|
38
38
|
}
|
|
39
39
|
static is(federal_register_document) {
|
|
@@ -50,7 +50,7 @@ export class FederalRegisterDocument {
|
|
|
50
50
|
(federal_register_document.abstract === undefined || typeof federal_register_document.abstract === "string") &&
|
|
51
51
|
typeof federal_register_document.url === "string" &&
|
|
52
52
|
Array.isArray(federal_register_document.topics) && federal_register_document.topics.every((topic) => typeof topic === "string") &&
|
|
53
|
-
(federal_register_document.
|
|
53
|
+
(federal_register_document.s3_id === undefined || typeof federal_register_document.s3_id === "string") &&
|
|
54
54
|
(federal_register_document.vector_keys === undefined || Array.isArray(federal_register_document.vector_keys) && federal_register_document.vector_keys.every((topic) => typeof topic === "string")));
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -15,8 +15,8 @@ export declare class StatePermitDocument {
|
|
|
15
15
|
readonly document_type: string;
|
|
16
16
|
readonly document_type_id?: string;
|
|
17
17
|
readonly name: string;
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
18
|
+
readonly s3_id?: string;
|
|
19
|
+
readonly s3_id_txt?: string;
|
|
20
20
|
readonly source_ids?: string[];
|
|
21
21
|
readonly comments?: StatePermitComment[];
|
|
22
22
|
readonly [x: string]: any;
|
|
@@ -25,8 +25,8 @@ export class StatePermitDocument {
|
|
|
25
25
|
document_type;
|
|
26
26
|
document_type_id;
|
|
27
27
|
name;
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
s3_id;
|
|
29
|
+
s3_id_txt;
|
|
30
30
|
source_ids;
|
|
31
31
|
comments;
|
|
32
32
|
constructor(state_permit_document) {
|
|
@@ -41,8 +41,8 @@ export class StatePermitDocument {
|
|
|
41
41
|
this.document_type = state_permit_document.document_type;
|
|
42
42
|
this.document_type_id = state_permit_document.document_type_id;
|
|
43
43
|
this.name = state_permit_document.name;
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
44
|
+
this.s3_id = state_permit_document.s3_id;
|
|
45
|
+
this.s3_id_txt = state_permit_document.s3_id_txt;
|
|
46
46
|
this.source_ids = state_permit_document.source_ids;
|
|
47
47
|
this.comments = state_permit_document.comments;
|
|
48
48
|
}
|
|
@@ -56,8 +56,8 @@ export class StatePermitDocument {
|
|
|
56
56
|
typeof state_permit_document.document_type === "string" &&
|
|
57
57
|
(state_permit_document.document_type_id === undefined || typeof state_permit_document.document_type_id === "string") &&
|
|
58
58
|
typeof state_permit_document.name === "string" &&
|
|
59
|
-
(state_permit_document.
|
|
60
|
-
(state_permit_document.
|
|
59
|
+
(state_permit_document.s3_id === undefined || typeof state_permit_document.s3_id == "string") &&
|
|
60
|
+
(state_permit_document.s3_id_txt === undefined || typeof state_permit_document.s3_id_txt == "string") &&
|
|
61
61
|
(state_permit_document.source_ids === undefined || Array.isArray(state_permit_document.source_ids) && state_permit_document.source_ids.every((source_id) => typeof source_id === "string")) &&
|
|
62
62
|
(state_permit_document.comments === undefined || Array.isArray(state_permit_document.comments) && state_permit_document.comments.every(StatePermitComment.is)));
|
|
63
63
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
export class ApplicationConfig {
|
|
3
|
+
readonly cognito_user_pool_id : string
|
|
4
|
+
readonly cognito_client_id : string
|
|
5
|
+
readonly cognito_client_secret : string
|
|
6
|
+
readonly secret_key : string
|
|
7
|
+
readonly client_url : string
|
|
8
|
+
readonly client_dev_url : string
|
|
9
|
+
readonly api_url : string
|
|
10
|
+
readonly api_dev_url : string
|
|
11
|
+
readonly auth_url : string
|
|
12
|
+
readonly [x : string] : any
|
|
13
|
+
|
|
14
|
+
constructor(application_config : ApplicationConfig) {
|
|
15
|
+
if (!ApplicationConfig.is(application_config)) {
|
|
16
|
+
throw Error("Invalid input.")
|
|
17
|
+
}
|
|
18
|
+
this.cognito_user_pool_id = application_config.cognito_user_pool_id
|
|
19
|
+
this.cognito_client_id = application_config.cognito_client_id
|
|
20
|
+
this.cognito_client_secret = application_config.cognito_client_secret
|
|
21
|
+
this.secret_key = application_config.secret_key
|
|
22
|
+
this.client_url = application_config.client_url
|
|
23
|
+
this.client_dev_url = application_config.client_dev_url
|
|
24
|
+
this.api_url = application_config.api_url
|
|
25
|
+
this.api_dev_url = application_config.api_dev_url
|
|
26
|
+
this.auth_url = application_config.auth_url
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static is(application_config : any) : application_config is ApplicationConfig {
|
|
30
|
+
return (
|
|
31
|
+
application_config !== undefined &&
|
|
32
|
+
typeof application_config.cognito_user_pool_id === "string" &&
|
|
33
|
+
typeof application_config.cognito_client_id === "string" &&
|
|
34
|
+
typeof application_config.cognito_client_secret === "string" &&
|
|
35
|
+
typeof application_config.secret_key === "string" &&
|
|
36
|
+
typeof application_config.client_url === "string" &&
|
|
37
|
+
typeof application_config.client_dev_url === "string" &&
|
|
38
|
+
typeof application_config.api_url === "string" &&
|
|
39
|
+
typeof application_config.api_dev_url === "string" &&
|
|
40
|
+
typeof application_config.auth_url === "string"
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export class GlobalConfig {
|
|
2
|
+
readonly s3_elections : string
|
|
3
|
+
readonly s3_prism : string
|
|
4
|
+
readonly s3_triage : string
|
|
5
|
+
readonly super_federal_gov_api_keys : string
|
|
6
|
+
readonly federal_gov_api_keys : string
|
|
7
|
+
readonly federal_lobby_api_key : string
|
|
8
|
+
readonly scraping_bee_api_key : string
|
|
9
|
+
readonly twitter_api_key : string
|
|
10
|
+
readonly youtube_api_key : string
|
|
11
|
+
readonly anthropic_api_key : string
|
|
12
|
+
readonly xai_api_key : string
|
|
13
|
+
readonly [x : string] : any
|
|
14
|
+
|
|
15
|
+
constructor(global_config : GlobalConfig) {
|
|
16
|
+
if (!GlobalConfig.is(global_config)) {
|
|
17
|
+
throw Error("Invalid input.")
|
|
18
|
+
}
|
|
19
|
+
this.s3_elections = global_config.s3_elections
|
|
20
|
+
this.s3_prism = global_config.s3_prism
|
|
21
|
+
this.s3_triage = global_config.s3_triage
|
|
22
|
+
this.super_federal_gov_api_keys = global_config.super_federal_gov_api_keys
|
|
23
|
+
this.federal_gov_api_keys = global_config.federal_gov_api_keys
|
|
24
|
+
this.federal_lobby_api_key = global_config.federal_lobby_api_key
|
|
25
|
+
this.scraping_bee_api_key = global_config.scraping_bee_api_key
|
|
26
|
+
this.twitter_api_key = global_config.twitter_api_key
|
|
27
|
+
this.youtube_api_key = global_config.youtube_api_key
|
|
28
|
+
this.anthropic_api_key = global_config.anthropic_api_key
|
|
29
|
+
this.xai_api_key = global_config.xai_api_key
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static is(global_config : any) : global_config is GlobalConfig {
|
|
33
|
+
return (
|
|
34
|
+
global_config !== undefined &&
|
|
35
|
+
typeof global_config.s3_elections === "string" &&
|
|
36
|
+
typeof global_config.s3_prism === "string" &&
|
|
37
|
+
typeof global_config.s3_triage === "string" &&
|
|
38
|
+
typeof global_config.super_federal_gov_api_keys === "string" &&
|
|
39
|
+
typeof global_config.federal_gov_api_keys === "string" &&
|
|
40
|
+
typeof global_config.federal_lobby_api_key === "string" &&
|
|
41
|
+
typeof global_config.scraping_bee_api_key === "string" &&
|
|
42
|
+
typeof global_config.twitter_api_key === "string" &&
|
|
43
|
+
typeof global_config.youtube_api_key === "string" &&
|
|
44
|
+
typeof global_config.anthropic_api_key === "string" &&
|
|
45
|
+
typeof global_config.xai_api_key === "string"
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -3,7 +3,7 @@ export class FederalDocketCommentAttachment {
|
|
|
3
3
|
readonly federal_docket_comment_id : string
|
|
4
4
|
readonly attachment_number : number
|
|
5
5
|
readonly urls : string[]
|
|
6
|
-
readonly
|
|
6
|
+
readonly s3_ids? : string[]
|
|
7
7
|
|
|
8
8
|
constructor(federal_docket_comment_attachment : any) {
|
|
9
9
|
if (!FederalDocketCommentAttachment.is(federal_docket_comment_attachment)) {
|
|
@@ -13,7 +13,7 @@ export class FederalDocketCommentAttachment {
|
|
|
13
13
|
this.attachment_number = federal_docket_comment_attachment.attachment_number
|
|
14
14
|
this.federal_docket_comment_id = federal_docket_comment_attachment.federal_docket_comment_id
|
|
15
15
|
this.urls = federal_docket_comment_attachment.urls
|
|
16
|
-
this.
|
|
16
|
+
this.s3_ids = federal_docket_comment_attachment.s3_ids
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
static is(federal_docket_comment_attachment : any) : federal_docket_comment_attachment is FederalDocketCommentAttachment {
|
|
@@ -23,7 +23,7 @@ export class FederalDocketCommentAttachment {
|
|
|
23
23
|
typeof federal_docket_comment_attachment.federal_docket_comment_id === "string" &&
|
|
24
24
|
typeof federal_docket_comment_attachment.attachment_number === "number" &&
|
|
25
25
|
Array.isArray(federal_docket_comment_attachment.urls) && federal_docket_comment_attachment.urls.every((url : any) => typeof url === "string") &&
|
|
26
|
-
(federal_docket_comment_attachment.
|
|
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
|
}
|
|
29
29
|
}
|
|
@@ -26,7 +26,7 @@ export class FederalDocketDocument {
|
|
|
26
26
|
readonly media_type_id? : string
|
|
27
27
|
readonly abstract? : string
|
|
28
28
|
readonly urls : string[]
|
|
29
|
-
readonly
|
|
29
|
+
readonly s3_ids? : string[]
|
|
30
30
|
|
|
31
31
|
constructor(federal_docket_document : any) {
|
|
32
32
|
if (!FederalDocketDocument.is(federal_docket_document)) {
|
|
@@ -51,7 +51,7 @@ export class FederalDocketDocument {
|
|
|
51
51
|
this.media_type_id = federal_docket_document.media_type_id
|
|
52
52
|
this.abstract = federal_docket_document.abstract
|
|
53
53
|
this.urls = federal_docket_document.urls
|
|
54
|
-
this.
|
|
54
|
+
this.s3_ids = federal_docket_document.s3_ids
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
static is(federal_docket_document : any) : federal_docket_document is FederalDocketDocument {
|
|
@@ -76,7 +76,7 @@ export class FederalDocketDocument {
|
|
|
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
78
|
Array.isArray(federal_docket_document.urls) && federal_docket_document.urls.every((url : any) => typeof url === "string") &&
|
|
79
|
-
(federal_docket_document.
|
|
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
|
}
|
|
82
82
|
}
|
|
@@ -19,7 +19,7 @@ export class FederalRegisterDocument {
|
|
|
19
19
|
readonly abstract? : string
|
|
20
20
|
readonly url : string
|
|
21
21
|
readonly topics : string[]
|
|
22
|
-
readonly
|
|
22
|
+
readonly s3_id? : string
|
|
23
23
|
readonly vector_keys? : string[]
|
|
24
24
|
|
|
25
25
|
constructor(federal_register_document : any) {
|
|
@@ -38,7 +38,7 @@ export class FederalRegisterDocument {
|
|
|
38
38
|
this.abstract = federal_register_document.abstract
|
|
39
39
|
this.url = federal_register_document.url
|
|
40
40
|
this.topics = federal_register_document.topics
|
|
41
|
-
this.
|
|
41
|
+
this.s3_id = federal_register_document.s3_id
|
|
42
42
|
this.vector_keys = federal_register_document.vector_keys
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -57,7 +57,7 @@ export class FederalRegisterDocument {
|
|
|
57
57
|
(federal_register_document.abstract === undefined || typeof federal_register_document.abstract === "string") &&
|
|
58
58
|
typeof federal_register_document.url === "string" &&
|
|
59
59
|
Array.isArray(federal_register_document.topics) && federal_register_document.topics.every((topic : any) => typeof topic === "string") &&
|
|
60
|
-
(federal_register_document.
|
|
60
|
+
(federal_register_document.s3_id === undefined || typeof federal_register_document.s3_id === "string") &&
|
|
61
61
|
(federal_register_document.vector_keys === undefined || Array.isArray(federal_register_document.vector_keys) && federal_register_document.vector_keys.every((topic : any) => typeof topic === "string"))
|
|
62
62
|
)
|
|
63
63
|
}
|
|
@@ -33,8 +33,8 @@ export class StatePermitDocument {
|
|
|
33
33
|
readonly document_type : string
|
|
34
34
|
readonly document_type_id? : string
|
|
35
35
|
readonly name : string
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
36
|
+
readonly s3_id? : string
|
|
37
|
+
readonly s3_id_txt? : string
|
|
38
38
|
readonly source_ids? : string[]
|
|
39
39
|
readonly comments? : StatePermitComment[]
|
|
40
40
|
readonly [x : string] : any
|
|
@@ -51,8 +51,8 @@ export class StatePermitDocument {
|
|
|
51
51
|
this.document_type = state_permit_document.document_type
|
|
52
52
|
this.document_type_id = state_permit_document.document_type_id
|
|
53
53
|
this.name = state_permit_document.name
|
|
54
|
-
this.
|
|
55
|
-
this.
|
|
54
|
+
this.s3_id = state_permit_document.s3_id
|
|
55
|
+
this.s3_id_txt = state_permit_document.s3_id_txt
|
|
56
56
|
this.source_ids = state_permit_document.source_ids
|
|
57
57
|
this.comments = state_permit_document.comments
|
|
58
58
|
}
|
|
@@ -68,8 +68,8 @@ export class StatePermitDocument {
|
|
|
68
68
|
typeof state_permit_document.document_type === "string" &&
|
|
69
69
|
(state_permit_document.document_type_id === undefined || typeof state_permit_document.document_type_id === "string") &&
|
|
70
70
|
typeof state_permit_document.name === "string" &&
|
|
71
|
-
(state_permit_document.
|
|
72
|
-
(state_permit_document.
|
|
71
|
+
(state_permit_document.s3_id === undefined || typeof state_permit_document.s3_id == "string") &&
|
|
72
|
+
(state_permit_document.s3_id_txt === undefined || typeof state_permit_document.s3_id_txt == "string") &&
|
|
73
73
|
(state_permit_document.source_ids === undefined || Array.isArray(state_permit_document.source_ids) && state_permit_document.source_ids.every((source_id : any) => typeof source_id === "string")) &&
|
|
74
74
|
(state_permit_document.comments === undefined || Array.isArray(state_permit_document.comments) && state_permit_document.comments.every(StatePermitComment.is))
|
|
75
75
|
)
|