spotted 0.11.0 → 0.12.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 +13 -0
- data/README.md +1 -1
- data/lib/spotted/client.rb +60 -1
- data/lib/spotted/models/album_bulk_retrieve_response.rb +13 -25
- data/lib/spotted/models/album_retrieve_response.rb +13 -25
- data/lib/spotted/models/artist_list_albums_response.rb +5 -17
- data/lib/spotted/models/audio_analysis_retrieve_response.rb +3 -8
- data/lib/spotted/models/audiobook_base.rb +4 -16
- data/lib/spotted/models/audiobook_bulk_retrieve_response.rb +8 -8
- data/lib/spotted/models/audiobook_retrieve_response.rb +8 -8
- data/lib/spotted/models/browse/category_list_response.rb +9 -9
- data/lib/spotted/models/browse_get_new_releases_response.rb +14 -26
- data/lib/spotted/models/chapter_bulk_retrieve_response.rb +5 -17
- data/lib/spotted/models/chapter_retrieve_response.rb +5 -17
- data/lib/spotted/models/episode_object.rb +5 -17
- data/lib/spotted/models/me/album_list_response.rb +13 -25
- data/lib/spotted/models/me/audiobook_list_response.rb +8 -8
- data/lib/spotted/models/me/following_bulk_retrieve_params.rb +5 -15
- data/lib/spotted/models/paging_playlist_object.rb +8 -8
- data/lib/spotted/models/playlist_retrieve_response.rb +8 -8
- data/lib/spotted/models/search_query_response.rb +54 -66
- data/lib/spotted/models/show_base.rb +4 -16
- data/lib/spotted/models/show_retrieve_response.rb +8 -8
- data/lib/spotted/models/simplified_chapter_object.rb +5 -17
- data/lib/spotted/models/simplified_episode_object.rb +5 -17
- data/lib/spotted/models/track_object.rb +5 -17
- data/lib/spotted/models/users/playlist_create_response.rb +8 -8
- data/lib/spotted/resources/me/following.rb +3 -3
- data/lib/spotted/resources/playlists/images.rb +3 -3
- data/lib/spotted/version.rb +1 -1
- data/rbi/spotted/models/album_bulk_retrieve_response.rbi +21 -52
- data/rbi/spotted/models/album_retrieve_response.rbi +21 -43
- data/rbi/spotted/models/artist_list_albums_response.rbi +7 -36
- data/rbi/spotted/models/audio_analysis_retrieve_response.rbi +3 -8
- data/rbi/spotted/models/audiobook_base.rbi +7 -25
- data/rbi/spotted/models/audiobook_bulk_retrieve_response.rbi +16 -9
- data/rbi/spotted/models/audiobook_retrieve_response.rbi +14 -9
- data/rbi/spotted/models/browse/category_list_response.rbi +31 -19
- data/rbi/spotted/models/browse_get_new_releases_response.rbi +38 -62
- data/rbi/spotted/models/chapter_bulk_retrieve_response.rbi +7 -43
- data/rbi/spotted/models/chapter_retrieve_response.rbi +7 -36
- data/rbi/spotted/models/episode_object.rbi +7 -24
- data/rbi/spotted/models/me/album_list_response.rbi +23 -52
- data/rbi/spotted/models/me/audiobook_list_response.rbi +18 -9
- data/rbi/spotted/models/me/following_bulk_retrieve_params.rbi +5 -34
- data/rbi/spotted/models/paging_playlist_object.rbi +14 -9
- data/rbi/spotted/models/playlist_retrieve_response.rbi +14 -9
- data/rbi/spotted/models/search_query_response.rbi +96 -101
- data/rbi/spotted/models/show_base.rbi +7 -23
- data/rbi/spotted/models/show_retrieve_response.rbi +14 -9
- data/rbi/spotted/models/simplified_chapter_object.rbi +7 -27
- data/rbi/spotted/models/simplified_episode_object.rbi +7 -27
- data/rbi/spotted/models/track_object.rbi +7 -26
- data/rbi/spotted/models/users/playlist_create_response.rbi +14 -9
- data/rbi/spotted/resources/me/following.rbi +3 -3
- data/rbi/spotted/resources/playlists/images.rbi +1 -1
- data/sig/spotted/models/album_bulk_retrieve_response.rbs +17 -23
- data/sig/spotted/models/album_retrieve_response.rbs +17 -23
- data/sig/spotted/models/artist_list_albums_response.rbs +5 -15
- data/sig/spotted/models/audio_analysis_retrieve_response.rbs +3 -8
- data/sig/spotted/models/audiobook_base.rbs +5 -15
- data/sig/spotted/models/audiobook_bulk_retrieve_response.rbs +12 -8
- data/sig/spotted/models/audiobook_retrieve_response.rbs +12 -8
- data/sig/spotted/models/browse/category_list_response.rbs +12 -8
- data/sig/spotted/models/browse_get_new_releases_response.rbs +17 -23
- data/sig/spotted/models/chapter_bulk_retrieve_response.rbs +5 -15
- data/sig/spotted/models/chapter_retrieve_response.rbs +5 -15
- data/sig/spotted/models/episode_object.rbs +5 -15
- data/sig/spotted/models/me/album_list_response.rbs +17 -23
- data/sig/spotted/models/me/audiobook_list_response.rbs +12 -8
- data/sig/spotted/models/me/following_bulk_retrieve_params.rbs +4 -18
- data/sig/spotted/models/paging_playlist_object.rbs +12 -8
- data/sig/spotted/models/playlist_retrieve_response.rbs +12 -8
- data/sig/spotted/models/search_query_response.rbs +75 -63
- data/sig/spotted/models/show_base.rbs +5 -15
- data/sig/spotted/models/show_retrieve_response.rbs +12 -8
- data/sig/spotted/models/simplified_chapter_object.rbs +5 -15
- data/sig/spotted/models/simplified_episode_object.rbs +5 -15
- data/sig/spotted/models/track_object.rbs +5 -15
- data/sig/spotted/models/users/playlist_create_response.rbs +12 -8
- data/sig/spotted/resources/me/following.rbs +1 -1
- data/sig/spotted/resources/playlists/images.rbs +1 -1
- metadata +2 -2
|
@@ -82,7 +82,7 @@ module Spotted
|
|
|
82
82
|
attr_accessor :release_date_precision
|
|
83
83
|
|
|
84
84
|
# The object type.
|
|
85
|
-
sig { returns(
|
|
85
|
+
sig { returns(Symbol) }
|
|
86
86
|
attr_accessor :type
|
|
87
87
|
|
|
88
88
|
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
@@ -134,11 +134,11 @@ module Spotted
|
|
|
134
134
|
release_date: String,
|
|
135
135
|
release_date_precision:
|
|
136
136
|
Spotted::SimplifiedEpisodeObject::ReleaseDatePrecision::OrSymbol,
|
|
137
|
-
type: Spotted::SimplifiedEpisodeObject::Type::OrSymbol,
|
|
138
137
|
uri: String,
|
|
139
138
|
language: String,
|
|
140
139
|
restrictions: Spotted::EpisodeRestrictionObject::OrHash,
|
|
141
|
-
resume_point: Spotted::ResumePointObject::OrHash
|
|
140
|
+
resume_point: Spotted::ResumePointObject::OrHash,
|
|
141
|
+
type: Symbol
|
|
142
142
|
).returns(T.attached_class)
|
|
143
143
|
end
|
|
144
144
|
def self.new(
|
|
@@ -178,8 +178,6 @@ module Spotted
|
|
|
178
178
|
release_date:,
|
|
179
179
|
# The precision with which `release_date` value is known.
|
|
180
180
|
release_date_precision:,
|
|
181
|
-
# The object type.
|
|
182
|
-
type:,
|
|
183
181
|
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
184
182
|
# episode.
|
|
185
183
|
uri:,
|
|
@@ -191,7 +189,9 @@ module Spotted
|
|
|
191
189
|
restrictions: nil,
|
|
192
190
|
# The user's most recent position in the episode. Set if the supplied access token
|
|
193
191
|
# is a user token and has the scope 'user-read-playback-position'.
|
|
194
|
-
resume_point: nil
|
|
192
|
+
resume_point: nil,
|
|
193
|
+
# The object type.
|
|
194
|
+
type: :episode
|
|
195
195
|
)
|
|
196
196
|
end
|
|
197
197
|
|
|
@@ -214,7 +214,7 @@ module Spotted
|
|
|
214
214
|
release_date: String,
|
|
215
215
|
release_date_precision:
|
|
216
216
|
Spotted::SimplifiedEpisodeObject::ReleaseDatePrecision::TaggedSymbol,
|
|
217
|
-
type:
|
|
217
|
+
type: Symbol,
|
|
218
218
|
uri: String,
|
|
219
219
|
language: String,
|
|
220
220
|
restrictions: Spotted::EpisodeRestrictionObject,
|
|
@@ -264,26 +264,6 @@ module Spotted
|
|
|
264
264
|
def self.values
|
|
265
265
|
end
|
|
266
266
|
end
|
|
267
|
-
|
|
268
|
-
# The object type.
|
|
269
|
-
module Type
|
|
270
|
-
extend Spotted::Internal::Type::Enum
|
|
271
|
-
|
|
272
|
-
TaggedSymbol =
|
|
273
|
-
T.type_alias { T.all(Symbol, Spotted::SimplifiedEpisodeObject::Type) }
|
|
274
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
275
|
-
|
|
276
|
-
EPISODE =
|
|
277
|
-
T.let(:episode, Spotted::SimplifiedEpisodeObject::Type::TaggedSymbol)
|
|
278
|
-
|
|
279
|
-
sig do
|
|
280
|
-
override.returns(
|
|
281
|
-
T::Array[Spotted::SimplifiedEpisodeObject::Type::TaggedSymbol]
|
|
282
|
-
)
|
|
283
|
-
end
|
|
284
|
-
def self.values
|
|
285
|
-
end
|
|
286
|
-
end
|
|
287
267
|
end
|
|
288
268
|
end
|
|
289
269
|
end
|
|
@@ -348,7 +348,7 @@ module Spotted
|
|
|
348
348
|
attr_accessor :total_tracks
|
|
349
349
|
|
|
350
350
|
# The object type.
|
|
351
|
-
sig { returns(
|
|
351
|
+
sig { returns(Symbol) }
|
|
352
352
|
attr_accessor :type
|
|
353
353
|
|
|
354
354
|
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
@@ -381,9 +381,9 @@ module Spotted
|
|
|
381
381
|
release_date_precision:
|
|
382
382
|
Spotted::TrackObject::Album::ReleaseDatePrecision::OrSymbol,
|
|
383
383
|
total_tracks: Integer,
|
|
384
|
-
type: Spotted::TrackObject::Album::Type::OrSymbol,
|
|
385
384
|
uri: String,
|
|
386
|
-
restrictions: Spotted::AlbumRestrictionObject::OrHash
|
|
385
|
+
restrictions: Spotted::AlbumRestrictionObject::OrHash,
|
|
386
|
+
type: Symbol
|
|
387
387
|
).returns(T.attached_class)
|
|
388
388
|
end
|
|
389
389
|
def self.new(
|
|
@@ -415,13 +415,13 @@ module Spotted
|
|
|
415
415
|
release_date_precision:,
|
|
416
416
|
# The number of tracks in the album.
|
|
417
417
|
total_tracks:,
|
|
418
|
-
# The object type.
|
|
419
|
-
type:,
|
|
420
418
|
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
421
419
|
# album.
|
|
422
420
|
uri:,
|
|
423
421
|
# Included in the response when a content restriction is applied.
|
|
424
|
-
restrictions: nil
|
|
422
|
+
restrictions: nil,
|
|
423
|
+
# The object type.
|
|
424
|
+
type: :album
|
|
425
425
|
)
|
|
426
426
|
end
|
|
427
427
|
|
|
@@ -440,7 +440,7 @@ module Spotted
|
|
|
440
440
|
release_date_precision:
|
|
441
441
|
Spotted::TrackObject::Album::ReleaseDatePrecision::TaggedSymbol,
|
|
442
442
|
total_tracks: Integer,
|
|
443
|
-
type:
|
|
443
|
+
type: Symbol,
|
|
444
444
|
uri: String,
|
|
445
445
|
restrictions: Spotted::AlbumRestrictionObject
|
|
446
446
|
}
|
|
@@ -514,25 +514,6 @@ module Spotted
|
|
|
514
514
|
def self.values
|
|
515
515
|
end
|
|
516
516
|
end
|
|
517
|
-
|
|
518
|
-
# The object type.
|
|
519
|
-
module Type
|
|
520
|
-
extend Spotted::Internal::Type::Enum
|
|
521
|
-
|
|
522
|
-
TaggedSymbol =
|
|
523
|
-
T.type_alias { T.all(Symbol, Spotted::TrackObject::Album::Type) }
|
|
524
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
525
|
-
|
|
526
|
-
ALBUM = T.let(:album, Spotted::TrackObject::Album::Type::TaggedSymbol)
|
|
527
|
-
|
|
528
|
-
sig do
|
|
529
|
-
override.returns(
|
|
530
|
-
T::Array[Spotted::TrackObject::Album::Type::TaggedSymbol]
|
|
531
|
-
)
|
|
532
|
-
end
|
|
533
|
-
def self.values
|
|
534
|
-
end
|
|
535
|
-
end
|
|
536
517
|
end
|
|
537
518
|
|
|
538
519
|
# The object type: "track".
|
|
@@ -262,9 +262,6 @@ module Spotted
|
|
|
262
262
|
sig { returns(String) }
|
|
263
263
|
attr_accessor :href
|
|
264
264
|
|
|
265
|
-
sig { returns(T::Array[Spotted::PlaylistTrackObject]) }
|
|
266
|
-
attr_accessor :items
|
|
267
|
-
|
|
268
265
|
# The maximum number of items in the response (as set in the query or by default).
|
|
269
266
|
sig { returns(Integer) }
|
|
270
267
|
attr_accessor :limit
|
|
@@ -285,22 +282,29 @@ module Spotted
|
|
|
285
282
|
sig { returns(Integer) }
|
|
286
283
|
attr_accessor :total
|
|
287
284
|
|
|
285
|
+
sig { returns(T.nilable(T::Array[Spotted::PlaylistTrackObject])) }
|
|
286
|
+
attr_reader :items
|
|
287
|
+
|
|
288
|
+
sig do
|
|
289
|
+
params(items: T::Array[Spotted::PlaylistTrackObject::OrHash]).void
|
|
290
|
+
end
|
|
291
|
+
attr_writer :items
|
|
292
|
+
|
|
288
293
|
# The tracks of the playlist.
|
|
289
294
|
sig do
|
|
290
295
|
params(
|
|
291
296
|
href: String,
|
|
292
|
-
items: T::Array[Spotted::PlaylistTrackObject::OrHash],
|
|
293
297
|
limit: Integer,
|
|
294
298
|
next_: T.nilable(String),
|
|
295
299
|
offset: Integer,
|
|
296
300
|
previous: T.nilable(String),
|
|
297
|
-
total: Integer
|
|
301
|
+
total: Integer,
|
|
302
|
+
items: T::Array[Spotted::PlaylistTrackObject::OrHash]
|
|
298
303
|
).returns(T.attached_class)
|
|
299
304
|
end
|
|
300
305
|
def self.new(
|
|
301
306
|
# A link to the Web API endpoint returning the full result of the request
|
|
302
307
|
href:,
|
|
303
|
-
items:,
|
|
304
308
|
# The maximum number of items in the response (as set in the query or by default).
|
|
305
309
|
limit:,
|
|
306
310
|
# URL to the next page of items. ( `null` if none)
|
|
@@ -310,7 +314,8 @@ module Spotted
|
|
|
310
314
|
# URL to the previous page of items. ( `null` if none)
|
|
311
315
|
previous:,
|
|
312
316
|
# The total number of items available to return.
|
|
313
|
-
total
|
|
317
|
+
total:,
|
|
318
|
+
items: nil
|
|
314
319
|
)
|
|
315
320
|
end
|
|
316
321
|
|
|
@@ -318,12 +323,12 @@ module Spotted
|
|
|
318
323
|
override.returns(
|
|
319
324
|
{
|
|
320
325
|
href: String,
|
|
321
|
-
items: T::Array[Spotted::PlaylistTrackObject],
|
|
322
326
|
limit: Integer,
|
|
323
327
|
next_: T.nilable(String),
|
|
324
328
|
offset: Integer,
|
|
325
329
|
previous: T.nilable(String),
|
|
326
|
-
total: Integer
|
|
330
|
+
total: Integer,
|
|
331
|
+
items: T::Array[Spotted::PlaylistTrackObject]
|
|
327
332
|
}
|
|
328
333
|
)
|
|
329
334
|
end
|
|
@@ -7,19 +7,19 @@ module Spotted
|
|
|
7
7
|
# Get the current user's followed artists.
|
|
8
8
|
sig do
|
|
9
9
|
params(
|
|
10
|
-
type: Spotted::Me::FollowingBulkRetrieveParams::Type::OrSymbol,
|
|
11
10
|
after: String,
|
|
12
11
|
limit: Integer,
|
|
12
|
+
type: Symbol,
|
|
13
13
|
request_options: Spotted::RequestOptions::OrHash
|
|
14
14
|
).returns(Spotted::Models::Me::FollowingBulkRetrieveResponse)
|
|
15
15
|
end
|
|
16
16
|
def bulk_retrieve(
|
|
17
|
-
# The ID type: currently only `artist` is supported.
|
|
18
|
-
type:,
|
|
19
17
|
# The last artist ID retrieved from the previous request.
|
|
20
18
|
after: nil,
|
|
21
19
|
# The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
|
|
22
20
|
limit: nil,
|
|
21
|
+
# The ID type: currently only `artist` is supported.
|
|
22
|
+
type: :artist,
|
|
23
23
|
request_options: {}
|
|
24
24
|
)
|
|
25
25
|
end
|
|
@@ -10,7 +10,7 @@ module Spotted
|
|
|
10
10
|
playlist_id: String,
|
|
11
11
|
body: Spotted::Internal::FileInput,
|
|
12
12
|
request_options: Spotted::RequestOptions::OrHash
|
|
13
|
-
).
|
|
13
|
+
).returns(StringIO)
|
|
14
14
|
end
|
|
15
15
|
def update(
|
|
16
16
|
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) of the
|
|
@@ -26,7 +26,7 @@ module Spotted
|
|
|
26
26
|
release_date: String,
|
|
27
27
|
release_date_precision: Spotted::Models::AlbumBulkRetrieveResponse::Album::release_date_precision,
|
|
28
28
|
total_tracks: Integer,
|
|
29
|
-
type:
|
|
29
|
+
type: :album,
|
|
30
30
|
uri: String,
|
|
31
31
|
artists: ::Array[Spotted::SimplifiedArtistObject],
|
|
32
32
|
copyrights: ::Array[Spotted::CopyrightObject],
|
|
@@ -59,7 +59,7 @@ module Spotted
|
|
|
59
59
|
|
|
60
60
|
attr_accessor total_tracks: Integer
|
|
61
61
|
|
|
62
|
-
attr_accessor type:
|
|
62
|
+
attr_accessor type: :album
|
|
63
63
|
|
|
64
64
|
attr_accessor uri: String
|
|
65
65
|
|
|
@@ -116,7 +116,6 @@ module Spotted
|
|
|
116
116
|
release_date: String,
|
|
117
117
|
release_date_precision: Spotted::Models::AlbumBulkRetrieveResponse::Album::release_date_precision,
|
|
118
118
|
total_tracks: Integer,
|
|
119
|
-
type: Spotted::Models::AlbumBulkRetrieveResponse::Album::type_,
|
|
120
119
|
uri: String,
|
|
121
120
|
?artists: ::Array[Spotted::SimplifiedArtistObject],
|
|
122
121
|
?copyrights: ::Array[Spotted::CopyrightObject],
|
|
@@ -125,7 +124,8 @@ module Spotted
|
|
|
125
124
|
?label: String,
|
|
126
125
|
?popularity: Integer,
|
|
127
126
|
?restrictions: Spotted::AlbumRestrictionObject,
|
|
128
|
-
?tracks: Spotted::Models::AlbumBulkRetrieveResponse::Album::Tracks
|
|
127
|
+
?tracks: Spotted::Models::AlbumBulkRetrieveResponse::Album::Tracks,
|
|
128
|
+
?type: :album
|
|
129
129
|
) -> void
|
|
130
130
|
|
|
131
131
|
def to_hash: -> {
|
|
@@ -139,7 +139,7 @@ module Spotted
|
|
|
139
139
|
release_date: String,
|
|
140
140
|
release_date_precision: Spotted::Models::AlbumBulkRetrieveResponse::Album::release_date_precision,
|
|
141
141
|
total_tracks: Integer,
|
|
142
|
-
type:
|
|
142
|
+
type: :album,
|
|
143
143
|
uri: String,
|
|
144
144
|
artists: ::Array[Spotted::SimplifiedArtistObject],
|
|
145
145
|
copyrights: ::Array[Spotted::CopyrightObject],
|
|
@@ -175,32 +175,20 @@ module Spotted
|
|
|
175
175
|
def self?.values: -> ::Array[Spotted::Models::AlbumBulkRetrieveResponse::Album::release_date_precision]
|
|
176
176
|
end
|
|
177
177
|
|
|
178
|
-
type type_ = :album
|
|
179
|
-
|
|
180
|
-
module Type
|
|
181
|
-
extend Spotted::Internal::Type::Enum
|
|
182
|
-
|
|
183
|
-
ALBUM: :album
|
|
184
|
-
|
|
185
|
-
def self?.values: -> ::Array[Spotted::Models::AlbumBulkRetrieveResponse::Album::type_]
|
|
186
|
-
end
|
|
187
|
-
|
|
188
178
|
type tracks =
|
|
189
179
|
{
|
|
190
180
|
href: String,
|
|
191
|
-
items: ::Array[Spotted::SimplifiedTrackObject],
|
|
192
181
|
limit: Integer,
|
|
193
182
|
next_: String?,
|
|
194
183
|
offset: Integer,
|
|
195
184
|
previous: String?,
|
|
196
|
-
total: Integer
|
|
185
|
+
total: Integer,
|
|
186
|
+
items: ::Array[Spotted::SimplifiedTrackObject]
|
|
197
187
|
}
|
|
198
188
|
|
|
199
189
|
class Tracks < Spotted::Internal::Type::BaseModel
|
|
200
190
|
attr_accessor href: String
|
|
201
191
|
|
|
202
|
-
attr_accessor items: ::Array[Spotted::SimplifiedTrackObject]
|
|
203
|
-
|
|
204
192
|
attr_accessor limit: Integer
|
|
205
193
|
|
|
206
194
|
attr_accessor next_: String?
|
|
@@ -211,24 +199,30 @@ module Spotted
|
|
|
211
199
|
|
|
212
200
|
attr_accessor total: Integer
|
|
213
201
|
|
|
202
|
+
attr_reader items: ::Array[Spotted::SimplifiedTrackObject]?
|
|
203
|
+
|
|
204
|
+
def items=: (
|
|
205
|
+
::Array[Spotted::SimplifiedTrackObject]
|
|
206
|
+
) -> ::Array[Spotted::SimplifiedTrackObject]
|
|
207
|
+
|
|
214
208
|
def initialize: (
|
|
215
209
|
href: String,
|
|
216
|
-
items: ::Array[Spotted::SimplifiedTrackObject],
|
|
217
210
|
limit: Integer,
|
|
218
211
|
next_: String?,
|
|
219
212
|
offset: Integer,
|
|
220
213
|
previous: String?,
|
|
221
|
-
total: Integer
|
|
214
|
+
total: Integer,
|
|
215
|
+
?items: ::Array[Spotted::SimplifiedTrackObject]
|
|
222
216
|
) -> void
|
|
223
217
|
|
|
224
218
|
def to_hash: -> {
|
|
225
219
|
href: String,
|
|
226
|
-
items: ::Array[Spotted::SimplifiedTrackObject],
|
|
227
220
|
limit: Integer,
|
|
228
221
|
next_: String?,
|
|
229
222
|
offset: Integer,
|
|
230
223
|
previous: String?,
|
|
231
|
-
total: Integer
|
|
224
|
+
total: Integer,
|
|
225
|
+
items: ::Array[Spotted::SimplifiedTrackObject]
|
|
232
226
|
}
|
|
233
227
|
end
|
|
234
228
|
end
|
|
@@ -12,7 +12,7 @@ module Spotted
|
|
|
12
12
|
release_date: String,
|
|
13
13
|
release_date_precision: Spotted::Models::AlbumRetrieveResponse::release_date_precision,
|
|
14
14
|
total_tracks: Integer,
|
|
15
|
-
type:
|
|
15
|
+
type: :album,
|
|
16
16
|
uri: String,
|
|
17
17
|
artists: ::Array[Spotted::SimplifiedArtistObject],
|
|
18
18
|
copyrights: ::Array[Spotted::CopyrightObject],
|
|
@@ -45,7 +45,7 @@ module Spotted
|
|
|
45
45
|
|
|
46
46
|
attr_accessor total_tracks: Integer
|
|
47
47
|
|
|
48
|
-
attr_accessor type:
|
|
48
|
+
attr_accessor type: :album
|
|
49
49
|
|
|
50
50
|
attr_accessor uri: String
|
|
51
51
|
|
|
@@ -102,7 +102,6 @@ module Spotted
|
|
|
102
102
|
release_date: String,
|
|
103
103
|
release_date_precision: Spotted::Models::AlbumRetrieveResponse::release_date_precision,
|
|
104
104
|
total_tracks: Integer,
|
|
105
|
-
type: Spotted::Models::AlbumRetrieveResponse::type_,
|
|
106
105
|
uri: String,
|
|
107
106
|
?artists: ::Array[Spotted::SimplifiedArtistObject],
|
|
108
107
|
?copyrights: ::Array[Spotted::CopyrightObject],
|
|
@@ -111,7 +110,8 @@ module Spotted
|
|
|
111
110
|
?label: String,
|
|
112
111
|
?popularity: Integer,
|
|
113
112
|
?restrictions: Spotted::AlbumRestrictionObject,
|
|
114
|
-
?tracks: Spotted::Models::AlbumRetrieveResponse::Tracks
|
|
113
|
+
?tracks: Spotted::Models::AlbumRetrieveResponse::Tracks,
|
|
114
|
+
?type: :album
|
|
115
115
|
) -> void
|
|
116
116
|
|
|
117
117
|
def to_hash: -> {
|
|
@@ -125,7 +125,7 @@ module Spotted
|
|
|
125
125
|
release_date: String,
|
|
126
126
|
release_date_precision: Spotted::Models::AlbumRetrieveResponse::release_date_precision,
|
|
127
127
|
total_tracks: Integer,
|
|
128
|
-
type:
|
|
128
|
+
type: :album,
|
|
129
129
|
uri: String,
|
|
130
130
|
artists: ::Array[Spotted::SimplifiedArtistObject],
|
|
131
131
|
copyrights: ::Array[Spotted::CopyrightObject],
|
|
@@ -161,32 +161,20 @@ module Spotted
|
|
|
161
161
|
def self?.values: -> ::Array[Spotted::Models::AlbumRetrieveResponse::release_date_precision]
|
|
162
162
|
end
|
|
163
163
|
|
|
164
|
-
type type_ = :album
|
|
165
|
-
|
|
166
|
-
module Type
|
|
167
|
-
extend Spotted::Internal::Type::Enum
|
|
168
|
-
|
|
169
|
-
ALBUM: :album
|
|
170
|
-
|
|
171
|
-
def self?.values: -> ::Array[Spotted::Models::AlbumRetrieveResponse::type_]
|
|
172
|
-
end
|
|
173
|
-
|
|
174
164
|
type tracks =
|
|
175
165
|
{
|
|
176
166
|
href: String,
|
|
177
|
-
items: ::Array[Spotted::SimplifiedTrackObject],
|
|
178
167
|
limit: Integer,
|
|
179
168
|
next_: String?,
|
|
180
169
|
offset: Integer,
|
|
181
170
|
previous: String?,
|
|
182
|
-
total: Integer
|
|
171
|
+
total: Integer,
|
|
172
|
+
items: ::Array[Spotted::SimplifiedTrackObject]
|
|
183
173
|
}
|
|
184
174
|
|
|
185
175
|
class Tracks < Spotted::Internal::Type::BaseModel
|
|
186
176
|
attr_accessor href: String
|
|
187
177
|
|
|
188
|
-
attr_accessor items: ::Array[Spotted::SimplifiedTrackObject]
|
|
189
|
-
|
|
190
178
|
attr_accessor limit: Integer
|
|
191
179
|
|
|
192
180
|
attr_accessor next_: String?
|
|
@@ -197,24 +185,30 @@ module Spotted
|
|
|
197
185
|
|
|
198
186
|
attr_accessor total: Integer
|
|
199
187
|
|
|
188
|
+
attr_reader items: ::Array[Spotted::SimplifiedTrackObject]?
|
|
189
|
+
|
|
190
|
+
def items=: (
|
|
191
|
+
::Array[Spotted::SimplifiedTrackObject]
|
|
192
|
+
) -> ::Array[Spotted::SimplifiedTrackObject]
|
|
193
|
+
|
|
200
194
|
def initialize: (
|
|
201
195
|
href: String,
|
|
202
|
-
items: ::Array[Spotted::SimplifiedTrackObject],
|
|
203
196
|
limit: Integer,
|
|
204
197
|
next_: String?,
|
|
205
198
|
offset: Integer,
|
|
206
199
|
previous: String?,
|
|
207
|
-
total: Integer
|
|
200
|
+
total: Integer,
|
|
201
|
+
?items: ::Array[Spotted::SimplifiedTrackObject]
|
|
208
202
|
) -> void
|
|
209
203
|
|
|
210
204
|
def to_hash: -> {
|
|
211
205
|
href: String,
|
|
212
|
-
items: ::Array[Spotted::SimplifiedTrackObject],
|
|
213
206
|
limit: Integer,
|
|
214
207
|
next_: String?,
|
|
215
208
|
offset: Integer,
|
|
216
209
|
previous: String?,
|
|
217
|
-
total: Integer
|
|
210
|
+
total: Integer,
|
|
211
|
+
items: ::Array[Spotted::SimplifiedTrackObject]
|
|
218
212
|
}
|
|
219
213
|
end
|
|
220
214
|
end
|
|
@@ -14,7 +14,7 @@ module Spotted
|
|
|
14
14
|
release_date: String,
|
|
15
15
|
release_date_precision: Spotted::Models::ArtistListAlbumsResponse::release_date_precision,
|
|
16
16
|
total_tracks: Integer,
|
|
17
|
-
type:
|
|
17
|
+
type: :album,
|
|
18
18
|
uri: String,
|
|
19
19
|
restrictions: Spotted::AlbumRestrictionObject
|
|
20
20
|
}
|
|
@@ -44,7 +44,7 @@ module Spotted
|
|
|
44
44
|
|
|
45
45
|
attr_accessor total_tracks: Integer
|
|
46
46
|
|
|
47
|
-
attr_accessor type:
|
|
47
|
+
attr_accessor type: :album
|
|
48
48
|
|
|
49
49
|
attr_accessor uri: String
|
|
50
50
|
|
|
@@ -67,9 +67,9 @@ module Spotted
|
|
|
67
67
|
release_date: String,
|
|
68
68
|
release_date_precision: Spotted::Models::ArtistListAlbumsResponse::release_date_precision,
|
|
69
69
|
total_tracks: Integer,
|
|
70
|
-
type: Spotted::Models::ArtistListAlbumsResponse::type_,
|
|
71
70
|
uri: String,
|
|
72
|
-
?restrictions: Spotted::AlbumRestrictionObject
|
|
71
|
+
?restrictions: Spotted::AlbumRestrictionObject,
|
|
72
|
+
?type: :album
|
|
73
73
|
) -> void
|
|
74
74
|
|
|
75
75
|
def to_hash: -> {
|
|
@@ -85,7 +85,7 @@ module Spotted
|
|
|
85
85
|
release_date: String,
|
|
86
86
|
release_date_precision: Spotted::Models::ArtistListAlbumsResponse::release_date_precision,
|
|
87
87
|
total_tracks: Integer,
|
|
88
|
-
type:
|
|
88
|
+
type: :album,
|
|
89
89
|
uri: String,
|
|
90
90
|
restrictions: Spotted::AlbumRestrictionObject
|
|
91
91
|
}
|
|
@@ -126,16 +126,6 @@ module Spotted
|
|
|
126
126
|
|
|
127
127
|
def self?.values: -> ::Array[Spotted::Models::ArtistListAlbumsResponse::release_date_precision]
|
|
128
128
|
end
|
|
129
|
-
|
|
130
|
-
type type_ = :album
|
|
131
|
-
|
|
132
|
-
module Type
|
|
133
|
-
extend Spotted::Internal::Type::Enum
|
|
134
|
-
|
|
135
|
-
ALBUM: :album
|
|
136
|
-
|
|
137
|
-
def self?.values: -> ::Array[Spotted::Models::ArtistListAlbumsResponse::type_]
|
|
138
|
-
end
|
|
139
129
|
end
|
|
140
130
|
end
|
|
141
131
|
end
|
|
@@ -237,14 +237,9 @@ module Spotted
|
|
|
237
237
|
module Mode
|
|
238
238
|
extend Spotted::Internal::Type::Enum
|
|
239
239
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
# Minor
|
|
244
|
-
MODE_0: 0
|
|
245
|
-
|
|
246
|
-
# Major
|
|
247
|
-
MODE_1: 1
|
|
240
|
+
MODE_NO_RESULT: -1
|
|
241
|
+
MODE_MINOR: 0
|
|
242
|
+
MODE_MAJOR: 1
|
|
248
243
|
|
|
249
244
|
def self?.values: -> ::Array[Spotted::Models::AudioAnalysisRetrieveResponse::Section::mode]
|
|
250
245
|
end
|
|
@@ -18,7 +18,7 @@ module Spotted
|
|
|
18
18
|
narrators: ::Array[Spotted::NarratorObject],
|
|
19
19
|
publisher: String,
|
|
20
20
|
total_chapters: Integer,
|
|
21
|
-
type:
|
|
21
|
+
type: :audiobook,
|
|
22
22
|
uri: String,
|
|
23
23
|
edition: String
|
|
24
24
|
}
|
|
@@ -56,7 +56,7 @@ module Spotted
|
|
|
56
56
|
|
|
57
57
|
attr_accessor total_chapters: Integer
|
|
58
58
|
|
|
59
|
-
attr_accessor type:
|
|
59
|
+
attr_accessor type: :audiobook
|
|
60
60
|
|
|
61
61
|
attr_accessor uri: String
|
|
62
62
|
|
|
@@ -81,9 +81,9 @@ module Spotted
|
|
|
81
81
|
narrators: ::Array[Spotted::NarratorObject],
|
|
82
82
|
publisher: String,
|
|
83
83
|
total_chapters: Integer,
|
|
84
|
-
type: Spotted::Models::AudiobookBase::type_,
|
|
85
84
|
uri: String,
|
|
86
|
-
?edition: String
|
|
85
|
+
?edition: String,
|
|
86
|
+
?type: :audiobook
|
|
87
87
|
) -> void
|
|
88
88
|
|
|
89
89
|
def to_hash: -> {
|
|
@@ -103,20 +103,10 @@ module Spotted
|
|
|
103
103
|
narrators: ::Array[Spotted::NarratorObject],
|
|
104
104
|
publisher: String,
|
|
105
105
|
total_chapters: Integer,
|
|
106
|
-
type:
|
|
106
|
+
type: :audiobook,
|
|
107
107
|
uri: String,
|
|
108
108
|
edition: String
|
|
109
109
|
}
|
|
110
|
-
|
|
111
|
-
type type_ = :audiobook
|
|
112
|
-
|
|
113
|
-
module Type
|
|
114
|
-
extend Spotted::Internal::Type::Enum
|
|
115
|
-
|
|
116
|
-
AUDIOBOOK: :audiobook
|
|
117
|
-
|
|
118
|
-
def self?.values: -> ::Array[Spotted::Models::AudiobookBase::type_]
|
|
119
|
-
end
|
|
120
110
|
end
|
|
121
111
|
end
|
|
122
112
|
end
|
|
@@ -39,19 +39,17 @@ module Spotted
|
|
|
39
39
|
type chapters =
|
|
40
40
|
{
|
|
41
41
|
href: String,
|
|
42
|
-
items: ::Array[Spotted::SimplifiedChapterObject],
|
|
43
42
|
limit: Integer,
|
|
44
43
|
next_: String?,
|
|
45
44
|
offset: Integer,
|
|
46
45
|
previous: String?,
|
|
47
|
-
total: Integer
|
|
46
|
+
total: Integer,
|
|
47
|
+
items: ::Array[Spotted::SimplifiedChapterObject]
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
class Chapters < Spotted::Internal::Type::BaseModel
|
|
51
51
|
attr_accessor href: String
|
|
52
52
|
|
|
53
|
-
attr_accessor items: ::Array[Spotted::SimplifiedChapterObject]
|
|
54
|
-
|
|
55
53
|
attr_accessor limit: Integer
|
|
56
54
|
|
|
57
55
|
attr_accessor next_: String?
|
|
@@ -62,24 +60,30 @@ module Spotted
|
|
|
62
60
|
|
|
63
61
|
attr_accessor total: Integer
|
|
64
62
|
|
|
63
|
+
attr_reader items: ::Array[Spotted::SimplifiedChapterObject]?
|
|
64
|
+
|
|
65
|
+
def items=: (
|
|
66
|
+
::Array[Spotted::SimplifiedChapterObject]
|
|
67
|
+
) -> ::Array[Spotted::SimplifiedChapterObject]
|
|
68
|
+
|
|
65
69
|
def initialize: (
|
|
66
70
|
href: String,
|
|
67
|
-
items: ::Array[Spotted::SimplifiedChapterObject],
|
|
68
71
|
limit: Integer,
|
|
69
72
|
next_: String?,
|
|
70
73
|
offset: Integer,
|
|
71
74
|
previous: String?,
|
|
72
|
-
total: Integer
|
|
75
|
+
total: Integer,
|
|
76
|
+
?items: ::Array[Spotted::SimplifiedChapterObject]
|
|
73
77
|
) -> void
|
|
74
78
|
|
|
75
79
|
def to_hash: -> {
|
|
76
80
|
href: String,
|
|
77
|
-
items: ::Array[Spotted::SimplifiedChapterObject],
|
|
78
81
|
limit: Integer,
|
|
79
82
|
next_: String?,
|
|
80
83
|
offset: Integer,
|
|
81
84
|
previous: String?,
|
|
82
|
-
total: Integer
|
|
85
|
+
total: Integer,
|
|
86
|
+
items: ::Array[Spotted::SimplifiedChapterObject]
|
|
83
87
|
}
|
|
84
88
|
end
|
|
85
89
|
end
|