triangle-types 1.0.329 → 1.0.330

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,18 +1,24 @@
1
1
  export declare class FederalLobbyDocumentInterestLobbyist {
2
+ readonly federal_lobby_document_id: string;
3
+ readonly interest_id: string;
2
4
  readonly federal_lobby_lobbyist_id: number;
3
5
  readonly is_new?: boolean;
4
6
  readonly history_text?: string;
5
7
  constructor(federal_lobby_document_interest_lobbyist: any);
6
8
  static is(federal_lobby_document_interest_lobbyist: any): federal_lobby_document_interest_lobbyist is FederalLobbyDocumentInterestLobbyist;
7
9
  }
10
+ export declare class FederalLobbyDocumentInterestAgency {
11
+ readonly federal_lobby_document_id: string;
12
+ readonly interest_id: string;
13
+ readonly federal_lobby_agency_id: number;
14
+ constructor(federal_lobby_document_interest_lobbyist: any);
15
+ static is(federal_lobby_document_interest_lobbyist: any): federal_lobby_document_interest_lobbyist is FederalLobbyDocumentInterestAgency;
16
+ }
8
17
  export declare class FederalLobbyDocumentInterest {
9
- readonly federal_lobby_document_interest_id: string;
10
18
  readonly federal_lobby_document_id: string;
11
19
  readonly interest_id: string;
12
20
  readonly description?: string;
13
21
  readonly foreign_interests_text?: string;
14
- readonly lobbyists: FederalLobbyDocumentInterestLobbyist[];
15
- readonly federal_lobby_agency_ids: number[];
16
22
  constructor(federal_lobby_document_interest: any);
17
23
  static is(federal_lobby_document_interest: any): federal_lobby_document_interest is FederalLobbyDocumentInterest;
18
24
  }
@@ -1,4 +1,6 @@
1
1
  export class FederalLobbyDocumentInterestLobbyist {
2
+ federal_lobby_document_id;
3
+ interest_id;
2
4
  federal_lobby_lobbyist_id;
3
5
  is_new;
4
6
  history_text;
@@ -6,45 +8,59 @@ export class FederalLobbyDocumentInterestLobbyist {
6
8
  if (!FederalLobbyDocumentInterestLobbyist.is(federal_lobby_document_interest_lobbyist)) {
7
9
  throw Error("Invalid input.");
8
10
  }
11
+ this.federal_lobby_document_id = federal_lobby_document_interest_lobbyist.federal_lobby_document_id;
12
+ this.interest_id = federal_lobby_document_interest_lobbyist.interest_id;
9
13
  this.federal_lobby_lobbyist_id = federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id;
10
14
  this.is_new = federal_lobby_document_interest_lobbyist.is_new;
11
15
  this.history_text = federal_lobby_document_interest_lobbyist.history_text;
12
16
  }
13
17
  static is(federal_lobby_document_interest_lobbyist) {
14
18
  return (federal_lobby_document_interest_lobbyist !== undefined &&
19
+ typeof federal_lobby_document_interest_lobbyist.federal_lobby_document_id === "string" &&
20
+ typeof federal_lobby_document_interest_lobbyist.interest_id === "string" &&
15
21
  typeof federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id === "number" &&
16
22
  (federal_lobby_document_interest_lobbyist.is_new === undefined || typeof federal_lobby_document_interest_lobbyist.is_new === "boolean") &&
17
23
  (federal_lobby_document_interest_lobbyist.history_text === undefined || typeof federal_lobby_document_interest_lobbyist.history_text === "string"));
18
24
  }
19
25
  }
