spotted 0.7.0 → 0.8.0

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.
@@ -1,40 +1,40 @@
1
1
  module Spotted
2
2
  module Models
3
- type search_retrieve_response =
3
+ type search_search_response =
4
4
  {
5
- albums: Spotted::Models::SearchRetrieveResponse::Albums,
6
- artists: Spotted::Models::SearchRetrieveResponse::Artists,
7
- audiobooks: Spotted::Models::SearchRetrieveResponse::Audiobooks,
8
- episodes: Spotted::Models::SearchRetrieveResponse::Episodes,
5
+ albums: Spotted::Models::SearchSearchResponse::Albums,
6
+ artists: Spotted::Models::SearchSearchResponse::Artists,
7
+ audiobooks: Spotted::Models::SearchSearchResponse::Audiobooks,
8
+ episodes: Spotted::Models::SearchSearchResponse::Episodes,
9
9
  playlists: Spotted::PagingPlaylistObject,
10
- shows: Spotted::Models::SearchRetrieveResponse::Shows,
11
- tracks: Spotted::Models::SearchRetrieveResponse::Tracks
10
+ shows: Spotted::Models::SearchSearchResponse::Shows,
11
+ tracks: Spotted::Models::SearchSearchResponse::Tracks
12
12
  }
13
13
 
14
- class SearchRetrieveResponse < Spotted::Internal::Type::BaseModel
15
- attr_reader albums: Spotted::Models::SearchRetrieveResponse::Albums?
14
+ class SearchSearchResponse < Spotted::Internal::Type::BaseModel
15
+ attr_reader albums: Spotted::Models::SearchSearchResponse::Albums?
16
16
 
17
17
  def albums=: (
18
- Spotted::Models::SearchRetrieveResponse::Albums
19
- ) -> Spotted::Models::SearchRetrieveResponse::Albums
18
+ Spotted::Models::SearchSearchResponse::Albums
19
+ ) -> Spotted::Models::SearchSearchResponse::Albums
20
20
 
21
- attr_reader artists: Spotted::Models::SearchRetrieveResponse::Artists?
21
+ attr_reader artists: Spotted::Models::SearchSearchResponse::Artists?
22
22
 
23
23
  def artists=: (
24
- Spotted::Models::SearchRetrieveResponse::Artists
25
- ) -> Spotted::Models::SearchRetrieveResponse::Artists
24
+ Spotted::Models::SearchSearchResponse::Artists
25
+ ) -> Spotted::Models::SearchSearchResponse::Artists
26
26
 
27
- attr_reader audiobooks: Spotted::Models::SearchRetrieveResponse::Audiobooks?
27
+ attr_reader audiobooks: Spotted::Models::SearchSearchResponse::Audiobooks?
28
28
 
29
29
  def audiobooks=: (
30
- Spotted::Models::SearchRetrieveResponse::Audiobooks
31
- ) -> Spotted::Models::SearchRetrieveResponse::Audiobooks
30
+ Spotted::Models::SearchSearchResponse::Audiobooks
31
+ ) -> Spotted::Models::SearchSearchResponse::Audiobooks
32
32
 
33
- attr_reader episodes: Spotted::Models::SearchRetrieveResponse::Episodes?
33
+ attr_reader episodes: Spotted::Models::SearchSearchResponse::Episodes?
34
34
 
35
35
  def episodes=: (
36
- Spotted::Models::SearchRetrieveResponse::Episodes
37
- ) -> Spotted::Models::SearchRetrieveResponse::Episodes
36
+ Spotted::Models::SearchSearchResponse::Episodes
37
+ ) -> Spotted::Models::SearchSearchResponse::Episodes
38
38
 
39
39
  attr_reader playlists: Spotted::PagingPlaylistObject?
40
40
 
@@ -42,42 +42,42 @@ module Spotted
42
42
  Spotted::PagingPlaylistObject
43
43
  ) -> Spotted::PagingPlaylistObject
44
44
 
45
- attr_reader shows: Spotted::Models::SearchRetrieveResponse::Shows?
45
+ attr_reader shows: Spotted::Models::SearchSearchResponse::Shows?
46
46
 
47
47
  def shows=: (
48
- Spotted::Models::SearchRetrieveResponse::Shows
49
- ) -> Spotted::Models::SearchRetrieveResponse::Shows
48
+ Spotted::Models::SearchSearchResponse::Shows
49
+ ) -> Spotted::Models::SearchSearchResponse::Shows
50
50
 
51
- attr_reader tracks: Spotted::Models::SearchRetrieveResponse::Tracks?
51
+ attr_reader tracks: Spotted::Models::SearchSearchResponse::Tracks?
52
52
 
