elections-types 1.0.91 → 1.0.92

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.
@@ -2,12 +2,12 @@ import { StateID } from "./State.js";
2
2
  export declare class FederalElectionDonation {
3
3
  readonly federal_election_donation_id: string;
4
4
  readonly receipt_date: string;
5
- readonly committee_id: string;
5
+ readonly federal_election_committee_id: string;
6
6
  readonly federal_election_file_id: number;
7
7
  readonly image_number: string;
8
8
  readonly amount: number;
9
9
  readonly donor_is_individual: boolean;
10
- readonly donor_committee_id?: string;
10
+ readonly donor_federal_election_committee_id?: string;
11
11
  readonly donor_name: string;
12
12
  readonly donor_name_prefix?: string;
13
13
  readonly donor_name_first: string;
@@ -23,7 +23,7 @@ export declare class FederalElectionDonation {
23
23
  readonly donor_address_zip: string;
24
24
  readonly donor_aggregate_ytd: number;
25
25
  readonly memo_text: string;
26
- readonly target_committee_id?: string;
26
+ readonly target_federal_election_committee_id?: string;
27
27
  constructor(federal_election_donation: FederalElectionDonation);
28
28
  static is(federal_election_donation: any): federal_election_donation is FederalElectionDonation;
29
29
  }
@@ -1,12 +1,12 @@
1
1
  export class FederalElectionDonation {
2
2
  federal_election_donation_id;
3
3
  receipt_date;
4
- committee_id;
4
+ federal_election_committee_id;
5
5
  federal_election_file_id;
6
6
  image_number;
7
7
  amount;
8
8
  donor_is_individual;
9
- donor_committee_id;
9
+ donor_federal_election_committee_id;
10
10
  donor_name;
11
11
  donor_name_prefix;
12
12
  donor_name_first;
@@ -22,19 +22,19 @@ export class FederalElectionDonation {
22
22
  donor_address_zip;
23
23
  donor_aggregate_ytd;
24
24
  memo_text;
25
- target_committee_id;
25
+ target_federal_election_committee_id;
26
26
  constructor(federal_election_donation) {
27
27
  if (!FederalElectionDonation.is(federal_election_donation)) {
28
28
  throw Error("Invalid input.");
29
29
  }
30
30
  this.federal_election_donation_id = federal_election_donation.federal_election_donation_id;
31
31
  this.receipt_date = federal_election_donation.receipt_date;
32
- this.committee_id = federal_election_donation.committee_id;
32
+ this.federal_election_committee_id = federal_election_donation.federal_election_committee_id;
33
33
  this.federal_election_file_id = federal_election_donation.federal_election_file_id;
34
34
  this.image_number = federal_election_donation.image_number;
35
35
  this.amount = federal_election_donation.amount;
36
36
  this.donor_is_individual = federal_election_donation.donor_is_individual;
37
- this.donor_committee_id = federal_election_donation.donor_committee_id;
37
+ this.donor_federal_election_committee_id = federal_election_donation.donor_federal_election_committee_id;
38
38
  this.donor_name = federal_election_donation.donor_name;
39
39
  this.donor_name_prefix = federal_election_donation.donor_name_prefix;
40
40
  this.donor_name_first = federal_election_donation.donor_name_first;
@@ -50,18 +50,18 @@ export class FederalElectionDonation {
50
50
  this.donor_address_zip = federal_election_donation.donor_address_zip;
51
51
  this.donor_aggregate_ytd = federal_election_donation.donor_aggregate_ytd;
52
52
  this.memo_text = federal_election_donation.memo_text;
53
- this.target_committee_id = federal_election_donation.target_committee_id;
53
+ this.target_federal_election_committee_id = federal_election_donation.target_federal_election_committee_id;
54
54
  }
55
55
  static is(federal_election_donation) {
56
56
  return (federal_election_donation !== undefined &&
57
57
  typeof federal_election_donation.federal_election_donation_id === "string" &&
58
58
  typeof federal_election_donation.receipt_date === "string" &&
59
- typeof federal_election_donation.committee_id === "string" &&
59
+ typeof federal_election_donation.federal_election_committee_id === "string" &&
60
60
  typeof federal_election_donation.federal_election_file_id === "number" && !isNaN(federal_election_donation.federal_election_file_id) &&
61
61
  typeof federal_election_donation.image_number === "string" &&
62
62
  typeof federal_election_donation.amount === "number" && !isNaN(federal_election_donation.amount) &&
63
63
  typeof federal_election_donation.donor_is_individual === "boolean" &&
64
- (federal_election_donation.donor_committee_id === undefined || typeof federal_election_donation.donor_committee_id === "string") &&
64
+ (federal_election_donation.donor_federal_election_committee_id === undefined || typeof federal_election_donation.donor_federal_election_committee_id === "string") &&
65
65
  typeof federal_election_donation.donor_name === "string" &&
66
66
  (federal_election_donation.donor_name_prefix === undefined || typeof federal_election_donation.donor_name_prefix === "string") &&
67
67
  typeof federal_election_donation.donor_name_first === "string" &&
@@ -77,6 +77,6 @@ export class FederalElectionDonation {
77
77
  typeof federal_election_donation.donor_address_zip === "string" &&
78
78
  typeof federal_election_donation.donor_aggregate_ytd === "number" && !isNaN(federal_election_donation.donor_aggregate_ytd) &&
79
79
  typeof federal_election_donation.memo_text === "string" &&
80
- (federal_election_donation.target_committee_id === undefined || typeof federal_election_donation.target_committee_id === "string"));
80
+ (federal_election_donation.target_federal_election_committee_id === undefined || typeof federal_election_donation.target_federal_election_committee_id === "string"));
81
81
  }
82
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elections-types",
3
- "version": "1.0.91",
3
+ "version": "1.0.92",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -3,12 +3,12 @@ import { StateID } from "./State"
3
3
  export class FederalElectionDonation {
4
4
  readonly federal_election_donation_id : string
5
5
  readonly receipt_date : string
6
- readonly committee_id : string
6
+ readonly federal_election_committee_id : string
7
7
  readonly federal_election_file_id : number
8
8
  readonly image_number : string
9
9
  readonly amount : number
10
10
  readonly donor_is_individual : boolean
11
- readonly donor_committee_id? : string
11
+ readonly donor_federal_election_committee_id? : string
12
12
  readonly donor_name : string
13
13
  readonly donor_name_prefix? : string
14
14
  readonly donor_name_first : string
@@ -24,7 +24,7 @@ export class FederalElectionDonation {
24
24
  readonly donor_address_zip : string
25
25
  readonly donor_aggregate_ytd : number
26
26
  readonly memo_text : string
27
- readonly target_committee_id? : string
27
+ readonly target_federal_election_committee_id? : string
28
28
 
29
29
  constructor(federal_election_donation : FederalElectionDonation) {
30
30
  if (!FederalElectionDonation.is(federal_election_donation)) {
@@ -32,12 +32,12 @@ export class FederalElectionDonation {
32
32
  }
33
33
  this.federal_election_donation_id = federal_election_donation.federal_election_donation_id
34
34
  this.receipt_date = federal_election_donation.receipt_date
35
- this.committee_id = federal_election_donation.committee_id
35
+ this.federal_election_committee_id = federal_election_donation.federal_election_committee_id
36
36
  this.federal_election_file_id = federal_election_donation.federal_election_file_id
37
37
  this.image_number = federal_election_donation.image_number
38
38
  this.amount = federal_election_donation.amount
39
39
  this.donor_is_individual = federal_election_donation.donor_is_individual
40
- this.donor_committee_id = federal_election_donation.donor_committee_id
40
+ this.donor_federal_election_committee_id = federal_election_donation.donor_federal_election_committee_id
41
41
  this.donor_name = federal_election_donation.donor_name
42
42
  this.donor_name_prefix = federal_election_donation.donor_name_prefix
43
43
  this.donor_name_first = federal_election_donation.donor_name_first
@@ -53,7 +53,7 @@ export class FederalElectionDonation {
53
53
  this.donor_address_zip = federal_election_donation.donor_address_zip
54
54
  this.donor_aggregate_ytd = federal_election_donation.donor_aggregate_ytd
55
55
  this.memo_text = federal_election_donation.memo_text
56
- this.target_committee_id = federal_election_donation.target_committee_id
56
+ this.target_federal_election_committee_id = federal_election_donation.target_federal_election_committee_id
57
57
  }
58
58
 
59
59
  static is(federal_election_donation : any) : federal_election_donation is FederalElectionDonation {
@@ -61,12 +61,12 @@ export class FederalElectionDonation {
61
61
  federal_election_donation !== undefined &&
62
62
  typeof federal_election_donation.federal_election_donation_id === "string" &&
63
63
  typeof federal_election_donation.receipt_date === "string" &&
64
- typeof federal_election_donation.committee_id === "string" &&
64
+ typeof federal_election_donation.federal_election_committee_id === "string" &&
65
65
  typeof federal_election_donation.federal_election_file_id === "number" && !isNaN(federal_election_donation.federal_election_file_id) &&
66
66
  typeof federal_election_donation.image_number === "string" &&
67
67
  typeof federal_election_donation.amount === "number" && !isNaN(federal_election_donation.amount) &&
68
68
  typeof federal_election_donation.donor_is_individual === "boolean" &&
69
- (federal_election_donation.donor_committee_id === undefined || typeof federal_election_donation.donor_committee_id === "string") &&
69
+ (federal_election_donation.donor_federal_election_committee_id === undefined || typeof federal_election_donation.donor_federal_election_committee_id === "string") &&
70
70
  typeof federal_election_donation.donor_name === "string" &&
71
71
  (federal_election_donation.donor_name_prefix === undefined || typeof federal_election_donation.donor_name_prefix === "string") &&
72
72
  typeof federal_election_donation.donor_name_first === "string" &&
@@ -82,7 +82,7 @@ export class FederalElectionDonation {
82
82
  typeof federal_election_donation.donor_address_zip === "string" &&
83
83
  typeof federal_election_donation.donor_aggregate_ytd === "number" && !isNaN(federal_election_donation.donor_aggregate_ytd) &&
84
84
  typeof federal_election_donation.memo_text === "string" &&
85
- (federal_election_donation.target_committee_id === undefined || typeof federal_election_donation.target_committee_id === "string")
85
+ (federal_election_donation.target_federal_election_committee_id === undefined || typeof federal_election_donation.target_federal_election_committee_id === "string")
86
86
  )
87
87
  }
88
88
  }