elections-types 1.0.51 → 1.0.53

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.
@@ -28,7 +28,7 @@ export interface ElectionsConfig extends ElectionsUtilsConfig {
28
28
  dynamodb_videos: string;
29
29
  dynamodb_candidate_videos: string;
30
30
  dynamodb_fec_reports: string;
31
- dynamodb_donations: string;
31
+ dynamodb_federal_donations: string;
32
32
  dynamodb_fetch_history: string;
33
33
  s3_bucket: string;
34
34
  }
@@ -58,7 +58,7 @@ export class FederalDonation {
58
58
  typeof federal_donation.receipt_date === "string" &&
59
59
  typeof federal_donation.sub_id === "string" &&
60
60
  typeof federal_donation.committee_id === "string" &&
61
- typeof federal_donation.target_committee_id === "string" &&
61
+ (federal_donation.target_committee_id === undefined || typeof federal_donation.target_committee_id === "string") &&
62
62
  typeof federal_donation.file_number === "number" && !isNaN(federal_donation.file_number) &&
63
63
  typeof federal_donation.image_number === "string" &&
64
64
  typeof federal_donation.amount === "number" && !isNaN(federal_donation.amount) &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elections-types",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -30,7 +30,7 @@ export interface ElectionsConfig extends ElectionsUtilsConfig {
30
30
  dynamodb_videos : string,
31
31
  dynamodb_candidate_videos : string,
32
32
  dynamodb_fec_reports : string,
33
- dynamodb_donations : string,
33
+ dynamodb_federal_donations : string,
34
34
  dynamodb_fetch_history : string,
35
35
  s3_bucket : string
36
36
  }
@@ -63,7 +63,7 @@ export class FederalDonation {
63
63
  typeof federal_donation.receipt_date === "string" &&
64
64
  typeof federal_donation.sub_id === "string" &&
65
65
  typeof federal_donation.committee_id === "string" &&
66
- typeof federal_donation.target_committee_id === "string" &&
66
+ (federal_donation.target_committee_id === undefined || typeof federal_donation.target_committee_id === "string") &&
67
67
  typeof federal_donation.file_number === "number" && !isNaN(federal_donation.file_number) &&
68
68
  typeof federal_donation.image_number === "string" &&
69
69
  typeof federal_donation.amount === "number" && !isNaN(federal_donation.amount) &&