53
53
  def tracks=: (
54
- Spotted::Models::SearchRetrieveResponse::Tracks
55
- ) -> Spotted::Models::SearchRetrieveResponse::Tracks
54
+ Spotted::Models::SearchSearchResponse::Tracks
55
+ ) -> Spotted::Models::SearchSearchResponse::Tracks
56
56
 
57
57
  def initialize: (
58
- ?albums: Spotted::Models::SearchRetrieveResponse::Albums,
59
- ?artists: Spotted::Models::SearchRetrieveResponse::Artists,
60
- ?audiobooks: Spotted::Models::SearchRetrieveResponse::Audiobooks,
61
- ?episodes: Spotted::Models::SearchRetrieveResponse::Episodes,
58
+ ?albums: Spotted::Models::SearchSearchResponse::Albums,
59
+ ?artists: Spotted::Models::SearchSearchResponse::Artists,
60
+ ?audiobooks: Spotted::Models::SearchSearchResponse::Audiobooks,
61
+ ?episodes: Spotted::Models::SearchSearchResponse::Episodes,
62
62
  ?playlists: Spotted::PagingPlaylistObject,
63
- ?shows: Spotted::Models::SearchRetrieveResponse::Shows,
64
- ?tracks: Spotted::Models::SearchRetrieveResponse::Tracks
63
+ ?shows: Spotted::Models::SearchSearchResponse::Shows,
64
+ ?tracks: Spotted::Models::SearchSearchResponse::Tracks
65
65
  ) -> void
66
66
 
67
67
  def to_hash: -> {
68
- albums: Spotted::Models::SearchRetrieveResponse::Albums,
69
- artists: Spotted::Models::SearchRetrieveResponse::Artists,
70
- audiobooks: Spotted::Models::SearchRetrieveResponse::Audiobooks,
71
- episodes: Spotted::Models::SearchRetrieveResponse::Episodes,
68
+ albums: Spotted::Models::SearchSearchResponse::Albums,
69
+ artists: Spotted::Models::SearchSearchResponse::Artists,
70
+ audiobooks: Spotted::Models::SearchSearchResponse::Audiobooks,
71
+ episodes: Spotted::Models::SearchSearchResponse::Episodes,
72
72
  playlists: Spotted::PagingPlaylistObject,
73
- shows: Spotted::Models::SearchRetrieveResponse::Shows,
74
- tracks: Spotted::Models::SearchRetrieveResponse::Tracks
73
+ shows: Spotted::Models::SearchSearchResponse::Shows,
74
+ tracks: Spotted::Models::SearchSearchResponse::Tracks
75
75
  }
76
76
 
77
77
  type albums =
