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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/spotted/models/{search_retrieve_params.rb → search_search_params.rb} +9 -9
- data/lib/spotted/models/{search_retrieve_response.rb → search_search_response.rb} +48 -48
- data/lib/spotted/models.rb +1 -1
- data/lib/spotted/resources/search.rb +9 -9
- data/lib/spotted/version.rb +1 -1
- data/lib/spotted.rb +2 -2
- data/rbi/spotted/models/{search_retrieve_params.rbi → search_search_params.rbi} +21 -24
- data/rbi/spotted/models/{search_retrieve_response.rbi → search_search_response.rbi} +58 -70
- data/rbi/spotted/models.rbi +1 -1
- data/rbi/spotted/resources/search.rbi +4 -4
- data/sig/spotted/models/{search_retrieve_params.rbs → search_search_params.rbs} +14 -14
- data/sig/spotted/models/{search_retrieve_response.rbs → search_search_response.rbs} +57 -57
- data/sig/spotted/models.rbs +1 -1
- data/sig/spotted/resources/search.rbs +4 -4
- metadata +7 -7
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
module Spotted
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type search_search_response =
|
|
4
4
|
{
|
|
5
|
-
albums: Spotted::Models::
|
|
6
|
-
artists: Spotted::Models::
|
|
7
|
-
audiobooks: Spotted::Models::
|
|
8
|
-
episodes: Spotted::Models::
|
|
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::
|
|
11
|
-
tracks: Spotted::Models::
|
|
10
|
+
shows: Spotted::Models::SearchSearchResponse::Shows,
|
|
11
|
+
tracks: Spotted::Models::SearchSearchResponse::Tracks
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
class
|
|
15
|
-
attr_reader albums: Spotted::Models::
|
|
14
|
+
class SearchSearchResponse < Spotted::Internal::Type::BaseModel
|
|
15
|
+
attr_reader albums: Spotted::Models::SearchSearchResponse::Albums?
|
|
16
16
|
|
|
17
17
|
def albums=: (
|
|
18
|
-
Spotted::Models::
|
|
19
|
-
) -> Spotted::Models::
|
|
18
|
+
Spotted::Models::SearchSearchResponse::Albums
|
|
19
|
+
) -> Spotted::Models::SearchSearchResponse::Albums
|
|
20
20
|
|
|
21
|
-
attr_reader artists: Spotted::Models::
|
|
21
|
+
attr_reader artists: Spotted::Models::SearchSearchResponse::Artists?
|
|
22
22
|
|
|
23
23
|
def artists=: (
|
|
24
|
-
Spotted::Models::
|
|
25
|
-
) -> Spotted::Models::
|
|
24
|
+
Spotted::Models::SearchSearchResponse::Artists
|
|
25
|
+
) -> Spotted::Models::SearchSearchResponse::Artists
|
|
26
26
|
|
|
27
|
-
attr_reader audiobooks: Spotted::Models::
|
|
27
|
+
attr_reader audiobooks: Spotted::Models::SearchSearchResponse::Audiobooks?
|
|
28
28
|
|
|
29
29
|
def audiobooks=: (
|
|
30
|
-
Spotted::Models::
|
|
31
|
-
) -> Spotted::Models::
|
|
30
|
+
Spotted::Models::SearchSearchResponse::Audiobooks
|
|
31
|
+
) -> Spotted::Models::SearchSearchResponse::Audiobooks
|
|
32
32
|
|
|
33
|
-
attr_reader episodes: Spotted::Models::
|
|
33
|
+
attr_reader episodes: Spotted::Models::SearchSearchResponse::Episodes?
|
|
34
34
|
|
|
35
35
|
def episodes=: (
|
|
36
|
-
Spotted::Models::
|
|
37
|
-
) -> Spotted::Models::
|
|
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::
|
|
45
|
+
attr_reader shows: Spotted::Models::SearchSearchResponse::Shows?
|
|
46
46
|
|
|
47
47
|
def shows=: (
|
|
48
|
-
Spotted::Models::
|
|
49
|
-
) -> Spotted::Models::
|
|
48
|
+
Spotted::Models::SearchSearchResponse::Shows
|
|
49
|
+
) -> Spotted::Models::SearchSearchResponse::Shows
|
|
50
50
|
|
|
51
|
-
attr_reader tracks: Spotted::Models::
|
|
51
|
+
attr_reader tracks: Spotted::Models::SearchSearchResponse::Tracks?
|
|
52
52
|
|
|
53
53
|
def tracks=: (
|
|
54
|
-
Spotted::Models::
|
|
55
|
-
) -> Spotted::Models::
|
|
54
|
+
Spotted::Models::SearchSearchResponse::Tracks
|
|
55
|
+
) -> Spotted::Models::SearchSearchResponse::Tracks
|
|
56
56
|
|
|
57
57
|
def initialize: (
|
|
58
|
-
?albums: Spotted::Models::
|
|
59
|
-
?artists: Spotted::Models::
|
|
60
|
-
?audiobooks: Spotted::Models::
|
|
61
|
-
?episodes: Spotted::Models::
|
|
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::
|
|
64
|
-
?tracks: Spotted::Models::
|
|
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::
|
|
69
|
-
artists: Spotted::Models::
|
|
70
|
-
audiobooks: Spotted::Models::
|
|
71
|
-
episodes: Spotted::Models::
|
|
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::
|
|
74
|
-
tracks: Spotted::Models::
|
|
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::
|
|
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::
|
|
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::
|
|
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::
|
|
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::
|
|
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::
|
|
134
|
+
release_date_precision: Spotted::Models::SearchSearchResponse::Albums::Item::release_date_precision,
|
|
135
135
|
total_tracks: Integer,
|
|
136
|
-
type: Spotted::Models::
|
|
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::
|
|
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::
|
|
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::
|
|
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::
|
|
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::
|
|
184
|
+
release_date_precision: Spotted::Models::SearchSearchResponse::Albums::Item::release_date_precision,
|
|
185
185
|
total_tracks: Integer,
|
|
186
|
-
type: Spotted::Models::
|
|
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::
|
|
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::
|
|
201
|
+
release_date_precision: Spotted::Models::SearchSearchResponse::Albums::Item::release_date_precision,
|
|
202
202
|
total_tracks: Integer,
|
|
203
|
-
type: Spotted::Models::
|
|
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::
|
|
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::
|
|
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::
|
|
239
|
+
def self?.values: -> ::Array[Spotted::Models::SearchSearchResponse::Albums::Item::type_]
|
|
240
240
|
end
|
|
241
241
|
end
|
|
242
242
|
end
|
data/sig/spotted/models.rbs
CHANGED
|
@@ -95,7 +95,7 @@ module Spotted
|
|
|
95
95
|
|
|
96
96
|
class ResumePointObject = Spotted::Models::ResumePointObject
|
|
97
97
|
|
|
98
|
-
class
|
|
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
|
|
4
|
+
def search: (
|
|
5
5
|
q: String,
|
|
6
|
-
type: ::Array[Spotted::Models::
|
|
7
|
-
?include_external: Spotted::Models::
|
|
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::
|
|
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.
|
|
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/
|
|
208
|
-
- lib/spotted/models/
|
|
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/
|
|
434
|
-
- rbi/spotted/models/
|
|
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/
|
|
659
|
-
- sig/spotted/models/
|
|
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
|