triangle-utils 1.4.75 → 1.4.77

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.
@@ -5,6 +5,7 @@ export declare class ApplicationConfig {
5
5
  readonly client_dev_url: string;
6
6
  readonly api_url: string;
7
7
  readonly api_dev_url: string;
8
+ readonly anthropic_api_key?: string;
8
9
  readonly [x: string]: any;
9
10
  constructor(application_config: ApplicationConfig);
10
11
  static is(application_config: any): application_config is ApplicationConfig;
@@ -5,6 +5,7 @@ export class ApplicationConfig {
5
5
  client_dev_url;
6
6
  api_url;
7
7
  api_dev_url;
8
+ anthropic_api_key;
8
9
  constructor(application_config) {
9
10
  if (!ApplicationConfig.is(application_config)) {
10
11
  throw Error("Invalid input.");
@@ -15,6 +16,7 @@ export class ApplicationConfig {
15
16
  this.client_dev_url = application_config.client_dev_url;
16
17
  this.api_url = application_config.api_url;
17
18
  this.api_dev_url = application_config.api_dev_url;
19
+ this.anthropic_api_key = application_config.anthropic_api_key;
18
20
  }
19
21
  static is(application_config) {
20
22
  return (application_config !== undefined &&
@@ -23,6 +25,7 @@ export class ApplicationConfig {
23
25
  typeof application_config.client_url === "string" &&
24
26
  typeof application_config.client_dev_url === "string" &&
25
27
  typeof application_config.api_url === "string" &&
26
- typeof application_config.api_dev_url === "string");
28
+ typeof application_config.api_dev_url === "string" &&
29
+ (application_config.anthropic_api_key === undefined || typeof application_config.anthropic_api_key === "string"));
27
30
  }
28
31
  }
@@ -5,6 +5,7 @@ export declare class GlobalConfig {
5
5
  readonly auth_url: string;
6
6
  readonly s3_elections: string;
7
7
  readonly s3_prism: string;
8
+ readonly s3_scout: string;
8
9
  readonly s3_triage: string;
9
10
  readonly super_federal_gov_api_keys: string;
10
11
  readonly federal_gov_api_keys: string;
@@ -12,7 +13,6 @@ export declare class GlobalConfig {
12
13
  readonly scraping_bee_api_key: string;
13
14
  readonly twitter_api_key: string;
14
15
  readonly youtube_api_key: string;
15
- readonly anthropic_api_key: string;
16
16
  readonly xai_api_key: string;
17
17
  readonly [x: string]: any;
18
18
  constructor(global_config: GlobalConfig);
@@ -5,6 +5,7 @@ export class GlobalConfig {
5
5
  auth_url;
6
6
  s3_elections;
7
7
  s3_prism;
8
+ s3_scout;
8
9
  s3_triage;
9
10
  super_federal_gov_api_keys;
10
11
  federal_gov_api_keys;
@@ -12,7 +13,6 @@ export class GlobalConfig {
12
13
  scraping_bee_api_key;
13
14
  twitter_api_key;
14
15
  youtube_api_key;
15
- anthropic_api_key;
16
16
  xai_api_key;
17
17
  constructor(global_config) {
18
18
  if (!GlobalConfig.is(global_config)) {
@@ -24,6 +24,7 @@ export class GlobalConfig {
24
24
  this.auth_url = global_config.auth_url;
25
25
  this.s3_elections = global_config.s3_elections;
26
26
  this.s3_prism = global_config.s3_prism;
27
+ this.s3_scout = global_config.s3_scout;
27
28
  this.s3_triage = global_config.s3_triage;
28
29
  this.super_federal_gov_api_keys = global_config.super_federal_gov_api_keys;
29
30
  this.federal_gov_api_keys = global_config.federal_gov_api_keys;
@@ -31,7 +32,6 @@ export class GlobalConfig {
31
32
  this.scraping_bee_api_key = global_config.scraping_bee_api_key;
32
33
  this.twitter_api_key = global_config.twitter_api_key;
33
34
  this.youtube_api_key = global_config.youtube_api_key;
34
- this.anthropic_api_key = global_config.anthropic_api_key;
35
35
  this.xai_api_key = global_config.xai_api_key;
36
36
  }
37
37
  static is(global_config) {
@@ -42,6 +42,7 @@ export class GlobalConfig {
42
42
  typeof global_config.auth_url === "string" &&
43
43
  typeof global_config.s3_elections === "string" &&
44
44
  typeof global_config.s3_prism === "string" &&
45
+ typeof global_config.s3_scout === "string" &&
45
46
  typeof global_config.s3_triage === "string" &&
46
47
  typeof global_config.super_federal_gov_api_keys === "string" &&
47
48
  typeof global_config.federal_gov_api_keys === "string" &&
@@ -49,7 +50,6 @@ export class GlobalConfig {
49
50
  typeof global_config.scraping_bee_api_key === "string" &&
50
51
  typeof global_config.twitter_api_key === "string" &&
51
52
  typeof global_config.youtube_api_key === "string" &&
52
- typeof global_config.anthropic_api_key === "string" &&
53
53
  typeof global_config.xai_api_key === "string");
54
54
  }
55
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.75",
3
+ "version": "1.4.77",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -6,6 +6,7 @@ export class ApplicationConfig {
6
6
  readonly client_dev_url : string
7
7
  readonly api_url : string
8
8
  readonly api_dev_url : string
9
+ readonly anthropic_api_key? : string
9
10
  readonly [x : string] : any
10
11
 
11
12
  constructor(application_config : ApplicationConfig) {
@@ -18,6 +19,7 @@ export class ApplicationConfig {
18
19
  this.client_dev_url = application_config.client_dev_url
19
20
  this.api_url = application_config.api_url
20
21
  this.api_dev_url = application_config.api_dev_url
22
+ this.anthropic_api_key = application_config.anthropic_api_key
21
23
  }
22
24
 
23
25
  static is(application_config : any) : application_config is ApplicationConfig {
@@ -28,7 +30,8 @@ export class ApplicationConfig {
28
30
  typeof application_config.client_url === "string" &&
29
31
  typeof application_config.client_dev_url === "string" &&
30
32
  typeof application_config.api_url === "string" &&
31
- typeof application_config.api_dev_url === "string"
33
+ typeof application_config.api_dev_url === "string" &&
34
+ (application_config.anthropic_api_key === undefined || typeof application_config.anthropic_api_key === "string")
32
35
  )
33
36
  }
34
37
  }
@@ -5,6 +5,7 @@ export class GlobalConfig {
5
5
  readonly auth_url : string
6
6
  readonly s3_elections : string
7
7
  readonly s3_prism : string
8
+ readonly s3_scout : string
8
9
  readonly s3_triage : string
9
10
  readonly super_federal_gov_api_keys : string
10
11
  readonly federal_gov_api_keys : string
@@ -12,7 +13,6 @@ export class GlobalConfig {
12
13
  readonly scraping_bee_api_key : string
13
14
  readonly twitter_api_key : string
14
15
  readonly youtube_api_key : string
15
- readonly anthropic_api_key : string
16
16
  readonly xai_api_key : string
17
17
  readonly [x : string] : any
18
18
 
@@ -26,6 +26,7 @@ export class GlobalConfig {
26
26
  this.auth_url = global_config.auth_url
27
27
  this.s3_elections = global_config.s3_elections
28
28
  this.s3_prism = global_config.s3_prism
29
+ this.s3_scout = global_config.s3_scout
29
30
  this.s3_triage = global_config.s3_triage
30
31
  this.super_federal_gov_api_keys = global_config.super_federal_gov_api_keys
31
32
  this.federal_gov_api_keys = global_config.federal_gov_api_keys
@@ -33,7 +34,6 @@ export class GlobalConfig {
33
34
  this.scraping_bee_api_key = global_config.scraping_bee_api_key
34
35
  this.twitter_api_key = global_config.twitter_api_key
35
36
  this.youtube_api_key = global_config.youtube_api_key
36
- this.anthropic_api_key = global_config.anthropic_api_key
37
37
  this.xai_api_key = global_config.xai_api_key
38
38
  }
39
39
 
@@ -46,6 +46,7 @@ export class GlobalConfig {
46
46
  typeof global_config.auth_url === "string" &&
47
47
  typeof global_config.s3_elections === "string" &&
48
48
  typeof global_config.s3_prism === "string" &&
49
+ typeof global_config.s3_scout === "string" &&
49
50
  typeof global_config.s3_triage === "string" &&
50
51
  typeof global_config.super_federal_gov_api_keys === "string" &&
51
52
  typeof global_config.federal_gov_api_keys === "string" &&
@@ -53,7 +54,6 @@ export class GlobalConfig {
53
54
  typeof global_config.scraping_bee_api_key === "string" &&
54
55
  typeof global_config.twitter_api_key === "string" &&
55
56
  typeof global_config.youtube_api_key === "string" &&
56
- typeof global_config.anthropic_api_key === "string" &&
57
57
  typeof global_config.xai_api_key === "string"
58
58
  )
59
59
  }