78
78
  {
79
79
  href: String,
80
- items: ::Array[Spotted::Models::SearchRetrieveResponse::Albums::Item],
80
+ items: ::Array[Spotted::Models::SearchSearchResponse::Albums::Item],
81
81
  limit: Integer,
82
82
  next_: String?,
83
83
  offset: Integer,
@@ -88,7 +88,7 @@ module Spotted
88
88
  class Albums < Spotted::Internal::Type::BaseModel
89
89
  attr_accessor href: String
90
90
 
91
- attr_accessor items: ::Array[Spotted::Models::SearchRetrieveResponse::Albums::Item]
91
+ attr_accessor items: ::Array[Spotted::Models::SearchSearchResponse::Albums::Item]
92
92
 
93
93
  attr_accessor limit: Integer
94
94
 
@@ -102,7 +102,7 @@ module Spotted
102
102
 
103
103
  def initialize: (
104
104
  href: String,
105
- items: ::Array[Spotted::Models::SearchRetrieveResponse::Albums::Item],
105
+ items: ::Array[Spotted::Models::SearchSearchResponse::Albums::Item],
106
106
  limit: Integer,
107
107
  next_: String?,
108
108
  offset: Integer,
@@ -112,7 +112,7 @@ module Spotted
112
112
 
113
113
  def to_hash: -> {
114
114
  href: String,
115
- items: ::Array[Spotted::Models::SearchRetrieveResponse::Albums::Item],
115
+ items: ::Array[Spotted::Models::SearchSearchResponse::Albums::Item],
116
116
  limit: Integer,
117
117
  next_: String?,
118
118
  offset: Integer,
@@ -123,7 +123,7 @@ module Spotted
123
123
  type item =
124
124
  {
125
125
  id: String,
126
- album_type: Spotted::Models::SearchRetrieveResponse::Albums::Item::album_type,
126
+ album_type: Spotted::Models::SearchSearchResponse::Albums::Item::album_type,
127
127
  artists: ::Array[Spotted::SimplifiedArtistObject],
128
128
  available_markets: ::Array[String],
129
129
  external_urls: Spotted::ExternalURLObject,
@@ -131,9 +131,9 @@ module Spotted
131
131
  images: ::Array[Spotted::ImageObject],
132
132
  name: String,
133
133
  release_date: String,
134
- release_date_precision: Spotted::Models::SearchRetrieveResponse::Albums::Item::release_date_precision,
134
+ release_date_precision: Spotted::Models::SearchSearchResponse::Albums::Item::release_date_precision,
135
135
  total_tracks: Integer,
136
- type: Spotted::Models::SearchRetrieveResponse::Albums::Item::type_,
136
+ type: Spotted::Models::SearchSearchResponse::Albums::Item::type_,
137
137
  uri: String,
138
138
  restrictions: Spotted::AlbumRestrictionObject
139
139
  }
@@ -141,7 +141,7 @@ module Spotted
141
141
  class Item < Spotted::Internal::Type::BaseModel
142
142
  attr_accessor id: String
143
143
 
144
- attr_accessor album_type: Spotted::Models::SearchRetrieveResponse::Albums::Item::album_type
144
+ attr_accessor album_type: Spotted::Models::SearchSearchResponse::Albums::Item::album_type
145
145
 
146
146
  attr_accessor artists: ::Array[Spotted::SimplifiedArtistObject]
147
147
 
@@ -157,11 +157,11 @@ module Spotted
157
157
 
158
158
  attr_accessor release_date: String
159
159
 
160
- attr_accessor release_date_precision: Spotted::Models::SearchRetrieveResponse::Albums::Item::release_date_precision
160
+ attr_accessor release_date_precision: Spotted::Models::SearchSearchResponse::Albums::Item::release_date_precision
161
161
 
162
162
  attr_accessor total_tracks: Integer
163
163
 
164
- attr_accessor type: Spotted::Models::SearchRetrieveResponse::Albums::Item::type_
164
+ attr_accessor type: Spotted::Models::SearchSearchResponse::Albums::Item::type_
165
165
 
166
166
  attr_accessor uri: String
167
167
 
@@ -173,7 +173,7 @@ module Spotted
173
173
 
174
174
  def initialize: (
175
175
  id: String,
176
- album_type: Spotted::Models::SearchRetrieveResponse::Albums::Item::album_type,
176
+ album_type: Spotted::Models::SearchSearchResponse::Albums::Item::album_type,
177
177
  artists: ::Array[Spotted::SimplifiedArtistObject],
178
178
  available_markets: ::Array[String],
179
179
  external_urls: Spotted::ExternalURLObject,
@@ -181,16 +181,16 @@ module Spotted
181
181
  images: ::Array[Spotted::ImageObject],
182
182
  name: String,
183
183
  release_date: String,
184
- release_date_precision: Spotted::Models::SearchRetrieveResponse::Albums::Item::release_date_precision,
184
+ release_date_precision: Spotted::Models::SearchSearchResponse::Albums::Item::release_date_precision,
185
185
  total_tracks: Integer,
186
- type: Spotted::Models::SearchRetrieveResponse::Albums::Item::type_,
186
+ type: Spotted::Models::SearchSearchResponse::Albums::Item::type_,
187
187
  uri: String,
188
188
  ?restrictions: Spotted::AlbumRestrictionObject
189
189
  ) -> void
190
190
 
191
191
  def to_hash: -> {
192
192
  id: String,
193
- album_type: Spotted::Models::SearchRetrieveResponse::Albums::Item::album_type,
193
+ album_type: Spotted::Models::SearchSearchResponse::Albums::Item::album_type,
194
194
  artists: ::Array[Spotted::SimplifiedArtistObject],
195
195
  available_markets: ::Array[String],
196
196
  external_urls: Spotted::ExternalURLObject,
@@ -198,9 +198,9 @@ module Spotted
198
198
  images: ::Array[Spotted::ImageObject],
199
199
  name: String,
200
200
  release_date: String,
201
- release_date_precision: Spotted::Models::SearchRetrieveResponse::Albums::Item::release_date_precision,
201
+ release_date_precision: Spotted::Models::SearchSearchResponse::Albums::Item::release_date_precision,
202
202
  total_tracks: Integer,
203
- type: Spotted::Models::SearchRetrieveResponse::Albums::Item::type_,
203
+ type: Spotted::Models::SearchSearchResponse::Albums::Item::type_,
204
204
  uri: String,
205
205
  restrictions: Spotted::AlbumRestrictionObject
206
206
  }
@@ -214,7 +214,7 @@ module Spotted
214
214
  SINGLE: :single
215
215
  COMPILATION: :compilation
216
216
 
217
- def self?.values: -> ::Array[Spotted::Models::SearchRetrieveResponse::Albums::Item::album_type]
217
+ def self?.values: -> ::Array[Spotted::Models::SearchSearchResponse::Albums::Item::album_type]
218
218
  end
219
219
 
220
220
  type release_date_precision = :year | :month | :day
@@ -226,7 +226,7 @@ module Spotted
226
226
  MONTH: :month
227
227
  DAY: :day
228
228
 
229
- def self?.values: -> ::Array[Spotted::Models::SearchRetrieveResponse::Albums::Item::release_date_precision]
229
+ def self?.values: -> ::Array[Spotted::Models::SearchSearchResponse::Albums::Item::release_date_precision]
230
230
  end
231
231
 
232
232
  type type_ = :album
@@ -236,7 +236,7 @@ module Spotted
236
236
 
237
237
  ALBUM: :album
238
238
 
239
- def self?.values: -> ::Array[Spotted::Models::SearchRetrieveResponse::Albums::Item::type_]
239
+ def self?.values: -> ::Array[Spotted::Models::SearchSearchResponse::Albums::Item::type_]
240
240
  end
241
241
  end
242
242
  end
@@ -95,7 +95,7 @@ module Spotted
95
95
 
96
96
  class ResumePointObject = Spotted::Models::ResumePointObject
97
97
 
98
- class SearchRetrieveParams = Spotted::Models::SearchRetrieveParams
98
+ class SearchSearchParams = Spotted::Models::SearchSearchParams
99
99
 
100
100
  class ShowBase = Spotted::Models::ShowBase
101
101
 
@@ -1,15 +1,15 @@
1
1
  module Spotted
2
2
  module Resources
3
3
  class Search
4
- def retrieve: (
4
+ def search: (
5
5
  q: String,
6
- type: ::Array[Spotted::Models::SearchRetrieveParams::type_],
7
- ?include_external: Spotted::Models::SearchRetrieveParams::include_external,
6
+ type: ::Array[Spotted::Models::SearchSearchParams::type_],
7
+ ?include_external: Spotted::Models::SearchSearchParams::include_external,
8
8
  ?limit: Integer,
9
9
  ?market: String,
10
10
  ?offset: Integer,
11
11
  ?request_options: Spotted::request_opts
12
- ) -> Spotted::Models::SearchRetrieveResponse
12
+ ) -> Spotted::Models::SearchSearchResponse
13
13
 
14
14
  def initialize: (client: Spotted::Client) -> void
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spotted
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spotted
@@ -204,8 +204,8 @@ files:
204
204
  - lib/spotted/models/recommendation_list_available_genre_seeds_params.rb
205
205
  - lib/spotted/models/recommendation_list_available_genre_seeds_response.rb
206
206
  - lib/spotted/models/resume_point_object.rb
207
- - lib/spotted/models/search_retrieve_params.rb
208
- - lib/spotted/models/search_retrieve_response.rb
207
+ - lib/spotted/models/search_search_params.rb
208
+ - lib/spotted/models/search_search_response.rb
209
209
  - lib/spotted/models/show_base.rb
210
210
  - lib/spotted/models/show_list_episodes_params.rb
211
211
  - lib/spotted/models/show_list_params.rb
@@ -430,8 +430,8 @@ files:
430
430
  - rbi/spotted/models/recommendation_list_available_genre_seeds_params.rbi
431
431
  - rbi/spotted/models/recommendation_list_available_genre_seeds_response.rbi
432
432
  - rbi/spotted/models/resume_point_object.rbi
433
- - rbi/spotted/models/search_retrieve_params.rbi
434
- - rbi/spotted/models/search_retrieve_response.rbi
433
+ - rbi/spotted/models/search_search_params.rbi
434
+ - rbi/spotted/models/search_search_response.rbi
435
435
  - rbi/spotted/models/show_base.rbi
436
436
  - rbi/spotted/models/show_list_episodes_params.rbi
437
437
  - rbi/spotted/models/show_list_params.rbi
@@ -655,8 +655,8 @@ files:
655
655
  - sig/spotted/models/recommendation_list_available_genre_seeds_params.rbs
656
656
  - sig/spotted/models/recommendation_list_available_genre_seeds_response.rbs
657
657
  - sig/spotted/models/resume_point_object.rbs
658
- - sig/spotted/models/search_retrieve_params.rbs
659
- - sig/spotted/models/search_retrieve_response.rbs
658
+ - sig/spotted/models/search_search_params.rbs
659
+ - sig/spotted/models/search_search_response.rbs
660
660
  - sig/spotted/models/show_base.rbs
661
661
  - sig/spotted/models/show_list_episodes_params.rbs
662
662
  - sig/spotted/models/show_list_params.rbs