@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
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
9
9
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
14
|
-
import { ConfigImageTypes } from '../models';
|
|
11
|
+
import type { Configuration } from '../configuration';
|
|
12
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
14
|
+
import type { ConfigImageTypes } from '../models';
|
|
15
15
|
/**
|
|
16
16
|
* TmdbApi - axios parameter creator
|
|
17
17
|
* @export
|
|
@@ -23,7 +23,7 @@ export declare const TmdbApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
23
23
|
* @param {*} [options] Override http request option.
|
|
24
24
|
* @throws {RequiredError}
|
|
25
25
|
*/
|
|
26
|
-
tmdbClientConfiguration: (options?:
|
|
26
|
+
tmdbClientConfiguration: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* TmdbApi - functional programming interface
|
|
@@ -36,7 +36,7 @@ export declare const TmdbApiFp: (configuration?: Configuration) => {
|
|
|
36
36
|
* @param {*} [options] Override http request option.
|
|
37
37
|
* @throws {RequiredError}
|
|
38
38
|
*/
|
|
39
|
-
tmdbClientConfiguration(options?:
|
|
39
|
+
tmdbClientConfiguration(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigImageTypes>>;
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
42
|
* TmdbApi - factory interface
|
|
@@ -49,7 +49,7 @@ export declare const TmdbApiFactory: (configuration?: Configuration, basePath?:
|
|
|
49
49
|
* @param {*} [options] Override http request option.
|
|
50
50
|
* @throws {RequiredError}
|
|
51
51
|
*/
|
|
52
|
-
tmdbClientConfiguration(options?:
|
|
52
|
+
tmdbClientConfiguration(options?: RawAxiosRequestConfig): AxiosPromise<ConfigImageTypes>;
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
55
|
* TmdbApi - object-oriented interface
|
|
@@ -65,5 +65,5 @@ export declare class TmdbApi extends BaseAPI {
|
|
|
65
65
|
* @throws {RequiredError}
|
|
66
66
|
* @memberof TmdbApi
|
|
67
67
|
*/
|
|
68
|
-
tmdbClientConfiguration(options?:
|
|
68
|
+
tmdbClientConfiguration(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConfigImageTypes, any>>;
|
|
69
69
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, 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 */
|
|
@@ -27,7 +26,7 @@ const TmdbApiAxiosParamCreator = function (configuration) {
|
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
tmdbClientConfiguration:
|
|
29
|
+
tmdbClientConfiguration: async (options = {}) => {
|
|
31
30
|
const localVarPath = `/Tmdb/ClientConfiguration`;
|
|
32
31
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33
32
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -35,19 +34,19 @@ const TmdbApiAxiosParamCreator = function (configuration) {
|
|
|
35
34
|
if (configuration) {
|
|
36
35
|
baseOptions = configuration.baseOptions;
|
|
37
36
|
}
|
|
38
|
-
const localVarRequestOptions =
|
|
37
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
39
38
|
const localVarHeaderParameter = {};
|
|
40
39
|
const localVarQueryParameter = {};
|
|
41
40
|
// authentication CustomAuthentication required
|
|
42
|
-
|
|
41
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
43
42
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44
43
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45
|
-
localVarRequestOptions.headers =
|
|
44
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
46
45
|
return {
|
|
47
46
|
url: toPathString(localVarUrlObj),
|
|
48
47
|
options: localVarRequestOptions,
|
|
49
48
|
};
|
|
50
|
-
}
|
|
49
|
+
},
|
|
51
50
|
};
|
|
52
51
|
};
|
|
53
52
|
/**
|
|
@@ -63,11 +62,12 @@ const TmdbApiFp = function (configuration) {
|
|
|
63
62
|
* @param {*} [options] Override http request option.
|
|
64
63
|
* @throws {RequiredError}
|
|
65
64
|
*/
|
|
66
|
-
tmdbClientConfiguration(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
async tmdbClientConfiguration(options) {
|
|
66
|
+
var _a, _b, _c;
|
|
67
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.tmdbClientConfiguration(options);
|
|
68
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
69
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TmdbApi.tmdbClientConfiguration']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
70
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
71
71
|
},
|
|
72
72
|
};
|
|
73
73
|
};
|
|
@@ -8,20 +8,20 @@
|
|
|
8
8
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
9
9
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
14
|
-
import { BaseItemDtoQueryResult } from '../models';
|
|
15
|
-
import { BaseItemKind } from '../models';
|
|
16
|
-
import { ImageType } from '../models';
|
|
17
|
-
import { ItemFields } from '../models';
|
|
18
|
-
import { ItemFilter } from '../models';
|
|
19
|
-
import { ItemSortBy } from '../models';
|
|
20
|
-
import { LocationType } from '../models';
|
|
21
|
-
import { MediaType } from '../models';
|
|
22
|
-
import { SeriesStatus } from '../models';
|
|
23
|
-
import { SortOrder } from '../models';
|
|
24
|
-
import { VideoType } from '../models';
|
|
11
|
+
import type { Configuration } from '../configuration';
|
|
12
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
14
|
+
import type { BaseItemDtoQueryResult } from '../models';
|
|
15
|
+
import type { BaseItemKind } from '../models';
|
|
16
|
+
import type { ImageType } from '../models';
|
|
17
|
+
import type { ItemFields } from '../models';
|
|
18
|
+
import type { ItemFilter } from '../models';
|
|
19
|
+
import type { ItemSortBy } from '../models';
|
|
20
|
+
import type { LocationType } from '../models';
|
|
21
|
+
import type { MediaType } from '../models';
|
|
22
|
+
import type { SeriesStatus } from '../models';
|
|
23
|
+
import type { SortOrder } from '../models';
|
|
24
|
+
import type { VideoType } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
* TrailersApi - axios parameter creator
|
|
27
27
|
* @export
|
|
@@ -117,7 +117,7 @@ export declare const TrailersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
119
|
*/
|
|
120
|
-
getTrailers: (userId?: string, maxOfficialRating?: string, hasThemeSong?: boolean, hasThemeVideo?: boolean, hasSubtitles?: boolean, hasSpecialFeature?: boolean, hasTrailer?: boolean, adjacentTo?: string, parentIndexNumber?: number, hasParentalRating?: boolean, isHd?: boolean, is4K?: boolean, locationTypes?: Array<LocationType>, excludeLocationTypes?: Array<LocationType>, isMissing?: boolean, isUnaired?: boolean, minCommunityRating?: number, minCriticRating?: number, minPremiereDate?: string, minDateLastSaved?: string, minDateLastSavedForUser?: string, maxPremiereDate?: string, hasOverview?: boolean, hasImdbId?: boolean, hasTmdbId?: boolean, hasTvdbId?: boolean, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, excludeItemIds?: Array<string>, startIndex?: number, limit?: number, recursive?: boolean, searchTerm?: string, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, filters?: Array<ItemFilter>, isFavorite?: boolean, mediaTypes?: Array<MediaType>, imageTypes?: Array<ImageType>, sortBy?: Array<ItemSortBy>, isPlayed?: boolean, genres?: Array<string>, officialRatings?: Array<string>, tags?: Array<string>, years?: Array<number>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, person?: string, personIds?: Array<string>, personTypes?: Array<string>, studios?: Array<string>, artists?: Array<string>, excludeArtistIds?: Array<string>, artistIds?: Array<string>, albumArtistIds?: Array<string>, contributingArtistIds?: Array<string>, albums?: Array<string>, albumIds?: Array<string>, ids?: Array<string>, videoTypes?: Array<VideoType>, minOfficialRating?: string, isLocked?: boolean, isPlaceHolder?: boolean, hasOfficialRating?: boolean, collapseBoxSetItems?: boolean, minWidth?: number, minHeight?: number, maxWidth?: number, maxHeight?: number, is3D?: boolean, seriesStatus?: Array<SeriesStatus>, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, studioIds?: Array<string>, genreIds?: Array<string>, enableTotalRecordCount?: boolean, enableImages?: boolean, options?:
|
|
120
|
+
getTrailers: (userId?: string, maxOfficialRating?: string, hasThemeSong?: boolean, hasThemeVideo?: boolean, hasSubtitles?: boolean, hasSpecialFeature?: boolean, hasTrailer?: boolean, adjacentTo?: string, parentIndexNumber?: number, hasParentalRating?: boolean, isHd?: boolean, is4K?: boolean, locationTypes?: Array<LocationType>, excludeLocationTypes?: Array<LocationType>, isMissing?: boolean, isUnaired?: boolean, minCommunityRating?: number, minCriticRating?: number, minPremiereDate?: string, minDateLastSaved?: string, minDateLastSavedForUser?: string, maxPremiereDate?: string, hasOverview?: boolean, hasImdbId?: boolean, hasTmdbId?: boolean, hasTvdbId?: boolean, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, excludeItemIds?: Array<string>, startIndex?: number, limit?: number, recursive?: boolean, searchTerm?: string, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, filters?: Array<ItemFilter>, isFavorite?: boolean, mediaTypes?: Array<MediaType>, imageTypes?: Array<ImageType>, sortBy?: Array<ItemSortBy>, isPlayed?: boolean, genres?: Array<string>, officialRatings?: Array<string>, tags?: Array<string>, years?: Array<number>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, person?: string, personIds?: Array<string>, personTypes?: Array<string>, studios?: Array<string>, artists?: Array<string>, excludeArtistIds?: Array<string>, artistIds?: Array<string>, albumArtistIds?: Array<string>, contributingArtistIds?: Array<string>, albums?: Array<string>, albumIds?: Array<string>, ids?: Array<string>, videoTypes?: Array<VideoType>, minOfficialRating?: string, isLocked?: boolean, isPlaceHolder?: boolean, hasOfficialRating?: boolean, collapseBoxSetItems?: boolean, minWidth?: number, minHeight?: number, maxWidth?: number, maxHeight?: number, is3D?: boolean, seriesStatus?: Array<SeriesStatus>, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, studioIds?: Array<string>, genreIds?: Array<string>, enableTotalRecordCount?: boolean, enableImages?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
121
121
|
};
|
|
122
122
|
/**
|
|
123
123
|
* TrailersApi - functional programming interface
|
|
@@ -214,7 +214,7 @@ export declare const TrailersApiFp: (configuration?: Configuration) => {
|
|
|
214
214
|
* @param {*} [options] Override http request option.
|
|
215
215
|
* @throws {RequiredError}
|
|
216
216
|
*/
|
|
217
|
-
getTrailers(userId?: string, maxOfficialRating?: string, hasThemeSong?: boolean, hasThemeVideo?: boolean, hasSubtitles?: boolean, hasSpecialFeature?: boolean, hasTrailer?: boolean, adjacentTo?: string, parentIndexNumber?: number, hasParentalRating?: boolean, isHd?: boolean, is4K?: boolean, locationTypes?: Array<LocationType>, excludeLocationTypes?: Array<LocationType>, isMissing?: boolean, isUnaired?: boolean, minCommunityRating?: number, minCriticRating?: number, minPremiereDate?: string, minDateLastSaved?: string, minDateLastSavedForUser?: string, maxPremiereDate?: string, hasOverview?: boolean, hasImdbId?: boolean, hasTmdbId?: boolean, hasTvdbId?: boolean, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, excludeItemIds?: Array<string>, startIndex?: number, limit?: number, recursive?: boolean, searchTerm?: string, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, filters?: Array<ItemFilter>, isFavorite?: boolean, mediaTypes?: Array<MediaType>, imageTypes?: Array<ImageType>, sortBy?: Array<ItemSortBy>, isPlayed?: boolean, genres?: Array<string>, officialRatings?: Array<string>, tags?: Array<string>, years?: Array<number>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, person?: string, personIds?: Array<string>, personTypes?: Array<string>, studios?: Array<string>, artists?: Array<string>, excludeArtistIds?: Array<string>, artistIds?: Array<string>, albumArtistIds?: Array<string>, contributingArtistIds?: Array<string>, albums?: Array<string>, albumIds?: Array<string>, ids?: Array<string>, videoTypes?: Array<VideoType>, minOfficialRating?: string, isLocked?: boolean, isPlaceHolder?: boolean, hasOfficialRating?: boolean, collapseBoxSetItems?: boolean, minWidth?: number, minHeight?: number, maxWidth?: number, maxHeight?: number, is3D?: boolean, seriesStatus?: Array<SeriesStatus>, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, studioIds?: Array<string>, genreIds?: Array<string>, enableTotalRecordCount?: boolean, enableImages?: boolean, options?:
|
|
217
|
+
getTrailers(userId?: string, maxOfficialRating?: string, hasThemeSong?: boolean, hasThemeVideo?: boolean, hasSubtitles?: boolean, hasSpecialFeature?: boolean, hasTrailer?: boolean, adjacentTo?: string, parentIndexNumber?: number, hasParentalRating?: boolean, isHd?: boolean, is4K?: boolean, locationTypes?: Array<LocationType>, excludeLocationTypes?: Array<LocationType>, isMissing?: boolean, isUnaired?: boolean, minCommunityRating?: number, minCriticRating?: number, minPremiereDate?: string, minDateLastSaved?: string, minDateLastSavedForUser?: string, maxPremiereDate?: string, hasOverview?: boolean, hasImdbId?: boolean, hasTmdbId?: boolean, hasTvdbId?: boolean, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, excludeItemIds?: Array<string>, startIndex?: number, limit?: number, recursive?: boolean, searchTerm?: string, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, filters?: Array<ItemFilter>, isFavorite?: boolean, mediaTypes?: Array<MediaType>, imageTypes?: Array<ImageType>, sortBy?: Array<ItemSortBy>, isPlayed?: boolean, genres?: Array<string>, officialRatings?: Array<string>, tags?: Array<string>, years?: Array<number>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, person?: string, personIds?: Array<string>, personTypes?: Array<string>, studios?: Array<string>, artists?: Array<string>, excludeArtistIds?: Array<string>, artistIds?: Array<string>, albumArtistIds?: Array<string>, contributingArtistIds?: Array<string>, albums?: Array<string>, albumIds?: Array<string>, ids?: Array<string>, videoTypes?: Array<VideoType>, minOfficialRating?: string, isLocked?: boolean, isPlaceHolder?: boolean, hasOfficialRating?: boolean, collapseBoxSetItems?: boolean, minWidth?: number, minHeight?: number, maxWidth?: number, maxHeight?: number, is3D?: boolean, seriesStatus?: Array<SeriesStatus>, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, studioIds?: Array<string>, genreIds?: Array<string>, enableTotalRecordCount?: boolean, enableImages?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDtoQueryResult>>;
|
|
218
218
|
};
|
|
219
219
|
/**
|
|
220
220
|
* TrailersApi - factory interface
|
|
@@ -224,94 +224,11 @@ export declare const TrailersApiFactory: (configuration?: Configuration, basePat
|
|
|
224
224
|
/**
|
|
225
225
|
*
|
|
226
226
|
* @summary Finds movies and trailers similar to a given trailer.
|
|
227
|
-
* @param {
|
|
228
|
-
* @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
|
|
229
|
-
* @param {boolean} [hasThemeSong] Optional filter by items with theme songs.
|
|
230
|
-
* @param {boolean} [hasThemeVideo] Optional filter by items with theme videos.
|
|
231
|
-
* @param {boolean} [hasSubtitles] Optional filter by items with subtitles.
|
|
232
|
-
* @param {boolean} [hasSpecialFeature] Optional filter by items with special features.
|
|
233
|
-
* @param {boolean} [hasTrailer] Optional filter by items with trailers.
|
|
234
|
-
* @param {string} [adjacentTo] Optional. Return items that are siblings of a supplied item.
|
|
235
|
-
* @param {number} [parentIndexNumber] Optional filter by parent index number.
|
|
236
|
-
* @param {boolean} [hasParentalRating] Optional filter by items that have or do not have a parental rating.
|
|
237
|
-
* @param {boolean} [isHd] Optional filter by items that are HD or not.
|
|
238
|
-
* @param {boolean} [is4K] Optional filter by items that are 4K or not.
|
|
239
|
-
* @param {Array<LocationType>} [locationTypes] Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited.
|
|
240
|
-
* @param {Array<LocationType>} [excludeLocationTypes] Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited.
|
|
241
|
-
* @param {boolean} [isMissing] Optional filter by items that are missing episodes or not.
|
|
242
|
-
* @param {boolean} [isUnaired] Optional filter by items that are unaired episodes or not.
|
|
243
|
-
* @param {number} [minCommunityRating] Optional filter by minimum community rating.
|
|
244
|
-
* @param {number} [minCriticRating] Optional filter by minimum critic rating.
|
|
245
|
-
* @param {string} [minPremiereDate] Optional. The minimum premiere date. Format = ISO.
|
|
246
|
-
* @param {string} [minDateLastSaved] Optional. The minimum last saved date. Format = ISO.
|
|
247
|
-
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
248
|
-
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
249
|
-
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
250
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an IMDb id or not.
|
|
251
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a TMDb id or not.
|
|
252
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a TVDb id or not.
|
|
253
|
-
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
254
|
-
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
255
|
-
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
256
|
-
* @param {boolean} [isKids] Optional filter for live tv kids.
|
|
257
|
-
* @param {boolean} [isSports] Optional filter for live tv sports.
|
|
258
|
-
* @param {Array<string>} [excludeItemIds] Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited.
|
|
259
|
-
* @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
|
|
260
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
261
|
-
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
262
|
-
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
263
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending, Descending.
|
|
264
|
-
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
265
|
-
* @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.
|
|
266
|
-
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
267
|
-
* @param {Array<ItemFilter>} [filters] Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes.
|
|
268
|
-
* @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not.
|
|
269
|
-
* @param {Array<MediaType>} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited.
|
|
270
|
-
* @param {Array<ImageType>} [imageTypes] Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited.
|
|
271
|
-
* @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.
|
|
272
|
-
* @param {boolean} [isPlayed] Optional filter by items that are played, or not.
|
|
273
|
-
* @param {Array<string>} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited.
|
|
274
|
-
* @param {Array<string>} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited.
|
|
275
|
-
* @param {Array<string>} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited.
|
|
276
|
-
* @param {Array<number>} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited.
|
|
277
|
-
* @param {boolean} [enableUserData] Optional, include user data.
|
|
278
|
-
* @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
|
|
279
|
-
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
280
|
-
* @param {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person.
|
|
281
|
-
* @param {Array<string>} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person id.
|
|
282
|
-
* @param {Array<string>} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited.
|
|
283
|
-
* @param {Array<string>} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited.
|
|
284
|
-
* @param {Array<string>} [artists] Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited.
|
|
285
|
-
* @param {Array<string>} [excludeArtistIds] Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited.
|
|
286
|
-
* @param {Array<string>} [artistIds] Optional. If specified, results will be filtered to include only those containing the specified artist id.
|
|
287
|
-
* @param {Array<string>} [albumArtistIds] Optional. If specified, results will be filtered to include only those containing the specified album artist id.
|
|
288
|
-
* @param {Array<string>} [contributingArtistIds] Optional. If specified, results will be filtered to include only those containing the specified contributing artist id.
|
|
289
|
-
* @param {Array<string>} [albums] Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited.
|
|
290
|
-
* @param {Array<string>} [albumIds] Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited.
|
|
291
|
-
* @param {Array<string>} [ids] Optional. If specific items are needed, specify a list of item id\'s to retrieve. This allows multiple, comma delimited.
|
|
292
|
-
* @param {Array<VideoType>} [videoTypes] Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited.
|
|
293
|
-
* @param {string} [minOfficialRating] Optional filter by minimum official rating (PG, PG-13, TV-MA, etc).
|
|
294
|
-
* @param {boolean} [isLocked] Optional filter by items that are locked.
|
|
295
|
-
* @param {boolean} [isPlaceHolder] Optional filter by items that are placeholders.
|
|
296
|
-
* @param {boolean} [hasOfficialRating] Optional filter by items that have official ratings.
|
|
297
|
-
* @param {boolean} [collapseBoxSetItems] Whether or not to hide items behind their boxsets.
|
|
298
|
-
* @param {number} [minWidth] Optional. Filter by the minimum width of the item.
|
|
299
|
-
* @param {number} [minHeight] Optional. Filter by the minimum height of the item.
|
|
300
|
-
* @param {number} [maxWidth] Optional. Filter by the maximum width of the item.
|
|
301
|
-
* @param {number} [maxHeight] Optional. Filter by the maximum height of the item.
|
|
302
|
-
* @param {boolean} [is3D] Optional filter by items that are 3D, or not.
|
|
303
|
-
* @param {Array<SeriesStatus>} [seriesStatus] Optional filter by Series Status. Allows multiple, comma delimited.
|
|
304
|
-
* @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string.
|
|
305
|
-
* @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string.
|
|
306
|
-
* @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string.
|
|
307
|
-
* @param {Array<string>} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited.
|
|
308
|
-
* @param {Array<string>} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited.
|
|
309
|
-
* @param {boolean} [enableTotalRecordCount] Optional. Enable the total record count.
|
|
310
|
-
* @param {boolean} [enableImages] Optional, include image information in output.
|
|
227
|
+
* @param {TrailersApiGetTrailersRequest} requestParameters Request parameters.
|
|
311
228
|
* @param {*} [options] Override http request option.
|
|
312
229
|
* @throws {RequiredError}
|
|
313
230
|
*/
|
|
314
|
-
getTrailers(
|
|
231
|
+
getTrailers(requestParameters?: TrailersApiGetTrailersRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDtoQueryResult>;
|
|
315
232
|
};
|
|
316
233
|
/**
|
|
317
234
|
* Request parameters for getTrailers operation in TrailersApi.
|
|
@@ -839,5 +756,5 @@ export declare class TrailersApi extends BaseAPI {
|
|
|
839
756
|
* @throws {RequiredError}
|
|
840
757
|
* @memberof TrailersApi
|
|
841
758
|
*/
|
|
842
|
-
getTrailers(requestParameters?: TrailersApiGetTrailersRequest, options?:
|
|
759
|
+
getTrailers(requestParameters?: TrailersApiGetTrailersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDtoQueryResult, any>>;
|
|
843
760
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, 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 */
|
|
@@ -111,7 +110,7 @@ const TrailersApiAxiosParamCreator = function (configuration) {
|
|
|
111
110
|
* @param {*} [options] Override http request option.
|
|
112
111
|
* @throws {RequiredError}
|
|
113
112
|
*/
|
|
114
|
-
getTrailers:
|
|
113
|
+
getTrailers: async (userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options = {}) => {
|
|
115
114
|
const localVarPath = `/Trailers`;
|
|
116
115
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
116
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -119,11 +118,11 @@ const TrailersApiAxiosParamCreator = function (configuration) {
|
|
|
119
118
|
if (configuration) {
|
|
120
119
|
baseOptions = configuration.baseOptions;
|
|
121
120
|
}
|
|
122
|
-
const localVarRequestOptions =
|
|
121
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
123
122
|
const localVarHeaderParameter = {};
|
|
124
123
|
const localVarQueryParameter = {};
|
|
125
124
|
// authentication CustomAuthentication required
|
|
126
|
-
|
|
125
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
127
126
|
if (userId !== undefined) {
|
|
128
127
|
localVarQueryParameter['userId'] = userId;
|
|
129
128
|
}
|
|
@@ -386,12 +385,12 @@ const TrailersApiAxiosParamCreator = function (configuration) {
|
|
|
386
385
|
}
|
|
387
386
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
388
387
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
389
|
-
localVarRequestOptions.headers =
|
|
388
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
390
389
|
return {
|
|
391
390
|
url: toPathString(localVarUrlObj),
|
|
392
391
|
options: localVarRequestOptions,
|
|
393
392
|
};
|
|
394
|
-
}
|
|
393
|
+
},
|
|
395
394
|
};
|
|
396
395
|
};
|
|
397
396
|
/**
|
|
@@ -491,11 +490,12 @@ const TrailersApiFp = function (configuration) {
|
|
|
491
490
|
* @param {*} [options] Override http request option.
|
|
492
491
|
* @throws {RequiredError}
|
|
493
492
|
*/
|
|
494
|
-
getTrailers(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options) {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
493
|
+
async getTrailers(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options) {
|
|
494
|
+
var _a, _b, _c;
|
|
495
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTrailers(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options);
|
|
496
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
497
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TrailersApi.getTrailers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
498
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
499
499
|
},
|
|
500
500
|
};
|
|
501
501
|
};
|
|
@@ -509,95 +509,12 @@ const TrailersApiFactory = function (configuration, basePath, axios) {
|
|
|
509
509
|
/**
|
|
510
510
|
*
|
|
511
511
|
* @summary Finds movies and trailers similar to a given trailer.
|
|
512
|
-
* @param {
|
|
513
|
-
* @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
|
|
514
|
-
* @param {boolean} [hasThemeSong] Optional filter by items with theme songs.
|
|
515
|
-
* @param {boolean} [hasThemeVideo] Optional filter by items with theme videos.
|
|
516
|
-
* @param {boolean} [hasSubtitles] Optional filter by items with subtitles.
|
|
517
|
-
* @param {boolean} [hasSpecialFeature] Optional filter by items with special features.
|
|
518
|
-
* @param {boolean} [hasTrailer] Optional filter by items with trailers.
|
|
519
|
-
* @param {string} [adjacentTo] Optional. Return items that are siblings of a supplied item.
|
|
520
|
-
* @param {number} [parentIndexNumber] Optional filter by parent index number.
|
|
521
|
-
* @param {boolean} [hasParentalRating] Optional filter by items that have or do not have a parental rating.
|
|
522
|
-
* @param {boolean} [isHd] Optional filter by items that are HD or not.
|
|
523
|
-
* @param {boolean} [is4K] Optional filter by items that are 4K or not.
|
|
524
|
-
* @param {Array<LocationType>} [locationTypes] Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited.
|
|
525
|
-
* @param {Array<LocationType>} [excludeLocationTypes] Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited.
|
|
526
|
-
* @param {boolean} [isMissing] Optional filter by items that are missing episodes or not.
|
|
527
|
-
* @param {boolean} [isUnaired] Optional filter by items that are unaired episodes or not.
|
|
528
|
-
* @param {number} [minCommunityRating] Optional filter by minimum community rating.
|
|
529
|
-
* @param {number} [minCriticRating] Optional filter by minimum critic rating.
|
|
530
|
-
* @param {string} [minPremiereDate] Optional. The minimum premiere date. Format = ISO.
|
|
531
|
-
* @param {string} [minDateLastSaved] Optional. The minimum last saved date. Format = ISO.
|
|
532
|
-
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
|
|
533
|
-
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
|
|
534
|
-
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
|
|
535
|
-
* @param {boolean} [hasImdbId] Optional filter by items that have an IMDb id or not.
|
|
536
|
-
* @param {boolean} [hasTmdbId] Optional filter by items that have a TMDb id or not.
|
|
537
|
-
* @param {boolean} [hasTvdbId] Optional filter by items that have a TVDb id or not.
|
|
538
|
-
* @param {boolean} [isMovie] Optional filter for live tv movies.
|
|
539
|
-
* @param {boolean} [isSeries] Optional filter for live tv series.
|
|
540
|
-
* @param {boolean} [isNews] Optional filter for live tv news.
|
|
541
|
-
* @param {boolean} [isKids] Optional filter for live tv kids.
|
|
542
|
-
* @param {boolean} [isSports] Optional filter for live tv sports.
|
|
543
|
-
* @param {Array<string>} [excludeItemIds] Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited.
|
|
544
|
-
* @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
|
|
545
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
546
|
-
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
|
|
547
|
-
* @param {string} [searchTerm] Optional. Filter based on a search term.
|
|
548
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending, Descending.
|
|
549
|
-
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
550
|
-
* @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.
|
|
551
|
-
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
552
|
-
* @param {Array<ItemFilter>} [filters] Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes.
|
|
553
|
-
* @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not.
|
|
554
|
-
* @param {Array<MediaType>} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited.
|
|
555
|
-
* @param {Array<ImageType>} [imageTypes] Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited.
|
|
556
|
-
* @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.
|
|
557
|
-
* @param {boolean} [isPlayed] Optional filter by items that are played, or not.
|
|
558
|
-
* @param {Array<string>} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited.
|
|
559
|
-
* @param {Array<string>} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited.
|
|
560
|
-
* @param {Array<string>} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited.
|
|
561
|
-
* @param {Array<number>} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited.
|
|
562
|
-
* @param {boolean} [enableUserData] Optional, include user data.
|
|
563
|
-
* @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
|
|
564
|
-
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
565
|
-
* @param {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person.
|
|
566
|
-
* @param {Array<string>} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person id.
|
|
567
|
-
* @param {Array<string>} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited.
|
|
568
|
-
* @param {Array<string>} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited.
|
|
569
|
-
* @param {Array<string>} [artists] Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited.
|
|
570
|
-
* @param {Array<string>} [excludeArtistIds] Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited.
|
|
571
|
-
* @param {Array<string>} [artistIds] Optional. If specified, results will be filtered to include only those containing the specified artist id.
|
|
572
|
-
* @param {Array<string>} [albumArtistIds] Optional. If specified, results will be filtered to include only those containing the specified album artist id.
|
|
573
|
-
* @param {Array<string>} [contributingArtistIds] Optional. If specified, results will be filtered to include only those containing the specified contributing artist id.
|
|
574
|
-
* @param {Array<string>} [albums] Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited.
|
|
575
|
-
* @param {Array<string>} [albumIds] Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited.
|
|
576
|
-
* @param {Array<string>} [ids] Optional. If specific items are needed, specify a list of item id\'s to retrieve. This allows multiple, comma delimited.
|
|
577
|
-
* @param {Array<VideoType>} [videoTypes] Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited.
|
|
578
|
-
* @param {string} [minOfficialRating] Optional filter by minimum official rating (PG, PG-13, TV-MA, etc).
|
|
579
|
-
* @param {boolean} [isLocked] Optional filter by items that are locked.
|
|
580
|
-
* @param {boolean} [isPlaceHolder] Optional filter by items that are placeholders.
|
|
581
|
-
* @param {boolean} [hasOfficialRating] Optional filter by items that have official ratings.
|
|
582
|
-
* @param {boolean} [collapseBoxSetItems] Whether or not to hide items behind their boxsets.
|
|
583
|
-
* @param {number} [minWidth] Optional. Filter by the minimum width of the item.
|
|
584
|
-
* @param {number} [minHeight] Optional. Filter by the minimum height of the item.
|
|
585
|
-
* @param {number} [maxWidth] Optional. Filter by the maximum width of the item.
|
|
586
|
-
* @param {number} [maxHeight] Optional. Filter by the maximum height of the item.
|
|
587
|
-
* @param {boolean} [is3D] Optional filter by items that are 3D, or not.
|
|
588
|
-
* @param {Array<SeriesStatus>} [seriesStatus] Optional filter by Series Status. Allows multiple, comma delimited.
|
|
589
|
-
* @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string.
|
|
590
|
-
* @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string.
|
|
591
|
-
* @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string.
|
|
592
|
-
* @param {Array<string>} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited.
|
|
593
|
-
* @param {Array<string>} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited.
|
|
594
|
-
* @param {boolean} [enableTotalRecordCount] Optional. Enable the total record count.
|
|
595
|
-
* @param {boolean} [enableImages] Optional, include image information in output.
|
|
512
|
+
* @param {TrailersApiGetTrailersRequest} requestParameters Request parameters.
|
|
596
513
|
* @param {*} [options] Override http request option.
|
|
597
514
|
* @throws {RequiredError}
|
|
598
515
|
*/
|
|
599
|
-
getTrailers(
|
|
600
|
-
return localVarFp.getTrailers(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options).then((request) => request(axios, basePath));
|
|
516
|
+
getTrailers(requestParameters = {}, options) {
|
|
517
|
+
return localVarFp.getTrailers(requestParameters.userId, requestParameters.maxOfficialRating, requestParameters.hasThemeSong, requestParameters.hasThemeVideo, requestParameters.hasSubtitles, requestParameters.hasSpecialFeature, requestParameters.hasTrailer, requestParameters.adjacentTo, requestParameters.parentIndexNumber, requestParameters.hasParentalRating, requestParameters.isHd, requestParameters.is4K, requestParameters.locationTypes, requestParameters.excludeLocationTypes, requestParameters.isMissing, requestParameters.isUnaired, requestParameters.minCommunityRating, requestParameters.minCriticRating, requestParameters.minPremiereDate, requestParameters.minDateLastSaved, requestParameters.minDateLastSavedForUser, requestParameters.maxPremiereDate, requestParameters.hasOverview, requestParameters.hasImdbId, requestParameters.hasTmdbId, requestParameters.hasTvdbId, requestParameters.isMovie, requestParameters.isSeries, requestParameters.isNews, requestParameters.isKids, requestParameters.isSports, requestParameters.excludeItemIds, requestParameters.startIndex, requestParameters.limit, requestParameters.recursive, requestParameters.searchTerm, requestParameters.sortOrder, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.filters, requestParameters.isFavorite, requestParameters.mediaTypes, requestParameters.imageTypes, requestParameters.sortBy, requestParameters.isPlayed, requestParameters.genres, requestParameters.officialRatings, requestParameters.tags, requestParameters.years, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.person, requestParameters.personIds, requestParameters.personTypes, requestParameters.studios, requestParameters.artists, requestParameters.excludeArtistIds, requestParameters.artistIds, requestParameters.albumArtistIds, requestParameters.contributingArtistIds, requestParameters.albums, requestParameters.albumIds, requestParameters.ids, requestParameters.videoTypes, requestParameters.minOfficialRating, requestParameters.isLocked, requestParameters.isPlaceHolder, requestParameters.hasOfficialRating, requestParameters.collapseBoxSetItems, requestParameters.minWidth, requestParameters.minHeight, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.is3D, requestParameters.seriesStatus, requestParameters.nameStartsWithOrGreater, requestParameters.nameStartsWith, requestParameters.nameLessThan, requestParameters.studioIds, requestParameters.genreIds, requestParameters.enableTotalRecordCount, requestParameters.enableImages, options).then((request) => request(axios, basePath));
|
|
601
518
|
},
|
|
602
519
|
};
|
|
603
520
|
};
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
9
9
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
11
|
+
import type { Configuration } from '../configuration';
|
|
12
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
14
14
|
/**
|
|
15
15
|
* TrickplayApi - axios parameter creator
|
|
16
16
|
* @export
|
|
@@ -25,7 +25,7 @@ export declare const TrickplayApiAxiosParamCreator: (configuration?: Configurati
|
|
|
25
25
|
* @param {*} [options] Override http request option.
|
|
26
26
|
* @throws {RequiredError}
|
|
27
27
|
*/
|
|
28
|
-
getTrickplayHlsPlaylist: (itemId: string, width: number, mediaSourceId?: string, options?:
|
|
28
|
+
getTrickplayHlsPlaylist: (itemId: string, width: number, mediaSourceId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @summary Gets a trickplay tile image.
|
|
@@ -36,7 +36,7 @@ export declare const TrickplayApiAxiosParamCreator: (configuration?: Configurati
|
|
|
36
36
|
* @param {*} [options] Override http request option.
|
|
37
37
|
* @throws {RequiredError}
|
|
38
38
|
*/
|
|
39
|
-
getTrickplayTileImage: (itemId: string, width: number, index: number, mediaSourceId?: string, options?:
|
|
39
|
+
getTrickplayTileImage: (itemId: string, width: number, index: number, mediaSourceId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
42
|
* TrickplayApi - functional programming interface
|
|
@@ -52,7 +52,7 @@ export declare const TrickplayApiFp: (configuration?: Configuration) => {
|
|
|
52
52
|
* @param {*} [options] Override http request option.
|
|
53
53
|
* @throws {RequiredError}
|
|
54
54
|
*/
|
|
55
|
-
getTrickplayHlsPlaylist(itemId: string, width: number, mediaSourceId?: string, options?:
|
|
55
|
+
getTrickplayHlsPlaylist(itemId: string, width: number, mediaSourceId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @summary Gets a trickplay tile image.
|
|
@@ -63,7 +63,7 @@ export declare const TrickplayApiFp: (configuration?: Configuration) => {
|
|
|
63
63
|
* @param {*} [options] Override http request option.
|
|
64
64
|
* @throws {RequiredError}
|
|
65
65
|
*/
|
|
66
|
-
getTrickplayTileImage(itemId: string, width: number, index: number, mediaSourceId?: string, options?:
|
|
66
|
+
getTrickplayTileImage(itemId: string, width: number, index: number, mediaSourceId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
67
67
|
};
|
|
68
68
|
/**
|
|
69
69
|
* TrickplayApi - factory interface
|
|
@@ -73,24 +73,19 @@ export declare const TrickplayApiFactory: (configuration?: Configuration, basePa
|
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @summary Gets an image tiles playlist for trickplay.
|
|
76
|
-
* @param {
|
|
77
|
-
* @param {number} width The width of a single tile.
|
|
78
|
-
* @param {string} [mediaSourceId] The media version id, if using an alternate version.
|
|
76
|
+
* @param {TrickplayApiGetTrickplayHlsPlaylistRequest} requestParameters Request parameters.
|
|
79
77
|
* @param {*} [options] Override http request option.
|
|
80
78
|
* @throws {RequiredError}
|
|
81
79
|
*/
|
|
82
|
-
getTrickplayHlsPlaylist(
|
|
80
|
+
getTrickplayHlsPlaylist(requestParameters: TrickplayApiGetTrickplayHlsPlaylistRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
83
81
|
/**
|
|
84
82
|
*
|
|
85
83
|
* @summary Gets a trickplay tile image.
|
|
86
|
-
* @param {
|
|
87
|
-
* @param {number} width The width of a single tile.
|
|
88
|
-
* @param {number} index The index of the desired tile.
|
|
89
|
-
* @param {string} [mediaSourceId] The media version id, if using an alternate version.
|
|
84
|
+
* @param {TrickplayApiGetTrickplayTileImageRequest} requestParameters Request parameters.
|
|
90
85
|
* @param {*} [options] Override http request option.
|
|
91
86
|
* @throws {RequiredError}
|
|
92
87
|
*/
|
|
93
|
-
getTrickplayTileImage(
|
|
88
|
+
getTrickplayTileImage(requestParameters: TrickplayApiGetTrickplayTileImageRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
94
89
|
};
|
|
95
90
|
/**
|
|
96
91
|
* Request parameters for getTrickplayHlsPlaylist operation in TrickplayApi.
|
|
@@ -163,7 +158,7 @@ export declare class TrickplayApi extends BaseAPI {
|
|
|
163
158
|
* @throws {RequiredError}
|
|
164
159
|
* @memberof TrickplayApi
|
|
165
160
|
*/
|
|
166
|
-
getTrickplayHlsPlaylist(requestParameters: TrickplayApiGetTrickplayHlsPlaylistRequest, options?:
|
|
161
|
+
getTrickplayHlsPlaylist(requestParameters: TrickplayApiGetTrickplayHlsPlaylistRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
167
162
|
/**
|
|
168
163
|
*
|
|
169
164
|
* @summary Gets a trickplay tile image.
|
|
@@ -172,5 +167,5 @@ export declare class TrickplayApi extends BaseAPI {
|
|
|
172
167
|
* @throws {RequiredError}
|
|
173
168
|
* @memberof TrickplayApi
|
|
174
169
|
*/
|
|
175
|
-
getTrickplayTileImage(requestParameters: TrickplayApiGetTrickplayTileImageRequest, options?:
|
|
170
|
+
getTrickplayTileImage(requestParameters: TrickplayApiGetTrickplayTileImageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
176
171
|
}
|