elections-types 1.0.49 → 1.0.51

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,10 +1,10 @@
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;
7
- readonly recipient_committee_id?: string;
7
+ readonly target_committee_id?: string;
8
8
  readonly file_number: number;
9
9
  readonly image_number: string;
10
10
  readonly amount: number;
@@ -1,9 +1,9 @@
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;
6
- recipient_committee_id;
6
+ target_committee_id;
7
7
  file_number;
8
8
  image_number;
9
9
  amount;
@@ -27,11 +27,11 @@ 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;
34
- this.recipient_committee_id = federal_donation.recipient_committee_id;
34
+ this.target_committee_id = federal_donation.target_committee_id;
35
35
  this.file_number = federal_donation.file_number;
36
36
  this.image_number = federal_donation.image_number;
37
37
  this.amount = federal_donation.amount;
@@ -54,11 +54,11 @@ 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" &&
61
- typeof federal_donation.recipient_committee_id === "string" &&
61
+ 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.49",
3
+ "version": "1.0.51",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -1,11 +1,11 @@
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
8
- readonly recipient_committee_id? : string
8
+ readonly target_committee_id? : string
9
9
  readonly file_number : number
10
10
  readonly image_number : string
11
11
  readonly amount : number
@@ -30,11 +30,11 @@ 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
37
- this.recipient_committee_id = federal_donation.recipient_committee_id
37
+ this.target_committee_id = federal_donation.target_committee_id
38
38
  this.file_number = federal_donation.file_number
39
39
  this.image_number = federal_donation.image_number
40
40
  this.amount = federal_donation.amount
@@ -59,11 +59,11 @@ 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" &&
66
- typeof federal_donation.recipient_committee_id === "string" &&
66
+ 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) &&