triangle-types 1.0.330 → 1.0.331

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.
@@ -37,6 +37,8 @@ export * from "./types/federal_lobby/FederalLobbyClient.js";
37
37
  export * from "./types/federal_lobby/FederalLobbyLobbyist.js";
38
38
  export * from "./types/federal_lobby/FederalLobbyDocument.js";
39
39
  export * from "./types/federal_lobby/FederalLobbyDocumentInterest.js";
40
+ export * from "./types/federal_lobby/FederalLobbyDocumentInterestAgency.js";
41
+ export * from "./types/federal_lobby/FederalLobbyDocumentInterestLobbyist.js";
40
42
  export * from "./types/federal_congress/FederalCongress.js";
41
43
  export * from "./types/federal_congress/FederalCongressBill.js";
42
44
  export * from "./types/federal_congress/FederalCongressBillAction.js";
package/dist/src/index.js CHANGED
@@ -37,6 +37,8 @@ export * from "./types/federal_lobby/FederalLobbyClient.js";
37
37
  export * from "./types/federal_lobby/FederalLobbyLobbyist.js";
38
38
  export * from "./types/federal_lobby/FederalLobbyDocument.js";
39
39
  export * from "./types/federal_lobby/FederalLobbyDocumentInterest.js";
40
+ export * from "./types/federal_lobby/FederalLobbyDocumentInterestAgency.js";
41
+ export * from "./types/federal_lobby/FederalLobbyDocumentInterestLobbyist.js";
40
42
  export * from "./types/federal_congress/FederalCongress.js";
41
43
  export * from "./types/federal_congress/FederalCongressBill.js";
42
44
  export * from "./types/federal_congress/FederalCongressBillAction.js";
