elections-types 1.0.81 → 1.0.83

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.
@@ -17,6 +17,7 @@ export interface ElectionsConfig extends ElectionsUtilsConfig {
17
17
  secret_key: string;
18
18
  super_gov_api_keys: string[];
19
19
  gov_api_keys: string[];
20
+ lobby_api_key: string;
20
21
  dynamodb_elections: string;
21
22
  dynamodb_candidates: string;
22
23
  dynamodb_committees: string;
@@ -8,6 +8,7 @@ export declare class FederalDonation {
8
8
  readonly fec_file_id: number;
9
9
  readonly image_number: string;
10
10
  readonly amount: number;
11
+ readonly donor_is_individual: boolean;
11
12
  readonly donor_id?: string;
12
13
  readonly donor_name: string;
13
14
  readonly donor_prefix?: string;
@@ -7,6 +7,7 @@ export class FederalDonation {
7
7
  fec_file_id;
8
8
  image_number;
9
9
  amount;
10
+ donor_is_individual;
10
11
  donor_id;
11
12
  donor_name;
12
13
  donor_prefix;
@@ -35,6 +36,7 @@ export class FederalDonation {
35
36
  this.fec_file_id = federal_donation.fec_file_id;
36
37
  this.image_number = federal_donation.image_number;
37
38
  this.amount = federal_donation.amount;
39
+ this.donor_is_individual = federal_donation.donor_is_individual;
38
40
  this.donor_id = federal_donation.donor_id;
39
41
  this.donor_name = federal_donation.donor_name;
40
42
  this.donor_prefix = federal_donation.donor_prefix;
@@ -62,6 +64,7 @@ export class FederalDonation {
62
64
  typeof federal_donation.fec_file_id === "number" && !isNaN(federal_donation.fec_file_id) &&
63
65
  typeof federal_donation.image_number === "string" &&
64
66
  typeof federal_donation.amount === "number" && !isNaN(federal_donation.amount) &&
67
+ typeof federal_donation.donor_is_individual === "boolean" &&
65
68
  (federal_donation.donor_id === undefined || typeof federal_donation.donor_id === "string") &&
66
69
  typeof federal_donation.donor_name === "string" &&
67
70
  (federal_donation.donor_prefix === undefined || typeof federal_donation.donor_prefix === "string") &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elections-types",
3
- "version": "1.0.81",
3
+ "version": "1.0.83",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -19,6 +19,7 @@ export interface ElectionsConfig extends ElectionsUtilsConfig {
19
19
  // admin_key : string,
20
20
  super_gov_api_keys : string[],
21
21
  gov_api_keys : string[],
22
+ lobby_api_key : string,
22
23
  dynamodb_elections : string,
23
24
  dynamodb_candidates : string,
24
25
  dynamodb_committees : string,
@@ -9,6 +9,7 @@ export class FederalDonation {
9
9
  readonly fec_file_id : number
10
10
  readonly image_number : string
11
11
  readonly amount : number
12
+ readonly donor_is_individual : boolean
12
13
  readonly donor_id? : string
13
14
  readonly donor_name : string
14
15
  readonly donor_prefix? : string
@@ -38,6 +39,7 @@ export class FederalDonation {
38
39
  this.fec_file_id = federal_donation.fec_file_id
39
40
  this.image_number = federal_donation.image_number
40
41
  this.amount = federal_donation.amount
42
+ this.donor_is_individual = federal_donation.donor_is_individual
41
43
  this.donor_id = federal_donation.donor_id
42
44
  this.donor_name = federal_donation.donor_name
43
45
  this.donor_prefix = federal_donation.donor_prefix
@@ -67,6 +69,7 @@ export class FederalDonation {
67
69
  typeof federal_donation.fec_file_id === "number" && !isNaN(federal_donation.fec_file_id) &&
68
70
  typeof federal_donation.image_number === "string" &&
69
71
  typeof federal_donation.amount === "number" && !isNaN(federal_donation.amount) &&
72
+ typeof federal_donation.donor_is_individual === "boolean" &&
70
73
  (federal_donation.donor_id === undefined || typeof federal_donation.donor_id === "string") &&
71
74
  typeof federal_donation.donor_name === "string" &&
72
75
  (federal_donation.donor_prefix === undefined || typeof federal_donation.donor_prefix === "string") &&