triangle-types 1.0.352 → 1.0.354

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.
@@ -16,7 +16,7 @@ export declare class FederalElectionCandidate {
16
16
  readonly district_id?: number;
17
17
  readonly federal_election_id: string;
18
18
  readonly party_id?: string;
19
- readonly federal_election_file_id?: number;
19
+ readonly federal_election_file_id: number;
20
20
  readonly scout_id?: string;
21
21
  [x: string]: any;
22
22
  constructor(federal_election_candidate: FederalElectionCandidate);
@@ -72,7 +72,7 @@ export class FederalElectionCandidate {
72
72
  (federal_election_candidate.district_id === undefined || typeof federal_election_candidate.district_id === "number") &&
73
73
  typeof federal_election_candidate.federal_election_id === "string" &&
74
74
  (federal_election_candidate.party_id === undefined || typeof federal_election_candidate.party_id === "string") &&
75
- (federal_election_candidate.federal_election_file_id === undefined || typeof federal_election_candidate.federal_election_file_id === "number" && !isNaN(federal_election_candidate.federal_election_file_id)) &&
75
+ typeof federal_election_candidate.federal_election_file_id === "number" &&
76
76
  (federal_election_candidate.scout_id === undefined || typeof federal_election_candidate.scout_id === "string"));
77
77
  }
78
78
  }
