@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,17 +8,17 @@
|
|
|
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 { MediaType } from '../models';
|
|
21
|
-
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 { MediaType } from '../models';
|
|
21
|
+
import type { SortOrder } from '../models';
|
|
22
22
|
/**
|
|
23
23
|
* YearsApi - axios parameter creator
|
|
24
24
|
* @export
|
|
@@ -32,7 +32,7 @@ export declare const YearsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
32
32
|
* @param {*} [options] Override http request option.
|
|
33
33
|
* @throws {RequiredError}
|
|
34
34
|
*/
|
|
35
|
-
getYear: (year: number, userId?: string, options?:
|
|
35
|
+
getYear: (year: number, userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @summary Get years.
|
|
@@ -54,7 +54,7 @@ export declare const YearsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
54
54
|
* @param {*} [options] Override http request option.
|
|
55
55
|
* @throws {RequiredError}
|
|
56
56
|
*/
|
|
57
|
-
getYears: (startIndex?: number, limit?: number, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, sortBy?: Array<ItemSortBy>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, recursive?: boolean, enableImages?: boolean, options?:
|
|
57
|
+
getYears: (startIndex?: number, limit?: number, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, sortBy?: Array<ItemSortBy>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, recursive?: boolean, enableImages?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
58
|
};
|
|
59
59
|
/**
|
|
60
60
|
* YearsApi - functional programming interface
|
|
@@ -69,7 +69,7 @@ export declare const YearsApiFp: (configuration?: Configuration) => {
|
|
|
69
69
|
* @param {*} [options] Override http request option.
|
|
70
70
|
* @throws {RequiredError}
|
|
71
71
|
*/
|
|
72
|
-
getYear(year: number, userId?: string, options?:
|
|
72
|
+
getYear(year: number, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDto>>;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @summary Get years.
|
|
@@ -91,7 +91,7 @@ export declare const YearsApiFp: (configuration?: Configuration) => {
|
|
|
91
91
|
* @param {*} [options] Override http request option.
|
|
92
92
|
* @throws {RequiredError}
|
|
93
93
|
*/
|
|
94
|
-
getYears(startIndex?: number, limit?: number, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, sortBy?: Array<ItemSortBy>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, recursive?: boolean, enableImages?: boolean, options?:
|
|
94
|
+
getYears(startIndex?: number, limit?: number, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, sortBy?: Array<ItemSortBy>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, recursive?: boolean, enableImages?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDtoQueryResult>>;
|
|
95
95
|
};
|
|
96
96
|
/**
|
|
97
97
|
* YearsApi - factory interface
|
|
@@ -101,34 +101,19 @@ export declare const YearsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @summary Gets a year.
|
|
104
|
-
* @param {
|
|
105
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
104
|
+
* @param {YearsApiGetYearRequest} requestParameters Request parameters.
|
|
106
105
|
* @param {*} [options] Override http request option.
|
|
107
106
|
* @throws {RequiredError}
|
|
108
107
|
*/
|
|
109
|
-
getYear(
|
|
108
|
+
getYear(requestParameters: YearsApiGetYearRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDto>;
|
|
110
109
|
/**
|
|
111
110
|
*
|
|
112
111
|
* @summary Get years.
|
|
113
|
-
* @param {
|
|
114
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
115
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
116
|
-
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
117
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
118
|
-
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be excluded based on item type. This allows multiple, comma delimited.
|
|
119
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be included based on item type. This allows multiple, comma delimited.
|
|
120
|
-
* @param {Array<MediaType>} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited.
|
|
121
|
-
* @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.
|
|
122
|
-
* @param {boolean} [enableUserData] Optional. Include user data.
|
|
123
|
-
* @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
|
|
124
|
-
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
125
|
-
* @param {string} [userId] User Id.
|
|
126
|
-
* @param {boolean} [recursive] Search recursively.
|
|
127
|
-
* @param {boolean} [enableImages] Optional. Include image information in output.
|
|
112
|
+
* @param {YearsApiGetYearsRequest} requestParameters Request parameters.
|
|
128
113
|
* @param {*} [options] Override http request option.
|
|
129
114
|
* @throws {RequiredError}
|
|
130
115
|
*/
|
|
131
|
-
getYears(
|
|
116
|
+
getYears(requestParameters?: YearsApiGetYearsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDtoQueryResult>;
|
|
132
117
|
};
|
|
133
118
|
/**
|
|
134
119
|
* Request parameters for getYear operation in YearsApi.
|
|
@@ -261,7 +246,7 @@ export declare class YearsApi extends BaseAPI {
|
|
|
261
246
|
* @throws {RequiredError}
|
|
262
247
|
* @memberof YearsApi
|
|
263
248
|
*/
|
|
264
|
-
getYear(requestParameters: YearsApiGetYearRequest, options?:
|
|
249
|
+
getYear(requestParameters: YearsApiGetYearRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDto, any>>;
|
|
265
250
|
/**
|
|
266
251
|
*
|
|
267
252
|
* @summary Get years.
|
|
@@ -270,5 +255,5 @@ export declare class YearsApi extends BaseAPI {
|
|
|
270
255
|
* @throws {RequiredError}
|
|
271
256
|
* @memberof YearsApi
|
|
272
257
|
*/
|
|
273
|
-
getYears(requestParameters?: YearsApiGetYearsRequest, options?:
|
|
258
|
+
getYears(requestParameters?: YearsApiGetYearsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDtoQueryResult, any>>;
|
|
274
259
|
}
|
|
@@ -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 YearsApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
getYear:
|
|
31
|
+
getYear: async (year, userId, options = {}) => {
|
|
33
32
|
// verify required parameter 'year' is not null or undefined
|
|
34
33
|
assertParamExists('getYear', 'year', year);
|
|
35
34
|
const localVarPath = `/Years/{year}`
|
|
@@ -40,22 +39,22 @@ const YearsApiAxiosParamCreator = 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 Get years.
|
|
@@ -77,7 +76,7 @@ const YearsApiAxiosParamCreator = function (configuration) {
|
|
|
77
76
|
* @param {*} [options] Override http request option.
|
|
78
77
|
* @throws {RequiredError}
|
|
79
78
|
*/
|
|
80
|
-
getYears:
|
|
79
|
+
getYears: async (startIndex, limit, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, mediaTypes, sortBy, enableUserData, imageTypeLimit, enableImageTypes, userId, recursive, enableImages, options = {}) => {
|
|
81
80
|
const localVarPath = `/Years`;
|
|
82
81
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
82
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -85,11 +84,11 @@ const YearsApiAxiosParamCreator = function (configuration) {
|
|
|
85
84
|
if (configuration) {
|
|
86
85
|
baseOptions = configuration.baseOptions;
|
|
87
86
|
}
|
|
88
|
-
const localVarRequestOptions =
|
|
87
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
89
88
|
const localVarHeaderParameter = {};
|
|
90
89
|
const localVarQueryParameter = {};
|
|
91
90
|
// authentication CustomAuthentication required
|
|
92
|
-
|
|
91
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
93
92
|
if (startIndex !== undefined) {
|
|
94
93
|
localVarQueryParameter['startIndex'] = startIndex;
|
|
95
94
|
}
|
|
@@ -137,12 +136,12 @@ const YearsApiAxiosParamCreator = function (configuration) {
|
|
|
137
136
|
}
|
|
138
137
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
139
138
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
140
|
-
localVarRequestOptions.headers =
|
|
139
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
141
140
|
return {
|
|
142
141
|
url: toPathString(localVarUrlObj),
|
|
143
142
|
options: localVarRequestOptions,
|
|
144
143
|
};
|
|
145
|
-
}
|
|
144
|
+
},
|
|
146
145
|
};
|
|
147
146
|
};
|
|
148
147
|
/**
|
|
@@ -160,11 +159,12 @@ const YearsApiFp = function (configuration) {
|
|
|
160
159
|
* @param {*} [options] Override http request option.
|
|
161
160
|
* @throws {RequiredError}
|
|
162
161
|
*/
|
|
163
|
-
getYear(year, userId, options) {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
162
|
+
async getYear(year, userId, options) {
|
|
163
|
+
var _a, _b, _c;
|
|
164
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getYear(year, userId, options);
|
|
165
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
166
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['YearsApi.getYear']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
167
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
168
168
|
},
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
@@ -187,11 +187,12 @@ const YearsApiFp = function (configuration) {
|
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
*/
|
|
190
|
-
getYears(startIndex, limit, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, mediaTypes, sortBy, enableUserData, imageTypeLimit, enableImageTypes, userId, recursive, enableImages, options) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
async getYears(startIndex, limit, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, mediaTypes, sortBy, enableUserData, imageTypeLimit, enableImageTypes, userId, recursive, enableImages, options) {
|
|
191
|
+
var _a, _b, _c;
|
|
192
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getYears(startIndex, limit, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, mediaTypes, sortBy, enableUserData, imageTypeLimit, enableImageTypes, userId, recursive, enableImages, options);
|
|
193
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
194
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['YearsApi.getYears']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
195
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
195
196
|
},
|
|
196
197
|
};
|
|
197
198
|
};
|
|
@@ -205,37 +206,22 @@ const YearsApiFactory = function (configuration, basePath, axios) {
|
|
|
205
206
|
/**
|
|
206
207
|
*
|
|
207
208
|
* @summary Gets a year.
|
|
208
|
-
* @param {
|
|
209
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
209
|
+
* @param {YearsApiGetYearRequest} requestParameters Request parameters.
|
|
210
210
|
* @param {*} [options] Override http request option.
|
|
211
211
|
* @throws {RequiredError}
|
|
212
212
|
*/
|
|
213
|
-
getYear(
|
|
214
|
-
return localVarFp.getYear(year, userId, options).then((request) => request(axios, basePath));
|
|
213
|
+
getYear(requestParameters, options) {
|
|
214
|
+
return localVarFp.getYear(requestParameters.year, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
215
215
|
},
|
|
216
216
|
/**
|
|
217
217
|
*
|
|
218
218
|
* @summary Get years.
|
|
219
|
-
* @param {
|
|
220
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
221
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
222
|
-
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
223
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
224
|
-
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be excluded based on item type. This allows multiple, comma delimited.
|
|
225
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be included based on item type. This allows multiple, comma delimited.
|
|
226
|
-
* @param {Array<MediaType>} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited.
|
|
227
|
-
* @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.
|
|
228
|
-
* @param {boolean} [enableUserData] Optional. Include user data.
|
|
229
|
-
* @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
|
|
230
|
-
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
231
|
-
* @param {string} [userId] User Id.
|
|
232
|
-
* @param {boolean} [recursive] Search recursively.
|
|
233
|
-
* @param {boolean} [enableImages] Optional. Include image information in output.
|
|
219
|
+
* @param {YearsApiGetYearsRequest} requestParameters Request parameters.
|
|
234
220
|
* @param {*} [options] Override http request option.
|
|
235
221
|
* @throws {RequiredError}
|
|
236
222
|
*/
|
|
237
|
-
getYears(
|
|
238
|
-
return localVarFp.getYears(startIndex, limit, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, mediaTypes, sortBy, enableUserData, imageTypeLimit, enableImageTypes, userId, recursive, enableImages, options).then((request) => request(axios, basePath));
|
|
223
|
+
getYears(requestParameters = {}, options) {
|
|
224
|
+
return localVarFp.getYears(requestParameters.startIndex, requestParameters.limit, requestParameters.sortOrder, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.mediaTypes, requestParameters.sortBy, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.userId, requestParameters.recursive, requestParameters.enableImages, options).then((request) => request(axios, basePath));
|
|
239
225
|
},
|
|
240
226
|
};
|
|
241
227
|
};
|
|
@@ -37,6 +37,7 @@ export * from './api/live-tv-api';
|
|
|
37
37
|
export * from './api/localization-api';
|
|
38
38
|
export * from './api/lyrics-api';
|
|
39
39
|
export * from './api/media-info-api';
|
|
40
|
+
export * from './api/media-segments-api';
|
|
40
41
|
export * from './api/movies-api';
|
|
41
42
|
export * from './api/music-genres-api';
|
|
42
43
|
export * from './api/package-api';
|
|
@@ -8,8 +8,8 @@
|
|
|
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 { Configuration } from
|
|
12
|
-
import { AxiosInstance,
|
|
11
|
+
import type { Configuration } from './configuration';
|
|
12
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
13
|
export declare const BASE_PATH: string;
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -28,7 +28,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
28
28
|
*/
|
|
29
29
|
export interface RequestArgs {
|
|
30
30
|
url: string;
|
|
31
|
-
options:
|
|
31
|
+
options: RawAxiosRequestConfig;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
@@ -49,6 +49,17 @@ export declare class BaseAPI {
|
|
|
49
49
|
*/
|
|
50
50
|
export declare class RequiredError extends Error {
|
|
51
51
|
field: string;
|
|
52
|
-
name: "RequiredError";
|
|
53
52
|
constructor(field: string, msg?: string);
|
|
54
53
|
}
|
|
54
|
+
interface ServerMap {
|
|
55
|
+
[key: string]: {
|
|
56
|
+
url: string;
|
|
57
|
+
description: string;
|
|
58
|
+
}[];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const operationServerMap: ServerMap;
|
|
65
|
+
export {};
|
|
@@ -12,8 +12,6 @@ import globalAxios from 'axios';
|
|
|
12
12
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
13
13
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
14
14
|
*/
|
|
15
|
-
// Some imports not used depending on template conditions
|
|
16
|
-
// @ts-ignore
|
|
17
15
|
const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
18
16
|
/**
|
|
19
17
|
*
|
|
@@ -22,11 +20,12 @@ const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
|
22
20
|
*/
|
|
23
21
|
class BaseAPI {
|
|
24
22
|
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
23
|
+
var _a;
|
|
25
24
|
this.basePath = basePath;
|
|
26
25
|
this.axios = axios;
|
|
27
26
|
if (configuration) {
|
|
28
27
|
this.configuration = configuration;
|
|
29
|
-
this.basePath = configuration.basePath
|
|
28
|
+
this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
}
|
|
@@ -43,5 +42,10 @@ class RequiredError extends Error {
|
|
|
43
42
|
this.name = "RequiredError";
|
|
44
43
|
}
|
|
45
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
const operationServerMap = {};
|
|
46
50
|
|
|
47
|
-
export { BASE_PATH, BaseAPI, RequiredError };
|
|
51
|
+
export { BASE_PATH, BaseAPI, RequiredError, operationServerMap };
|
|
@@ -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 { Configuration } from "./configuration";
|
|
12
|
-
import { RequestArgs } from "./base";
|
|
13
|
-
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
11
|
+
import type { Configuration } from "./configuration";
|
|
12
|
+
import type { RequestArgs } from "./base";
|
|
13
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import { RequiredError } from './base.js';
|
|
3
2
|
|
|
4
3
|
/* tslint:disable */
|
|
@@ -32,35 +31,41 @@ const assertParamExists = function (functionName, paramName, paramValue) {
|
|
|
32
31
|
*
|
|
33
32
|
* @export
|
|
34
33
|
*/
|
|
35
|
-
const setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
});
|
|
34
|
+
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
35
|
+
if (configuration && configuration.apiKey) {
|
|
36
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
37
|
+
? await configuration.apiKey(keyParamName)
|
|
38
|
+
: await configuration.apiKey;
|
|
39
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
40
|
+
}
|
|
44
41
|
};
|
|
42
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
43
|
+
if (parameter == null)
|
|
44
|
+
return;
|
|
45
|
+
if (typeof parameter === "object") {
|
|
46
|
+
if (Array.isArray(parameter)) {
|
|
47
|
+
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
if (urlSearchParams.has(key)) {
|
|
55
|
+
urlSearchParams.append(key, parameter);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
urlSearchParams.set(key, parameter);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
45
62
|
/**
|
|
46
63
|
*
|
|
47
64
|
* @export
|
|
48
65
|
*/
|
|
49
66
|
const setSearchParams = function (url, ...objects) {
|
|
50
67
|
const searchParams = new URLSearchParams(url.search);
|
|
51
|
-
|
|
52
|
-
for (const key in object) {
|
|
53
|
-
if (Array.isArray(object[key])) {
|
|
54
|
-
searchParams.delete(key);
|
|
55
|
-
for (const item of object[key]) {
|
|
56
|
-
searchParams.append(key, item);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
searchParams.set(key, object[key]);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
68
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
64
69
|
url.search = searchParams.toString();
|
|
65
70
|
};
|
|
66
71
|
/**
|
|
@@ -89,7 +94,8 @@ const toPathString = function (url) {
|
|
|
89
94
|
*/
|
|
90
95
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
91
96
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
92
|
-
|
|
97
|
+
var _a;
|
|
98
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url };
|
|
93
99
|
return axios.request(axiosRequestArgs);
|
|
94
100
|
};
|
|
95
101
|
};
|
|
@@ -14,6 +14,7 @@ export interface ConfigurationParameters {
|
|
|
14
14
|
password?: string;
|
|
15
15
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
16
16
|
basePath?: string;
|
|
17
|
+
serverIndex?: number;
|
|
17
18
|
baseOptions?: any;
|
|
18
19
|
formDataCtor?: new () => any;
|
|
19
20
|
}
|
|
@@ -52,6 +53,13 @@ export declare class Configuration {
|
|
|
52
53
|
* @memberof Configuration
|
|
53
54
|
*/
|
|
54
55
|
basePath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* override server index
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof Configuration
|
|
61
|
+
*/
|
|
62
|
+
serverIndex?: number;
|
|
55
63
|
/**
|
|
56
64
|
* base options for axios calls
|
|
57
65
|
*
|
|
@@ -17,6 +17,7 @@ class Configuration {
|
|
|
17
17
|
this.password = param.password;
|
|
18
18
|
this.accessToken = param.accessToken;
|
|
19
19
|
this.basePath = param.basePath;
|
|
20
|
+
this.serverIndex = param.serverIndex;
|
|
20
21
|
this.baseOptions = param.baseOptions;
|
|
21
22
|
this.formDataCtor = param.formDataCtor;
|
|
22
23
|
}
|
|
@@ -27,6 +27,7 @@ export { LiveTvApi, LiveTvApiAxiosParamCreator, LiveTvApiFactory, LiveTvApiFp }
|
|
|
27
27
|
export { LocalizationApi, LocalizationApiAxiosParamCreator, LocalizationApiFactory, LocalizationApiFp } from './api/localization-api.js';
|
|
28
28
|
export { LyricsApi, LyricsApiAxiosParamCreator, LyricsApiFactory, LyricsApiFp } from './api/lyrics-api.js';
|
|
29
29
|
export { MediaInfoApi, MediaInfoApiAxiosParamCreator, MediaInfoApiFactory, MediaInfoApiFp } from './api/media-info-api.js';
|
|
30
|
+
export { MediaSegmentsApi, MediaSegmentsApiAxiosParamCreator, MediaSegmentsApiFactory, MediaSegmentsApiFp } from './api/media-segments-api.js';
|
|
30
31
|
export { MoviesApi, MoviesApiAxiosParamCreator, MoviesApiFactory, MoviesApiFp } from './api/movies-api.js';
|
|
31
32
|
export { MusicGenresApi, MusicGenresApiAxiosParamCreator, MusicGenresApiFactory, MusicGenresApiFp } from './api/music-genres-api.js';
|
|
32
33
|
export { PackageApi, PackageApiAxiosParamCreator, PackageApiFactory, PackageApiFp } from './api/package-api.js';
|
|
@@ -69,10 +70,12 @@ export { CollectionType } from './models/collection-type.js';
|
|
|
69
70
|
export { CollectionTypeOptions } from './models/collection-type-options.js';
|
|
70
71
|
export { DayOfWeek } from './models/day-of-week.js';
|
|
71
72
|
export { DayPattern } from './models/day-pattern.js';
|
|
73
|
+
export { DeinterlaceMethod } from './models/deinterlace-method.js';
|
|
72
74
|
export { DlnaProfileType } from './models/dlna-profile-type.js';
|
|
73
75
|
export { DownMixStereoAlgorithms } from './models/down-mix-stereo-algorithms.js';
|
|
74
76
|
export { DynamicDayOfWeek } from './models/dynamic-day-of-week.js';
|
|
75
77
|
export { EmbeddedSubtitleOptions } from './models/embedded-subtitle-options.js';
|
|
78
|
+
export { EncoderPreset } from './models/encoder-preset.js';
|
|
76
79
|
export { EncodingContext } from './models/encoding-context.js';
|
|
77
80
|
export { ExternalIdMediaType } from './models/external-id-media-type.js';
|
|
78
81
|
export { ExtraType } from './models/extra-type.js';
|
|
@@ -84,7 +87,7 @@ export { GroupRepeatMode } from './models/group-repeat-mode.js';
|
|
|
84
87
|
export { GroupShuffleMode } from './models/group-shuffle-mode.js';
|
|
85
88
|
export { GroupStateType } from './models/group-state-type.js';
|
|
86
89
|
export { GroupUpdateType } from './models/group-update-type.js';
|
|
87
|
-
export {
|
|
90
|
+
export { HardwareAccelerationType } from './models/hardware-acceleration-type.js';
|
|
88
91
|
export { ImageFormat } from './models/image-format.js';
|
|
89
92
|
export { ImageOrientation } from './models/image-orientation.js';
|
|
90
93
|
export { ImageResolution } from './models/image-resolution.js';
|
|
@@ -99,6 +102,7 @@ export { LiveTvServiceStatus } from './models/live-tv-service-status.js';
|
|
|
99
102
|
export { LocationType } from './models/location-type.js';
|
|
100
103
|
export { LogLevel } from './models/log-level.js';
|
|
101
104
|
export { MediaProtocol } from './models/media-protocol.js';
|
|
105
|
+
export { MediaSegmentType } from './models/media-segment-type.js';
|
|
102
106
|
export { MediaSourceType } from './models/media-source-type.js';
|
|
103
107
|
export { MediaStreamProtocol } from './models/media-stream-protocol.js';
|
|
104
108
|
export { MediaStreamType } from './models/media-stream-type.js';
|
|
@@ -133,6 +137,9 @@ export { SubtitlePlaybackMode } from './models/subtitle-playback-mode.js';
|
|
|
133
137
|
export { SyncPlayUserAccessType } from './models/sync-play-user-access-type.js';
|
|
134
138
|
export { TaskCompletionStatus } from './models/task-completion-status.js';
|
|
135
139
|
export { TaskState } from './models/task-state.js';
|
|
140
|
+
export { TonemappingAlgorithm } from './models/tonemapping-algorithm.js';
|
|
141
|
+
export { TonemappingMode } from './models/tonemapping-mode.js';
|
|
142
|
+
export { TonemappingRange } from './models/tonemapping-range.js';
|
|
136
143
|
export { TranscodeReason } from './models/transcode-reason.js';
|
|
137
144
|
export { TranscodeSeekInfo } from './models/transcode-seek-info.js';
|
|
138
145
|
export { TranscodingInfoTranscodeReasonsEnum } from './models/transcoding-info.js';
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { DynamicDayOfWeek } from './dynamic-day-of-week';
|
|
11
|
+
import type { DynamicDayOfWeek } from './dynamic-day-of-week';
|
|
12
12
|
/**
|
|
13
13
|
* An entity representing a user\'s access schedule.
|
|
14
14
|
* @export
|
|
@@ -8,8 +8,8 @@
|
|
|
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 { ActivityLogEntry } from './activity-log-entry';
|
|
12
|
-
import { SessionMessageType } from './session-message-type';
|
|
11
|
+
import type { ActivityLogEntry } from './activity-log-entry';
|
|
12
|
+
import type { SessionMessageType } from './session-message-type';
|
|
13
13
|
/**
|
|
14
14
|
* Activity log created message.
|
|
15
15
|
* @export
|
|
@@ -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 { ActivityLogEntry } from './activity-log-entry';
|
|
11
|
+
import type { ActivityLogEntry } from './activity-log-entry';
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Query result container.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface ActivityLogEntryQueryResult
|
|
16
16
|
*/
|
|
@@ -20,7 +20,7 @@ export interface ActivityLogEntryQueryResult {
|
|
|
20
20
|
* @type {Array<ActivityLogEntry>}
|
|
21
21
|
* @memberof ActivityLogEntryQueryResult
|
|
22
22
|
*/
|
|
23
|
-
'Items'?: Array<ActivityLogEntry
|
|
23
|
+
'Items'?: Array<ActivityLogEntry>;
|
|
24
24
|
/**
|
|
25
25
|
* Gets or sets the total number of records available.
|
|
26
26
|
* @type {number}
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { SessionMessageType } from './session-message-type';
|
|
11
|
+
import type { SessionMessageType } from './session-message-type';
|
|
12
12
|
/**
|
|
13
13
|
* Activity log entry start message. Data is the timing data encoded as \"$initialDelay,$interval\" in ms.
|
|
14
14
|
* @export
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { SessionMessageType } from './session-message-type';
|
|
11
|
+
import type { SessionMessageType } from './session-message-type';
|
|
12
12
|
/**
|
|
13
13
|
* Activity log entry stop message.
|
|
14
14
|
* @export
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { LogLevel } from './log-level';
|
|
11
|
+
import type { LogLevel } from './log-level';
|
|
12
12
|
/**
|
|
13
13
|
* An activity log entry.
|
|
14
14
|
* @export
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { LibraryOptions } from './library-options';
|
|
11
|
+
import type { LibraryOptions } from './library-options';
|
|
12
12
|
/**
|
|
13
13
|
* Add virtual folder dto.
|
|
14
14
|
* @export
|