@@ -1,19 +1,3 @@
1
- export declare class FederalLobbyDocumentInterestLobbyist {
2
- readonly federal_lobby_document_id: string;
3
- readonly interest_id: string;
4
- readonly federal_lobby_lobbyist_id: number;
5
- readonly is_new?: boolean;
6
- readonly history_text?: string;
7
- constructor(federal_lobby_document_interest_lobbyist: any);
8
- static is(federal_lobby_document_interest_lobbyist: any): federal_lobby_document_interest_lobbyist is FederalLobbyDocumentInterestLobbyist;
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
- }
17
1
  export declare class FederalLobbyDocumentInterest {
18
2
  readonly federal_lobby_document_id: string;
19
3
  readonly interest_id: string;
@@ -1,47 +1,3 @@
1
- export class FederalLobbyDocumentInterestLobbyist {
2
- federal_lobby_document_id;
3
- interest_id;
4
- federal_lobby_lobbyist_id;
5
- is_new;
6
- history_text;
7
- constructor(federal_lobby_document_interest_lobbyist) {
8
- if (!FederalLobbyDocumentInterestLobbyist.is(federal_lobby_document_interest_lobbyist)) {
9
- throw Error("Invalid input.");
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;
13
- this.federal_lobby_lobbyist_id = federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id;
14
- this.is_new = federal_lobby_document_interest_lobbyist.is_new;
15
- this.history_text = federal_lobby_document_interest_lobbyist.history_text;
16
- }
17
- static is(federal_lobby_document_interest_lobbyist) {
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" &&
21
- typeof federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id === "number" &&
22
- (federal_lobby_document_interest_lobbyist.is_new === undefined || typeof federal_lobby_document_interest_lobbyist.is_new === "boolean") &&
23
- (federal_lobby_document_interest_lobbyist.history_text === undefined || typeof federal_lobby_document_interest_lobbyist.history_text === "string"));
24
- }
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
- }
45
1
  export class FederalLobbyDocumentInterest {
46
2
  federal_lobby_document_id;
47
3
  interest_id;
@@ -0,0 +1,7 @@
1
+ export declare class FederalLobbyDocumentInterestAgency {
2
+ readonly federal_lobby_document_id: string;
3
+ readonly interest_id: string;
4
+ readonly federal_lobby_agency_id: number;
5
+ constructor(federal_lobby_document_interest_lobbyist: any);
6
+ static is(federal_lobby_document_interest_lobbyist: any): federal_lobby_document_interest_lobbyist is FederalLobbyDocumentInterestAgency;
7
+ }
@@ -0,0 +1,19 @@
1
+ export class FederalLobbyDocumentInterestAgency {
2
+ federal_lobby_document_id;
3
+ interest_id;
4
+ federal_lobby_agency_id;
5
+ constructor(federal_lobby_document_interest_lobbyist) {
6
+ if (!FederalLobbyDocumentInterestAgency.is(federal_lobby_document_interest_lobbyist)) {
7
+ throw Error("Invalid input.");
8
+ }
9
+ this.federal_lobby_document_id = federal_lobby_document_interest_lobbyist.federal_lobby_document_id;
10
+ this.interest_id = federal_lobby_document_interest_lobbyist.interest_id;
11
+ this.federal_lobby_agency_id = federal_lobby_document_interest_lobbyist.federal_lobby_agency_id;
12
+ }
13
+ static is(federal_lobby_document_interest_lobbyist) {
14
+ return (federal_lobby_document_interest_lobbyist !== undefined &&
15
+ typeof federal_lobby_document_interest_lobbyist.federal_lobby_document_id === "string" &&
16
+ typeof federal_lobby_document_interest_lobbyist.interest_id === "string" &&
17
+ typeof federal_lobby_document_interest_lobbyist.federal_lobby_agency_id === "number");
18
+ }
19
+ }
@@ -0,0 +1,9 @@
1
+ export declare class FederalLobbyDocumentInterestLobbyist {
2
+ readonly federal_lobby_document_id: string;
3
+ readonly interest_id: string;
4
+ readonly federal_lobby_lobbyist_id: number;
5
+ readonly is_new?: boolean;
6
+ readonly history_text?: string;
7
+ constructor(federal_lobby_document_interest_lobbyist: any);
8
+ static is(federal_lobby_document_interest_lobbyist: any): federal_lobby_document_interest_lobbyist is FederalLobbyDocumentInterestLobbyist;
9
+ }
@@ -0,0 +1,25 @@
1
+ export class FederalLobbyDocumentInterestLobbyist {
2
+ federal_lobby_document_id;
3
+ interest_id;
4
+ federal_lobby_lobbyist_id;
5
+ is_new;
6
+ history_text;
7
+ constructor(federal_lobby_document_interest_lobbyist) {
8
+ if (!FederalLobbyDocumentInterestLobbyist.is(federal_lobby_document_interest_lobbyist)) {
9
+ throw Error("Invalid input.");
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;
13
+ this.federal_lobby_lobbyist_id = federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id;
14
+ this.is_new = federal_lobby_document_interest_lobbyist.is_new;
15
+ this.history_text = federal_lobby_document_interest_lobbyist.history_text;
16
+ }
17
+ static is(federal_lobby_document_interest_lobbyist) {
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" &&
21
+ typeof federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id === "number" &&
22
+ (federal_lobby_document_interest_lobbyist.is_new === undefined || typeof federal_lobby_document_interest_lobbyist.is_new === "boolean") &&
23
+ (federal_lobby_document_interest_lobbyist.history_text === undefined || typeof federal_lobby_document_interest_lobbyist.history_text === "string"));
24
+ }
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.330",
3
+ "version": "1.0.331",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -43,6 +43,8 @@ export * from "./types/federal_lobby/FederalLobbyClient"
43
43
  export * from "./types/federal_lobby/FederalLobbyLobbyist"
44
44
  export * from "./types/federal_lobby/FederalLobbyDocument"
45
45
  export * from "./types/federal_lobby/FederalLobbyDocumentInterest"
46
+ export * from "./types/federal_lobby/FederalLobbyDocumentInterestAgency"
47
+ export * from "./types/federal_lobby/FederalLobbyDocumentInterestLobbyist"
46
48
 
47
49
  export * from "./types/federal_congress/FederalCongress"
48
50
  export * from "./types/federal_congress/FederalCongressBill"
@@ -1,58 +1,3 @@
1
- export class FederalLobbyDocumentInterestLobbyist {
2
- readonly federal_lobby_document_id : string
3
- readonly interest_id : string
4
- readonly federal_lobby_lobbyist_id : number
5
- readonly is_new? : boolean
6
- readonly history_text? : string
7
-
8
- constructor(federal_lobby_document_interest_lobbyist : any) {
9
- if (!FederalLobbyDocumentInterestLobbyist.is(federal_lobby_document_interest_lobbyist)) {
10
- throw Error("Invalid input.")
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
14
- this.federal_lobby_lobbyist_id = federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id
15
- this.is_new = federal_lobby_document_interest_lobbyist.is_new
16
- this.history_text = federal_lobby_document_interest_lobbyist.history_text
17
- }
18
-
19
- static is(federal_lobby_document_interest_lobbyist : any) : federal_lobby_document_interest_lobbyist is FederalLobbyDocumentInterestLobbyist {
20
- return (
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" &&
24
- typeof federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id === "number" &&
25
- (federal_lobby_document_interest_lobbyist.is_new === undefined || typeof federal_lobby_document_interest_lobbyist.is_new === "boolean") &&
26
- (federal_lobby_document_interest_lobbyist.history_text === undefined || typeof federal_lobby_document_interest_lobbyist.history_text === "string")
27
- )
28
- }
29
- }
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
-
55
-
56
1
  export class FederalLobbyDocumentInterest {
57
2
  readonly federal_lobby_document_id : string
58
3
  readonly interest_id : string
@@ -0,0 +1,23 @@
1
+ export class FederalLobbyDocumentInterestAgency {
2
+ readonly federal_lobby_document_id : string
3
+ readonly interest_id : string
4
+ readonly federal_lobby_agency_id : number
5
+
6
+ constructor(federal_lobby_document_interest_lobbyist : any) {
7
+ if (!FederalLobbyDocumentInterestAgency.is(federal_lobby_document_interest_lobbyist)) {
8
+ throw Error("Invalid input.")
9
+ }
10
+ this.federal_lobby_document_id = federal_lobby_document_interest_lobbyist.federal_lobby_document_id
11
+ this.interest_id = federal_lobby_document_interest_lobbyist.interest_id
12
+ this.federal_lobby_agency_id = federal_lobby_document_interest_lobbyist.federal_lobby_agency_id
13
+ }
14
+
15
+ static is(federal_lobby_document_interest_lobbyist : any) : federal_lobby_document_interest_lobbyist is FederalLobbyDocumentInterestAgency {
16
+ return (
17
+ federal_lobby_document_interest_lobbyist !== undefined &&
18
+ typeof federal_lobby_document_interest_lobbyist.federal_lobby_document_id === "string" &&
19
+ typeof federal_lobby_document_interest_lobbyist.interest_id === "string" &&
20
+ typeof federal_lobby_document_interest_lobbyist.federal_lobby_agency_id === "number"
21
+ )
22
+ }
23
+ }
@@ -0,0 +1,29 @@
1
+ export class FederalLobbyDocumentInterestLobbyist {
2
+ readonly federal_lobby_document_id : string
3
+ readonly interest_id : string
4
+ readonly federal_lobby_lobbyist_id : number
5
+ readonly is_new? : boolean
6
+ readonly history_text? : string
7
+
8
+ constructor(federal_lobby_document_interest_lobbyist : any) {
9
+ if (!FederalLobbyDocumentInterestLobbyist.is(federal_lobby_document_interest_lobbyist)) {
10
+ throw Error("Invalid input.")
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
14
+ this.federal_lobby_lobbyist_id = federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id
15
+ this.is_new = federal_lobby_document_interest_lobbyist.is_new
16
+ this.history_text = federal_lobby_document_interest_lobbyist.history_text
17
+ }
18
+
19
+ static is(federal_lobby_document_interest_lobbyist : any) : federal_lobby_document_interest_lobbyist is FederalLobbyDocumentInterestLobbyist {
20
+ return (
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" &&
24
+ typeof federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id === "number" &&
25
+ (federal_lobby_document_interest_lobbyist.is_new === undefined || typeof federal_lobby_document_interest_lobbyist.is_new === "boolean") &&
26
+ (federal_lobby_document_interest_lobbyist.history_text === undefined || typeof federal_lobby_document_interest_lobbyist.history_text === "string")
27
+ )
28
+ }
29
+ }