@@ -8,7 +8,7 @@ export declare class FederalElectionCommittee {
8
8
  readonly name: string;
9
9
  readonly url?: string;
10
10
  readonly designation?: FederalElectionCommitteeDesignation;
11
- readonly federal_election_file_id?: number;
11
+ readonly federal_election_file_id: number;
12
12
  readonly jfp_federal_election_committee_ids?: string[];
13
13
  readonly jfr_federal_election_committee_ids: string[];
14
14
  readonly aff_federal_election_committee_ids: string[];
@@ -32,7 +32,7 @@ export class FederalElectionCommittee {
32
32
  typeof federal_election_committee.name === "string" &&
33
33
  (federal_election_committee.url === undefined || typeof federal_election_committee.url === "string") &&
34
34
  (federal_election_committee.designation === undefined || is_federal_election_committee_designation(federal_election_committee.designation)) &&
35
- (federal_election_committee.federal_election_file_id === undefined || typeof federal_election_committee.federal_election_file_id === "number" && !isNaN(federal_election_committee.federal_election_file_id)) &&
35
+ typeof federal_election_committee.federal_election_file_id === "number" &&
36
36
  (federal_election_committee.jfp_federal_election_committee_ids === undefined || Array.isArray(federal_election_committee.jfp_federal_election_committee_ids) && federal_election_committee.jfp_federal_election_committee_ids.every((federal_election_committee_id) => typeof federal_election_committee_id === "string")) &&
37
37
  (Array.isArray(federal_election_committee.jfr_federal_election_committee_ids) && federal_election_committee.jfr_federal_election_committee_ids.every((federal_election_committee_id) => typeof federal_election_committee_id === "string")) &&
38
38
  (Array.isArray(federal_election_committee.aff_federal_election_committee_ids) && federal_election_committee.aff_federal_election_committee_ids.every((federal_election_committee_id) => typeof federal_election_committee_id === "string")));
@@ -9,6 +9,7 @@ export declare class FederalElectionFile {
9
9
  readonly amendment_type_id: AmendmentTypeID;
10
10
  readonly long_form_type_id: LongFormTypeID;
11
11
  readonly s3_id: string;
12
+ readonly report_date: string;
12
13
  readonly federal_election_committee_id?: string;
13
14
  readonly federal_election_candidate_id?: string;
14
15
  readonly federal_election_id?: string;
@@ -10,6 +10,7 @@ export class FederalElectionFile {
10
10
  amendment_type_id;
11
11
  long_form_type_id;
12
12
  s3_id;
13
+ report_date;
13
14
  federal_election_committee_id;
14
15
  federal_election_candidate_id;
15
16
  federal_election_id;
@@ -24,6 +25,7 @@ export class FederalElectionFile {
24
25
  this.amendment_type_id = federal_election_file.amendment_type_id;
25
26
  this.long_form_type_id = federal_election_file.long_form_type_id;
26
27
  this.s3_id = federal_election_file.s3_id;
28
+ this.report_date = federal_election_file.report_date;
27
29
  this.federal_election_committee_id = federal_election_file.federal_election_committee_id;
28
30
  this.federal_election_candidate_id = federal_election_file.federal_election_candidate_id;
29
31
  this.federal_election_id = federal_election_file.federal_election_id;
@@ -37,6 +39,7 @@ export class FederalElectionFile {
37
39
  is_amendment_type_id(federal_election_file.amendment_type_id) &&
38
40
  is_long_form_type_id(federal_election_file.long_form_type_id) &&
39
41
  typeof federal_election_file.s3_id === "string" &&
42
+ typeof federal_election_file.report_date === "string" &&
40
43
  (federal_election_file.federal_election_committee_id === undefined || typeof federal_election_file.federal_election_committee_id === "string") &&
41
44
  (federal_election_file.federal_election_candidate_id === undefined || typeof federal_election_file.federal_election_candidate_id === "string") &&
42
45
  (federal_election_file.federal_election_id === undefined || typeof federal_election_file.federal_election_id === "string") &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.352",
3
+ "version": "1.0.354",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -41,7 +41,7 @@ export class FederalElectionCandidate {
41
41
  readonly district_id? : number
42
42
  readonly federal_election_id : string
43
43
  readonly party_id? : string
44
- readonly federal_election_file_id? : number
44
+ readonly federal_election_file_id : number
45
45
  readonly scout_id? : string
46
46
  [x : string] : any
47
47
 
@@ -81,7 +81,7 @@ export class FederalElectionCandidate {
81
81
  (federal_election_candidate.district_id === undefined || typeof federal_election_candidate.district_id === "number") &&
82
82
  typeof federal_election_candidate.federal_election_id === "string" &&
83
83
  (federal_election_candidate.party_id === undefined || typeof federal_election_candidate.party_id === "string") &&
84
- (federal_election_candidate.federal_election_file_id === undefined || typeof federal_election_candidate.federal_election_file_id === "number" && !isNaN(federal_election_candidate.federal_election_file_id)) &&
84
+ typeof federal_election_candidate.federal_election_file_id === "number" &&
85
85
  (federal_election_candidate.scout_id === undefined || typeof federal_election_candidate.scout_id === "string")
86
86
  )
87
87
  }
@@ -14,7 +14,7 @@ export class FederalElectionCommittee {
14
14
  readonly name : string
15
15
  readonly url? : string
16
16
  readonly designation? : FederalElectionCommitteeDesignation
17
- readonly federal_election_file_id? : number
17
+ readonly federal_election_file_id : number
18
18
  readonly jfp_federal_election_committee_ids? : string[]
19
19
  readonly jfr_federal_election_committee_ids : string[]
20
20
  readonly aff_federal_election_committee_ids : string[]
@@ -41,7 +41,7 @@ export class FederalElectionCommittee {
41
41
  typeof federal_election_committee.name === "string" &&
42
42
  (federal_election_committee.url === undefined || typeof federal_election_committee.url === "string") &&
43
43
  (federal_election_committee.designation === undefined || is_federal_election_committee_designation(federal_election_committee.designation)) &&
44
- (federal_election_committee.federal_election_file_id === undefined || typeof federal_election_committee.federal_election_file_id === "number" && !isNaN(federal_election_committee.federal_election_file_id)) &&
44
+ typeof federal_election_committee.federal_election_file_id === "number" &&
45
45
  (federal_election_committee.jfp_federal_election_committee_ids === undefined || Array.isArray(federal_election_committee.jfp_federal_election_committee_ids) && federal_election_committee.jfp_federal_election_committee_ids.every((federal_election_committee_id : any) => typeof federal_election_committee_id === "string")) &&
46
46
  (Array.isArray(federal_election_committee.jfr_federal_election_committee_ids) && federal_election_committee.jfr_federal_election_committee_ids.every((federal_election_committee_id : any) => typeof federal_election_committee_id === "string")) &&
47
47
  (Array.isArray(federal_election_committee.aff_federal_election_committee_ids) && federal_election_committee.aff_federal_election_committee_ids.every((federal_election_committee_id : any) => typeof federal_election_committee_id === "string"))
@@ -15,6 +15,7 @@ export class FederalElectionFile {
15
15
  readonly amendment_type_id : AmendmentTypeID
16
16
  readonly long_form_type_id : LongFormTypeID
17
17
  readonly s3_id : string
18
+ readonly report_date : string
18
19
  readonly federal_election_committee_id? : string
19
20
  readonly federal_election_candidate_id? : string
20
21
  readonly federal_election_id? : string
@@ -31,6 +32,7 @@ export class FederalElectionFile {
31
32
  this.amendment_type_id = federal_election_file.amendment_type_id
32
33
  this.long_form_type_id = federal_election_file.long_form_type_id
33
34
  this.s3_id = federal_election_file.s3_id
35
+ this.report_date = federal_election_file.report_date
34
36
  this.federal_election_committee_id = federal_election_file.federal_election_committee_id
35
37
  this.federal_election_candidate_id = federal_election_file.federal_election_candidate_id
36
38
  this.federal_election_id = federal_election_file.federal_election_id
@@ -46,6 +48,7 @@ export class FederalElectionFile {
46
48
  is_amendment_type_id(federal_election_file.amendment_type_id) &&
47
49
  is_long_form_type_id(federal_election_file.long_form_type_id) &&
48
50
  typeof federal_election_file.s3_id === "string" &&
51
+ typeof federal_election_file.report_date === "string" &&
49
52
  (federal_election_file.federal_election_committee_id === undefined || typeof federal_election_file.federal_election_committee_id === "string") &&
50
53
  (federal_election_file.federal_election_candidate_id === undefined || typeof federal_election_file.federal_election_candidate_id === "string") &&
51
54
  (federal_election_file.federal_election_id === undefined || typeof federal_election_file.federal_election_id === "string") &&