lobbying_disclosure_client 0.0.3 → 0.0.4
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.
- checksums.yaml +4 -4
- data/lib/lobbying_disclosure_client/interfaces/list_endpoint.rb +27 -0
- data/lib/lobbying_disclosure_client/v1/clients/list_clients.rb +6 -1
- data/lib/lobbying_disclosure_client/v1/contribution_reports/list_contribution_reports.rb +6 -1
- data/lib/lobbying_disclosure_client/v1/filings/list_filings.rb +6 -1
- data/lib/lobbying_disclosure_client/v1/lobbyists/list_lobbyists.rb +6 -1
- data/lib/lobbying_disclosure_client/v1/registrants/list_registrants.rb +6 -1
- data/lib/lobbying_disclosure_client/version.rb +1 -1
- data/lib/lobbying_disclosure_client.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8da84fc586f47879e5194c559e1e65f599a47d555f1ba38a747b7fbce5161870
|
4
|
+
data.tar.gz: 73c6382eb65dd5cb00fb6bde1b917c41049fcdf79259bf6769e00b6f58897551
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 051fc69243e343c06cbc3f41f6c4b5a68b447feb085fe1e948dc1873e4a71d5a061a1b2e919221ed25e46605e6c9c497ee5aa16d757bc51794521d59442047e9
|
7
|
+
data.tar.gz: 55d82d8d2027a0099e91b2547e5c3aa6d6907e7a3904fd6b1a28d6ec8edeaa707a37e4a0770ccaf23b966973b8f388ac4ff82e0136851c34ec5b36bc012e0191
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# typed: strict
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module LobbyingDisclosureClient
|
5
|
+
module Interfaces
|
6
|
+
module ListEndpoint
|
7
|
+
extend T::Generic
|
8
|
+
extend T::Sig
|
9
|
+
interface!
|
10
|
+
|
11
|
+
module ClassMethods
|
12
|
+
extend T::Sig
|
13
|
+
extend T::Helpers
|
14
|
+
extend T::Generic
|
15
|
+
abstract!
|
16
|
+
|
17
|
+
ListEndpointInputType = type_member { { upper: LobbyingDisclosureClient::Interfaces::ListEndpointInput } }
|
18
|
+
ListEndpointOutputType = type_member { { upper: LobbyingDisclosureClient::Interfaces::ListEndpointOutput } }
|
19
|
+
|
20
|
+
sig { abstract.params(input: ListEndpointInputType).returns(ListEndpointOutputType) }
|
21
|
+
def call(input:); end
|
22
|
+
end
|
23
|
+
|
24
|
+
mixes_in_class_methods(ClassMethods)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -6,6 +6,11 @@ module LobbyingDisclosureClient
|
|
6
6
|
module Clients
|
7
7
|
class ListClients
|
8
8
|
extend T::Sig
|
9
|
+
extend T::Generic
|
10
|
+
include LobbyingDisclosureClient::Interfaces::ListEndpoint
|
11
|
+
|
12
|
+
ListEndpointInputType = type_template { { fixed: Input } }
|
13
|
+
ListEndpointOutputType = type_template { { fixed: Output } }
|
9
14
|
|
10
15
|
class Input < T::Struct
|
11
16
|
include LobbyingDisclosureClient::Interfaces::ListEndpointInput
|
@@ -33,7 +38,7 @@ module LobbyingDisclosureClient
|
|
33
38
|
end
|
34
39
|
|
35
40
|
sig do
|
36
|
-
params(
|
41
|
+
override.params(
|
37
42
|
input: Input
|
38
43
|
).returns(Output)
|
39
44
|
end
|
@@ -6,6 +6,11 @@ module LobbyingDisclosureClient
|
|
6
6
|
module ContributionReports
|
7
7
|
class ListContributionReports
|
8
8
|
extend T::Sig
|
9
|
+
extend T::Generic
|
10
|
+
include LobbyingDisclosureClient::Interfaces::ListEndpoint
|
11
|
+
|
12
|
+
ListEndpointInputType = type_template { { fixed: Input } }
|
13
|
+
ListEndpointOutputType = type_template { { fixed: Output } }
|
9
14
|
|
10
15
|
class Input < T::Struct
|
11
16
|
include LobbyingDisclosureClient::Interfaces::ListEndpointInput
|
@@ -44,7 +49,7 @@ module LobbyingDisclosureClient
|
|
44
49
|
end
|
45
50
|
|
46
51
|
sig do
|
47
|
-
params(
|
52
|
+
override.params(
|
48
53
|
input: Input
|
49
54
|
).returns(Output)
|
50
55
|
end
|
@@ -6,6 +6,11 @@ module LobbyingDisclosureClient
|
|
6
6
|
module Filings
|
7
7
|
class ListFilings
|
8
8
|
extend T::Sig
|
9
|
+
extend T::Generic
|
10
|
+
include LobbyingDisclosureClient::Interfaces::ListEndpoint
|
11
|
+
|
12
|
+
ListEndpointInputType = type_template { { fixed: Input } }
|
13
|
+
ListEndpointOutputType = type_template { { fixed: Output } }
|
9
14
|
|
10
15
|
class Input < T::Struct
|
11
16
|
include LobbyingDisclosureClient::Interfaces::ListEndpointInput
|
@@ -61,7 +66,7 @@ module LobbyingDisclosureClient
|
|
61
66
|
end
|
62
67
|
|
63
68
|
sig do
|
64
|
-
params(
|
69
|
+
override.params(
|
65
70
|
input: Input
|
66
71
|
).returns(Output)
|
67
72
|
end
|
@@ -6,6 +6,11 @@ module LobbyingDisclosureClient
|
|
6
6
|
module Lobbyists
|
7
7
|
class ListLobbyists
|
8
8
|
extend T::Sig
|
9
|
+
extend T::Generic
|
10
|
+
include LobbyingDisclosureClient::Interfaces::ListEndpoint
|
11
|
+
|
12
|
+
ListEndpointInputType = type_template { { fixed: Input } }
|
13
|
+
ListEndpointOutputType = type_template { { fixed: Output } }
|
9
14
|
|
10
15
|
class Input < T::Struct
|
11
16
|
include LobbyingDisclosureClient::Interfaces::ListEndpointInput
|
@@ -29,7 +34,7 @@ module LobbyingDisclosureClient
|
|
29
34
|
end
|
30
35
|
|
31
36
|
sig do
|
32
|
-
params(
|
37
|
+
override.params(
|
33
38
|
input: Input
|
34
39
|
).returns(Output)
|
35
40
|
end
|
@@ -6,6 +6,11 @@ module LobbyingDisclosureClient
|
|
6
6
|
module Registrants
|
7
7
|
class ListRegistrants
|
8
8
|
extend T::Sig
|
9
|
+
extend T::Generic
|
10
|
+
include LobbyingDisclosureClient::Interfaces::ListEndpoint
|
11
|
+
|
12
|
+
ListEndpointInputType = type_template { { fixed: Input } }
|
13
|
+
ListEndpointOutputType = type_template { { fixed: Output } }
|
9
14
|
|
10
15
|
class Input < T::Struct
|
11
16
|
include LobbyingDisclosureClient::Interfaces::ListEndpointInput
|
@@ -32,7 +37,7 @@ module LobbyingDisclosureClient
|
|
32
37
|
end
|
33
38
|
|
34
39
|
sig do
|
35
|
-
params(
|
40
|
+
override.params(
|
36
41
|
input: Input
|
37
42
|
).returns(Output)
|
38
43
|
end
|
@@ -14,6 +14,7 @@ require_relative 'lobbying_disclosure_client/auth/password/reset/confirm'
|
|
14
14
|
require_relative 'lobbying_disclosure_client/client'
|
15
15
|
|
16
16
|
require_relative 'lobbying_disclosure_client/interfaces'
|
17
|
+
require_relative 'lobbying_disclosure_client/interfaces/list_endpoint'
|
17
18
|
require_relative 'lobbying_disclosure_client/interfaces/list_endpoint_input'
|
18
19
|
require_relative 'lobbying_disclosure_client/interfaces/list_endpoint_output'
|
19
20
|
require_relative 'lobbying_disclosure_client/interfaces/validatable_enum'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lobbying_disclosure_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bigdecimal
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- lib/lobbying_disclosure_client/errors/unknown_error.rb
|
93
93
|
- lib/lobbying_disclosure_client/errors/unsupported_http_method_error.rb
|
94
94
|
- lib/lobbying_disclosure_client/interfaces.rb
|
95
|
+
- lib/lobbying_disclosure_client/interfaces/list_endpoint.rb
|
95
96
|
- lib/lobbying_disclosure_client/interfaces/list_endpoint_input.rb
|
96
97
|
- lib/lobbying_disclosure_client/interfaces/list_endpoint_output.rb
|
97
98
|
- lib/lobbying_disclosure_client/interfaces/validatable_enum.rb
|