triangle-types 1.0.326 → 1.0.327
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.
- package/dist/src/types/federal_lobby/FederalLobbyClient.d.ts +2 -2
- package/dist/src/types/federal_lobby/FederalLobbyClient.js +6 -6
- package/dist/src/types/federal_lobby/FederalLobbyDocument.d.ts +8 -8
- package/dist/src/types/federal_lobby/FederalLobbyDocument.js +24 -24
- package/dist/src/types/federal_lobby/FederalLobbyLobbyist.d.ts +6 -6
- package/dist/src/types/federal_lobby/FederalLobbyLobbyist.js +18 -18
- package/dist/src/types/federal_lobby/FederalLobbyRegistrant.d.ts +3 -3
- package/dist/src/types/federal_lobby/FederalLobbyRegistrant.js +9 -9
- package/package.json +1 -1
- package/src/types/federal_lobby/FederalLobbyClient.ts +6 -6
- package/src/types/federal_lobby/FederalLobbyDocument.ts +24 -24
- package/src/types/federal_lobby/FederalLobbyLobbyist.ts +18 -18
- package/src/types/federal_lobby/FederalLobbyRegistrant.ts +9 -9
|
@@ -7,9 +7,9 @@ export declare class FederalLobbyClient {
|
|
|
7
7
|
readonly description?: string;
|
|
8
8
|
readonly address_city?: string;
|
|
9
9
|
readonly address_state_id?: string;
|
|
10
|
-
readonly
|
|
10
|
+
readonly address_country_id: string;
|
|
11
11
|
readonly ppb_address_state_id?: string;
|
|
12
|
-
readonly
|
|
12
|
+
readonly ppb_address_country_id: string;
|
|
13
13
|
constructor(federal_lobby_client: any);
|
|
14
14
|
static is(federal_lobby_client: any): federal_lobby_client is FederalLobbyClient;
|
|
15
15
|
}
|
|
@@ -7,9 +7,9 @@ export class FederalLobbyClient {
|
|
|
7
7
|
description;
|
|
8
8
|
address_city;
|
|
9
9
|
address_state_id;
|
|
10
|
-
|
|
10
|
+
address_country_id;
|
|
11
11
|
ppb_address_state_id;
|
|
12
|
-
|
|
12
|
+
ppb_address_country_id;
|
|
13
13
|
constructor(federal_lobby_client) {
|
|
14
14
|
if (!FederalLobbyClient.is(federal_lobby_client)) {
|
|
15
15
|
throw Error("Invalid input.");
|
|
@@ -22,9 +22,9 @@ export class FederalLobbyClient {
|
|
|
22
22
|
this.effective_date = federal_lobby_client.effective_date;
|
|
23
23
|
this.address_city = federal_lobby_client.address_city;
|
|
24
24
|
this.address_state_id = federal_lobby_client.address_state_id;
|
|
25
|
-
this.
|
|
25
|
+
this.address_country_id = federal_lobby_client.address_country_id;
|
|
26
26
|
this.ppb_address_state_id = federal_lobby_client.ppb_address_state_id;
|
|
27
|
-
this.
|
|
27
|
+
this.ppb_address_country_id = federal_lobby_client.ppb_address_country_id;
|
|
28
28
|
}
|
|
29
29
|
static is(federal_lobby_client) {
|
|
30
30
|
return (federal_lobby_client !== undefined &&
|
|
@@ -36,8 +36,8 @@ export class FederalLobbyClient {
|
|
|
36
36
|
(federal_lobby_client.effective_date === undefined || typeof federal_lobby_client.effective_date === "string") &&
|
|
37
37
|
(federal_lobby_client.address_city === undefined || typeof federal_lobby_client.address_city === "string") &&
|
|
38
38
|
(federal_lobby_client.address_state_id === undefined || typeof federal_lobby_client.address_state_id === "string") &&
|
|
39
|
-
typeof federal_lobby_client.
|
|
39
|
+
typeof federal_lobby_client.address_country_id === "string" &&
|
|
40
40
|
(federal_lobby_client.ppb_address_state_id === undefined || typeof federal_lobby_client.ppb_address_state_id === "string") &&
|
|
41
|
-
typeof federal_lobby_client.
|
|
41
|
+
typeof federal_lobby_client.ppb_address_country_id === "string");
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -12,10 +12,10 @@ export declare class FederalLobbyDocumentForeignInterest {
|
|
|
12
12
|
readonly address_1?: string;
|
|
13
13
|
readonly address_city?: string;
|
|
14
14
|
readonly address_state_id?: string;
|
|
15
|
-
readonly
|
|
15
|
+
readonly address_country_id?: string;
|
|
16
16
|
readonly ppb_address_city?: string;
|
|
17
17
|
readonly ppb_address_state_id?: string;
|
|
18
|
-
readonly
|
|
18
|
+
readonly ppb_address_country_id?: string;
|
|
19
19
|
constructor(federal_lobby_document_foreign_interest: any);
|
|
20
20
|
static is(federal_lobby_document_foreign_interest: any): federal_lobby_document_foreign_interest is FederalLobbyDocumentForeignInterest;
|
|
21
21
|
}
|
|
@@ -28,11 +28,11 @@ export declare class FederalLobbyDocumentAffiliation {
|
|
|
28
28
|
readonly address_4?: string;
|
|
29
29
|
readonly address_city?: string;
|
|
30
30
|
readonly address_state_id?: string;
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
31
|
+
readonly address_zip_id?: string;
|
|
32
|
+
readonly address_country_id?: string;
|
|
33
33
|
readonly ppb_address_city?: string;
|
|
34
34
|
readonly ppb_address_state_id?: string;
|
|
35
|
-
readonly
|
|
35
|
+
readonly ppb_address_country_id?: string;
|
|
36
36
|
constructor(federal_lobby_document_affiliation: any);
|
|
37
37
|
static is(federal_lobby_document_affiliation: any): federal_lobby_document_affiliation is FederalLobbyDocumentAffiliation;
|
|
38
38
|
}
|
|
@@ -55,9 +55,9 @@ export declare class FederalLobbyDocument {
|
|
|
55
55
|
readonly registrant_address_different?: boolean;
|
|
56
56
|
readonly registrant_address_city?: string;
|
|
57
57
|
readonly registrant_address_state_id?: string;
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly
|
|
58
|
+
readonly registrant_address_zip_id?: string;
|
|
59
|
+
readonly registrant_address_country_id?: string;
|
|
60
|
+
readonly registrant_ppb_address_country_id?: string;
|
|
61
61
|
readonly convictions: FederalLobbyDocumentConviction[];
|
|
62
62
|
readonly foreign_interests: FederalLobbyDocumentForeignInterest[];
|
|
63
63
|
readonly affiliations: FederalLobbyDocumentAffiliation[];
|
|
@@ -24,10 +24,10 @@ export class FederalLobbyDocumentForeignInterest {
|
|
|
24
24
|
address_1;
|
|
25
25
|
address_city;
|
|
26
26
|
address_state_id;
|
|
27
|
-
|
|
27
|
+
address_country_id;
|
|
28
28
|
ppb_address_city;
|
|
29
29
|
ppb_address_state_id;
|
|
30
|
-
|
|
30
|
+
ppb_address_country_id;
|
|
31
31
|
constructor(federal_lobby_document_foreign_interest) {
|
|
32
32
|
if (!FederalLobbyDocumentForeignInterest.is(federal_lobby_document_foreign_interest)) {
|
|
33
33
|
throw Error("Invalid input.");
|
|
@@ -38,10 +38,10 @@ export class FederalLobbyDocumentForeignInterest {
|
|
|
38
38
|
this.address_1 = federal_lobby_document_foreign_interest.address_1;
|
|
39
39
|
this.address_city = federal_lobby_document_foreign_interest.address_city;
|
|
40
40
|
this.address_state_id = federal_lobby_document_foreign_interest.address_state_id;
|
|
41
|
-
this.
|
|
41
|
+
this.address_country_id = federal_lobby_document_foreign_interest.address_country_id;
|
|
42
42
|
this.ppb_address_city = federal_lobby_document_foreign_interest.ppb_address_city;
|
|
43
43
|
this.ppb_address_state_id = federal_lobby_document_foreign_interest.ppb_address_state_id;
|
|
44
|
-
this.
|
|
44
|
+
this.ppb_address_country_id = federal_lobby_document_foreign_interest.ppb_address_country_id;
|
|
45
45
|
}
|
|
46
46
|
static is(federal_lobby_document_foreign_interest) {
|
|
47
47
|
return (federal_lobby_document_foreign_interest !== undefined &&
|
|
@@ -51,10 +51,10 @@ export class FederalLobbyDocumentForeignInterest {
|
|
|
51
51
|
(federal_lobby_document_foreign_interest.address_1 === undefined || typeof federal_lobby_document_foreign_interest.address_1 === "string") &&
|
|
52
52
|
(federal_lobby_document_foreign_interest.address_city === undefined || typeof federal_lobby_document_foreign_interest.address_city === "string") &&
|
|
53
53
|
(federal_lobby_document_foreign_interest.address_state_id === undefined || typeof federal_lobby_document_foreign_interest.address_state_id === "string") &&
|
|
54
|
-
(federal_lobby_document_foreign_interest.
|
|
54
|
+
(federal_lobby_document_foreign_interest.address_country_id === undefined || typeof federal_lobby_document_foreign_interest.address_country_id === "string") &&
|
|
55
55
|
(federal_lobby_document_foreign_interest.ppb_address_city === undefined || typeof federal_lobby_document_foreign_interest.ppb_address_city === "string") &&
|
|
56
56
|
(federal_lobby_document_foreign_interest.ppb_address_state_id === undefined || typeof federal_lobby_document_foreign_interest.ppb_address_state_id === "string") &&
|
|
57
|
-
(federal_lobby_document_foreign_interest.
|
|
57
|
+
(federal_lobby_document_foreign_interest.ppb_address_country_id === undefined || typeof federal_lobby_document_foreign_interest.ppb_address_country_id === "string"));
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
export class FederalLobbyDocumentAffiliation {
|
|
@@ -66,11 +66,11 @@ export class FederalLobbyDocumentAffiliation {
|
|
|
66
66
|
address_4;
|
|
67
67
|
address_city;
|
|
68
68
|
address_state_id;
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
address_zip_id;
|
|
70
|
+
address_country_id;
|
|
71
71
|
ppb_address_city;
|
|
72
72
|
ppb_address_state_id;
|
|
73
|
-
|
|
73
|
+
ppb_address_country_id;
|
|
74
74
|
constructor(federal_lobby_document_affiliation) {
|
|
75
75
|
if (!FederalLobbyDocumentAffiliation.is(federal_lobby_document_affiliation)) {
|
|
76
76
|
throw Error("Invalid input.");
|
|
@@ -83,11 +83,11 @@ export class FederalLobbyDocumentAffiliation {
|
|
|
83
83
|
this.address_4 = federal_lobby_document_affiliation.address_4;
|
|
84
84
|
this.address_city = federal_lobby_document_affiliation.address_city;
|
|
85
85
|
this.address_state_id = federal_lobby_document_affiliation.address_state_id;
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
86
|
+
this.address_zip_id = federal_lobby_document_affiliation.address_zip_id;
|
|
87
|
+
this.address_country_id = federal_lobby_document_affiliation.address_country_id;
|
|
88
88
|
this.ppb_address_city = federal_lobby_document_affiliation.ppb_address_city;
|
|
89
89
|
this.ppb_address_state_id = federal_lobby_document_affiliation.ppb_address_state_id;
|
|
90
|
-
this.
|
|
90
|
+
this.ppb_address_country_id = federal_lobby_document_affiliation.ppb_address_country_id;
|
|
91
91
|
}
|
|
92
92
|
static is(federal_lobby_document_affiliation) {
|
|
93
93
|
return (federal_lobby_document_affiliation !== undefined &&
|
|
@@ -99,11 +99,11 @@ export class FederalLobbyDocumentAffiliation {
|
|
|
99
99
|
(federal_lobby_document_affiliation.address_4 === undefined || typeof federal_lobby_document_affiliation.address_4 === "string") &&
|
|
100
100
|
(federal_lobby_document_affiliation.address_city === undefined || typeof federal_lobby_document_affiliation.address_city === "string") &&
|
|
101
101
|
(federal_lobby_document_affiliation.address_state_id === undefined || typeof federal_lobby_document_affiliation.address_state_id === "string") &&
|
|
102
|
-
(federal_lobby_document_affiliation.
|
|
103
|
-
(federal_lobby_document_affiliation.
|
|
102
|
+
(federal_lobby_document_affiliation.address_zip_id === undefined || typeof federal_lobby_document_affiliation.address_zip_id === "string") &&
|
|
103
|
+
(federal_lobby_document_affiliation.address_country_id === undefined || typeof federal_lobby_document_affiliation.address_country_id === "string") &&
|
|
104
104
|
(federal_lobby_document_affiliation.ppb_address_city === undefined || typeof federal_lobby_document_affiliation.ppb_address_city === "string") &&
|
|
105
105
|
(federal_lobby_document_affiliation.ppb_address_state_id === undefined || typeof federal_lobby_document_affiliation.ppb_address_state_id === "string") &&
|
|
106
|
-
(federal_lobby_document_affiliation.
|
|
106
|
+
(federal_lobby_document_affiliation.ppb_address_country_id === undefined || typeof federal_lobby_document_affiliation.ppb_address_country_id === "string"));
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
export class FederalLobbyDocument {
|
|
@@ -125,9 +125,9 @@ export class FederalLobbyDocument {
|
|
|
125
125
|
registrant_address_different;
|
|
126
126
|
registrant_address_city;
|
|
127
127
|
registrant_address_state_id;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
registrant_address_zip_id;
|
|
129
|
+
registrant_address_country_id;
|
|
130
|
+
registrant_ppb_address_country_id;
|
|
131
131
|
convictions;
|
|
132
132
|
foreign_interests;
|
|
133
133
|
affiliations;
|
|
@@ -153,9 +153,9 @@ export class FederalLobbyDocument {
|
|
|
153
153
|
this.registrant_address_different = federal_lobby_document.registrant_address_different;
|
|
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
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
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
159
|
this.convictions = federal_lobby_document.convictions;
|
|
160
160
|
this.foreign_interests = federal_lobby_document.foreign_interests;
|
|
161
161
|
this.affiliations = federal_lobby_document.affiliations;
|
|
@@ -180,9 +180,9 @@ export class FederalLobbyDocument {
|
|
|
180
180
|
(federal_lobby_document.registrant_address_different === undefined || typeof federal_lobby_document.registrant_address_different === "boolean") &&
|
|
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
|
-
(federal_lobby_document.
|
|
184
|
-
(federal_lobby_document.
|
|
185
|
-
(federal_lobby_document.
|
|
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
186
|
Array.isArray(federal_lobby_document.convictions) && federal_lobby_document.convictions.every(FederalLobbyDocumentConviction.is) &&
|
|
187
187
|
Array.isArray(federal_lobby_document.foreign_interests) && federal_lobby_document.foreign_interests.every(FederalLobbyDocumentForeignInterest.is) &&
|
|
188
188
|
Array.isArray(federal_lobby_document.affiliations) && federal_lobby_document.affiliations.every(FederalLobbyDocumentAffiliation.is));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare class FederalLobbyLobbyist {
|
|
2
2
|
readonly federal_lobby_lobbyist_id: number;
|
|
3
3
|
readonly federal_lobby_registrant_id: number;
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
4
|
+
readonly name_prefix?: string;
|
|
5
|
+
readonly name_first?: string;
|
|
6
|
+
readonly name_middle?: string;
|
|
7
|
+
readonly name_last?: string;
|
|
8
|
+
readonly name_suffix?: string;
|
|
9
|
+
readonly name_nick?: string;
|
|
10
10
|
constructor(federal_lobby_lobbyist: any);
|
|
11
11
|
static is(federal_lobby_lobbyist: any): federal_lobby_lobbyist is FederalLobbyLobbyist;
|
|
12
12
|
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
export class FederalLobbyLobbyist {
|
|
2
2
|
federal_lobby_lobbyist_id;
|
|
3
3
|
federal_lobby_registrant_id;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
name_prefix;
|
|
5
|
+
name_first;
|
|
6
|
+
name_middle;
|
|
7
|
+
name_last;
|
|
8
|
+
name_suffix;
|
|
9
|
+
name_nick;
|
|
10
10
|
constructor(federal_lobby_lobbyist) {
|
|
11
11
|
if (!FederalLobbyLobbyist.is(federal_lobby_lobbyist)) {
|
|
12
12
|
throw Error("Invalid input.");
|
|
13
13
|
}
|
|
14
14
|
this.federal_lobby_lobbyist_id = federal_lobby_lobbyist.federal_lobby_lobbyist_id;
|
|
15
15
|
this.federal_lobby_registrant_id = federal_lobby_lobbyist.federal_lobby_registrant_id;
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
16
|
+
this.name_prefix = federal_lobby_lobbyist.name_prefix;
|
|
17
|
+
this.name_first = federal_lobby_lobbyist.name_first;
|
|
18
|
+
this.name_middle = federal_lobby_lobbyist.name_middle;
|
|
19
|
+
this.name_last = federal_lobby_lobbyist.name_last;
|
|
20
|
+
this.name_suffix = federal_lobby_lobbyist.name_suffix;
|
|
21
|
+
this.name_nick = federal_lobby_lobbyist.name_nick;
|
|
22
22
|
}
|
|
23
23
|
static is(federal_lobby_lobbyist) {
|
|
24
24
|
return (federal_lobby_lobbyist !== undefined &&
|
|
25
25
|
typeof federal_lobby_lobbyist.federal_lobby_lobbyist_id === "number" &&
|
|
26
26
|
typeof federal_lobby_lobbyist.federal_lobby_registrant_id === "number" &&
|
|
27
|
-
(federal_lobby_lobbyist.
|
|
28
|
-
(federal_lobby_lobbyist.
|
|
29
|
-
(federal_lobby_lobbyist.
|
|
30
|
-
(federal_lobby_lobbyist.
|
|
31
|
-
(federal_lobby_lobbyist.
|
|
32
|
-
(federal_lobby_lobbyist.
|
|
27
|
+
(federal_lobby_lobbyist.name_prefix === undefined || typeof federal_lobby_lobbyist.name_prefix === "string") &&
|
|
28
|
+
(federal_lobby_lobbyist.name_first === undefined || typeof federal_lobby_lobbyist.name_first === "string") &&
|
|
29
|
+
(federal_lobby_lobbyist.name_middle === undefined || typeof federal_lobby_lobbyist.name_middle === "string") &&
|
|
30
|
+
(federal_lobby_lobbyist.name_last === undefined || typeof federal_lobby_lobbyist.name_last === "string") &&
|
|
31
|
+
(federal_lobby_lobbyist.name_suffix === undefined || typeof federal_lobby_lobbyist.name_suffix === "string") &&
|
|
32
|
+
(federal_lobby_lobbyist.name_nick === undefined || typeof federal_lobby_lobbyist.name_nick === "string"));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -9,9 +9,9 @@ export declare class FederalLobbyRegistrant {
|
|
|
9
9
|
readonly address_4?: string;
|
|
10
10
|
readonly address_city?: string;
|
|
11
11
|
readonly address_state_id?: string;
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
12
|
+
readonly address_zip_id?: string;
|
|
13
|
+
readonly address_country_id: string;
|
|
14
|
+
readonly ppb_address_country_id: string;
|
|
15
15
|
readonly contact_name?: string;
|
|
16
16
|
readonly contact_phone?: string;
|
|
17
17
|
readonly modify_time: string;
|
|
@@ -9,9 +9,9 @@ export class FederalLobbyRegistrant {
|
|
|
9
9
|
address_4;
|
|
10
10
|
address_city;
|
|
11
11
|
address_state_id;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
address_zip_id;
|
|
13
|
+
address_country_id;
|
|
14
|
+
ppb_address_country_id;
|
|
15
15
|
contact_name;
|
|
16
16
|
contact_phone;
|
|
17
17
|
modify_time;
|
|
@@ -29,9 +29,9 @@ export class FederalLobbyRegistrant {
|
|
|
29
29
|
this.address_4 = federal_lobby_registrant.address_4;
|
|
30
30
|
this.address_city = federal_lobby_registrant.address_city;
|
|
31
31
|
this.address_state_id = federal_lobby_registrant.address_state_id;
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
32
|
+
this.address_zip_id = federal_lobby_registrant.address_zip_id;
|
|
33
|
+
this.address_country_id = federal_lobby_registrant.address_country_id;
|
|
34
|
+
this.ppb_address_country_id = federal_lobby_registrant.ppb_address_country_id;
|
|
35
35
|
this.contact_name = federal_lobby_registrant.contact_name;
|
|
36
36
|
this.contact_phone = federal_lobby_registrant.contact_phone;
|
|
37
37
|
this.modify_time = federal_lobby_registrant.modify_time;
|
|
@@ -48,9 +48,9 @@ export class FederalLobbyRegistrant {
|
|
|
48
48
|
(federal_lobby_registrant.address_4 === undefined || typeof federal_lobby_registrant.address_4 === "string") &&
|
|
49
49
|
(federal_lobby_registrant.address_city === undefined || typeof federal_lobby_registrant.address_city === "string") &&
|
|
50
50
|
(federal_lobby_registrant.address_state_id === undefined || typeof federal_lobby_registrant.address_state_id === "string") &&
|
|
51
|
-
(federal_lobby_registrant.
|
|
52
|
-
typeof federal_lobby_registrant.
|
|
53
|
-
typeof federal_lobby_registrant.
|
|
51
|
+
(federal_lobby_registrant.address_zip_id === undefined || typeof federal_lobby_registrant.address_zip_id === "string") &&
|
|
52
|
+
typeof federal_lobby_registrant.address_country_id === "string" &&
|
|
53
|
+
typeof federal_lobby_registrant.ppb_address_country_id === "string" &&
|
|
54
54
|
(federal_lobby_registrant.contact_name === undefined || typeof federal_lobby_registrant.contact_name === "string") &&
|
|
55
55
|
(federal_lobby_registrant.contact_phone === undefined || typeof federal_lobby_registrant.contact_phone === "string") &&
|
|
56
56
|
typeof federal_lobby_registrant.modify_time === "string");
|
package/package.json
CHANGED
|
@@ -7,9 +7,9 @@ export class FederalLobbyClient {
|
|
|
7
7
|
readonly description? : string
|
|
8
8
|
readonly address_city? : string
|
|
9
9
|
readonly address_state_id? : string
|
|
10
|
-
readonly
|
|
10
|
+
readonly address_country_id : string
|
|
11
11
|
readonly ppb_address_state_id? : string
|
|
12
|
-
readonly
|
|
12
|
+
readonly ppb_address_country_id : string
|
|
13
13
|
|
|
14
14
|
constructor(federal_lobby_client : any) {
|
|
15
15
|
if (!FederalLobbyClient.is(federal_lobby_client)) {
|
|
@@ -23,9 +23,9 @@ export class FederalLobbyClient {
|
|
|
23
23
|
this.effective_date = federal_lobby_client.effective_date
|
|
24
24
|
this.address_city = federal_lobby_client.address_city
|
|
25
25
|
this.address_state_id = federal_lobby_client.address_state_id
|
|
26
|
-
this.
|
|
26
|
+
this.address_country_id = federal_lobby_client.address_country_id
|
|
27
27
|
this.ppb_address_state_id = federal_lobby_client.ppb_address_state_id
|
|
28
|
-
this.
|
|
28
|
+
this.ppb_address_country_id = federal_lobby_client.ppb_address_country_id
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
static is(federal_lobby_client : any) : federal_lobby_client is FederalLobbyClient {
|
|
@@ -39,9 +39,9 @@ export class FederalLobbyClient {
|
|
|
39
39
|
(federal_lobby_client.effective_date === undefined || typeof federal_lobby_client.effective_date === "string") &&
|
|
40
40
|
(federal_lobby_client.address_city === undefined || typeof federal_lobby_client.address_city === "string") &&
|
|
41
41
|
(federal_lobby_client.address_state_id === undefined || typeof federal_lobby_client.address_state_id === "string") &&
|
|
42
|
-
typeof federal_lobby_client.
|
|
42
|
+
typeof federal_lobby_client.address_country_id === "string" &&
|
|
43
43
|
(federal_lobby_client.ppb_address_state_id === undefined || typeof federal_lobby_client.ppb_address_state_id === "string") &&
|
|
44
|
-
typeof federal_lobby_client.
|
|
44
|
+
typeof federal_lobby_client.ppb_address_country_id === "string"
|
|
45
45
|
)
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -29,10 +29,10 @@ export class FederalLobbyDocumentForeignInterest {
|
|
|
29
29
|
readonly address_1? : string
|
|
30
30
|
readonly address_city? : string
|
|
31
31
|
readonly address_state_id? : string
|
|
32
|
-
readonly
|
|
32
|
+
readonly address_country_id? : string
|
|
33
33
|
readonly ppb_address_city? : string
|
|
34
34
|
readonly ppb_address_state_id? : string
|
|
35
|
-
readonly
|
|
35
|
+
readonly ppb_address_country_id? : string
|
|
36
36
|
|
|
37
37
|
constructor(federal_lobby_document_foreign_interest : any) {
|
|
38
38
|
if (!FederalLobbyDocumentForeignInterest.is(federal_lobby_document_foreign_interest)) {
|
|
@@ -44,10 +44,10 @@ export class FederalLobbyDocumentForeignInterest {
|
|
|
44
44
|
this.address_1 = federal_lobby_document_foreign_interest.address_1
|
|
45
45
|
this.address_city = federal_lobby_document_foreign_interest.address_city
|
|
46
46
|
this.address_state_id = federal_lobby_document_foreign_interest.address_state_id
|
|
47
|
-
this.
|
|
47
|
+
this.address_country_id = federal_lobby_document_foreign_interest.address_country_id
|
|
48
48
|
this.ppb_address_city = federal_lobby_document_foreign_interest.ppb_address_city
|
|
49
49
|
this.ppb_address_state_id = federal_lobby_document_foreign_interest.ppb_address_state_id
|
|
50
|
-
this.
|
|
50
|
+
this.ppb_address_country_id = federal_lobby_document_foreign_interest.ppb_address_country_id
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
static is(federal_lobby_document_foreign_interest : any) : federal_lobby_document_foreign_interest is FederalLobbyDocumentForeignInterest {
|
|
@@ -59,10 +59,10 @@ export class FederalLobbyDocumentForeignInterest {
|
|
|
59
59
|
(federal_lobby_document_foreign_interest.address_1 === undefined || typeof federal_lobby_document_foreign_interest.address_1 === "string") &&
|
|
60
60
|
(federal_lobby_document_foreign_interest.address_city === undefined || typeof federal_lobby_document_foreign_interest.address_city === "string") &&
|
|
61
61
|
(federal_lobby_document_foreign_interest.address_state_id === undefined || typeof federal_lobby_document_foreign_interest.address_state_id === "string") &&
|
|
62
|
-
(federal_lobby_document_foreign_interest.
|
|
62
|
+
(federal_lobby_document_foreign_interest.address_country_id === undefined || typeof federal_lobby_document_foreign_interest.address_country_id === "string") &&
|
|
63
63
|
(federal_lobby_document_foreign_interest.ppb_address_city === undefined || typeof federal_lobby_document_foreign_interest.ppb_address_city === "string") &&
|
|
64
64
|
(federal_lobby_document_foreign_interest.ppb_address_state_id === undefined || typeof federal_lobby_document_foreign_interest.ppb_address_state_id === "string") &&
|
|
65
|
-
(federal_lobby_document_foreign_interest.
|
|
65
|
+
(federal_lobby_document_foreign_interest.ppb_address_country_id === undefined || typeof federal_lobby_document_foreign_interest.ppb_address_country_id === "string")
|
|
66
66
|
)
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -76,11 +76,11 @@ export class FederalLobbyDocumentAffiliation {
|
|
|
76
76
|
readonly address_4? : string
|
|
77
77
|
readonly address_city? : string
|
|
78
78
|
readonly address_state_id? : string
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
79
|
+
readonly address_zip_id? : string
|
|
80
|
+
readonly address_country_id? : string
|
|
81
81
|
readonly ppb_address_city? : string
|
|
82
82
|
readonly ppb_address_state_id? : string
|
|
83
|
-
readonly
|
|
83
|
+
readonly ppb_address_country_id? : string
|
|
84
84
|
|
|
85
85
|
constructor(federal_lobby_document_affiliation : any) {
|
|
86
86
|
if (!FederalLobbyDocumentAffiliation.is(federal_lobby_document_affiliation)) {
|
|
@@ -94,11 +94,11 @@ export class FederalLobbyDocumentAffiliation {
|
|
|
94
94
|
this.address_4 = federal_lobby_document_affiliation.address_4
|
|
95
95
|
this.address_city = federal_lobby_document_affiliation.address_city
|
|
96
96
|
this.address_state_id = federal_lobby_document_affiliation.address_state_id
|
|
97
|
-
this.
|
|
98
|
-
this.
|
|
97
|
+
this.address_zip_id = federal_lobby_document_affiliation.address_zip_id
|
|
98
|
+
this.address_country_id = federal_lobby_document_affiliation.address_country_id
|
|
99
99
|
this.ppb_address_city = federal_lobby_document_affiliation.ppb_address_city
|
|
100
100
|
this.ppb_address_state_id = federal_lobby_document_affiliation.ppb_address_state_id
|
|
101
|
-
this.
|
|
101
|
+
this.ppb_address_country_id = federal_lobby_document_affiliation.ppb_address_country_id
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
static is(federal_lobby_document_affiliation : any) : federal_lobby_document_affiliation is FederalLobbyDocumentAffiliation {
|
|
@@ -112,11 +112,11 @@ export class FederalLobbyDocumentAffiliation {
|
|
|
112
112
|
(federal_lobby_document_affiliation.address_4 === undefined || typeof federal_lobby_document_affiliation.address_4 === "string") &&
|
|
113
113
|
(federal_lobby_document_affiliation.address_city === undefined || typeof federal_lobby_document_affiliation.address_city === "string") &&
|
|
114
114
|
(federal_lobby_document_affiliation.address_state_id === undefined || typeof federal_lobby_document_affiliation.address_state_id === "string") &&
|
|
115
|
-
(federal_lobby_document_affiliation.
|
|
116
|
-
(federal_lobby_document_affiliation.
|
|
115
|
+
(federal_lobby_document_affiliation.address_zip_id === undefined || typeof federal_lobby_document_affiliation.address_zip_id === "string") &&
|
|
116
|
+
(federal_lobby_document_affiliation.address_country_id === undefined || typeof federal_lobby_document_affiliation.address_country_id === "string") &&
|
|
117
117
|
(federal_lobby_document_affiliation.ppb_address_city === undefined || typeof federal_lobby_document_affiliation.ppb_address_city === "string") &&
|
|
118
118
|
(federal_lobby_document_affiliation.ppb_address_state_id === undefined || typeof federal_lobby_document_affiliation.ppb_address_state_id === "string") &&
|
|
119
|
-
(federal_lobby_document_affiliation.
|
|
119
|
+
(federal_lobby_document_affiliation.ppb_address_country_id === undefined || typeof federal_lobby_document_affiliation.ppb_address_country_id === "string")
|
|
120
120
|
)
|
|
121
121
|
}
|
|
122
122
|
}
|
|
@@ -140,9 +140,9 @@ export class FederalLobbyDocument {
|
|
|
140
140
|
readonly registrant_address_different? : boolean
|
|
141
141
|
readonly registrant_address_city? : string
|
|
142
142
|
readonly registrant_address_state_id? : string
|
|
143
|
-
readonly
|
|
144
|
-
readonly
|
|
145
|
-
readonly
|
|
143
|
+
readonly registrant_address_zip_id? : string
|
|
144
|
+
readonly registrant_address_country_id? : string
|
|
145
|
+
readonly registrant_ppb_address_country_id? : string
|
|
146
146
|
readonly convictions : FederalLobbyDocumentConviction[]
|
|
147
147
|
readonly foreign_interests : FederalLobbyDocumentForeignInterest[]
|
|
148
148
|
readonly affiliations : FederalLobbyDocumentAffiliation[]
|
|
@@ -169,9 +169,9 @@ export class FederalLobbyDocument {
|
|
|
169
169
|
this.registrant_address_different = federal_lobby_document.registrant_address_different
|
|
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
|
-
this.
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
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
175
|
this.convictions = federal_lobby_document.convictions
|
|
176
176
|
this.foreign_interests = federal_lobby_document.foreign_interests
|
|
177
177
|
this.affiliations = federal_lobby_document.affiliations
|
|
@@ -198,9 +198,9 @@ export class FederalLobbyDocument {
|
|
|
198
198
|
(federal_lobby_document.registrant_address_different === undefined || typeof federal_lobby_document.registrant_address_different === "boolean") &&
|
|
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
|
-
(federal_lobby_document.
|
|
202
|
-
(federal_lobby_document.
|
|
203
|
-
(federal_lobby_document.
|
|
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
204
|
Array.isArray(federal_lobby_document.convictions) && federal_lobby_document.convictions.every(FederalLobbyDocumentConviction.is) &&
|
|
205
205
|
Array.isArray(federal_lobby_document.foreign_interests) && federal_lobby_document.foreign_interests.every(FederalLobbyDocumentForeignInterest.is) &&
|
|
206
206
|
Array.isArray(federal_lobby_document.affiliations) && federal_lobby_document.affiliations.every(FederalLobbyDocumentAffiliation.is)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export class FederalLobbyLobbyist {
|
|
2
2
|
readonly federal_lobby_lobbyist_id : number
|
|
3
3
|
readonly federal_lobby_registrant_id : number
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
4
|
+
readonly name_prefix? : string
|
|
5
|
+
readonly name_first? : string
|
|
6
|
+
readonly name_middle? : string
|
|
7
|
+
readonly name_last? : string
|
|
8
|
+
readonly name_suffix? : string
|
|
9
|
+
readonly name_nick? : string
|
|
10
10
|
|
|
11
11
|
constructor(federal_lobby_lobbyist : any) {
|
|
12
12
|
if (!FederalLobbyLobbyist.is(federal_lobby_lobbyist)) {
|
|
@@ -14,12 +14,12 @@ export class FederalLobbyLobbyist {
|
|
|
14
14
|
}
|
|
15
15
|
this.federal_lobby_lobbyist_id = federal_lobby_lobbyist.federal_lobby_lobbyist_id
|
|
16
16
|
this.federal_lobby_registrant_id = federal_lobby_lobbyist.federal_lobby_registrant_id
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
17
|
+
this.name_prefix = federal_lobby_lobbyist.name_prefix
|
|
18
|
+
this.name_first = federal_lobby_lobbyist.name_first
|
|
19
|
+
this.name_middle = federal_lobby_lobbyist.name_middle
|
|
20
|
+
this.name_last = federal_lobby_lobbyist.name_last
|
|
21
|
+
this.name_suffix = federal_lobby_lobbyist.name_suffix
|
|
22
|
+
this.name_nick = federal_lobby_lobbyist.name_nick
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
static is(federal_lobby_lobbyist : any) : federal_lobby_lobbyist is FederalLobbyLobbyist {
|
|
@@ -27,12 +27,12 @@ export class FederalLobbyLobbyist {
|
|
|
27
27
|
federal_lobby_lobbyist !== undefined &&
|
|
28
28
|
typeof federal_lobby_lobbyist.federal_lobby_lobbyist_id === "number" &&
|
|
29
29
|
typeof federal_lobby_lobbyist.federal_lobby_registrant_id === "number" &&
|
|
30
|
-
(federal_lobby_lobbyist.
|
|
31
|
-
(federal_lobby_lobbyist.
|
|
32
|
-
(federal_lobby_lobbyist.
|
|
33
|
-
(federal_lobby_lobbyist.
|
|
34
|
-
(federal_lobby_lobbyist.
|
|
35
|
-
(federal_lobby_lobbyist.
|
|
30
|
+
(federal_lobby_lobbyist.name_prefix === undefined || typeof federal_lobby_lobbyist.name_prefix === "string") &&
|
|
31
|
+
(federal_lobby_lobbyist.name_first === undefined || typeof federal_lobby_lobbyist.name_first === "string") &&
|
|
32
|
+
(federal_lobby_lobbyist.name_middle === undefined || typeof federal_lobby_lobbyist.name_middle === "string") &&
|
|
33
|
+
(federal_lobby_lobbyist.name_last === undefined || typeof federal_lobby_lobbyist.name_last === "string") &&
|
|
34
|
+
(federal_lobby_lobbyist.name_suffix === undefined || typeof federal_lobby_lobbyist.name_suffix === "string") &&
|
|
35
|
+
(federal_lobby_lobbyist.name_nick === undefined || typeof federal_lobby_lobbyist.name_nick === "string")
|
|
36
36
|
)
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -9,9 +9,9 @@ export class FederalLobbyRegistrant {
|
|
|
9
9
|
readonly address_4? : string
|
|
10
10
|
readonly address_city? : string
|
|
11
11
|
readonly address_state_id? : string
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
12
|
+
readonly address_zip_id? : string
|
|
13
|
+
readonly address_country_id : string
|
|
14
|
+
readonly ppb_address_country_id : string
|
|
15
15
|
readonly contact_name? : string
|
|
16
16
|
readonly contact_phone? : string
|
|
17
17
|
readonly modify_time : string
|
|
@@ -30,9 +30,9 @@ export class FederalLobbyRegistrant {
|
|
|
30
30
|
this.address_4 = federal_lobby_registrant.address_4
|
|
31
31
|
this.address_city = federal_lobby_registrant.address_city
|
|
32
32
|
this.address_state_id = federal_lobby_registrant.address_state_id
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
33
|
+
this.address_zip_id = federal_lobby_registrant.address_zip_id
|
|
34
|
+
this.address_country_id = federal_lobby_registrant.address_country_id
|
|
35
|
+
this.ppb_address_country_id = federal_lobby_registrant.ppb_address_country_id
|
|
36
36
|
this.contact_name = federal_lobby_registrant.contact_name
|
|
37
37
|
this.contact_phone = federal_lobby_registrant.contact_phone
|
|
38
38
|
this.modify_time = federal_lobby_registrant.modify_time
|
|
@@ -51,9 +51,9 @@ export class FederalLobbyRegistrant {
|
|
|
51
51
|
(federal_lobby_registrant.address_4 === undefined || typeof federal_lobby_registrant.address_4 === "string") &&
|
|
52
52
|
(federal_lobby_registrant.address_city === undefined || typeof federal_lobby_registrant.address_city === "string") &&
|
|
53
53
|
(federal_lobby_registrant.address_state_id === undefined || typeof federal_lobby_registrant.address_state_id === "string") &&
|
|
54
|
-
(federal_lobby_registrant.
|
|
55
|
-
typeof federal_lobby_registrant.
|
|
56
|
-
typeof federal_lobby_registrant.
|
|
54
|
+
(federal_lobby_registrant.address_zip_id === undefined || typeof federal_lobby_registrant.address_zip_id === "string") &&
|
|
55
|
+
typeof federal_lobby_registrant.address_country_id === "string" &&
|
|
56
|
+
typeof federal_lobby_registrant.ppb_address_country_id === "string" &&
|
|
57
57
|
(federal_lobby_registrant.contact_name === undefined || typeof federal_lobby_registrant.contact_name === "string") &&
|
|
58
58
|
(federal_lobby_registrant.contact_phone === undefined || typeof federal_lobby_registrant.contact_phone === "string") &&
|
|
59
59
|
typeof federal_lobby_registrant.modify_time === "string"
|