@jellyfin/sdk 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/lib/api.d.ts +0 -11
- package/lib/api.js +0 -14
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +17 -22
- package/lib/generated-client/api/activity-log-api.d.ts +9 -12
- package/lib/generated-client/api/activity-log-api.js +15 -18
- package/lib/generated-client/api/api-key-api.d.ts +18 -18
- package/lib/generated-client/api/api-key-api.js +40 -38
- package/lib/generated-client/api/artists-api.d.ts +27 -90
- package/lib/generated-client/api/artists-api.js +43 -104
- package/lib/generated-client/api/audio-api.d.ts +81 -249
- package/lib/generated-client/api/audio-api.js +105 -266
- package/lib/generated-client/api/branding-api.d.ts +16 -16
- package/lib/generated-client/api/branding-api.js +31 -29
- package/lib/generated-client/api/channels-api.d.ts +33 -51
- package/lib/generated-client/api/channels-api.js +68 -82
- package/lib/generated-client/api/client-log-api.d.ts +13 -13
- package/lib/generated-client/api/client-log-api.js +17 -17
- package/lib/generated-client/api/collection-api.d.ts +19 -24
- package/lib/generated-client/api/collection-api.js +43 -46
- package/lib/generated-client/api/configuration-api.d.ts +28 -29
- package/lib/generated-client/api/configuration-api.js +65 -62
- package/lib/generated-client/api/dashboard-api.d.ts +14 -14
- package/lib/generated-client/api/dashboard-api.js +28 -27
- package/lib/generated-client/api/devices-api.d.ts +31 -33
- package/lib/generated-client/api/devices-api.js +71 -68
- package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
- package/lib/generated-client/api/display-preferences-api.js +29 -33
- package/lib/generated-client/api/dynamic-hls-api.d.ts +246 -607
- package/lib/generated-client/api/dynamic-hls-api.js +269 -628
- package/lib/generated-client/api/environment-api.d.ts +33 -35
- package/lib/generated-client/api/environment-api.js +76 -73
- package/lib/generated-client/api/filter-api.d.ts +17 -29
- package/lib/generated-client/api/filter-api.js +29 -40
- package/lib/generated-client/api/genres-api.d.ts +20 -38
- package/lib/generated-client/api/genres-api.js +29 -46
- package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
- package/lib/generated-client/api/hls-segment-api.js +68 -71
- package/lib/generated-client/api/image-api.d.ts +206 -644
- package/lib/generated-client/api/image-api.js +501 -903
- package/lib/generated-client/api/instant-mix-api.d.ts +46 -102
- package/lib/generated-client/api/instant-mix-api.js +113 -162
- package/lib/generated-client/api/item-lookup-api.d.ts +69 -71
- package/lib/generated-client/api/item-lookup-api.js +155 -147
- package/lib/generated-client/api/item-refresh-api.d.ts +9 -13
- package/lib/generated-client/api/item-refresh-api.js +15 -19
- package/lib/generated-client/api/item-update-api.d.ts +20 -22
- package/lib/generated-client/api/item-update-api.js +43 -43
- package/lib/generated-client/api/items-api.d.ts +44 -137
- package/lib/generated-client/api/items-api.js +63 -156
- package/lib/generated-client/api/library-api.d.ts +185 -170
- package/lib/generated-client/api/library-api.js +378 -359
- package/lib/generated-client/api/library-structure-api.d.ts +48 -58
- package/lib/generated-client/api/library-structure-api.js +110 -113
- package/lib/generated-client/api/live-tv-api.d.ts +224 -332
- package/lib/generated-client/api/live-tv-api.js +558 -626
- package/lib/generated-client/api/localization-api.d.ts +23 -23
- package/lib/generated-client/api/localization-api.js +45 -42
- package/lib/generated-client/api/lyrics-api.d.ts +39 -42
- package/lib/generated-client/api/lyrics-api.js +87 -85
- package/lib/generated-client/api/media-info-api.d.ts +40 -59
- package/lib/generated-client/api/media-info-api.js +77 -95
- package/lib/generated-client/api/media-segments-api.d.ts +95 -0
- package/lib/generated-client/api/media-segments-api.js +123 -0
- package/lib/generated-client/api/movies-api.d.ts +10 -14
- package/lib/generated-client/api/movies-api.js +15 -19
- package/lib/generated-client/api/music-genres-api.d.ts +20 -38
- package/lib/generated-client/api/music-genres-api.js +29 -46
- package/lib/generated-client/api/package-api.d.ts +33 -37
- package/lib/generated-client/api/package-api.js +79 -78
- package/lib/generated-client/api/persons-api.d.ts +18 -31
- package/lib/generated-client/api/persons-api.js +29 -41
- package/lib/generated-client/api/playlists-api.d.ts +109 -84
- package/lib/generated-client/api/playlists-api.js +207 -154
- package/lib/generated-client/api/playstate-api.d.ts +54 -80
- package/lib/generated-client/api/playstate-api.js +127 -145
- package/lib/generated-client/api/plugins-api.d.ts +48 -52
- package/lib/generated-client/api/plugins-api.js +124 -120
- package/lib/generated-client/api/quick-connect-api.d.ts +22 -23
- package/lib/generated-client/api/quick-connect-api.js +48 -46
- package/lib/generated-client/api/remote-image-api.d.ts +21 -28
- package/lib/generated-client/api/remote-image-api.js +43 -48
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +30 -32
- package/lib/generated-client/api/scheduled-tasks-api.js +71 -69
- package/lib/generated-client/api/search-api.d.ts +11 -28
- package/lib/generated-client/api/search-api.js +15 -32
- package/lib/generated-client/api/session-api.d.ts +90 -117
- package/lib/generated-client/api/session-api.js +216 -228
- package/lib/generated-client/api/startup-api.d.ts +37 -37
- package/lib/generated-client/api/startup-api.js +87 -81
- package/lib/generated-client/api/studios-api.d.ts +18 -35
- package/lib/generated-client/api/studios-api.js +29 -45
- package/lib/generated-client/api/subtitle-api.d.ts +55 -86
- package/lib/generated-client/api/subtitle-api.js +136 -158
- package/lib/generated-client/api/suggestions-api.d.ts +11 -16
- package/lib/generated-client/api/suggestions-api.js +15 -20
- package/lib/generated-client/api/sync-play-api.d.ts +120 -120
- package/lib/generated-client/api/sync-play-api.js +280 -260
- package/lib/generated-client/api/system-api.d.ts +49 -49
- package/lib/generated-client/api/system-api.js +111 -102
- package/lib/generated-client/api/time-sync-api.d.ts +8 -8
- package/lib/generated-client/api/time-sync-api.js +11 -11
- package/lib/generated-client/api/tmdb-api.d.ts +8 -8
- package/lib/generated-client/api/tmdb-api.js +12 -12
- package/lib/generated-client/api/trailers-api.d.ts +19 -102
- package/lib/generated-client/api/trailers-api.js +15 -98
- package/lib/generated-client/api/trickplay-api.d.ts +13 -18
- package/lib/generated-client/api/trickplay-api.js +29 -33
- package/lib/generated-client/api/tv-shows-api.d.ts +27 -72
- package/lib/generated-client/api/tv-shows-api.js +57 -99
- package/lib/generated-client/api/universal-audio-api.d.ts +30 -48
- package/lib/generated-client/api/universal-audio-api.js +41 -64
- package/lib/generated-client/api/user-api.d.ts +83 -88
- package/lib/generated-client/api/user-api.js +186 -178
- package/lib/generated-client/api/user-library-api.d.ts +59 -78
- package/lib/generated-client/api/user-library-api.js +141 -151
- package/lib/generated-client/api/user-views-api.d.ts +16 -19
- package/lib/generated-client/api/user-views-api.js +29 -31
- package/lib/generated-client/api/video-attachments-api.d.ts +8 -10
- package/lib/generated-client/api/video-attachments-api.js +14 -16
- package/lib/generated-client/api/videos-api.d.ts +97 -274
- package/lib/generated-client/api/videos-api.js +147 -314
- package/lib/generated-client/api/years-api.d.ts +21 -36
- package/lib/generated-client/api/years-api.js +29 -43
- package/lib/generated-client/api.d.ts +1 -0
- package/lib/generated-client/base.d.ts +15 -4
- package/lib/generated-client/base.js +8 -4
- package/lib/generated-client/common.d.ts +3 -3
- package/lib/generated-client/common.js +30 -24
- package/lib/generated-client/configuration.d.ts +8 -0
- package/lib/generated-client/configuration.js +1 -0
- package/lib/generated-client/index.js +8 -1
- package/lib/generated-client/models/access-schedule.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-message.d.ts +2 -2
- package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
- package/lib/generated-client/models/activity-log-entry-start-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry.d.ts +1 -1
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
- package/lib/generated-client/models/album-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/album-info.d.ts +5 -5
- package/lib/generated-client/models/all-theme-media-result.d.ts +1 -1
- package/lib/generated-client/models/artist-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/artist-info.d.ts +3 -3
- package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
- package/lib/generated-client/models/authentication-result.d.ts +7 -7
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/base-item-dto.d.ts +26 -26
- package/lib/generated-client/models/base-item-person.d.ts +2 -2
- package/lib/generated-client/models/book-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/book-info.d.ts +2 -2
- package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/box-set-info.d.ts +2 -2
- package/lib/generated-client/models/channel-features.d.ts +3 -3
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +3 -3
- package/lib/generated-client/models/client-capabilities-dto.d.ts +3 -17
- package/lib/generated-client/models/client-capabilities.d.ts +3 -3
- package/lib/generated-client/models/codec-profile.d.ts +15 -9
- package/lib/generated-client/models/container-profile.d.ts +12 -6
- package/lib/generated-client/models/create-playlist-dto.d.ts +2 -2
- package/lib/generated-client/models/deinterlace-method.d.ts +20 -0
- package/lib/generated-client/models/{hardware-encoding-type.js → deinterlace-method.js} +5 -10
- package/lib/generated-client/models/device-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/device-info-dto.d.ts +84 -0
- package/lib/generated-client/models/device-info-query-result.d.ts +1 -1
- package/lib/generated-client/models/device-info.d.ts +1 -1
- package/lib/generated-client/models/device-profile.d.ts +8 -8
- package/lib/generated-client/models/direct-play-profile.d.ts +6 -6
- package/lib/generated-client/models/display-preferences-dto.d.ts +4 -4
- package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +3 -1
- package/lib/generated-client/models/down-mix-stereo-algorithms.js +4 -2
- package/lib/generated-client/models/encoder-preset.d.ts +29 -0
- package/lib/generated-client/models/encoder-preset.js +32 -0
- package/lib/generated-client/models/encoding-options.d.ts +43 -19
- package/lib/generated-client/models/external-id-info.d.ts +2 -1
- package/lib/generated-client/models/file-system-entry-info.d.ts +1 -1
- package/lib/generated-client/models/force-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/forgot-password-result.d.ts +1 -1
- package/lib/generated-client/models/general-command-message.d.ts +2 -2
- package/lib/generated-client/models/general-command.d.ts +3 -3
- package/lib/generated-client/models/get-programs-dto.d.ts +34 -34
- package/lib/generated-client/models/group-info-dto-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-info-dto.d.ts +1 -1
- package/lib/generated-client/models/group-state-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-state-update.d.ts +2 -2
- package/lib/generated-client/models/group-update.d.ts +23 -5
- package/lib/generated-client/models/hardware-acceleration-type.d.ts +26 -0
- package/lib/generated-client/models/hardware-acceleration-type.js +29 -0
- package/lib/generated-client/models/image-info.d.ts +1 -1
- package/lib/generated-client/models/image-option.d.ts +1 -1
- package/lib/generated-client/models/image-provider-info.d.ts +1 -1
- package/lib/generated-client/models/inbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/inbound-web-socket-message.d.ts +22 -8
- package/lib/generated-client/models/index.d.ts +13 -6
- package/lib/generated-client/models/index.js +7 -1
- package/lib/generated-client/models/installation-info.d.ts +1 -1
- package/lib/generated-client/models/library-changed-message.d.ts +2 -2
- package/lib/generated-client/models/library-options-result-dto.d.ts +8 -2
- package/lib/generated-client/models/library-options.d.ts +57 -3
- package/lib/generated-client/models/library-type-options-dto.d.ts +3 -3
- package/lib/generated-client/models/listings-provider-info.d.ts +1 -1
- package/lib/generated-client/models/live-stream-response.d.ts +1 -1
- package/lib/generated-client/models/live-tv-info.d.ts +1 -1
- package/lib/generated-client/models/live-tv-options.d.ts +2 -2
- package/lib/generated-client/models/live-tv-service-info.d.ts +1 -1
- package/lib/generated-client/models/lyric-dto.d.ts +2 -2
- package/lib/generated-client/models/media-path-dto.d.ts +1 -1
- package/lib/generated-client/models/media-path-info.d.ts +0 -6
- package/lib/generated-client/models/media-segment-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/media-segment-dto.d.ts +48 -0
- package/lib/generated-client/models/media-segment-type.d.ts +24 -0
- package/lib/generated-client/models/media-segment-type.js +27 -0
- package/lib/generated-client/models/media-source-info.d.ts +29 -11
- package/lib/generated-client/models/media-stream.d.ts +17 -5
- package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
- package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
- package/lib/generated-client/models/movie-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/movie-info.d.ts +2 -2
- package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/music-video-info.d.ts +2 -2
- package/lib/generated-client/models/open-live-stream-dto.d.ts +8 -2
- package/lib/generated-client/models/outbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +85 -29
- package/lib/generated-client/models/package-info.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info.d.ts +2 -2
- package/lib/generated-client/models/play-message.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update.d.ts +4 -4
- package/lib/generated-client/models/play-request.d.ts +1 -1
- package/lib/generated-client/models/playback-info-dto.d.ts +7 -1
- package/lib/generated-client/models/playback-info-response.d.ts +2 -2
- package/lib/generated-client/models/playback-progress-info.d.ts +5 -5
- package/lib/generated-client/models/playback-start-info.d.ts +5 -5
- package/lib/generated-client/models/playback-stop-info.d.ts +2 -2
- package/lib/generated-client/models/player-state-info.d.ts +3 -3
- package/lib/generated-client/models/playlist-dto.d.ts +36 -0
- package/lib/generated-client/models/playstate-message.d.ts +2 -2
- package/lib/generated-client/models/playstate-request.d.ts +1 -1
- package/lib/generated-client/models/plugin-info.d.ts +1 -1
- package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-completed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-failed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installing-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-uninstalled-message.d.ts +2 -2
- package/lib/generated-client/models/problem-details.d.ts +1 -1
- package/lib/generated-client/models/profile-condition.d.ts +2 -2
- package/lib/generated-client/models/query-filters.d.ts +1 -1
- package/lib/generated-client/models/queue-request-dto.d.ts +1 -1
- package/lib/generated-client/models/recommendation-dto.d.ts +2 -2
- package/lib/generated-client/models/refresh-progress-message.d.ts +3 -3
- package/lib/generated-client/models/remote-image-info.d.ts +2 -2
- package/lib/generated-client/models/remote-image-result.d.ts +1 -1
- package/lib/generated-client/models/remote-lyric-info-dto.d.ts +1 -1
- package/lib/generated-client/models/remote-search-result.d.ts +2 -2
- package/lib/generated-client/models/restart-required-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-task-ended-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +1 -1
- package/lib/generated-client/models/search-hint-result.d.ts +1 -1
- package/lib/generated-client/models/search-hint.d.ts +3 -3
- package/lib/generated-client/models/send-command.d.ts +1 -1
- package/lib/generated-client/models/series-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/series-info.d.ts +2 -2
- package/lib/generated-client/models/series-timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/series-timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/server-configuration.d.ts +8 -14
- package/lib/generated-client/models/server-restarting-message.d.ts +1 -1
- package/lib/generated-client/models/server-shutting-down-message.d.ts +1 -1
- package/lib/generated-client/models/session-info-dto.d.ts +199 -0
- package/lib/generated-client/models/session-info.d.ts +8 -8
- package/lib/generated-client/models/sessions-message.d.ts +4 -4
- package/lib/generated-client/models/sessions-start-message.d.ts +1 -1
- package/lib/generated-client/models/sessions-stop-message.d.ts +1 -1
- package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/song-info.d.ts +2 -2
- package/lib/generated-client/models/string-group-update.d.ts +1 -1
- package/lib/generated-client/models/subtitle-profile.d.ts +6 -6
- package/lib/generated-client/models/sync-play-command-message.d.ts +2 -2
- package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +2 -2
- package/lib/generated-client/models/system-info.d.ts +2 -2
- package/lib/generated-client/models/task-info.d.ts +3 -3
- package/lib/generated-client/models/task-result.d.ts +1 -1
- package/lib/generated-client/models/task-trigger-info.d.ts +1 -1
- package/lib/generated-client/models/theme-media-result.d.ts +2 -2
- package/lib/generated-client/models/timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/tonemapping-algorithm.d.ts +26 -0
- package/lib/generated-client/models/tonemapping-algorithm.js +29 -0
- package/lib/generated-client/models/tonemapping-mode.d.ts +23 -0
- package/lib/generated-client/models/tonemapping-mode.js +26 -0
- package/lib/generated-client/models/tonemapping-range.d.ts +21 -0
- package/lib/generated-client/models/tonemapping-range.js +24 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/trailer-info.d.ts +2 -2
- package/lib/generated-client/models/transcode-reason.d.ts +1 -0
- package/lib/generated-client/models/transcode-reason.js +2 -1
- package/lib/generated-client/models/transcoding-info.d.ts +16 -16
- package/lib/generated-client/models/transcoding-profile.d.ts +24 -18
- package/lib/generated-client/models/trickplay-options.d.ts +8 -2
- package/lib/generated-client/models/tuner-host-info.d.ts +18 -0
- package/lib/generated-client/models/type-options.d.ts +1 -1
- package/lib/generated-client/models/update-library-options-dto.d.ts +1 -1
- package/lib/generated-client/models/update-media-path-request-dto.d.ts +1 -1
- package/lib/generated-client/models/update-playlist-dto.d.ts +1 -1
- package/lib/generated-client/models/user-configuration.d.ts +1 -1
- package/lib/generated-client/models/user-data-change-info.d.ts +3 -3
- package/lib/generated-client/models/user-data-changed-message.d.ts +2 -2
- package/lib/generated-client/models/user-deleted-message.d.ts +1 -1
- package/lib/generated-client/models/user-dto.d.ts +2 -2
- package/lib/generated-client/models/user-item-data-dto.d.ts +2 -2
- package/lib/generated-client/models/user-policy.d.ts +3 -3
- package/lib/generated-client/models/user-updated-message.d.ts +2 -2
- package/lib/generated-client/models/virtual-folder-info.d.ts +2 -2
- package/lib/generated-client/models/web-socket-message.d.ts +2 -2
- package/lib/utils/address-candidates.js +15 -10
- package/lib/utils/api/image-urls-api.js +16 -4
- package/lib/utils/api/index.d.ts +1 -0
- package/lib/utils/api/index.js +1 -0
- package/lib/utils/api/media-segments-api.d.ts +8 -0
- package/lib/utils/api/media-segments-api.js +12 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/url/index.d.ts +16 -3
- package/lib/utils/url/index.js +26 -4
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +13 -12
- package/lib/node_modules/tslib/tslib.es6.js +0 -33
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, 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 LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
addMediaPath:
|
|
31
|
+
addMediaPath: async (mediaPathDto, refreshLibrary, options = {}) => {
|
|
33
32
|
// verify required parameter 'mediaPathDto' is not null or undefined
|
|
34
33
|
assertParamExists('addMediaPath', 'mediaPathDto', mediaPathDto);
|
|
35
34
|
const localVarPath = `/Library/VirtualFolders/Paths`;
|
|
@@ -39,24 +38,24 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
39
38
|
if (configuration) {
|
|
40
39
|
baseOptions = configuration.baseOptions;
|
|
41
40
|
}
|
|
42
|
-
const localVarRequestOptions =
|
|
41
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
43
42
|
const localVarHeaderParameter = {};
|
|
44
43
|
const localVarQueryParameter = {};
|
|
45
44
|
// authentication CustomAuthentication required
|
|
46
|
-
|
|
45
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
47
46
|
if (refreshLibrary !== undefined) {
|
|
48
47
|
localVarQueryParameter['refreshLibrary'] = refreshLibrary;
|
|
49
48
|
}
|
|
50
49
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
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
|
localVarRequestOptions.data = serializeDataIfNeeded(mediaPathDto, localVarRequestOptions, configuration);
|
|
55
54
|
return {
|
|
56
55
|
url: toPathString(localVarUrlObj),
|
|
57
56
|
options: localVarRequestOptions,
|
|
58
57
|
};
|
|
59
|
-
}
|
|
58
|
+
},
|
|
60
59
|
/**
|
|
61
60
|
*
|
|
62
61
|
* @summary Adds a virtual folder.
|
|
@@ -68,7 +67,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
68
67
|
* @param {*} [options] Override http request option.
|
|
69
68
|
* @throws {RequiredError}
|
|
70
69
|
*/
|
|
71
|
-
addVirtualFolder:
|
|
70
|
+
addVirtualFolder: async (name, collectionType, paths, refreshLibrary, addVirtualFolderDto, options = {}) => {
|
|
72
71
|
const localVarPath = `/Library/VirtualFolders`;
|
|
73
72
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
74
73
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -76,11 +75,11 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
76
75
|
if (configuration) {
|
|
77
76
|
baseOptions = configuration.baseOptions;
|
|
78
77
|
}
|
|
79
|
-
const localVarRequestOptions =
|
|
78
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
80
79
|
const localVarHeaderParameter = {};
|
|
81
80
|
const localVarQueryParameter = {};
|
|
82
81
|
// authentication CustomAuthentication required
|
|
83
|
-
|
|
82
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
84
83
|
if (name !== undefined) {
|
|
85
84
|
localVarQueryParameter['name'] = name;
|
|
86
85
|
}
|
|
@@ -96,20 +95,20 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
96
95
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
97
96
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
98
97
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
99
|
-
localVarRequestOptions.headers =
|
|
98
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
100
99
|
localVarRequestOptions.data = serializeDataIfNeeded(addVirtualFolderDto, localVarRequestOptions, configuration);
|
|
101
100
|
return {
|
|
102
101
|
url: toPathString(localVarUrlObj),
|
|
103
102
|
options: localVarRequestOptions,
|
|
104
103
|
};
|
|
105
|
-
}
|
|
104
|
+
},
|
|
106
105
|
/**
|
|
107
106
|
*
|
|
108
107
|
* @summary Gets all virtual folders.
|
|
109
108
|
* @param {*} [options] Override http request option.
|
|
110
109
|
* @throws {RequiredError}
|
|
111
110
|
*/
|
|
112
|
-
getVirtualFolders:
|
|
111
|
+
getVirtualFolders: async (options = {}) => {
|
|
113
112
|
const localVarPath = `/Library/VirtualFolders`;
|
|
114
113
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
115
114
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -117,19 +116,19 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
117
116
|
if (configuration) {
|
|
118
117
|
baseOptions = configuration.baseOptions;
|
|
119
118
|
}
|
|
120
|
-
const localVarRequestOptions =
|
|
119
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
121
120
|
const localVarHeaderParameter = {};
|
|
122
121
|
const localVarQueryParameter = {};
|
|
123
122
|
// authentication CustomAuthentication required
|
|
124
|
-
|
|
123
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
125
124
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
126
125
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
|
-
localVarRequestOptions.headers =
|
|
126
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
128
127
|
return {
|
|
129
128
|
url: toPathString(localVarUrlObj),
|
|
130
129
|
options: localVarRequestOptions,
|
|
131
130
|
};
|
|
132
|
-
}
|
|
131
|
+
},
|
|
133
132
|
/**
|
|
134
133
|
*
|
|
135
134
|
* @summary Remove a media path.
|
|
@@ -139,7 +138,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
139
138
|
* @param {*} [options] Override http request option.
|
|
140
139
|
* @throws {RequiredError}
|
|
141
140
|
*/
|
|
142
|
-
removeMediaPath:
|
|
141
|
+
removeMediaPath: async (name, path, refreshLibrary, options = {}) => {
|
|
143
142
|
const localVarPath = `/Library/VirtualFolders/Paths`;
|
|
144
143
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
145
144
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -147,11 +146,11 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
147
146
|
if (configuration) {
|
|
148
147
|
baseOptions = configuration.baseOptions;
|
|
149
148
|
}
|
|
150
|
-
const localVarRequestOptions =
|
|
149
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
151
150
|
const localVarHeaderParameter = {};
|
|
152
151
|
const localVarQueryParameter = {};
|
|
153
152
|
// authentication CustomAuthentication required
|
|
154
|
-
|
|
153
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
155
154
|
if (name !== undefined) {
|
|
156
155
|
localVarQueryParameter['name'] = name;
|
|
157
156
|
}
|
|
@@ -163,12 +162,12 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
163
162
|
}
|
|
164
163
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
165
164
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
166
|
-
localVarRequestOptions.headers =
|
|
165
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
167
166
|
return {
|
|
168
167
|
url: toPathString(localVarUrlObj),
|
|
169
168
|
options: localVarRequestOptions,
|
|
170
169
|
};
|
|
171
|
-
}
|
|
170
|
+
},
|
|
172
171
|
/**
|
|
173
172
|
*
|
|
174
173
|
* @summary Removes a virtual folder.
|
|
@@ -177,7 +176,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
177
176
|
* @param {*} [options] Override http request option.
|
|
178
177
|
* @throws {RequiredError}
|
|
179
178
|
*/
|
|
180
|
-
removeVirtualFolder:
|
|
179
|
+
removeVirtualFolder: async (name, refreshLibrary, options = {}) => {
|
|
181
180
|
const localVarPath = `/Library/VirtualFolders`;
|
|
182
181
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
183
182
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -185,11 +184,11 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
185
184
|
if (configuration) {
|
|
186
185
|
baseOptions = configuration.baseOptions;
|
|
187
186
|
}
|
|
188
|
-
const localVarRequestOptions =
|
|
187
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
189
188
|
const localVarHeaderParameter = {};
|
|
190
189
|
const localVarQueryParameter = {};
|
|
191
190
|
// authentication CustomAuthentication required
|
|
192
|
-
|
|
191
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
193
192
|
if (name !== undefined) {
|
|
194
193
|
localVarQueryParameter['name'] = name;
|
|
195
194
|
}
|
|
@@ -198,12 +197,12 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
198
197
|
}
|
|
199
198
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
200
199
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
-
localVarRequestOptions.headers =
|
|
200
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
202
201
|
return {
|
|
203
202
|
url: toPathString(localVarUrlObj),
|
|
204
203
|
options: localVarRequestOptions,
|
|
205
204
|
};
|
|
206
|
-
}
|
|
205
|
+
},
|
|
207
206
|
/**
|
|
208
207
|
*
|
|
209
208
|
* @summary Renames a virtual folder.
|
|
@@ -213,7 +212,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
213
212
|
* @param {*} [options] Override http request option.
|
|
214
213
|
* @throws {RequiredError}
|
|
215
214
|
*/
|
|
216
|
-
renameVirtualFolder:
|
|
215
|
+
renameVirtualFolder: async (name, newName, refreshLibrary, options = {}) => {
|
|
217
216
|
const localVarPath = `/Library/VirtualFolders/Name`;
|
|
218
217
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
219
218
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -221,11 +220,11 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
221
220
|
if (configuration) {
|
|
222
221
|
baseOptions = configuration.baseOptions;
|
|
223
222
|
}
|
|
224
|
-
const localVarRequestOptions =
|
|
223
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
225
224
|
const localVarHeaderParameter = {};
|
|
226
225
|
const localVarQueryParameter = {};
|
|
227
226
|
// authentication CustomAuthentication required
|
|
228
|
-
|
|
227
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
229
228
|
if (name !== undefined) {
|
|
230
229
|
localVarQueryParameter['name'] = name;
|
|
231
230
|
}
|
|
@@ -237,12 +236,12 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
237
236
|
}
|
|
238
237
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
239
238
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
240
|
-
localVarRequestOptions.headers =
|
|
239
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
241
240
|
return {
|
|
242
241
|
url: toPathString(localVarUrlObj),
|
|
243
242
|
options: localVarRequestOptions,
|
|
244
243
|
};
|
|
245
|
-
}
|
|
244
|
+
},
|
|
246
245
|
/**
|
|
247
246
|
*
|
|
248
247
|
* @summary Update library options.
|
|
@@ -250,7 +249,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
250
249
|
* @param {*} [options] Override http request option.
|
|
251
250
|
* @throws {RequiredError}
|
|
252
251
|
*/
|
|
253
|
-
updateLibraryOptions:
|
|
252
|
+
updateLibraryOptions: async (updateLibraryOptionsDto, options = {}) => {
|
|
254
253
|
const localVarPath = `/Library/VirtualFolders/LibraryOptions`;
|
|
255
254
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
256
255
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -258,21 +257,21 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
258
257
|
if (configuration) {
|
|
259
258
|
baseOptions = configuration.baseOptions;
|
|
260
259
|
}
|
|
261
|
-
const localVarRequestOptions =
|
|
260
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
262
261
|
const localVarHeaderParameter = {};
|
|
263
262
|
const localVarQueryParameter = {};
|
|
264
263
|
// authentication CustomAuthentication required
|
|
265
|
-
|
|
264
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
266
265
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
267
266
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
268
267
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
|
-
localVarRequestOptions.headers =
|
|
268
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
270
269
|
localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryOptionsDto, localVarRequestOptions, configuration);
|
|
271
270
|
return {
|
|
272
271
|
url: toPathString(localVarUrlObj),
|
|
273
272
|
options: localVarRequestOptions,
|
|
274
273
|
};
|
|
275
|
-
}
|
|
274
|
+
},
|
|
276
275
|
/**
|
|
277
276
|
*
|
|
278
277
|
* @summary Updates a media path.
|
|
@@ -280,7 +279,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
280
279
|
* @param {*} [options] Override http request option.
|
|
281
280
|
* @throws {RequiredError}
|
|
282
281
|
*/
|
|
283
|
-
updateMediaPath:
|
|
282
|
+
updateMediaPath: async (updateMediaPathRequestDto, options = {}) => {
|
|
284
283
|
// verify required parameter 'updateMediaPathRequestDto' is not null or undefined
|
|
285
284
|
assertParamExists('updateMediaPath', 'updateMediaPathRequestDto', updateMediaPathRequestDto);
|
|
286
285
|
const localVarPath = `/Library/VirtualFolders/Paths/Update`;
|
|
@@ -290,21 +289,21 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
290
289
|
if (configuration) {
|
|
291
290
|
baseOptions = configuration.baseOptions;
|
|
292
291
|
}
|
|
293
|
-
const localVarRequestOptions =
|
|
292
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
294
293
|
const localVarHeaderParameter = {};
|
|
295
294
|
const localVarQueryParameter = {};
|
|
296
295
|
// authentication CustomAuthentication required
|
|
297
|
-
|
|
296
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
298
297
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
299
298
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
300
299
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
301
|
-
localVarRequestOptions.headers =
|
|
300
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
302
301
|
localVarRequestOptions.data = serializeDataIfNeeded(updateMediaPathRequestDto, localVarRequestOptions, configuration);
|
|
303
302
|
return {
|
|
304
303
|
url: toPathString(localVarUrlObj),
|
|
305
304
|
options: localVarRequestOptions,
|
|
306
305
|
};
|
|
307
|
-
}
|
|
306
|
+
},
|
|
308
307
|
};
|
|
309
308
|
};
|
|
310
309
|
/**
|
|
@@ -322,11 +321,12 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
322
321
|
* @param {*} [options] Override http request option.
|
|
323
322
|
* @throws {RequiredError}
|
|
324
323
|
*/
|
|
325
|
-
addMediaPath(mediaPathDto, refreshLibrary, options) {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
324
|
+
async addMediaPath(mediaPathDto, refreshLibrary, options) {
|
|
325
|
+
var _a, _b, _c;
|
|
326
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addMediaPath(mediaPathDto, refreshLibrary, options);
|
|
327
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
328
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryStructureApi.addMediaPath']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
329
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
330
330
|
},
|
|
331
331
|
/**
|
|
332
332
|
*
|
|
@@ -339,11 +339,12 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
339
339
|
* @param {*} [options] Override http request option.
|
|
340
340
|
* @throws {RequiredError}
|
|
341
341
|
*/
|
|
342
|
-
addVirtualFolder(name, collectionType, paths, refreshLibrary, addVirtualFolderDto, options) {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
342
|
+
async addVirtualFolder(name, collectionType, paths, refreshLibrary, addVirtualFolderDto, options) {
|
|
343
|
+
var _a, _b, _c;
|
|
344
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addVirtualFolder(name, collectionType, paths, refreshLibrary, addVirtualFolderDto, options);
|
|
345
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
346
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryStructureApi.addVirtualFolder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
347
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
347
348
|
},
|
|
348
349
|
/**
|
|
349
350
|
*
|
|
@@ -351,11 +352,12 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
351
352
|
* @param {*} [options] Override http request option.
|
|
352
353
|
* @throws {RequiredError}
|
|
353
354
|
*/
|
|
354
|
-
getVirtualFolders(options) {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
355
|
+
async getVirtualFolders(options) {
|
|
356
|
+
var _a, _b, _c;
|
|
357
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVirtualFolders(options);
|
|
358
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
359
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryStructureApi.getVirtualFolders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
360
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
359
361
|
},
|
|
360
362
|
/**
|
|
361
363
|
*
|
|
@@ -366,11 +368,12 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
366
368
|
* @param {*} [options] Override http request option.
|
|
367
369
|
* @throws {RequiredError}
|
|
368
370
|
*/
|
|
369
|
-
removeMediaPath(name, path, refreshLibrary, options) {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
371
|
+
async removeMediaPath(name, path, refreshLibrary, options) {
|
|
372
|
+
var _a, _b, _c;
|
|
373
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeMediaPath(name, path, refreshLibrary, options);
|
|
374
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
375
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryStructureApi.removeMediaPath']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
376
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
374
377
|
},
|
|
375
378
|
/**
|
|
376
379
|
*
|
|
@@ -380,11 +383,12 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
380
383
|
* @param {*} [options] Override http request option.
|
|
381
384
|
* @throws {RequiredError}
|
|
382
385
|
*/
|
|
383
|
-
removeVirtualFolder(name, refreshLibrary, options) {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
386
|
+
async removeVirtualFolder(name, refreshLibrary, options) {
|
|
387
|
+
var _a, _b, _c;
|
|
388
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeVirtualFolder(name, refreshLibrary, options);
|
|
389
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
390
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryStructureApi.removeVirtualFolder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
391
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
388
392
|
},
|
|
389
393
|
/**
|
|
390
394
|
*
|
|
@@ -395,11 +399,12 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
395
399
|
* @param {*} [options] Override http request option.
|
|
396
400
|
* @throws {RequiredError}
|
|
397
401
|
*/
|
|
398
|
-
renameVirtualFolder(name, newName, refreshLibrary, options) {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
402
|
+
async renameVirtualFolder(name, newName, refreshLibrary, options) {
|
|
403
|
+
var _a, _b, _c;
|
|
404
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.renameVirtualFolder(name, newName, refreshLibrary, options);
|
|
405
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
406
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryStructureApi.renameVirtualFolder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
407
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
403
408
|
},
|
|
404
409
|
/**
|
|
405
410
|
*
|
|
@@ -408,11 +413,12 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
408
413
|
* @param {*} [options] Override http request option.
|
|
409
414
|
* @throws {RequiredError}
|
|
410
415
|
*/
|
|
411
|
-
updateLibraryOptions(updateLibraryOptionsDto, options) {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
+
async updateLibraryOptions(updateLibraryOptionsDto, options) {
|
|
417
|
+
var _a, _b, _c;
|
|
418
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibraryOptions(updateLibraryOptionsDto, options);
|
|
419
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
420
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryStructureApi.updateLibraryOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
421
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
416
422
|
},
|
|
417
423
|
/**
|
|
418
424
|
*
|
|
@@ -421,11 +427,12 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
421
427
|
* @param {*} [options] Override http request option.
|
|
422
428
|
* @throws {RequiredError}
|
|
423
429
|
*/
|
|
424
|
-
updateMediaPath(updateMediaPathRequestDto, options) {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
430
|
+
async updateMediaPath(updateMediaPathRequestDto, options) {
|
|
431
|
+
var _a, _b, _c;
|
|
432
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateMediaPath(updateMediaPathRequestDto, options);
|
|
433
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
434
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryStructureApi.updateMediaPath']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
435
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
429
436
|
},
|
|
430
437
|
};
|
|
431
438
|
};
|
|
@@ -439,27 +446,22 @@ const LibraryStructureApiFactory = function (configuration, basePath, axios) {
|
|
|
439
446
|
/**
|
|
440
447
|
*
|
|
441
448
|
* @summary Add a media path to a library.
|
|
442
|
-
* @param {
|
|
443
|
-
* @param {boolean} [refreshLibrary] Whether to refresh the library.
|
|
449
|
+
* @param {LibraryStructureApiAddMediaPathRequest} requestParameters Request parameters.
|
|
444
450
|
* @param {*} [options] Override http request option.
|
|
445
451
|
* @throws {RequiredError}
|
|
446
452
|
*/
|
|
447
|
-
addMediaPath(
|
|
448
|
-
return localVarFp.addMediaPath(mediaPathDto, refreshLibrary, options).then((request) => request(axios, basePath));
|
|
453
|
+
addMediaPath(requestParameters, options) {
|
|
454
|
+
return localVarFp.addMediaPath(requestParameters.mediaPathDto, requestParameters.refreshLibrary, options).then((request) => request(axios, basePath));
|
|
449
455
|
},
|
|
450
456
|
/**
|
|
451
457
|
*
|
|
452
458
|
* @summary Adds a virtual folder.
|
|
453
|
-
* @param {
|
|
454
|
-
* @param {CollectionTypeOptions} [collectionType] The type of the collection.
|
|
455
|
-
* @param {Array<string>} [paths] The paths of the virtual folder.
|
|
456
|
-
* @param {boolean} [refreshLibrary] Whether to refresh the library.
|
|
457
|
-
* @param {AddVirtualFolderDto} [addVirtualFolderDto] The library options.
|
|
459
|
+
* @param {LibraryStructureApiAddVirtualFolderRequest} requestParameters Request parameters.
|
|
458
460
|
* @param {*} [options] Override http request option.
|
|
459
461
|
* @throws {RequiredError}
|
|
460
462
|
*/
|
|
461
|
-
addVirtualFolder(
|
|
462
|
-
return localVarFp.addVirtualFolder(name, collectionType, paths, refreshLibrary, addVirtualFolderDto, options).then((request) => request(axios, basePath));
|
|
463
|
+
addVirtualFolder(requestParameters = {}, options) {
|
|
464
|
+
return localVarFp.addVirtualFolder(requestParameters.name, requestParameters.collectionType, requestParameters.paths, requestParameters.refreshLibrary, requestParameters.addVirtualFolderDto, options).then((request) => request(axios, basePath));
|
|
463
465
|
},
|
|
464
466
|
/**
|
|
465
467
|
*
|
|
@@ -473,57 +475,52 @@ const LibraryStructureApiFactory = function (configuration, basePath, axios) {
|
|
|
473
475
|
/**
|
|
474
476
|
*
|
|
475
477
|
* @summary Remove a media path.
|
|
476
|
-
* @param {
|
|
477
|
-
* @param {string} [path] The path to remove.
|
|
478
|
-
* @param {boolean} [refreshLibrary] Whether to refresh the library.
|
|
478
|
+
* @param {LibraryStructureApiRemoveMediaPathRequest} requestParameters Request parameters.
|
|
479
479
|
* @param {*} [options] Override http request option.
|
|
480
480
|
* @throws {RequiredError}
|
|
481
481
|
*/
|
|
482
|
-
removeMediaPath(
|
|
483
|
-
return localVarFp.removeMediaPath(name, path, refreshLibrary, options).then((request) => request(axios, basePath));
|
|
482
|
+
removeMediaPath(requestParameters = {}, options) {
|
|
483
|
+
return localVarFp.removeMediaPath(requestParameters.name, requestParameters.path, requestParameters.refreshLibrary, options).then((request) => request(axios, basePath));
|
|
484
484
|
},
|
|
485
485
|
/**
|
|
486
486
|
*
|
|
487
487
|
* @summary Removes a virtual folder.
|
|
488
|
-
* @param {
|
|
489
|
-
* @param {boolean} [refreshLibrary] Whether to refresh the library.
|
|
488
|
+
* @param {LibraryStructureApiRemoveVirtualFolderRequest} requestParameters Request parameters.
|
|
490
489
|
* @param {*} [options] Override http request option.
|
|
491
490
|
* @throws {RequiredError}
|
|
492
491
|
*/
|
|
493
|
-
removeVirtualFolder(
|
|
494
|
-
return localVarFp.removeVirtualFolder(name, refreshLibrary, options).then((request) => request(axios, basePath));
|
|
492
|
+
removeVirtualFolder(requestParameters = {}, options) {
|
|
493
|
+
return localVarFp.removeVirtualFolder(requestParameters.name, requestParameters.refreshLibrary, options).then((request) => request(axios, basePath));
|
|
495
494
|
},
|
|
496
495
|
/**
|
|
497
496
|
*
|
|
498
497
|
* @summary Renames a virtual folder.
|
|
499
|
-
* @param {
|
|
500
|
-
* @param {string} [newName] The new name.
|
|
501
|
-
* @param {boolean} [refreshLibrary] Whether to refresh the library.
|
|
498
|
+
* @param {LibraryStructureApiRenameVirtualFolderRequest} requestParameters Request parameters.
|
|
502
499
|
* @param {*} [options] Override http request option.
|
|
503
500
|
* @throws {RequiredError}
|
|
504
501
|
*/
|
|
505
|
-
renameVirtualFolder(
|
|
506
|
-
return localVarFp.renameVirtualFolder(name, newName, refreshLibrary, options).then((request) => request(axios, basePath));
|
|
502
|
+
renameVirtualFolder(requestParameters = {}, options) {
|
|
503
|
+
return localVarFp.renameVirtualFolder(requestParameters.name, requestParameters.newName, requestParameters.refreshLibrary, options).then((request) => request(axios, basePath));
|
|
507
504
|
},
|
|
508
505
|
/**
|
|
509
506
|
*
|
|
510
507
|
* @summary Update library options.
|
|
511
|
-
* @param {
|
|
508
|
+
* @param {LibraryStructureApiUpdateLibraryOptionsRequest} requestParameters Request parameters.
|
|
512
509
|
* @param {*} [options] Override http request option.
|
|
513
510
|
* @throws {RequiredError}
|
|
514
511
|
*/
|
|
515
|
-
updateLibraryOptions(
|
|
516
|
-
return localVarFp.updateLibraryOptions(updateLibraryOptionsDto, options).then((request) => request(axios, basePath));
|
|
512
|
+
updateLibraryOptions(requestParameters = {}, options) {
|
|
513
|
+
return localVarFp.updateLibraryOptions(requestParameters.updateLibraryOptionsDto, options).then((request) => request(axios, basePath));
|
|
517
514
|
},
|
|
518
515
|
/**
|
|
519
516
|
*
|
|
520
517
|
* @summary Updates a media path.
|
|
521
|
-
* @param {
|
|
518
|
+
* @param {LibraryStructureApiUpdateMediaPathRequest} requestParameters Request parameters.
|
|
522
519
|
* @param {*} [options] Override http request option.
|
|
523
520
|
* @throws {RequiredError}
|
|
524
521
|
*/
|
|
525
|
-
updateMediaPath(
|
|
526
|
-
return localVarFp.updateMediaPath(updateMediaPathRequestDto, options).then((request) => request(axios, basePath));
|
|
522
|
+
updateMediaPath(requestParameters, options) {
|
|
523
|
+
return localVarFp.updateMediaPath(requestParameters.updateMediaPathRequestDto, options).then((request) => request(axios, basePath));
|
|
527
524
|
},
|
|
528
525
|
};
|
|
529
526
|
};
|