triangle-types 1.0.329 → 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,18 +1,8 @@
1
- export declare class FederalLobbyDocumentInterestLobbyist {
2
- readonly federal_lobby_lobbyist_id: number;
3
- readonly is_new?: boolean;
4
- readonly history_text?: string;
5
- constructor(federal_lobby_document_interest_lobbyist: any);
6
- static is(federal_lobby_document_interest_lobbyist: any): federal_lobby_document_interest_lobbyist is FederalLobbyDocumentInterestLobbyist;
7
- }
8
1
  export declare class FederalLobbyDocumentInterest {
9
- readonly federal_lobby_document_interest_id: string;
10
2
  readonly federal_lobby_document_id: string;
11
3
  readonly interest_id: string;
12
4
  readonly description?: string;
13
5
  readonly foreign_interests_text?: string;
14
- readonly lobbyists: FederalLobbyDocumentInterestLobbyist[];
15
- readonly federal_lobby_agency_ids: number[];
16
6
  constructor(federal_lobby_document_interest: any);
17
7
  static is(federal_lobby_document_interest: any): federal_lobby_document_interest is FederalLobbyDocumentInterest;
18
8
  }
@@ -1,50 +1,22 @@
1
- export class FederalLobbyDocumentInterestLobbyist {
2
- federal_lobby_lobbyist_id;
3
- is_new;
4
- history_text;
5
- constructor(federal_lobby_document_interest_lobbyist) {
6
- if (!FederalLobbyDocumentInterestLobbyist.is(federal_lobby_document_interest_lobbyist)) {
7
- throw Error("Invalid input.");
8
- }
9
- this.federal_lobby_lobbyist_id = federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id;
10
- this.is_new = federal_lobby_document_interest_lobbyist.is_new;
11
- this.history_text = federal_lobby_document_interest_lobbyist.history_text;
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_lobbyist_id === "number" &&
16
- (federal_lobby_document_interest_lobbyist.is_new === undefined || typeof federal_lobby_document_interest_lobbyist.is_new === "boolean") &&
17
- (federal_lobby_document_interest_lobbyist.history_text === undefined || typeof federal_lobby_document_interest_lobbyist.history_text === "string"));
18
- }
19
- }
20
1
  export class FederalLobbyDocumentInterest {
21
- federal_lobby_document_interest_id;
22
2
  federal_lobby_document_id;
23
3
  interest_id;
24
4
  description;
25
5
  foreign_interests_text;
26
- lobbyists;
27
- federal_lobby_agency_ids;
28
6
  constructor(federal_lobby_document_interest) {
29
7
  if (!FederalLobbyDocumentInterest.is(federal_lobby_document_interest)) {
30
8
  throw Error("Invalid input.");
31
9
  }
32
- this.federal_lobby_document_interest_id = federal_lobby_document_interest.federal_lobby_document_interest_id;
33
10
  this.federal_lobby_document_id = federal_lobby_document_interest.federal_lobby_document_id;
34
11
  this.interest_id = federal_lobby_document_interest.interest_id;
35
12
  this.description = federal_lobby_document_interest.description;
36
13
  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
14
  }
40
15
  static is(federal_lobby_document_interest) {
41
16
  return (federal_lobby_document_interest !== undefined &&
42
- typeof federal_lobby_document_interest.federal_lobby_document_interest_id === "string" &&
43
17
  typeof federal_lobby_document_interest.federal_lobby_document_id === "string" &&
44
18
  typeof federal_lobby_document_interest.interest_id === "string" &&
45
19
  (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"));
20
+ (federal_lobby_document_interest.foreign_interests_text === undefined || typeof federal_lobby_document_interest.foreign_interests_text === "string"));
49
21
  }
50
22
  }
@@ -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.329",
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,60 +1,26 @@
1
- export class FederalLobbyDocumentInterestLobbyist {
2
- readonly federal_lobby_lobbyist_id : number
3
- readonly is_new? : boolean
4
- readonly history_text? : string
5
-
6
- constructor(federal_lobby_document_interest_lobbyist : any) {
7
- if (!FederalLobbyDocumentInterestLobbyist.is(federal_lobby_document_interest_lobbyist)) {
8
- throw Error("Invalid input.")
9
- }
10
- this.federal_lobby_lobbyist_id = federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id
11
- this.is_new = federal_lobby_document_interest_lobbyist.is_new
12
- this.history_text = federal_lobby_document_interest_lobbyist.history_text
13
- }
14
-
15
- static is(federal_lobby_document_interest_lobbyist : any) : federal_lobby_document_interest_lobbyist is FederalLobbyDocumentInterestLobbyist {
16
- return (
17
- federal_lobby_document_interest_lobbyist !== undefined &&
18
- typeof federal_lobby_document_interest_lobbyist.federal_lobby_lobbyist_id === "number" &&
19
- (federal_lobby_document_interest_lobbyist.is_new === undefined || typeof federal_lobby_document_interest_lobbyist.is_new === "boolean") &&
20
- (federal_lobby_document_interest_lobbyist.history_text === undefined || typeof federal_lobby_document_interest_lobbyist.history_text === "string")
21
- )
22
- }
23
- }
24
-
25
-
26
1
  export class FederalLobbyDocumentInterest {
27
- readonly federal_lobby_document_interest_id : string
28
2
  readonly federal_lobby_document_id : string
29
3
  readonly interest_id : string
30
4
  readonly description? : string
31
5
  readonly foreign_interests_text? : string
32
- readonly lobbyists : FederalLobbyDocumentInterestLobbyist[]
33
- readonly federal_lobby_agency_ids : number[]
34
6
 
35
7
  constructor(federal_lobby_document_interest : any) {
36
8
  if (!FederalLobbyDocumentInterest.is(federal_lobby_document_interest)) {
37
9
  throw Error("Invalid input.")
38
10
  }
39
- this.federal_lobby_document_interest_id = federal_lobby_document_interest.federal_lobby_document_interest_id
40
11
  this.federal_lobby_document_id = federal_lobby_document_interest.federal_lobby_document_id
41
12
  this.interest_id = federal_lobby_document_interest.interest_id
42
13
  this.description = federal_lobby_document_interest.description
43
14
  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
15
  }
47
16
 
48
17
  static is(federal_lobby_document_interest : any) : federal_lobby_document_interest is FederalLobbyDocumentInterest {
49
18
  return (
50
19
  federal_lobby_document_interest !== undefined &&
51
- typeof federal_lobby_document_interest.federal_lobby_document_interest_id === "string" &&
52
20
  typeof federal_lobby_document_interest.federal_lobby_document_id === "string" &&
53
21
  typeof federal_lobby_document_interest.interest_id === "string" &&
54
22
  (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")
23
+ (federal_lobby_document_interest.foreign_interests_text === undefined || typeof federal_lobby_document_interest.foreign_interests_text === "string")
58
24
  )
59
25
  }
60
26
  }
@@ -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
+ }