lobbying_disclosure_client 0.0.1

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.
Files changed (101) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +50 -0
  3. data/.ruby-version +1 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +78 -0
  6. data/Rakefile +17 -0
  7. data/lefthook.yml +9 -0
  8. data/lib/lobbying_disclosure_client/auth/login.rb +33 -0
  9. data/lib/lobbying_disclosure_client/auth/password/reset/confirm.rb +39 -0
  10. data/lib/lobbying_disclosure_client/auth/password/reset.rb +34 -0
  11. data/lib/lobbying_disclosure_client/auth/password.rb +9 -0
  12. data/lib/lobbying_disclosure_client/auth.rb +7 -0
  13. data/lib/lobbying_disclosure_client/client.rb +108 -0
  14. data/lib/lobbying_disclosure_client/enums/contribution_type.rb +16 -0
  15. data/lib/lobbying_disclosure_client/enums/country.rb +269 -0
  16. data/lib/lobbying_disclosure_client/enums/expenses_method.rb +14 -0
  17. data/lib/lobbying_disclosure_client/enums/filer_type.rb +13 -0
  18. data/lib/lobbying_disclosure_client/enums/filing_period.rb +17 -0
  19. data/lib/lobbying_disclosure_client/enums/filing_type.rb +61 -0
  20. data/lib/lobbying_disclosure_client/enums/general_issue_code.rb +90 -0
  21. data/lib/lobbying_disclosure_client/enums/prefix.rb +18 -0
  22. data/lib/lobbying_disclosure_client/enums/route.rb +103 -0
  23. data/lib/lobbying_disclosure_client/enums/state.rb +71 -0
  24. data/lib/lobbying_disclosure_client/enums/suffix.rb +34 -0
  25. data/lib/lobbying_disclosure_client/enums.rb +7 -0
  26. data/lib/lobbying_disclosure_client/errors/bad_request_error.rb +8 -0
  27. data/lib/lobbying_disclosure_client/errors/invalid_api_key_error.rb +8 -0
  28. data/lib/lobbying_disclosure_client/errors/not_found_error.rb +8 -0
  29. data/lib/lobbying_disclosure_client/errors/request_throttled_error.rb +26 -0
  30. data/lib/lobbying_disclosure_client/errors/unknown_error.rb +8 -0
  31. data/lib/lobbying_disclosure_client/errors/unsupported_http_method_error.rb +8 -0
  32. data/lib/lobbying_disclosure_client/errors.rb +7 -0
  33. data/lib/lobbying_disclosure_client/types/affiliated_organization.rb +26 -0
  34. data/lib/lobbying_disclosure_client/types/client.rb +42 -0
  35. data/lib/lobbying_disclosure_client/types/client_with_registrant.rb +43 -0
  36. data/lib/lobbying_disclosure_client/types/constant.rb +11 -0
  37. data/lib/lobbying_disclosure_client/types/contribution_item.rb +34 -0
  38. data/lib/lobbying_disclosure_client/types/contribution_report.rb +53 -0
  39. data/lib/lobbying_disclosure_client/types/conviction_disclosure.rb +29 -0
  40. data/lib/lobbying_disclosure_client/types/filing.rb +59 -0
  41. data/lib/lobbying_disclosure_client/types/foreign_entity.rb +41 -0
  42. data/lib/lobbying_disclosure_client/types/government_entity.rb +11 -0
  43. data/lib/lobbying_disclosure_client/types/lobbying_activity.rb +15 -0
  44. data/lib/lobbying_disclosure_client/types/lobbyist.rb +18 -0
  45. data/lib/lobbying_disclosure_client/types/lobbyist_for_lobbying_activity.rb +12 -0
  46. data/lib/lobbying_disclosure_client/types/lobbyist_with_registrant.rb +19 -0
  47. data/lib/lobbying_disclosure_client/types/registrant.rb +46 -0
  48. data/lib/lobbying_disclosure_client/types.rb +7 -0
  49. data/lib/lobbying_disclosure_client/util/constants_validator.rb +122 -0
  50. data/lib/lobbying_disclosure_client/util.rb +7 -0
  51. data/lib/lobbying_disclosure_client/v1/clients/list_clients.rb +49 -0
  52. data/lib/lobbying_disclosure_client/v1/clients/retrieve_client.rb +36 -0
  53. data/lib/lobbying_disclosure_client/v1/clients.rb +9 -0
  54. data/lib/lobbying_disclosure_client/v1/constants/contribution/list_contribution_item_types.rb +26 -0
  55. data/lib/lobbying_disclosure_client/v1/constants/contribution.rb +11 -0
  56. data/lib/lobbying_disclosure_client/v1/constants/filing/list_filing_types.rb +26 -0
  57. data/lib/lobbying_disclosure_client/v1/constants/filing/list_government_entities.rb +26 -0
  58. data/lib/lobbying_disclosure_client/v1/constants/filing/list_lobbying_activity_general_issues.rb +26 -0
  59. data/lib/lobbying_disclosure_client/v1/constants/filing.rb +11 -0
  60. data/lib/lobbying_disclosure_client/v1/constants/general/list_countries.rb +26 -0
  61. data/lib/lobbying_disclosure_client/v1/constants/general/list_states.rb +26 -0
  62. data/lib/lobbying_disclosure_client/v1/constants/general.rb +11 -0
  63. data/lib/lobbying_disclosure_client/v1/constants/lobbyist/list_lobbyist_prefixes.rb +26 -0
  64. data/lib/lobbying_disclosure_client/v1/constants/lobbyist/list_lobbyist_suffixes.rb +26 -0
  65. data/lib/lobbying_disclosure_client/v1/constants/lobbyist.rb +11 -0
  66. data/lib/lobbying_disclosure_client/v1/constants.rb +9 -0
  67. data/lib/lobbying_disclosure_client/v1/contribution_reports/list_contribution_reports.rb +60 -0
  68. data/lib/lobbying_disclosure_client/v1/contribution_reports/retrieve_contribution_report.rb +36 -0
  69. data/lib/lobbying_disclosure_client/v1/contribution_reports.rb +9 -0
  70. data/lib/lobbying_disclosure_client/v1/filings/list_filings.rb +77 -0
  71. data/lib/lobbying_disclosure_client/v1/filings/retrieve_filing.rb +36 -0
  72. data/lib/lobbying_disclosure_client/v1/filings.rb +9 -0
  73. data/lib/lobbying_disclosure_client/v1/lobbyists/list_lobbyists.rb +45 -0
  74. data/lib/lobbying_disclosure_client/v1/lobbyists/retrieve_lobbyist.rb +36 -0
  75. data/lib/lobbying_disclosure_client/v1/lobbyists.rb +9 -0
  76. data/lib/lobbying_disclosure_client/v1/registrants/list_registrants.rb +48 -0
  77. data/lib/lobbying_disclosure_client/v1/registrants/retrieve_registrant.rb +36 -0
  78. data/lib/lobbying_disclosure_client/v1/registrants.rb +9 -0
  79. data/lib/lobbying_disclosure_client/v1.rb +16 -0
  80. data/lib/lobbying_disclosure_client/version.rb +6 -0
  81. data/lib/lobbying_disclosure_client.rb +105 -0
  82. data/sorbet/config +4 -0
  83. data/sorbet/rbi/gems/.gitattributes +1 -0
  84. data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
  85. data/sorbet/rbi/gems/minitest-stub-const@0.6.rbi +72 -0
  86. data/sorbet/rbi/gems/minitest@5.20.0.rbi +1498 -0
  87. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  88. data/sorbet/rbi/gems/parallel@1.26.2.rbi +291 -0
  89. data/sorbet/rbi/gems/prism@0.30.0.rbi +37863 -0
  90. data/sorbet/rbi/gems/rake@13.1.0.rbi +3220 -0
  91. data/sorbet/rbi/gems/rbi@0.1.14.rbi +3305 -0
  92. data/sorbet/rbi/gems/spoom@1.4.2.rbi +4932 -0
  93. data/sorbet/rbi/gems/tapioca@0.16.0.rbi +3543 -0
  94. data/sorbet/rbi/gems/thor@1.3.1.rbi +4319 -0
  95. data/sorbet/rbi/gems/vcr@6.3.1.rbi +3040 -0
  96. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  97. data/sorbet/rbi/gems/yard@0.9.36.rbi +18086 -0
  98. data/sorbet/rbi/shims/faraday.rbi +10 -0
  99. data/sorbet/tapioca/config.yml +13 -0
  100. data/sorbet/tapioca/require.rb +5 -0
  101. metadata +185 -0