26
+ export class FederalLobbyDocumentInterestAgency {
27
+ federal_lobby_document_id;
28
+ interest_id;
29
+ federal_lobby_agency_id;
30
+ constructor(federal_lobby_document_interest_lobbyist) {
31
+ if (!FederalLobbyDocumentInterestAgency.is(federal_lobby_document_interest_lobbyist)) {
32
+ throw Error("Invalid input.");
33
+ }
34
+ this.federal_lobby_document_id = federal_lobby_document_interest_lobbyist.federal_lobby_document_id;
35
+ this.interest_id = federal_lobby_document_interest_lobbyist.interest_id;
36
+ this.federal_lobby_agency_id = federal_lobby_document_interest_lobbyist.federal_lobby_agency_id;
37
+ }
38
+ static is(federal_lobby_document_interest_lobbyist) {
39
+ return (federal_lobby_document_interest_lobbyist !== undefined &&
40
+ typeof federal_lobby_document_interest_lobbyist.federal_lobby_document_id === "string" &&
41
+ typeof federal_lobby_document_interest_lobbyist.interest_id === "string" &&
42
+ typeof federal_lobby_document_interest_lobbyist.federal_lobby_agency_id === "number");
43
+ }
44
+ }
20
45
  export class FederalLobbyDocumentInterest {
21
- federal_lobby_document_interest_id;
22
46
  federal_lobby_document_id;
23
47
  interest_id;
24
48
  description;
25
49
  foreign_interests_text;
26
- lobbyists;
27
- federal_lobby_agency_ids;
28
50
  constructor(federal_lobby_document_interest) {
29
51
  if (!FederalLobbyDocumentInterest.is(federal_lobby_document_interest)) {
30
52
  throw Error("Invalid input.");
31
53
  }
32
- this.federal_lobby_document_interest_id = federal_lobby_document_interest.federal_lobby_document_interest_id;
33
54
  this.federal_lobby_document_id = federal_lobby_document_interest.federal_lobby_document_id;
34
55
  this.interest_id = federal_lobby_document_interest.interest_id;
35
56
  this.description = federal_lobby_document_interest.description;
36
57
  this.foreign_interests_text = federal_lobby_document_interest.foreign_interests_text;
37
- this.lobbyists = federal_lobby_document_interest.lobbyists;
38
- this.federal_lobby_agency_ids = federal_lobby_document_interest.federal_lobby_agency_ids;
39
58
  }
40
59
  static is(federal_lobby_document_interest) {
41
60
  return (federal_lobby_document_interest !== undefined &&
42
- typeof federal_lobby_document_interest.federal_lobby_document_interest_id === "string" &&
43
61
  typeof federal_lobby_document_interest.federal_lobby_document_id === "string" &&
44
62
  typeof federal_lobby_document_interest.interest_id === "string" &&
45
63
  (federal_lobby_document_interest.description === undefined || typeof federal_lobby_document_interest.description === "string") &&
46
- (federal_lobby_document_interest.foreign_interests_text === undefined || typeof federal_lobby_document_interest.foreign_interests_text === "string") &&
47
- Array.isArray(federal_lobby_document_interest.lobbyists) && federal_lobby_document_interest.lobbyists.every(FederalLobbyDocumentInterestLobbyist.is) &&
48
- Array.isArray(federal_lobby_document_interest.federal_lobby_agency_ids) && federal_lobby_document_interest.federal_lobby_agency_ids.every((federal_lobby_agency_id) => typeof federal_lobby_agency_id === "number"));
64
+ (federal_lobby_document_interest.foreign_interests_text === undefined || typeof federal_lobby_document_interest.foreign_interests_text === "string"));
49
65
  }
