triangle-types 1.0.348 → 1.0.350
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.js +0 -1
- package/dist/src/types/federal_elections/FederalElectionF24FileBody.d.ts +1 -2
- package/dist/src/types/federal_elections/FederalElectionF24FileBody.js +2 -5
- package/dist/src/types/federal_elections/FederalElectionF2FileBody.js +0 -1
- package/dist/src/types/federal_elections/FederalElectionF3FileBody.d.ts +1 -2
- package/dist/src/types/federal_elections/FederalElectionF3FileBody.js +2 -5
- package/package.json +1 -1
- package/src/types/federal_elections/FederalElectionF1FileBody.ts +0 -1
- package/src/types/federal_elections/FederalElectionF24FileBody.ts +2 -4
- package/src/types/federal_elections/FederalElectionF2FileBody.ts +0 -1
- package/src/types/federal_elections/FederalElectionF3FileBody.ts +2 -6
|
@@ -25,7 +25,6 @@ export class FederalElectionF1FileBody {
|
|
|
25
25
|
}
|
|
26
26
|
static is(federal_election_file_body) {
|
|
27
27
|
return (federal_election_file_body !== undefined &&
|
|
28
|
-
federal_election_file_body.form_type_id === "F1" &&
|
|
29
28
|
typeof federal_election_file_body.federal_election_committee_id === "string" &&
|
|
30
29
|
typeof federal_election_file_body.name === "string" &&
|
|
31
30
|
(federal_election_file_body.url === undefined || typeof federal_election_file_body.url === "string") &&
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FederalElectionFileExpenditure } from "./FederalElectionFileExpenditure.js";
|
|
2
|
-
|
|
3
|
-
export declare class FederalElectionF24FileBody extends FederalElectionFile {
|
|
2
|
+
export declare class FederalElectionF24FileBody {
|
|
4
3
|
readonly federal_election_committee_id: string;
|
|
5
4
|
readonly first_federal_election_file_id: number;
|
|
6
5
|
readonly f24_report_type_id: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FederalElectionFileExpenditure } from "./FederalElectionFileExpenditure.js";
|
|
2
|
-
|
|
3
|
-
export class FederalElectionF24FileBody extends FederalElectionFile {
|
|
2
|
+
export class FederalElectionF24FileBody {
|
|
4
3
|
federal_election_committee_id;
|
|
5
4
|
first_federal_election_file_id;
|
|
6
5
|
f24_report_type_id;
|
|
@@ -10,7 +9,6 @@ export class FederalElectionF24FileBody extends FederalElectionFile {
|
|
|
10
9
|
if (!FederalElectionF24FileBody.is(federal_election_file_body)) {
|
|
11
10
|
throw Error("Invalid input.");
|
|
12
11
|
}
|
|
13
|
-
super(federal_election_file_body);
|
|
14
12
|
this.federal_election_committee_id = federal_election_file_body.federal_election_committee_id;
|
|
15
13
|
this.first_federal_election_file_id = federal_election_file_body.first_federal_election_file_id;
|
|
16
14
|
this.f24_report_type_id = federal_election_file_body.f24_report_type_id;
|
|
@@ -18,8 +16,7 @@ export class FederalElectionF24FileBody extends FederalElectionFile {
|
|
|
18
16
|
this.expenditures = federal_election_file_body.expenditures;
|
|
19
17
|
}
|
|
20
18
|
static is(federal_election_file_body) {
|
|
21
|
-
return (
|
|
22
|
-
federal_election_file_body.form_type_id === "F24" &&
|
|
19
|
+
return (federal_election_file_body !== undefined &&
|
|
23
20
|
typeof federal_election_file_body.federal_election_committee_id === "string" &&
|
|
24
21
|
typeof federal_election_file_body.first_federal_election_file_id === "number" &&
|
|
25
22
|
typeof federal_election_file_body.f24_report_type_id === "string" &&
|
|
@@ -34,7 +34,6 @@ export class FederalElectionF2FileBody {
|
|
|
34
34
|
}
|
|
35
35
|
static is(federal_election_file_body) {
|
|
36
36
|
return (federal_election_file_body !== undefined &&
|
|
37
|
-
federal_election_file_body.form_type_id === "F2" &&
|
|
38
37
|
typeof federal_election_file_body.federal_election_candidate_id === "string" &&
|
|
39
38
|
(federal_election_file_body.name_prefix === undefined || typeof federal_election_file_body.name_prefix === "string") &&
|
|
40
39
|
typeof federal_election_file_body.name_first === "string" &&
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare class FederalElectionF3FileBody extends FederalElectionFile {
|
|
1
|
+
export declare class FederalElectionF3FileBody {
|
|
3
2
|
readonly federal_election_committee_id: string;
|
|
4
3
|
readonly period_id: string;
|
|
5
4
|
readonly period_start_date: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export class FederalElectionF3FileBody extends FederalElectionFile {
|
|
1
|
+
export class FederalElectionF3FileBody {
|
|
3
2
|
federal_election_committee_id;
|
|
4
3
|
period_id;
|
|
5
4
|
period_start_date;
|
|
@@ -11,7 +10,6 @@ export class FederalElectionF3FileBody extends FederalElectionFile {
|
|
|
11
10
|
if (!FederalElectionF3FileBody.is(federal_election_file_body)) {
|
|
12
11
|
throw Error("Invalid input.");
|
|
13
12
|
}
|
|
14
|
-
super(federal_election_file_body);
|
|
15
13
|
this.federal_election_committee_id = federal_election_file_body.federal_election_committee_id;
|
|
16
14
|
this.period_id = federal_election_file_body.period_id;
|
|
17
15
|
this.period_start_date = federal_election_file_body.period_start_date;
|
|
@@ -21,8 +19,7 @@ export class FederalElectionF3FileBody extends FederalElectionFile {
|
|
|
21
19
|
this.new_receipts = federal_election_file_body.new_receipts;
|
|
22
20
|
}
|
|
23
21
|
static is(federal_election_file_body) {
|
|
24
|
-
return (
|
|
25
|
-
federal_election_file_body.form_type_id === "F3" &&
|
|
22
|
+
return (federal_election_file_body !== undefined &&
|
|
26
23
|
typeof federal_election_file_body.federal_election_committee_id === "string" &&
|
|
27
24
|
typeof federal_election_file_body.period_id === "string" &&
|
|
28
25
|
typeof federal_election_file_body.period_start_date === "string" &&
|
package/package.json
CHANGED
|
@@ -30,7 +30,6 @@ export class FederalElectionF1FileBody {
|
|
|
30
30
|
static is(federal_election_file_body : any) : federal_election_file_body is FederalElectionF1FileBody {
|
|
31
31
|
return (
|
|
32
32
|
federal_election_file_body !== undefined &&
|
|
33
|
-
federal_election_file_body.form_type_id === "F1" &&
|
|
34
33
|
typeof federal_election_file_body.federal_election_committee_id === "string" &&
|
|
35
34
|
typeof federal_election_file_body.name === "string" &&
|
|
36
35
|
(federal_election_file_body.url === undefined || typeof federal_election_file_body.url === "string") &&
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FederalElectionFileExpenditure } from "./FederalElectionFileExpenditure"
|
|
2
2
|
import { FederalElectionFile } from "./FederalElectionFile"
|
|
3
3
|
|
|
4
|
-
export class FederalElectionF24FileBody
|
|
4
|
+
export class FederalElectionF24FileBody {
|
|
5
5
|
readonly federal_election_committee_id : string
|
|
6
6
|
readonly first_federal_election_file_id : number
|
|
7
7
|
readonly f24_report_type_id : string
|
|
@@ -12,7 +12,6 @@ export class FederalElectionF24FileBody extends FederalElectionFile {
|
|
|
12
12
|
if (!FederalElectionF24FileBody.is(federal_election_file_body)) {
|
|
13
13
|
throw Error("Invalid input.")
|
|
14
14
|
}
|
|
15
|
-
super(federal_election_file_body)
|
|
16
15
|
this.federal_election_committee_id = federal_election_file_body.federal_election_committee_id
|
|
17
16
|
this.first_federal_election_file_id = federal_election_file_body.first_federal_election_file_id
|
|
18
17
|
this.f24_report_type_id = federal_election_file_body.f24_report_type_id
|
|
@@ -22,8 +21,7 @@ export class FederalElectionF24FileBody extends FederalElectionFile {
|
|
|
22
21
|
|
|
23
22
|
static is(federal_election_file_body : any) : federal_election_file_body is FederalElectionF24FileBody {
|
|
24
23
|
return (
|
|
25
|
-
|
|
26
|
-
federal_election_file_body.form_type_id === "F24" &&
|
|
24
|
+
federal_election_file_body !== undefined &&
|
|
27
25
|
typeof federal_election_file_body.federal_election_committee_id === "string" &&
|
|
28
26
|
typeof federal_election_file_body.first_federal_election_file_id === "number" &&
|
|
29
27
|
typeof federal_election_file_body.f24_report_type_id === "string" &&
|
|
@@ -39,7 +39,6 @@ export class FederalElectionF2FileBody {
|
|
|
39
39
|
static is(federal_election_file_body : any) : federal_election_file_body is FederalElectionF2FileBody {
|
|
40
40
|
return (
|
|
41
41
|
federal_election_file_body !== undefined &&
|
|
42
|
-
federal_election_file_body.form_type_id === "F2" &&
|
|
43
42
|
typeof federal_election_file_body.federal_election_candidate_id === "string" &&
|
|
44
43
|
(federal_election_file_body.name_prefix === undefined || typeof federal_election_file_body.name_prefix === "string") &&
|
|
45
44
|
typeof federal_election_file_body.name_first === "string" &&
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export class FederalElectionF3FileBody extends FederalElectionFile {
|
|
1
|
+
export class FederalElectionF3FileBody {
|
|
4
2
|
readonly federal_election_committee_id : string
|
|
5
3
|
readonly period_id : string
|
|
6
4
|
readonly period_start_date : string
|
|
@@ -13,7 +11,6 @@ export class FederalElectionF3FileBody extends FederalElectionFile {
|
|
|
13
11
|
if (!FederalElectionF3FileBody.is(federal_election_file_body)) {
|
|
14
12
|
throw Error("Invalid input.")
|
|
15
13
|
}
|
|
16
|
-
super(federal_election_file_body)
|
|
17
14
|
this.federal_election_committee_id = federal_election_file_body.federal_election_committee_id
|
|
18
15
|
this.period_id = federal_election_file_body.period_id
|
|
19
16
|
this.period_start_date = federal_election_file_body.period_start_date
|
|
@@ -25,8 +22,7 @@ export class FederalElectionF3FileBody extends FederalElectionFile {
|
|
|
25
22
|
|
|
26
23
|
static is(federal_election_file_body : any) : federal_election_file_body is FederalElectionF3FileBody {
|
|
27
24
|
return (
|
|
28
|
-
|
|
29
|
-
federal_election_file_body.form_type_id === "F3" &&
|
|
25
|
+
federal_election_file_body !== undefined &&
|
|
30
26
|
typeof federal_election_file_body.federal_election_committee_id === "string" &&
|
|
31
27
|
typeof federal_election_file_body.period_id === "string" &&
|
|
32
28
|
typeof federal_election_file_body.period_start_date === "string" &&
|