elections-types 1.0.49 → 1.0.50

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.
@@ -1,6 +1,6 @@
1
1
  import { StateID } from "./State.js";
2
2
  export declare class FederalDonation {
3
- readonly federal_federal_donation_id: string;
3
+ readonly federal_donation_id: string;
4
4
  readonly receipt_date: string;
5
5
  readonly sub_id: string;
6
6
  readonly committee_id: string;
@@ -1,5 +1,5 @@
1
1
  export class FederalDonation {
2
- federal_federal_donation_id;
2
+ federal_donation_id;
3
3
  receipt_date;
4
4
  sub_id;
5
5
  committee_id;
@@ -27,7 +27,7 @@ export class FederalDonation {
27
27
  if (!FederalDonation.is(federal_donation)) {
28
28
  throw Error("Invalid input.");
29
29
  }
30
- this.federal_federal_donation_id = federal_donation.federal_federal_donation_id;
30
+ this.federal_donation_id = federal_donation.federal_donation_id;
31
31
  this.receipt_date = federal_donation.receipt_date;
32
32
  this.sub_id = federal_donation.sub_id;
33
33
  this.committee_id = federal_donation.committee_id;
@@ -54,7 +54,7 @@ export class FederalDonation {
54
54
  }
55
55
  static is(federal_donation) {
56
56
  return (federal_donation !== undefined &&
57
- typeof federal_donation.federal_federal_donation_id === "string" &&
57
+ typeof federal_donation.federal_donation_id === "string" &&
58
58
  typeof federal_donation.receipt_date === "string" &&
59
59
  typeof federal_donation.sub_id === "string" &&
60
60
  typeof federal_donation.committee_id === "string" &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elections-types",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -1,7 +1,7 @@
1
1
  import { StateID } from "./State"
2
2
 
3
3
  export class FederalDonation {
4
- readonly federal_federal_donation_id : string
4
+ readonly federal_donation_id : string
5
5
  readonly receipt_date : string
6
6
  readonly sub_id : string
7
7
  readonly committee_id : string
@@ -30,7 +30,7 @@ export class FederalDonation {
30
30
  if (!FederalDonation.is(federal_donation)) {
31
31
  throw Error("Invalid input.")
32
32
  }
33
- this.federal_federal_donation_id = federal_donation.federal_federal_donation_id
33
+ this.federal_donation_id = federal_donation.federal_donation_id
34
34
  this.receipt_date = federal_donation.receipt_date
35
35
  this.sub_id = federal_donation.sub_id
36
36
  this.committee_id = federal_donation.committee_id
@@ -59,7 +59,7 @@ export class FederalDonation {
59
59
  static is(federal_donation : any) : federal_donation is FederalDonation {
60
60
  return (
61
61
  federal_donation !== undefined &&
62
- typeof federal_donation.federal_federal_donation_id === "string" &&
62
+ typeof federal_donation.federal_donation_id === "string" &&
63
63
  typeof federal_donation.receipt_date === "string" &&
64
64
  typeof federal_donation.sub_id === "string" &&
65
65
  typeof federal_donation.committee_id === "string" &&