@jellyfin/sdk 0.10.0 → 0.11.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.
- package/README.md +5 -0
- package/lib/api.d.ts +0 -11
- package/lib/api.js +0 -14
- package/lib/generated-client/api/activity-log-api.d.ts +9 -12
- package/lib/generated-client/api/activity-log-api.js +8 -8
- package/lib/generated-client/api/api-key-api.d.ts +18 -18
- package/lib/generated-client/api/api-key-api.js +19 -10
- package/lib/generated-client/api/artists-api.d.ts +27 -90
- package/lib/generated-client/api/artists-api.js +22 -76
- package/lib/generated-client/api/audio-api.d.ts +81 -249
- package/lib/generated-client/api/audio-api.js +93 -245
- package/lib/generated-client/api/branding-api.d.ts +16 -16
- package/lib/generated-client/api/branding-api.js +13 -4
- package/lib/generated-client/api/channels-api.d.ts +33 -51
- package/lib/generated-client/api/channels-api.js +33 -36
- package/lib/generated-client/api/client-log-api.d.ts +13 -13
- package/lib/generated-client/api/client-log-api.js +10 -7
- package/lib/generated-client/api/collection-api.d.ts +19 -24
- package/lib/generated-client/api/collection-api.js +22 -18
- package/lib/generated-client/api/configuration-api.d.ts +28 -29
- package/lib/generated-client/api/configuration-api.js +30 -16
- package/lib/generated-client/api/dashboard-api.d.ts +14 -14
- package/lib/generated-client/api/dashboard-api.js +15 -9
- package/lib/generated-client/api/devices-api.d.ts +31 -33
- package/lib/generated-client/api/devices-api.js +36 -22
- package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
- package/lib/generated-client/api/display-preferences-api.js +15 -14
- package/lib/generated-client/api/dynamic-hls-api.d.ts +246 -607
- package/lib/generated-client/api/dynamic-hls-api.js +233 -573
- package/lib/generated-client/api/environment-api.d.ts +33 -35
- package/lib/generated-client/api/environment-api.js +34 -18
- package/lib/generated-client/api/filter-api.d.ts +17 -29
- package/lib/generated-client/api/filter-api.js +15 -21
- package/lib/generated-client/api/genres-api.d.ts +20 -38
- package/lib/generated-client/api/genres-api.js +15 -27
- package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
- package/lib/generated-client/api/hls-segment-api.js +36 -28
- package/lib/generated-client/api/image-api.d.ts +206 -644
- package/lib/generated-client/api/image-api.js +269 -596
- package/lib/generated-client/api/instant-mix-api.d.ts +46 -102
- package/lib/generated-client/api/instant-mix-api.js +57 -89
- package/lib/generated-client/api/item-lookup-api.d.ts +69 -71
- package/lib/generated-client/api/item-lookup-api.js +78 -47
- package/lib/generated-client/api/item-refresh-api.d.ts +9 -13
- package/lib/generated-client/api/item-refresh-api.js +8 -9
- package/lib/generated-client/api/item-update-api.d.ts +20 -22
- package/lib/generated-client/api/item-update-api.js +22 -15
- package/lib/generated-client/api/items-api.d.ts +44 -137
- package/lib/generated-client/api/items-api.js +38 -122
- package/lib/generated-client/api/library-api.d.ts +185 -170
- package/lib/generated-client/api/library-api.js +212 -142
- package/lib/generated-client/api/library-structure-api.d.ts +48 -58
- package/lib/generated-client/api/library-structure-api.js +54 -40
- package/lib/generated-client/api/live-tv-api.d.ts +224 -332
- package/lib/generated-client/api/live-tv-api.js +273 -258
- package/lib/generated-client/api/localization-api.d.ts +23 -23
- package/lib/generated-client/api/localization-api.js +17 -5
- package/lib/generated-client/api/lyrics-api.d.ts +39 -42
- package/lib/generated-client/api/lyrics-api.js +45 -30
- package/lib/generated-client/api/media-info-api.d.ts +40 -59
- package/lib/generated-client/api/media-info-api.js +45 -52
- package/lib/generated-client/api/media-segments-api.d.ts +95 -0
- package/lib/generated-client/api/media-segments-api.js +123 -0
- package/lib/generated-client/api/movies-api.d.ts +10 -14
- package/lib/generated-client/api/movies-api.js +8 -9
- package/lib/generated-client/api/music-genres-api.d.ts +20 -38
- package/lib/generated-client/api/music-genres-api.js +15 -27
- package/lib/generated-client/api/package-api.d.ts +33 -37
- package/lib/generated-client/api/package-api.js +37 -23
- package/lib/generated-client/api/persons-api.d.ts +18 -31
- package/lib/generated-client/api/persons-api.js +15 -22
- package/lib/generated-client/api/playlists-api.d.ts +109 -84
- package/lib/generated-client/api/playlists-api.js +137 -63
- package/lib/generated-client/api/playstate-api.d.ts +54 -80
- package/lib/generated-client/api/playstate-api.js +64 -63
- package/lib/generated-client/api/plugins-api.d.ts +48 -52
- package/lib/generated-client/api/plugins-api.js +61 -38
- package/lib/generated-client/api/quick-connect-api.d.ts +22 -23
- package/lib/generated-client/api/quick-connect-api.js +23 -12
- package/lib/generated-client/api/remote-image-api.d.ts +21 -28
- package/lib/generated-client/api/remote-image-api.js +22 -20
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +30 -32
- package/lib/generated-client/api/scheduled-tasks-api.js +36 -23
- package/lib/generated-client/api/search-api.d.ts +11 -28
- package/lib/generated-client/api/search-api.js +8 -22
- package/lib/generated-client/api/session-api.d.ts +90 -117
- package/lib/generated-client/api/session-api.js +104 -83
- package/lib/generated-client/api/startup-api.d.ts +37 -37
- package/lib/generated-client/api/startup-api.js +38 -17
- package/lib/generated-client/api/studios-api.d.ts +18 -35
- package/lib/generated-client/api/studios-api.js +15 -26
- package/lib/generated-client/api/subtitle-api.d.ts +55 -86
- package/lib/generated-client/api/subtitle-api.js +68 -69
- package/lib/generated-client/api/suggestions-api.d.ts +11 -16
- package/lib/generated-client/api/suggestions-api.js +8 -10
- package/lib/generated-client/api/sync-play-api.d.ts +120 -120
- package/lib/generated-client/api/sync-play-api.js +133 -70
- package/lib/generated-client/api/system-api.d.ts +49 -49
- package/lib/generated-client/api/system-api.js +44 -14
- package/lib/generated-client/api/time-sync-api.d.ts +8 -8
- package/lib/generated-client/api/time-sync-api.js +5 -2
- package/lib/generated-client/api/tmdb-api.d.ts +8 -8
- package/lib/generated-client/api/tmdb-api.js +5 -2
- package/lib/generated-client/api/trailers-api.d.ts +19 -102
- package/lib/generated-client/api/trailers-api.js +8 -88
- package/lib/generated-client/api/trickplay-api.d.ts +13 -18
- package/lib/generated-client/api/trickplay-api.js +15 -14
- package/lib/generated-client/api/tv-shows-api.d.ts +27 -72
- package/lib/generated-client/api/tv-shows-api.js +29 -62
- package/lib/generated-client/api/universal-audio-api.d.ts +30 -48
- package/lib/generated-client/api/universal-audio-api.js +33 -51
- package/lib/generated-client/api/user-api.d.ts +83 -88
- package/lib/generated-client/api/user-api.js +93 -56
- package/lib/generated-client/api/user-library-api.d.ts +59 -78
- package/lib/generated-client/api/user-library-api.js +71 -60
- package/lib/generated-client/api/user-views-api.d.ts +16 -19
- package/lib/generated-client/api/user-views-api.js +15 -12
- package/lib/generated-client/api/video-attachments-api.d.ts +8 -10
- package/lib/generated-client/api/video-attachments-api.js +8 -7
- package/lib/generated-client/api/videos-api.d.ts +97 -274
- package/lib/generated-client/api/videos-api.js +114 -266
- package/lib/generated-client/api/years-api.d.ts +21 -36
- package/lib/generated-client/api/years-api.js +15 -24
- package/lib/generated-client/api.d.ts +1 -0
- package/lib/generated-client/base.d.ts +15 -4
- package/lib/generated-client/base.js +8 -4
- package/lib/generated-client/common.d.ts +3 -3
- package/lib/generated-client/common.js +23 -14
- package/lib/generated-client/configuration.d.ts +8 -0
- package/lib/generated-client/configuration.js +1 -0
- package/lib/generated-client/index.js +8 -1
- package/lib/generated-client/models/access-schedule.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-message.d.ts +2 -2
- package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
- package/lib/generated-client/models/activity-log-entry-start-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry.d.ts +1 -1
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
- package/lib/generated-client/models/album-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/album-info.d.ts +5 -5
- package/lib/generated-client/models/all-theme-media-result.d.ts +1 -1
- package/lib/generated-client/models/artist-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/artist-info.d.ts +3 -3
- package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
- package/lib/generated-client/models/authentication-result.d.ts +7 -7
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/base-item-dto.d.ts +26 -26
- package/lib/generated-client/models/base-item-person.d.ts +2 -2
- package/lib/generated-client/models/book-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/book-info.d.ts +2 -2
- package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/box-set-info.d.ts +2 -2
- package/lib/generated-client/models/channel-features.d.ts +3 -3
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +3 -3
- package/lib/generated-client/models/client-capabilities-dto.d.ts +3 -17
- package/lib/generated-client/models/client-capabilities.d.ts +3 -3
- package/lib/generated-client/models/codec-profile.d.ts +15 -9
- package/lib/generated-client/models/container-profile.d.ts +12 -6
- package/lib/generated-client/models/create-playlist-dto.d.ts +2 -2
- package/lib/generated-client/models/deinterlace-method.d.ts +20 -0
- package/lib/generated-client/models/{hardware-encoding-type.js → deinterlace-method.js} +5 -10
- package/lib/generated-client/models/device-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/device-info-dto.d.ts +84 -0
- package/lib/generated-client/models/device-info-query-result.d.ts +1 -1
- package/lib/generated-client/models/device-info.d.ts +1 -1
- package/lib/generated-client/models/device-profile.d.ts +8 -8
- package/lib/generated-client/models/direct-play-profile.d.ts +6 -6
- package/lib/generated-client/models/display-preferences-dto.d.ts +4 -4
- package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +3 -1
- package/lib/generated-client/models/down-mix-stereo-algorithms.js +4 -2
- package/lib/generated-client/models/encoder-preset.d.ts +29 -0
- package/lib/generated-client/models/encoder-preset.js +32 -0
- package/lib/generated-client/models/encoding-options.d.ts +43 -19
- package/lib/generated-client/models/external-id-info.d.ts +2 -1
- package/lib/generated-client/models/file-system-entry-info.d.ts +1 -1
- package/lib/generated-client/models/force-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/forgot-password-result.d.ts +1 -1
- package/lib/generated-client/models/general-command-message.d.ts +2 -2
- package/lib/generated-client/models/general-command.d.ts +3 -3
- package/lib/generated-client/models/get-programs-dto.d.ts +34 -34
- package/lib/generated-client/models/group-info-dto-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-info-dto.d.ts +1 -1
- package/lib/generated-client/models/group-state-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-state-update.d.ts +2 -2
- package/lib/generated-client/models/group-update.d.ts +23 -5
- package/lib/generated-client/models/hardware-acceleration-type.d.ts +26 -0
- package/lib/generated-client/models/hardware-acceleration-type.js +29 -0
- package/lib/generated-client/models/image-info.d.ts +1 -1
- package/lib/generated-client/models/image-option.d.ts +1 -1
- package/lib/generated-client/models/image-provider-info.d.ts +1 -1
- package/lib/generated-client/models/inbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/inbound-web-socket-message.d.ts +22 -8
- package/lib/generated-client/models/index.d.ts +13 -6
- package/lib/generated-client/models/index.js +7 -1
- package/lib/generated-client/models/installation-info.d.ts +1 -1
- package/lib/generated-client/models/library-changed-message.d.ts +2 -2
- package/lib/generated-client/models/library-options-result-dto.d.ts +8 -2
- package/lib/generated-client/models/library-options.d.ts +57 -3
- package/lib/generated-client/models/library-type-options-dto.d.ts +3 -3
- package/lib/generated-client/models/listings-provider-info.d.ts +1 -1
- package/lib/generated-client/models/live-stream-response.d.ts +1 -1
- package/lib/generated-client/models/live-tv-info.d.ts +1 -1
- package/lib/generated-client/models/live-tv-options.d.ts +2 -2
- package/lib/generated-client/models/live-tv-service-info.d.ts +1 -1
- package/lib/generated-client/models/lyric-dto.d.ts +2 -2
- package/lib/generated-client/models/media-path-dto.d.ts +1 -1
- package/lib/generated-client/models/media-path-info.d.ts +0 -6
- package/lib/generated-client/models/media-segment-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/media-segment-dto.d.ts +48 -0
- package/lib/generated-client/models/media-segment-type.d.ts +24 -0
- package/lib/generated-client/models/media-segment-type.js +27 -0
- package/lib/generated-client/models/media-source-info.d.ts +29 -11
- package/lib/generated-client/models/media-stream.d.ts +17 -5
- package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
- package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
- package/lib/generated-client/models/movie-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/movie-info.d.ts +2 -2
- package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/music-video-info.d.ts +2 -2
- package/lib/generated-client/models/open-live-stream-dto.d.ts +8 -2
- package/lib/generated-client/models/outbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +85 -29
- package/lib/generated-client/models/package-info.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info.d.ts +2 -2
- package/lib/generated-client/models/play-message.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update.d.ts +4 -4
- package/lib/generated-client/models/play-request.d.ts +1 -1
- package/lib/generated-client/models/playback-info-dto.d.ts +7 -1
- package/lib/generated-client/models/playback-info-response.d.ts +2 -2
- package/lib/generated-client/models/playback-progress-info.d.ts +5 -5
- package/lib/generated-client/models/playback-start-info.d.ts +5 -5
- package/lib/generated-client/models/playback-stop-info.d.ts +2 -2
- package/lib/generated-client/models/player-state-info.d.ts +3 -3
- package/lib/generated-client/models/playlist-dto.d.ts +36 -0
- package/lib/generated-client/models/playstate-message.d.ts +2 -2
- package/lib/generated-client/models/playstate-request.d.ts +1 -1
- package/lib/generated-client/models/plugin-info.d.ts +1 -1
- package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-completed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-failed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installing-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-uninstalled-message.d.ts +2 -2
- package/lib/generated-client/models/problem-details.d.ts +1 -1
- package/lib/generated-client/models/profile-condition.d.ts +2 -2
- package/lib/generated-client/models/query-filters.d.ts +1 -1
- package/lib/generated-client/models/queue-request-dto.d.ts +1 -1
- package/lib/generated-client/models/recommendation-dto.d.ts +2 -2
- package/lib/generated-client/models/refresh-progress-message.d.ts +3 -3
- package/lib/generated-client/models/remote-image-info.d.ts +2 -2
- package/lib/generated-client/models/remote-image-result.d.ts +1 -1
- package/lib/generated-client/models/remote-lyric-info-dto.d.ts +1 -1
- package/lib/generated-client/models/remote-search-result.d.ts +2 -2
- package/lib/generated-client/models/restart-required-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-task-ended-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +1 -1
- package/lib/generated-client/models/search-hint-result.d.ts +1 -1
- package/lib/generated-client/models/search-hint.d.ts +2 -2
- package/lib/generated-client/models/send-command.d.ts +1 -1
- package/lib/generated-client/models/series-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/series-info.d.ts +2 -2
- package/lib/generated-client/models/series-timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/series-timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/server-configuration.d.ts +8 -14
- package/lib/generated-client/models/server-restarting-message.d.ts +1 -1
- package/lib/generated-client/models/server-shutting-down-message.d.ts +1 -1
- package/lib/generated-client/models/session-info-dto.d.ts +199 -0
- package/lib/generated-client/models/session-info.d.ts +8 -8
- package/lib/generated-client/models/sessions-message.d.ts +4 -4
- package/lib/generated-client/models/sessions-start-message.d.ts +1 -1
- package/lib/generated-client/models/sessions-stop-message.d.ts +1 -1
- package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/song-info.d.ts +2 -2
- package/lib/generated-client/models/string-group-update.d.ts +1 -1
- package/lib/generated-client/models/subtitle-profile.d.ts +6 -6
- package/lib/generated-client/models/sync-play-command-message.d.ts +2 -2
- package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +2 -2
- package/lib/generated-client/models/system-info.d.ts +2 -2
- package/lib/generated-client/models/task-info.d.ts +3 -3
- package/lib/generated-client/models/task-result.d.ts +1 -1
- package/lib/generated-client/models/task-trigger-info.d.ts +1 -1
- package/lib/generated-client/models/theme-media-result.d.ts +2 -2
- package/lib/generated-client/models/timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/tonemapping-algorithm.d.ts +26 -0
- package/lib/generated-client/models/tonemapping-algorithm.js +29 -0
- package/lib/generated-client/models/tonemapping-mode.d.ts +23 -0
- package/lib/generated-client/models/tonemapping-mode.js +26 -0
- package/lib/generated-client/models/tonemapping-range.d.ts +21 -0
- package/lib/generated-client/models/tonemapping-range.js +24 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/trailer-info.d.ts +2 -2
- package/lib/generated-client/models/transcode-reason.d.ts +1 -0
- package/lib/generated-client/models/transcode-reason.js +2 -1
- package/lib/generated-client/models/transcoding-info.d.ts +16 -16
- package/lib/generated-client/models/transcoding-profile.d.ts +24 -18
- package/lib/generated-client/models/trickplay-options.d.ts +8 -2
- package/lib/generated-client/models/tuner-host-info.d.ts +18 -0
- package/lib/generated-client/models/type-options.d.ts +1 -1
- package/lib/generated-client/models/update-library-options-dto.d.ts +1 -1
- package/lib/generated-client/models/update-media-path-request-dto.d.ts +1 -1
- package/lib/generated-client/models/update-playlist-dto.d.ts +1 -1
- package/lib/generated-client/models/user-configuration.d.ts +1 -1
- package/lib/generated-client/models/user-data-change-info.d.ts +3 -3
- package/lib/generated-client/models/user-data-changed-message.d.ts +2 -2
- package/lib/generated-client/models/user-deleted-message.d.ts +1 -1
- package/lib/generated-client/models/user-dto.d.ts +2 -2
- package/lib/generated-client/models/user-item-data-dto.d.ts +2 -2
- package/lib/generated-client/models/user-policy.d.ts +3 -3
- package/lib/generated-client/models/user-updated-message.d.ts +2 -2
- package/lib/generated-client/models/virtual-folder-info.d.ts +2 -2
- package/lib/generated-client/models/web-socket-message.d.ts +2 -2
- package/lib/utils/address-candidates.js +15 -10
- package/lib/utils/api/index.d.ts +1 -0
- package/lib/utils/api/index.js +1 -0
- package/lib/utils/api/media-segments-api.d.ts +8 -0
- package/lib/utils/api/media-segments-api.js +12 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/url/index.d.ts +16 -3
- package/lib/utils/url/index.js +26 -4
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +13 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import globalAxios from 'axios';
|
|
2
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
|
|
3
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
4
4
|
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
@@ -105,6 +105,37 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
|
|
|
105
105
|
options: localVarRequestOptions,
|
|
106
106
|
};
|
|
107
107
|
},
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @summary Get a playlist.
|
|
111
|
+
* @param {string} playlistId The playlist id.
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
getPlaylist: async (playlistId, options = {}) => {
|
|
116
|
+
// verify required parameter 'playlistId' is not null or undefined
|
|
117
|
+
assertParamExists('getPlaylist', 'playlistId', playlistId);
|
|
118
|
+
const localVarPath = `/Playlists/{playlistId}`
|
|
119
|
+
.replace(`{${"playlistId"}}`, encodeURIComponent(String(playlistId)));
|
|
120
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
121
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
122
|
+
let baseOptions;
|
|
123
|
+
if (configuration) {
|
|
124
|
+
baseOptions = configuration.baseOptions;
|
|
125
|
+
}
|
|
126
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
127
|
+
const localVarHeaderParameter = {};
|
|
128
|
+
const localVarQueryParameter = {};
|
|
129
|
+
// authentication CustomAuthentication required
|
|
130
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
131
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
134
|
+
return {
|
|
135
|
+
url: toPathString(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
108
139
|
/**
|
|
109
140
|
*
|
|
110
141
|
* @summary Gets the original items of a playlist.
|
|
@@ -438,8 +469,11 @@ const PlaylistsApiFp = function (configuration) {
|
|
|
438
469
|
* @throws {RequiredError}
|
|
439
470
|
*/
|
|
440
471
|
async addItemToPlaylist(playlistId, ids, userId, options) {
|
|
472
|
+
var _a, _b, _c;
|
|
441
473
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addItemToPlaylist(playlistId, ids, userId, options);
|
|
442
|
-
|
|
474
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
475
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.addItemToPlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
476
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
443
477
|
},
|
|
444
478
|
/**
|
|
445
479
|
* For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.
|
|
@@ -453,8 +487,25 @@ const PlaylistsApiFp = function (configuration) {
|
|
|
453
487
|
* @throws {RequiredError}
|
|
454
488
|
*/
|
|
455
489
|
async createPlaylist(name, ids, userId, mediaType, createPlaylistDto, options) {
|
|
490
|
+
var _a, _b, _c;
|
|
456
491
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPlaylist(name, ids, userId, mediaType, createPlaylistDto, options);
|
|
457
|
-
|
|
492
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
493
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.createPlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
494
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
495
|
+
},
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
* @summary Get a playlist.
|
|
499
|
+
* @param {string} playlistId The playlist id.
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
*/
|
|
503
|
+
async getPlaylist(playlistId, options) {
|
|
504
|
+
var _a, _b, _c;
|
|
505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylist(playlistId, options);
|
|
506
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
507
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.getPlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
508
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
458
509
|
},
|
|
459
510
|
/**
|
|
460
511
|
*
|
|
@@ -472,8 +523,11 @@ const PlaylistsApiFp = function (configuration) {
|
|
|
472
523
|
* @throws {RequiredError}
|
|
473
524
|
*/
|
|
474
525
|
async getPlaylistItems(playlistId, userId, startIndex, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) {
|
|
526
|
+
var _a, _b, _c;
|
|
475
527
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylistItems(playlistId, userId, startIndex, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options);
|
|
476
|
-
|
|
528
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
529
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.getPlaylistItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
530
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
477
531
|
},
|
|
478
532
|
/**
|
|
479
533
|
*
|
|
@@ -484,8 +538,11 @@ const PlaylistsApiFp = function (configuration) {
|
|
|
484
538
|
* @throws {RequiredError}
|
|
485
539
|
*/
|
|
486
540
|
async getPlaylistUser(playlistId, userId, options) {
|
|
541
|
+
var _a, _b, _c;
|
|
487
542
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylistUser(playlistId, userId, options);
|
|
488
|
-
|
|
543
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
544
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.getPlaylistUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
545
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
489
546
|
},
|
|
490
547
|
/**
|
|
491
548
|
*
|
|
@@ -495,8 +552,11 @@ const PlaylistsApiFp = function (configuration) {
|
|
|
495
552
|
* @throws {RequiredError}
|
|
496
553
|
*/
|
|
497
554
|
async getPlaylistUsers(playlistId, options) {
|
|
555
|
+
var _a, _b, _c;
|
|
498
556
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylistUsers(playlistId, options);
|
|
499
|
-
|
|
557
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
558
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.getPlaylistUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
559
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
500
560
|
},
|
|
501
561
|
/**
|
|
502
562
|
*
|
|
@@ -508,8 +568,11 @@ const PlaylistsApiFp = function (configuration) {
|
|
|
508
568
|
* @throws {RequiredError}
|
|
509
569
|
*/
|
|
510
570
|
async moveItem(playlistId, itemId, newIndex, options) {
|
|
571
|
+
var _a, _b, _c;
|
|
511
572
|
const localVarAxiosArgs = await localVarAxiosParamCreator.moveItem(playlistId, itemId, newIndex, options);
|
|
512
|
-
|
|
573
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
574
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.moveItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
575
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
513
576
|
},
|
|
514
577
|
/**
|
|
515
578
|
*
|
|
@@ -520,8 +583,11 @@ const PlaylistsApiFp = function (configuration) {
|
|
|
520
583
|
* @throws {RequiredError}
|
|
521
584
|
*/
|
|
522
585
|
async removeItemFromPlaylist(playlistId, entryIds, options) {
|
|
586
|
+
var _a, _b, _c;
|
|
523
587
|
const localVarAxiosArgs = await localVarAxiosParamCreator.removeItemFromPlaylist(playlistId, entryIds, options);
|
|
524
|
-
|
|
588
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
589
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.removeItemFromPlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
590
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
525
591
|
},
|
|
526
592
|
/**
|
|
527
593
|
*
|
|
@@ -532,8 +598,11 @@ const PlaylistsApiFp = function (configuration) {
|
|
|
532
598
|
* @throws {RequiredError}
|
|
533
599
|
*/
|
|
534
600
|
async removeUserFromPlaylist(playlistId, userId, options) {
|
|
601
|
+
var _a, _b, _c;
|
|
535
602
|
const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromPlaylist(playlistId, userId, options);
|
|
536
|
-
|
|
603
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
604
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.removeUserFromPlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
605
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
537
606
|
},
|
|
538
607
|
/**
|
|
539
608
|
*
|
|
@@ -544,8 +613,11 @@ const PlaylistsApiFp = function (configuration) {
|
|
|
544
613
|
* @throws {RequiredError}
|
|
545
614
|
*/
|
|
546
615
|
async updatePlaylist(playlistId, updatePlaylistDto, options) {
|
|
616
|
+
var _a, _b, _c;
|
|
547
617
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlaylist(playlistId, updatePlaylistDto, options);
|
|
548
|
-
|
|
618
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
619
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.updatePlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
620
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
549
621
|
},
|
|
550
622
|
/**
|
|
551
623
|
*
|
|
@@ -557,8 +629,11 @@ const PlaylistsApiFp = function (configuration) {
|
|
|
557
629
|
* @throws {RequiredError}
|
|
558
630
|
*/
|
|
559
631
|
async updatePlaylistUser(playlistId, userId, updatePlaylistUserDto, options) {
|
|
632
|
+
var _a, _b, _c;
|
|
560
633
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlaylistUser(playlistId, userId, updatePlaylistUserDto, options);
|
|
561
|
-
|
|
634
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
635
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.updatePlaylistUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
636
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
562
637
|
},
|
|
563
638
|
};
|
|
564
639
|
};
|
|
@@ -572,124 +647,112 @@ const PlaylistsApiFactory = function (configuration, basePath, axios) {
|
|
|
572
647
|
/**
|
|
573
648
|
*
|
|
574
649
|
* @summary Adds items to a playlist.
|
|
575
|
-
* @param {
|
|
576
|
-
* @param {Array<string>} [ids] Item id, comma delimited.
|
|
577
|
-
* @param {string} [userId] The userId.
|
|
650
|
+
* @param {PlaylistsApiAddItemToPlaylistRequest} requestParameters Request parameters.
|
|
578
651
|
* @param {*} [options] Override http request option.
|
|
579
652
|
* @throws {RequiredError}
|
|
580
653
|
*/
|
|
581
|
-
addItemToPlaylist(
|
|
582
|
-
return localVarFp.addItemToPlaylist(playlistId, ids, userId, options).then((request) => request(axios, basePath));
|
|
654
|
+
addItemToPlaylist(requestParameters, options) {
|
|
655
|
+
return localVarFp.addItemToPlaylist(requestParameters.playlistId, requestParameters.ids, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
583
656
|
},
|
|
584
657
|
/**
|
|
585
658
|
* For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.
|
|
586
659
|
* @summary Creates a new playlist.
|
|
587
|
-
* @param {
|
|
588
|
-
* @param {
|
|
589
|
-
* @
|
|
590
|
-
|
|
591
|
-
|
|
660
|
+
* @param {PlaylistsApiCreatePlaylistRequest} requestParameters Request parameters.
|
|
661
|
+
* @param {*} [options] Override http request option.
|
|
662
|
+
* @throws {RequiredError}
|
|
663
|
+
*/
|
|
664
|
+
createPlaylist(requestParameters = {}, options) {
|
|
665
|
+
return localVarFp.createPlaylist(requestParameters.name, requestParameters.ids, requestParameters.userId, requestParameters.mediaType, requestParameters.createPlaylistDto, options).then((request) => request(axios, basePath));
|
|
666
|
+
},
|
|
667
|
+
/**
|
|
668
|
+
*
|
|
669
|
+
* @summary Get a playlist.
|
|
670
|
+
* @param {PlaylistsApiGetPlaylistRequest} requestParameters Request parameters.
|
|
592
671
|
* @param {*} [options] Override http request option.
|
|
593
672
|
* @throws {RequiredError}
|
|
594
673
|
*/
|
|
595
|
-
|
|
596
|
-
return localVarFp.
|
|
674
|
+
getPlaylist(requestParameters, options) {
|
|
675
|
+
return localVarFp.getPlaylist(requestParameters.playlistId, options).then((request) => request(axios, basePath));
|
|
597
676
|
},
|
|
598
677
|
/**
|
|
599
678
|
*
|
|
600
679
|
* @summary Gets the original items of a playlist.
|
|
601
|
-
* @param {
|
|
602
|
-
* @param {string} [userId] User id.
|
|
603
|
-
* @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
|
|
604
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
605
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
606
|
-
* @param {boolean} [enableImages] Optional. Include image information in output.
|
|
607
|
-
* @param {boolean} [enableUserData] Optional. Include user data.
|
|
608
|
-
* @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
|
|
609
|
-
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
680
|
+
* @param {PlaylistsApiGetPlaylistItemsRequest} requestParameters Request parameters.
|
|
610
681
|
* @param {*} [options] Override http request option.
|
|
611
682
|
* @throws {RequiredError}
|
|
612
683
|
*/
|
|
613
|
-
getPlaylistItems(
|
|
614
|
-
return localVarFp.getPlaylistItems(playlistId, userId, startIndex, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options).then((request) => request(axios, basePath));
|
|
684
|
+
getPlaylistItems(requestParameters, options) {
|
|
685
|
+
return localVarFp.getPlaylistItems(requestParameters.playlistId, requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.fields, requestParameters.enableImages, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, options).then((request) => request(axios, basePath));
|
|
615
686
|
},
|
|
616
687
|
/**
|
|
617
688
|
*
|
|
618
689
|
* @summary Get a playlist user.
|
|
619
|
-
* @param {
|
|
620
|
-
* @param {string} userId The user id.
|
|
690
|
+
* @param {PlaylistsApiGetPlaylistUserRequest} requestParameters Request parameters.
|
|
621
691
|
* @param {*} [options] Override http request option.
|
|
622
692
|
* @throws {RequiredError}
|
|
623
693
|
*/
|
|
624
|
-
getPlaylistUser(
|
|
625
|
-
return localVarFp.getPlaylistUser(playlistId, userId, options).then((request) => request(axios, basePath));
|
|
694
|
+
getPlaylistUser(requestParameters, options) {
|
|
695
|
+
return localVarFp.getPlaylistUser(requestParameters.playlistId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
626
696
|
},
|
|
627
697
|
/**
|
|
628
698
|
*
|
|
629
699
|
* @summary Get a playlist\'s users.
|
|
630
|
-
* @param {
|
|
700
|
+
* @param {PlaylistsApiGetPlaylistUsersRequest} requestParameters Request parameters.
|
|
631
701
|
* @param {*} [options] Override http request option.
|
|
632
702
|
* @throws {RequiredError}
|
|
633
703
|
*/
|
|
634
|
-
getPlaylistUsers(
|
|
635
|
-
return localVarFp.getPlaylistUsers(playlistId, options).then((request) => request(axios, basePath));
|
|
704
|
+
getPlaylistUsers(requestParameters, options) {
|
|
705
|
+
return localVarFp.getPlaylistUsers(requestParameters.playlistId, options).then((request) => request(axios, basePath));
|
|
636
706
|
},
|
|
637
707
|
/**
|
|
638
708
|
*
|
|
639
709
|
* @summary Moves a playlist item.
|
|
640
|
-
* @param {
|
|
641
|
-
* @param {string} itemId The item id.
|
|
642
|
-
* @param {number} newIndex The new index.
|
|
710
|
+
* @param {PlaylistsApiMoveItemRequest} requestParameters Request parameters.
|
|
643
711
|
* @param {*} [options] Override http request option.
|
|
644
712
|
* @throws {RequiredError}
|
|
645
713
|
*/
|
|
646
|
-
moveItem(
|
|
647
|
-
return localVarFp.moveItem(playlistId, itemId, newIndex, options).then((request) => request(axios, basePath));
|
|
714
|
+
moveItem(requestParameters, options) {
|
|
715
|
+
return localVarFp.moveItem(requestParameters.playlistId, requestParameters.itemId, requestParameters.newIndex, options).then((request) => request(axios, basePath));
|
|
648
716
|
},
|
|
649
717
|
/**
|
|
650
718
|
*
|
|
651
719
|
* @summary Removes items from a playlist.
|
|
652
|
-
* @param {
|
|
653
|
-
* @param {Array<string>} [entryIds] The item ids, comma delimited.
|
|
720
|
+
* @param {PlaylistsApiRemoveItemFromPlaylistRequest} requestParameters Request parameters.
|
|
654
721
|
* @param {*} [options] Override http request option.
|
|
655
722
|
* @throws {RequiredError}
|
|
656
723
|
*/
|
|
657
|
-
removeItemFromPlaylist(
|
|
658
|
-
return localVarFp.removeItemFromPlaylist(playlistId, entryIds, options).then((request) => request(axios, basePath));
|
|
724
|
+
removeItemFromPlaylist(requestParameters, options) {
|
|
725
|
+
return localVarFp.removeItemFromPlaylist(requestParameters.playlistId, requestParameters.entryIds, options).then((request) => request(axios, basePath));
|
|
659
726
|
},
|
|
660
727
|
/**
|
|
661
728
|
*
|
|
662
729
|
* @summary Remove a user from a playlist\'s users.
|
|
663
|
-
* @param {
|
|
664
|
-
* @param {string} userId The user id.
|
|
730
|
+
* @param {PlaylistsApiRemoveUserFromPlaylistRequest} requestParameters Request parameters.
|
|
665
731
|
* @param {*} [options] Override http request option.
|
|
666
732
|
* @throws {RequiredError}
|
|
667
733
|
*/
|
|
668
|
-
removeUserFromPlaylist(
|
|
669
|
-
return localVarFp.removeUserFromPlaylist(playlistId, userId, options).then((request) => request(axios, basePath));
|
|
734
|
+
removeUserFromPlaylist(requestParameters, options) {
|
|
735
|
+
return localVarFp.removeUserFromPlaylist(requestParameters.playlistId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
670
736
|
},
|
|
671
737
|
/**
|
|
672
738
|
*
|
|
673
739
|
* @summary Updates a playlist.
|
|
674
|
-
* @param {
|
|
675
|
-
* @param {UpdatePlaylistDto} updatePlaylistDto The Jellyfin.Api.Models.PlaylistDtos.UpdatePlaylistDto id.
|
|
740
|
+
* @param {PlaylistsApiUpdatePlaylistRequest} requestParameters Request parameters.
|
|
676
741
|
* @param {*} [options] Override http request option.
|
|
677
742
|
* @throws {RequiredError}
|
|
678
743
|
*/
|
|
679
|
-
updatePlaylist(
|
|
680
|
-
return localVarFp.updatePlaylist(playlistId, updatePlaylistDto, options).then((request) => request(axios, basePath));
|
|
744
|
+
updatePlaylist(requestParameters, options) {
|
|
745
|
+
return localVarFp.updatePlaylist(requestParameters.playlistId, requestParameters.updatePlaylistDto, options).then((request) => request(axios, basePath));
|
|
681
746
|
},
|
|
682
747
|
/**
|
|
683
748
|
*
|
|
684
749
|
* @summary Modify a user of a playlist\'s users.
|
|
685
|
-
* @param {
|
|
686
|
-
* @param {string} userId The user id.
|
|
687
|
-
* @param {UpdatePlaylistUserDto} updatePlaylistUserDto The Jellyfin.Api.Models.PlaylistDtos.UpdatePlaylistUserDto.
|
|
750
|
+
* @param {PlaylistsApiUpdatePlaylistUserRequest} requestParameters Request parameters.
|
|
688
751
|
* @param {*} [options] Override http request option.
|
|
689
752
|
* @throws {RequiredError}
|
|
690
753
|
*/
|
|
691
|
-
updatePlaylistUser(
|
|
692
|
-
return localVarFp.updatePlaylistUser(playlistId, userId, updatePlaylistUserDto, options).then((request) => request(axios, basePath));
|
|
754
|
+
updatePlaylistUser(requestParameters, options) {
|
|
755
|
+
return localVarFp.updatePlaylistUser(requestParameters.playlistId, requestParameters.userId, requestParameters.updatePlaylistUserDto, options).then((request) => request(axios, basePath));
|
|
693
756
|
},
|
|
694
757
|
};
|
|
695
758
|
};
|
|
@@ -722,6 +785,17 @@ class PlaylistsApi extends BaseAPI {
|
|
|
722
785
|
createPlaylist(requestParameters = {}, options) {
|
|
723
786
|
return PlaylistsApiFp(this.configuration).createPlaylist(requestParameters.name, requestParameters.ids, requestParameters.userId, requestParameters.mediaType, requestParameters.createPlaylistDto, options).then((request) => request(this.axios, this.basePath));
|
|
724
787
|
}
|
|
788
|
+
/**
|
|
789
|
+
*
|
|
790
|
+
* @summary Get a playlist.
|
|
791
|
+
* @param {PlaylistsApiGetPlaylistRequest} requestParameters Request parameters.
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
* @memberof PlaylistsApi
|
|
795
|
+
*/
|
|
796
|
+
getPlaylist(requestParameters, options) {
|
|
797
|
+
return PlaylistsApiFp(this.configuration).getPlaylist(requestParameters.playlistId, options).then((request) => request(this.axios, this.basePath));
|
|
798
|
+
}
|
|
725
799
|
/**
|
|
726
800
|
*
|
|
727
801
|
* @summary Gets the original items of a playlist.
|