@jellyfin/sdk 0.9.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 +10 -0
- package/lib/api.d.ts +0 -11
- package/lib/api.js +0 -14
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +17 -22
- package/lib/generated-client/api/activity-log-api.d.ts +9 -12
- package/lib/generated-client/api/activity-log-api.js +15 -18
- package/lib/generated-client/api/api-key-api.d.ts +18 -18
- package/lib/generated-client/api/api-key-api.js +40 -38
- package/lib/generated-client/api/artists-api.d.ts +27 -90
- package/lib/generated-client/api/artists-api.js +43 -104
- package/lib/generated-client/api/audio-api.d.ts +81 -249
- package/lib/generated-client/api/audio-api.js +105 -266
- package/lib/generated-client/api/branding-api.d.ts +16 -16
- package/lib/generated-client/api/branding-api.js +31 -29
- package/lib/generated-client/api/channels-api.d.ts +33 -51
- package/lib/generated-client/api/channels-api.js +68 -82
- package/lib/generated-client/api/client-log-api.d.ts +13 -13
- package/lib/generated-client/api/client-log-api.js +17 -17
- package/lib/generated-client/api/collection-api.d.ts +19 -24
- package/lib/generated-client/api/collection-api.js +43 -46
- package/lib/generated-client/api/configuration-api.d.ts +28 -29
- package/lib/generated-client/api/configuration-api.js +65 -62
- package/lib/generated-client/api/dashboard-api.d.ts +14 -14
- package/lib/generated-client/api/dashboard-api.js +28 -27
- package/lib/generated-client/api/devices-api.d.ts +31 -33
- package/lib/generated-client/api/devices-api.js +71 -68
- package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
- package/lib/generated-client/api/display-preferences-api.js +29 -33
- package/lib/generated-client/api/dynamic-hls-api.d.ts +246 -607
- package/lib/generated-client/api/dynamic-hls-api.js +269 -628
- package/lib/generated-client/api/environment-api.d.ts +33 -35
- package/lib/generated-client/api/environment-api.js +76 -73
- package/lib/generated-client/api/filter-api.d.ts +17 -29
- package/lib/generated-client/api/filter-api.js +29 -40
- package/lib/generated-client/api/genres-api.d.ts +20 -38
- package/lib/generated-client/api/genres-api.js +29 -46
- package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
- package/lib/generated-client/api/hls-segment-api.js +68 -71
- package/lib/generated-client/api/image-api.d.ts +206 -644
- package/lib/generated-client/api/image-api.js +501 -903
- package/lib/generated-client/api/instant-mix-api.d.ts +46 -102
- package/lib/generated-client/api/instant-mix-api.js +113 -162
- package/lib/generated-client/api/item-lookup-api.d.ts +69 -71
- package/lib/generated-client/api/item-lookup-api.js +155 -147
- package/lib/generated-client/api/item-refresh-api.d.ts +9 -13
- package/lib/generated-client/api/item-refresh-api.js +15 -19
- package/lib/generated-client/api/item-update-api.d.ts +20 -22
- package/lib/generated-client/api/item-update-api.js +43 -43
- package/lib/generated-client/api/items-api.d.ts +44 -137
- package/lib/generated-client/api/items-api.js +63 -156
- package/lib/generated-client/api/library-api.d.ts +185 -170
- package/lib/generated-client/api/library-api.js +378 -359
- package/lib/generated-client/api/library-structure-api.d.ts +48 -58
- package/lib/generated-client/api/library-structure-api.js +110 -113
- package/lib/generated-client/api/live-tv-api.d.ts +224 -332
- package/lib/generated-client/api/live-tv-api.js +558 -626
- package/lib/generated-client/api/localization-api.d.ts +23 -23
- package/lib/generated-client/api/localization-api.js +45 -42
- package/lib/generated-client/api/lyrics-api.d.ts +39 -42
- package/lib/generated-client/api/lyrics-api.js +87 -85
- package/lib/generated-client/api/media-info-api.d.ts +40 -59
- package/lib/generated-client/api/media-info-api.js +77 -95
- 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 +15 -19
- package/lib/generated-client/api/music-genres-api.d.ts +20 -38
- package/lib/generated-client/api/music-genres-api.js +29 -46
- package/lib/generated-client/api/package-api.d.ts +33 -37
- package/lib/generated-client/api/package-api.js +79 -78
- package/lib/generated-client/api/persons-api.d.ts +18 -31
- package/lib/generated-client/api/persons-api.js +29 -41
- package/lib/generated-client/api/playlists-api.d.ts +109 -84
- package/lib/generated-client/api/playlists-api.js +207 -154
- package/lib/generated-client/api/playstate-api.d.ts +54 -80
- package/lib/generated-client/api/playstate-api.js +127 -145
- package/lib/generated-client/api/plugins-api.d.ts +48 -52
- package/lib/generated-client/api/plugins-api.js +124 -120
- package/lib/generated-client/api/quick-connect-api.d.ts +22 -23
- package/lib/generated-client/api/quick-connect-api.js +48 -46
- package/lib/generated-client/api/remote-image-api.d.ts +21 -28
- package/lib/generated-client/api/remote-image-api.js +43 -48
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +30 -32
- package/lib/generated-client/api/scheduled-tasks-api.js +71 -69
- package/lib/generated-client/api/search-api.d.ts +11 -28
- package/lib/generated-client/api/search-api.js +15 -32
- package/lib/generated-client/api/session-api.d.ts +90 -117
- package/lib/generated-client/api/session-api.js +216 -228
- package/lib/generated-client/api/startup-api.d.ts +37 -37
- package/lib/generated-client/api/startup-api.js +87 -81
- package/lib/generated-client/api/studios-api.d.ts +18 -35
- package/lib/generated-client/api/studios-api.js +29 -45
- package/lib/generated-client/api/subtitle-api.d.ts +55 -86
- package/lib/generated-client/api/subtitle-api.js +136 -158
- package/lib/generated-client/api/suggestions-api.d.ts +11 -16
- package/lib/generated-client/api/suggestions-api.js +15 -20
- package/lib/generated-client/api/sync-play-api.d.ts +120 -120
- package/lib/generated-client/api/sync-play-api.js +280 -260
- package/lib/generated-client/api/system-api.d.ts +49 -49
- package/lib/generated-client/api/system-api.js +111 -102
- package/lib/generated-client/api/time-sync-api.d.ts +8 -8
- package/lib/generated-client/api/time-sync-api.js +11 -11
- package/lib/generated-client/api/tmdb-api.d.ts +8 -8
- package/lib/generated-client/api/tmdb-api.js +12 -12
- package/lib/generated-client/api/trailers-api.d.ts +19 -102
- package/lib/generated-client/api/trailers-api.js +15 -98
- package/lib/generated-client/api/trickplay-api.d.ts +13 -18
- package/lib/generated-client/api/trickplay-api.js +29 -33
- package/lib/generated-client/api/tv-shows-api.d.ts +27 -72
- package/lib/generated-client/api/tv-shows-api.js +57 -99
- package/lib/generated-client/api/universal-audio-api.d.ts +30 -48
- package/lib/generated-client/api/universal-audio-api.js +41 -64
- package/lib/generated-client/api/user-api.d.ts +83 -88
- package/lib/generated-client/api/user-api.js +186 -178
- package/lib/generated-client/api/user-library-api.d.ts +59 -78
- package/lib/generated-client/api/user-library-api.js +141 -151
- package/lib/generated-client/api/user-views-api.d.ts +16 -19
- package/lib/generated-client/api/user-views-api.js +29 -31
- package/lib/generated-client/api/video-attachments-api.d.ts +8 -10
- package/lib/generated-client/api/video-attachments-api.js +14 -16
- package/lib/generated-client/api/videos-api.d.ts +97 -274
- package/lib/generated-client/api/videos-api.js +147 -314
- package/lib/generated-client/api/years-api.d.ts +21 -36
- package/lib/generated-client/api/years-api.js +29 -43
- 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 +30 -24
- 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 +3 -3
- 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/image-urls-api.js +16 -4
- 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
- package/lib/node_modules/tslib/tslib.es6.js +0 -33
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
|
|
4
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
5
4
|
|
|
6
5
|
/* tslint:disable */
|
|
7
6
|
/* eslint-disable */
|
|
@@ -28,7 +27,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
deleteItem:
|
|
30
|
+
deleteItem: async (itemId, options = {}) => {
|
|
32
31
|
// verify required parameter 'itemId' is not null or undefined
|
|
33
32
|
assertParamExists('deleteItem', 'itemId', itemId);
|
|
34
33
|
const localVarPath = `/Items/{itemId}`
|
|
@@ -39,19 +38,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
39
38
|
if (configuration) {
|
|
40
39
|
baseOptions = configuration.baseOptions;
|
|
41
40
|
}
|
|
42
|
-
const localVarRequestOptions =
|
|
41
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
43
42
|
const localVarHeaderParameter = {};
|
|
44
43
|
const localVarQueryParameter = {};
|
|
45
44
|
// authentication CustomAuthentication required
|
|
46
|
-
|
|
45
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
47
46
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
48
47
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
49
|
-
localVarRequestOptions.headers =
|
|
48
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
50
49
|
return {
|
|
51
50
|
url: toPathString(localVarUrlObj),
|
|
52
51
|
options: localVarRequestOptions,
|
|
53
52
|
};
|
|
54
|
-
}
|
|
53
|
+
},
|
|
55
54
|
/**
|
|
56
55
|
*
|
|
57
56
|
* @summary Deletes items from the library and filesystem.
|
|
@@ -59,7 +58,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
59
58
|
* @param {*} [options] Override http request option.
|
|
60
59
|
* @throws {RequiredError}
|
|
61
60
|
*/
|
|
62
|
-
deleteItems:
|
|
61
|
+
deleteItems: async (ids, options = {}) => {
|
|
63
62
|
const localVarPath = `/Items`;
|
|
64
63
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65
64
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -67,22 +66,22 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
67
66
|
if (configuration) {
|
|
68
67
|
baseOptions = configuration.baseOptions;
|
|
69
68
|
}
|
|
70
|
-
const localVarRequestOptions =
|
|
69
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
71
70
|
const localVarHeaderParameter = {};
|
|
72
71
|
const localVarQueryParameter = {};
|
|
73
72
|
// authentication CustomAuthentication required
|
|
74
|
-
|
|
73
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
75
74
|
if (ids) {
|
|
76
75
|
localVarQueryParameter['ids'] = ids;
|
|
77
76
|
}
|
|
78
77
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
78
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
|
-
localVarRequestOptions.headers =
|
|
79
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
81
80
|
return {
|
|
82
81
|
url: toPathString(localVarUrlObj),
|
|
83
82
|
options: localVarRequestOptions,
|
|
84
83
|
};
|
|
85
|
-
}
|
|
84
|
+
},
|
|
86
85
|
/**
|
|
87
86
|
*
|
|
88
87
|
* @summary Gets all parents of an item.
|
|
@@ -91,7 +90,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
91
90
|
* @param {*} [options] Override http request option.
|
|
92
91
|
* @throws {RequiredError}
|
|
93
92
|
*/
|
|
94
|
-
getAncestors:
|
|
93
|
+
getAncestors: async (itemId, userId, options = {}) => {
|
|
95
94
|
// verify required parameter 'itemId' is not null or undefined
|
|
96
95
|
assertParamExists('getAncestors', 'itemId', itemId);
|
|
97
96
|
const localVarPath = `/Items/{itemId}/Ancestors`
|
|
@@ -102,22 +101,22 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
102
101
|
if (configuration) {
|
|
103
102
|
baseOptions = configuration.baseOptions;
|
|
104
103
|
}
|
|
105
|
-
const localVarRequestOptions =
|
|
104
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
106
105
|
const localVarHeaderParameter = {};
|
|
107
106
|
const localVarQueryParameter = {};
|
|
108
107
|
// authentication CustomAuthentication required
|
|
109
|
-
|
|
108
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
110
109
|
if (userId !== undefined) {
|
|
111
110
|
localVarQueryParameter['userId'] = userId;
|
|
112
111
|
}
|
|
113
112
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
114
113
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
115
|
-
localVarRequestOptions.headers =
|
|
114
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
116
115
|
return {
|
|
117
116
|
url: toPathString(localVarUrlObj),
|
|
118
117
|
options: localVarRequestOptions,
|
|
119
118
|
};
|
|
120
|
-
}
|
|
119
|
+
},
|
|
121
120
|
/**
|
|
122
121
|
*
|
|
123
122
|
* @summary Gets critic review for an item.
|
|
@@ -126,7 +125,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
126
125
|
* @deprecated
|
|
127
126
|
* @throws {RequiredError}
|
|
128
127
|
*/
|
|
129
|
-
getCriticReviews:
|
|
128
|
+
getCriticReviews: async (itemId, options = {}) => {
|
|
130
129
|
// verify required parameter 'itemId' is not null or undefined
|
|
131
130
|
assertParamExists('getCriticReviews', 'itemId', itemId);
|
|
132
131
|
const localVarPath = `/Items/{itemId}/CriticReviews`
|
|
@@ -137,19 +136,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
137
136
|
if (configuration) {
|
|
138
137
|
baseOptions = configuration.baseOptions;
|
|
139
138
|
}
|
|
140
|
-
const localVarRequestOptions =
|
|
139
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
141
140
|
const localVarHeaderParameter = {};
|
|
142
141
|
const localVarQueryParameter = {};
|
|
143
142
|
// authentication CustomAuthentication required
|
|
144
|
-
|
|
143
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
145
144
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
146
145
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147
|
-
localVarRequestOptions.headers =
|
|
146
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
148
147
|
return {
|
|
149
148
|
url: toPathString(localVarUrlObj),
|
|
150
149
|
options: localVarRequestOptions,
|
|
151
150
|
};
|
|
152
|
-
}
|
|
151
|
+
},
|
|
153
152
|
/**
|
|
154
153
|
*
|
|
155
154
|
* @summary Downloads item media.
|
|
@@ -157,7 +156,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
157
156
|
* @param {*} [options] Override http request option.
|
|
158
157
|
* @throws {RequiredError}
|
|
159
158
|
*/
|
|
160
|
-
getDownload:
|
|
159
|
+
getDownload: async (itemId, options = {}) => {
|
|
161
160
|
// verify required parameter 'itemId' is not null or undefined
|
|
162
161
|
assertParamExists('getDownload', 'itemId', itemId);
|
|
163
162
|
const localVarPath = `/Items/{itemId}/Download`
|
|
@@ -168,19 +167,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
168
167
|
if (configuration) {
|
|
169
168
|
baseOptions = configuration.baseOptions;
|
|
170
169
|
}
|
|
171
|
-
const localVarRequestOptions =
|
|
170
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
172
171
|
const localVarHeaderParameter = {};
|
|
173
172
|
const localVarQueryParameter = {};
|
|
174
173
|
// authentication CustomAuthentication required
|
|
175
|
-
|
|
174
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
176
175
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
177
176
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
178
|
-
localVarRequestOptions.headers =
|
|
177
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
179
178
|
return {
|
|
180
179
|
url: toPathString(localVarUrlObj),
|
|
181
180
|
options: localVarRequestOptions,
|
|
182
181
|
};
|
|
183
|
-
}
|
|
182
|
+
},
|
|
184
183
|
/**
|
|
185
184
|
*
|
|
186
185
|
* @summary Get the original file of an item.
|
|
@@ -188,7 +187,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
188
187
|
* @param {*} [options] Override http request option.
|
|
189
188
|
* @throws {RequiredError}
|
|
190
189
|
*/
|
|
191
|
-
getFile:
|
|
190
|
+
getFile: async (itemId, options = {}) => {
|
|
192
191
|
// verify required parameter 'itemId' is not null or undefined
|
|
193
192
|
assertParamExists('getFile', 'itemId', itemId);
|
|
194
193
|
const localVarPath = `/Items/{itemId}/File`
|
|
@@ -199,19 +198,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
199
198
|
if (configuration) {
|
|
200
199
|
baseOptions = configuration.baseOptions;
|
|
201
200
|
}
|
|
202
|
-
const localVarRequestOptions =
|
|
201
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
203
202
|
const localVarHeaderParameter = {};
|
|
204
203
|
const localVarQueryParameter = {};
|
|
205
204
|
// authentication CustomAuthentication required
|
|
206
|
-
|
|
205
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
207
206
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
208
207
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
209
|
-
localVarRequestOptions.headers =
|
|
208
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
210
209
|
return {
|
|
211
210
|
url: toPathString(localVarUrlObj),
|
|
212
211
|
options: localVarRequestOptions,
|
|
213
212
|
};
|
|
214
|
-
}
|
|
213
|
+
},
|
|
215
214
|
/**
|
|
216
215
|
*
|
|
217
216
|
* @summary Get item counts.
|
|
@@ -220,7 +219,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
220
219
|
* @param {*} [options] Override http request option.
|
|
221
220
|
* @throws {RequiredError}
|
|
222
221
|
*/
|
|
223
|
-
getItemCounts:
|
|
222
|
+
getItemCounts: async (userId, isFavorite, options = {}) => {
|
|
224
223
|
const localVarPath = `/Items/Counts`;
|
|
225
224
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
226
225
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -228,11 +227,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
228
227
|
if (configuration) {
|
|
229
228
|
baseOptions = configuration.baseOptions;
|
|
230
229
|
}
|
|
231
|
-
const localVarRequestOptions =
|
|
230
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
232
231
|
const localVarHeaderParameter = {};
|
|
233
232
|
const localVarQueryParameter = {};
|
|
234
233
|
// authentication CustomAuthentication required
|
|
235
|
-
|
|
234
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
236
235
|
if (userId !== undefined) {
|
|
237
236
|
localVarQueryParameter['userId'] = userId;
|
|
238
237
|
}
|
|
@@ -241,12 +240,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
241
240
|
}
|
|
242
241
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
243
242
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
244
|
-
localVarRequestOptions.headers =
|
|
243
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
245
244
|
return {
|
|
246
245
|
url: toPathString(localVarUrlObj),
|
|
247
246
|
options: localVarRequestOptions,
|
|
248
247
|
};
|
|
249
|
-
}
|
|
248
|
+
},
|
|
250
249
|
/**
|
|
251
250
|
*
|
|
252
251
|
* @summary Gets the library options info.
|
|
@@ -255,7 +254,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
255
254
|
* @param {*} [options] Override http request option.
|
|
256
255
|
* @throws {RequiredError}
|
|
257
256
|
*/
|
|
258
|
-
getLibraryOptionsInfo:
|
|
257
|
+
getLibraryOptionsInfo: async (libraryContentType, isNewLibrary, options = {}) => {
|
|
259
258
|
const localVarPath = `/Libraries/AvailableOptions`;
|
|
260
259
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
261
260
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -263,11 +262,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
263
262
|
if (configuration) {
|
|
264
263
|
baseOptions = configuration.baseOptions;
|
|
265
264
|
}
|
|
266
|
-
const localVarRequestOptions =
|
|
265
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
267
266
|
const localVarHeaderParameter = {};
|
|
268
267
|
const localVarQueryParameter = {};
|
|
269
268
|
// authentication CustomAuthentication required
|
|
270
|
-
|
|
269
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
271
270
|
if (libraryContentType !== undefined) {
|
|
272
271
|
localVarQueryParameter['libraryContentType'] = libraryContentType;
|
|
273
272
|
}
|
|
@@ -276,12 +275,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
276
275
|
}
|
|
277
276
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
278
277
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
-
localVarRequestOptions.headers =
|
|
278
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
280
279
|
return {
|
|
281
280
|
url: toPathString(localVarUrlObj),
|
|
282
281
|
options: localVarRequestOptions,
|
|
283
282
|
};
|
|
284
|
-
}
|
|
283
|
+
},
|
|
285
284
|
/**
|
|
286
285
|
*
|
|
287
286
|
* @summary Gets all user media folders.
|
|
@@ -289,7 +288,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
289
288
|
* @param {*} [options] Override http request option.
|
|
290
289
|
* @throws {RequiredError}
|
|
291
290
|
*/
|
|
292
|
-
getMediaFolders:
|
|
291
|
+
getMediaFolders: async (isHidden, options = {}) => {
|
|
293
292
|
const localVarPath = `/Library/MediaFolders`;
|
|
294
293
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
295
294
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -297,29 +296,29 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
297
296
|
if (configuration) {
|
|
298
297
|
baseOptions = configuration.baseOptions;
|
|
299
298
|
}
|
|
300
|
-
const localVarRequestOptions =
|
|
299
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
301
300
|
const localVarHeaderParameter = {};
|
|
302
301
|
const localVarQueryParameter = {};
|
|
303
302
|
// authentication CustomAuthentication required
|
|
304
|
-
|
|
303
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
305
304
|
if (isHidden !== undefined) {
|
|
306
305
|
localVarQueryParameter['isHidden'] = isHidden;
|
|
307
306
|
}
|
|
308
307
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
309
308
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
310
|
-
localVarRequestOptions.headers =
|
|
309
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
311
310
|
return {
|
|
312
311
|
url: toPathString(localVarUrlObj),
|
|
313
312
|
options: localVarRequestOptions,
|
|
314
313
|
};
|
|
315
|
-
}
|
|
314
|
+
},
|
|
316
315
|
/**
|
|
317
316
|
*
|
|
318
317
|
* @summary Gets a list of physical paths from virtual folders.
|
|
319
318
|
* @param {*} [options] Override http request option.
|
|
320
319
|
* @throws {RequiredError}
|
|
321
320
|
*/
|
|
322
|
-
getPhysicalPaths:
|
|
321
|
+
getPhysicalPaths: async (options = {}) => {
|
|
323
322
|
const localVarPath = `/Library/PhysicalPaths`;
|
|
324
323
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
325
324
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -327,19 +326,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
327
326
|
if (configuration) {
|
|
328
327
|
baseOptions = configuration.baseOptions;
|
|
329
328
|
}
|
|
330
|
-
const localVarRequestOptions =
|
|
329
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
331
330
|
const localVarHeaderParameter = {};
|
|
332
331
|
const localVarQueryParameter = {};
|
|
333
332
|
// authentication CustomAuthentication required
|
|
334
|
-
|
|
333
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
335
334
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
336
335
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
337
|
-
localVarRequestOptions.headers =
|
|
336
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
338
337
|
return {
|
|
339
338
|
url: toPathString(localVarUrlObj),
|
|
340
339
|
options: localVarRequestOptions,
|
|
341
340
|
};
|
|
342
|
-
}
|
|
341
|
+
},
|
|
343
342
|
/**
|
|
344
343
|
*
|
|
345
344
|
* @summary Gets similar items.
|
|
@@ -351,7 +350,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
351
350
|
* @param {*} [options] Override http request option.
|
|
352
351
|
* @throws {RequiredError}
|
|
353
352
|
*/
|
|
354
|
-
getSimilarAlbums:
|
|
353
|
+
getSimilarAlbums: async (itemId, excludeArtistIds, userId, limit, fields, options = {}) => {
|
|
355
354
|
// verify required parameter 'itemId' is not null or undefined
|
|
356
355
|
assertParamExists('getSimilarAlbums', 'itemId', itemId);
|
|
357
356
|
const localVarPath = `/Albums/{itemId}/Similar`
|
|
@@ -362,11 +361,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
362
361
|
if (configuration) {
|
|
363
362
|
baseOptions = configuration.baseOptions;
|
|
364
363
|
}
|
|
365
|
-
const localVarRequestOptions =
|
|
364
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
366
365
|
const localVarHeaderParameter = {};
|
|
367
366
|
const localVarQueryParameter = {};
|
|
368
367
|
// authentication CustomAuthentication required
|
|
369
|
-
|
|
368
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
370
369
|
if (excludeArtistIds) {
|
|
371
370
|
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
372
371
|
}
|
|
@@ -381,12 +380,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
381
380
|
}
|
|
382
381
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
383
382
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
384
|
-
localVarRequestOptions.headers =
|
|
383
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
385
384
|
return {
|
|
386
385
|
url: toPathString(localVarUrlObj),
|
|
387
386
|
options: localVarRequestOptions,
|
|
388
387
|
};
|
|
389
|
-
}
|
|
388
|
+
},
|
|
390
389
|
/**
|
|
391
390
|
*
|
|
392
391
|
* @summary Gets similar items.
|
|
@@ -398,7 +397,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
398
397
|
* @param {*} [options] Override http request option.
|
|
399
398
|
* @throws {RequiredError}
|
|
400
399
|
*/
|
|
401
|
-
getSimilarArtists:
|
|
400
|
+
getSimilarArtists: async (itemId, excludeArtistIds, userId, limit, fields, options = {}) => {
|
|
402
401
|
// verify required parameter 'itemId' is not null or undefined
|
|
403
402
|
assertParamExists('getSimilarArtists', 'itemId', itemId);
|
|
404
403
|
const localVarPath = `/Artists/{itemId}/Similar`
|
|
@@ -409,11 +408,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
409
408
|
if (configuration) {
|
|
410
409
|
baseOptions = configuration.baseOptions;
|
|
411
410
|
}
|
|
412
|
-
const localVarRequestOptions =
|
|
411
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
413
412
|
const localVarHeaderParameter = {};
|
|
414
413
|
const localVarQueryParameter = {};
|
|
415
414
|
// authentication CustomAuthentication required
|
|
416
|
-
|
|
415
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
417
416
|
if (excludeArtistIds) {
|
|
418
417
|
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
419
418
|
}
|
|
@@ -428,12 +427,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
428
427
|
}
|
|
429
428
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
430
429
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
431
|
-
localVarRequestOptions.headers =
|
|
430
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
432
431
|
return {
|
|
433
432
|
url: toPathString(localVarUrlObj),
|
|
434
433
|
options: localVarRequestOptions,
|
|
435
434
|
};
|
|
436
|
-
}
|
|
435
|
+
},
|
|
437
436
|
/**
|
|
438
437
|
*
|
|
439
438
|
* @summary Gets similar items.
|
|
@@ -445,7 +444,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
445
444
|
* @param {*} [options] Override http request option.
|
|
446
445
|
* @throws {RequiredError}
|
|
447
446
|
*/
|
|
448
|
-
getSimilarItems:
|
|
447
|
+
getSimilarItems: async (itemId, excludeArtistIds, userId, limit, fields, options = {}) => {
|
|
449
448
|
// verify required parameter 'itemId' is not null or undefined
|
|
450
449
|
assertParamExists('getSimilarItems', 'itemId', itemId);
|
|
451
450
|
const localVarPath = `/Items/{itemId}/Similar`
|
|
@@ -456,11 +455,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
456
455
|
if (configuration) {
|
|
457
456
|
baseOptions = configuration.baseOptions;
|
|
458
457
|
}
|
|
459
|
-
const localVarRequestOptions =
|
|
458
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
460
459
|
const localVarHeaderParameter = {};
|
|
461
460
|
const localVarQueryParameter = {};
|
|
462
461
|
// authentication CustomAuthentication required
|
|
463
|
-
|
|
462
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
464
463
|
if (excludeArtistIds) {
|
|
465
464
|
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
466
465
|
}
|
|
@@ -475,12 +474,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
475
474
|
}
|
|
476
475
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
477
476
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
478
|
-
localVarRequestOptions.headers =
|
|
477
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
479
478
|
return {
|
|
480
479
|
url: toPathString(localVarUrlObj),
|
|
481
480
|
options: localVarRequestOptions,
|
|
482
481
|
};
|
|
483
|
-
}
|
|
482
|
+
},
|
|
484
483
|
/**
|
|
485
484
|
*
|
|
486
485
|
* @summary Gets similar items.
|
|
@@ -492,7 +491,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
492
491
|
* @param {*} [options] Override http request option.
|
|
493
492
|
* @throws {RequiredError}
|
|
494
493
|
*/
|
|
495
|
-
getSimilarMovies:
|
|
494
|
+
getSimilarMovies: async (itemId, excludeArtistIds, userId, limit, fields, options = {}) => {
|
|
496
495
|
// verify required parameter 'itemId' is not null or undefined
|
|
497
496
|
assertParamExists('getSimilarMovies', 'itemId', itemId);
|
|
498
497
|
const localVarPath = `/Movies/{itemId}/Similar`
|
|
@@ -503,11 +502,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
503
502
|
if (configuration) {
|
|
504
503
|
baseOptions = configuration.baseOptions;
|
|
505
504
|
}
|
|
506
|
-
const localVarRequestOptions =
|
|
505
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
507
506
|
const localVarHeaderParameter = {};
|
|
508
507
|
const localVarQueryParameter = {};
|
|
509
508
|
// authentication CustomAuthentication required
|
|
510
|
-
|
|
509
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
511
510
|
if (excludeArtistIds) {
|
|
512
511
|
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
513
512
|
}
|
|
@@ -522,12 +521,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
522
521
|
}
|
|
523
522
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
524
523
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
525
|
-
localVarRequestOptions.headers =
|
|
524
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
526
525
|
return {
|
|
527
526
|
url: toPathString(localVarUrlObj),
|
|
528
527
|
options: localVarRequestOptions,
|
|
529
528
|
};
|
|
530
|
-
}
|
|
529
|
+
},
|
|
531
530
|
/**
|
|
532
531
|
*
|
|
533
532
|
* @summary Gets similar items.
|
|
@@ -539,7 +538,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
539
538
|
* @param {*} [options] Override http request option.
|
|
540
539
|
* @throws {RequiredError}
|
|
541
540
|
*/
|
|
542
|
-
getSimilarShows:
|
|
541
|
+
getSimilarShows: async (itemId, excludeArtistIds, userId, limit, fields, options = {}) => {
|
|
543
542
|
// verify required parameter 'itemId' is not null or undefined
|
|
544
543
|
assertParamExists('getSimilarShows', 'itemId', itemId);
|
|
545
544
|
const localVarPath = `/Shows/{itemId}/Similar`
|
|
@@ -550,11 +549,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
550
549
|
if (configuration) {
|
|
551
550
|
baseOptions = configuration.baseOptions;
|
|
552
551
|
}
|
|
553
|
-
const localVarRequestOptions =
|
|
552
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
554
553
|
const localVarHeaderParameter = {};
|
|
555
554
|
const localVarQueryParameter = {};
|
|
556
555
|
// authentication CustomAuthentication required
|
|
557
|
-
|
|
556
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
558
557
|
if (excludeArtistIds) {
|
|
559
558
|
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
560
559
|
}
|
|
@@ -569,12 +568,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
569
568
|
}
|
|
570
569
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
571
570
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
572
|
-
localVarRequestOptions.headers =
|
|
571
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
573
572
|
return {
|
|
574
573
|
url: toPathString(localVarUrlObj),
|
|
575
574
|
options: localVarRequestOptions,
|
|
576
575
|
};
|
|
577
|
-
}
|
|
576
|
+
},
|
|
578
577
|
/**
|
|
579
578
|
*
|
|
580
579
|
* @summary Gets similar items.
|
|
@@ -586,7 +585,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
586
585
|
* @param {*} [options] Override http request option.
|
|
587
586
|
* @throws {RequiredError}
|
|
588
587
|
*/
|
|
589
|
-
getSimilarTrailers:
|
|
588
|
+
getSimilarTrailers: async (itemId, excludeArtistIds, userId, limit, fields, options = {}) => {
|
|
590
589
|
// verify required parameter 'itemId' is not null or undefined
|
|
591
590
|
assertParamExists('getSimilarTrailers', 'itemId', itemId);
|
|
592
591
|
const localVarPath = `/Trailers/{itemId}/Similar`
|
|
@@ -597,11 +596,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
597
596
|
if (configuration) {
|
|
598
597
|
baseOptions = configuration.baseOptions;
|
|
599
598
|
}
|
|
600
|
-
const localVarRequestOptions =
|
|
599
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
601
600
|
const localVarHeaderParameter = {};
|
|
602
601
|
const localVarQueryParameter = {};
|
|
603
602
|
// authentication CustomAuthentication required
|
|
604
|
-
|
|
603
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
605
604
|
if (excludeArtistIds) {
|
|
606
605
|
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
607
606
|
}
|
|
@@ -616,22 +615,24 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
616
615
|
}
|
|
617
616
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
618
617
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
619
|
-
localVarRequestOptions.headers =
|
|
618
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
620
619
|
return {
|
|
621
620
|
url: toPathString(localVarUrlObj),
|
|
622
621
|
options: localVarRequestOptions,
|
|
623
622
|
};
|
|
624
|
-
}
|
|
623
|
+
},
|
|
625
624
|
/**
|
|
626
625
|
*
|
|
627
626
|
* @summary Get theme songs and videos for an item.
|
|
628
627
|
* @param {string} itemId The item id.
|
|
629
628
|
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
630
629
|
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
630
|
+
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
631
|
+
* @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending, Descending.
|
|
631
632
|
* @param {*} [options] Override http request option.
|
|
632
633
|
* @throws {RequiredError}
|
|
633
634
|
*/
|
|
634
|
-
getThemeMedia:
|
|
635
|
+
getThemeMedia: async (itemId, userId, inheritFromParent, sortBy, sortOrder, options = {}) => {
|
|
635
636
|
// verify required parameter 'itemId' is not null or undefined
|
|
636
637
|
assertParamExists('getThemeMedia', 'itemId', itemId);
|
|
637
638
|
const localVarPath = `/Items/{itemId}/ThemeMedia`
|
|
@@ -642,35 +643,43 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
642
643
|
if (configuration) {
|
|
643
644
|
baseOptions = configuration.baseOptions;
|
|
644
645
|
}
|
|
645
|
-
const localVarRequestOptions =
|
|
646
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
646
647
|
const localVarHeaderParameter = {};
|
|
647
648
|
const localVarQueryParameter = {};
|
|
648
649
|
// authentication CustomAuthentication required
|
|
649
|
-
|
|
650
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
650
651
|
if (userId !== undefined) {
|
|
651
652
|
localVarQueryParameter['userId'] = userId;
|
|
652
653
|
}
|
|
653
654
|
if (inheritFromParent !== undefined) {
|
|
654
655
|
localVarQueryParameter['inheritFromParent'] = inheritFromParent;
|
|
655
656
|
}
|
|
657
|
+
if (sortBy) {
|
|
658
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
659
|
+
}
|
|
660
|
+
if (sortOrder) {
|
|
661
|
+
localVarQueryParameter['sortOrder'] = sortOrder;
|
|
662
|
+
}
|
|
656
663
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
657
664
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
658
|
-
localVarRequestOptions.headers =
|
|
665
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
659
666
|
return {
|
|
660
667
|
url: toPathString(localVarUrlObj),
|
|
661
668
|
options: localVarRequestOptions,
|
|
662
669
|
};
|
|
663
|
-
}
|
|
670
|
+
},
|
|
664
671
|
/**
|
|
665
672
|
*
|
|
666
673
|
* @summary Get theme songs for an item.
|
|
667
674
|
* @param {string} itemId The item id.
|
|
668
675
|
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
669
676
|
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
677
|
+
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
678
|
+
* @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending, Descending.
|
|
670
679
|
* @param {*} [options] Override http request option.
|
|
671
680
|
* @throws {RequiredError}
|
|
672
681
|
*/
|
|
673
|
-
getThemeSongs:
|
|
682
|
+
getThemeSongs: async (itemId, userId, inheritFromParent, sortBy, sortOrder, options = {}) => {
|
|
674
683
|
// verify required parameter 'itemId' is not null or undefined
|
|
675
684
|
assertParamExists('getThemeSongs', 'itemId', itemId);
|
|
676
685
|
const localVarPath = `/Items/{itemId}/ThemeSongs`
|
|
@@ -681,35 +690,43 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
681
690
|
if (configuration) {
|
|
682
691
|
baseOptions = configuration.baseOptions;
|
|
683
692
|
}
|
|
684
|
-
const localVarRequestOptions =
|
|
693
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
685
694
|
const localVarHeaderParameter = {};
|
|
686
695
|
const localVarQueryParameter = {};
|
|
687
696
|
// authentication CustomAuthentication required
|
|
688
|
-
|
|
697
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
689
698
|
if (userId !== undefined) {
|
|
690
699
|
localVarQueryParameter['userId'] = userId;
|
|
691
700
|
}
|
|
692
701
|
if (inheritFromParent !== undefined) {
|
|
693
702
|
localVarQueryParameter['inheritFromParent'] = inheritFromParent;
|
|
694
703
|
}
|
|
704
|
+
if (sortBy) {
|
|
705
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
706
|
+
}
|
|
707
|
+
if (sortOrder) {
|
|
708
|
+
localVarQueryParameter['sortOrder'] = sortOrder;
|
|
709
|
+
}
|
|
695
710
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
696
711
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
697
|
-
localVarRequestOptions.headers =
|
|
712
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
698
713
|
return {
|
|
699
714
|
url: toPathString(localVarUrlObj),
|
|
700
715
|
options: localVarRequestOptions,
|
|
701
716
|
};
|
|
702
|
-
}
|
|
717
|
+
},
|
|
703
718
|
/**
|
|
704
719
|
*
|
|
705
720
|
* @summary Get theme videos for an item.
|
|
706
721
|
* @param {string} itemId The item id.
|
|
707
722
|
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
708
723
|
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
724
|
+
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
725
|
+
* @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending, Descending.
|
|
709
726
|
* @param {*} [options] Override http request option.
|
|
710
727
|
* @throws {RequiredError}
|
|
711
728
|
*/
|
|
712
|
-
getThemeVideos:
|
|
729
|
+
getThemeVideos: async (itemId, userId, inheritFromParent, sortBy, sortOrder, options = {}) => {
|
|
713
730
|
// verify required parameter 'itemId' is not null or undefined
|
|
714
731
|
assertParamExists('getThemeVideos', 'itemId', itemId);
|
|
715
732
|
const localVarPath = `/Items/{itemId}/ThemeVideos`
|
|
@@ -720,25 +737,31 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
720
737
|
if (configuration) {
|
|
721
738
|
baseOptions = configuration.baseOptions;
|
|
722
739
|
}
|
|
723
|
-
const localVarRequestOptions =
|
|
740
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
724
741
|
const localVarHeaderParameter = {};
|
|
725
742
|
const localVarQueryParameter = {};
|
|
726
743
|
// authentication CustomAuthentication required
|
|
727
|
-
|
|
744
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
728
745
|
if (userId !== undefined) {
|
|
729
746
|
localVarQueryParameter['userId'] = userId;
|
|
730
747
|
}
|
|
731
748
|
if (inheritFromParent !== undefined) {
|
|
732
749
|
localVarQueryParameter['inheritFromParent'] = inheritFromParent;
|
|
733
750
|
}
|
|
751
|
+
if (sortBy) {
|
|
752
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
753
|
+
}
|
|
754
|
+
if (sortOrder) {
|
|
755
|
+
localVarQueryParameter['sortOrder'] = sortOrder;
|
|
756
|
+
}
|
|
734
757
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
735
758
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
736
|
-
localVarRequestOptions.headers =
|
|
759
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
737
760
|
return {
|
|
738
761
|
url: toPathString(localVarUrlObj),
|
|
739
762
|
options: localVarRequestOptions,
|
|
740
763
|
};
|
|
741
|
-
}
|
|
764
|
+
},
|
|
742
765
|
/**
|
|
743
766
|
*
|
|
744
767
|
* @summary Reports that new movies have been added by an external source.
|
|
@@ -747,7 +770,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
747
770
|
* @param {*} [options] Override http request option.
|
|
748
771
|
* @throws {RequiredError}
|
|
749
772
|
*/
|
|
750
|
-
postAddedMovies:
|
|
773
|
+
postAddedMovies: async (tmdbId, imdbId, options = {}) => {
|
|
751
774
|
const localVarPath = `/Library/Movies/Added`;
|
|
752
775
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
753
776
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -755,11 +778,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
755
778
|
if (configuration) {
|
|
756
779
|
baseOptions = configuration.baseOptions;
|
|
757
780
|
}
|
|
758
|
-
const localVarRequestOptions =
|
|
781
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
759
782
|
const localVarHeaderParameter = {};
|
|
760
783
|
const localVarQueryParameter = {};
|
|
761
784
|
// authentication CustomAuthentication required
|
|
762
|
-
|
|
785
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
763
786
|
if (tmdbId !== undefined) {
|
|
764
787
|
localVarQueryParameter['tmdbId'] = tmdbId;
|
|
765
788
|
}
|
|
@@ -768,12 +791,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
768
791
|
}
|
|
769
792
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
770
793
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
771
|
-
localVarRequestOptions.headers =
|
|
794
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
772
795
|
return {
|
|
773
796
|
url: toPathString(localVarUrlObj),
|
|
774
797
|
options: localVarRequestOptions,
|
|
775
798
|
};
|
|
776
|
-
}
|
|
799
|
+
},
|
|
777
800
|
/**
|
|
778
801
|
*
|
|
779
802
|
* @summary Reports that new episodes of a series have been added by an external source.
|
|
@@ -781,7 +804,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
781
804
|
* @param {*} [options] Override http request option.
|
|
782
805
|
* @throws {RequiredError}
|
|
783
806
|
*/
|
|
784
|
-
postAddedSeries:
|
|
807
|
+
postAddedSeries: async (tvdbId, options = {}) => {
|
|
785
808
|
const localVarPath = `/Library/Series/Added`;
|
|
786
809
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
787
810
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -789,22 +812,22 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
789
812
|
if (configuration) {
|
|
790
813
|
baseOptions = configuration.baseOptions;
|
|
791
814
|
}
|
|
792
|
-
const localVarRequestOptions =
|
|
815
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
793
816
|
const localVarHeaderParameter = {};
|
|
794
817
|
const localVarQueryParameter = {};
|
|
795
818
|
// authentication CustomAuthentication required
|
|
796
|
-
|
|
819
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
797
820
|
if (tvdbId !== undefined) {
|
|
798
821
|
localVarQueryParameter['tvdbId'] = tvdbId;
|
|
799
822
|
}
|
|
800
823
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
801
824
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
802
|
-
localVarRequestOptions.headers =
|
|
825
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
803
826
|
return {
|
|
804
827
|
url: toPathString(localVarUrlObj),
|
|
805
828
|
options: localVarRequestOptions,
|
|
806
829
|
};
|
|
807
|
-
}
|
|
830
|
+
},
|
|
808
831
|
/**
|
|
809
832
|
*
|
|
810
833
|
* @summary Reports that new movies have been added by an external source.
|
|
@@ -812,7 +835,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
812
835
|
* @param {*} [options] Override http request option.
|
|
813
836
|
* @throws {RequiredError}
|
|
814
837
|
*/
|
|
815
|
-
postUpdatedMedia:
|
|
838
|
+
postUpdatedMedia: async (mediaUpdateInfoDto, options = {}) => {
|
|
816
839
|
// verify required parameter 'mediaUpdateInfoDto' is not null or undefined
|
|
817
840
|
assertParamExists('postUpdatedMedia', 'mediaUpdateInfoDto', mediaUpdateInfoDto);
|
|
818
841
|
const localVarPath = `/Library/Media/Updated`;
|
|
@@ -822,21 +845,21 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
822
845
|
if (configuration) {
|
|
823
846
|
baseOptions = configuration.baseOptions;
|
|
824
847
|
}
|
|
825
|
-
const localVarRequestOptions =
|
|
848
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
826
849
|
const localVarHeaderParameter = {};
|
|
827
850
|
const localVarQueryParameter = {};
|
|
828
851
|
// authentication CustomAuthentication required
|
|
829
|
-
|
|
852
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
830
853
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
831
854
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
832
855
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
833
|
-
localVarRequestOptions.headers =
|
|
856
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
834
857
|
localVarRequestOptions.data = serializeDataIfNeeded(mediaUpdateInfoDto, localVarRequestOptions, configuration);
|
|
835
858
|
return {
|
|
836
859
|
url: toPathString(localVarUrlObj),
|
|
837
860
|
options: localVarRequestOptions,
|
|
838
861
|
};
|
|
839
|
-
}
|
|
862
|
+
},
|
|
840
863
|
/**
|
|
841
864
|
*
|
|
842
865
|
* @summary Reports that new movies have been added by an external source.
|
|
@@ -845,7 +868,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
845
868
|
* @param {*} [options] Override http request option.
|
|
846
869
|
* @throws {RequiredError}
|
|
847
870
|
*/
|
|
848
|
-
postUpdatedMovies:
|
|
871
|
+
postUpdatedMovies: async (tmdbId, imdbId, options = {}) => {
|
|
849
872
|
const localVarPath = `/Library/Movies/Updated`;
|
|
850
873
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
851
874
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -853,11 +876,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
853
876
|
if (configuration) {
|
|
854
877
|
baseOptions = configuration.baseOptions;
|
|
855
878
|
}
|
|
856
|
-
const localVarRequestOptions =
|
|
879
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
857
880
|
const localVarHeaderParameter = {};
|
|
858
881
|
const localVarQueryParameter = {};
|
|
859
882
|
// authentication CustomAuthentication required
|
|
860
|
-
|
|
883
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
861
884
|
if (tmdbId !== undefined) {
|
|
862
885
|
localVarQueryParameter['tmdbId'] = tmdbId;
|
|
863
886
|
}
|
|
@@ -866,12 +889,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
866
889
|
}
|
|
867
890
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
868
891
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
869
|
-
localVarRequestOptions.headers =
|
|
892
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
870
893
|
return {
|
|
871
894
|
url: toPathString(localVarUrlObj),
|
|
872
895
|
options: localVarRequestOptions,
|
|
873
896
|
};
|
|
874
|
-
}
|
|
897
|
+
},
|
|
875
898
|
/**
|
|
876
899
|
*
|
|
877
900
|
* @summary Reports that new episodes of a series have been added by an external source.
|
|
@@ -879,7 +902,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
879
902
|
* @param {*} [options] Override http request option.
|
|
880
903
|
* @throws {RequiredError}
|
|
881
904
|
*/
|
|
882
|
-
postUpdatedSeries:
|
|
905
|
+
postUpdatedSeries: async (tvdbId, options = {}) => {
|
|
883
906
|
const localVarPath = `/Library/Series/Updated`;
|
|
884
907
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
885
908
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -887,29 +910,29 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
887
910
|
if (configuration) {
|
|
888
911
|
baseOptions = configuration.baseOptions;
|
|
889
912
|
}
|
|
890
|
-
const localVarRequestOptions =
|
|
913
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
891
914
|
const localVarHeaderParameter = {};
|
|
892
915
|
const localVarQueryParameter = {};
|
|
893
916
|
// authentication CustomAuthentication required
|
|
894
|
-
|
|
917
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
895
918
|
if (tvdbId !== undefined) {
|
|
896
919
|
localVarQueryParameter['tvdbId'] = tvdbId;
|
|
897
920
|
}
|
|
898
921
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
899
922
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
900
|
-
localVarRequestOptions.headers =
|
|
923
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
901
924
|
return {
|
|
902
925
|
url: toPathString(localVarUrlObj),
|
|
903
926
|
options: localVarRequestOptions,
|
|
904
927
|
};
|
|
905
|
-
}
|
|
928
|
+
},
|
|
906
929
|
/**
|
|
907
930
|
*
|
|
908
931
|
* @summary Starts a library scan.
|
|
909
932
|
* @param {*} [options] Override http request option.
|
|
910
933
|
* @throws {RequiredError}
|
|
911
934
|
*/
|
|
912
|
-
refreshLibrary:
|
|
935
|
+
refreshLibrary: async (options = {}) => {
|
|
913
936
|
const localVarPath = `/Library/Refresh`;
|
|
914
937
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
915
938
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -917,19 +940,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
917
940
|
if (configuration) {
|
|
918
941
|
baseOptions = configuration.baseOptions;
|
|
919
942
|
}
|
|
920
|
-
const localVarRequestOptions =
|
|
943
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
921
944
|
const localVarHeaderParameter = {};
|
|
922
945
|
const localVarQueryParameter = {};
|
|
923
946
|
// authentication CustomAuthentication required
|
|
924
|
-
|
|
947
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
925
948
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
926
949
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
927
|
-
localVarRequestOptions.headers =
|
|
950
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
928
951
|
return {
|
|
929
952
|
url: toPathString(localVarUrlObj),
|
|
930
953
|
options: localVarRequestOptions,
|
|
931
954
|
};
|
|
932
|
-
}
|
|
955
|
+
},
|
|
933
956
|
};
|
|
934
957
|
};
|
|
935
958
|
/**
|
|
@@ -946,11 +969,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
946
969
|
* @param {*} [options] Override http request option.
|
|
947
970
|
* @throws {RequiredError}
|
|
948
971
|
*/
|
|
949
|
-
deleteItem(itemId, options) {
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
972
|
+
async deleteItem(itemId, options) {
|
|
973
|
+
var _a, _b, _c;
|
|
974
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteItem(itemId, options);
|
|
975
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
976
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.deleteItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
977
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
954
978
|
},
|
|
955
979
|
/**
|
|
956
980
|
*
|
|
@@ -959,11 +983,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
959
983
|
* @param {*} [options] Override http request option.
|
|
960
984
|
* @throws {RequiredError}
|
|
961
985
|
*/
|
|
962
|
-
deleteItems(ids, options) {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
986
|
+
async deleteItems(ids, options) {
|
|
987
|
+
var _a, _b, _c;
|
|
988
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteItems(ids, options);
|
|
989
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
990
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.deleteItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
991
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
967
992
|
},
|
|
968
993
|
/**
|
|
969
994
|
*
|
|
@@ -973,11 +998,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
973
998
|
* @param {*} [options] Override http request option.
|
|
974
999
|
* @throws {RequiredError}
|
|
975
1000
|
*/
|
|
976
|
-
getAncestors(itemId, userId, options) {
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
1001
|
+
async getAncestors(itemId, userId, options) {
|
|
1002
|
+
var _a, _b, _c;
|
|
1003
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAncestors(itemId, userId, options);
|
|
1004
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1005
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getAncestors']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1006
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
981
1007
|
},
|
|
982
1008
|
/**
|
|
983
1009
|
*
|
|
@@ -987,11 +1013,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
987
1013
|
* @deprecated
|
|
988
1014
|
* @throws {RequiredError}
|
|
989
1015
|
*/
|
|
990
|
-
getCriticReviews(itemId, options) {
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1016
|
+
async getCriticReviews(itemId, options) {
|
|
1017
|
+
var _a, _b, _c;
|
|
1018
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCriticReviews(itemId, options);
|
|
1019
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1020
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getCriticReviews']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1021
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
995
1022
|
},
|
|
996
1023
|
/**
|
|
997
1024
|
*
|
|
@@ -1000,11 +1027,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1000
1027
|
* @param {*} [options] Override http request option.
|
|
1001
1028
|
* @throws {RequiredError}
|
|
1002
1029
|
*/
|
|
1003
|
-
getDownload(itemId, options) {
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1030
|
+
async getDownload(itemId, options) {
|
|
1031
|
+
var _a, _b, _c;
|
|
1032
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDownload(itemId, options);
|
|
1033
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1034
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getDownload']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1035
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1008
1036
|
},
|
|
1009
1037
|
/**
|
|
1010
1038
|
*
|
|
@@ -1013,11 +1041,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1013
1041
|
* @param {*} [options] Override http request option.
|
|
1014
1042
|
* @throws {RequiredError}
|
|
1015
1043
|
*/
|
|
1016
|
-
getFile(itemId, options) {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1044
|
+
async getFile(itemId, options) {
|
|
1045
|
+
var _a, _b, _c;
|
|
1046
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFile(itemId, options);
|
|
1047
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1048
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1049
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1021
1050
|
},
|
|
1022
1051
|
/**
|
|
1023
1052
|
*
|
|
@@ -1027,11 +1056,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1027
1056
|
* @param {*} [options] Override http request option.
|
|
1028
1057
|
* @throws {RequiredError}
|
|
1029
1058
|
*/
|
|
1030
|
-
getItemCounts(userId, isFavorite, options) {
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1059
|
+
async getItemCounts(userId, isFavorite, options) {
|
|
1060
|
+
var _a, _b, _c;
|
|
1061
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getItemCounts(userId, isFavorite, options);
|
|
1062
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1063
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getItemCounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1064
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1035
1065
|
},
|
|
1036
1066
|
/**
|
|
1037
1067
|
*
|
|
@@ -1041,11 +1071,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1041
1071
|
* @param {*} [options] Override http request option.
|
|
1042
1072
|
* @throws {RequiredError}
|
|
1043
1073
|
*/
|
|
1044
|
-
getLibraryOptionsInfo(libraryContentType, isNewLibrary, options) {
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1074
|
+
async getLibraryOptionsInfo(libraryContentType, isNewLibrary, options) {
|
|
1075
|
+
var _a, _b, _c;
|
|
1076
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options);
|
|
1077
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1078
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getLibraryOptionsInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1079
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1049
1080
|
},
|
|
1050
1081
|
/**
|
|
1051
1082
|
*
|
|
@@ -1054,11 +1085,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1054
1085
|
* @param {*} [options] Override http request option.
|
|
1055
1086
|
* @throws {RequiredError}
|
|
1056
1087
|
*/
|
|
1057
|
-
getMediaFolders(isHidden, options) {
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1088
|
+
async getMediaFolders(isHidden, options) {
|
|
1089
|
+
var _a, _b, _c;
|
|
1090
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMediaFolders(isHidden, options);
|
|
1091
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1092
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getMediaFolders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1093
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1062
1094
|
},
|
|
1063
1095
|
/**
|
|
1064
1096
|
*
|
|
@@ -1066,11 +1098,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1066
1098
|
* @param {*} [options] Override http request option.
|
|
1067
1099
|
* @throws {RequiredError}
|
|
1068
1100
|
*/
|
|
1069
|
-
getPhysicalPaths(options) {
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1101
|
+
async getPhysicalPaths(options) {
|
|
1102
|
+
var _a, _b, _c;
|
|
1103
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPhysicalPaths(options);
|
|
1104
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1105
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getPhysicalPaths']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1106
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1074
1107
|
},
|
|
1075
1108
|
/**
|
|
1076
1109
|
*
|
|
@@ -1083,11 +1116,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1083
1116
|
* @param {*} [options] Override http request option.
|
|
1084
1117
|
* @throws {RequiredError}
|
|
1085
1118
|
*/
|
|
1086
|
-
getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1119
|
+
async getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1120
|
+
var _a, _b, _c;
|
|
1121
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1122
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1123
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarAlbums']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1124
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1091
1125
|
},
|
|
1092
1126
|
/**
|
|
1093
1127
|
*
|
|
@@ -1100,11 +1134,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1100
1134
|
* @param {*} [options] Override http request option.
|
|
1101
1135
|
* @throws {RequiredError}
|
|
1102
1136
|
*/
|
|
1103
|
-
getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1137
|
+
async getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1138
|
+
var _a, _b, _c;
|
|
1139
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1140
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1141
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarArtists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1142
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1108
1143
|
},
|
|
1109
1144
|
/**
|
|
1110
1145
|
*
|
|
@@ -1117,11 +1152,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1117
1152
|
* @param {*} [options] Override http request option.
|
|
1118
1153
|
* @throws {RequiredError}
|
|
1119
1154
|
*/
|
|
1120
|
-
getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1155
|
+
async getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1156
|
+
var _a, _b, _c;
|
|
1157
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1158
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1159
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1160
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1125
1161
|
},
|
|
1126
1162
|
/**
|
|
1127
1163
|
*
|
|
@@ -1134,11 +1170,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1134
1170
|
* @param {*} [options] Override http request option.
|
|
1135
1171
|
* @throws {RequiredError}
|
|
1136
1172
|
*/
|
|
1137
|
-
getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1173
|
+
async getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1174
|
+
var _a, _b, _c;
|
|
1175
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1176
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1177
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarMovies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1178
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1142
1179
|
},
|
|
1143
1180
|
/**
|
|
1144
1181
|
*
|
|
@@ -1151,11 +1188,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1151
1188
|
* @param {*} [options] Override http request option.
|
|
1152
1189
|
* @throws {RequiredError}
|
|
1153
1190
|
*/
|
|
1154
|
-
getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1191
|
+
async getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1192
|
+
var _a, _b, _c;
|
|
1193
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1194
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1195
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarShows']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1196
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1159
1197
|
},
|
|
1160
1198
|
/**
|
|
1161
1199
|
*
|
|
@@ -1168,11 +1206,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1168
1206
|
* @param {*} [options] Override http request option.
|
|
1169
1207
|
* @throws {RequiredError}
|
|
1170
1208
|
*/
|
|
1171
|
-
getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1209
|
+
async getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1210
|
+
var _a, _b, _c;
|
|
1211
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1212
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1213
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarTrailers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1214
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1176
1215
|
},
|
|
1177
1216
|
/**
|
|
1178
1217
|
*
|
|
@@ -1180,14 +1219,17 @@ const LibraryApiFp = function (configuration) {
|
|
|
1180
1219
|
* @param {string} itemId The item id.
|
|
1181
1220
|
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1182
1221
|
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1222
|
+
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
1223
|
+
* @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending, Descending.
|
|
1183
1224
|
* @param {*} [options] Override http request option.
|
|
1184
1225
|
* @throws {RequiredError}
|
|
1185
1226
|
*/
|
|
1186
|
-
getThemeMedia(itemId, userId, inheritFromParent, options) {
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1227
|
+
async getThemeMedia(itemId, userId, inheritFromParent, sortBy, sortOrder, options) {
|
|
1228
|
+
var _a, _b, _c;
|
|
1229
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeMedia(itemId, userId, inheritFromParent, sortBy, sortOrder, options);
|
|
1230
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1231
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getThemeMedia']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1232
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1191
1233
|
},
|
|
1192
1234
|
/**
|
|
1193
1235
|
*
|
|
@@ -1195,14 +1237,17 @@ const LibraryApiFp = function (configuration) {
|
|
|
1195
1237
|
* @param {string} itemId The item id.
|
|
1196
1238
|
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1197
1239
|
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1240
|
+
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
1241
|
+
* @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending, Descending.
|
|
1198
1242
|
* @param {*} [options] Override http request option.
|
|
1199
1243
|
* @throws {RequiredError}
|
|
1200
1244
|
*/
|
|
1201
|
-
getThemeSongs(itemId, userId, inheritFromParent, options) {
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1245
|
+
async getThemeSongs(itemId, userId, inheritFromParent, sortBy, sortOrder, options) {
|
|
1246
|
+
var _a, _b, _c;
|
|
1247
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeSongs(itemId, userId, inheritFromParent, sortBy, sortOrder, options);
|
|
1248
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1249
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getThemeSongs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1250
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1206
1251
|
},
|
|
1207
1252
|
/**
|
|
1208
1253
|
*
|
|
@@ -1210,14 +1255,17 @@ const LibraryApiFp = function (configuration) {
|
|
|
1210
1255
|
* @param {string} itemId The item id.
|
|
1211
1256
|
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1212
1257
|
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1258
|
+
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
1259
|
+
* @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending, Descending.
|
|
1213
1260
|
* @param {*} [options] Override http request option.
|
|
1214
1261
|
* @throws {RequiredError}
|
|
1215
1262
|
*/
|
|
1216
|
-
getThemeVideos(itemId, userId, inheritFromParent, options) {
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1263
|
+
async getThemeVideos(itemId, userId, inheritFromParent, sortBy, sortOrder, options) {
|
|
1264
|
+
var _a, _b, _c;
|
|
1265
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeVideos(itemId, userId, inheritFromParent, sortBy, sortOrder, options);
|
|
1266
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1267
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getThemeVideos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1268
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1221
1269
|
},
|
|
1222
1270
|
/**
|
|
1223
1271
|
*
|
|
@@ -1227,11 +1275,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1227
1275
|
* @param {*} [options] Override http request option.
|
|
1228
1276
|
* @throws {RequiredError}
|
|
1229
1277
|
*/
|
|
1230
|
-
postAddedMovies(tmdbId, imdbId, options) {
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1278
|
+
async postAddedMovies(tmdbId, imdbId, options) {
|
|
1279
|
+
var _a, _b, _c;
|
|
1280
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddedMovies(tmdbId, imdbId, options);
|
|
1281
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1282
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.postAddedMovies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1283
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1235
1284
|
},
|
|
1236
1285
|
/**
|
|
1237
1286
|
*
|
|
@@ -1240,11 +1289,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1240
1289
|
* @param {*} [options] Override http request option.
|
|
1241
1290
|
* @throws {RequiredError}
|
|
1242
1291
|
*/
|
|
1243
|
-
postAddedSeries(tvdbId, options) {
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1292
|
+
async postAddedSeries(tvdbId, options) {
|
|
1293
|
+
var _a, _b, _c;
|
|
1294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddedSeries(tvdbId, options);
|
|
1295
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1296
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.postAddedSeries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1297
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1248
1298
|
},
|
|
1249
1299
|
/**
|
|
1250
1300
|
*
|
|
@@ -1253,11 +1303,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1253
1303
|
* @param {*} [options] Override http request option.
|
|
1254
1304
|
* @throws {RequiredError}
|
|
1255
1305
|
*/
|
|
1256
|
-
postUpdatedMedia(mediaUpdateInfoDto, options) {
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1306
|
+
async postUpdatedMedia(mediaUpdateInfoDto, options) {
|
|
1307
|
+
var _a, _b, _c;
|
|
1308
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postUpdatedMedia(mediaUpdateInfoDto, options);
|
|
1309
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1310
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.postUpdatedMedia']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1311
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1261
1312
|
},
|
|
1262
1313
|
/**
|
|
1263
1314
|
*
|
|
@@ -1267,11 +1318,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1267
1318
|
* @param {*} [options] Override http request option.
|
|
1268
1319
|
* @throws {RequiredError}
|
|
1269
1320
|
*/
|
|
1270
|
-
postUpdatedMovies(tmdbId, imdbId, options) {
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1321
|
+
async postUpdatedMovies(tmdbId, imdbId, options) {
|
|
1322
|
+
var _a, _b, _c;
|
|
1323
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postUpdatedMovies(tmdbId, imdbId, options);
|
|
1324
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1325
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.postUpdatedMovies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1326
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1275
1327
|
},
|
|
1276
1328
|
/**
|
|
1277
1329
|
*
|
|
@@ -1280,11 +1332,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1280
1332
|
* @param {*} [options] Override http request option.
|
|
1281
1333
|
* @throws {RequiredError}
|
|
1282
1334
|
*/
|
|
1283
|
-
postUpdatedSeries(tvdbId, options) {
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1335
|
+
async postUpdatedSeries(tvdbId, options) {
|
|
1336
|
+
var _a, _b, _c;
|
|
1337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postUpdatedSeries(tvdbId, options);
|
|
1338
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1339
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.postUpdatedSeries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1340
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1288
1341
|
},
|
|
1289
1342
|
/**
|
|
1290
1343
|
*
|
|
@@ -1292,11 +1345,12 @@ const LibraryApiFp = function (configuration) {
|
|
|
1292
1345
|
* @param {*} [options] Override http request option.
|
|
1293
1346
|
* @throws {RequiredError}
|
|
1294
1347
|
*/
|
|
1295
|
-
refreshLibrary(options) {
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1348
|
+
async refreshLibrary(options) {
|
|
1349
|
+
var _a, _b, _c;
|
|
1350
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshLibrary(options);
|
|
1351
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1352
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.refreshLibrary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1353
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1300
1354
|
},
|
|
1301
1355
|
};
|
|
1302
1356
|
};
|
|
@@ -1310,96 +1364,93 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
1310
1364
|
/**
|
|
1311
1365
|
*
|
|
1312
1366
|
* @summary Deletes an item from the library and filesystem.
|
|
1313
|
-
* @param {
|
|
1367
|
+
* @param {LibraryApiDeleteItemRequest} requestParameters Request parameters.
|
|
1314
1368
|
* @param {*} [options] Override http request option.
|
|
1315
1369
|
* @throws {RequiredError}
|
|
1316
1370
|
*/
|
|
1317
|
-
deleteItem(
|
|
1318
|
-
return localVarFp.deleteItem(itemId, options).then((request) => request(axios, basePath));
|
|
1371
|
+
deleteItem(requestParameters, options) {
|
|
1372
|
+
return localVarFp.deleteItem(requestParameters.itemId, options).then((request) => request(axios, basePath));
|
|
1319
1373
|
},
|
|
1320
1374
|
/**
|
|
1321
1375
|
*
|
|
1322
1376
|
* @summary Deletes items from the library and filesystem.
|
|
1323
|
-
* @param {
|
|
1377
|
+
* @param {LibraryApiDeleteItemsRequest} requestParameters Request parameters.
|
|
1324
1378
|
* @param {*} [options] Override http request option.
|
|
1325
1379
|
* @throws {RequiredError}
|
|
1326
1380
|
*/
|
|
1327
|
-
deleteItems(
|
|
1328
|
-
return localVarFp.deleteItems(ids, options).then((request) => request(axios, basePath));
|
|
1381
|
+
deleteItems(requestParameters = {}, options) {
|
|
1382
|
+
return localVarFp.deleteItems(requestParameters.ids, options).then((request) => request(axios, basePath));
|
|
1329
1383
|
},
|
|
1330
1384
|
/**
|
|
1331
1385
|
*
|
|
1332
1386
|
* @summary Gets all parents of an item.
|
|
1333
|
-
* @param {
|
|
1334
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1387
|
+
* @param {LibraryApiGetAncestorsRequest} requestParameters Request parameters.
|
|
1335
1388
|
* @param {*} [options] Override http request option.
|
|
1336
1389
|
* @throws {RequiredError}
|
|
1337
1390
|
*/
|
|
1338
|
-
getAncestors(
|
|
1339
|
-
return localVarFp.getAncestors(itemId, userId, options).then((request) => request(axios, basePath));
|
|
1391
|
+
getAncestors(requestParameters, options) {
|
|
1392
|
+
return localVarFp.getAncestors(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
1340
1393
|
},
|
|
1341
1394
|
/**
|
|
1342
1395
|
*
|
|
1343
1396
|
* @summary Gets critic review for an item.
|
|
1344
|
-
* @param {
|
|
1397
|
+
* @param {LibraryApiGetCriticReviewsRequest} requestParameters Request parameters.
|
|
1345
1398
|
* @param {*} [options] Override http request option.
|
|
1346
1399
|
* @deprecated
|
|
1347
1400
|
* @throws {RequiredError}
|
|
1348
1401
|
*/
|
|
1349
|
-
getCriticReviews(
|
|
1350
|
-
return localVarFp.getCriticReviews(itemId, options).then((request) => request(axios, basePath));
|
|
1402
|
+
getCriticReviews(requestParameters, options) {
|
|
1403
|
+
return localVarFp.getCriticReviews(requestParameters.itemId, options).then((request) => request(axios, basePath));
|
|
1351
1404
|
},
|
|
1352
1405
|
/**
|
|
1353
1406
|
*
|
|
1354
1407
|
* @summary Downloads item media.
|
|
1355
|
-
* @param {
|
|
1408
|
+
* @param {LibraryApiGetDownloadRequest} requestParameters Request parameters.
|
|
1356
1409
|
* @param {*} [options] Override http request option.
|
|
1357
1410
|
* @throws {RequiredError}
|
|
1358
1411
|
*/
|
|
1359
|
-
getDownload(
|
|
1360
|
-
return localVarFp.getDownload(itemId, options).then((request) => request(axios, basePath));
|
|
1412
|
+
getDownload(requestParameters, options) {
|
|
1413
|
+
return localVarFp.getDownload(requestParameters.itemId, options).then((request) => request(axios, basePath));
|
|
1361
1414
|
},
|
|
1362
1415
|
/**
|
|
1363
1416
|
*
|
|
1364
1417
|
* @summary Get the original file of an item.
|
|
1365
|
-
* @param {
|
|
1418
|
+
* @param {LibraryApiGetFileRequest} requestParameters Request parameters.
|
|
1366
1419
|
* @param {*} [options] Override http request option.
|
|
1367
1420
|
* @throws {RequiredError}
|
|
1368
1421
|
*/
|
|
1369
|
-
getFile(
|
|
1370
|
-
return localVarFp.getFile(itemId, options).then((request) => request(axios, basePath));
|
|
1422
|
+
getFile(requestParameters, options) {
|
|
1423
|
+
return localVarFp.getFile(requestParameters.itemId, options).then((request) => request(axios, basePath));
|
|
1371
1424
|
},
|
|
1372
1425
|
/**
|
|
1373
1426
|
*
|
|
1374
1427
|
* @summary Get item counts.
|
|
1375
|
-
* @param {
|
|
1376
|
-
* @param {boolean} [isFavorite] Optional. Get counts of favorite items.
|
|
1428
|
+
* @param {LibraryApiGetItemCountsRequest} requestParameters Request parameters.
|
|
1377
1429
|
* @param {*} [options] Override http request option.
|
|
1378
1430
|
* @throws {RequiredError}
|
|
1379
1431
|
*/
|
|
1380
|
-
getItemCounts(
|
|
1381
|
-
return localVarFp.getItemCounts(userId, isFavorite, options).then((request) => request(axios, basePath));
|
|
1432
|
+
getItemCounts(requestParameters = {}, options) {
|
|
1433
|
+
return localVarFp.getItemCounts(requestParameters.userId, requestParameters.isFavorite, options).then((request) => request(axios, basePath));
|
|
1382
1434
|
},
|
|
1383
1435
|
/**
|
|
1384
1436
|
*
|
|
1385
1437
|
* @summary Gets the library options info.
|
|
1386
|
-
* @param {
|
|
1387
|
-
* @param {boolean} [isNewLibrary] Whether this is a new library.
|
|
1438
|
+
* @param {LibraryApiGetLibraryOptionsInfoRequest} requestParameters Request parameters.
|
|
1388
1439
|
* @param {*} [options] Override http request option.
|
|
1389
1440
|
* @throws {RequiredError}
|
|
1390
1441
|
*/
|
|
1391
|
-
getLibraryOptionsInfo(
|
|
1392
|
-
return localVarFp.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options).then((request) => request(axios, basePath));
|
|
1442
|
+
getLibraryOptionsInfo(requestParameters = {}, options) {
|
|
1443
|
+
return localVarFp.getLibraryOptionsInfo(requestParameters.libraryContentType, requestParameters.isNewLibrary, options).then((request) => request(axios, basePath));
|
|
1393
1444
|
},
|
|
1394
1445
|
/**
|
|
1395
1446
|
*
|
|
1396
1447
|
* @summary Gets all user media folders.
|
|
1397
|
-
* @param {
|
|
1448
|
+
* @param {LibraryApiGetMediaFoldersRequest} requestParameters Request parameters.
|
|
1398
1449
|
* @param {*} [options] Override http request option.
|
|
1399
1450
|
* @throws {RequiredError}
|
|
1400
1451
|
*/
|
|
1401
|
-
getMediaFolders(
|
|
1402
|
-
return localVarFp.getMediaFolders(isHidden, options).then((request) => request(axios, basePath));
|
|
1452
|
+
getMediaFolders(requestParameters = {}, options) {
|
|
1453
|
+
return localVarFp.getMediaFolders(requestParameters.isHidden, options).then((request) => request(axios, basePath));
|
|
1403
1454
|
},
|
|
1404
1455
|
/**
|
|
1405
1456
|
*
|
|
@@ -1413,174 +1464,142 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
1413
1464
|
/**
|
|
1414
1465
|
*
|
|
1415
1466
|
* @summary Gets similar items.
|
|
1416
|
-
* @param {
|
|
1417
|
-
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1418
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1419
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1420
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1467
|
+
* @param {LibraryApiGetSimilarAlbumsRequest} requestParameters Request parameters.
|
|
1421
1468
|
* @param {*} [options] Override http request option.
|
|
1422
1469
|
* @throws {RequiredError}
|
|
1423
1470
|
*/
|
|
1424
|
-
getSimilarAlbums(
|
|
1425
|
-
return localVarFp.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
|
|
1471
|
+
getSimilarAlbums(requestParameters, options) {
|
|
1472
|
+
return localVarFp.getSimilarAlbums(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
1426
1473
|
},
|
|
1427
1474
|
/**
|
|
1428
1475
|
*
|
|
1429
1476
|
* @summary Gets similar items.
|
|
1430
|
-
* @param {
|
|
1431
|
-
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1432
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1433
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1434
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1477
|
+
* @param {LibraryApiGetSimilarArtistsRequest} requestParameters Request parameters.
|
|
1435
1478
|
* @param {*} [options] Override http request option.
|
|
1436
1479
|
* @throws {RequiredError}
|
|
1437
1480
|
*/
|
|
1438
|
-
getSimilarArtists(
|
|
1439
|
-
return localVarFp.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
|
|
1481
|
+
getSimilarArtists(requestParameters, options) {
|
|
1482
|
+
return localVarFp.getSimilarArtists(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
1440
1483
|
},
|
|
1441
1484
|
/**
|
|
1442
1485
|
*
|
|
1443
1486
|
* @summary Gets similar items.
|
|
1444
|
-
* @param {
|
|
1445
|
-
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1446
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1447
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1448
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1487
|
+
* @param {LibraryApiGetSimilarItemsRequest} requestParameters Request parameters.
|
|
1449
1488
|
* @param {*} [options] Override http request option.
|
|
1450
1489
|
* @throws {RequiredError}
|
|
1451
1490
|
*/
|
|
1452
|
-
getSimilarItems(
|
|
1453
|
-
return localVarFp.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
|
|
1491
|
+
getSimilarItems(requestParameters, options) {
|
|
1492
|
+
return localVarFp.getSimilarItems(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
1454
1493
|
},
|
|
1455
1494
|
/**
|
|
1456
1495
|
*
|
|
1457
1496
|
* @summary Gets similar items.
|
|
1458
|
-
* @param {
|
|
1459
|
-
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1460
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1461
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1462
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1497
|
+
* @param {LibraryApiGetSimilarMoviesRequest} requestParameters Request parameters.
|
|
1463
1498
|
* @param {*} [options] Override http request option.
|
|
1464
1499
|
* @throws {RequiredError}
|
|
1465
1500
|
*/
|
|
1466
|
-
getSimilarMovies(
|
|
1467
|
-
return localVarFp.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
|
|
1501
|
+
getSimilarMovies(requestParameters, options) {
|
|
1502
|
+
return localVarFp.getSimilarMovies(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
1468
1503
|
},
|
|
1469
1504
|
/**
|
|
1470
1505
|
*
|
|
1471
1506
|
* @summary Gets similar items.
|
|
1472
|
-
* @param {
|
|
1473
|
-
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1474
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1475
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1476
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1507
|
+
* @param {LibraryApiGetSimilarShowsRequest} requestParameters Request parameters.
|
|
1477
1508
|
* @param {*} [options] Override http request option.
|
|
1478
1509
|
* @throws {RequiredError}
|
|
1479
1510
|
*/
|
|
1480
|
-
getSimilarShows(
|
|
1481
|
-
return localVarFp.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
|
|
1511
|
+
getSimilarShows(requestParameters, options) {
|
|
1512
|
+
return localVarFp.getSimilarShows(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
1482
1513
|
},
|
|
1483
1514
|
/**
|
|
1484
1515
|
*
|
|
1485
1516
|
* @summary Gets similar items.
|
|
1486
|
-
* @param {
|
|
1487
|
-
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1488
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1489
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1490
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
|
|
1517
|
+
* @param {LibraryApiGetSimilarTrailersRequest} requestParameters Request parameters.
|
|
1491
1518
|
* @param {*} [options] Override http request option.
|
|
1492
1519
|
* @throws {RequiredError}
|
|
1493
1520
|
*/
|
|
1494
|
-
getSimilarTrailers(
|
|
1495
|
-
return localVarFp.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
|
|
1521
|
+
getSimilarTrailers(requestParameters, options) {
|
|
1522
|
+
return localVarFp.getSimilarTrailers(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
1496
1523
|
},
|
|
1497
1524
|
/**
|
|
1498
1525
|
*
|
|
1499
1526
|
* @summary Get theme songs and videos for an item.
|
|
1500
|
-
* @param {
|
|
1501
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1502
|
-
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1527
|
+
* @param {LibraryApiGetThemeMediaRequest} requestParameters Request parameters.
|
|
1503
1528
|
* @param {*} [options] Override http request option.
|
|
1504
1529
|
* @throws {RequiredError}
|
|
1505
1530
|
*/
|
|
1506
|
-
getThemeMedia(
|
|
1507
|
-
return localVarFp.getThemeMedia(itemId, userId, inheritFromParent, options).then((request) => request(axios, basePath));
|
|
1531
|
+
getThemeMedia(requestParameters, options) {
|
|
1532
|
+
return localVarFp.getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath));
|
|
1508
1533
|
},
|
|
1509
1534
|
/**
|
|
1510
1535
|
*
|
|
1511
1536
|
* @summary Get theme songs for an item.
|
|
1512
|
-
* @param {
|
|
1513
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1514
|
-
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1537
|
+
* @param {LibraryApiGetThemeSongsRequest} requestParameters Request parameters.
|
|
1515
1538
|
* @param {*} [options] Override http request option.
|
|
1516
1539
|
* @throws {RequiredError}
|
|
1517
1540
|
*/
|
|
1518
|
-
getThemeSongs(
|
|
1519
|
-
return localVarFp.getThemeSongs(itemId, userId, inheritFromParent, options).then((request) => request(axios, basePath));
|
|
1541
|
+
getThemeSongs(requestParameters, options) {
|
|
1542
|
+
return localVarFp.getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath));
|
|
1520
1543
|
},
|
|
1521
1544
|
/**
|
|
1522
1545
|
*
|
|
1523
1546
|
* @summary Get theme videos for an item.
|
|
1524
|
-
* @param {
|
|
1525
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1526
|
-
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1547
|
+
* @param {LibraryApiGetThemeVideosRequest} requestParameters Request parameters.
|
|
1527
1548
|
* @param {*} [options] Override http request option.
|
|
1528
1549
|
* @throws {RequiredError}
|
|
1529
1550
|
*/
|
|
1530
|
-
getThemeVideos(
|
|
1531
|
-
return localVarFp.getThemeVideos(itemId, userId, inheritFromParent, options).then((request) => request(axios, basePath));
|
|
1551
|
+
getThemeVideos(requestParameters, options) {
|
|
1552
|
+
return localVarFp.getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath));
|
|
1532
1553
|
},
|
|
1533
1554
|
/**
|
|
1534
1555
|
*
|
|
1535
1556
|
* @summary Reports that new movies have been added by an external source.
|
|
1536
|
-
* @param {
|
|
1537
|
-
* @param {string} [imdbId] The imdbId.
|
|
1557
|
+
* @param {LibraryApiPostAddedMoviesRequest} requestParameters Request parameters.
|
|
1538
1558
|
* @param {*} [options] Override http request option.
|
|
1539
1559
|
* @throws {RequiredError}
|
|
1540
1560
|
*/
|
|
1541
|
-
postAddedMovies(
|
|
1542
|
-
return localVarFp.postAddedMovies(tmdbId, imdbId, options).then((request) => request(axios, basePath));
|
|
1561
|
+
postAddedMovies(requestParameters = {}, options) {
|
|
1562
|
+
return localVarFp.postAddedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then((request) => request(axios, basePath));
|
|
1543
1563
|
},
|
|
1544
1564
|
/**
|
|
1545
1565
|
*
|
|
1546
1566
|
* @summary Reports that new episodes of a series have been added by an external source.
|
|
1547
|
-
* @param {
|
|
1567
|
+
* @param {LibraryApiPostAddedSeriesRequest} requestParameters Request parameters.
|
|
1548
1568
|
* @param {*} [options] Override http request option.
|
|
1549
1569
|
* @throws {RequiredError}
|
|
1550
1570
|
*/
|
|
1551
|
-
postAddedSeries(
|
|
1552
|
-
return localVarFp.postAddedSeries(tvdbId, options).then((request) => request(axios, basePath));
|
|
1571
|
+
postAddedSeries(requestParameters = {}, options) {
|
|
1572
|
+
return localVarFp.postAddedSeries(requestParameters.tvdbId, options).then((request) => request(axios, basePath));
|
|
1553
1573
|
},
|
|
1554
1574
|
/**
|
|
1555
1575
|
*
|
|
1556
1576
|
* @summary Reports that new movies have been added by an external source.
|
|
1557
|
-
* @param {
|
|
1577
|
+
* @param {LibraryApiPostUpdatedMediaRequest} requestParameters Request parameters.
|
|
1558
1578
|
* @param {*} [options] Override http request option.
|
|
1559
1579
|
* @throws {RequiredError}
|
|
1560
1580
|
*/
|
|
1561
|
-
postUpdatedMedia(
|
|
1562
|
-
return localVarFp.postUpdatedMedia(mediaUpdateInfoDto, options).then((request) => request(axios, basePath));
|
|
1581
|
+
postUpdatedMedia(requestParameters, options) {
|
|
1582
|
+
return localVarFp.postUpdatedMedia(requestParameters.mediaUpdateInfoDto, options).then((request) => request(axios, basePath));
|
|
1563
1583
|
},
|
|
1564
1584
|
/**
|
|
1565
1585
|
*
|
|
1566
1586
|
* @summary Reports that new movies have been added by an external source.
|
|
1567
|
-
* @param {
|
|
1568
|
-
* @param {string} [imdbId] The imdbId.
|
|
1587
|
+
* @param {LibraryApiPostUpdatedMoviesRequest} requestParameters Request parameters.
|
|
1569
1588
|
* @param {*} [options] Override http request option.
|
|
1570
1589
|
* @throws {RequiredError}
|
|
1571
1590
|
*/
|
|
1572
|
-
postUpdatedMovies(
|
|
1573
|
-
return localVarFp.postUpdatedMovies(tmdbId, imdbId, options).then((request) => request(axios, basePath));
|
|
1591
|
+
postUpdatedMovies(requestParameters = {}, options) {
|
|
1592
|
+
return localVarFp.postUpdatedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then((request) => request(axios, basePath));
|
|
1574
1593
|
},
|
|
1575
1594
|
/**
|
|
1576
1595
|
*
|
|
1577
1596
|
* @summary Reports that new episodes of a series have been added by an external source.
|
|
1578
|
-
* @param {
|
|
1597
|
+
* @param {LibraryApiPostUpdatedSeriesRequest} requestParameters Request parameters.
|
|
1579
1598
|
* @param {*} [options] Override http request option.
|
|
1580
1599
|
* @throws {RequiredError}
|
|
1581
1600
|
*/
|
|
1582
|
-
postUpdatedSeries(
|
|
1583
|
-
return localVarFp.postUpdatedSeries(tvdbId, options).then((request) => request(axios, basePath));
|
|
1601
|
+
postUpdatedSeries(requestParameters = {}, options) {
|
|
1602
|
+
return localVarFp.postUpdatedSeries(requestParameters.tvdbId, options).then((request) => request(axios, basePath));
|
|
1584
1603
|
},
|
|
1585
1604
|
/**
|
|
1586
1605
|
*
|
|
@@ -1785,7 +1804,7 @@ class LibraryApi extends BaseAPI {
|
|
|
1785
1804
|
* @memberof LibraryApi
|
|
1786
1805
|
*/
|
|
1787
1806
|
getThemeMedia(requestParameters, options) {
|
|
1788
|
-
return LibraryApiFp(this.configuration).getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath));
|
|
1807
|
+
return LibraryApiFp(this.configuration).getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
1789
1808
|
}
|
|
1790
1809
|
/**
|
|
1791
1810
|
*
|
|
@@ -1796,7 +1815,7 @@ class LibraryApi extends BaseAPI {
|
|
|
1796
1815
|
* @memberof LibraryApi
|
|
1797
1816
|
*/
|
|
1798
1817
|
getThemeSongs(requestParameters, options) {
|
|
1799
|
-
return LibraryApiFp(this.configuration).getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath));
|
|
1818
|
+
return LibraryApiFp(this.configuration).getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
1800
1819
|
}
|
|
1801
1820
|
/**
|
|
1802
1821
|
*
|
|
@@ -1807,7 +1826,7 @@ class LibraryApi extends BaseAPI {
|
|
|
1807
1826
|
* @memberof LibraryApi
|
|
1808
1827
|
*/
|
|
1809
1828
|
getThemeVideos(requestParameters, options) {
|
|
1810
|
-
return LibraryApiFp(this.configuration).getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath));
|
|
1829
|
+
return LibraryApiFp(this.configuration).getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
1811
1830
|
}
|
|
1812
1831
|
/**
|
|
1813
1832
|
*
|