@jellyfin/sdk 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/lib/api.d.ts +0 -11
- package/lib/api.js +0 -14
- package/lib/generated-client/api/activity-log-api.d.ts +9 -12
- package/lib/generated-client/api/activity-log-api.js +8 -8
- package/lib/generated-client/api/api-key-api.d.ts +18 -18
- package/lib/generated-client/api/api-key-api.js +19 -10
- package/lib/generated-client/api/artists-api.d.ts +27 -90
- package/lib/generated-client/api/artists-api.js +22 -76
- package/lib/generated-client/api/audio-api.d.ts +81 -249
- package/lib/generated-client/api/audio-api.js +93 -245
- package/lib/generated-client/api/branding-api.d.ts +16 -16
- package/lib/generated-client/api/branding-api.js +13 -4
- package/lib/generated-client/api/channels-api.d.ts +33 -51
- package/lib/generated-client/api/channels-api.js +33 -36
- package/lib/generated-client/api/client-log-api.d.ts +13 -13
- package/lib/generated-client/api/client-log-api.js +10 -7
- package/lib/generated-client/api/collection-api.d.ts +19 -24
- package/lib/generated-client/api/collection-api.js +22 -18
- package/lib/generated-client/api/configuration-api.d.ts +28 -29
- package/lib/generated-client/api/configuration-api.js +30 -16
- package/lib/generated-client/api/dashboard-api.d.ts +14 -14
- package/lib/generated-client/api/dashboard-api.js +15 -9
- package/lib/generated-client/api/devices-api.d.ts +31 -33
- package/lib/generated-client/api/devices-api.js +36 -22
- package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
- package/lib/generated-client/api/display-preferences-api.js +15 -14
- package/lib/generated-client/api/dynamic-hls-api.d.ts +246 -607
- package/lib/generated-client/api/dynamic-hls-api.js +233 -573
- package/lib/generated-client/api/environment-api.d.ts +33 -35
- package/lib/generated-client/api/environment-api.js +34 -18
- package/lib/generated-client/api/filter-api.d.ts +17 -29
- package/lib/generated-client/api/filter-api.js +15 -21
- package/lib/generated-client/api/genres-api.d.ts +20 -38
- package/lib/generated-client/api/genres-api.js +15 -27
- package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
- package/lib/generated-client/api/hls-segment-api.js +36 -28
- package/lib/generated-client/api/image-api.d.ts +206 -644
- package/lib/generated-client/api/image-api.js +269 -596
- package/lib/generated-client/api/instant-mix-api.d.ts +46 -102
- package/lib/generated-client/api/instant-mix-api.js +57 -89
- package/lib/generated-client/api/item-lookup-api.d.ts +69 -71
- package/lib/generated-client/api/item-lookup-api.js +78 -47
- package/lib/generated-client/api/item-refresh-api.d.ts +9 -13
- package/lib/generated-client/api/item-refresh-api.js +8 -9
- package/lib/generated-client/api/item-update-api.d.ts +20 -22
- package/lib/generated-client/api/item-update-api.js +22 -15
- package/lib/generated-client/api/items-api.d.ts +44 -137
- package/lib/generated-client/api/items-api.js +38 -122
- package/lib/generated-client/api/library-api.d.ts +185 -170
- package/lib/generated-client/api/library-api.js +212 -142
- package/lib/generated-client/api/library-structure-api.d.ts +48 -58
- package/lib/generated-client/api/library-structure-api.js +54 -40
- package/lib/generated-client/api/live-tv-api.d.ts +224 -332
- package/lib/generated-client/api/live-tv-api.js +273 -258
- package/lib/generated-client/api/localization-api.d.ts +23 -23
- package/lib/generated-client/api/localization-api.js +17 -5
- package/lib/generated-client/api/lyrics-api.d.ts +39 -42
- package/lib/generated-client/api/lyrics-api.js +45 -30
- package/lib/generated-client/api/media-info-api.d.ts +40 -59
- package/lib/generated-client/api/media-info-api.js +45 -52
- package/lib/generated-client/api/media-segments-api.d.ts +95 -0
- package/lib/generated-client/api/media-segments-api.js +123 -0
- package/lib/generated-client/api/movies-api.d.ts +10 -14
- package/lib/generated-client/api/movies-api.js +8 -9
- package/lib/generated-client/api/music-genres-api.d.ts +20 -38
- package/lib/generated-client/api/music-genres-api.js +15 -27
- package/lib/generated-client/api/package-api.d.ts +33 -37
- package/lib/generated-client/api/package-api.js +37 -23
- package/lib/generated-client/api/persons-api.d.ts +18 -31
- package/lib/generated-client/api/persons-api.js +15 -22
- package/lib/generated-client/api/playlists-api.d.ts +109 -84
- package/lib/generated-client/api/playlists-api.js +137 -63
- package/lib/generated-client/api/playstate-api.d.ts +54 -80
- package/lib/generated-client/api/playstate-api.js +64 -63
- package/lib/generated-client/api/plugins-api.d.ts +48 -52
- package/lib/generated-client/api/plugins-api.js +61 -38
- package/lib/generated-client/api/quick-connect-api.d.ts +22 -23
- package/lib/generated-client/api/quick-connect-api.js +23 -12
- package/lib/generated-client/api/remote-image-api.d.ts +21 -28
- package/lib/generated-client/api/remote-image-api.js +22 -20
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +30 -32
- package/lib/generated-client/api/scheduled-tasks-api.js +36 -23
- package/lib/generated-client/api/search-api.d.ts +11 -28
- package/lib/generated-client/api/search-api.js +8 -22
- package/lib/generated-client/api/session-api.d.ts +90 -117
- package/lib/generated-client/api/session-api.js +104 -83
- package/lib/generated-client/api/startup-api.d.ts +37 -37
- package/lib/generated-client/api/startup-api.js +38 -17
- package/lib/generated-client/api/studios-api.d.ts +18 -35
- package/lib/generated-client/api/studios-api.js +15 -26
- package/lib/generated-client/api/subtitle-api.d.ts +55 -86
- package/lib/generated-client/api/subtitle-api.js +68 -69
- package/lib/generated-client/api/suggestions-api.d.ts +11 -16
- package/lib/generated-client/api/suggestions-api.js +8 -10
- package/lib/generated-client/api/sync-play-api.d.ts +120 -120
- package/lib/generated-client/api/sync-play-api.js +133 -70
- package/lib/generated-client/api/system-api.d.ts +49 -49
- package/lib/generated-client/api/system-api.js +44 -14
- package/lib/generated-client/api/time-sync-api.d.ts +8 -8
- package/lib/generated-client/api/time-sync-api.js +5 -2
- package/lib/generated-client/api/tmdb-api.d.ts +8 -8
- package/lib/generated-client/api/tmdb-api.js +5 -2
- package/lib/generated-client/api/trailers-api.d.ts +19 -102
- package/lib/generated-client/api/trailers-api.js +8 -88
- package/lib/generated-client/api/trickplay-api.d.ts +13 -18
- package/lib/generated-client/api/trickplay-api.js +15 -14
- package/lib/generated-client/api/tv-shows-api.d.ts +27 -72
- package/lib/generated-client/api/tv-shows-api.js +29 -62
- package/lib/generated-client/api/universal-audio-api.d.ts +30 -48
- package/lib/generated-client/api/universal-audio-api.js +33 -51
- package/lib/generated-client/api/user-api.d.ts +83 -88
- package/lib/generated-client/api/user-api.js +93 -56
- package/lib/generated-client/api/user-library-api.d.ts +59 -78
- package/lib/generated-client/api/user-library-api.js +71 -60
- package/lib/generated-client/api/user-views-api.d.ts +16 -19
- package/lib/generated-client/api/user-views-api.js +15 -12
- package/lib/generated-client/api/video-attachments-api.d.ts +8 -10
- package/lib/generated-client/api/video-attachments-api.js +8 -7
- package/lib/generated-client/api/videos-api.d.ts +97 -274
- package/lib/generated-client/api/videos-api.js +114 -266
- package/lib/generated-client/api/years-api.d.ts +21 -36
- package/lib/generated-client/api/years-api.js +15 -24
- package/lib/generated-client/api.d.ts +1 -0
- package/lib/generated-client/base.d.ts +15 -4
- package/lib/generated-client/base.js +8 -4
- package/lib/generated-client/common.d.ts +3 -3
- package/lib/generated-client/common.js +23 -14
- package/lib/generated-client/configuration.d.ts +8 -0
- package/lib/generated-client/configuration.js +1 -0
- package/lib/generated-client/index.js +8 -1
- package/lib/generated-client/models/access-schedule.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-message.d.ts +2 -2
- package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
- package/lib/generated-client/models/activity-log-entry-start-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry.d.ts +1 -1
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
- package/lib/generated-client/models/album-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/album-info.d.ts +5 -5
- package/lib/generated-client/models/all-theme-media-result.d.ts +1 -1
- package/lib/generated-client/models/artist-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/artist-info.d.ts +3 -3
- package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
- package/lib/generated-client/models/authentication-result.d.ts +7 -7
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/base-item-dto.d.ts +26 -26
- package/lib/generated-client/models/base-item-person.d.ts +2 -2
- package/lib/generated-client/models/book-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/book-info.d.ts +2 -2
- package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/box-set-info.d.ts +2 -2
- package/lib/generated-client/models/channel-features.d.ts +3 -3
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +3 -3
- package/lib/generated-client/models/client-capabilities-dto.d.ts +3 -17
- package/lib/generated-client/models/client-capabilities.d.ts +3 -3
- package/lib/generated-client/models/codec-profile.d.ts +15 -9
- package/lib/generated-client/models/container-profile.d.ts +12 -6
- package/lib/generated-client/models/create-playlist-dto.d.ts +2 -2
- package/lib/generated-client/models/deinterlace-method.d.ts +20 -0
- package/lib/generated-client/models/{hardware-encoding-type.js → deinterlace-method.js} +5 -10
- package/lib/generated-client/models/device-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/device-info-dto.d.ts +84 -0
- package/lib/generated-client/models/device-info-query-result.d.ts +1 -1
- package/lib/generated-client/models/device-info.d.ts +1 -1
- package/lib/generated-client/models/device-profile.d.ts +8 -8
- package/lib/generated-client/models/direct-play-profile.d.ts +6 -6
- package/lib/generated-client/models/display-preferences-dto.d.ts +4 -4
- package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +3 -1
- package/lib/generated-client/models/down-mix-stereo-algorithms.js +4 -2
- package/lib/generated-client/models/encoder-preset.d.ts +29 -0
- package/lib/generated-client/models/encoder-preset.js +32 -0
- package/lib/generated-client/models/encoding-options.d.ts +43 -19
- package/lib/generated-client/models/external-id-info.d.ts +2 -1
- package/lib/generated-client/models/file-system-entry-info.d.ts +1 -1
- package/lib/generated-client/models/force-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/forgot-password-result.d.ts +1 -1
- package/lib/generated-client/models/general-command-message.d.ts +2 -2
- package/lib/generated-client/models/general-command.d.ts +3 -3
- package/lib/generated-client/models/get-programs-dto.d.ts +34 -34
- package/lib/generated-client/models/group-info-dto-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-info-dto.d.ts +1 -1
- package/lib/generated-client/models/group-state-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-state-update.d.ts +2 -2
- package/lib/generated-client/models/group-update.d.ts +23 -5
- package/lib/generated-client/models/hardware-acceleration-type.d.ts +26 -0
- package/lib/generated-client/models/hardware-acceleration-type.js +29 -0
- package/lib/generated-client/models/image-info.d.ts +1 -1
- package/lib/generated-client/models/image-option.d.ts +1 -1
- package/lib/generated-client/models/image-provider-info.d.ts +1 -1
- package/lib/generated-client/models/inbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/inbound-web-socket-message.d.ts +22 -8
- package/lib/generated-client/models/index.d.ts +13 -6
- package/lib/generated-client/models/index.js +7 -1
- package/lib/generated-client/models/installation-info.d.ts +1 -1
- package/lib/generated-client/models/library-changed-message.d.ts +2 -2
- package/lib/generated-client/models/library-options-result-dto.d.ts +8 -2
- package/lib/generated-client/models/library-options.d.ts +57 -3
- package/lib/generated-client/models/library-type-options-dto.d.ts +3 -3
- package/lib/generated-client/models/listings-provider-info.d.ts +1 -1
- package/lib/generated-client/models/live-stream-response.d.ts +1 -1
- package/lib/generated-client/models/live-tv-info.d.ts +1 -1
- package/lib/generated-client/models/live-tv-options.d.ts +2 -2
- package/lib/generated-client/models/live-tv-service-info.d.ts +1 -1
- package/lib/generated-client/models/lyric-dto.d.ts +2 -2
- package/lib/generated-client/models/media-path-dto.d.ts +1 -1
- package/lib/generated-client/models/media-path-info.d.ts +0 -6
- package/lib/generated-client/models/media-segment-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/media-segment-dto.d.ts +48 -0
- package/lib/generated-client/models/media-segment-type.d.ts +24 -0
- package/lib/generated-client/models/media-segment-type.js +27 -0
- package/lib/generated-client/models/media-source-info.d.ts +29 -11
- package/lib/generated-client/models/media-stream.d.ts +17 -5
- package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
- package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
- package/lib/generated-client/models/movie-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/movie-info.d.ts +2 -2
- package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/music-video-info.d.ts +2 -2
- package/lib/generated-client/models/open-live-stream-dto.d.ts +8 -2
- package/lib/generated-client/models/outbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +85 -29
- package/lib/generated-client/models/package-info.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info.d.ts +2 -2
- package/lib/generated-client/models/play-message.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update.d.ts +4 -4
- package/lib/generated-client/models/play-request.d.ts +1 -1
- package/lib/generated-client/models/playback-info-dto.d.ts +7 -1
- package/lib/generated-client/models/playback-info-response.d.ts +2 -2
- package/lib/generated-client/models/playback-progress-info.d.ts +5 -5
- package/lib/generated-client/models/playback-start-info.d.ts +5 -5
- package/lib/generated-client/models/playback-stop-info.d.ts +2 -2
- package/lib/generated-client/models/player-state-info.d.ts +3 -3
- package/lib/generated-client/models/playlist-dto.d.ts +36 -0
- package/lib/generated-client/models/playstate-message.d.ts +2 -2
- package/lib/generated-client/models/playstate-request.d.ts +1 -1
- package/lib/generated-client/models/plugin-info.d.ts +1 -1
- package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-completed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-failed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installing-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-uninstalled-message.d.ts +2 -2
- package/lib/generated-client/models/problem-details.d.ts +1 -1
- package/lib/generated-client/models/profile-condition.d.ts +2 -2
- package/lib/generated-client/models/query-filters.d.ts +1 -1
- package/lib/generated-client/models/queue-request-dto.d.ts +1 -1
- package/lib/generated-client/models/recommendation-dto.d.ts +2 -2
- package/lib/generated-client/models/refresh-progress-message.d.ts +3 -3
- package/lib/generated-client/models/remote-image-info.d.ts +2 -2
- package/lib/generated-client/models/remote-image-result.d.ts +1 -1
- package/lib/generated-client/models/remote-lyric-info-dto.d.ts +1 -1
- package/lib/generated-client/models/remote-search-result.d.ts +2 -2
- package/lib/generated-client/models/restart-required-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-task-ended-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +1 -1
- package/lib/generated-client/models/search-hint-result.d.ts +1 -1
- package/lib/generated-client/models/search-hint.d.ts +2 -2
- package/lib/generated-client/models/send-command.d.ts +1 -1
- package/lib/generated-client/models/series-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/series-info.d.ts +2 -2
- package/lib/generated-client/models/series-timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/series-timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/server-configuration.d.ts +8 -14
- package/lib/generated-client/models/server-restarting-message.d.ts +1 -1
- package/lib/generated-client/models/server-shutting-down-message.d.ts +1 -1
- package/lib/generated-client/models/session-info-dto.d.ts +199 -0
- package/lib/generated-client/models/session-info.d.ts +8 -8
- package/lib/generated-client/models/sessions-message.d.ts +4 -4
- package/lib/generated-client/models/sessions-start-message.d.ts +1 -1
- package/lib/generated-client/models/sessions-stop-message.d.ts +1 -1
- package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/song-info.d.ts +2 -2
- package/lib/generated-client/models/string-group-update.d.ts +1 -1
- package/lib/generated-client/models/subtitle-profile.d.ts +6 -6
- package/lib/generated-client/models/sync-play-command-message.d.ts +2 -2
- package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +2 -2
- package/lib/generated-client/models/system-info.d.ts +2 -2
- package/lib/generated-client/models/task-info.d.ts +3 -3
- package/lib/generated-client/models/task-result.d.ts +1 -1
- package/lib/generated-client/models/task-trigger-info.d.ts +1 -1
- package/lib/generated-client/models/theme-media-result.d.ts +2 -2
- package/lib/generated-client/models/timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/tonemapping-algorithm.d.ts +26 -0
- package/lib/generated-client/models/tonemapping-algorithm.js +29 -0
- package/lib/generated-client/models/tonemapping-mode.d.ts +23 -0
- package/lib/generated-client/models/tonemapping-mode.js +26 -0
- package/lib/generated-client/models/tonemapping-range.d.ts +21 -0
- package/lib/generated-client/models/tonemapping-range.js +24 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/trailer-info.d.ts +2 -2
- package/lib/generated-client/models/transcode-reason.d.ts +1 -0
- package/lib/generated-client/models/transcode-reason.js +2 -1
- package/lib/generated-client/models/transcoding-info.d.ts +16 -16
- package/lib/generated-client/models/transcoding-profile.d.ts +24 -18
- package/lib/generated-client/models/trickplay-options.d.ts +8 -2
- package/lib/generated-client/models/tuner-host-info.d.ts +18 -0
- package/lib/generated-client/models/type-options.d.ts +1 -1
- package/lib/generated-client/models/update-library-options-dto.d.ts +1 -1
- package/lib/generated-client/models/update-media-path-request-dto.d.ts +1 -1
- package/lib/generated-client/models/update-playlist-dto.d.ts +1 -1
- package/lib/generated-client/models/user-configuration.d.ts +1 -1
- package/lib/generated-client/models/user-data-change-info.d.ts +3 -3
- package/lib/generated-client/models/user-data-changed-message.d.ts +2 -2
- package/lib/generated-client/models/user-deleted-message.d.ts +1 -1
- package/lib/generated-client/models/user-dto.d.ts +2 -2
- package/lib/generated-client/models/user-item-data-dto.d.ts +2 -2
- package/lib/generated-client/models/user-policy.d.ts +3 -3
- package/lib/generated-client/models/user-updated-message.d.ts +2 -2
- package/lib/generated-client/models/virtual-folder-info.d.ts +2 -2
- package/lib/generated-client/models/web-socket-message.d.ts +2 -2
- package/lib/utils/address-candidates.js +15 -10
- package/lib/utils/api/index.d.ts +1 -0
- package/lib/utils/api/index.js +1 -0
- package/lib/utils/api/media-segments-api.d.ts +8 -0
- package/lib/utils/api/media-segments-api.js +12 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/url/index.d.ts +16 -3
- package/lib/utils/url/index.js +26 -4
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +13 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import globalAxios from 'axios';
|
|
2
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
3
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
4
4
|
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
@@ -162,8 +162,11 @@ const RemoteImageApiFp = function (configuration) {
|
|
|
162
162
|
* @throws {RequiredError}
|
|
163
163
|
*/
|
|
164
164
|
async downloadRemoteImage(itemId, type, imageUrl, options) {
|
|
165
|
+
var _a, _b, _c;
|
|
165
166
|
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadRemoteImage(itemId, type, imageUrl, options);
|
|
166
|
-
|
|
167
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
168
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RemoteImageApi.downloadRemoteImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
169
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
167
170
|
},
|
|
168
171
|
/**
|
|
169
172
|
*
|
|
@@ -173,8 +176,11 @@ const RemoteImageApiFp = function (configuration) {
|
|
|
173
176
|
* @throws {RequiredError}
|
|
174
177
|
*/
|
|
175
178
|
async getRemoteImageProviders(itemId, options) {
|
|
179
|
+
var _a, _b, _c;
|
|
176
180
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRemoteImageProviders(itemId, options);
|
|
177
|
-
|
|
181
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
182
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RemoteImageApi.getRemoteImageProviders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
183
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
178
184
|
},
|
|
179
185
|
/**
|
|
180
186
|
*
|
|
@@ -189,8 +195,11 @@ const RemoteImageApiFp = function (configuration) {
|
|
|
189
195
|
* @throws {RequiredError}
|
|
190
196
|
*/
|
|
191
197
|
async getRemoteImages(itemId, type, startIndex, limit, providerName, includeAllLanguages, options) {
|
|
198
|
+
var _a, _b, _c;
|
|
192
199
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRemoteImages(itemId, type, startIndex, limit, providerName, includeAllLanguages, options);
|
|
193
|
-
|
|
200
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
201
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RemoteImageApi.getRemoteImages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
202
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
194
203
|
},
|
|
195
204
|
};
|
|
196
205
|
};
|
|
@@ -204,39 +213,32 @@ const RemoteImageApiFactory = function (configuration, basePath, axios) {
|
|
|
204
213
|
/**
|
|
205
214
|
*
|
|
206
215
|
* @summary Downloads a remote image for an item.
|
|
207
|
-
* @param {
|
|
208
|
-
* @param {ImageType} type The image type.
|
|
209
|
-
* @param {string} [imageUrl] The image url.
|
|
216
|
+
* @param {RemoteImageApiDownloadRemoteImageRequest} requestParameters Request parameters.
|
|
210
217
|
* @param {*} [options] Override http request option.
|
|
211
218
|
* @throws {RequiredError}
|
|
212
219
|
*/
|
|
213
|
-
downloadRemoteImage(
|
|
214
|
-
return localVarFp.downloadRemoteImage(itemId, type, imageUrl, options).then((request) => request(axios, basePath));
|
|
220
|
+
downloadRemoteImage(requestParameters, options) {
|
|
221
|
+
return localVarFp.downloadRemoteImage(requestParameters.itemId, requestParameters.type, requestParameters.imageUrl, options).then((request) => request(axios, basePath));
|
|
215
222
|
},
|
|
216
223
|
/**
|
|
217
224
|
*
|
|
218
225
|
* @summary Gets available remote image providers for an item.
|
|
219
|
-
* @param {
|
|
226
|
+
* @param {RemoteImageApiGetRemoteImageProvidersRequest} requestParameters Request parameters.
|
|
220
227
|
* @param {*} [options] Override http request option.
|
|
221
228
|
* @throws {RequiredError}
|
|
222
229
|
*/
|
|
223
|
-
getRemoteImageProviders(
|
|
224
|
-
return localVarFp.getRemoteImageProviders(itemId, options).then((request) => request(axios, basePath));
|
|
230
|
+
getRemoteImageProviders(requestParameters, options) {
|
|
231
|
+
return localVarFp.getRemoteImageProviders(requestParameters.itemId, options).then((request) => request(axios, basePath));
|
|
225
232
|
},
|
|
226
233
|
/**
|
|
227
234
|
*
|
|
228
235
|
* @summary Gets available remote images for an item.
|
|
229
|
-
* @param {
|
|
230
|
-
* @param {ImageType} [type] The image type.
|
|
231
|
-
* @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
|
|
232
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
233
|
-
* @param {string} [providerName] Optional. The image provider to use.
|
|
234
|
-
* @param {boolean} [includeAllLanguages] Optional. Include all languages.
|
|
236
|
+
* @param {RemoteImageApiGetRemoteImagesRequest} requestParameters Request parameters.
|
|
235
237
|
* @param {*} [options] Override http request option.
|
|
236
238
|
* @throws {RequiredError}
|
|
237
239
|
*/
|
|
238
|
-
getRemoteImages(
|
|
239
|
-
return localVarFp.getRemoteImages(itemId, type, startIndex, limit, providerName, includeAllLanguages, options).then((request) => request(axios, basePath));
|
|
240
|
+
getRemoteImages(requestParameters, options) {
|
|
241
|
+
return localVarFp.getRemoteImages(requestParameters.itemId, requestParameters.type, requestParameters.startIndex, requestParameters.limit, requestParameters.providerName, requestParameters.includeAllLanguages, options).then((request) => request(axios, basePath));
|
|
240
242
|
},
|
|
241
243
|
};
|
|
242
244
|
};
|
|
@@ -8,11 +8,11 @@
|
|
|
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 { TaskInfo } from '../models';
|
|
15
|
-
import { TaskTriggerInfo } 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 { TaskInfo } from '../models';
|
|
15
|
+
import type { TaskTriggerInfo } from '../models';
|
|
16
16
|
/**
|
|
17
17
|
* ScheduledTasksApi - axios parameter creator
|
|
18
18
|
* @export
|
|
@@ -25,7 +25,7 @@ export declare const ScheduledTasksApiAxiosParamCreator: (configuration?: Config
|
|
|
25
25
|
* @param {*} [options] Override http request option.
|
|
26
26
|
* @throws {RequiredError}
|
|
27
27
|
*/
|
|
28
|
-
getTask: (taskId: string, options?:
|
|
28
|
+
getTask: (taskId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @summary Get tasks.
|
|
@@ -34,7 +34,7 @@ export declare const ScheduledTasksApiAxiosParamCreator: (configuration?: Config
|
|
|
34
34
|
* @param {*} [options] Override http request option.
|
|
35
35
|
* @throws {RequiredError}
|
|
36
36
|
*/
|
|
37
|
-
getTasks: (isHidden?: boolean, isEnabled?: boolean, options?:
|
|
37
|
+
getTasks: (isHidden?: boolean, isEnabled?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @summary Start specified task.
|
|
@@ -42,7 +42,7 @@ export declare const ScheduledTasksApiAxiosParamCreator: (configuration?: Config
|
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
43
43
|
* @throws {RequiredError}
|
|
44
44
|
*/
|
|
45
|
-
startTask: (taskId: string, options?:
|
|
45
|
+
startTask: (taskId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @summary Stop specified task.
|
|
@@ -50,7 +50,7 @@ export declare const ScheduledTasksApiAxiosParamCreator: (configuration?: Config
|
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
*/
|
|
53
|
-
stopTask: (taskId: string, options?:
|
|
53
|
+
stopTask: (taskId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @summary Update specified task triggers.
|
|
@@ -59,7 +59,7 @@ export declare const ScheduledTasksApiAxiosParamCreator: (configuration?: Config
|
|
|
59
59
|
* @param {*} [options] Override http request option.
|
|
60
60
|
* @throws {RequiredError}
|
|
61
61
|
*/
|
|
62
|
-
updateTask: (taskId: string, taskTriggerInfo: Array<TaskTriggerInfo>, options?:
|
|
62
|
+
updateTask: (taskId: string, taskTriggerInfo: Array<TaskTriggerInfo>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
63
63
|
};
|
|
64
64
|
/**
|
|
65
65
|
* ScheduledTasksApi - functional programming interface
|
|
@@ -73,7 +73,7 @@ export declare const ScheduledTasksApiFp: (configuration?: Configuration) => {
|
|
|
73
73
|
* @param {*} [options] Override http request option.
|
|
74
74
|
* @throws {RequiredError}
|
|
75
75
|
*/
|
|
76
|
-
getTask(taskId: string, options?:
|
|
76
|
+
getTask(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskInfo>>;
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @summary Get tasks.
|
|
@@ -82,7 +82,7 @@ export declare const ScheduledTasksApiFp: (configuration?: Configuration) => {
|
|
|
82
82
|
* @param {*} [options] Override http request option.
|
|
83
83
|
* @throws {RequiredError}
|
|
84
84
|
*/
|
|
85
|
-
getTasks(isHidden?: boolean, isEnabled?: boolean, options?:
|
|
85
|
+
getTasks(isHidden?: boolean, isEnabled?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TaskInfo>>>;
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
88
|
* @summary Start specified task.
|
|
@@ -90,7 +90,7 @@ export declare const ScheduledTasksApiFp: (configuration?: Configuration) => {
|
|
|
90
90
|
* @param {*} [options] Override http request option.
|
|
91
91
|
* @throws {RequiredError}
|
|
92
92
|
*/
|
|
93
|
-
startTask(taskId: string, options?:
|
|
93
|
+
startTask(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
96
96
|
* @summary Stop specified task.
|
|
@@ -98,7 +98,7 @@ export declare const ScheduledTasksApiFp: (configuration?: Configuration) => {
|
|
|
98
98
|
* @param {*} [options] Override http request option.
|
|
99
99
|
* @throws {RequiredError}
|
|
100
100
|
*/
|
|
101
|
-
stopTask(taskId: string, options?:
|
|
101
|
+
stopTask(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
102
102
|
/**
|
|
103
103
|
*
|
|
104
104
|
* @summary Update specified task triggers.
|
|
@@ -107,7 +107,7 @@ export declare const ScheduledTasksApiFp: (configuration?: Configuration) => {
|
|
|
107
107
|
* @param {*} [options] Override http request option.
|
|
108
108
|
* @throws {RequiredError}
|
|
109
109
|
*/
|
|
110
|
-
updateTask(taskId: string, taskTriggerInfo: Array<TaskTriggerInfo>, options?:
|
|
110
|
+
updateTask(taskId: string, taskTriggerInfo: Array<TaskTriggerInfo>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
111
111
|
};
|
|
112
112
|
/**
|
|
113
113
|
* ScheduledTasksApi - factory interface
|
|
@@ -117,45 +117,43 @@ export declare const ScheduledTasksApiFactory: (configuration?: Configuration, b
|
|
|
117
117
|
/**
|
|
118
118
|
*
|
|
119
119
|
* @summary Get task by id.
|
|
120
|
-
* @param {
|
|
120
|
+
* @param {ScheduledTasksApiGetTaskRequest} requestParameters Request parameters.
|
|
121
121
|
* @param {*} [options] Override http request option.
|
|
122
122
|
* @throws {RequiredError}
|
|
123
123
|
*/
|
|
124
|
-
getTask(
|
|
124
|
+
getTask(requestParameters: ScheduledTasksApiGetTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<TaskInfo>;
|
|
125
125
|
/**
|
|
126
126
|
*
|
|
127
127
|
* @summary Get tasks.
|
|
128
|
-
* @param {
|
|
129
|
-
* @param {boolean} [isEnabled] Optional filter tasks that are enabled, or not.
|
|
128
|
+
* @param {ScheduledTasksApiGetTasksRequest} requestParameters Request parameters.
|
|
130
129
|
* @param {*} [options] Override http request option.
|
|
131
130
|
* @throws {RequiredError}
|
|
132
131
|
*/
|
|
133
|
-
getTasks(
|
|
132
|
+
getTasks(requestParameters?: ScheduledTasksApiGetTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<TaskInfo>>;
|
|
134
133
|
/**
|
|
135
134
|
*
|
|
136
135
|
* @summary Start specified task.
|
|
137
|
-
* @param {
|
|
136
|
+
* @param {ScheduledTasksApiStartTaskRequest} requestParameters Request parameters.
|
|
138
137
|
* @param {*} [options] Override http request option.
|
|
139
138
|
* @throws {RequiredError}
|
|
140
139
|
*/
|
|
141
|
-
startTask(
|
|
140
|
+
startTask(requestParameters: ScheduledTasksApiStartTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
142
141
|
/**
|
|
143
142
|
*
|
|
144
143
|
* @summary Stop specified task.
|
|
145
|
-
* @param {
|
|
144
|
+
* @param {ScheduledTasksApiStopTaskRequest} requestParameters Request parameters.
|
|
146
145
|
* @param {*} [options] Override http request option.
|
|
147
146
|
* @throws {RequiredError}
|
|
148
147
|
*/
|
|
149
|
-
stopTask(
|
|
148
|
+
stopTask(requestParameters: ScheduledTasksApiStopTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
150
149
|
/**
|
|
151
150
|
*
|
|
152
151
|
* @summary Update specified task triggers.
|
|
153
|
-
* @param {
|
|
154
|
-
* @param {Array<TaskTriggerInfo>} taskTriggerInfo Triggers.
|
|
152
|
+
* @param {ScheduledTasksApiUpdateTaskRequest} requestParameters Request parameters.
|
|
155
153
|
* @param {*} [options] Override http request option.
|
|
156
154
|
* @throws {RequiredError}
|
|
157
155
|
*/
|
|
158
|
-
updateTask(
|
|
156
|
+
updateTask(requestParameters: ScheduledTasksApiUpdateTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
159
157
|
};
|
|
160
158
|
/**
|
|
161
159
|
* Request parameters for getTask operation in ScheduledTasksApi.
|
|
@@ -249,7 +247,7 @@ export declare class ScheduledTasksApi extends BaseAPI {
|
|
|
249
247
|
* @throws {RequiredError}
|
|
250
248
|
* @memberof ScheduledTasksApi
|
|
251
249
|
*/
|
|
252
|
-
getTask(requestParameters: ScheduledTasksApiGetTaskRequest, options?:
|
|
250
|
+
getTask(requestParameters: ScheduledTasksApiGetTaskRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TaskInfo, any>>;
|
|
253
251
|
/**
|
|
254
252
|
*
|
|
255
253
|
* @summary Get tasks.
|
|
@@ -258,7 +256,7 @@ export declare class ScheduledTasksApi extends BaseAPI {
|
|
|
258
256
|
* @throws {RequiredError}
|
|
259
257
|
* @memberof ScheduledTasksApi
|
|
260
258
|
*/
|
|
261
|
-
getTasks(requestParameters?: ScheduledTasksApiGetTasksRequest, options?:
|
|
259
|
+
getTasks(requestParameters?: ScheduledTasksApiGetTasksRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TaskInfo[], any>>;
|
|
262
260
|
/**
|
|
263
261
|
*
|
|
264
262
|
* @summary Start specified task.
|
|
@@ -267,7 +265,7 @@ export declare class ScheduledTasksApi extends BaseAPI {
|
|
|
267
265
|
* @throws {RequiredError}
|
|
268
266
|
* @memberof ScheduledTasksApi
|
|
269
267
|
*/
|
|
270
|
-
startTask(requestParameters: ScheduledTasksApiStartTaskRequest, options?:
|
|
268
|
+
startTask(requestParameters: ScheduledTasksApiStartTaskRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
271
269
|
/**
|
|
272
270
|
*
|
|
273
271
|
* @summary Stop specified task.
|
|
@@ -276,7 +274,7 @@ export declare class ScheduledTasksApi extends BaseAPI {
|
|
|
276
274
|
* @throws {RequiredError}
|
|
277
275
|
* @memberof ScheduledTasksApi
|
|
278
276
|
*/
|
|
279
|
-
stopTask(requestParameters: ScheduledTasksApiStopTaskRequest, options?:
|
|
277
|
+
stopTask(requestParameters: ScheduledTasksApiStopTaskRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
280
278
|
/**
|
|
281
279
|
*
|
|
282
280
|
* @summary Update specified task triggers.
|
|
@@ -285,5 +283,5 @@ export declare class ScheduledTasksApi extends BaseAPI {
|
|
|
285
283
|
* @throws {RequiredError}
|
|
286
284
|
* @memberof ScheduledTasksApi
|
|
287
285
|
*/
|
|
288
|
-
updateTask(requestParameters: ScheduledTasksApiUpdateTaskRequest, options?:
|
|
286
|
+
updateTask(requestParameters: ScheduledTasksApiUpdateTaskRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
289
287
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import globalAxios from 'axios';
|
|
2
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
|
|
3
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
4
4
|
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
@@ -201,8 +201,11 @@ const ScheduledTasksApiFp = function (configuration) {
|
|
|
201
201
|
* @throws {RequiredError}
|
|
202
202
|
*/
|
|
203
203
|
async getTask(taskId, options) {
|
|
204
|
+
var _a, _b, _c;
|
|
204
205
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getTask(taskId, options);
|
|
205
|
-
|
|
206
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
207
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScheduledTasksApi.getTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
208
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
206
209
|
},
|
|
207
210
|
/**
|
|
208
211
|
*
|
|
@@ -213,8 +216,11 @@ const ScheduledTasksApiFp = function (configuration) {
|
|
|
213
216
|
* @throws {RequiredError}
|
|
214
217
|
*/
|
|
215
218
|
async getTasks(isHidden, isEnabled, options) {
|
|
219
|
+
var _a, _b, _c;
|
|
216
220
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getTasks(isHidden, isEnabled, options);
|
|
217
|
-
|
|
221
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
222
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScheduledTasksApi.getTasks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
223
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
218
224
|
},
|
|
219
225
|
/**
|
|
220
226
|
*
|
|
@@ -224,8 +230,11 @@ const ScheduledTasksApiFp = function (configuration) {
|
|
|
224
230
|
* @throws {RequiredError}
|
|
225
231
|
*/
|
|
226
232
|
async startTask(taskId, options) {
|
|
233
|
+
var _a, _b, _c;
|
|
227
234
|
const localVarAxiosArgs = await localVarAxiosParamCreator.startTask(taskId, options);
|
|
228
|
-
|
|
235
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
236
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScheduledTasksApi.startTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
237
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
229
238
|
},
|
|
230
239
|
/**
|
|
231
240
|
*
|
|
@@ -235,8 +244,11 @@ const ScheduledTasksApiFp = function (configuration) {
|
|
|
235
244
|
* @throws {RequiredError}
|
|
236
245
|
*/
|
|
237
246
|
async stopTask(taskId, options) {
|
|
247
|
+
var _a, _b, _c;
|
|
238
248
|
const localVarAxiosArgs = await localVarAxiosParamCreator.stopTask(taskId, options);
|
|
239
|
-
|
|
249
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
250
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScheduledTasksApi.stopTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
251
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
240
252
|
},
|
|
241
253
|
/**
|
|
242
254
|
*
|
|
@@ -247,8 +259,11 @@ const ScheduledTasksApiFp = function (configuration) {
|
|
|
247
259
|
* @throws {RequiredError}
|
|
248
260
|
*/
|
|
249
261
|
async updateTask(taskId, taskTriggerInfo, options) {
|
|
262
|
+
var _a, _b, _c;
|
|
250
263
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTask(taskId, taskTriggerInfo, options);
|
|
251
|
-
|
|
264
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
265
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScheduledTasksApi.updateTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
266
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
252
267
|
},
|
|
253
268
|
};
|
|
254
269
|
};
|
|
@@ -262,54 +277,52 @@ const ScheduledTasksApiFactory = function (configuration, basePath, axios) {
|
|
|
262
277
|
/**
|
|
263
278
|
*
|
|
264
279
|
* @summary Get task by id.
|
|
265
|
-
* @param {
|
|
280
|
+
* @param {ScheduledTasksApiGetTaskRequest} requestParameters Request parameters.
|
|
266
281
|
* @param {*} [options] Override http request option.
|
|
267
282
|
* @throws {RequiredError}
|
|
268
283
|
*/
|
|
269
|
-
getTask(
|
|
270
|
-
return localVarFp.getTask(taskId, options).then((request) => request(axios, basePath));
|
|
284
|
+
getTask(requestParameters, options) {
|
|
285
|
+
return localVarFp.getTask(requestParameters.taskId, options).then((request) => request(axios, basePath));
|
|
271
286
|
},
|
|
272
287
|
/**
|
|
273
288
|
*
|
|
274
289
|
* @summary Get tasks.
|
|
275
|
-
* @param {
|
|
276
|
-
* @param {boolean} [isEnabled] Optional filter tasks that are enabled, or not.
|
|
290
|
+
* @param {ScheduledTasksApiGetTasksRequest} requestParameters Request parameters.
|
|
277
291
|
* @param {*} [options] Override http request option.
|
|
278
292
|
* @throws {RequiredError}
|
|
279
293
|
*/
|
|
280
|
-
getTasks(
|
|
281
|
-
return localVarFp.getTasks(isHidden, isEnabled, options).then((request) => request(axios, basePath));
|
|
294
|
+
getTasks(requestParameters = {}, options) {
|
|
295
|
+
return localVarFp.getTasks(requestParameters.isHidden, requestParameters.isEnabled, options).then((request) => request(axios, basePath));
|
|
282
296
|
},
|
|
283
297
|
/**
|
|
284
298
|
*
|
|
285
299
|
* @summary Start specified task.
|
|
286
|
-
* @param {
|
|
300
|
+
* @param {ScheduledTasksApiStartTaskRequest} requestParameters Request parameters.
|
|
287
301
|
* @param {*} [options] Override http request option.
|
|
288
302
|
* @throws {RequiredError}
|
|
289
303
|
*/
|
|
290
|
-
startTask(
|
|
291
|
-
return localVarFp.startTask(taskId, options).then((request) => request(axios, basePath));
|
|
304
|
+
startTask(requestParameters, options) {
|
|
305
|
+
return localVarFp.startTask(requestParameters.taskId, options).then((request) => request(axios, basePath));
|
|
292
306
|
},
|
|
293
307
|
/**
|
|
294
308
|
*
|
|
295
309
|
* @summary Stop specified task.
|
|
296
|
-
* @param {
|
|
310
|
+
* @param {ScheduledTasksApiStopTaskRequest} requestParameters Request parameters.
|
|
297
311
|
* @param {*} [options] Override http request option.
|
|
298
312
|
* @throws {RequiredError}
|
|
299
313
|
*/
|
|
300
|
-
stopTask(
|
|
301
|
-
return localVarFp.stopTask(taskId, options).then((request) => request(axios, basePath));
|
|
314
|
+
stopTask(requestParameters, options) {
|
|
315
|
+
return localVarFp.stopTask(requestParameters.taskId, options).then((request) => request(axios, basePath));
|
|
302
316
|
},
|
|
303
317
|
/**
|
|
304
318
|
*
|
|
305
319
|
* @summary Update specified task triggers.
|
|
306
|
-
* @param {
|
|
307
|
-
* @param {Array<TaskTriggerInfo>} taskTriggerInfo Triggers.
|
|
320
|
+
* @param {ScheduledTasksApiUpdateTaskRequest} requestParameters Request parameters.
|
|
308
321
|
* @param {*} [options] Override http request option.
|
|
309
322
|
* @throws {RequiredError}
|
|
310
323
|
*/
|
|
311
|
-
updateTask(
|
|
312
|
-
return localVarFp.updateTask(taskId, taskTriggerInfo, options).then((request) => request(axios, basePath));
|
|
324
|
+
updateTask(requestParameters, options) {
|
|
325
|
+
return localVarFp.updateTask(requestParameters.taskId, requestParameters.taskTriggerInfo, options).then((request) => request(axios, basePath));
|
|
313
326
|
},
|
|
314
327
|
};
|
|
315
328
|
};
|
|
@@ -8,12 +8,12 @@
|
|
|
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 { SearchHintResult } 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 { SearchHintResult } from '../models';
|
|
17
17
|
/**
|
|
18
18
|
* SearchApi - axios parameter creator
|
|
19
19
|
* @export
|
|
@@ -43,7 +43,7 @@ export declare const SearchApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
43
43
|
* @param {*} [options] Override http request option.
|
|
44
44
|
* @throws {RequiredError}
|
|
45
45
|
*/
|
|
46
|
-
getSearchHints: (searchTerm: string, startIndex?: number, limit?: number, userId?: string, includeItemTypes?: Array<BaseItemKind>, excludeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, parentId?: string, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, includePeople?: boolean, includeMedia?: boolean, includeGenres?: boolean, includeStudios?: boolean, includeArtists?: boolean, options?:
|
|
46
|
+
getSearchHints: (searchTerm: string, startIndex?: number, limit?: number, userId?: string, includeItemTypes?: Array<BaseItemKind>, excludeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, parentId?: string, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, includePeople?: boolean, includeMedia?: boolean, includeGenres?: boolean, includeStudios?: boolean, includeArtists?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
49
|
* SearchApi - functional programming interface
|
|
@@ -74,7 +74,7 @@ export declare const SearchApiFp: (configuration?: Configuration) => {
|
|
|
74
74
|
* @param {*} [options] Override http request option.
|
|
75
75
|
* @throws {RequiredError}
|
|
76
76
|
*/
|
|
77
|
-
getSearchHints(searchTerm: string, startIndex?: number, limit?: number, userId?: string, includeItemTypes?: Array<BaseItemKind>, excludeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, parentId?: string, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, includePeople?: boolean, includeMedia?: boolean, includeGenres?: boolean, includeStudios?: boolean, includeArtists?: boolean, options?:
|
|
77
|
+
getSearchHints(searchTerm: string, startIndex?: number, limit?: number, userId?: string, includeItemTypes?: Array<BaseItemKind>, excludeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, parentId?: string, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, includePeople?: boolean, includeMedia?: boolean, includeGenres?: boolean, includeStudios?: boolean, includeArtists?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchHintResult>>;
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
80
|
* SearchApi - factory interface
|
|
@@ -84,28 +84,11 @@ export declare const SearchApiFactory: (configuration?: Configuration, basePath?
|
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @summary Gets the search hint result.
|
|
87
|
-
* @param {
|
|
88
|
-
* @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
|
|
89
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
90
|
-
* @param {string} [userId] Optional. Supply a user id to search within a user\'s library or omit to search all.
|
|
91
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] If specified, only results with the specified item types are returned. This allows multiple, comma delimited.
|
|
92
|
-
* @param {Array<BaseItemKind>} [excludeItemTypes] If specified, results with these item types are filtered out. This allows multiple, comma delimited.
|
|
93
|
-
* @param {Array<MediaType>} [mediaTypes] If specified, only results with the specified media types are returned. This allows multiple, comma delimited.
|
|
94
|
-
* @param {string} [parentId] If specified, only children of the parent are returned.
|
|
95
|
-
* @param {boolean} [isMovie] Optional filter for movies.
|
|
96
|
-
* @param {boolean} [isSeries] Optional filter for series.
|
|
97
|
-
* @param {boolean} [isNews] Optional filter for news.
|
|
98
|
-
* @param {boolean} [isKids] Optional filter for kids.
|
|
99
|
-
* @param {boolean} [isSports] Optional filter for sports.
|
|
100
|
-
* @param {boolean} [includePeople] Optional filter whether to include people.
|
|
101
|
-
* @param {boolean} [includeMedia] Optional filter whether to include media.
|
|
102
|
-
* @param {boolean} [includeGenres] Optional filter whether to include genres.
|
|
103
|
-
* @param {boolean} [includeStudios] Optional filter whether to include studios.
|
|
104
|
-
* @param {boolean} [includeArtists] Optional filter whether to include artists.
|
|
87
|
+
* @param {SearchApiGetSearchHintsRequest} requestParameters Request parameters.
|
|
105
88
|
* @param {*} [options] Override http request option.
|
|
106
89
|
* @throws {RequiredError}
|
|
107
90
|
*/
|
|
108
|
-
getSearchHints(
|
|
91
|
+
getSearchHints(requestParameters: SearchApiGetSearchHintsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SearchHintResult>;
|
|
109
92
|
};
|
|
110
93
|
/**
|
|
111
94
|
* Request parameters for getSearchHints operation in SearchApi.
|
|
@@ -237,5 +220,5 @@ export declare class SearchApi extends BaseAPI {
|
|
|
237
220
|
* @throws {RequiredError}
|
|
238
221
|
* @memberof SearchApi
|
|
239
222
|
*/
|
|
240
|
-
getSearchHints(requestParameters: SearchApiGetSearchHintsRequest, options?:
|
|
223
|
+
getSearchHints(requestParameters: SearchApiGetSearchHintsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SearchHintResult, any>>;
|
|
241
224
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import globalAxios from 'axios';
|
|
2
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
3
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
4
4
|
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
@@ -155,8 +155,11 @@ const SearchApiFp = function (configuration) {
|
|
|
155
155
|
* @throws {RequiredError}
|
|
156
156
|
*/
|
|
157
157
|
async getSearchHints(searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options) {
|
|
158
|
+
var _a, _b, _c;
|
|
158
159
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchHints(searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options);
|
|
159
|
-
|
|
160
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
161
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.getSearchHints']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
162
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
160
163
|
},
|
|
161
164
|
};
|
|
162
165
|
};
|
|
@@ -170,29 +173,12 @@ const SearchApiFactory = function (configuration, basePath, axios) {
|
|
|
170
173
|
/**
|
|
171
174
|
*
|
|
172
175
|
* @summary Gets the search hint result.
|
|
173
|
-
* @param {
|
|
174
|
-
* @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
|
|
175
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
176
|
-
* @param {string} [userId] Optional. Supply a user id to search within a user\'s library or omit to search all.
|
|
177
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] If specified, only results with the specified item types are returned. This allows multiple, comma delimited.
|
|
178
|
-
* @param {Array<BaseItemKind>} [excludeItemTypes] If specified, results with these item types are filtered out. This allows multiple, comma delimited.
|
|
179
|
-
* @param {Array<MediaType>} [mediaTypes] If specified, only results with the specified media types are returned. This allows multiple, comma delimited.
|
|
180
|
-
* @param {string} [parentId] If specified, only children of the parent are returned.
|
|
181
|
-
* @param {boolean} [isMovie] Optional filter for movies.
|
|
182
|
-
* @param {boolean} [isSeries] Optional filter for series.
|
|
183
|
-
* @param {boolean} [isNews] Optional filter for news.
|
|
184
|
-
* @param {boolean} [isKids] Optional filter for kids.
|
|
185
|
-
* @param {boolean} [isSports] Optional filter for sports.
|
|
186
|
-
* @param {boolean} [includePeople] Optional filter whether to include people.
|
|
187
|
-
* @param {boolean} [includeMedia] Optional filter whether to include media.
|
|
188
|
-
* @param {boolean} [includeGenres] Optional filter whether to include genres.
|
|
189
|
-
* @param {boolean} [includeStudios] Optional filter whether to include studios.
|
|
190
|
-
* @param {boolean} [includeArtists] Optional filter whether to include artists.
|
|
176
|
+
* @param {SearchApiGetSearchHintsRequest} requestParameters Request parameters.
|
|
191
177
|
* @param {*} [options] Override http request option.
|
|
192
178
|
* @throws {RequiredError}
|
|
193
179
|
*/
|
|
194
|
-
getSearchHints(
|
|
195
|
-
return localVarFp.getSearchHints(searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options).then((request) => request(axios, basePath));
|
|
180
|
+
getSearchHints(requestParameters, options) {
|
|
181
|
+
return localVarFp.getSearchHints(requestParameters.searchTerm, requestParameters.startIndex, requestParameters.limit, requestParameters.userId, requestParameters.includeItemTypes, requestParameters.excludeItemTypes, requestParameters.mediaTypes, requestParameters.parentId, requestParameters.isMovie, requestParameters.isSeries, requestParameters.isNews, requestParameters.isKids, requestParameters.isSports, requestParameters.includePeople, requestParameters.includeMedia, requestParameters.includeGenres, requestParameters.includeStudios, requestParameters.includeArtists, options).then((request) => request(axios, basePath));
|
|
196
182
|
},
|
|
197
183
|
};
|
|
198
184
|
};
|