triangle-types 1.0.328 → 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.
@@ -47,8 +47,8 @@ export declare class FederalLobbyDocument {
47
47
  readonly income_text?: string;
48
48
  readonly expense_text?: string;
49
49
  readonly expense_method?: string;
50
- readonly author?: string;
51
- readonly content_type?: string;
50
+ readonly name_author?: string;
51
+ readonly content_type_id?: string;
52
52
  readonly termination_date?: string;
53
53
  readonly registrant_address_1?: string;
54
54
  readonly registrant_address_2?: string;
@@ -56,11 +56,11 @@ export declare class FederalLobbyDocument {
56
56
  readonly registrant_address_city?: string;
57
57
  readonly registrant_address_state_id?: string;
58
58
  readonly registrant_address_zip_id?: string;
59
- readonly registrant_address_country_id?: string;
60
- readonly registrant_ppb_address_country_id?: string;
61
- readonly convictions: FederalLobbyDocumentConviction[];
62
- readonly foreign_interests: FederalLobbyDocumentForeignInterest[];
63
- readonly affiliations: FederalLobbyDocumentAffiliation[];
59
+ readonly registrant_address_country_name?: string;
60
+ readonly registrant_ppb_address_country_name?: string;
61
+ readonly convictions_json: string;
62
+ readonly foreign_interests_json: string;
63
+ readonly affiliations_json: string;
64
64
  constructor(federal_lobby_document: any);
65
65
  static is(federal_lobby_document: any): federal_lobby_document is FederalLobbyDocument;
66
66
  }
@@ -117,8 +117,8 @@ export class FederalLobbyDocument {
117
117
  income_text;
118
118
  expense_text;
119
119
  expense_method;
120
- author;
121
- content_type;
120
+ name_author;
121
+ content_type_id;
122
122
  termination_date;
123
123
  registrant_address_1;
124
124
  registrant_address_2;
@@ -126,11 +126,11 @@ export class FederalLobbyDocument {
126
126
  registrant_address_city;
127
127
  registrant_address_state_id;
128
128
  registrant_address_zip_id;
129
- registrant_address_country_id;
130
- registrant_ppb_address_country_id;
131
- convictions;
132
- foreign_interests;
133
- affiliations;
129
+ registrant_address_country_name;
130
+ registrant_ppb_address_country_name;
131
+ convictions_json;
132
+ foreign_interests_json;
133
+ affiliations_json;
134
134
  constructor(federal_lobby_document) {
135
135
  if (!FederalLobbyDocument.is(federal_lobby_document)) {
136
136
  throw Error("Invalid input.");
@@ -145,8 +145,8 @@ export class FederalLobbyDocument {
145
145
  this.income_text = federal_lobby_document.income_text;
146
146
  this.expense_text = federal_lobby_document.expense_text;
147
147
  this.expense_method = federal_lobby_document.expense_method;
148
- this.author = federal_lobby_document.author;
149
- this.content_type = federal_lobby_document.content_type;
148
+ this.name_author = federal_lobby_document.name_author;
149
+ this.content_type_id = federal_lobby_document.content_type_id;
150
150
  this.termination_date = federal_lobby_document.termination_date;
151
151
  this.registrant_address_1 = federal_lobby_document.registrant_address_1;
152
152
  this.registrant_address_2 = federal_lobby_document.registrant_address_2;
@@ -154,11 +154,11 @@ export class FederalLobbyDocument {
154
154
  this.registrant_address_city = federal_lobby_document.registrant_address_city;
155
155
  this.registrant_address_state_id = federal_lobby_document.registrant_address_state_id;
156
156
  this.registrant_address_zip_id = federal_lobby_document.registrant_address_zip_id;
157
- this.registrant_address_country_id = federal_lobby_document.registrant_address_country_id;
158
- this.registrant_ppb_address_country_id = federal_lobby_document.registrant_ppb_address_country_id;
159
- this.convictions = federal_lobby_document.convictions;
160
- this.foreign_interests = federal_lobby_document.foreign_interests;
161
- this.affiliations = federal_lobby_document.affiliations;
157
+ this.registrant_address_country_name = federal_lobby_document.registrant_address_country_name;
158
+ this.registrant_ppb_address_country_name = federal_lobby_document.registrant_ppb_address_country_name;
159
+ this.convictions_json = federal_lobby_document.convictions_json;
160
+ this.foreign_interests_json = federal_lobby_document.foreign_interests_json;
161
+ this.affiliations_json = federal_lobby_document.affiliations_json;
162
162
  }
163
163
  static is(federal_lobby_document) {
164
164
  return (federal_lobby_document !== undefined &&
@@ -172,7 +172,7 @@ export class FederalLobbyDocument {
172
172
  (federal_lobby_document.income_text === undefined || typeof federal_lobby_document.income_text === "string") &&
173
173
  (federal_lobby_document.expense_text === undefined || typeof federal_lobby_document.expense_text === "string") &&
174
174
  (federal_lobby_document.expense_method === undefined || typeof federal_lobby_document.expense_method === "string") &&
175
- (federal_lobby_document.author === undefined || typeof federal_lobby_document.author === "string") &&
175
+ (federal_lobby_document.name_author === undefined || typeof federal_lobby_document.name_author === "string") &&
176
176
  (federal_lobby_document.content_type === undefined || typeof federal_lobby_document.content_type === "string") &&
177
177
  (federal_lobby_document.termination_date === undefined || typeof federal_lobby_document.termination_date === "string") &&
178
178
  (federal_lobby_document.registrant_address_1 === undefined || typeof federal_lobby_document.registrant_address_1 === "string") &&
@@ -181,10 +181,10 @@ export class FederalLobbyDocument {
181
181
  (federal_lobby_document.registrant_address_city === undefined || typeof federal_lobby_document.registrant_address_city === "string") &&
182
182
  (federal_lobby_document.registrant_address_state_id === undefined || typeof federal_lobby_document.registrant_address_state_id === "string") &&
183
183
  (federal_lobby_document.registrant_address_zip_id === undefined || typeof federal_lobby_document.registrant_address_zip_id === "string") &&
184
- (federal_lobby_document.registrant_address_country_id === undefined || typeof federal_lobby_document.registrant_address_country_id === "string") &&
185
- (federal_lobby_document.registrant_ppb_address_country_id === undefined || typeof federal_lobby_document.registrant_ppb_address_country_id === "string") &&
186
- Array.isArray(federal_lobby_document.convictions) && federal_lobby_document.convictions.every(FederalLobbyDocumentConviction.is) &&
187
- Array.isArray(federal_lobby_document.foreign_interests) && federal_lobby_document.foreign_interests.every(FederalLobbyDocumentForeignInterest.is) &&
188
- Array.isArray(federal_lobby_document.affiliations) && federal_lobby_document.affiliations.every(FederalLobbyDocumentAffiliation.is));
184
+ (federal_lobby_document.registrant_address_country_name === undefined || typeof federal_lobby_document.registrant_address_country_name === "string") &&
185
+ (federal_lobby_document.registrant_ppb_address_country_name === undefined || typeof federal_lobby_document.registrant_ppb_address_country_name === "string") &&
186
+ typeof federal_lobby_document.convictions_json === "string" &&
187
+ typeof federal_lobby_document.foreign_interests_json === "string" &&
188
+ typeof federal_lobby_document.affiliations_json === "string");
189
189
  }
190
190
  }
@@ -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.328",
3
+ "version": "1.0.330",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -132,8 +132,8 @@ export class FederalLobbyDocument {
132
132
  readonly income_text? : string
133
133
  readonly expense_text? : string
134
134
  readonly expense_method? : string
135
- readonly author? : string
136
- readonly content_type? : string
135
+ readonly name_author? : string
136
+ readonly content_type_id? : string
137
137
  readonly termination_date? : string
138
138
  readonly registrant_address_1? : string
139
139
  readonly registrant_address_2? : string
@@ -141,11 +141,11 @@ export class FederalLobbyDocument {
141
141
  readonly registrant_address_city? : string
142
142
  readonly registrant_address_state_id? : string
143
143
  readonly registrant_address_zip_id? : string
144
- readonly registrant_address_country_id? : string
145
- readonly registrant_ppb_address_country_id? : string
146
- readonly convictions : FederalLobbyDocumentConviction[]
147
- readonly foreign_interests : FederalLobbyDocumentForeignInterest[]
148
- readonly affiliations : FederalLobbyDocumentAffiliation[]
144
+ readonly registrant_address_country_name? : string
145
+ readonly registrant_ppb_address_country_name? : string
146
+ readonly convictions_json : string
147
+ readonly foreign_interests_json : string
148
+ readonly affiliations_json : string
149
149
 
150
150
  constructor(federal_lobby_document : any) {
151
151
  if (!FederalLobbyDocument.is(federal_lobby_document)) {
@@ -161,8 +161,8 @@ export class FederalLobbyDocument {
161
161
  this.income_text = federal_lobby_document.income_text
162
162
  this.expense_text = federal_lobby_document.expense_text
163
163
  this.expense_method = federal_lobby_document.expense_method
164
- this.author = federal_lobby_document.author
165
- this.content_type = federal_lobby_document.content_type
164
+ this.name_author = federal_lobby_document.name_author
165
+ this.content_type_id = federal_lobby_document.content_type_id
166
166
  this.termination_date = federal_lobby_document.termination_date
167
167
  this.registrant_address_1 = federal_lobby_document.registrant_address_1
168
168
  this.registrant_address_2 = federal_lobby_document.registrant_address_2
@@ -170,11 +170,11 @@ export class FederalLobbyDocument {
170
170
  this.registrant_address_city = federal_lobby_document.registrant_address_city
171
171
  this.registrant_address_state_id = federal_lobby_document.registrant_address_state_id
172
172
  this.registrant_address_zip_id = federal_lobby_document.registrant_address_zip_id
173
- this.registrant_address_country_id = federal_lobby_document.registrant_address_country_id
174
- this.registrant_ppb_address_country_id = federal_lobby_document.registrant_ppb_address_country_id
175
- this.convictions = federal_lobby_document.convictions
176
- this.foreign_interests = federal_lobby_document.foreign_interests
177
- this.affiliations = federal_lobby_document.affiliations
173
+ this.registrant_address_country_name = federal_lobby_document.registrant_address_country_name
174
+ this.registrant_ppb_address_country_name = federal_lobby_document.registrant_ppb_address_country_name
175
+ this.convictions_json = federal_lobby_document.convictions_json
176
+ this.foreign_interests_json = federal_lobby_document.foreign_interests_json
177
+ this.affiliations_json = federal_lobby_document.affiliations_json
178
178
  }
179
179
 
180
180
  static is(federal_lobby_document : any) : federal_lobby_document is FederalLobbyDocument {
@@ -190,7 +190,7 @@ export class FederalLobbyDocument {
190
190
  (federal_lobby_document.income_text === undefined || typeof federal_lobby_document.income_text === "string") &&
191
191
  (federal_lobby_document.expense_text === undefined || typeof federal_lobby_document.expense_text === "string") &&
192
192
  (federal_lobby_document.expense_method === undefined || typeof federal_lobby_document.expense_method === "string") &&
193
- (federal_lobby_document.author === undefined || typeof federal_lobby_document.author === "string") &&
193
+ (federal_lobby_document.name_author === undefined || typeof federal_lobby_document.name_author === "string") &&
194
194
  (federal_lobby_document.content_type === undefined || typeof federal_lobby_document.content_type === "string") &&
195
195
  (federal_lobby_document.termination_date === undefined || typeof federal_lobby_document.termination_date === "string") &&
196
196
  (federal_lobby_document.registrant_address_1 === undefined || typeof federal_lobby_document.registrant_address_1 === "string") &&
@@ -199,11 +199,11 @@ export class FederalLobbyDocument {
199
199
  (federal_lobby_document.registrant_address_city === undefined || typeof federal_lobby_document.registrant_address_city === "string") &&
200
200
  (federal_lobby_document.registrant_address_state_id === undefined || typeof federal_lobby_document.registrant_address_state_id === "string") &&
201
201
  (federal_lobby_document.registrant_address_zip_id === undefined || typeof federal_lobby_document.registrant_address_zip_id === "string") &&
202
- (federal_lobby_document.registrant_address_country_id === undefined || typeof federal_lobby_document.registrant_address_country_id === "string") &&
203
- (federal_lobby_document.registrant_ppb_address_country_id === undefined || typeof federal_lobby_document.registrant_ppb_address_country_id === "string") &&
204
- Array.isArray(federal_lobby_document.convictions) && federal_lobby_document.convictions.every(FederalLobbyDocumentConviction.is) &&
205
- Array.isArray(federal_lobby_document.foreign_interests) && federal_lobby_document.foreign_interests.every(FederalLobbyDocumentForeignInterest.is) &&
206
- Array.isArray(federal_lobby_document.affiliations) && federal_lobby_document.affiliations.every(FederalLobbyDocumentAffiliation.is)
202
+ (federal_lobby_document.registrant_address_country_name === undefined || typeof federal_lobby_document.registrant_address_country_name === "string") &&
203
+ (federal_lobby_document.registrant_ppb_address_country_name === undefined || typeof federal_lobby_document.registrant_ppb_address_country_name === "string") &&
204
+ typeof federal_lobby_document.convictions_json === "string" &&
205
+ typeof federal_lobby_document.foreign_interests_json === "string" &&
206
+ typeof federal_lobby_document.affiliations_json === "string"
207
207
  )
208
208
  }
209
209
  }
@@ -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
  }