lobbying_disclosure_client 0.0.2 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c84574266558459a47c81a0f1a792ddfece05c898536b5e69a284e28ebca478
4
- data.tar.gz: 8cf562df0509ef30bc14ec054c7520d4a9dd48913c4f3e1c7708cc41e4e61b40
3
+ metadata.gz: 8da84fc586f47879e5194c559e1e65f599a47d555f1ba38a747b7fbce5161870
4
+ data.tar.gz: 73c6382eb65dd5cb00fb6bde1b917c41049fcdf79259bf6769e00b6f58897551
5
5
  SHA512:
6
- metadata.gz: 4a3acd56fbcf0b91851767ad02fcac1531da46d99f66832625964631753102012c59f39f1bddf0b8f913809434ab945ee7d8007587cd51dbc134abd9ec514a35
7
- data.tar.gz: c5c1fa783a63798e00e8d98b01c2efff86c925b5ab6f293b0fb021e2675a979ad7eac76c8178c7c5afaf1f324311e3c5de9460843a8ff615a13f823bd099661d
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
@@ -32,7 +32,7 @@ module LobbyingDisclosureClient
32
32
  const :registrant_country, String
33
33
  const :registrant_different_address, T.nilable(T::Boolean)
34
34
  const :registrant_ppb_country, T.nilable(String)
35
- const :registrant_state, LobbyingDisclosureClient::Enums::State
35
+ const :registrant_state, T.nilable(LobbyingDisclosureClient::Enums::State)
36
36
  const :registrant_zip, T.nilable(String)
37
37
  const :termination_date, T.nilable(Date)
38
38
  const :url, String
@@ -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
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module LobbyingDisclosureClient
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.4'
6
6
  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.2
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: 2024-12-05 00:00:00.000000000 Z
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