elections-types 1.0.88 → 1.0.90
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.
- package/backup.sh +22 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/types/FederalElectionDonation.d.ts +29 -0
- package/dist/src/types/FederalElectionDonation.js +82 -0
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/types/FederalElectionDonation.ts +88 -0
- package/src/types/FederalDonation.ts +0 -91
package/backup.sh
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
aws dynamodb create-backup --table-name elections.federal_lobby_document_interests --backup-name elections.federal_lobby_document_interests
|
|
2
|
+
aws dynamodb create-backup --table-name elections.federal_lobby_clients --backup-name elections.federal_lobby_clients
|
|
3
|
+
aws dynamodb create-backup --table-name elections.federal_lobby_agencies --backup-name elections.federal_lobby_agencies
|
|
4
|
+
aws dynamodb create-backup --table-name elections.federal_lobby_lobbyists --backup-name elections.federal_lobby_lobbyists
|
|
5
|
+
aws dynamodb create-backup --table-name elections.federal_lobby_documents --backup-name elections.federal_lobby_documents
|
|
6
|
+
aws dynamodb create-backup --table-name elections.federal_election_files --backup-name elections.federal_election_files
|
|
7
|
+
aws dynamodb create-backup --table-name triage.federal_congress_bills --backup-name triage.federal_congress_bills
|
|
8
|
+
aws dynamodb create-backup --table-name triage.federal_docket_agencies --backup-name triage.federal_docket_agencies
|
|
9
|
+
aws dynamodb create-backup --table-name triage.federal_docket_comment_attachments --backup-name triage.federal_docket_comment_attachments
|
|
10
|
+
aws dynamodb create-backup --table-name triage.federal_docket_comments --backup-name triage.federal_docket_comments
|
|
11
|
+
aws dynamodb create-backup --table-name triage.federal_docket_documents --backup-name triage.federal_docket_documents
|
|
12
|
+
aws dynamodb create-backup --table-name triage.federal_dockets --backup-name triage.federal_dockets
|
|
13
|
+
aws dynamodb create-backup --table-name triage.federal_register_agencies --backup-name triage.federal_register_agencies
|
|
14
|
+
aws dynamodb create-backup --table-name triage.federal_register_documents --backup-name triage.federal_register_documents
|
|
15
|
+
aws dynamodb create-backup --table-name triage.federal_register_document_ingredients --backup-name triage.federal_register_document_ingredients
|
|
16
|
+
aws dynamodb create-backup --table-name triage.federal_foods --backup-name triage.federal_foods
|
|
17
|
+
aws dynamodb create-backup --table-name triage.federal_food_nutrients --backup-name triage.federal_food_nutrients
|
|
18
|
+
aws dynamodb create-backup --table-name triage.state_facilities --backup-name triage.state_facilities
|
|
19
|
+
aws dynamodb create-backup --table-name triage.state_permits --backup-name triage.state_permits
|
|
20
|
+
aws dynamodb create-backup --table-name triage.state_permit_documents --backup-name triage.state_permit_documents
|
|
21
|
+
aws dynamodb create-backup --table-name triage.state_permit_document_sources --backup-name triage.state_permit_document_sources
|
|
22
|
+
aws dynamodb create-backup --table-name triage.state_permit_document_source_pollutants --backup-name triage.state_permit_document_source_pollutants
|
package/dist/src/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export * from "./types/Committee.js";
|
|
|
9
9
|
export * from "./types/Election.js";
|
|
10
10
|
export * from "./types/ElectionsConfig.js";
|
|
11
11
|
export * from "./types/Expenditure.js";
|
|
12
|
-
export * from "./types/
|
|
12
|
+
export * from "./types/FederalElectionDonation.js";
|
|
13
13
|
export * from "./types/FederalElectionFile.js";
|
|
14
14
|
export * from "./types/FederalElectionF1File.js";
|
|
15
15
|
export * from "./types/FederalElectionF2File.js";
|
package/dist/src/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export * from "./types/Committee.js";
|
|
|
9
9
|
export * from "./types/Election.js";
|
|
10
10
|
export * from "./types/ElectionsConfig.js";
|
|
11
11
|
export * from "./types/Expenditure.js";
|
|
12
|
-
export * from "./types/
|
|
12
|
+
export * from "./types/FederalElectionDonation.js";
|
|
13
13
|
export * from "./types/FederalElectionFile.js";
|
|
14
14
|
export * from "./types/FederalElectionF1File.js";
|
|
15
15
|
export * from "./types/FederalElectionF2File.js";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { StateID } from "./State.js";
|
|
2
|
+
export declare class FederalElectionDonation {
|
|
3
|
+
readonly federal_election_donation_id: string;
|
|
4
|
+
readonly receipt_date: string;
|
|
5
|
+
readonly committee_id: string;
|
|
6
|
+
readonly federal_election_file_id: number;
|
|
7
|
+
readonly image_number: string;
|
|
8
|
+
readonly amount: number;
|
|
9
|
+
readonly donor_is_individual: boolean;
|
|
10
|
+
readonly donor_committee_id?: string;
|
|
11
|
+
readonly donor_name: string;
|
|
12
|
+
readonly donor_name_prefix?: string;
|
|
13
|
+
readonly donor_name_first: string;
|
|
14
|
+
readonly donor_name_middle?: string;
|
|
15
|
+
readonly donor_name_last: string;
|
|
16
|
+
readonly donor_name_suffix?: string;
|
|
17
|
+
readonly donor_occupation: string;
|
|
18
|
+
readonly donor_employer: string;
|
|
19
|
+
readonly donor_address_street_1: string;
|
|
20
|
+
readonly donor_address_street_2?: string;
|
|
21
|
+
readonly donor_address_city: string;
|
|
22
|
+
readonly donor_address_state_id: StateID;
|
|
23
|
+
readonly donor_address_zip: string;
|
|
24
|
+
readonly donor_aggregate_ytd: number;
|
|
25
|
+
readonly memo_text: string;
|
|
26
|
+
readonly target_committee_id?: string;
|
|
27
|
+
constructor(federal_election_donation: FederalElectionDonation);
|
|
28
|
+
static is(federal_election_donation: any): federal_election_donation is FederalElectionDonation;
|
|
29
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export class FederalElectionDonation {
|
|
2
|
+
federal_election_donation_id;
|
|
3
|
+
receipt_date;
|
|
4
|
+
committee_id;
|
|
5
|
+
federal_election_file_id;
|
|
6
|
+
image_number;
|
|
7
|
+
amount;
|
|
8
|
+
donor_is_individual;
|
|
9
|
+
donor_committee_id;
|
|
10
|
+
donor_name;
|
|
11
|
+
donor_name_prefix;
|
|
12
|
+
donor_name_first;
|
|
13
|
+
donor_name_middle;
|
|
14
|
+
donor_name_last;
|
|
15
|
+
donor_name_suffix;
|
|
16
|
+
donor_occupation;
|
|
17
|
+
donor_employer;
|
|
18
|
+
donor_address_street_1;
|
|
19
|
+
donor_address_street_2;
|
|
20
|
+
donor_address_city;
|
|
21
|
+
donor_address_state_id;
|
|
22
|
+
donor_address_zip;
|
|
23
|
+
donor_aggregate_ytd;
|
|
24
|
+
memo_text;
|
|
25
|
+
target_committee_id;
|
|
26
|
+
constructor(federal_election_donation) {
|
|
27
|
+
if (!FederalElectionDonation.is(federal_election_donation)) {
|
|
28
|
+
throw Error("Invalid input.");
|
|
29
|
+
}
|
|
30
|
+
this.federal_election_donation_id = federal_election_donation.federal_election_donation_id;
|
|
31
|
+
this.receipt_date = federal_election_donation.receipt_date;
|
|
32
|
+
this.committee_id = federal_election_donation.committee_id;
|
|
33
|
+
this.federal_election_file_id = federal_election_donation.federal_election_file_id;
|
|
34
|
+
this.image_number = federal_election_donation.image_number;
|
|
35
|
+
this.amount = federal_election_donation.amount;
|
|
36
|
+
this.donor_is_individual = federal_election_donation.donor_is_individual;
|
|
37
|
+
this.donor_committee_id = federal_election_donation.donor_committee_id;
|
|
38
|
+
this.donor_name = federal_election_donation.donor_name;
|
|
39
|
+
this.donor_name_prefix = federal_election_donation.donor_name_prefix;
|
|
40
|
+
this.donor_name_first = federal_election_donation.donor_name_first;
|
|
41
|
+
this.donor_name_middle = federal_election_donation.donor_name_middle;
|
|
42
|
+
this.donor_name_last = federal_election_donation.donor_name_last;
|
|
43
|
+
this.donor_name_suffix = federal_election_donation.donor_name_suffix;
|
|
44
|
+
this.donor_occupation = federal_election_donation.donor_occupation;
|
|
45
|
+
this.donor_employer = federal_election_donation.donor_employer;
|
|
46
|
+
this.donor_address_street_1 = federal_election_donation.donor_address_street_1;
|
|
47
|
+
this.donor_address_street_2 = federal_election_donation.donor_address_street_2;
|
|
48
|
+
this.donor_address_city = federal_election_donation.donor_address_city;
|
|
49
|
+
this.donor_address_state_id = federal_election_donation.donor_address_state_id;
|
|
50
|
+
this.donor_address_zip = federal_election_donation.donor_address_zip;
|
|
51
|
+
this.donor_aggregate_ytd = federal_election_donation.donor_aggregate_ytd;
|
|
52
|
+
this.memo_text = federal_election_donation.memo_text;
|
|
53
|
+
this.target_committee_id = federal_election_donation.target_committee_id;
|
|
54
|
+
}
|
|
55
|
+
static is(federal_election_donation) {
|
|
56
|
+
return (federal_election_donation !== undefined &&
|
|
57
|
+
typeof federal_election_donation.federal_election_donation_id === "string" &&
|
|
58
|
+
typeof federal_election_donation.receipt_date === "string" &&
|
|
59
|
+
typeof federal_election_donation.committee_id === "string" &&
|
|
60
|
+
typeof federal_election_donation.federal_election_file_id === "number" && !isNaN(federal_election_donation.federal_election_file_id) &&
|
|
61
|
+
typeof federal_election_donation.image_number === "string" &&
|
|
62
|
+
typeof federal_election_donation.amount === "number" && !isNaN(federal_election_donation.amount) &&
|
|
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") &&
|
|
65
|
+
typeof federal_election_donation.donor_name === "string" &&
|
|
66
|
+
(federal_election_donation.donor_name_prefix === undefined || typeof federal_election_donation.donor_name_prefix === "string") &&
|
|
67
|
+
typeof federal_election_donation.donor_name_first === "string" &&
|
|
68
|
+
(federal_election_donation.donor_name_middle === undefined || typeof federal_election_donation.donor_name_middle === "string") &&
|
|
69
|
+
typeof federal_election_donation.donor_name_last === "string" &&
|
|
70
|
+
(federal_election_donation.donor_name_suffix === undefined || typeof federal_election_donation.donor_name_suffix === "string") &&
|
|
71
|
+
typeof federal_election_donation.donor_occupation === "string" &&
|
|
72
|
+
typeof federal_election_donation.donor_employer === "string" &&
|
|
73
|
+
typeof federal_election_donation.donor_address_street_1 === "string" &&
|
|
74
|
+
(federal_election_donation.donor_address_street_2 === undefined || typeof federal_election_donation.donor_address_street_2 === "string") &&
|
|
75
|
+
typeof federal_election_donation.donor_address_city === "string" &&
|
|
76
|
+
typeof federal_election_donation.donor_address_state_id === "string" &&
|
|
77
|
+
typeof federal_election_donation.donor_address_zip === "string" &&
|
|
78
|
+
typeof federal_election_donation.donor_aggregate_ytd === "number" && !isNaN(federal_election_donation.donor_aggregate_ytd) &&
|
|
79
|
+
typeof federal_election_donation.memo_text === "string" &&
|
|
80
|
+
(federal_election_donation.target_committee_id === undefined || typeof federal_election_donation.target_committee_id === "string"));
|
|
81
|
+
}
|
|
82
|
+
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ export * from "./types/Committee"
|
|
|
9
9
|
export * from "./types/Election"
|
|
10
10
|
export * from "./types/ElectionsConfig"
|
|
11
11
|
export * from "./types/Expenditure"
|
|
12
|
-
export * from "./types/
|
|
12
|
+
export * from "./types/FederalElectionDonation"
|
|
13
13
|
export * from "./types/FederalElectionFile"
|
|
14
14
|
export * from "./types/FederalElectionF1File"
|
|
15
15
|
export * from "./types/FederalElectionF2File"
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { StateID } from "./State"
|
|
2
|
+
|
|
3
|
+
export class FederalElectionDonation {
|
|
4
|
+
readonly federal_election_donation_id : string
|
|
5
|
+
readonly receipt_date : string
|
|
6
|
+
readonly committee_id : string
|
|
7
|
+
readonly federal_election_file_id : number
|
|
8
|
+
readonly image_number : string
|
|
9
|
+
readonly amount : number
|
|
10
|
+
readonly donor_is_individual : boolean
|
|
11
|
+
readonly donor_committee_id? : string
|
|
12
|
+
readonly donor_name : string
|
|
13
|
+
readonly donor_name_prefix? : string
|
|
14
|
+
readonly donor_name_first : string
|
|
15
|
+
readonly donor_name_middle? : string
|
|
16
|
+
readonly donor_name_last : string
|
|
17
|
+
readonly donor_name_suffix? : string
|
|
18
|
+
readonly donor_occupation : string
|
|
19
|
+
readonly donor_employer : string
|
|
20
|
+
readonly donor_address_street_1 : string
|
|
21
|
+
readonly donor_address_street_2? : string
|
|
22
|
+
readonly donor_address_city : string
|
|
23
|
+
readonly donor_address_state_id : StateID
|
|
24
|
+
readonly donor_address_zip : string
|
|
25
|
+
readonly donor_aggregate_ytd : number
|
|
26
|
+
readonly memo_text : string
|
|
27
|
+
readonly target_committee_id? : string
|
|
28
|
+
|
|
29
|
+
constructor(federal_election_donation : FederalElectionDonation) {
|
|
30
|
+
if (!FederalElectionDonation.is(federal_election_donation)) {
|
|
31
|
+
throw Error("Invalid input.")
|
|
32
|
+
}
|
|
33
|
+
this.federal_election_donation_id = federal_election_donation.federal_election_donation_id
|
|
34
|
+
this.receipt_date = federal_election_donation.receipt_date
|
|
35
|
+
this.committee_id = federal_election_donation.committee_id
|
|
36
|
+
this.federal_election_file_id = federal_election_donation.federal_election_file_id
|
|
37
|
+
this.image_number = federal_election_donation.image_number
|
|
38
|
+
this.amount = federal_election_donation.amount
|
|
39
|
+
this.donor_is_individual = federal_election_donation.donor_is_individual
|
|
40
|
+
this.donor_committee_id = federal_election_donation.donor_committee_id
|
|
41
|
+
this.donor_name = federal_election_donation.donor_name
|
|
42
|
+
this.donor_name_prefix = federal_election_donation.donor_name_prefix
|
|
43
|
+
this.donor_name_first = federal_election_donation.donor_name_first
|
|
44
|
+
this.donor_name_middle = federal_election_donation.donor_name_middle
|
|
45
|
+
this.donor_name_last = federal_election_donation.donor_name_last
|
|
46
|
+
this.donor_name_suffix = federal_election_donation.donor_name_suffix
|
|
47
|
+
this.donor_occupation = federal_election_donation.donor_occupation
|
|
48
|
+
this.donor_employer = federal_election_donation.donor_employer
|
|
49
|
+
this.donor_address_street_1 = federal_election_donation.donor_address_street_1
|
|
50
|
+
this.donor_address_street_2 = federal_election_donation.donor_address_street_2
|
|
51
|
+
this.donor_address_city = federal_election_donation.donor_address_city
|
|
52
|
+
this.donor_address_state_id = federal_election_donation.donor_address_state_id
|
|
53
|
+
this.donor_address_zip = federal_election_donation.donor_address_zip
|
|
54
|
+
this.donor_aggregate_ytd = federal_election_donation.donor_aggregate_ytd
|
|
55
|
+
this.memo_text = federal_election_donation.memo_text
|
|
56
|
+
this.target_committee_id = federal_election_donation.target_committee_id
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static is(federal_election_donation : any) : federal_election_donation is FederalElectionDonation {
|
|
60
|
+
return (
|
|
61
|
+
federal_election_donation !== undefined &&
|
|
62
|
+
typeof federal_election_donation.federal_election_donation_id === "string" &&
|
|
63
|
+
typeof federal_election_donation.receipt_date === "string" &&
|
|
64
|
+
typeof federal_election_donation.committee_id === "string" &&
|
|
65
|
+
typeof federal_election_donation.federal_election_file_id === "number" && !isNaN(federal_election_donation.federal_election_file_id) &&
|
|
66
|
+
typeof federal_election_donation.image_number === "string" &&
|
|
67
|
+
typeof federal_election_donation.amount === "number" && !isNaN(federal_election_donation.amount) &&
|
|
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") &&
|
|
70
|
+
typeof federal_election_donation.donor_name === "string" &&
|
|
71
|
+
(federal_election_donation.donor_name_prefix === undefined || typeof federal_election_donation.donor_name_prefix === "string") &&
|
|
72
|
+
typeof federal_election_donation.donor_name_first === "string" &&
|
|
73
|
+
(federal_election_donation.donor_name_middle === undefined || typeof federal_election_donation.donor_name_middle === "string") &&
|
|
74
|
+
typeof federal_election_donation.donor_name_last === "string" &&
|
|
75
|
+
(federal_election_donation.donor_name_suffix === undefined || typeof federal_election_donation.donor_name_suffix === "string") &&
|
|
76
|
+
typeof federal_election_donation.donor_occupation === "string" &&
|
|
77
|
+
typeof federal_election_donation.donor_employer === "string" &&
|
|
78
|
+
typeof federal_election_donation.donor_address_street_1 === "string" &&
|
|
79
|
+
(federal_election_donation.donor_address_street_2 === undefined || typeof federal_election_donation.donor_address_street_2 === "string") &&
|
|
80
|
+
typeof federal_election_donation.donor_address_city === "string" &&
|
|
81
|
+
typeof federal_election_donation.donor_address_state_id === "string" &&
|
|
82
|
+
typeof federal_election_donation.donor_address_zip === "string" &&
|
|
83
|
+
typeof federal_election_donation.donor_aggregate_ytd === "number" && !isNaN(federal_election_donation.donor_aggregate_ytd) &&
|
|
84
|
+
typeof federal_election_donation.memo_text === "string" &&
|
|
85
|
+
(federal_election_donation.target_committee_id === undefined || typeof federal_election_donation.target_committee_id === "string")
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { StateID } from "./State"
|
|
2
|
-
|
|
3
|
-
export class FederalDonation {
|
|
4
|
-
readonly federal_donation_id : string
|
|
5
|
-
readonly receipt_date : string
|
|
6
|
-
readonly sub_id : string
|
|
7
|
-
readonly committee_id : string
|
|
8
|
-
readonly target_committee_id? : string
|
|
9
|
-
readonly federal_election_file_id : number
|
|
10
|
-
readonly image_number : string
|
|
11
|
-
readonly amount : number
|
|
12
|
-
readonly donor_is_individual : boolean
|
|
13
|
-
readonly donor_id? : string
|
|
14
|
-
readonly donor_name : string
|
|
15
|
-
readonly donor_prefix? : string
|
|
16
|
-
readonly donor_first_name : string
|
|
17
|
-
readonly donor_middle_name? : string
|
|
18
|
-
readonly donor_last_name : string
|
|
19
|
-
readonly donor_suffix? : string
|
|
20
|
-
readonly donor_occupation : string
|
|
21
|
-
readonly donor_employer : string
|
|
22
|
-
readonly donor_address_street_1 : string
|
|
23
|
-
readonly donor_address_street_2? : string
|
|
24
|
-
readonly donor_address_city : string
|
|
25
|
-
readonly donor_address_state_id : StateID
|
|
26
|
-
readonly donor_address_zip : string
|
|
27
|
-
readonly donor_aggregate_ytd : number
|
|
28
|
-
readonly memo_text : string
|
|
29
|
-
|
|
30
|
-
constructor(federal_donation : FederalDonation) {
|
|
31
|
-
if (!FederalDonation.is(federal_donation)) {
|
|
32
|
-
throw Error("Invalid input.")
|
|
33
|
-
}
|
|
34
|
-
this.federal_donation_id = federal_donation.federal_donation_id
|
|
35
|
-
this.receipt_date = federal_donation.receipt_date
|
|
36
|
-
this.sub_id = federal_donation.sub_id
|
|
37
|
-
this.committee_id = federal_donation.committee_id
|
|
38
|
-
this.target_committee_id = federal_donation.target_committee_id
|
|
39
|
-
this.federal_election_file_id = federal_donation.federal_election_file_id
|
|
40
|
-
this.image_number = federal_donation.image_number
|
|
41
|
-
this.amount = federal_donation.amount
|
|
42
|
-
this.donor_is_individual = federal_donation.donor_is_individual
|
|
43
|
-
this.donor_id = federal_donation.donor_id
|
|
44
|
-
this.donor_name = federal_donation.donor_name
|
|
45
|
-
this.donor_prefix = federal_donation.donor_prefix
|
|
46
|
-
this.donor_first_name = federal_donation.donor_first_name
|
|
47
|
-
this.donor_middle_name = federal_donation.donor_middle_name
|
|
48
|
-
this.donor_last_name = federal_donation.donor_last_name
|
|
49
|
-
this.donor_suffix = federal_donation.donor_suffix
|
|
50
|
-
this.donor_occupation = federal_donation.donor_occupation
|
|
51
|
-
this.donor_employer = federal_donation.donor_employer
|
|
52
|
-
this.donor_address_street_1 = federal_donation.donor_address_street_1
|
|
53
|
-
this.donor_address_street_2 = federal_donation.donor_address_street_2
|
|
54
|
-
this.donor_address_city = federal_donation.donor_address_city
|
|
55
|
-
this.donor_address_state_id = federal_donation.donor_address_state_id
|
|
56
|
-
this.donor_address_zip = federal_donation.donor_address_zip
|
|
57
|
-
this.donor_aggregate_ytd = federal_donation.donor_aggregate_ytd
|
|
58
|
-
this.memo_text = federal_donation.memo_text
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
static is(federal_donation : any) : federal_donation is FederalDonation {
|
|
62
|
-
return (
|
|
63
|
-
federal_donation !== undefined &&
|
|
64
|
-
typeof federal_donation.federal_donation_id === "string" &&
|
|
65
|
-
typeof federal_donation.receipt_date === "string" &&
|
|
66
|
-
typeof federal_donation.sub_id === "string" &&
|
|
67
|
-
typeof federal_donation.committee_id === "string" &&
|
|
68
|
-
(federal_donation.target_committee_id === undefined || typeof federal_donation.target_committee_id === "string") &&
|
|
69
|
-
typeof federal_donation.federal_election_file_id === "number" && !isNaN(federal_donation.federal_election_file_id) &&
|
|
70
|
-
typeof federal_donation.image_number === "string" &&
|
|
71
|
-
typeof federal_donation.amount === "number" && !isNaN(federal_donation.amount) &&
|
|
72
|
-
typeof federal_donation.donor_is_individual === "boolean" &&
|
|
73
|
-
(federal_donation.donor_id === undefined || typeof federal_donation.donor_id === "string") &&
|
|
74
|
-
typeof federal_donation.donor_name === "string" &&
|
|
75
|
-
(federal_donation.donor_prefix === undefined || typeof federal_donation.donor_prefix === "string") &&
|
|
76
|
-
typeof federal_donation.donor_first_name === "string" &&
|
|
77
|
-
(federal_donation.donor_middle_name === undefined || typeof federal_donation.donor_middle_name === "string") &&
|
|
78
|
-
typeof federal_donation.donor_last_name === "string" &&
|
|
79
|
-
(federal_donation.donor_suffix === undefined || typeof federal_donation.donor_suffix === "string") &&
|
|
80
|
-
typeof federal_donation.donor_occupation === "string" &&
|
|
81
|
-
typeof federal_donation.donor_employer === "string" &&
|
|
82
|
-
typeof federal_donation.donor_address_street_1 === "string" &&
|
|
83
|
-
(federal_donation.donor_address_street_2 === undefined || typeof federal_donation.donor_address_street_2 === "string") &&
|
|
84
|
-
typeof federal_donation.donor_address_city === "string" &&
|
|
85
|
-
typeof federal_donation.donor_address_state_id === "string" &&
|
|
86
|
-
typeof federal_donation.donor_address_zip === "string" &&
|
|
87
|
-
typeof federal_donation.donor_aggregate_ytd === "number" && !isNaN(federal_donation.donor_aggregate_ytd) &&
|
|
88
|
-
typeof federal_donation.memo_text === "string"
|
|
89
|
-
)
|
|
90
|
-
}
|
|
91
|
-
}
|