triangle-types 1.0.350 → 1.0.352
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/dist/src/types/federal_elections/FederalElectionF1FileBody.d.ts +1 -0
- package/dist/src/types/federal_elections/FederalElectionF1FileBody.js +4 -1
- package/dist/src/types/federal_elections/FederalElectionF24FileBody.d.ts +1 -0
- package/dist/src/types/federal_elections/FederalElectionF24FileBody.js +4 -1
- package/dist/src/types/federal_elections/FederalElectionF2FileBody.d.ts +1 -0
- package/dist/src/types/federal_elections/FederalElectionF2FileBody.js +4 -1
- package/dist/src/types/federal_elections/FederalElectionF3FileBody.d.ts +1 -0
- package/dist/src/types/federal_elections/FederalElectionF3FileBody.js +4 -1
- package/package.json +1 -1
- package/src/types/federal_elections/FederalElectionF1FileBody.ts +4 -1
- package/src/types/federal_elections/FederalElectionF24FileBody.ts +4 -1
- package/src/types/federal_elections/FederalElectionF2FileBody.ts +4 -1
- package/src/types/federal_elections/FederalElectionF3FileBody.ts +4 -1
|
@@ -9,6 +9,7 @@ export declare class FederalElectionF1FileBody {
|
|
|
9
9
|
readonly jfr_federal_election_committee_ids: string[];
|
|
10
10
|
readonly aff_federal_election_committee_ids: string[];
|
|
11
11
|
readonly sponsor_federal_election_candidate_ids?: string[];
|
|
12
|
+
readonly report_date: string;
|
|
12
13
|
constructor(federal_election_file_body: any);
|
|
13
14
|
static is(federal_election_file_body: any): federal_election_file_body is FederalElectionF1FileBody;
|
|
14
15
|
}
|
|
@@ -9,6 +9,7 @@ export class FederalElectionF1FileBody {
|
|
|
9
9
|
jfr_federal_election_committee_ids;
|
|
10
10
|
aff_federal_election_committee_ids;
|
|
11
11
|
sponsor_federal_election_candidate_ids;
|
|
12
|
+
report_date;
|
|
12
13
|
constructor(federal_election_file_body) {
|
|
13
14
|
if (!FederalElectionF1FileBody.is(federal_election_file_body)) {
|
|
14
15
|
throw Error("Invalid input.");
|
|
@@ -22,6 +23,7 @@ export class FederalElectionF1FileBody {
|
|
|
22
23
|
this.jfr_federal_election_committee_ids = federal_election_file_body.jfr_federal_election_committee_ids;
|
|
23
24
|
this.aff_federal_election_committee_ids = federal_election_file_body.aff_federal_election_committee_ids;
|
|
24
25
|
this.sponsor_federal_election_candidate_ids = federal_election_file_body.sponsor_federal_election_candidate_ids;
|
|
26
|
+
this.report_date = federal_election_file_body.report_date;
|
|
25
27
|
}
|
|
26
28
|
static is(federal_election_file_body) {
|
|
27
29
|
return (federal_election_file_body !== undefined &&
|
|
@@ -33,6 +35,7 @@ export class FederalElectionF1FileBody {
|
|
|
33
35
|
(federal_election_file_body.jfp_federal_election_committee_ids === undefined || Array.isArray(federal_election_file_body.jfp_federal_election_committee_ids) && federal_election_file_body.jfp_federal_election_committee_ids.every((federal_election_committee_id) => typeof federal_election_committee_id === "string")) &&
|
|
34
36
|
(Array.isArray(federal_election_file_body.jfr_federal_election_committee_ids) && federal_election_file_body.jfr_federal_election_committee_ids.every((federal_election_committee_id) => typeof federal_election_committee_id === "string")) &&
|
|
35
37
|
(Array.isArray(federal_election_file_body.aff_federal_election_committee_ids) && federal_election_file_body.aff_federal_election_committee_ids.every((federal_election_committee_id) => typeof federal_election_committee_id === "string")) &&
|
|
36
|
-
(federal_election_file_body.sponsor_federal_election_candidate_ids === undefined || Array.isArray(federal_election_file_body.sponsor_federal_election_candidate_ids) && federal_election_file_body.sponsor_federal_election_candidate_ids.every((federal_election_committee_id) => typeof federal_election_committee_id === "string"))
|
|
38
|
+
(federal_election_file_body.sponsor_federal_election_candidate_ids === undefined || Array.isArray(federal_election_file_body.sponsor_federal_election_candidate_ids) && federal_election_file_body.sponsor_federal_election_candidate_ids.every((federal_election_committee_id) => typeof federal_election_committee_id === "string")) &&
|
|
39
|
+
typeof federal_election_file_body.report_date === "string");
|
|
37
40
|
}
|
|
38
41
|
}
|
|
@@ -5,6 +5,7 @@ export declare class FederalElectionF24FileBody {
|
|
|
5
5
|
readonly f24_report_type_id: string;
|
|
6
6
|
readonly first_report_date: string;
|
|
7
7
|
readonly expenditures: FederalElectionFileExpenditure[];
|
|
8
|
+
readonly report_date: string;
|
|
8
9
|
constructor(federal_election_file_body: any);
|
|
9
10
|
static is(federal_election_file_body: any): federal_election_file_body is FederalElectionF24FileBody;
|
|
10
11
|
}
|
|
@@ -5,6 +5,7 @@ export class FederalElectionF24FileBody {
|
|
|
5
5
|
f24_report_type_id;
|
|
6
6
|
first_report_date;
|
|
7
7
|
expenditures;
|
|
8
|
+
report_date;
|
|
8
9
|
constructor(federal_election_file_body) {
|
|
9
10
|
if (!FederalElectionF24FileBody.is(federal_election_file_body)) {
|
|
10
11
|
throw Error("Invalid input.");
|
|
@@ -14,6 +15,7 @@ export class FederalElectionF24FileBody {
|
|
|
14
15
|
this.f24_report_type_id = federal_election_file_body.f24_report_type_id;
|
|
15
16
|
this.first_report_date = federal_election_file_body.first_report_date;
|
|
16
17
|
this.expenditures = federal_election_file_body.expenditures;
|
|
18
|
+
this.report_date = federal_election_file_body.report_date;
|
|
17
19
|
}
|
|
18
20
|
static is(federal_election_file_body) {
|
|
19
21
|
return (federal_election_file_body !== undefined &&
|
|
@@ -21,6 +23,7 @@ export class FederalElectionF24FileBody {
|
|
|
21
23
|
typeof federal_election_file_body.first_federal_election_file_id === "number" &&
|
|
22
24
|
typeof federal_election_file_body.f24_report_type_id === "string" &&
|
|
23
25
|
typeof federal_election_file_body.first_report_date === "string" &&
|
|
24
|
-
Array.isArray(federal_election_file_body.expenditures) && federal_election_file_body.expenditures.every(FederalElectionFileExpenditure.is)
|
|
26
|
+
Array.isArray(federal_election_file_body.expenditures) && federal_election_file_body.expenditures.every(FederalElectionFileExpenditure.is) &&
|
|
27
|
+
typeof federal_election_file_body.report_date === "string");
|
|
25
28
|
}
|
|
26
29
|
}
|
|
@@ -14,6 +14,7 @@ export declare class FederalElectionF2FileBody {
|
|
|
14
14
|
readonly federal_election_id: string;
|
|
15
15
|
readonly party_id?: string;
|
|
16
16
|
readonly federal_election_committee_id?: string;
|
|
17
|
+
readonly report_date: string;
|
|
17
18
|
constructor(federal_election_file_body: any);
|
|
18
19
|
static is(federal_election_file_body: any): federal_election_file_body is FederalElectionF2FileBody;
|
|
19
20
|
}
|
|
@@ -14,6 +14,7 @@ export class FederalElectionF2FileBody {
|
|
|
14
14
|
federal_election_id;
|
|
15
15
|
party_id;
|
|
16
16
|
federal_election_committee_id;
|
|
17
|
+
report_date;
|
|
17
18
|
constructor(federal_election_file_body) {
|
|
18
19
|
if (!FederalElectionF2FileBody.is(federal_election_file_body)) {
|
|
19
20
|
throw Error("Invalid input.");
|
|
@@ -31,6 +32,7 @@ export class FederalElectionF2FileBody {
|
|
|
31
32
|
this.federal_election_id = federal_election_file_body.federal_election_id;
|
|
32
33
|
this.party_id = federal_election_file_body.party_id;
|
|
33
34
|
this.federal_election_committee_id = federal_election_file_body.federal_election_committee_id;
|
|
35
|
+
this.report_date = federal_election_file_body.report_date;
|
|
34
36
|
}
|
|
35
37
|
static is(federal_election_file_body) {
|
|
36
38
|
return (federal_election_file_body !== undefined &&
|
|
@@ -45,6 +47,7 @@ export class FederalElectionF2FileBody {
|
|
|
45
47
|
(federal_election_file_body.state_id === undefined || is_state_id(federal_election_file_body.state_id)) &&
|
|
46
48
|
(federal_election_file_body.district_id === undefined || typeof federal_election_file_body.district_id === "number") &&
|
|
47
49
|
typeof federal_election_file_body.federal_election_id === "string" &&
|
|
48
|
-
(federal_election_file_body.federal_election_committee_id === undefined || typeof federal_election_file_body.federal_election_committee_id === "string")
|
|
50
|
+
(federal_election_file_body.federal_election_committee_id === undefined || typeof federal_election_file_body.federal_election_committee_id === "string") &&
|
|
51
|
+
typeof federal_election_file_body.report_date === "string");
|
|
49
52
|
}
|
|
50
53
|
}
|
|
@@ -6,6 +6,7 @@ export declare class FederalElectionF3FileBody {
|
|
|
6
6
|
readonly cash_on_hand: number;
|
|
7
7
|
readonly cumulative_receipts: number;
|
|
8
8
|
readonly new_receipts: number;
|
|
9
|
+
readonly report_date: string;
|
|
9
10
|
constructor(federal_election_file_body: any);
|
|
10
11
|
static is(federal_election_file_body: any): federal_election_file_body is FederalElectionF3FileBody;
|
|
11
12
|
}
|
|
@@ -6,6 +6,7 @@ export class FederalElectionF3FileBody {
|
|
|
6
6
|
cash_on_hand;
|
|
7
7
|
cumulative_receipts;
|
|
8
8
|
new_receipts;
|
|
9
|
+
report_date;
|
|
9
10
|
constructor(federal_election_file_body) {
|
|
10
11
|
if (!FederalElectionF3FileBody.is(federal_election_file_body)) {
|
|
11
12
|
throw Error("Invalid input.");
|
|
@@ -17,6 +18,7 @@ export class FederalElectionF3FileBody {
|
|
|
17
18
|
this.cash_on_hand = federal_election_file_body.cash_on_hand;
|
|
18
19
|
this.cumulative_receipts = federal_election_file_body.cumulative_receipts;
|
|
19
20
|
this.new_receipts = federal_election_file_body.new_receipts;
|
|
21
|
+
this.report_date = federal_election_file_body.report_date;
|
|
20
22
|
}
|
|
21
23
|
static is(federal_election_file_body) {
|
|
22
24
|
return (federal_election_file_body !== undefined &&
|
|
@@ -26,6 +28,7 @@ export class FederalElectionF3FileBody {
|
|
|
26
28
|
typeof federal_election_file_body.period_end_date === "string" &&
|
|
27
29
|
typeof federal_election_file_body.cash_on_hand === "number" &&
|
|
28
30
|
typeof federal_election_file_body.cumulative_receipts === "number" &&
|
|
29
|
-
typeof federal_election_file_body.new_receipts === "number"
|
|
31
|
+
typeof federal_election_file_body.new_receipts === "number" &&
|
|
32
|
+
typeof federal_election_file_body.report_date === "string");
|
|
30
33
|
}
|
|
31
34
|
}
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ export class FederalElectionF1FileBody {
|
|
|
11
11
|
readonly jfr_federal_election_committee_ids : string[]
|
|
12
12
|
readonly aff_federal_election_committee_ids : string[]
|
|
13
13
|
readonly sponsor_federal_election_candidate_ids? : string[]
|
|
14
|
+
readonly report_date : string
|
|
14
15
|
|
|
15
16
|
constructor(federal_election_file_body : any) {
|
|
16
17
|
if (!FederalElectionF1FileBody.is(federal_election_file_body)) {
|
|
@@ -25,6 +26,7 @@ export class FederalElectionF1FileBody {
|
|
|
25
26
|
this.jfr_federal_election_committee_ids = federal_election_file_body.jfr_federal_election_committee_ids
|
|
26
27
|
this.aff_federal_election_committee_ids = federal_election_file_body.aff_federal_election_committee_ids
|
|
27
28
|
this.sponsor_federal_election_candidate_ids = federal_election_file_body.sponsor_federal_election_candidate_ids
|
|
29
|
+
this.report_date = federal_election_file_body.report_date
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
static is(federal_election_file_body : any) : federal_election_file_body is FederalElectionF1FileBody {
|
|
@@ -38,7 +40,8 @@ export class FederalElectionF1FileBody {
|
|
|
38
40
|
(federal_election_file_body.jfp_federal_election_committee_ids === undefined || Array.isArray(federal_election_file_body.jfp_federal_election_committee_ids) && federal_election_file_body.jfp_federal_election_committee_ids.every((federal_election_committee_id : any) => typeof federal_election_committee_id === "string")) &&
|
|
39
41
|
(Array.isArray(federal_election_file_body.jfr_federal_election_committee_ids) && federal_election_file_body.jfr_federal_election_committee_ids.every((federal_election_committee_id : any) => typeof federal_election_committee_id === "string")) &&
|
|
40
42
|
(Array.isArray(federal_election_file_body.aff_federal_election_committee_ids) && federal_election_file_body.aff_federal_election_committee_ids.every((federal_election_committee_id : any) => typeof federal_election_committee_id === "string")) &&
|
|
41
|
-
(federal_election_file_body.sponsor_federal_election_candidate_ids === undefined || Array.isArray(federal_election_file_body.sponsor_federal_election_candidate_ids) && federal_election_file_body.sponsor_federal_election_candidate_ids.every((federal_election_committee_id : any) => typeof federal_election_committee_id === "string"))
|
|
43
|
+
(federal_election_file_body.sponsor_federal_election_candidate_ids === undefined || Array.isArray(federal_election_file_body.sponsor_federal_election_candidate_ids) && federal_election_file_body.sponsor_federal_election_candidate_ids.every((federal_election_committee_id : any) => typeof federal_election_committee_id === "string")) &&
|
|
44
|
+
typeof federal_election_file_body.report_date === "string"
|
|
42
45
|
)
|
|
43
46
|
}
|
|
44
47
|
}
|
|
@@ -7,6 +7,7 @@ export class FederalElectionF24FileBody {
|
|
|
7
7
|
readonly f24_report_type_id : string
|
|
8
8
|
readonly first_report_date : string
|
|
9
9
|
readonly expenditures : FederalElectionFileExpenditure[]
|
|
10
|
+
readonly report_date : string
|
|
10
11
|
|
|
11
12
|
constructor(federal_election_file_body : any) {
|
|
12
13
|
if (!FederalElectionF24FileBody.is(federal_election_file_body)) {
|
|
@@ -17,6 +18,7 @@ export class FederalElectionF24FileBody {
|
|
|
17
18
|
this.f24_report_type_id = federal_election_file_body.f24_report_type_id
|
|
18
19
|
this.first_report_date = federal_election_file_body.first_report_date
|
|
19
20
|
this.expenditures = federal_election_file_body.expenditures
|
|
21
|
+
this.report_date = federal_election_file_body.report_date
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
static is(federal_election_file_body : any) : federal_election_file_body is FederalElectionF24FileBody {
|
|
@@ -26,7 +28,8 @@ export class FederalElectionF24FileBody {
|
|
|
26
28
|
typeof federal_election_file_body.first_federal_election_file_id === "number" &&
|
|
27
29
|
typeof federal_election_file_body.f24_report_type_id === "string" &&
|
|
28
30
|
typeof federal_election_file_body.first_report_date === "string" &&
|
|
29
|
-
Array.isArray(federal_election_file_body.expenditures) && federal_election_file_body.expenditures.every(FederalElectionFileExpenditure.is)
|
|
31
|
+
Array.isArray(federal_election_file_body.expenditures) && federal_election_file_body.expenditures.every(FederalElectionFileExpenditure.is) &&
|
|
32
|
+
typeof federal_election_file_body.report_date === "string"
|
|
30
33
|
)
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -16,6 +16,7 @@ export class FederalElectionF2FileBody {
|
|
|
16
16
|
readonly federal_election_id : string
|
|
17
17
|
readonly party_id? : string
|
|
18
18
|
readonly federal_election_committee_id? : string
|
|
19
|
+
readonly report_date : string
|
|
19
20
|
|
|
20
21
|
constructor(federal_election_file_body : any) {
|
|
21
22
|
if (!FederalElectionF2FileBody.is(federal_election_file_body)) {
|
|
@@ -34,6 +35,7 @@ export class FederalElectionF2FileBody {
|
|
|
34
35
|
this.federal_election_id = federal_election_file_body.federal_election_id
|
|
35
36
|
this.party_id = federal_election_file_body.party_id
|
|
36
37
|
this.federal_election_committee_id = federal_election_file_body.federal_election_committee_id
|
|
38
|
+
this.report_date = federal_election_file_body.report_date
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
static is(federal_election_file_body : any) : federal_election_file_body is FederalElectionF2FileBody {
|
|
@@ -50,7 +52,8 @@ export class FederalElectionF2FileBody {
|
|
|
50
52
|
(federal_election_file_body.state_id === undefined || is_state_id(federal_election_file_body.state_id)) &&
|
|
51
53
|
(federal_election_file_body.district_id === undefined || typeof federal_election_file_body.district_id === "number") &&
|
|
52
54
|
typeof federal_election_file_body.federal_election_id === "string" &&
|
|
53
|
-
(federal_election_file_body.federal_election_committee_id === undefined || typeof federal_election_file_body.federal_election_committee_id === "string")
|
|
55
|
+
(federal_election_file_body.federal_election_committee_id === undefined || typeof federal_election_file_body.federal_election_committee_id === "string") &&
|
|
56
|
+
typeof federal_election_file_body.report_date === "string"
|
|
54
57
|
)
|
|
55
58
|
}
|
|
56
59
|
}
|
|
@@ -6,6 +6,7 @@ export class FederalElectionF3FileBody {
|
|
|
6
6
|
readonly cash_on_hand : number
|
|
7
7
|
readonly cumulative_receipts : number
|
|
8
8
|
readonly new_receipts : number
|
|
9
|
+
readonly report_date : string
|
|
9
10
|
|
|
10
11
|
constructor(federal_election_file_body : any) {
|
|
11
12
|
if (!FederalElectionF3FileBody.is(federal_election_file_body)) {
|
|
@@ -18,6 +19,7 @@ export class FederalElectionF3FileBody {
|
|
|
18
19
|
this.cash_on_hand = federal_election_file_body.cash_on_hand
|
|
19
20
|
this.cumulative_receipts = federal_election_file_body.cumulative_receipts
|
|
20
21
|
this.new_receipts = federal_election_file_body.new_receipts
|
|
22
|
+
this.report_date = federal_election_file_body.report_date
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
static is(federal_election_file_body : any) : federal_election_file_body is FederalElectionF3FileBody {
|
|
@@ -29,7 +31,8 @@ export class FederalElectionF3FileBody {
|
|
|
29
31
|
typeof federal_election_file_body.period_end_date === "string" &&
|
|
30
32
|
typeof federal_election_file_body.cash_on_hand === "number" &&
|
|
31
33
|
typeof federal_election_file_body.cumulative_receipts === "number" &&
|
|
32
|
-
typeof federal_election_file_body.new_receipts === "number"
|
|
34
|
+
typeof federal_election_file_body.new_receipts === "number" &&
|
|
35
|
+
typeof federal_election_file_body.report_date === "string"
|
|
33
36
|
)
|
|
34
37
|
}
|
|
35
38
|
}
|