triangle-types 1.0.349 → 1.0.351

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.
@@ -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") &&
@@ -17,7 +17,6 @@ export class FederalElectionF24FileBody {
17
17
  }
18
18
  static is(federal_election_file_body) {
19
19
  return (federal_election_file_body !== undefined &&
20
- federal_election_file_body.form_type_id === "F24" &&
21
20
  typeof federal_election_file_body.federal_election_committee_id === "string" &&
22
21
  typeof federal_election_file_body.first_federal_election_file_id === "number" &&
23
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" &&
@@ -20,7 +20,6 @@ export class FederalElectionF3FileBody {
20
20
  }
21
21
  static is(federal_election_file_body) {
22
22
  return (federal_election_file_body !== undefined &&
23
- federal_election_file_body.form_type_id === "F3" &&
24
23
  typeof federal_election_file_body.federal_election_committee_id === "string" &&
25
24
  typeof federal_election_file_body.period_id === "string" &&
26
25
  typeof federal_election_file_body.period_start_date === "string" &&
@@ -8,6 +8,7 @@ export declare class FederalElectionFile {
8
8
  readonly form_type_id: FormTypeID;
9
9
  readonly amendment_type_id: AmendmentTypeID;
10
10
  readonly long_form_type_id: LongFormTypeID;
11
+ readonly report_date: string;
11
12
  readonly s3_id: string;
12
13
  readonly federal_election_committee_id?: string;
13
14
  readonly federal_election_candidate_id?: string;
@@ -9,6 +9,7 @@ export class FederalElectionFile {
9
9
  form_type_id;
10
10
  amendment_type_id;
11
11
  long_form_type_id;
12
+ report_date;
12
13
  s3_id;
13
14
  federal_election_committee_id;
14
15
  federal_election_candidate_id;
@@ -23,6 +24,7 @@ export class FederalElectionFile {
23
24
  this.form_type_id = federal_election_file.form_type_id;
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;
27
+ this.report_date = federal_election_file.report_date;
26
28
  this.s3_id = federal_election_file.s3_id;
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;
@@ -36,6 +38,7 @@ export class FederalElectionFile {
36
38
  is_form_type_id(federal_election_file.form_type_id) &&
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) &&
41
+ typeof federal_election_file.report_date === "string" &&
39
42
  typeof federal_election_file.s3_id === "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") &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.349",
3
+ "version": "1.0.351",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -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") &&
@@ -22,7 +22,6 @@ export class FederalElectionF24FileBody {
22
22
  static is(federal_election_file_body : any) : federal_election_file_body is FederalElectionF24FileBody {
23
23
  return (
24
24
  federal_election_file_body !== undefined &&
25
- federal_election_file_body.form_type_id === "F24" &&
26
25
  typeof federal_election_file_body.federal_election_committee_id === "string" &&
27
26
  typeof federal_election_file_body.first_federal_election_file_id === "number" &&
28
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" &&
@@ -23,7 +23,6 @@ export class FederalElectionF3FileBody {
23
23
  static is(federal_election_file_body : any) : federal_election_file_body is FederalElectionF3FileBody {
24
24
  return (
25
25
  federal_election_file_body !== undefined &&
26
- federal_election_file_body.form_type_id === "F3" &&
27
26
  typeof federal_election_file_body.federal_election_committee_id === "string" &&
28
27
  typeof federal_election_file_body.period_id === "string" &&
29
28
  typeof federal_election_file_body.period_start_date === "string" &&
@@ -14,6 +14,7 @@ export class FederalElectionFile {
14
14
  readonly form_type_id : FormTypeID
15
15
  readonly amendment_type_id : AmendmentTypeID
16
16
  readonly long_form_type_id : LongFormTypeID
17
+ readonly report_date : string
17
18
  readonly s3_id : string
18
19
  readonly federal_election_committee_id? : string
19
20
  readonly federal_election_candidate_id? : string
@@ -30,6 +31,7 @@ export class FederalElectionFile {
30
31
  this.form_type_id = federal_election_file.form_type_id
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
34
+ this.report_date = federal_election_file.report_date
33
35
  this.s3_id = federal_election_file.s3_id
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
@@ -45,6 +47,7 @@ export class FederalElectionFile {
45
47
  is_form_type_id(federal_election_file.form_type_id) &&
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) &&
50
+ typeof federal_election_file.report_date === "string" &&
48
51
  typeof federal_election_file.s3_id === "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") &&