elections-types 1.0.87 → 1.0.88
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.
|
@@ -31,7 +31,7 @@ export declare class Candidate {
|
|
|
31
31
|
}
|
|
32
32
|
export declare class CandidateAux extends Candidate {
|
|
33
33
|
readonly committees: CommitteeAux[];
|
|
34
|
-
readonly
|
|
34
|
+
readonly federal_election_f3_files: FederalElectionF3File[];
|
|
35
35
|
readonly expenditures: ExpenditureAux[];
|
|
36
36
|
constructor(candidate: any);
|
|
37
37
|
static is(candidate: any): candidate is CandidateAux;
|
|
@@ -76,7 +76,7 @@ export class Candidate {
|
|
|
76
76
|
}
|
|
77
77
|
export class CandidateAux extends Candidate {
|
|
78
78
|
committees;
|
|
79
|
-
|
|
79
|
+
federal_election_f3_files;
|
|
80
80
|
expenditures;
|
|
81
81
|
constructor(candidate) {
|
|
82
82
|
if (!CandidateAux.is(candidate)) {
|
|
@@ -84,15 +84,15 @@ export class CandidateAux extends Candidate {
|
|
|
84
84
|
}
|
|
85
85
|
super(candidate);
|
|
86
86
|
this.committees = candidate.committees;
|
|
87
|
-
this.
|
|
88
|
-
this.expenditures = candidate.expenditures
|
|
87
|
+
this.federal_election_f3_files = candidate.federal_election_f3_files;
|
|
88
|
+
this.expenditures = candidate.expenditures;
|
|
89
89
|
}
|
|
90
90
|
static is(candidate) {
|
|
91
91
|
return (Candidate.is(candidate) &&
|
|
92
92
|
Array.isArray(candidate.committees) &&
|
|
93
93
|
candidate.committees.every(CommitteeAux.is) &&
|
|
94
|
-
Array.isArray(candidate.
|
|
95
|
-
candidate.
|
|
94
|
+
Array.isArray(candidate.federal_election_f3_files) &&
|
|
95
|
+
candidate.federal_election_f3_files.every(FederalElectionF3File.is) &&
|
|
96
96
|
Array.isArray(candidate.expenditures) &&
|
|
97
97
|
candidate.expenditures.every(ExpenditureAux.is));
|
|
98
98
|
}
|
package/package.json
CHANGED
package/src/types/Candidate.ts
CHANGED
|
@@ -91,7 +91,7 @@ export class Candidate {
|
|
|
91
91
|
|
|
92
92
|
export class CandidateAux extends Candidate {
|
|
93
93
|
readonly committees : CommitteeAux[]
|
|
94
|
-
readonly
|
|
94
|
+
readonly federal_election_f3_files : FederalElectionF3File[]
|
|
95
95
|
readonly expenditures : ExpenditureAux[]
|
|
96
96
|
|
|
97
97
|
constructor(candidate : any) {
|
|
@@ -100,8 +100,8 @@ export class CandidateAux extends Candidate {
|
|
|
100
100
|
}
|
|
101
101
|
super(candidate)
|
|
102
102
|
this.committees = candidate.committees
|
|
103
|
-
this.
|
|
104
|
-
this.expenditures = candidate.expenditures
|
|
103
|
+
this.federal_election_f3_files = candidate.federal_election_f3_files
|
|
104
|
+
this.expenditures = candidate.expenditures
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
static is(candidate : any) : candidate is CandidateAux {
|
|
@@ -109,8 +109,8 @@ export class CandidateAux extends Candidate {
|
|
|
109
109
|
Candidate.is(candidate) &&
|
|
110
110
|
Array.isArray(candidate.committees) &&
|
|
111
111
|
candidate.committees.every(CommitteeAux.is) &&
|
|
112
|
-
Array.isArray(candidate.
|
|
113
|
-
candidate.
|
|
112
|
+
Array.isArray(candidate.federal_election_f3_files) &&
|
|
113
|
+
candidate.federal_election_f3_files.every(FederalElectionF3File.is) &&
|
|
114
114
|
Array.isArray(candidate.expenditures) &&
|
|
115
115
|
candidate.expenditures.every(ExpenditureAux.is)
|
|
116
116
|
)
|