@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,13 +8,13 @@
|
|
|
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 { BaseItemKind } from '../models';
|
|
15
|
-
import { MediaType } from '../models';
|
|
16
|
-
import { QueryFilters } from '../models';
|
|
17
|
-
import { QueryFiltersLegacy } 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 { BaseItemKind } from '../models';
|
|
15
|
+
import type { MediaType } from '../models';
|
|
16
|
+
import type { QueryFilters } from '../models';
|
|
17
|
+
import type { QueryFiltersLegacy } from '../models';
|
|
18
18
|
/**
|
|
19
19
|
* FilterApi - axios parameter creator
|
|
20
20
|
* @export
|
|
@@ -36,7 +36,7 @@ export declare const FilterApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
36
36
|
* @param {*} [options] Override http request option.
|
|
37
37
|
* @throws {RequiredError}
|
|
38
38
|
*/
|
|
39
|
-
getQueryFilters: (userId?: string, parentId?: string, includeItemTypes?: Array<BaseItemKind>, isAiring?: boolean, isMovie?: boolean, isSports?: boolean, isKids?: boolean, isNews?: boolean, isSeries?: boolean, recursive?: boolean, options?:
|
|
39
|
+
getQueryFilters: (userId?: string, parentId?: string, includeItemTypes?: Array<BaseItemKind>, isAiring?: boolean, isMovie?: boolean, isSports?: boolean, isKids?: boolean, isNews?: boolean, isSeries?: boolean, recursive?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @summary Gets legacy query filters.
|
|
@@ -47,7 +47,7 @@ export declare const FilterApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
47
47
|
* @param {*} [options] Override http request option.
|
|
48
48
|
* @throws {RequiredError}
|
|
49
49
|
*/
|
|
50
|
-
getQueryFiltersLegacy: (userId?: string, parentId?: string, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, options?:
|
|
50
|
+
getQueryFiltersLegacy: (userId?: string, parentId?: string, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
53
|
* FilterApi - functional programming interface
|
|
@@ -70,7 +70,7 @@ export declare const FilterApiFp: (configuration?: Configuration) => {
|
|
|
70
70
|
* @param {*} [options] Override http request option.
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
*/
|
|
73
|
-
getQueryFilters(userId?: string, parentId?: string, includeItemTypes?: Array<BaseItemKind>, isAiring?: boolean, isMovie?: boolean, isSports?: boolean, isKids?: boolean, isNews?: boolean, isSeries?: boolean, recursive?: boolean, options?:
|
|
73
|
+
getQueryFilters(userId?: string, parentId?: string, includeItemTypes?: Array<BaseItemKind>, isAiring?: boolean, isMovie?: boolean, isSports?: boolean, isKids?: boolean, isNews?: boolean, isSeries?: boolean, recursive?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryFilters>>;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @summary Gets legacy query filters.
|
|
@@ -81,7 +81,7 @@ export declare const FilterApiFp: (configuration?: Configuration) => {
|
|
|
81
81
|
* @param {*} [options] Override http request option.
|
|
82
82
|
* @throws {RequiredError}
|
|
83
83
|
*/
|
|
84
|
-
getQueryFiltersLegacy(userId?: string, parentId?: string, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, options?:
|
|
84
|
+
getQueryFiltersLegacy(userId?: string, parentId?: string, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryFiltersLegacy>>;
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* FilterApi - factory interface
|
|
@@ -91,31 +91,19 @@ export declare const FilterApiFactory: (configuration?: Configuration, basePath?
|
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
93
|
* @summary Gets query filters.
|
|
94
|
-
* @param {
|
|
95
|
-
* @param {string} [parentId] Optional. Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
96
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
97
|
-
* @param {boolean} [isAiring] Optional. Is item airing.
|
|
98
|
-
* @param {boolean} [isMovie] Optional. Is item movie.
|
|
99
|
-
* @param {boolean} [isSports] Optional. Is item sports.
|
|
100
|
-
* @param {boolean} [isKids] Optional. Is item kids.
|
|
101
|
-
* @param {boolean} [isNews] Optional. Is item news.
|
|
102
|
-
* @param {boolean} [isSeries] Optional. Is item series.
|
|
103
|
-
* @param {boolean} [recursive] Optional. Search recursive.
|
|
94
|
+
* @param {FilterApiGetQueryFiltersRequest} requestParameters Request parameters.
|
|
104
95
|
* @param {*} [options] Override http request option.
|
|
105
96
|
* @throws {RequiredError}
|
|
106
97
|
*/
|
|
107
|
-
getQueryFilters(
|
|
98
|
+
getQueryFilters(requestParameters?: FilterApiGetQueryFiltersRequest, options?: RawAxiosRequestConfig): AxiosPromise<QueryFilters>;
|
|
108
99
|
/**
|
|
109
100
|
*
|
|
110
101
|
* @summary Gets legacy query filters.
|
|
111
|
-
* @param {
|
|
112
|
-
* @param {string} [parentId] Optional. Parent id.
|
|
113
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
114
|
-
* @param {Array<MediaType>} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited.
|
|
102
|
+
* @param {FilterApiGetQueryFiltersLegacyRequest} requestParameters Request parameters.
|
|
115
103
|
* @param {*} [options] Override http request option.
|
|
116
104
|
* @throws {RequiredError}
|
|
117
105
|
*/
|
|
118
|
-
getQueryFiltersLegacy(
|
|
106
|
+
getQueryFiltersLegacy(requestParameters?: FilterApiGetQueryFiltersLegacyRequest, options?: RawAxiosRequestConfig): AxiosPromise<QueryFiltersLegacy>;
|
|
119
107
|
};
|
|
120
108
|
/**
|
|
121
109
|
* Request parameters for getQueryFilters operation in FilterApi.
|
|
@@ -230,7 +218,7 @@ export declare class FilterApi extends BaseAPI {
|
|
|
230
218
|
* @throws {RequiredError}
|
|
231
219
|
* @memberof FilterApi
|
|
232
220
|
*/
|
|
233
|
-
getQueryFilters(requestParameters?: FilterApiGetQueryFiltersRequest, options?:
|
|
221
|
+
getQueryFilters(requestParameters?: FilterApiGetQueryFiltersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<QueryFilters, any>>;
|
|
234
222
|
/**
|
|
235
223
|
*
|
|
236
224
|
* @summary Gets legacy query filters.
|
|
@@ -239,5 +227,5 @@ export declare class FilterApi extends BaseAPI {
|
|
|
239
227
|
* @throws {RequiredError}
|
|
240
228
|
* @memberof FilterApi
|
|
241
229
|
*/
|
|
242
|
-
getQueryFiltersLegacy(requestParameters?: FilterApiGetQueryFiltersLegacyRequest, options?:
|
|
230
|
+
getQueryFiltersLegacy(requestParameters?: FilterApiGetQueryFiltersLegacyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<QueryFiltersLegacy, any>>;
|
|
243
231
|
}
|
|
@@ -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 */
|
|
@@ -37,7 +36,7 @@ const FilterApiAxiosParamCreator = function (configuration) {
|
|
|
37
36
|
* @param {*} [options] Override http request option.
|
|
38
37
|
* @throws {RequiredError}
|
|
39
38
|
*/
|
|
40
|
-
getQueryFilters:
|
|
39
|
+
getQueryFilters: async (userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options = {}) => {
|
|
41
40
|
const localVarPath = `/Items/Filters2`;
|
|
42
41
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
42
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -45,11 +44,11 @@ const FilterApiAxiosParamCreator = function (configuration) {
|
|
|
45
44
|
if (configuration) {
|
|
46
45
|
baseOptions = configuration.baseOptions;
|
|
47
46
|
}
|
|
48
|
-
const localVarRequestOptions =
|
|
47
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
49
48
|
const localVarHeaderParameter = {};
|
|
50
49
|
const localVarQueryParameter = {};
|
|
51
50
|
// authentication CustomAuthentication required
|
|
52
|
-
|
|
51
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
53
52
|
if (userId !== undefined) {
|
|
54
53
|
localVarQueryParameter['userId'] = userId;
|
|
55
54
|
}
|
|
@@ -82,12 +81,12 @@ const FilterApiAxiosParamCreator = function (configuration) {
|
|
|
82
81
|
}
|
|
83
82
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
84
83
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
85
|
-
localVarRequestOptions.headers =
|
|
84
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
86
85
|
return {
|
|
87
86
|
url: toPathString(localVarUrlObj),
|
|
88
87
|
options: localVarRequestOptions,
|
|
89
88
|
};
|
|
90
|
-
}
|
|
89
|
+
},
|
|
91
90
|
/**
|
|
92
91
|
*
|
|
93
92
|
* @summary Gets legacy query filters.
|
|
@@ -98,7 +97,7 @@ const FilterApiAxiosParamCreator = function (configuration) {
|
|
|
98
97
|
* @param {*} [options] Override http request option.
|
|
99
98
|
* @throws {RequiredError}
|
|
100
99
|
*/
|
|
101
|
-
getQueryFiltersLegacy:
|
|
100
|
+
getQueryFiltersLegacy: async (userId, parentId, includeItemTypes, mediaTypes, options = {}) => {
|
|
102
101
|
const localVarPath = `/Items/Filters`;
|
|
103
102
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
103
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -106,11 +105,11 @@ const FilterApiAxiosParamCreator = function (configuration) {
|
|
|
106
105
|
if (configuration) {
|
|
107
106
|
baseOptions = configuration.baseOptions;
|
|
108
107
|
}
|
|
109
|
-
const localVarRequestOptions =
|
|
108
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
110
109
|
const localVarHeaderParameter = {};
|
|
111
110
|
const localVarQueryParameter = {};
|
|
112
111
|
// authentication CustomAuthentication required
|
|
113
|
-
|
|
112
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
114
113
|
if (userId !== undefined) {
|
|
115
114
|
localVarQueryParameter['userId'] = userId;
|
|
116
115
|
}
|
|
@@ -125,12 +124,12 @@ const FilterApiAxiosParamCreator = function (configuration) {
|
|
|
125
124
|
}
|
|
126
125
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
127
126
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
128
|
-
localVarRequestOptions.headers =
|
|
127
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
129
128
|
return {
|
|
130
129
|
url: toPathString(localVarUrlObj),
|
|
131
130
|
options: localVarRequestOptions,
|
|
132
131
|
};
|
|
133
|
-
}
|
|
132
|
+
},
|
|
134
133
|
};
|
|
135
134
|
};
|
|
136
135
|
/**
|
|
@@ -156,11 +155,12 @@ const FilterApiFp = function (configuration) {
|
|
|
156
155
|
* @param {*} [options] Override http request option.
|
|
157
156
|
* @throws {RequiredError}
|
|
158
157
|
*/
|
|
159
|
-
getQueryFilters(userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options) {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
158
|
+
async getQueryFilters(userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options) {
|
|
159
|
+
var _a, _b, _c;
|
|
160
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getQueryFilters(userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options);
|
|
161
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
162
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FilterApi.getQueryFilters']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
163
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
164
164
|
},
|
|
165
165
|
/**
|
|
166
166
|
*
|
|
@@ -172,11 +172,12 @@ const FilterApiFp = function (configuration) {
|
|
|
172
172
|
* @param {*} [options] Override http request option.
|
|
173
173
|
* @throws {RequiredError}
|
|
174
174
|
*/
|
|
175
|
-
getQueryFiltersLegacy(userId, parentId, includeItemTypes, mediaTypes, options) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
175
|
+
async getQueryFiltersLegacy(userId, parentId, includeItemTypes, mediaTypes, options) {
|
|
176
|
+
var _a, _b, _c;
|
|
177
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getQueryFiltersLegacy(userId, parentId, includeItemTypes, mediaTypes, options);
|
|
178
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
179
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FilterApi.getQueryFiltersLegacy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
180
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
180
181
|
},
|
|
181
182
|
};
|
|
182
183
|
};
|
|
@@ -190,34 +191,22 @@ const FilterApiFactory = function (configuration, basePath, axios) {
|
|
|
190
191
|
/**
|
|
191
192
|
*
|
|
192
193
|
* @summary Gets query filters.
|
|
193
|
-
* @param {
|
|
194
|
-
* @param {string} [parentId] Optional. Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
195
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
196
|
-
* @param {boolean} [isAiring] Optional. Is item airing.
|
|
197
|
-
* @param {boolean} [isMovie] Optional. Is item movie.
|
|
198
|
-
* @param {boolean} [isSports] Optional. Is item sports.
|
|
199
|
-
* @param {boolean} [isKids] Optional. Is item kids.
|
|
200
|
-
* @param {boolean} [isNews] Optional. Is item news.
|
|
201
|
-
* @param {boolean} [isSeries] Optional. Is item series.
|
|
202
|
-
* @param {boolean} [recursive] Optional. Search recursive.
|
|
194
|
+
* @param {FilterApiGetQueryFiltersRequest} requestParameters Request parameters.
|
|
203
195
|
* @param {*} [options] Override http request option.
|
|
204
196
|
* @throws {RequiredError}
|
|
205
197
|
*/
|
|
206
|
-
getQueryFilters(
|
|
207
|
-
return localVarFp.getQueryFilters(userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options).then((request) => request(axios, basePath));
|
|
198
|
+
getQueryFilters(requestParameters = {}, options) {
|
|
199
|
+
return localVarFp.getQueryFilters(requestParameters.userId, requestParameters.parentId, requestParameters.includeItemTypes, requestParameters.isAiring, requestParameters.isMovie, requestParameters.isSports, requestParameters.isKids, requestParameters.isNews, requestParameters.isSeries, requestParameters.recursive, options).then((request) => request(axios, basePath));
|
|
208
200
|
},
|
|
209
201
|
/**
|
|
210
202
|
*
|
|
211
203
|
* @summary Gets legacy query filters.
|
|
212
|
-
* @param {
|
|
213
|
-
* @param {string} [parentId] Optional. Parent id.
|
|
214
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
215
|
-
* @param {Array<MediaType>} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited.
|
|
204
|
+
* @param {FilterApiGetQueryFiltersLegacyRequest} requestParameters Request parameters.
|
|
216
205
|
* @param {*} [options] Override http request option.
|
|
217
206
|
* @throws {RequiredError}
|
|
218
207
|
*/
|
|
219
|
-
getQueryFiltersLegacy(
|
|
220
|
-
return localVarFp.getQueryFiltersLegacy(userId, parentId, includeItemTypes, mediaTypes, options).then((request) => request(axios, basePath));
|
|
208
|
+
getQueryFiltersLegacy(requestParameters = {}, options) {
|
|
209
|
+
return localVarFp.getQueryFiltersLegacy(requestParameters.userId, requestParameters.parentId, requestParameters.includeItemTypes, requestParameters.mediaTypes, options).then((request) => request(axios, basePath));
|
|
221
210
|
},
|
|
222
211
|
};
|
|
223
212
|
};
|
|
@@ -8,16 +8,16 @@
|
|
|
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 { BaseItemDto } from '../models';
|
|
15
|
-
import { BaseItemDtoQueryResult } from '../models';
|
|
16
|
-
import { BaseItemKind } from '../models';
|
|
17
|
-
import { ImageType } from '../models';
|
|
18
|
-
import { ItemFields } from '../models';
|
|
19
|
-
import { ItemSortBy } from '../models';
|
|
20
|
-
import { SortOrder } 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 { BaseItemDto } from '../models';
|
|
15
|
+
import type { BaseItemDtoQueryResult } from '../models';
|
|
16
|
+
import type { BaseItemKind } from '../models';
|
|
17
|
+
import type { ImageType } from '../models';
|
|
18
|
+
import type { ItemFields } from '../models';
|
|
19
|
+
import type { ItemSortBy } from '../models';
|
|
20
|
+
import type { SortOrder } from '../models';
|
|
21
21
|
/**
|
|
22
22
|
* GenresApi - axios parameter creator
|
|
23
23
|
* @export
|
|
@@ -31,7 +31,7 @@ export declare const GenresApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
31
31
|
* @param {*} [options] Override http request option.
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
34
|
-
getGenre: (genreName: string, userId?: string, options?:
|
|
34
|
+
getGenre: (genreName: string, userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @summary Gets all genres from a given item, folder, or the entire library.
|
|
@@ -56,7 +56,7 @@ export declare const GenresApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
56
56
|
* @param {*} [options] Override http request option.
|
|
57
57
|
* @throws {RequiredError}
|
|
58
58
|
*/
|
|
59
|
-
getGenres: (startIndex?: number, limit?: number, searchTerm?: string, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, isFavorite?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, sortBy?: Array<ItemSortBy>, sortOrder?: Array<SortOrder>, enableImages?: boolean, enableTotalRecordCount?: boolean, options?:
|
|
59
|
+
getGenres: (startIndex?: number, limit?: number, searchTerm?: string, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, isFavorite?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, sortBy?: Array<ItemSortBy>, sortOrder?: Array<SortOrder>, enableImages?: boolean, enableTotalRecordCount?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
62
62
|
* GenresApi - functional programming interface
|
|
@@ -71,7 +71,7 @@ export declare const GenresApiFp: (configuration?: Configuration) => {
|
|
|
71
71
|
* @param {*} [options] Override http request option.
|
|
72
72
|
* @throws {RequiredError}
|
|
73
73
|
*/
|
|
74
|
-
getGenre(genreName: string, userId?: string, options?:
|
|
74
|
+
getGenre(genreName: string, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDto>>;
|
|
75
75
|
/**
|
|
76
76
|
*
|
|
77
77
|
* @summary Gets all genres from a given item, folder, or the entire library.
|
|
@@ -96,7 +96,7 @@ export declare const GenresApiFp: (configuration?: Configuration) => {
|
|
|
96
96
|
* @param {*} [options] Override http request option.
|
|
97
97
|
* @throws {RequiredError}
|
|
98
98
|
*/
|
|
99
|
-
getGenres(startIndex?: number, limit?: number, searchTerm?: string, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, isFavorite?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, sortBy?: Array<ItemSortBy>, sortOrder?: Array<SortOrder>, enableImages?: boolean, enableTotalRecordCount?: boolean, options?:
|
|
99
|
+
getGenres(startIndex?: number, limit?: number, searchTerm?: string, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, isFavorite?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, sortBy?: Array<ItemSortBy>, sortOrder?: Array<SortOrder>, enableImages?: boolean, enableTotalRecordCount?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDtoQueryResult>>;
|
|
100
100
|
};
|
|
101
101
|
/**
|
|
102
102
|
* GenresApi - factory interface
|
|
@@ -106,37 +106,19 @@ export declare const GenresApiFactory: (configuration?: Configuration, basePath?
|
|
|
106
106
|
/**
|
|
107
107
|
*
|
|
108
108
|
* @summary Gets a genre, by name.
|
|
109
|
-
* @param {
|
|
110
|
-
* @param {string} [userId] The user id.
|
|
109
|
+
* @param {GenresApiGetGenreRequest} requestParameters Request parameters.
|
|
111
110
|
* @param {*} [options] Override http request option.
|
|
112
111
|
* @throws {RequiredError}
|
|
113
112
|
*/
|
|
114
|
-
getGenre(
|
|
113
|
+
getGenre(requestParameters: GenresApiGetGenreRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDto>;
|
|
115
114
|
/**
|
|
116
115
|
*
|
|
117
116
|
* @summary Gets all genres from a given item, folder, or the entire library.
|
|
118
|
-
* @param {
|
|
119
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
120
|
-
* @param {string} [searchTerm] The search term.
|
|
121
|
-
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
122
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
123
|
-
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited.
|
|
124
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered in based on item type. This allows multiple, comma delimited.
|
|
125
|
-
* @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not.
|
|
126
|
-
* @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
|
|
127
|
-
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
128
|
-
* @param {string} [userId] User id.
|
|
129
|
-
* @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string.
|
|
130
|
-
* @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string.
|
|
131
|
-
* @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string.
|
|
132
|
-
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited.
|
|
133
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
134
|
-
* @param {boolean} [enableImages] Optional, include image information in output.
|
|
135
|
-
* @param {boolean} [enableTotalRecordCount] Optional. Include total record count.
|
|
117
|
+
* @param {GenresApiGetGenresRequest} requestParameters Request parameters.
|
|
136
118
|
* @param {*} [options] Override http request option.
|
|
137
119
|
* @throws {RequiredError}
|
|
138
120
|
*/
|
|
139
|
-
getGenres(
|
|
121
|
+
getGenres(requestParameters?: GenresApiGetGenresRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDtoQueryResult>;
|
|
140
122
|
};
|
|
141
123
|
/**
|
|
142
124
|
* Request parameters for getGenre operation in GenresApi.
|
|
@@ -287,7 +269,7 @@ export declare class GenresApi extends BaseAPI {
|
|
|
287
269
|
* @throws {RequiredError}
|
|
288
270
|
* @memberof GenresApi
|
|
289
271
|
*/
|
|
290
|
-
getGenre(requestParameters: GenresApiGetGenreRequest, options?:
|
|
272
|
+
getGenre(requestParameters: GenresApiGetGenreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDto, any>>;
|
|
291
273
|
/**
|
|
292
274
|
*
|
|
293
275
|
* @summary Gets all genres from a given item, folder, or the entire library.
|
|
@@ -296,5 +278,5 @@ export declare class GenresApi extends BaseAPI {
|
|
|
296
278
|
* @throws {RequiredError}
|
|
297
279
|
* @memberof GenresApi
|
|
298
280
|
*/
|
|
299
|
-
getGenres(requestParameters?: GenresApiGetGenresRequest, options?:
|
|
281
|
+
getGenres(requestParameters?: GenresApiGetGenresRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDtoQueryResult, any>>;
|
|
300
282
|
}
|
|
@@ -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, 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 */
|
|
@@ -29,7 +28,7 @@ const GenresApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
getGenre:
|
|
31
|
+
getGenre: async (genreName, userId, options = {}) => {
|
|
33
32
|
// verify required parameter 'genreName' is not null or undefined
|
|
34
33
|
assertParamExists('getGenre', 'genreName', genreName);
|
|
35
34
|
const localVarPath = `/Genres/{genreName}`
|
|
@@ -40,22 +39,22 @@ const GenresApiAxiosParamCreator = function (configuration) {
|
|
|
40
39
|
if (configuration) {
|
|
41
40
|
baseOptions = configuration.baseOptions;
|
|
42
41
|
}
|
|
43
|
-
const localVarRequestOptions =
|
|
42
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
44
43
|
const localVarHeaderParameter = {};
|
|
45
44
|
const localVarQueryParameter = {};
|
|
46
45
|
// authentication CustomAuthentication required
|
|
47
|
-
|
|
46
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
48
47
|
if (userId !== undefined) {
|
|
49
48
|
localVarQueryParameter['userId'] = userId;
|
|
50
49
|
}
|
|
51
50
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
52
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53
|
-
localVarRequestOptions.headers =
|
|
52
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
54
53
|
return {
|
|
55
54
|
url: toPathString(localVarUrlObj),
|
|
56
55
|
options: localVarRequestOptions,
|
|
57
56
|
};
|
|
58
|
-
}
|
|
57
|
+
},
|
|
59
58
|
/**
|
|
60
59
|
*
|
|
61
60
|
* @summary Gets all genres from a given item, folder, or the entire library.
|
|
@@ -80,7 +79,7 @@ const GenresApiAxiosParamCreator = function (configuration) {
|
|
|
80
79
|
* @param {*} [options] Override http request option.
|
|
81
80
|
* @throws {RequiredError}
|
|
82
81
|
*/
|
|
83
|
-
getGenres:
|
|
82
|
+
getGenres: async (startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options = {}) => {
|
|
84
83
|
const localVarPath = `/Genres`;
|
|
85
84
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
85
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -88,11 +87,11 @@ const GenresApiAxiosParamCreator = function (configuration) {
|
|
|
88
87
|
if (configuration) {
|
|
89
88
|
baseOptions = configuration.baseOptions;
|
|
90
89
|
}
|
|
91
|
-
const localVarRequestOptions =
|
|
90
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
92
91
|
const localVarHeaderParameter = {};
|
|
93
92
|
const localVarQueryParameter = {};
|
|
94
93
|
// authentication CustomAuthentication required
|
|
95
|
-
|
|
94
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
96
95
|
if (startIndex !== undefined) {
|
|
97
96
|
localVarQueryParameter['startIndex'] = startIndex;
|
|
98
97
|
}
|
|
@@ -149,12 +148,12 @@ const GenresApiAxiosParamCreator = function (configuration) {
|
|
|
149
148
|
}
|
|
150
149
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
151
150
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
152
|
-
localVarRequestOptions.headers =
|
|
151
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
153
152
|
return {
|
|
154
153
|
url: toPathString(localVarUrlObj),
|
|
155
154
|
options: localVarRequestOptions,
|
|
156
155
|
};
|
|
157
|
-
}
|
|
156
|
+
},
|
|
158
157
|
};
|
|
159
158
|
};
|
|
160
159
|
/**
|
|
@@ -172,11 +171,12 @@ const GenresApiFp = function (configuration) {
|
|
|
172
171
|
* @param {*} [options] Override http request option.
|
|
173
172
|
* @throws {RequiredError}
|
|
174
173
|
*/
|
|
175
|
-
getGenre(genreName, userId, options) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
174
|
+
async getGenre(genreName, userId, options) {
|
|
175
|
+
var _a, _b, _c;
|
|
176
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGenre(genreName, userId, options);
|
|
177
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
178
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GenresApi.getGenre']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
179
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
180
180
|
},
|
|
181
181
|
/**
|
|
182
182
|
*
|
|
@@ -202,11 +202,12 @@ const GenresApiFp = function (configuration) {
|
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
*/
|
|
205
|
-
getGenres(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
205
|
+
async getGenres(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options) {
|
|
206
|
+
var _a, _b, _c;
|
|
207
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGenres(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options);
|
|
208
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
209
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GenresApi.getGenres']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
210
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
210
211
|
},
|
|
211
212
|
};
|
|
212
213
|
};
|
|
@@ -220,40 +221,22 @@ const GenresApiFactory = function (configuration, basePath, axios) {
|
|
|
220
221
|
/**
|
|
221
222
|
*
|
|
222
223
|
* @summary Gets a genre, by name.
|
|
223
|
-
* @param {
|
|
224
|
-
* @param {string} [userId] The user id.
|
|
224
|
+
* @param {GenresApiGetGenreRequest} requestParameters Request parameters.
|
|
225
225
|
* @param {*} [options] Override http request option.
|
|
226
226
|
* @throws {RequiredError}
|
|
227
227
|
*/
|
|
228
|
-
getGenre(
|
|
229
|
-
return localVarFp.getGenre(genreName, userId, options).then((request) => request(axios, basePath));
|
|
228
|
+
getGenre(requestParameters, options) {
|
|
229
|
+
return localVarFp.getGenre(requestParameters.genreName, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
230
230
|
},
|
|
231
231
|
/**
|
|
232
232
|
*
|
|
233
233
|
* @summary Gets all genres from a given item, folder, or the entire library.
|
|
234
|
-
* @param {
|
|
235
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
236
|
-
* @param {string} [searchTerm] The search term.
|
|
237
|
-
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
238
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
239
|
-
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited.
|
|
240
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered in based on item type. This allows multiple, comma delimited.
|
|
241
|
-
* @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not.
|
|
242
|
-
* @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
|
|
243
|
-
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
244
|
-
* @param {string} [userId] User id.
|
|
245
|
-
* @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string.
|
|
246
|
-
* @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string.
|
|
247
|
-
* @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string.
|
|
248
|
-
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited.
|
|
249
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
250
|
-
* @param {boolean} [enableImages] Optional, include image information in output.
|
|
251
|
-
* @param {boolean} [enableTotalRecordCount] Optional. Include total record count.
|
|
234
|
+
* @param {GenresApiGetGenresRequest} requestParameters Request parameters.
|
|
252
235
|
* @param {*} [options] Override http request option.
|
|
253
236
|
* @throws {RequiredError}
|
|
254
237
|
*/
|
|
255
|
-
getGenres(
|
|
256
|
-
return localVarFp.getGenres(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options).then((request) => request(axios, basePath));
|
|
238
|
+
getGenres(requestParameters = {}, options) {
|
|
239
|
+
return localVarFp.getGenres(requestParameters.startIndex, requestParameters.limit, requestParameters.searchTerm, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.isFavorite, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.userId, requestParameters.nameStartsWithOrGreater, requestParameters.nameStartsWith, requestParameters.nameLessThan, requestParameters.sortBy, requestParameters.sortOrder, requestParameters.enableImages, requestParameters.enableTotalRecordCount, options).then((request) => request(axios, basePath));
|
|
257
240
|
},
|
|
258
241
|
};
|
|
259
242
|
};
|