triangle-types 1.0.377 → 1.0.379
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,6 +1,5 @@
|
|
|
1
1
|
import { FederalElectionCandidate } from "./FederalElectionCandidate.js";
|
|
2
2
|
import { FederalElectionCommittee } from "./FederalElectionCommittee.js";
|
|
3
|
-
import { FederalElectionFile } from "./FederalElectionFile.js";
|
|
4
3
|
export declare class FederalElectionFileExpenditure {
|
|
5
4
|
readonly federal_election_file_id: number;
|
|
6
5
|
readonly expenditure_id: string;
|
|
@@ -21,7 +20,6 @@ export declare class FederalElectionFileExpenditure {
|
|
|
21
20
|
export declare class FederalElectionFileExpenditureAux extends FederalElectionFileExpenditure {
|
|
22
21
|
readonly federal_election_candidate: FederalElectionCandidate;
|
|
23
22
|
readonly federal_election_committee: FederalElectionCommittee;
|
|
24
|
-
readonly federal_election_f24_file: FederalElectionFile;
|
|
25
23
|
constructor(federal_election_file_expenditure: any);
|
|
26
24
|
static is(federal_election_file_expenditure: any): federal_election_file_expenditure is FederalElectionFileExpenditureAux;
|
|
27
25
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FederalElectionCandidate } from "./FederalElectionCandidate.js";
|
|
2
2
|
import { FederalElectionCommittee } from "./FederalElectionCommittee.js";
|
|
3
|
-
import { FederalElectionFile } from "./FederalElectionFile.js";
|
|
4
3
|
export class FederalElectionFileExpenditure {
|
|
5
4
|
federal_election_file_id;
|
|
6
5
|
expenditure_id;
|
|
@@ -50,7 +49,6 @@ export class FederalElectionFileExpenditure {
|
|
|
50
49
|
export class FederalElectionFileExpenditureAux extends FederalElectionFileExpenditure {
|
|
51
50
|
federal_election_candidate;
|
|
52
51
|
federal_election_committee;
|
|
53
|
-
federal_election_f24_file;
|
|
54
52
|
constructor(federal_election_file_expenditure) {
|
|
55
53
|
if (!FederalElectionFileExpenditureAux.is(federal_election_file_expenditure)) {
|
|
56
54
|
throw Error("Invalid input.");
|
|
@@ -58,12 +56,10 @@ export class FederalElectionFileExpenditureAux extends FederalElectionFileExpend
|
|
|
58
56
|
super(federal_election_file_expenditure);
|
|
59
57
|
this.federal_election_candidate = federal_election_file_expenditure.federal_election_candidate;
|
|
60
58
|
this.federal_election_committee = federal_election_file_expenditure.federal_election_committee;
|
|
61
|
-
this.federal_election_f24_file = federal_election_file_expenditure.federal_election_f24_file;
|
|
62
59
|
}
|
|
63
60
|
static is(federal_election_file_expenditure) {
|
|
64
61
|
return (FederalElectionFileExpenditure.is(federal_election_file_expenditure) &&
|
|
65
62
|
FederalElectionCandidate.is(federal_election_file_expenditure.federal_election_candidate) &&
|
|
66
|
-
FederalElectionCommittee.is(federal_election_file_expenditure.federal_election_committee)
|
|
67
|
-
FederalElectionFile.is(federal_election_file_expenditure.federal_election_f24_file));
|
|
63
|
+
FederalElectionCommittee.is(federal_election_file_expenditure.federal_election_committee));
|
|
68
64
|
}
|
|
69
65
|
}
|
package/package.json
CHANGED
|
@@ -58,7 +58,6 @@ export class FederalElectionFileExpenditure {
|
|
|
58
58
|
export class FederalElectionFileExpenditureAux extends FederalElectionFileExpenditure {
|
|
59
59
|
readonly federal_election_candidate : FederalElectionCandidate
|
|
60
60
|
readonly federal_election_committee : FederalElectionCommittee
|
|
61
|
-
readonly federal_election_f24_file : FederalElectionFile
|
|
62
61
|
|
|
63
62
|
constructor(federal_election_file_expenditure : any) {
|
|
64
63
|
if (!FederalElectionFileExpenditureAux.is(federal_election_file_expenditure)) {
|
|
@@ -67,15 +66,13 @@ export class FederalElectionFileExpenditureAux extends FederalElectionFileExpend
|
|
|
67
66
|
super(federal_election_file_expenditure)
|
|
68
67
|
this.federal_election_candidate = federal_election_file_expenditure.federal_election_candidate
|
|
69
68
|
this.federal_election_committee = federal_election_file_expenditure.federal_election_committee
|
|
70
|
-
this.federal_election_f24_file = federal_election_file_expenditure.federal_election_f24_file
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
static is(federal_election_file_expenditure : any) : federal_election_file_expenditure is FederalElectionFileExpenditureAux {
|
|
74
72
|
return (
|
|
75
73
|
FederalElectionFileExpenditure.is(federal_election_file_expenditure) &&
|
|
76
74
|
FederalElectionCandidate.is(federal_election_file_expenditure.federal_election_candidate) &&
|
|
77
|
-
FederalElectionCommittee.is(federal_election_file_expenditure.federal_election_committee)
|
|
78
|
-
FederalElectionFile.is(federal_election_file_expenditure.federal_election_f24_file)
|
|
75
|
+
FederalElectionCommittee.is(federal_election_file_expenditure.federal_election_committee)
|
|
79
76
|
)
|
|
80
77
|
}
|
|
81
78
|
}
|