50
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.329",
3
+ "version": "1.0.330",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -1,4 +1,6 @@
1
1
  export class FederalLobbyDocumentInterestLobbyist {
2
+ readonly federal_lobby_document_id : string
3
+ readonly interest_id : string
2
4
  readonly federal_lobby_lobbyist_id : number
3
5
  readonly is_new? : boolean
4
6
  readonly history_text? : string
@@ -7,6 +9,8 @@ export class FederalLobbyDocumentInterestLobbyist {
7
9
  if (!FederalLobbyDocumentInterestLobbyist.is(federal_lobby_document_interest_lobbyist)) {
8
10
  throw Error("Invalid input.")
9
11
  }
12
+ this.federal_lobby_document_id = federal_lobby_document_interest_lobbyist.federal_lobby_document_id
13
+ this.interest_id = federal_lobby_document_interest_lobbyist.interest_id
10
14
  this.federal_lobby_lobbyist_id = federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id
11
15
  this.is_new = federal_lobby_document_interest_lobbyist.is_new
12
16
  this.history_text = federal_lobby_document_interest_lobbyist.history_text
@@ -15,6 +19,8 @@ export class FederalLobbyDocumentInterestLobbyist {
15
19
  static is(federal_lobby_document_interest_lobbyist : any) : federal_lobby_document_interest_lobbyist is FederalLobbyDocumentInterestLobbyist {
16
20
  return (
17
21
  federal_lobby_document_interest_lobbyist !== undefined &&
22
+ typeof federal_lobby_document_interest_lobbyist.federal_lobby_document_id === "string" &&
23
+ typeof federal_lobby_document_interest_lobbyist.interest_id === "string" &&
18
24
  typeof federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id === "number" &&
19
25
  (federal_lobby_document_interest_lobbyist.is_new === undefined || typeof federal_lobby_document_interest_lobbyist.is_new === "boolean") &&
20
26
  (federal_lobby_document_interest_lobbyist.history_text === undefined || typeof federal_lobby_document_interest_lobbyist.history_text === "string")
@@ -22,39 +28,54 @@ export class FederalLobbyDocumentInterestLobbyist {
22
28
  }
23
29
  }
24
30
 
31
+ export class FederalLobbyDocumentInterestAgency {
32
+ readonly federal_lobby_document_id : string
33
+ readonly interest_id : string
34
+ readonly federal_lobby_agency_id : number
35
+
36
+ constructor(federal_lobby_document_interest_lobbyist : any) {
37
+ if (!FederalLobbyDocumentInterestAgency.is(federal_lobby_document_interest_lobbyist)) {
38
+ throw Error("Invalid input.")
39
+ }
40
+ this.federal_lobby_document_id = federal_lobby_document_interest_lobbyist.federal_lobby_document_id
41
+ this.interest_id = federal_lobby_document_interest_lobbyist.interest_id
42
+ this.federal_lobby_agency_id = federal_lobby_document_interest_lobbyist.federal_lobby_agency_id
43
+ }
44
+
45
+ static is(federal_lobby_document_interest_lobbyist : any) : federal_lobby_document_interest_lobbyist is FederalLobbyDocumentInterestAgency {
46
+ return (
47
+ federal_lobby_document_interest_lobbyist !== undefined &&
48
+ typeof federal_lobby_document_interest_lobbyist.federal_lobby_document_id === "string" &&
49
+ typeof federal_lobby_document_interest_lobbyist.interest_id === "string" &&
50
+ typeof federal_lobby_document_interest_lobbyist.federal_lobby_agency_id === "number"
51
+ )
52
+ }
53
+ }
54
+
25
55
 
26
56
  export class FederalLobbyDocumentInterest {
27
- readonly federal_lobby_document_interest_id : string
28
57
  readonly federal_lobby_document_id : string
29
58
  readonly interest_id : string
30
59
  readonly description? : string
31
60
  readonly foreign_interests_text? : string
32
- readonly lobbyists : FederalLobbyDocumentInterestLobbyist[]
33
- readonly federal_lobby_agency_ids : number[]
34
61
 
35
62
  constructor(federal_lobby_document_interest : any) {
36
63
  if (!FederalLobbyDocumentInterest.is(federal_lobby_document_interest)) {
37
64
  throw Error("Invalid input.")
38
65
  }
39
- this.federal_lobby_document_interest_id = federal_lobby_document_interest.federal_lobby_document_interest_id
40
66
  this.federal_lobby_document_id = federal_lobby_document_interest.federal_lobby_document_id
41
67
  this.interest_id = federal_lobby_document_interest.interest_id
42
68
  this.description = federal_lobby_document_interest.description
43
69
  this.foreign_interests_text = federal_lobby_document_interest.foreign_interests_text
44
- this.lobbyists = federal_lobby_document_interest.lobbyists
45
- this.federal_lobby_agency_ids = federal_lobby_document_interest.federal_lobby_agency_ids
46
70
  }
47
71
 
48
72
  static is(federal_lobby_document_interest : any) : federal_lobby_document_interest is FederalLobbyDocumentInterest {
49
73
  return (
50
74
  federal_lobby_document_interest !== undefined &&
51
- typeof federal_lobby_document_interest.federal_lobby_document_interest_id === "string" &&
52
75
  typeof federal_lobby_document_interest.federal_lobby_document_id === "string" &&
53
76
  typeof federal_lobby_document_interest.interest_id === "string" &&
54
77
  (federal_lobby_document_interest.description === undefined || typeof federal_lobby_document_interest.description === "string") &&
55
- (federal_lobby_document_interest.foreign_interests_text === undefined || typeof federal_lobby_document_interest.foreign_interests_text === "string") &&
56
- Array.isArray(federal_lobby_document_interest.lobbyists) && federal_lobby_document_interest.lobbyists.every(FederalLobbyDocumentInterestLobbyist.is) &&
57
- Array.isArray(federal_lobby_document_interest.federal_lobby_agency_ids) && federal_lobby_document_interest.federal_lobby_agency_ids.every((federal_lobby_agency_id : any) => typeof federal_lobby_agency_id === "number")
78
+ (federal_lobby_document_interest.foreign_interests_text === undefined || typeof federal_lobby_document_interest.foreign_interests_text === "string")
58
79
  )
59
80
  }
60
81
  }