@@ -0,0 +1,77 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module LobbyingDisclosureClient
5
+ class V1
6
+ module Filings
7
+ class ListFilings
8
+ extend T::Sig
9
+
10
+ class Input < T::Struct
11
+ const :affiliated_organization_country, T.nilable(LobbyingDisclosureClient::Enums::Country)
12
+ const :affiliated_organization_listed_indicator, T.nilable(T::Boolean)
13
+ const :affiliated_organization_name, T.nilable(String)
14
+ const :client_country, T.nilable(LobbyingDisclosureClient::Enums::Country)
15
+ const :client_id, T.nilable(Integer)
16
+ const :client_name, T.nilable(String)
17
+ const :client_ppb_country, T.nilable(LobbyingDisclosureClient::Enums::Country)
18
+ const :client_ppb_state, T.nilable(LobbyingDisclosureClient::Enums::State)
19
+ const :client_state, T.nilable(LobbyingDisclosureClient::Enums::State)
20
+ const :filing_amount_reported_max, T.nilable(BigDecimal)
21
+ const :filing_amount_reported_min, T.nilable(BigDecimal)
22
+ const :filing_dt_posted_after, T.nilable(DateTime)
23
+ const :filing_dt_posted_before, T.nilable(DateTime)
24
+ const :filing_period, T.nilable(LobbyingDisclosureClient::Enums::FilingPeriod)
25
+ const :filing_specific_lobbying_issues, T.nilable(String)
26
+ const :filing_type, T.nilable(LobbyingDisclosureClient::Enums::FilingType)
27
+ const :filing_uuid, T.nilable(String)
28
+ const :filing_year, T.nilable(Integer)
29
+ const :foreign_entity_country, T.nilable(LobbyingDisclosureClient::Enums::Country)
30
+ const :foreign_entity_listed_indicator, T.nilable(T::Boolean)
31
+ const :foreign_entity_name, T.nilable(String)
32
+ const :foreign_entity_ownership_percentage_max, T.nilable(String)
33
+ const :foreign_entity_ownership_percentage_min, T.nilable(String)
34
+ const :foreign_entity_ppb_country, T.nilable(LobbyingDisclosureClient::Enums::Country)
35
+ const :lobbyist_conviction_date_range_after, T.nilable(Date)
36
+ const :lobbyist_conviction_date_range_before, T.nilable(Date)
37
+ const :lobbyist_conviction_disclosure, T.nilable(String)
38
+ const :lobbyist_conviction_disclosure_indicator, T.nilable(T::Boolean)
39
+ const :lobbyist_covered_position, T.nilable(String)
40
+ const :lobbyist_covered_position_indicator, T.nilable(T::Boolean)
41
+ const :lobbyist_id, T.nilable(Integer)
42
+ const :lobbyist_name, T.nilable(String)
43
+ const :ordering, T.nilable(String)
44
+ const :page, T.nilable(Integer)
45
+ const :page_size, T.nilable(Integer)
46
+ const :registrant_country, T.nilable(LobbyingDisclosureClient::Enums::Country)
47
+ const :registrant_id, T.nilable(Integer)
48
+ const :registrant_name, T.nilable(String)
49
+ const :registrant_ppb_country, T.nilable(LobbyingDisclosureClient::Enums::Country)
50
+ end
51
+
52
+ class Output < T::Struct
53
+ const :count, Integer
54
+ const :next, T.nilable(String)
55
+ const :previous, T.nilable(String)
56
+ const :results, T::Array[LobbyingDisclosureClient::Types::Filing]
57
+ end
58
+
59
+ sig do
60
+ params(
61
+ input: Input
62
+ ).returns(Output)
63
+ end
64
+ def self.call(input:)
65
+ client = Client.new
66
+
67
+ Output.from_hash!(
68
+ client.get(
69
+ LobbyingDisclosureClient::Enums::Route::V1_Filings_ListFilings,
70
+ query_params: input.serialize.compact
71
+ )
72
+ )
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,36 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module LobbyingDisclosureClient
5
+ class V1
6
+ module Filings
7
+ class RetrieveFiling
8
+ extend T::Sig
9
+
10
+ class Input < T::Struct
11
+ const :filing_uuid, String
12
+ end
13
+
14
+ Output = T.type_alias do
15
+ LobbyingDisclosureClient::Types::Filing
16
+ end
17
+
18
+ sig do
19
+ params(
20
+ input: Input
21
+ ).returns(Output)
22
+ end
23
+ def self.call(input:)
24
+ client = Client.new
25
+
26
+ LobbyingDisclosureClient::Types::Filing.from_hash!(
27
+ client.get(
28
+ LobbyingDisclosureClient::Enums::Route::V1_Filings_RetrieveFiling,
29
+ path_params: [input.filing_uuid]
30
+ )
31
+ )
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,9 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module LobbyingDisclosureClient
5
+ class V1
6
+ module Filings
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,45 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module LobbyingDisclosureClient
5
+ class V1
6
+ module Lobbyists
7
+ class ListLobbyists
8
+ extend T::Sig
9
+
10
+ class Input < T::Struct
11
+ const :id, T.nilable(Integer)
12
+ const :lobbyist_name, T.nilable(String)
13
+ const :ordering, T.nilable(String)
14
+ const :page, T.nilable(Integer)
15
+ const :page_size, T.nilable(Integer)
16
+ const :registrant_id, T.nilable(Integer)
17
+ const :registrant_name, T.nilable(String)
18
+ end
19
+
20
+ class Output < T::Struct
21
+ const :count, Integer
22
+ const :next, T.nilable(String)
23
+ const :previous, T.nilable(String)
24
+ const :results, T::Array[LobbyingDisclosureClient::Types::LobbyistWithRegistrant]
25
+ end
26
+
27
+ sig do
28
+ params(
29
+ input: Input
30
+ ).returns(Output)
31
+ end
32
+ def self.call(input:)
33
+ client = Client.new
34
+
35
+ Output.from_hash!(
36
+ client.get(
37
+ LobbyingDisclosureClient::Enums::Route::V1_Lobbyists_ListLobbyists,
38
+ query_params: input.serialize.compact
39
+ )
40
+ )
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,36 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module LobbyingDisclosureClient
5
+ class V1
6
+ module Lobbyists
7
+ class RetrieveLobbyist
8
+ extend T::Sig
9
+
10
+ class Input < T::Struct
11
+ const :id, Integer
12
+ end
13
+
14
+ Output = T.type_alias do
15
+ LobbyingDisclosureClient::Types::LobbyistWithRegistrant
16
+ end
17
+
18
+ sig do
19
+ params(
20
+ input: Input
21
+ ).returns(Output)
22
+ end
23
+ def self.call(input:)
24
+ client = Client.new
25
+
26
+ LobbyingDisclosureClient::Types::LobbyistWithRegistrant.from_hash!(
27
+ client.get(
28
+ LobbyingDisclosureClient::Enums::Route::V1_Lobbyists_RetrieveLobbyist,
29
+ path_params: [input.id]
30
+ )
31
+ )
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,9 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module LobbyingDisclosureClient
5
+ class V1
6
+ module Lobbyists
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,48 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module LobbyingDisclosureClient
5
+ class V1
6
+ module Registrants
7
+ class ListRegistrants
8
+ extend T::Sig
9
+
10
+ class Input < T::Struct
11
+ const :country, T.nilable(LobbyingDisclosureClient::Enums::Country)
12
+ const :dt_updated_after, T.nilable(DateTime)
13
+ const :dt_updated_before, T.nilable(DateTime)
14
+ const :id, T.nilable(Integer)
15
+ const :ordering, T.nilable(String)
16
+ const :page, T.nilable(Integer)
17
+ const :page_size, T.nilable(Integer)
18
+ const :ppb_country, T.nilable(LobbyingDisclosureClient::Enums::Country)
19
+ const :registrant_name, T.nilable(String)
20
+ const :state, T.nilable(LobbyingDisclosureClient::Enums::State)
21
+ end
22
+
23
+ class Output < T::Struct
24
+ const :count, Integer
25
+ const :next, T.nilable(String)
26
+ const :previous, T.nilable(String)
27
+ const :results, T::Array[LobbyingDisclosureClient::Types::Registrant]
28
+ end
29
+
30
+ sig do
31
+ params(
32
+ input: Input
33
+ ).returns(Output)
34
+ end
35
+ def self.call(input:)
36
+ client = Client.new
37
+
38
+ Output.from_hash!(
39
+ client.get(
40
+ LobbyingDisclosureClient::Enums::Route::V1_Registrants_ListRegistrants,
41
+ query_params: input.serialize.compact
42
+ )
43
+ )
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,36 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module LobbyingDisclosureClient
5
+ class V1
6
+ module Registrants
7
+ class RetrieveRegistrant
8
+ extend T::Sig
9
+
10
+ class Input < T::Struct
11
+ const :id, Integer
12
+ end
13
+
14
+ Output = T.type_alias do
15
+ LobbyingDisclosureClient::Types::Registrant
16
+ end
17
+
18
+ sig do
19
+ params(
20
+ input: Input
21
+ ).returns(Output)
22
+ end
23
+ def self.call(input:)
24
+ client = Client.new
25
+
26
+ LobbyingDisclosureClient::Types::Registrant.from_hash!(
27
+ client.get(
28
+ LobbyingDisclosureClient::Enums::Route::V1_Registrants_RetrieveRegistrant,
29
+ path_params: [input.id]
30
+ )
31
+ )
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,9 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module LobbyingDisclosureClient
5
+ class V1
6
+ module Registrants
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,16 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module LobbyingDisclosureClient
5
+ class V1
6
+ extend T::Sig
7
+
8
+ sig do
9
+ returns(T::Hash[String, String])
10
+ end
11
+ def self.call
12
+ client = Client.new
13
+ client.get(LobbyingDisclosureClient::Enums::Route::V1)
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,6 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module LobbyingDisclosureClient
5
+ VERSION = '0.0.1'
6
+ end
@@ -0,0 +1,105 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ require 'bigdecimal'
5
+ require 'bigdecimal/util'
6
+ require 'sorbet-runtime'
7
+
8
+ require_relative 'lobbying_disclosure_client/auth'
9
+ require_relative 'lobbying_disclosure_client/auth/login'
10
+ require_relative 'lobbying_disclosure_client/auth/password'
11
+ require_relative 'lobbying_disclosure_client/auth/password/reset'
12
+ require_relative 'lobbying_disclosure_client/auth/password/reset/confirm'
13
+
14
+ require_relative 'lobbying_disclosure_client/client'
15
+
16
+ require_relative 'lobbying_disclosure_client/enums'
17
+ require_relative 'lobbying_disclosure_client/enums/contribution_type'
18
+ require_relative 'lobbying_disclosure_client/enums/country'
19
+ require_relative 'lobbying_disclosure_client/enums/expenses_method'
20
+ require_relative 'lobbying_disclosure_client/enums/filer_type'
21
+ require_relative 'lobbying_disclosure_client/enums/filing_period'
22
+ require_relative 'lobbying_disclosure_client/enums/filing_type'
23
+ require_relative 'lobbying_disclosure_client/enums/general_issue_code'
24
+ require_relative 'lobbying_disclosure_client/enums/prefix'
25
+ require_relative 'lobbying_disclosure_client/enums/route'
26
+ require_relative 'lobbying_disclosure_client/enums/state'
27
+ require_relative 'lobbying_disclosure_client/enums/suffix'
28
+
29
+ require_relative 'lobbying_disclosure_client/errors'
30
+ require_relative 'lobbying_disclosure_client/errors/bad_request_error'
31
+ require_relative 'lobbying_disclosure_client/errors/invalid_api_key_error'
32
+ require_relative 'lobbying_disclosure_client/errors/not_found_error'
33
+ require_relative 'lobbying_disclosure_client/errors/request_throttled_error'
34
+ require_relative 'lobbying_disclosure_client/errors/unknown_error'
35
+ require_relative 'lobbying_disclosure_client/errors/unsupported_http_method_error'
36
+
37
+ require_relative 'lobbying_disclosure_client/types'
38
+ require_relative 'lobbying_disclosure_client/types/affiliated_organization'
39
+ require_relative 'lobbying_disclosure_client/types/government_entity'
40
+ require_relative 'lobbying_disclosure_client/types/lobbyist'
41
+ require_relative 'lobbying_disclosure_client/types/lobbyist_for_lobbying_activity'
42
+ require_relative 'lobbying_disclosure_client/types/lobbying_activity'
43
+ require_relative 'lobbying_disclosure_client/types/client'
44
+ require_relative 'lobbying_disclosure_client/types/conviction_disclosure'
45
+ require_relative 'lobbying_disclosure_client/types/foreign_entity'
46
+ require_relative 'lobbying_disclosure_client/types/registrant'
47
+ require_relative 'lobbying_disclosure_client/types/client_with_registrant'
48
+ require_relative 'lobbying_disclosure_client/types/lobbyist_with_registrant'
49
+ require_relative 'lobbying_disclosure_client/types/filing'
50
+ require_relative 'lobbying_disclosure_client/types/constant'
51
+ require_relative 'lobbying_disclosure_client/types/contribution_item'
52
+ require_relative 'lobbying_disclosure_client/types/contribution_report'
53
+
54
+ require_relative 'lobbying_disclosure_client/v1'
55
+
56
+ require_relative 'lobbying_disclosure_client/v1/constants'
57
+
58
+ require_relative 'lobbying_disclosure_client/v1/constants/contribution'
59
+ require_relative 'lobbying_disclosure_client/v1/constants/contribution/list_contribution_item_types'
60
+
61
+ require_relative 'lobbying_disclosure_client/v1/constants/filing'
62
+ require_relative 'lobbying_disclosure_client/v1/constants/filing/list_filing_types'
63
+ require_relative 'lobbying_disclosure_client/v1/constants/filing/list_lobbying_activity_general_issues'
64
+ require_relative 'lobbying_disclosure_client/v1/constants/filing/list_government_entities'
65
+
66
+ require_relative 'lobbying_disclosure_client/v1/constants/general'
67
+ require_relative 'lobbying_disclosure_client/v1/constants/general/list_countries'
68
+ require_relative 'lobbying_disclosure_client/v1/constants/general/list_states'
69
+
70
+ require_relative 'lobbying_disclosure_client/v1/constants/lobbyist'
71
+ require_relative 'lobbying_disclosure_client/v1/constants/lobbyist/list_lobbyist_prefixes'
72
+ require_relative 'lobbying_disclosure_client/v1/constants/lobbyist/list_lobbyist_suffixes'
73
+
74
+ require_relative 'lobbying_disclosure_client/v1/contribution_reports'
75
+ require_relative 'lobbying_disclosure_client/v1/contribution_reports/list_contribution_reports'
76
+ require_relative 'lobbying_disclosure_client/v1/contribution_reports/retrieve_contribution_report'
77
+
78
+ require_relative 'lobbying_disclosure_client/v1/filings'
79
+ require_relative 'lobbying_disclosure_client/v1/filings/list_filings'
80
+ require_relative 'lobbying_disclosure_client/v1/filings/retrieve_filing'
81
+
82
+ require_relative 'lobbying_disclosure_client/v1/registrants'
83
+ require_relative 'lobbying_disclosure_client/v1/registrants/list_registrants'
84
+ require_relative 'lobbying_disclosure_client/v1/registrants/retrieve_registrant'
85
+
86
+ require_relative 'lobbying_disclosure_client/v1/clients'
87
+ require_relative 'lobbying_disclosure_client/v1/clients/list_clients'
88
+ require_relative 'lobbying_disclosure_client/v1/clients/retrieve_client'
89
+
90
+ require_relative 'lobbying_disclosure_client/v1/lobbyists'
91
+ require_relative 'lobbying_disclosure_client/v1/lobbyists/list_lobbyists'
92
+ require_relative 'lobbying_disclosure_client/v1/lobbyists/retrieve_lobbyist'
93
+
94
+ require_relative 'lobbying_disclosure_client/util'
95
+
96
+ module LobbyingDisclosureClient
97
+ class << self
98
+ extend T::Sig
99
+
100
+ @api_key = T.let(nil, T.nilable(String))
101
+
102
+ sig { returns(T.nilable(String)) }
103
+ attr_accessor :api_key
104
+ end
105
+ end
data/sorbet/config ADDED
@@ -0,0 +1,4 @@
1
+ --dir
2
+ .
3
+ --ignore=tmp/
4
+ --ignore=vendor/
@@ -0,0 +1 @@
1
+ **/*.rbi linguist-generated=true
@@ -0,0 +1,150 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `erubi` gem.
5
+ # Please instead update this file by running `bin/tapioca gem erubi`.
6
+
7
+
8
+ # source://erubi//lib/erubi.rb#3
9
+ module Erubi
10
+ private
11
+
12
+ def h(_arg0); end
13
+
14
+ class << self
15
+ def h(_arg0); end
16
+ end
17
+ end
18
+
19
+ # source://erubi//lib/erubi.rb#51
20
+ class Erubi::Engine
21
+ # Initialize a new Erubi::Engine. Options:
22
+ # +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
23
+ # +:bufvar+ :: The variable name to use for the buffer variable, as a string.
24
+ # +:chain_appends+ :: Whether to chain <tt><<</t> calls to the buffer variable. Offers better
25
+ # performance, but can cause issues when the buffer variable is reassigned during
26
+ # template rendering (default +false+).
27
+ # +:ensure+ :: Wrap the template in a begin/ensure block restoring the previous value of bufvar.
28
+ # +:escapefunc+ :: The function to use for escaping, as a string (default: <tt>'::Erubi.h'</tt>).
29
+ # +:escape+ :: Whether to make <tt><%=</tt> escape by default, and <tt><%==</tt> not escape by default.
30
+ # +:escape_html+ :: Same as +:escape+, with lower priority.
31
+ # +:filename+ :: The filename for the template.
32
+ # the resulting source code. Note this may cause problems if you are wrapping the resulting
33
+ # source code in other code, because the magic comment only has an effect at the beginning of
34
+ # the file, and having the magic comment later in the file can trigger warnings.
35
+ # +:freeze_template_literals+ :: Whether to suffix all literal strings for template code with <tt>.freeze</tt>
36
+ # (default: +true+ on Ruby 2.1+, +false+ on Ruby 2.0 and older).
37
+ # Can be set to +false+ on Ruby 2.3+ when frozen string literals are enabled
38
+ # in order to improve performance.
39
+ # +:literal_prefix+ :: The prefix to output when using escaped tag delimiters (default <tt>'<%'</tt>).
40
+ # +:literal_postfix+ :: The postfix to output when using escaped tag delimiters (default <tt>'%>'</tt>).
41
+ # +:outvar+ :: Same as +:bufvar+, with lower priority.
42
+ # +:postamble+ :: The postamble for the template, by default returns the resulting source code.
43
+ # +:preamble+ :: The preamble for the template, by default initializes the buffer variable.
44
+ # +:regexp+ :: The regexp to use for scanning.
45
+ # +:src+ :: The initial value to use for the source code, an empty string by default.
46
+ # +:trim+ :: Whether to trim leading and trailing whitespace, true by default.
47
+ #
48
+ # @return [Engine] a new instance of Engine
49
+ #
50
+ # source://erubi//lib/erubi.rb#91
51
+ def initialize(input, properties = T.unsafe(nil)); end
52
+
53
+ # The variable name used for the buffer variable.
54
+ #
55
+ # source://erubi//lib/erubi.rb#62
56
+ def bufvar; end
57
+
58
+ # The filename of the template, if one was given.
59
+ #
60
+ # source://erubi//lib/erubi.rb#59
61
+ def filename; end
62
+
63
+ # The frozen ruby source code generated from the template, which can be evaled.
64
+ #
65
+ # source://erubi//lib/erubi.rb#56
66
+ def src; end
67
+
68
+ private
69
+
70
+ # Add ruby code to the template
71
+ #
72
+ # source://erubi//lib/erubi.rb#223
73
+ def add_code(code); end
74
+
75
+ # Add the given ruby expression result to the template,
76
+ # escaping it based on the indicator given and escape flag.
77
+ #
78
+ # source://erubi//lib/erubi.rb#232
79
+ def add_expression(indicator, code); end
80
+
81
+ # Add the result of Ruby expression to the template
82
+ #
83
+ # source://erubi//lib/erubi.rb#241
84
+ def add_expression_result(code); end
85
+
86
+ # Add the escaped result of Ruby expression to the template
87
+ #
88
+ # source://erubi//lib/erubi.rb#246
89
+ def add_expression_result_escaped(code); end
90
+
91
+ # Add the given postamble to the src. Can be overridden in subclasses
92
+ # to make additional changes to src that depend on the current state.
93
+ #
94
+ # source://erubi//lib/erubi.rb#252
95
+ def add_postamble(postamble); end
96
+
97
+ # Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
98
+ # Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
99
+ #
100
+ # source://erubi//lib/erubi.rb#210
101
+ def add_text(text); end
102
+
103
+ # Raise an exception, as the base engine class does not support handling other indicators.
104
+ #
105
+ # @raise [ArgumentError]
106
+ #
107
+ # source://erubi//lib/erubi.rb#258
108
+ def handle(indicator, code, tailch, rspace, lspace); end
109
+
110
+ # Make sure that any current expression has been terminated.
111
+ # The default is to terminate all expressions, but when
112
+ # the chain_appends option is used, expressions may not be
113
+ # terminated.
114
+ #
115
+ # source://erubi//lib/erubi.rb#286
116
+ def terminate_expression; end
117
+
118
+ # Make sure the buffer variable is the target of the next append
119
+ # before yielding to the block. Mark that the buffer is the target
120
+ # of the next append after the block executes.
121
+ #
122
+ # This method should only be called if the block will result in
123
+ # code where << will append to the bufvar.
124
+ #
125
+ # source://erubi//lib/erubi.rb#268
126
+ def with_buffer; end
127
+ end
128
+
129
+ # The default regular expression used for scanning.
130
+ #
131
+ # source://erubi//lib/erubi.rb#53
132
+ Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
133
+
134
+ # source://erubi//lib/erubi.rb#17
135
+ Erubi::FREEZE_TEMPLATE_LITERALS = T.let(T.unsafe(nil), TrueClass)
136
+
137
+ # source://erubi//lib/erubi.rb#15
138
+ Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol)
139
+
140
+ # source://erubi//lib/erubi.rb#8
141
+ Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer)
142
+
143
+ # source://erubi//lib/erubi.rb#9
144
+ Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer)
145
+
146
+ # source://erubi//lib/erubi.rb#16
147
+ Erubi::SKIP_DEFINED_FOR_INSTANCE_VARIABLE = T.let(T.unsafe(nil), TrueClass)
148
+
149
+ # source://erubi//lib/erubi.rb#4
150
+ Erubi::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,72 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `minitest-stub-const` gem.
5
+ # Please instead update this file by running `bin/tapioca gem minitest-stub-const`.
6
+
7
+
8
+ # source://minitest-stub-const//lib/minitest/stub_const.rb#1
9
+ class Object < ::BasicObject
10
+ include ::Kernel
11
+ include ::PP::ObjectMixin
12
+
13
+ # source://minitest-stub-const//lib/minitest/stub_const.rb#90
14
+ def silence_warnings; end
15
+
16
+ # Replace the +value+ of constant +name+ for the duration of a
17
+ # +block+. This is especially useful when testing that the expected
18
+ # class methods are being called on a Module or Class instance.
19
+ #
20
+ # Example:
21
+ #
22
+ # module Foo
23
+ # BAR = :original
24
+ # end
25
+ #
26
+ # Foo.stub_const(:BAR, :stubbed) do
27
+ # Foo::BAR
28
+ # end
29
+ # # => :stubbed
30
+ #
31
+ # Foo::BAR
32
+ # # => :original
33
+ #
34
+ # source://minitest-stub-const//lib/minitest/stub_const.rb#19
35
+ def stub_const(name, val = T.unsafe(nil), &block); end
36
+
37
+ # Same as stub_const except it supports a Hash of +name+ to +value+ pairs
38
+ # of the constants that will be stubbed for the duration of the +block+.
39
+ #
40
+ # Example:
41
+ #
42
+ # module Foo
43
+ # BAR = :original1
44
+ # BAZ = :original2
45
+ # end
46
+ #
47
+ # Foo.stub_consts(BAR: :stubble, BAZ: :stubby) do
48
+ # [Foo::BAR, Foo::BAZ]
49
+ # end
50
+ # # => [:stubble, :stubby]
51
+ #
52
+ # [Foo::BAR, Foo::BAZ]
53
+ # # => [:original1, :original2]
54
+ #
55
+ # source://minitest-stub-const//lib/minitest/stub_const.rb#40
56
+ def stub_consts(consts, &block); end
57
+
58
+ # Remove the constant +name+ for the duration of a block. This is
59
+ # useful when testing code that checks whether a constant is defined
60
+ # or not. Simply yields to the passed block if the constant is not
61
+ # currently defined.
62
+ #
63
+ # Example:
64
+ #
65
+ # Object.stub_remove_const(:File) do
66
+ # "Look ma, no File!" unless defined?(File)
67
+ # end
68
+ # # => "Look ma, no File!"
69
+ #
70
+ # source://minitest-stub-const//lib/minitest/stub_const.rb#73
71
+ def stub_remove_const(name); end
72
+ end