@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 { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, assertParamExists, createRequestFunction } from '../common.js';
|
|
4
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
5
4
|
|
|
6
5
|
/* tslint:disable */
|
|
7
6
|
/* eslint-disable */
|
|
@@ -27,7 +26,7 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
getAllChannelFeatures:
|
|
29
|
+
getAllChannelFeatures: async (options = {}) => {
|
|
31
30
|
const localVarPath = `/Channels/Features`;
|
|
32
31
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33
32
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -35,19 +34,19 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
35
34
|
if (configuration) {
|
|
36
35
|
baseOptions = configuration.baseOptions;
|
|
37
36
|
}
|
|
38
|
-
const localVarRequestOptions =
|
|
37
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
39
38
|
const localVarHeaderParameter = {};
|
|
40
39
|
const localVarQueryParameter = {};
|
|
41
40
|
// authentication CustomAuthentication required
|
|
42
|
-
|
|
41
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
43
42
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44
43
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45
|
-
localVarRequestOptions.headers =
|
|
44
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
46
45
|
return {
|
|
47
46
|
url: toPathString(localVarUrlObj),
|
|
48
47
|
options: localVarRequestOptions,
|
|
49
48
|
};
|
|
50
|
-
}
|
|
49
|
+
},
|
|
51
50
|
/**
|
|
52
51
|
*
|
|
53
52
|
* @summary Get channel features.
|
|
@@ -55,7 +54,7 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
55
54
|
* @param {*} [options] Override http request option.
|
|
56
55
|
* @throws {RequiredError}
|
|
57
56
|
*/
|
|
58
|
-
getChannelFeatures:
|
|
57
|
+
getChannelFeatures: async (channelId, options = {}) => {
|
|
59
58
|
// verify required parameter 'channelId' is not null or undefined
|
|
60
59
|
assertParamExists('getChannelFeatures', 'channelId', channelId);
|
|
61
60
|
const localVarPath = `/Channels/{channelId}/Features`
|
|
@@ -66,19 +65,19 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
66
65
|
if (configuration) {
|
|
67
66
|
baseOptions = configuration.baseOptions;
|
|
68
67
|
}
|
|
69
|
-
const localVarRequestOptions =
|
|
68
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
70
69
|
const localVarHeaderParameter = {};
|
|
71
70
|
const localVarQueryParameter = {};
|
|
72
71
|
// authentication CustomAuthentication required
|
|
73
|
-
|
|
72
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
74
73
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
74
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
-
localVarRequestOptions.headers =
|
|
75
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
77
76
|
return {
|
|
78
77
|
url: toPathString(localVarUrlObj),
|
|
79
78
|
options: localVarRequestOptions,
|
|
80
79
|
};
|
|
81
|
-
}
|
|
80
|
+
},
|
|
82
81
|
/**
|
|
83
82
|
*
|
|
84
83
|
* @summary Get channel items.
|
|
@@ -94,7 +93,7 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
94
93
|
* @param {*} [options] Override http request option.
|
|
95
94
|
* @throws {RequiredError}
|
|
96
95
|
*/
|
|
97
|
-
getChannelItems:
|
|
96
|
+
getChannelItems: async (channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options = {}) => {
|
|
98
97
|
// verify required parameter 'channelId' is not null or undefined
|
|
99
98
|
assertParamExists('getChannelItems', 'channelId', channelId);
|
|
100
99
|
const localVarPath = `/Channels/{channelId}/Items`
|
|
@@ -105,11 +104,11 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
105
104
|
if (configuration) {
|
|
106
105
|
baseOptions = configuration.baseOptions;
|
|
107
106
|
}
|
|
108
|
-
const localVarRequestOptions =
|
|
107
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
109
108
|
const localVarHeaderParameter = {};
|
|
110
109
|
const localVarQueryParameter = {};
|
|
111
110
|
// authentication CustomAuthentication required
|
|
112
|
-
|
|
111
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
113
112
|
if (folderId !== undefined) {
|
|
114
113
|
localVarQueryParameter['folderId'] = folderId;
|
|
115
114
|
}
|
|
@@ -136,12 +135,12 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
136
135
|
}
|
|
137
136
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
138
137
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
139
|
-
localVarRequestOptions.headers =
|
|
138
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
140
139
|
return {
|
|
141
140
|
url: toPathString(localVarUrlObj),
|
|
142
141
|
options: localVarRequestOptions,
|
|
143
142
|
};
|
|
144
|
-
}
|
|
143
|
+
},
|
|
145
144
|
/**
|
|
146
145
|
*
|
|
147
146
|
* @summary Gets available channels.
|
|
@@ -154,7 +153,7 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
154
153
|
* @param {*} [options] Override http request option.
|
|
155
154
|
* @throws {RequiredError}
|
|
156
155
|
*/
|
|
157
|
-
getChannels:
|
|
156
|
+
getChannels: async (userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options = {}) => {
|
|
158
157
|
const localVarPath = `/Channels`;
|
|
159
158
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
160
159
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -162,11 +161,11 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
162
161
|
if (configuration) {
|
|
163
162
|
baseOptions = configuration.baseOptions;
|
|
164
163
|
}
|
|
165
|
-
const localVarRequestOptions =
|
|
164
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
166
165
|
const localVarHeaderParameter = {};
|
|
167
166
|
const localVarQueryParameter = {};
|
|
168
167
|
// authentication CustomAuthentication required
|
|
169
|
-
|
|
168
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
170
169
|
if (userId !== undefined) {
|
|
171
170
|
localVarQueryParameter['userId'] = userId;
|
|
172
171
|
}
|
|
@@ -187,12 +186,12 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
187
186
|
}
|
|
188
187
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
189
188
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
190
|
-
localVarRequestOptions.headers =
|
|
189
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
191
190
|
return {
|
|
192
191
|
url: toPathString(localVarUrlObj),
|
|
193
192
|
options: localVarRequestOptions,
|
|
194
193
|
};
|
|
195
|
-
}
|
|
194
|
+
},
|
|
196
195
|
/**
|
|
197
196
|
*
|
|
198
197
|
* @summary Gets latest channel items.
|
|
@@ -205,7 +204,7 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
205
204
|
* @param {*} [options] Override http request option.
|
|
206
205
|
* @throws {RequiredError}
|
|
207
206
|
*/
|
|
208
|
-
getLatestChannelItems:
|
|
207
|
+
getLatestChannelItems: async (userId, startIndex, limit, filters, fields, channelIds, options = {}) => {
|
|
209
208
|
const localVarPath = `/Channels/Items/Latest`;
|
|
210
209
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
211
210
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -213,11 +212,11 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
213
212
|
if (configuration) {
|
|
214
213
|
baseOptions = configuration.baseOptions;
|
|
215
214
|
}
|
|
216
|
-
const localVarRequestOptions =
|
|
215
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
217
216
|
const localVarHeaderParameter = {};
|
|
218
217
|
const localVarQueryParameter = {};
|
|
219
218
|
// authentication CustomAuthentication required
|
|
220
|
-
|
|
219
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
221
220
|
if (userId !== undefined) {
|
|
222
221
|
localVarQueryParameter['userId'] = userId;
|
|
223
222
|
}
|
|
@@ -238,12 +237,12 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
238
237
|
}
|
|
239
238
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
240
239
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
241
|
-
localVarRequestOptions.headers =
|
|
240
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
242
241
|
return {
|
|
243
242
|
url: toPathString(localVarUrlObj),
|
|
244
243
|
options: localVarRequestOptions,
|
|
245
244
|
};
|
|
246
|
-
}
|
|
245
|
+
},
|
|
247
246
|
};
|
|
248
247
|
};
|
|
249
248
|
/**
|
|
@@ -259,11 +258,12 @@ const ChannelsApiFp = function (configuration) {
|
|
|
259
258
|
* @param {*} [options] Override http request option.
|
|
260
259
|
* @throws {RequiredError}
|
|
261
260
|
*/
|
|
262
|
-
getAllChannelFeatures(options) {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
261
|
+
async getAllChannelFeatures(options) {
|
|
262
|
+
var _a, _b, _c;
|
|
263
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllChannelFeatures(options);
|
|
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['ChannelsApi.getAllChannelFeatures']) === 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);
|
|
267
267
|
},
|
|
268
268
|
/**
|
|
269
269
|
*
|
|
@@ -272,11 +272,12 @@ const ChannelsApiFp = function (configuration) {
|
|
|
272
272
|
* @param {*} [options] Override http request option.
|
|
273
273
|
* @throws {RequiredError}
|
|
274
274
|
*/
|
|
275
|
-
getChannelFeatures(channelId, options) {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
275
|
+
async getChannelFeatures(channelId, options) {
|
|
276
|
+
var _a, _b, _c;
|
|
277
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getChannelFeatures(channelId, options);
|
|
278
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
279
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChannelsApi.getChannelFeatures']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
280
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
280
281
|
},
|
|
281
282
|
/**
|
|
282
283
|
*
|
|
@@ -293,11 +294,12 @@ const ChannelsApiFp = function (configuration) {
|
|
|
293
294
|
* @param {*} [options] Override http request option.
|
|
294
295
|
* @throws {RequiredError}
|
|
295
296
|
*/
|
|
296
|
-
getChannelItems(channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options) {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
297
|
+
async getChannelItems(channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options) {
|
|
298
|
+
var _a, _b, _c;
|
|
299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getChannelItems(channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options);
|
|
300
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
301
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChannelsApi.getChannelItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
302
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
301
303
|
},
|
|
302
304
|
/**
|
|
303
305
|
*
|
|
@@ -311,11 +313,12 @@ const ChannelsApiFp = function (configuration) {
|
|
|
311
313
|
* @param {*} [options] Override http request option.
|
|
312
314
|
* @throws {RequiredError}
|
|
313
315
|
*/
|
|
314
|
-
getChannels(userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options) {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
316
|
+
async getChannels(userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options) {
|
|
317
|
+
var _a, _b, _c;
|
|
318
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getChannels(userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options);
|
|
319
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
320
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChannelsApi.getChannels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
321
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
319
322
|
},
|
|
320
323
|
/**
|
|
321
324
|
*
|
|
@@ -329,11 +332,12 @@ const ChannelsApiFp = function (configuration) {
|
|
|
329
332
|
* @param {*} [options] Override http request option.
|
|
330
333
|
* @throws {RequiredError}
|
|
331
334
|
*/
|
|
332
|
-
getLatestChannelItems(userId, startIndex, limit, filters, fields, channelIds, options) {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
async getLatestChannelItems(userId, startIndex, limit, filters, fields, channelIds, options) {
|
|
336
|
+
var _a, _b, _c;
|
|
337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLatestChannelItems(userId, startIndex, limit, filters, fields, channelIds, options);
|
|
338
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
339
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChannelsApi.getLatestChannelItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
340
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
337
341
|
},
|
|
338
342
|
};
|
|
339
343
|
};
|
|
@@ -356,60 +360,42 @@ const ChannelsApiFactory = function (configuration, basePath, axios) {
|
|
|
356
360
|
/**
|
|
357
361
|
*
|
|
358
362
|
* @summary Get channel features.
|
|
359
|
-
* @param {
|
|
363
|
+
* @param {ChannelsApiGetChannelFeaturesRequest} requestParameters Request parameters.
|
|
360
364
|
* @param {*} [options] Override http request option.
|
|
361
365
|
* @throws {RequiredError}
|
|
362
366
|
*/
|
|
363
|
-
getChannelFeatures(
|
|
364
|
-
return localVarFp.getChannelFeatures(channelId, options).then((request) => request(axios, basePath));
|
|
367
|
+
getChannelFeatures(requestParameters, options) {
|
|
368
|
+
return localVarFp.getChannelFeatures(requestParameters.channelId, options).then((request) => request(axios, basePath));
|
|
365
369
|
},
|
|
366
370
|
/**
|
|
367
371
|
*
|
|
368
372
|
* @summary Get channel items.
|
|
369
|
-
* @param {
|
|
370
|
-
* @param {string} [folderId] Optional. Folder Id.
|
|
371
|
-
* @param {string} [userId] Optional. User Id.
|
|
372
|
-
* @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
|
|
373
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
374
|
-
* @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending,Descending.
|
|
375
|
-
* @param {Array<ItemFilter>} [filters] Optional. Specify additional filters to apply.
|
|
376
|
-
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
377
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
373
|
+
* @param {ChannelsApiGetChannelItemsRequest} requestParameters Request parameters.
|
|
378
374
|
* @param {*} [options] Override http request option.
|
|
379
375
|
* @throws {RequiredError}
|
|
380
376
|
*/
|
|
381
|
-
getChannelItems(
|
|
382
|
-
return localVarFp.getChannelItems(channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options).then((request) => request(axios, basePath));
|
|
377
|
+
getChannelItems(requestParameters, options) {
|
|
378
|
+
return localVarFp.getChannelItems(requestParameters.channelId, requestParameters.folderId, requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.sortOrder, requestParameters.filters, requestParameters.sortBy, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
383
379
|
},
|
|
384
380
|
/**
|
|
385
381
|
*
|
|
386
382
|
* @summary Gets available channels.
|
|
387
|
-
* @param {
|
|
388
|
-
* @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
|
|
389
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
390
|
-
* @param {boolean} [supportsLatestItems] Optional. Filter by channels that support getting latest items.
|
|
391
|
-
* @param {boolean} [supportsMediaDeletion] Optional. Filter by channels that support media deletion.
|
|
392
|
-
* @param {boolean} [isFavorite] Optional. Filter by channels that are favorite.
|
|
383
|
+
* @param {ChannelsApiGetChannelsRequest} requestParameters Request parameters.
|
|
393
384
|
* @param {*} [options] Override http request option.
|
|
394
385
|
* @throws {RequiredError}
|
|
395
386
|
*/
|
|
396
|
-
getChannels(
|
|
397
|
-
return localVarFp.getChannels(userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options).then((request) => request(axios, basePath));
|
|
387
|
+
getChannels(requestParameters = {}, options) {
|
|
388
|
+
return localVarFp.getChannels(requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.supportsLatestItems, requestParameters.supportsMediaDeletion, requestParameters.isFavorite, options).then((request) => request(axios, basePath));
|
|
398
389
|
},
|
|
399
390
|
/**
|
|
400
391
|
*
|
|
401
392
|
* @summary Gets latest channel items.
|
|
402
|
-
* @param {
|
|
403
|
-
* @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
|
|
404
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
405
|
-
* @param {Array<ItemFilter>} [filters] Optional. Specify additional filters to apply.
|
|
406
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
407
|
-
* @param {Array<string>} [channelIds] Optional. Specify one or more channel id\'s, comma delimited.
|
|
393
|
+
* @param {ChannelsApiGetLatestChannelItemsRequest} requestParameters Request parameters.
|
|
408
394
|
* @param {*} [options] Override http request option.
|
|
409
395
|
* @throws {RequiredError}
|
|
410
396
|
*/
|
|
411
|
-
getLatestChannelItems(
|
|
412
|
-
return localVarFp.getLatestChannelItems(userId, startIndex, limit, filters, fields, channelIds, options).then((request) => request(axios, basePath));
|
|
397
|
+
getLatestChannelItems(requestParameters = {}, options) {
|
|
398
|
+
return localVarFp.getLatestChannelItems(requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.filters, requestParameters.fields, requestParameters.channelIds, options).then((request) => request(axios, basePath));
|
|
413
399
|
},
|
|
414
400
|
};
|
|
415
401
|
};
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
9
9
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
14
|
-
import { ClientLogDocumentResponseDto } 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 { ClientLogDocumentResponseDto } from '../models';
|
|
15
15
|
/**
|
|
16
16
|
* ClientLogApi - axios parameter creator
|
|
17
17
|
* @export
|
|
@@ -20,11 +20,11 @@ export declare const ClientLogApiAxiosParamCreator: (configuration?: Configurati
|
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
* @summary Upload a document.
|
|
23
|
-
* @param {
|
|
23
|
+
* @param {File} [body]
|
|
24
24
|
* @param {*} [options] Override http request option.
|
|
25
25
|
* @throws {RequiredError}
|
|
26
26
|
*/
|
|
27
|
-
logFile: (body?:
|
|
27
|
+
logFile: (body?: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* ClientLogApi - functional programming interface
|
|
@@ -34,11 +34,11 @@ export declare const ClientLogApiFp: (configuration?: Configuration) => {
|
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @summary Upload a document.
|
|
37
|
-
* @param {
|
|
37
|
+
* @param {File} [body]
|
|
38
38
|
* @param {*} [options] Override http request option.
|
|
39
39
|
* @throws {RequiredError}
|
|
40
40
|
*/
|
|
41
|
-
logFile(body?:
|
|
41
|
+
logFile(body?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientLogDocumentResponseDto>>;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* ClientLogApi - factory interface
|
|
@@ -48,11 +48,11 @@ export declare const ClientLogApiFactory: (configuration?: Configuration, basePa
|
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @summary Upload a document.
|
|
51
|
-
* @param {
|
|
51
|
+
* @param {ClientLogApiLogFileRequest} requestParameters Request parameters.
|
|
52
52
|
* @param {*} [options] Override http request option.
|
|
53
53
|
* @throws {RequiredError}
|
|
54
54
|
*/
|
|
55
|
-
logFile(
|
|
55
|
+
logFile(requestParameters?: ClientLogApiLogFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientLogDocumentResponseDto>;
|
|
56
56
|
};
|
|
57
57
|
/**
|
|
58
58
|
* Request parameters for logFile operation in ClientLogApi.
|
|
@@ -62,10 +62,10 @@ export declare const ClientLogApiFactory: (configuration?: Configuration, basePa
|
|
|
62
62
|
export interface ClientLogApiLogFileRequest {
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
|
-
* @type {
|
|
65
|
+
* @type {File}
|
|
66
66
|
* @memberof ClientLogApiLogFile
|
|
67
67
|
*/
|
|
68
|
-
readonly body?:
|
|
68
|
+
readonly body?: File;
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* ClientLogApi - object-oriented interface
|
|
@@ -82,5 +82,5 @@ export declare class ClientLogApi extends BaseAPI {
|
|
|
82
82
|
* @throws {RequiredError}
|
|
83
83
|
* @memberof ClientLogApi
|
|
84
84
|
*/
|
|
85
|
-
logFile(requestParameters?: ClientLogApiLogFileRequest, options?:
|
|
85
|
+
logFile(requestParameters?: ClientLogApiLogFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientLogDocumentResponseDto, any>>;
|
|
86
86
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, 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 */
|
|
@@ -24,11 +23,11 @@ const ClientLogApiAxiosParamCreator = function (configuration) {
|
|
|
24
23
|
/**
|
|
25
24
|
*
|
|
26
25
|
* @summary Upload a document.
|
|
27
|
-
* @param {
|
|
26
|
+
* @param {File} [body]
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
logFile:
|
|
30
|
+
logFile: async (body, options = {}) => {
|
|
32
31
|
const localVarPath = `/ClientLog/Document`;
|
|
33
32
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34
33
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -36,21 +35,21 @@ const ClientLogApiAxiosParamCreator = function (configuration) {
|
|
|
36
35
|
if (configuration) {
|
|
37
36
|
baseOptions = configuration.baseOptions;
|
|
38
37
|
}
|
|
39
|
-
const localVarRequestOptions =
|
|
38
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
40
39
|
const localVarHeaderParameter = {};
|
|
41
40
|
const localVarQueryParameter = {};
|
|
42
41
|
// authentication CustomAuthentication required
|
|
43
|
-
|
|
42
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
44
43
|
localVarHeaderParameter['Content-Type'] = 'text/plain';
|
|
45
44
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46
45
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
47
|
-
localVarRequestOptions.headers =
|
|
46
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
48
47
|
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
49
48
|
return {
|
|
50
49
|
url: toPathString(localVarUrlObj),
|
|
51
50
|
options: localVarRequestOptions,
|
|
52
51
|
};
|
|
53
|
-
}
|
|
52
|
+
},
|
|
54
53
|
};
|
|
55
54
|
};
|
|
56
55
|
/**
|
|
@@ -63,15 +62,16 @@ const ClientLogApiFp = function (configuration) {
|
|
|
63
62
|
/**
|
|
64
63
|
*
|
|
65
64
|
* @summary Upload a document.
|
|
66
|
-
* @param {
|
|
65
|
+
* @param {File} [body]
|
|
67
66
|
* @param {*} [options] Override http request option.
|
|
68
67
|
* @throws {RequiredError}
|
|
69
68
|
*/
|
|
70
|
-
logFile(body, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
async logFile(body, options) {
|
|
70
|
+
var _a, _b, _c;
|
|
71
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.logFile(body, options);
|
|
72
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
73
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientLogApi.logFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
74
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
75
75
|
},
|
|
76
76
|
};
|
|
77
77
|
};
|
|
@@ -85,12 +85,12 @@ const ClientLogApiFactory = function (configuration, basePath, axios) {
|
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @summary Upload a document.
|
|
88
|
-
* @param {
|
|
88
|
+
* @param {ClientLogApiLogFileRequest} requestParameters Request parameters.
|
|
89
89
|
* @param {*} [options] Override http request option.
|
|
90
90
|
* @throws {RequiredError}
|
|
91
91
|
*/
|
|
92
|
-
logFile(
|
|
93
|
-
return localVarFp.logFile(body, options).then((request) => request(axios, basePath));
|
|
92
|
+
logFile(requestParameters = {}, options) {
|
|
93
|
+
return localVarFp.logFile(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
94
94
|
},
|
|
95
95
|
};
|
|
96
96
|
};
|