spotted 0.1.0 → 0.2.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/audiobook_base.rb +182 -0
- data/lib/spotted/models/audiobook_list_response.rb +2 -174
- data/lib/spotted/models/audiobook_retrieve_response.rb +2 -174
- data/lib/spotted/models/chapter_list_response.rb +3 -183
- data/lib/spotted/models/chapter_retrieve_response.rb +3 -183
- data/lib/spotted/models/episode_object.rb +3 -166
- data/lib/spotted/models/me/audiobook_list_response.rb +2 -174
- data/lib/spotted/models/me/show_list_response.rb +3 -166
- data/lib/spotted/models/search_retrieve_response.rb +6 -345
- data/lib/spotted/models/show_base.rb +165 -0
- data/lib/spotted/models/show_list_response.rb +3 -163
- data/lib/spotted/models/show_retrieve_response.rb +2 -157
- data/lib/spotted/models.rb +4 -0
- data/lib/spotted/version.rb +1 -1
- data/lib/spotted.rb +2 -0
- data/rbi/spotted/models/audiobook_base.rbi +219 -0
- data/rbi/spotted/models/audiobook_list_response.rbi +4 -212
- data/rbi/spotted/models/audiobook_retrieve_response.rbi +4 -209
- data/rbi/spotted/models/chapter_list_response.rbi +4 -249
- data/rbi/spotted/models/chapter_retrieve_response.rbi +4 -245
- data/rbi/spotted/models/episode_object.rbi +4 -199
- data/rbi/spotted/models/me/audiobook_list_response.rbi +4 -212
- data/rbi/spotted/models/me/show_list_response.rbi +6 -227
- data/rbi/spotted/models/search_retrieve_response.rbi +6 -473
- data/rbi/spotted/models/show_base.rbi +194 -0
- data/rbi/spotted/models/show_list_response.rbi +5 -216
- data/rbi/spotted/models/show_retrieve_response.rbi +4 -182
- data/rbi/spotted/models.rbi +4 -0
- data/sig/spotted/models/audiobook_base.rbs +122 -0
- data/sig/spotted/models/audiobook_list_response.rbs +8 -111
- data/sig/spotted/models/audiobook_retrieve_response.rbs +8 -113
- data/sig/spotted/models/chapter_list_response.rbs +4 -123
- data/sig/spotted/models/chapter_retrieve_response.rbs +4 -123
- data/sig/spotted/models/episode_object.rbs +4 -111
- data/sig/spotted/models/me/audiobook_list_response.rbs +8 -111
- data/sig/spotted/models/me/show_list_response.rbs +5 -121
- data/sig/spotted/models/search_retrieve_response.rbs +8 -234
- data/sig/spotted/models/show_base.rbs +110 -0
- data/sig/spotted/models/show_list_response.rbs +4 -116
- data/sig/spotted/models/show_retrieve_response.rbs +8 -101
- data/sig/spotted/models.rbs +4 -0
- metadata +7 -1
|
@@ -291,7 +291,7 @@ module Spotted
|
|
|
291
291
|
type audiobooks =
|
|
292
292
|
{
|
|
293
293
|
href: String,
|
|
294
|
-
items: ::Array[Spotted::
|
|
294
|
+
items: ::Array[Spotted::AudiobookBase],
|
|
295
295
|
limit: Integer,
|
|
296
296
|
next_: String?,
|
|
297
297
|
offset: Integer,
|
|
@@ -302,7 +302,7 @@ module Spotted
|
|
|
302
302
|
class Audiobooks < Spotted::Internal::Type::BaseModel
|
|
303
303
|
attr_accessor href: String
|
|
304
304
|
|
|
305
|
-
attr_accessor items: ::Array[Spotted::
|
|
305
|
+
attr_accessor items: ::Array[Spotted::AudiobookBase]
|
|
306
306
|
|
|
307
307
|
attr_accessor limit: Integer
|
|
308
308
|
|
|
@@ -316,7 +316,7 @@ module Spotted
|
|
|
316
316
|
|
|
317
317
|
def initialize: (
|
|
318
318
|
href: String,
|
|
319
|
-
items: ::Array[Spotted::
|
|
319
|
+
items: ::Array[Spotted::AudiobookBase],
|
|
320
320
|
limit: Integer,
|
|
321
321
|
next_: String?,
|
|
322
322
|
offset: Integer,
|
|
@@ -326,132 +326,13 @@ module Spotted
|
|
|
326
326
|
|
|
327
327
|
def to_hash: -> {
|
|
328
328
|
href: String,
|
|
329
|
-
items: ::Array[Spotted::
|
|
329
|
+
items: ::Array[Spotted::AudiobookBase],
|
|
330
330
|
limit: Integer,
|
|
331
331
|
next_: String?,
|
|
332
332
|
offset: Integer,
|
|
333
333
|
previous: String?,
|
|
334
334
|
total: Integer
|
|
335
335
|
}
|
|
336
|
-
|
|
337
|
-
type item =
|
|
338
|
-
{
|
|
339
|
-
id: String,
|
|
340
|
-
authors: ::Array[Spotted::AuthorObject],
|
|
341
|
-
available_markets: ::Array[String],
|
|
342
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
343
|
-
description: String,
|
|
344
|
-
explicit: bool,
|
|
345
|
-
external_urls: Spotted::ExternalURLObject,
|
|
346
|
-
href: String,
|
|
347
|
-
html_description: String,
|
|
348
|
-
images: ::Array[Spotted::ImageObject],
|
|
349
|
-
languages: ::Array[String],
|
|
350
|
-
media_type: String,
|
|
351
|
-
name: String,
|
|
352
|
-
narrators: ::Array[Spotted::NarratorObject],
|
|
353
|
-
publisher: String,
|
|
354
|
-
total_chapters: Integer,
|
|
355
|
-
type: Spotted::Models::SearchRetrieveResponse::Audiobooks::Item::type_,
|
|
356
|
-
uri: String,
|
|
357
|
-
edition: String
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
class Item < Spotted::Internal::Type::BaseModel
|
|
361
|
-
attr_accessor id: String
|
|
362
|
-
|
|
363
|
-
attr_accessor authors: ::Array[Spotted::AuthorObject]
|
|
364
|
-
|
|
365
|
-
attr_accessor available_markets: ::Array[String]
|
|
366
|
-
|
|
367
|
-
attr_accessor copyrights: ::Array[Spotted::CopyrightObject]
|
|
368
|
-
|
|
369
|
-
attr_accessor description: String
|
|
370
|
-
|
|
371
|
-
attr_accessor explicit: bool
|
|
372
|
-
|
|
373
|
-
attr_accessor external_urls: Spotted::ExternalURLObject
|
|
374
|
-
|
|
375
|
-
attr_accessor href: String
|
|
376
|
-
|
|
377
|
-
attr_accessor html_description: String
|
|
378
|
-
|
|
379
|
-
attr_accessor images: ::Array[Spotted::ImageObject]
|
|
380
|
-
|
|
381
|
-
attr_accessor languages: ::Array[String]
|
|
382
|
-
|
|
383
|
-
attr_accessor media_type: String
|
|
384
|
-
|
|
385
|
-
attr_accessor name: String
|
|
386
|
-
|
|
387
|
-
attr_accessor narrators: ::Array[Spotted::NarratorObject]
|
|
388
|
-
|
|
389
|
-
attr_accessor publisher: String
|
|
390
|
-
|
|
391
|
-
attr_accessor total_chapters: Integer
|
|
392
|
-
|
|
393
|
-
attr_accessor type: Spotted::Models::SearchRetrieveResponse::Audiobooks::Item::type_
|
|
394
|
-
|
|
395
|
-
attr_accessor uri: String
|
|
396
|
-
|
|
397
|
-
attr_reader edition: String?
|
|
398
|
-
|
|
399
|
-
def edition=: (String) -> String
|
|
400
|
-
|
|
401
|
-
def initialize: (
|
|
402
|
-
id: String,
|
|
403
|
-
authors: ::Array[Spotted::AuthorObject],
|
|
404
|
-
available_markets: ::Array[String],
|
|
405
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
406
|
-
description: String,
|
|
407
|
-
explicit: bool,
|
|
408
|
-
external_urls: Spotted::ExternalURLObject,
|
|
409
|
-
href: String,
|
|
410
|
-
html_description: String,
|
|
411
|
-
images: ::Array[Spotted::ImageObject],
|
|
412
|
-
languages: ::Array[String],
|
|
413
|
-
media_type: String,
|
|
414
|
-
name: String,
|
|
415
|
-
narrators: ::Array[Spotted::NarratorObject],
|
|
416
|
-
publisher: String,
|
|
417
|
-
total_chapters: Integer,
|
|
418
|
-
type: Spotted::Models::SearchRetrieveResponse::Audiobooks::Item::type_,
|
|
419
|
-
uri: String,
|
|
420
|
-
?edition: String
|
|
421
|
-
) -> void
|
|
422
|
-
|
|
423
|
-
def to_hash: -> {
|
|
424
|
-
id: String,
|
|
425
|
-
authors: ::Array[Spotted::AuthorObject],
|
|
426
|
-
available_markets: ::Array[String],
|
|
427
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
428
|
-
description: String,
|
|
429
|
-
explicit: bool,
|
|
430
|
-
external_urls: Spotted::ExternalURLObject,
|
|
431
|
-
href: String,
|
|
432
|
-
html_description: String,
|
|
433
|
-
images: ::Array[Spotted::ImageObject],
|
|
434
|
-
languages: ::Array[String],
|
|
435
|
-
media_type: String,
|
|
436
|
-
name: String,
|
|
437
|
-
narrators: ::Array[Spotted::NarratorObject],
|
|
438
|
-
publisher: String,
|
|
439
|
-
total_chapters: Integer,
|
|
440
|
-
type: Spotted::Models::SearchRetrieveResponse::Audiobooks::Item::type_,
|
|
441
|
-
uri: String,
|
|
442
|
-
edition: String
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
type type_ = :audiobook
|
|
446
|
-
|
|
447
|
-
module Type
|
|
448
|
-
extend Spotted::Internal::Type::Enum
|
|
449
|
-
|
|
450
|
-
AUDIOBOOK: :audiobook
|
|
451
|
-
|
|
452
|
-
def self?.values: -> ::Array[Spotted::Models::SearchRetrieveResponse::Audiobooks::Item::type_]
|
|
453
|
-
end
|
|
454
|
-
end
|
|
455
336
|
end
|
|
456
337
|
|
|
457
338
|
type episodes =
|
|
@@ -504,7 +385,7 @@ module Spotted
|
|
|
504
385
|
type shows =
|
|
505
386
|
{
|
|
506
387
|
href: String,
|
|
507
|
-
items: ::Array[Spotted::
|
|
388
|
+
items: ::Array[Spotted::ShowBase],
|
|
508
389
|
limit: Integer,
|
|
509
390
|
next_: String?,
|
|
510
391
|
offset: Integer,
|
|
@@ -515,7 +396,7 @@ module Spotted
|
|
|
515
396
|
class Shows < Spotted::Internal::Type::BaseModel
|
|
516
397
|
attr_accessor href: String
|
|
517
398
|
|
|
518
|
-
attr_accessor items: ::Array[Spotted::
|
|
399
|
+
attr_accessor items: ::Array[Spotted::ShowBase]
|
|
519
400
|
|
|
520
401
|
attr_accessor limit: Integer
|
|
521
402
|
|
|
@@ -529,7 +410,7 @@ module Spotted
|
|
|
529
410
|
|
|
530
411
|
def initialize: (
|
|
531
412
|
href: String,
|
|
532
|
-
items: ::Array[Spotted::
|
|
413
|
+
items: ::Array[Spotted::ShowBase],
|
|
533
414
|
limit: Integer,
|
|
534
415
|
next_: String?,
|
|
535
416
|
offset: Integer,
|
|
@@ -539,120 +420,13 @@ module Spotted
|
|
|
539
420
|
|
|
540
421
|
def to_hash: -> {
|
|
541
422
|
href: String,
|
|
542
|
-
items: ::Array[Spotted::
|
|
423
|
+
items: ::Array[Spotted::ShowBase],
|
|
543
424
|
limit: Integer,
|
|
544
425
|
next_: String?,
|
|
545
426
|
offset: Integer,
|
|
546
427
|
previous: String?,
|
|
547
428
|
total: Integer
|
|
548
429
|
}
|
|
549
|
-
|
|
550
|
-
type item =
|
|
551
|
-
{
|
|
552
|
-
id: String,
|
|
553
|
-
available_markets: ::Array[String],
|
|
554
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
555
|
-
description: String,
|
|
556
|
-
explicit: bool,
|
|
557
|
-
external_urls: Spotted::ExternalURLObject,
|
|
558
|
-
href: String,
|
|
559
|
-
html_description: String,
|
|
560
|
-
images: ::Array[Spotted::ImageObject],
|
|
561
|
-
is_externally_hosted: bool,
|
|
562
|
-
languages: ::Array[String],
|
|
563
|
-
media_type: String,
|
|
564
|
-
name: String,
|
|
565
|
-
publisher: String,
|
|
566
|
-
total_episodes: Integer,
|
|
567
|
-
type: Spotted::Models::SearchRetrieveResponse::Shows::Item::type_,
|
|
568
|
-
uri: String
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
class Item < Spotted::Internal::Type::BaseModel
|
|
572
|
-
attr_accessor id: String
|
|
573
|
-
|
|
574
|
-
attr_accessor available_markets: ::Array[String]
|
|
575
|
-
|
|
576
|
-
attr_accessor copyrights: ::Array[Spotted::CopyrightObject]
|
|
577
|
-
|
|
578
|
-
attr_accessor description: String
|
|
579
|
-
|
|
580
|
-
attr_accessor explicit: bool
|
|
581
|
-
|
|
582
|
-
attr_accessor external_urls: Spotted::ExternalURLObject
|
|
583
|
-
|
|
584
|
-
attr_accessor href: String
|
|
585
|
-
|
|
586
|
-
attr_accessor html_description: String
|
|
587
|
-
|
|
588
|
-
attr_accessor images: ::Array[Spotted::ImageObject]
|
|
589
|
-
|
|
590
|
-
attr_accessor is_externally_hosted: bool
|
|
591
|
-
|
|
592
|
-
attr_accessor languages: ::Array[String]
|
|
593
|
-
|
|
594
|
-
attr_accessor media_type: String
|
|
595
|
-
|
|
596
|
-
attr_accessor name: String
|
|
597
|
-
|
|
598
|
-
attr_accessor publisher: String
|
|
599
|
-
|
|
600
|
-
attr_accessor total_episodes: Integer
|
|
601
|
-
|
|
602
|
-
attr_accessor type: Spotted::Models::SearchRetrieveResponse::Shows::Item::type_
|
|
603
|
-
|
|
604
|
-
attr_accessor uri: String
|
|
605
|
-
|
|
606
|
-
def initialize: (
|
|
607
|
-
id: String,
|
|
608
|
-
available_markets: ::Array[String],
|
|
609
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
610
|
-
description: String,
|
|
611
|
-
explicit: bool,
|
|
612
|
-
external_urls: Spotted::ExternalURLObject,
|
|
613
|
-
href: String,
|
|
614
|
-
html_description: String,
|
|
615
|
-
images: ::Array[Spotted::ImageObject],
|
|
616
|
-
is_externally_hosted: bool,
|
|
617
|
-
languages: ::Array[String],
|
|
618
|
-
media_type: String,
|
|
619
|
-
name: String,
|
|
620
|
-
publisher: String,
|
|
621
|
-
total_episodes: Integer,
|
|
622
|
-
type: Spotted::Models::SearchRetrieveResponse::Shows::Item::type_,
|
|
623
|
-
uri: String
|
|
624
|
-
) -> void
|
|
625
|
-
|
|
626
|
-
def to_hash: -> {
|
|
627
|
-
id: String,
|
|
628
|
-
available_markets: ::Array[String],
|
|
629
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
630
|
-
description: String,
|
|
631
|
-
explicit: bool,
|
|
632
|
-
external_urls: Spotted::ExternalURLObject,
|
|
633
|
-
href: String,
|
|
634
|
-
html_description: String,
|
|
635
|
-
images: ::Array[Spotted::ImageObject],
|
|
636
|
-
is_externally_hosted: bool,
|
|
637
|
-
languages: ::Array[String],
|
|
638
|
-
media_type: String,
|
|
639
|
-
name: String,
|
|
640
|
-
publisher: String,
|
|
641
|
-
total_episodes: Integer,
|
|
642
|
-
type: Spotted::Models::SearchRetrieveResponse::Shows::Item::type_,
|
|
643
|
-
uri: String
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
type type_ = :show
|
|
647
|
-
|
|
648
|
-
module Type
|
|
649
|
-
extend Spotted::Internal::Type::Enum
|
|
650
|
-
|
|
651
|
-
SHOW: :show
|
|
652
|
-
|
|
653
|
-
def self?.values: -> ::Array[Spotted::Models::SearchRetrieveResponse::Shows::Item::type_]
|
|
654
|
-
end
|
|
655
|
-
end
|
|
656
430
|
end
|
|
657
431
|
|
|
658
432
|
type tracks =
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
module Spotted
|
|
2
|
+
module Models
|
|
3
|
+
type show_base =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
available_markets: ::Array[String],
|
|
7
|
+
copyrights: ::Array[Spotted::CopyrightObject],
|
|
8
|
+
description: String,
|
|
9
|
+
explicit: bool,
|
|
10
|
+
external_urls: Spotted::ExternalURLObject,
|
|
11
|
+
href: String,
|
|
12
|
+
html_description: String,
|
|
13
|
+
images: ::Array[Spotted::ImageObject],
|
|
14
|
+
is_externally_hosted: bool,
|
|
15
|
+
languages: ::Array[String],
|
|
16
|
+
media_type: String,
|
|
17
|
+
name: String,
|
|
18
|
+
publisher: String,
|
|
19
|
+
total_episodes: Integer,
|
|
20
|
+
type: Spotted::Models::ShowBase::type_,
|
|
21
|
+
uri: String
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class ShowBase < Spotted::Internal::Type::BaseModel
|
|
25
|
+
attr_accessor id: String
|
|
26
|
+
|
|
27
|
+
attr_accessor available_markets: ::Array[String]
|
|
28
|
+
|
|
29
|
+
attr_accessor copyrights: ::Array[Spotted::CopyrightObject]
|
|
30
|
+
|
|
31
|
+
attr_accessor description: String
|
|
32
|
+
|
|
33
|
+
attr_accessor explicit: bool
|
|
34
|
+
|
|
35
|
+
attr_accessor external_urls: Spotted::ExternalURLObject
|
|
36
|
+
|
|
37
|
+
attr_accessor href: String
|
|
38
|
+
|
|
39
|
+
attr_accessor html_description: String
|
|
40
|
+
|
|
41
|
+
attr_accessor images: ::Array[Spotted::ImageObject]
|
|
42
|
+
|
|
43
|
+
attr_accessor is_externally_hosted: bool
|
|
44
|
+
|
|
45
|
+
attr_accessor languages: ::Array[String]
|
|
46
|
+
|
|
47
|
+
attr_accessor media_type: String
|
|
48
|
+
|
|
49
|
+
attr_accessor name: String
|
|
50
|
+
|
|
51
|
+
attr_accessor publisher: String
|
|
52
|
+
|
|
53
|
+
attr_accessor total_episodes: Integer
|
|
54
|
+
|
|
55
|
+
attr_accessor type: Spotted::Models::ShowBase::type_
|
|
56
|
+
|
|
57
|
+
attr_accessor uri: String
|
|
58
|
+
|
|
59
|
+
def initialize: (
|
|
60
|
+
id: String,
|
|
61
|
+
available_markets: ::Array[String],
|
|
62
|
+
copyrights: ::Array[Spotted::CopyrightObject],
|
|
63
|
+
description: String,
|
|
64
|
+
explicit: bool,
|
|
65
|
+
external_urls: Spotted::ExternalURLObject,
|
|
66
|
+
href: String,
|
|
67
|
+
html_description: String,
|
|
68
|
+
images: ::Array[Spotted::ImageObject],
|
|
69
|
+
is_externally_hosted: bool,
|
|
70
|
+
languages: ::Array[String],
|
|
71
|
+
media_type: String,
|
|
72
|
+
name: String,
|
|
73
|
+
publisher: String,
|
|
74
|
+
total_episodes: Integer,
|
|
75
|
+
type: Spotted::Models::ShowBase::type_,
|
|
76
|
+
uri: String
|
|
77
|
+
) -> void
|
|
78
|
+
|
|
79
|
+
def to_hash: -> {
|
|
80
|
+
id: String,
|
|
81
|
+
available_markets: ::Array[String],
|
|
82
|
+
copyrights: ::Array[Spotted::CopyrightObject],
|
|
83
|
+
description: String,
|
|
84
|
+
explicit: bool,
|
|
85
|
+
external_urls: Spotted::ExternalURLObject,
|
|
86
|
+
href: String,
|
|
87
|
+
html_description: String,
|
|
88
|
+
images: ::Array[Spotted::ImageObject],
|
|
89
|
+
is_externally_hosted: bool,
|
|
90
|
+
languages: ::Array[String],
|
|
91
|
+
media_type: String,
|
|
92
|
+
name: String,
|
|
93
|
+
publisher: String,
|
|
94
|
+
total_episodes: Integer,
|
|
95
|
+
type: Spotted::Models::ShowBase::type_,
|
|
96
|
+
uri: String
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
type type_ = :show
|
|
100
|
+
|
|
101
|
+
module Type
|
|
102
|
+
extend Spotted::Internal::Type::Enum
|
|
103
|
+
|
|
104
|
+
SHOW: :show
|
|
105
|
+
|
|
106
|
+
def self?.values: -> ::Array[Spotted::Models::ShowBase::type_]
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
@@ -1,125 +1,13 @@
|
|
|
1
1
|
module Spotted
|
|
2
2
|
module Models
|
|
3
|
-
type show_list_response =
|
|
4
|
-
{ shows: ::Array[Spotted::Models::ShowListResponse::Show] }
|
|
3
|
+
type show_list_response = { shows: ::Array[Spotted::ShowBase] }
|
|
5
4
|
|
|
6
5
|
class ShowListResponse < Spotted::Internal::Type::BaseModel
|
|
7
|
-
attr_accessor shows: ::Array[Spotted::
|
|
6
|
+
attr_accessor shows: ::Array[Spotted::ShowBase]
|
|
8
7
|
|
|
9
|
-
def initialize: (
|
|
10
|
-
shows: ::Array[Spotted::Models::ShowListResponse::Show]
|
|
11
|
-
) -> void
|
|
8
|
+
def initialize: (shows: ::Array[Spotted::ShowBase]) -> void
|
|
12
9
|
|
|
13
|
-
def to_hash: -> {
|
|
14
|
-
shows: ::Array[Spotted::Models::ShowListResponse::Show]
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
type show =
|
|
18
|
-
{
|
|
19
|
-
id: String,
|
|
20
|
-
available_markets: ::Array[String],
|
|
21
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
22
|
-
description: String,
|
|
23
|
-
explicit: bool,
|
|
24
|
-
external_urls: Spotted::ExternalURLObject,
|
|
25
|
-
href: String,
|
|
26
|
-
html_description: String,
|
|
27
|
-
images: ::Array[Spotted::ImageObject],
|
|
28
|
-
is_externally_hosted: bool,
|
|
29
|
-
languages: ::Array[String],
|
|
30
|
-
media_type: String,
|
|
31
|
-
name: String,
|
|
32
|
-
publisher: String,
|
|
33
|
-
total_episodes: Integer,
|
|
34
|
-
type: Spotted::Models::ShowListResponse::Show::type_,
|
|
35
|
-
uri: String
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
class Show < Spotted::Internal::Type::BaseModel
|
|
39
|
-
attr_accessor id: String
|
|
40
|
-
|
|
41
|
-
attr_accessor available_markets: ::Array[String]
|
|
42
|
-
|
|
43
|
-
attr_accessor copyrights: ::Array[Spotted::CopyrightObject]
|
|
44
|
-
|
|
45
|
-
attr_accessor description: String
|
|
46
|
-
|
|
47
|
-
attr_accessor explicit: bool
|
|
48
|
-
|
|
49
|
-
attr_accessor external_urls: Spotted::ExternalURLObject
|
|
50
|
-
|
|
51
|
-
attr_accessor href: String
|
|
52
|
-
|
|
53
|
-
attr_accessor html_description: String
|
|
54
|
-
|
|
55
|
-
attr_accessor images: ::Array[Spotted::ImageObject]
|
|
56
|
-
|
|
57
|
-
attr_accessor is_externally_hosted: bool
|
|
58
|
-
|
|
59
|
-
attr_accessor languages: ::Array[String]
|
|
60
|
-
|
|
61
|
-
attr_accessor media_type: String
|
|
62
|
-
|
|
63
|
-
attr_accessor name: String
|
|
64
|
-
|
|
65
|
-
attr_accessor publisher: String
|
|
66
|
-
|
|
67
|
-
attr_accessor total_episodes: Integer
|
|
68
|
-
|
|
69
|
-
attr_accessor type: Spotted::Models::ShowListResponse::Show::type_
|
|
70
|
-
|
|
71
|
-
attr_accessor uri: String
|
|
72
|
-
|
|
73
|
-
def initialize: (
|
|
74
|
-
id: String,
|
|
75
|
-
available_markets: ::Array[String],
|
|
76
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
77
|
-
description: String,
|
|
78
|
-
explicit: bool,
|
|
79
|
-
external_urls: Spotted::ExternalURLObject,
|
|
80
|
-
href: String,
|
|
81
|
-
html_description: String,
|
|
82
|
-
images: ::Array[Spotted::ImageObject],
|
|
83
|
-
is_externally_hosted: bool,
|
|
84
|
-
languages: ::Array[String],
|
|
85
|
-
media_type: String,
|
|
86
|
-
name: String,
|
|
87
|
-
publisher: String,
|
|
88
|
-
total_episodes: Integer,
|
|
89
|
-
type: Spotted::Models::ShowListResponse::Show::type_,
|
|
90
|
-
uri: String
|
|
91
|
-
) -> void
|
|
92
|
-
|
|
93
|
-
def to_hash: -> {
|
|
94
|
-
id: String,
|
|
95
|
-
available_markets: ::Array[String],
|
|
96
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
97
|
-
description: String,
|
|
98
|
-
explicit: bool,
|
|
99
|
-
external_urls: Spotted::ExternalURLObject,
|
|
100
|
-
href: String,
|
|
101
|
-
html_description: String,
|
|
102
|
-
images: ::Array[Spotted::ImageObject],
|
|
103
|
-
is_externally_hosted: bool,
|
|
104
|
-
languages: ::Array[String],
|
|
105
|
-
media_type: String,
|
|
106
|
-
name: String,
|
|
107
|
-
publisher: String,
|
|
108
|
-
total_episodes: Integer,
|
|
109
|
-
type: Spotted::Models::ShowListResponse::Show::type_,
|
|
110
|
-
uri: String
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
type type_ = :show
|
|
114
|
-
|
|
115
|
-
module Type
|
|
116
|
-
extend Spotted::Internal::Type::Enum
|
|
117
|
-
|
|
118
|
-
SHOW: :show
|
|
119
|
-
|
|
120
|
-
def self?.values: -> ::Array[Spotted::Models::ShowListResponse::Show::type_]
|
|
121
|
-
end
|
|
122
|
-
end
|
|
10
|
+
def to_hash: -> { shows: ::Array[Spotted::ShowBase] }
|
|
123
11
|
end
|
|
124
12
|
end
|
|
125
13
|
end
|
|
@@ -1,104 +1,21 @@
|
|
|
1
1
|
module Spotted
|
|
2
2
|
module Models
|
|
3
3
|
type show_retrieve_response =
|
|
4
|
-
{
|
|
5
|
-
id: String,
|
|
6
|
-
available_markets: ::Array[String],
|
|
7
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
8
|
-
description: String,
|
|
9
|
-
episodes: Spotted::Models::ShowRetrieveResponse::Episodes,
|
|
10
|
-
explicit: bool,
|
|
11
|
-
external_urls: Spotted::ExternalURLObject,
|
|
12
|
-
href: String,
|
|
13
|
-
html_description: String,
|
|
14
|
-
images: ::Array[Spotted::ImageObject],
|
|
15
|
-
is_externally_hosted: bool,
|
|
16
|
-
languages: ::Array[String],
|
|
17
|
-
media_type: String,
|
|
18
|
-
name: String,
|
|
19
|
-
publisher: String,
|
|
20
|
-
total_episodes: Integer,
|
|
21
|
-
type: Spotted::Models::ShowRetrieveResponse::type_,
|
|
22
|
-
uri: String
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
class ShowRetrieveResponse < Spotted::Internal::Type::BaseModel
|
|
26
|
-
attr_accessor id: String
|
|
27
|
-
|
|
28
|
-
attr_accessor available_markets: ::Array[String]
|
|
29
|
-
|
|
30
|
-
attr_accessor copyrights: ::Array[Spotted::CopyrightObject]
|
|
31
|
-
|
|
32
|
-
attr_accessor description: String
|
|
33
|
-
|
|
34
|
-
attr_accessor episodes: Spotted::Models::ShowRetrieveResponse::Episodes
|
|
35
|
-
|
|
36
|
-
attr_accessor explicit: bool
|
|
37
|
-
|
|
38
|
-
attr_accessor external_urls: Spotted::ExternalURLObject
|
|
39
|
-
|
|
40
|
-
attr_accessor href: String
|
|
41
|
-
|
|
42
|
-
attr_accessor html_description: String
|
|
43
|
-
|
|
44
|
-
attr_accessor images: ::Array[Spotted::ImageObject]
|
|
4
|
+
{ episodes: Spotted::Models::ShowRetrieveResponse::Episodes }
|
|
45
5
|
|
|
46
|
-
|
|
6
|
+
class ShowRetrieveResponse < Spotted::Models::ShowBase
|
|
7
|
+
def episodes: -> Spotted::Models::ShowRetrieveResponse::Episodes
|
|
47
8
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
attr_accessor name: String
|
|
53
|
-
|
|
54
|
-
attr_accessor publisher: String
|
|
55
|
-
|
|
56
|
-
attr_accessor total_episodes: Integer
|
|
57
|
-
|
|
58
|
-
attr_accessor type: Spotted::Models::ShowRetrieveResponse::type_
|
|
59
|
-
|
|
60
|
-
attr_accessor uri: String
|
|
9
|
+
def episodes=: (
|
|
10
|
+
Spotted::Models::ShowRetrieveResponse::Episodes _
|
|
11
|
+
) -> Spotted::Models::ShowRetrieveResponse::Episodes
|
|
61
12
|
|
|
62
13
|
def initialize: (
|
|
63
|
-
|
|
64
|
-
available_markets: ::Array[String],
|
|
65
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
66
|
-
description: String,
|
|
67
|
-
episodes: Spotted::Models::ShowRetrieveResponse::Episodes,
|
|
68
|
-
explicit: bool,
|
|
69
|
-
external_urls: Spotted::ExternalURLObject,
|
|
70
|
-
href: String,
|
|
71
|
-
html_description: String,
|
|
72
|
-
images: ::Array[Spotted::ImageObject],
|
|
73
|
-
is_externally_hosted: bool,
|
|
74
|
-
languages: ::Array[String],
|
|
75
|
-
media_type: String,
|
|
76
|
-
name: String,
|
|
77
|
-
publisher: String,
|
|
78
|
-
total_episodes: Integer,
|
|
79
|
-
type: Spotted::Models::ShowRetrieveResponse::type_,
|
|
80
|
-
uri: String
|
|
14
|
+
episodes: Spotted::Models::ShowRetrieveResponse::Episodes
|
|
81
15
|
) -> void
|
|
82
16
|
|
|
83
17
|
def to_hash: -> {
|
|
84
|
-
|
|
85
|
-
available_markets: ::Array[String],
|
|
86
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
87
|
-
description: String,
|
|
88
|
-
episodes: Spotted::Models::ShowRetrieveResponse::Episodes,
|
|
89
|
-
explicit: bool,
|
|
90
|
-
external_urls: Spotted::ExternalURLObject,
|
|
91
|
-
href: String,
|
|
92
|
-
html_description: String,
|
|
93
|
-
images: ::Array[Spotted::ImageObject],
|
|
94
|
-
is_externally_hosted: bool,
|
|
95
|
-
languages: ::Array[String],
|
|
96
|
-
media_type: String,
|
|
97
|
-
name: String,
|
|
98
|
-
publisher: String,
|
|
99
|
-
total_episodes: Integer,
|
|
100
|
-
type: Spotted::Models::ShowRetrieveResponse::type_,
|
|
101
|
-
uri: String
|
|
18
|
+
episodes: Spotted::Models::ShowRetrieveResponse::Episodes
|
|
102
19
|
}
|
|
103
20
|
|
|
104
21
|
type episodes =
|
|
@@ -147,16 +64,6 @@ module Spotted
|
|
|
147
64
|
total: Integer
|
|
148
65
|
}
|
|
149
66
|
end
|
|
150
|
-
|
|
151
|
-
type type_ = :show
|
|
152
|
-
|
|
153
|
-
module Type
|
|
154
|
-
extend Spotted::Internal::Type::Enum
|
|
155
|
-
|
|
156
|
-
SHOW: :show
|
|
157
|
-
|
|
158
|
-
def self?.values: -> ::Array[Spotted::Models::ShowRetrieveResponse::type_]
|
|
159
|
-
end
|
|
160
67
|
end
|
|
161
68
|
end
|
|
162
69
|
end
|
data/sig/spotted/models.rbs
CHANGED
|
@@ -21,6 +21,8 @@ module Spotted
|
|
|
21
21
|
|
|
22
22
|
class AudioAnalysisRetrieveParams = Spotted::Models::AudioAnalysisRetrieveParams
|
|
23
23
|
|
|
24
|
+
class AudiobookBase = Spotted::Models::AudiobookBase
|
|
25
|
+
|
|
24
26
|
class AudiobookListChaptersParams = Spotted::Models::AudiobookListChaptersParams
|
|
25
27
|
|
|
26
28
|
class AudiobookListParams = Spotted::Models::AudiobookListParams
|
|
@@ -95,6 +97,8 @@ module Spotted
|
|
|
95
97
|
|
|
96
98
|
class SearchRetrieveParams = Spotted::Models::SearchRetrieveParams
|
|
97
99
|
|
|
100
|
+
class ShowBase = Spotted::Models::ShowBase
|
|
101
|
+
|
|
98
102
|
class ShowListEpisodesParams = Spotted::Models::ShowListEpisodesParams
|
|
99
103
|
|
|
100
104
|
class ShowListParams = Spotted::Models::ShowListParams
|