@jellyfin/sdk 0.8.2 → 0.9.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 +9 -4
- package/lib/api.d.ts +1 -0
- package/lib/api.js +4 -4
- package/lib/discovery/recommended-server-discovery.js +24 -16
- package/lib/generated-client/api/activity-log-api.js +12 -1
- package/lib/generated-client/api/api-key-api.js +14 -3
- package/lib/generated-client/api/artists-api.d.ts +28 -26
- package/lib/generated-client/api/artists-api.js +26 -15
- package/lib/generated-client/api/audio-api.d.ts +8 -8
- package/lib/generated-client/api/audio-api.js +21 -10
- package/lib/generated-client/api/branding-api.js +14 -3
- package/lib/generated-client/api/channels-api.d.ts +9 -8
- package/lib/generated-client/api/channels-api.js +19 -8
- package/lib/generated-client/api/client-log-api.js +12 -1
- package/lib/generated-client/api/collection-api.js +14 -3
- package/lib/generated-client/api/configuration-api.d.ts +0 -47
- package/lib/generated-client/api/configuration-api.js +16 -71
- package/lib/generated-client/api/dashboard-api.js +13 -2
- package/lib/generated-client/api/devices-api.d.ts +3 -12
- package/lib/generated-client/api/devices-api.js +21 -16
- package/lib/generated-client/api/display-preferences-api.d.ts +22 -22
- package/lib/generated-client/api/display-preferences-api.js +29 -22
- package/lib/generated-client/api/dynamic-hls-api.d.ts +28 -10
- package/lib/generated-client/api/dynamic-hls-api.js +45 -22
- package/lib/generated-client/api/environment-api.js +17 -6
- package/lib/generated-client/api/filter-api.d.ts +9 -8
- package/lib/generated-client/api/filter-api.js +16 -5
- package/lib/generated-client/api/genres-api.d.ts +9 -8
- package/lib/generated-client/api/genres-api.js +16 -5
- package/lib/generated-client/api/hls-segment-api.js +16 -5
- package/lib/generated-client/api/image-api.d.ts +109 -1184
- package/lib/generated-client/api/image-api.js +218 -1056
- package/lib/generated-client/api/instant-mix-api.d.ts +35 -35
- package/lib/generated-client/api/instant-mix-api.js +79 -68
- package/lib/generated-client/api/item-lookup-api.js +22 -11
- package/lib/generated-client/api/item-refresh-api.js +12 -1
- package/lib/generated-client/api/item-update-api.js +14 -3
- package/lib/generated-client/api/items-api.d.ts +333 -1012
- package/lib/generated-client/api/items-api.js +178 -595
- package/lib/generated-client/api/library-api.d.ts +9 -8
- package/lib/generated-client/api/library-api.js +39 -28
- package/lib/generated-client/api/library-structure-api.js +19 -8
- package/lib/generated-client/api/live-tv-api.d.ts +17 -16
- package/lib/generated-client/api/live-tv-api.js +58 -47
- package/lib/generated-client/api/localization-api.js +15 -4
- package/lib/generated-client/api/lyrics-api.d.ts +344 -0
- package/lib/generated-client/api/{dlna-api.js → lyrics-api.js} +165 -125
- package/lib/generated-client/api/media-info-api.d.ts +7 -7
- package/lib/generated-client/api/media-info-api.js +19 -10
- package/lib/generated-client/api/movies-api.js +12 -1
- package/lib/generated-client/api/music-genres-api.d.ts +9 -8
- package/lib/generated-client/api/music-genres-api.js +16 -5
- package/lib/generated-client/api/package-api.js +17 -6
- package/lib/generated-client/api/persons-api.js +13 -2
- package/lib/generated-client/api/playlists-api.d.ts +315 -36
- package/lib/generated-client/api/playlists-api.js +395 -29
- package/lib/generated-client/api/playstate-api.d.ts +41 -68
- package/lib/generated-client/api/playstate-api.js +74 -81
- package/lib/generated-client/api/plugins-api.js +20 -9
- package/lib/generated-client/api/quick-connect-api.d.ts +46 -37
- package/lib/generated-client/api/quick-connect-api.js +67 -50
- package/lib/generated-client/api/remote-image-api.js +14 -3
- package/lib/generated-client/api/scheduled-tasks-api.js +16 -5
- package/lib/generated-client/api/search-api.d.ts +41 -40
- package/lib/generated-client/api/search-api.js +29 -18
- package/lib/generated-client/api/session-api.d.ts +9 -17
- package/lib/generated-client/api/session-api.js +35 -30
- package/lib/generated-client/api/startup-api.js +18 -7
- package/lib/generated-client/api/studios-api.js +13 -2
- package/lib/generated-client/api/subtitle-api.d.ts +7 -7
- package/lib/generated-client/api/subtitle-api.js +33 -22
- package/lib/generated-client/api/suggestions-api.d.ts +14 -13
- package/lib/generated-client/api/suggestions-api.js +24 -13
- package/lib/generated-client/api/sync-play-api.js +32 -21
- package/lib/generated-client/api/system-api.js +21 -10
- package/lib/generated-client/api/time-sync-api.js +12 -1
- package/lib/generated-client/api/tmdb-api.js +12 -1
- package/lib/generated-client/api/trailers-api.d.ts +35 -33
- package/lib/generated-client/api/trailers-api.js +33 -22
- package/lib/generated-client/api/trickplay-api.d.ts +176 -0
- package/lib/generated-client/api/trickplay-api.js +213 -0
- package/lib/generated-client/api/tv-shows-api.d.ts +25 -15
- package/lib/generated-client/api/tv-shows-api.js +32 -15
- package/lib/generated-client/api/universal-audio-api.d.ts +17 -16
- package/lib/generated-client/api/universal-audio-api.js +19 -8
- package/lib/generated-client/api/user-api.d.ts +35 -155
- package/lib/generated-client/api/user-api.js +65 -203
- package/lib/generated-client/api/user-library-api.d.ts +100 -100
- package/lib/generated-client/api/user-library-api.js +136 -125
- package/lib/generated-client/api/user-views-api.d.ts +22 -21
- package/lib/generated-client/api/user-views-api.js +33 -22
- package/lib/generated-client/api/video-attachments-api.js +12 -1
- package/lib/generated-client/api/videos-api.js +18 -7
- package/lib/generated-client/api/years-api.d.ts +15 -13
- package/lib/generated-client/api/years-api.js +19 -8
- package/lib/generated-client/api.d.ts +2 -4
- package/lib/generated-client/base.js +13 -0
- package/lib/generated-client/common.js +11 -0
- package/lib/generated-client/index.js +19 -10
- package/lib/generated-client/models/activity-log-entry-message.d.ts +37 -0
- package/lib/generated-client/models/activity-log-entry-start-message.d.ts +30 -0
- package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +24 -0
- package/lib/generated-client/models/audio-spatial-format.d.ts +21 -0
- package/lib/generated-client/models/audio-spatial-format.js +24 -0
- package/lib/generated-client/models/authenticate-user-by-name.d.ts +0 -7
- package/lib/generated-client/models/base-item-dto.d.ts +37 -17
- package/lib/generated-client/models/base-item-person.d.ts +4 -3
- package/lib/generated-client/models/cast-receiver-application.d.ts +29 -0
- package/lib/generated-client/models/client-capabilities-dto.d.ts +17 -20
- package/lib/generated-client/models/client-capabilities.d.ts +16 -19
- package/lib/generated-client/models/collection-type-options.d.ts +9 -9
- package/lib/generated-client/models/collection-type-options.js +9 -9
- package/lib/generated-client/models/collection-type.d.ts +31 -0
- package/lib/generated-client/models/collection-type.js +34 -0
- package/lib/generated-client/models/container-profile.d.ts +1 -1
- package/lib/generated-client/models/create-playlist-dto.d.ts +18 -4
- package/lib/generated-client/models/create-user-by-name.d.ts +1 -1
- package/lib/generated-client/models/device-info.d.ts +6 -0
- package/lib/generated-client/models/device-profile.d.ts +0 -171
- package/lib/generated-client/models/dlna-profile-type.d.ts +1 -0
- package/lib/generated-client/models/dlna-profile-type.js +2 -1
- package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +21 -0
- package/lib/generated-client/models/down-mix-stereo-algorithms.js +24 -0
- package/lib/generated-client/models/encoding-options.d.ts +77 -40
- package/lib/generated-client/models/external-id-media-type.d.ts +1 -0
- package/lib/generated-client/models/external-id-media-type.js +2 -1
- package/lib/generated-client/models/extra-type.d.ts +30 -0
- package/lib/generated-client/models/extra-type.js +33 -0
- package/lib/generated-client/models/force-keep-alive-message.d.ts +36 -0
- package/lib/generated-client/models/general-command-message.d.ts +37 -0
- package/lib/generated-client/models/general-command-type.d.ts +1 -0
- package/lib/generated-client/models/general-command-type.js +2 -1
- package/lib/generated-client/models/get-programs-dto.d.ts +4 -3
- package/lib/generated-client/models/group-info-dto-group-update.d.ts +37 -0
- package/lib/generated-client/models/group-state-update-group-update.d.ts +37 -0
- package/lib/generated-client/models/group-state-update.d.ts +31 -0
- package/lib/generated-client/models/group-update.d.ts +20 -0
- package/lib/generated-client/models/hardware-encoding-type.d.ts +1 -0
- package/lib/generated-client/models/hardware-encoding-type.js +2 -1
- package/lib/generated-client/models/image-format.d.ts +1 -0
- package/lib/generated-client/models/image-format.js +2 -1
- package/lib/generated-client/models/image-resolution.d.ts +27 -0
- package/lib/generated-client/models/{ffmpeg-location.js → image-resolution.js} +12 -7
- package/lib/generated-client/models/inbound-keep-alive-message.d.ts +24 -0
- package/lib/generated-client/models/inbound-web-socket-message.d.ts +23 -0
- package/lib/generated-client/models/index.d.ts +74 -25
- package/lib/generated-client/models/index.js +17 -6
- package/lib/generated-client/models/item-fields.d.ts +1 -2
- package/lib/generated-client/models/item-fields.js +1 -2
- package/lib/generated-client/models/item-sort-by.d.ts +50 -0
- package/lib/generated-client/models/item-sort-by.js +53 -0
- package/lib/generated-client/models/library-changed-message.d.ts +37 -0
- package/lib/generated-client/models/library-options.d.ts +36 -0
- package/lib/generated-client/models/live-tv-options.d.ts +12 -0
- package/lib/generated-client/models/log-file.d.ts +1 -1
- package/lib/generated-client/models/lyric-dto.d.ts +31 -0
- package/lib/generated-client/models/lyric-line.d.ts +29 -0
- package/lib/generated-client/models/lyric-metadata.d.ts +77 -0
- package/lib/generated-client/models/media-source-info.d.ts +3 -2
- package/lib/generated-client/models/media-stream-protocol.d.ts +20 -0
- package/lib/generated-client/models/{header-match-type.js → media-stream-protocol.js} +5 -6
- package/lib/generated-client/models/media-stream-type.d.ts +1 -0
- package/lib/generated-client/models/media-stream-type.js +2 -1
- package/lib/generated-client/models/media-stream.d.ts +27 -6
- package/lib/generated-client/models/media-type.d.ts +23 -0
- package/lib/generated-client/models/{architecture.js → media-type.js} +8 -9
- package/lib/generated-client/models/metadata-editor-info.d.ts +3 -2
- package/lib/generated-client/models/network-configuration.d.ts +50 -116
- package/lib/generated-client/models/outbound-keep-alive-message.d.ts +30 -0
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +44 -0
- package/lib/generated-client/models/parental-rating.d.ts +1 -1
- package/lib/generated-client/models/person-kind.d.ts +43 -0
- package/lib/generated-client/models/person-kind.js +46 -0
- package/lib/generated-client/models/play-message.d.ts +37 -0
- package/lib/generated-client/models/play-queue-update-group-update.d.ts +37 -0
- package/lib/generated-client/models/play-queue-update-reason.d.ts +28 -0
- package/lib/generated-client/models/play-queue-update-reason.js +31 -0
- package/lib/generated-client/models/play-queue-update.d.ts +69 -0
- package/lib/generated-client/models/playback-order.d.ts +20 -0
- package/lib/generated-client/models/{send-to-user-type.js → playback-order.js} +5 -6
- package/lib/generated-client/models/playback-progress-info.d.ts +7 -0
- package/lib/generated-client/models/playback-request-type.d.ts +35 -0
- package/lib/generated-client/models/playback-request-type.js +38 -0
- package/lib/generated-client/models/playback-start-info.d.ts +7 -0
- package/lib/generated-client/models/player-state-info.d.ts +7 -0
- package/lib/generated-client/models/playlist-user-permissions.d.ts +29 -0
- package/lib/generated-client/models/playstate-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-installation-completed-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-installation-failed-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-installing-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-uninstalled-message.d.ts +37 -0
- package/lib/generated-client/models/process-priority-class.d.ts +24 -0
- package/lib/generated-client/models/process-priority-class.js +27 -0
- package/lib/generated-client/models/public-system-info.d.ts +1 -0
- package/lib/generated-client/models/refresh-progress-message.d.ts +38 -0
- package/lib/generated-client/models/remote-lyric-info-dto.d.ts +36 -0
- package/lib/generated-client/models/remote-subtitle-info.d.ts +30 -0
- package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +1 -1
- package/lib/generated-client/models/restart-required-message.d.ts +30 -0
- package/lib/generated-client/models/scheduled-task-ended-message.d.ts +37 -0
- package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +37 -0
- package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +30 -0
- package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +24 -0
- package/lib/generated-client/models/search-hint.d.ts +20 -17
- package/lib/generated-client/models/series-status.d.ts +2 -1
- package/lib/generated-client/models/series-status.js +3 -2
- package/lib/generated-client/models/series-timer-cancelled-message.d.ts +37 -0
- package/lib/generated-client/models/series-timer-created-message.d.ts +37 -0
- package/lib/generated-client/models/server-configuration.d.ts +45 -0
- package/lib/generated-client/models/server-restarting-message.d.ts +30 -0
- package/lib/generated-client/models/server-shutting-down-message.d.ts +30 -0
- package/lib/generated-client/models/session-info.d.ts +9 -9
- package/lib/generated-client/models/sessions-message.d.ts +37 -0
- package/lib/generated-client/models/sessions-start-message.d.ts +30 -0
- package/lib/generated-client/models/sessions-stop-message.d.ts +24 -0
- package/lib/generated-client/models/string-group-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-command-message.d.ts +37 -0
- package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +37 -0
- package/lib/generated-client/models/sync-play-queue-item.d.ts +29 -0
- package/lib/generated-client/models/system-info.d.ts +17 -6
- package/lib/generated-client/models/timer-cancelled-message.d.ts +37 -0
- package/lib/generated-client/models/timer-created-message.d.ts +37 -0
- package/lib/generated-client/models/transcoding-info.d.ts +3 -2
- package/lib/generated-client/models/transcoding-info.js +15 -0
- package/lib/generated-client/models/transcoding-profile.d.ts +3 -2
- package/lib/generated-client/models/trickplay-info.d.ts +59 -0
- package/lib/generated-client/models/trickplay-options.d.ts +85 -0
- package/lib/generated-client/models/trickplay-scan-behavior.d.ts +20 -0
- package/lib/generated-client/models/{notification-level.js → trickplay-scan-behavior.js} +5 -6
- package/lib/generated-client/models/tuner-host-info.d.ts +6 -0
- package/lib/generated-client/models/update-playlist-dto.d.ts +42 -0
- package/lib/generated-client/models/update-playlist-user-dto.d.ts +23 -0
- package/lib/generated-client/models/update-user-item-data-dto.d.ts +83 -0
- package/lib/generated-client/models/upload-subtitle-dto.d.ts +6 -0
- package/lib/generated-client/models/user-configuration.d.ts +6 -0
- package/lib/generated-client/models/user-data-change-info.d.ts +30 -0
- package/lib/generated-client/models/user-data-changed-message.d.ts +37 -0
- package/lib/generated-client/models/user-deleted-message.d.ts +36 -0
- package/lib/generated-client/models/user-dto.d.ts +1 -0
- package/lib/generated-client/models/user-policy.d.ts +26 -2
- package/lib/generated-client/models/user-updated-message.d.ts +37 -0
- package/lib/generated-client/models/video-range-type.d.ts +27 -0
- package/lib/generated-client/models/video-range-type.js +30 -0
- package/lib/generated-client/models/video-range.d.ts +21 -0
- package/lib/generated-client/models/{device-profile-type.js → video-range.js} +6 -5
- package/lib/generated-client/models/web-socket-message.d.ts +18 -0
- package/lib/node_modules/tslib/tslib.es6.js +9 -2
- package/lib/utils/api/image-api.d.ts +2 -2
- package/lib/utils/api/image-api.js +2 -2
- package/lib/utils/api/image-urls-api.d.ts +55 -0
- package/lib/utils/api/image-urls-api.js +103 -0
- package/lib/utils/api/index.d.ts +2 -4
- package/lib/utils/api/index.js +2 -4
- package/lib/utils/api/{dlna-api.d.ts → lyrics-api.d.ts} +2 -2
- package/lib/utils/api/{dlna-api.js → lyrics-api.js} +4 -4
- package/lib/utils/api/{dlna-server-api.d.ts → trickplay-api.d.ts} +2 -2
- package/lib/utils/api/trickplay-api.js +12 -0
- package/lib/utils/authentication.js +5 -6
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/index.js +2 -1
- package/lib/utils/versioning.d.ts +9 -0
- package/lib/utils/versioning.js +32 -0
- package/lib/versions.d.ts +2 -2
- package/lib/versions.js +2 -2
- package/package.json +17 -22
- package/lib/generated-client/api/dlna-server-api.js +0 -1088
- package/lib/generated-client/api/image-by-name-api.js +0 -423
- package/lib/generated-client/api/notifications-api.js +0 -484
- package/lib/utils/api/dlna-server-api.js +0 -12
- package/lib/utils/api/image-by-name-api.d.ts +0 -8
- package/lib/utils/api/image-by-name-api.js +0 -12
- package/lib/utils/api/notifications-api.d.ts +0 -8
- package/lib/utils/api/notifications-api.js +0 -12
|
@@ -4,6 +4,17 @@ import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, asser
|
|
|
4
4
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
5
5
|
|
|
6
6
|
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*
|
|
12
|
+
* Jellyfin API
|
|
13
|
+
*
|
|
14
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
15
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
16
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
17
|
+
*/
|
|
7
18
|
/**
|
|
8
19
|
* ConfigurationApi - axios parameter creator
|
|
9
20
|
* @export
|
|
@@ -16,7 +27,7 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
16
27
|
* @param {*} [options] Override http request option.
|
|
17
28
|
* @throws {RequiredError}
|
|
18
29
|
*/
|
|
19
|
-
getConfiguration: (
|
|
30
|
+
getConfiguration: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
20
31
|
const localVarPath = `/System/Configuration`;
|
|
21
32
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22
33
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -43,7 +54,7 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
43
54
|
* @param {*} [options] Override http request option.
|
|
44
55
|
* @throws {RequiredError}
|
|
45
56
|
*/
|
|
46
|
-
getDefaultMetadataOptions: (
|
|
57
|
+
getDefaultMetadataOptions: (...args_2) => __awaiter(this, [...args_2], void 0, function* (options = {}) {
|
|
47
58
|
const localVarPath = `/System/Configuration/MetadataOptions/Default`;
|
|
48
59
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
60
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -71,7 +82,7 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
71
82
|
* @param {*} [options] Override http request option.
|
|
72
83
|
* @throws {RequiredError}
|
|
73
84
|
*/
|
|
74
|
-
getNamedConfiguration: (
|
|
85
|
+
getNamedConfiguration: (key_1, ...args_3) => __awaiter(this, [key_1, ...args_3], void 0, function* (key, options = {}) {
|
|
75
86
|
// verify required parameter 'key' is not null or undefined
|
|
76
87
|
assertParamExists('getNamedConfiguration', 'key', key);
|
|
77
88
|
const localVarPath = `/System/Configuration/{key}`
|
|
@@ -102,7 +113,7 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
102
113
|
* @param {*} [options] Override http request option.
|
|
103
114
|
* @throws {RequiredError}
|
|
104
115
|
*/
|
|
105
|
-
updateConfiguration: (
|
|
116
|
+
updateConfiguration: (serverConfiguration_1, ...args_4) => __awaiter(this, [serverConfiguration_1, ...args_4], void 0, function* (serverConfiguration, options = {}) {
|
|
106
117
|
// verify required parameter 'serverConfiguration' is not null or undefined
|
|
107
118
|
assertParamExists('updateConfiguration', 'serverConfiguration', serverConfiguration);
|
|
108
119
|
const localVarPath = `/System/Configuration`;
|
|
@@ -127,38 +138,6 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
127
138
|
options: localVarRequestOptions,
|
|
128
139
|
};
|
|
129
140
|
}),
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
* @summary Updates the path to the media encoder.
|
|
133
|
-
* @param {MediaEncoderPathDto} mediaEncoderPathDto Media encoder path form body.
|
|
134
|
-
* @param {*} [options] Override http request option.
|
|
135
|
-
* @throws {RequiredError}
|
|
136
|
-
*/
|
|
137
|
-
updateMediaEncoderPath: (mediaEncoderPathDto, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
138
|
-
// verify required parameter 'mediaEncoderPathDto' is not null or undefined
|
|
139
|
-
assertParamExists('updateMediaEncoderPath', 'mediaEncoderPathDto', mediaEncoderPathDto);
|
|
140
|
-
const localVarPath = `/System/MediaEncoder/Path`;
|
|
141
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
142
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
143
|
-
let baseOptions;
|
|
144
|
-
if (configuration) {
|
|
145
|
-
baseOptions = configuration.baseOptions;
|
|
146
|
-
}
|
|
147
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
148
|
-
const localVarHeaderParameter = {};
|
|
149
|
-
const localVarQueryParameter = {};
|
|
150
|
-
// authentication CustomAuthentication required
|
|
151
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
152
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
153
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
154
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
155
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
156
|
-
localVarRequestOptions.data = serializeDataIfNeeded(mediaEncoderPathDto, localVarRequestOptions, configuration);
|
|
157
|
-
return {
|
|
158
|
-
url: toPathString(localVarUrlObj),
|
|
159
|
-
options: localVarRequestOptions,
|
|
160
|
-
};
|
|
161
|
-
}),
|
|
162
141
|
/**
|
|
163
142
|
*
|
|
164
143
|
* @summary Updates named configuration.
|
|
@@ -167,7 +146,7 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
167
146
|
* @param {*} [options] Override http request option.
|
|
168
147
|
* @throws {RequiredError}
|
|
169
148
|
*/
|
|
170
|
-
updateNamedConfiguration: (
|
|
149
|
+
updateNamedConfiguration: (key_2, body_1, ...args_5) => __awaiter(this, [key_2, body_1, ...args_5], void 0, function* (key, body, options = {}) {
|
|
171
150
|
// verify required parameter 'key' is not null or undefined
|
|
172
151
|
assertParamExists('updateNamedConfiguration', 'key', key);
|
|
173
152
|
// verify required parameter 'body' is not null or undefined
|
|
@@ -254,19 +233,6 @@ const ConfigurationApiFp = function (configuration) {
|
|
|
254
233
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
255
234
|
});
|
|
256
235
|
},
|
|
257
|
-
/**
|
|
258
|
-
*
|
|
259
|
-
* @summary Updates the path to the media encoder.
|
|
260
|
-
* @param {MediaEncoderPathDto} mediaEncoderPathDto Media encoder path form body.
|
|
261
|
-
* @param {*} [options] Override http request option.
|
|
262
|
-
* @throws {RequiredError}
|
|
263
|
-
*/
|
|
264
|
-
updateMediaEncoderPath(mediaEncoderPathDto, options) {
|
|
265
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateMediaEncoderPath(mediaEncoderPathDto, options);
|
|
267
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
268
|
-
});
|
|
269
|
-
},
|
|
270
236
|
/**
|
|
271
237
|
*
|
|
272
238
|
* @summary Updates named configuration.
|
|
@@ -328,16 +294,6 @@ const ConfigurationApiFactory = function (configuration, basePath, axios) {
|
|
|
328
294
|
updateConfiguration(serverConfiguration, options) {
|
|
329
295
|
return localVarFp.updateConfiguration(serverConfiguration, options).then((request) => request(axios, basePath));
|
|
330
296
|
},
|
|
331
|
-
/**
|
|
332
|
-
*
|
|
333
|
-
* @summary Updates the path to the media encoder.
|
|
334
|
-
* @param {MediaEncoderPathDto} mediaEncoderPathDto Media encoder path form body.
|
|
335
|
-
* @param {*} [options] Override http request option.
|
|
336
|
-
* @throws {RequiredError}
|
|
337
|
-
*/
|
|
338
|
-
updateMediaEncoderPath(mediaEncoderPathDto, options) {
|
|
339
|
-
return localVarFp.updateMediaEncoderPath(mediaEncoderPathDto, options).then((request) => request(axios, basePath));
|
|
340
|
-
},
|
|
341
297
|
/**
|
|
342
298
|
*
|
|
343
299
|
* @summary Updates named configuration.
|
|
@@ -400,17 +356,6 @@ class ConfigurationApi extends BaseAPI {
|
|
|
400
356
|
updateConfiguration(requestParameters, options) {
|
|
401
357
|
return ConfigurationApiFp(this.configuration).updateConfiguration(requestParameters.serverConfiguration, options).then((request) => request(this.axios, this.basePath));
|
|
402
358
|
}
|
|
403
|
-
/**
|
|
404
|
-
*
|
|
405
|
-
* @summary Updates the path to the media encoder.
|
|
406
|
-
* @param {ConfigurationApiUpdateMediaEncoderPathRequest} requestParameters Request parameters.
|
|
407
|
-
* @param {*} [options] Override http request option.
|
|
408
|
-
* @throws {RequiredError}
|
|
409
|
-
* @memberof ConfigurationApi
|
|
410
|
-
*/
|
|
411
|
-
updateMediaEncoderPath(requestParameters, options) {
|
|
412
|
-
return ConfigurationApiFp(this.configuration).updateMediaEncoderPath(requestParameters.mediaEncoderPathDto, options).then((request) => request(this.axios, this.basePath));
|
|
413
|
-
}
|
|
414
359
|
/**
|
|
415
360
|
*
|
|
416
361
|
* @summary Updates named configuration.
|
|
@@ -4,6 +4,17 @@ import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, creat
|
|
|
4
4
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
5
5
|
|
|
6
6
|
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*
|
|
12
|
+
* Jellyfin API
|
|
13
|
+
*
|
|
14
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
15
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
16
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
17
|
+
*/
|
|
7
18
|
/**
|
|
8
19
|
* DashboardApi - axios parameter creator
|
|
9
20
|
* @export
|
|
@@ -17,7 +28,7 @@ const DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
17
28
|
* @param {*} [options] Override http request option.
|
|
18
29
|
* @throws {RequiredError}
|
|
19
30
|
*/
|
|
20
|
-
getConfigurationPages: (
|
|
31
|
+
getConfigurationPages: (enableInMainMenu_1, ...args_1) => __awaiter(this, [enableInMainMenu_1, ...args_1], void 0, function* (enableInMainMenu, options = {}) {
|
|
21
32
|
const localVarPath = `/web/ConfigurationPages`;
|
|
22
33
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23
34
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -48,7 +59,7 @@ const DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
48
59
|
* @param {*} [options] Override http request option.
|
|
49
60
|
* @throws {RequiredError}
|
|
50
61
|
*/
|
|
51
|
-
getDashboardConfigurationPage: (
|
|
62
|
+
getDashboardConfigurationPage: (name_1, ...args_2) => __awaiter(this, [name_1, ...args_2], void 0, function* (name, options = {}) {
|
|
52
63
|
const localVarPath = `/web/ConfigurationPage`;
|
|
53
64
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
65
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -47,12 +47,11 @@ export declare const DevicesApiAxiosParamCreator: (configuration?: Configuration
|
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @summary Get Devices.
|
|
50
|
-
* @param {boolean} [supportsSync] Gets or sets a value indicating whether [supports synchronize].
|
|
51
50
|
* @param {string} [userId] Gets or sets the user identifier.
|
|
52
51
|
* @param {*} [options] Override http request option.
|
|
53
52
|
* @throws {RequiredError}
|
|
54
53
|
*/
|
|
55
|
-
getDevices: (
|
|
54
|
+
getDevices: (userId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
56
55
|
/**
|
|
57
56
|
*
|
|
58
57
|
* @summary Update device options.
|
|
@@ -95,12 +94,11 @@ export declare const DevicesApiFp: (configuration?: Configuration) => {
|
|
|
95
94
|
/**
|
|
96
95
|
*
|
|
97
96
|
* @summary Get Devices.
|
|
98
|
-
* @param {boolean} [supportsSync] Gets or sets a value indicating whether [supports synchronize].
|
|
99
97
|
* @param {string} [userId] Gets or sets the user identifier.
|
|
100
98
|
* @param {*} [options] Override http request option.
|
|
101
99
|
* @throws {RequiredError}
|
|
102
100
|
*/
|
|
103
|
-
getDevices(
|
|
101
|
+
getDevices(userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceInfoQueryResult>>;
|
|
104
102
|
/**
|
|
105
103
|
*
|
|
106
104
|
* @summary Update device options.
|
|
@@ -143,12 +141,11 @@ export declare const DevicesApiFactory: (configuration?: Configuration, basePath
|
|
|
143
141
|
/**
|
|
144
142
|
*
|
|
145
143
|
* @summary Get Devices.
|
|
146
|
-
* @param {boolean} [supportsSync] Gets or sets a value indicating whether [supports synchronize].
|
|
147
144
|
* @param {string} [userId] Gets or sets the user identifier.
|
|
148
145
|
* @param {*} [options] Override http request option.
|
|
149
146
|
* @throws {RequiredError}
|
|
150
147
|
*/
|
|
151
|
-
getDevices(
|
|
148
|
+
getDevices(userId?: string, options?: any): AxiosPromise<DeviceInfoQueryResult>;
|
|
152
149
|
/**
|
|
153
150
|
*
|
|
154
151
|
* @summary Update device options.
|
|
@@ -204,12 +201,6 @@ export interface DevicesApiGetDeviceOptionsRequest {
|
|
|
204
201
|
* @interface DevicesApiGetDevicesRequest
|
|
205
202
|
*/
|
|
206
203
|
export interface DevicesApiGetDevicesRequest {
|
|
207
|
-
/**
|
|
208
|
-
* Gets or sets a value indicating whether [supports synchronize].
|
|
209
|
-
* @type {boolean}
|
|
210
|
-
* @memberof DevicesApiGetDevices
|
|
211
|
-
*/
|
|
212
|
-
readonly supportsSync?: boolean;
|
|
213
204
|
/**
|
|
214
205
|
* Gets or sets the user identifier.
|
|
215
206
|
* @type {string}
|
|
@@ -4,6 +4,17 @@ import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams,
|
|
|
4
4
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
5
5
|
|
|
6
6
|
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*
|
|
12
|
+
* Jellyfin API
|
|
13
|
+
*
|
|
14
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
15
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
16
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
17
|
+
*/
|
|
7
18
|
/**
|
|
8
19
|
* DevicesApi - axios parameter creator
|
|
9
20
|
* @export
|
|
@@ -17,7 +28,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
17
28
|
* @param {*} [options] Override http request option.
|
|
18
29
|
* @throws {RequiredError}
|
|
19
30
|
*/
|
|
20
|
-
deleteDevice: (
|
|
31
|
+
deleteDevice: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
21
32
|
// verify required parameter 'id' is not null or undefined
|
|
22
33
|
assertParamExists('deleteDevice', 'id', id);
|
|
23
34
|
const localVarPath = `/Devices`;
|
|
@@ -50,7 +61,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
50
61
|
* @param {*} [options] Override http request option.
|
|
51
62
|
* @throws {RequiredError}
|
|
52
63
|
*/
|
|
53
|
-
getDeviceInfo: (
|
|
64
|
+
getDeviceInfo: (id_2, ...args_2) => __awaiter(this, [id_2, ...args_2], void 0, function* (id, options = {}) {
|
|
54
65
|
// verify required parameter 'id' is not null or undefined
|
|
55
66
|
assertParamExists('getDeviceInfo', 'id', id);
|
|
56
67
|
const localVarPath = `/Devices/Info`;
|
|
@@ -83,7 +94,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
83
94
|
* @param {*} [options] Override http request option.
|
|
84
95
|
* @throws {RequiredError}
|
|
85
96
|
*/
|
|
86
|
-
getDeviceOptions: (
|
|
97
|
+
getDeviceOptions: (id_3, ...args_3) => __awaiter(this, [id_3, ...args_3], void 0, function* (id, options = {}) {
|
|
87
98
|
// verify required parameter 'id' is not null or undefined
|
|
88
99
|
assertParamExists('getDeviceOptions', 'id', id);
|
|
89
100
|
const localVarPath = `/Devices/Options`;
|
|
@@ -112,12 +123,11 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
112
123
|
/**
|
|
113
124
|
*
|
|
114
125
|
* @summary Get Devices.
|
|
115
|
-
* @param {boolean} [supportsSync] Gets or sets a value indicating whether [supports synchronize].
|
|
116
126
|
* @param {string} [userId] Gets or sets the user identifier.
|
|
117
127
|
* @param {*} [options] Override http request option.
|
|
118
128
|
* @throws {RequiredError}
|
|
119
129
|
*/
|
|
120
|
-
getDevices: (
|
|
130
|
+
getDevices: (userId_1, ...args_4) => __awaiter(this, [userId_1, ...args_4], void 0, function* (userId, options = {}) {
|
|
121
131
|
const localVarPath = `/Devices`;
|
|
122
132
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
123
133
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -130,9 +140,6 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
130
140
|
const localVarQueryParameter = {};
|
|
131
141
|
// authentication CustomAuthentication required
|
|
132
142
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
133
|
-
if (supportsSync !== undefined) {
|
|
134
|
-
localVarQueryParameter['supportsSync'] = supportsSync;
|
|
135
|
-
}
|
|
136
143
|
if (userId !== undefined) {
|
|
137
144
|
localVarQueryParameter['userId'] = userId;
|
|
138
145
|
}
|
|
@@ -152,7 +159,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
152
159
|
* @param {*} [options] Override http request option.
|
|
153
160
|
* @throws {RequiredError}
|
|
154
161
|
*/
|
|
155
|
-
updateDeviceOptions: (
|
|
162
|
+
updateDeviceOptions: (id_4, deviceOptionsDto_1, ...args_5) => __awaiter(this, [id_4, deviceOptionsDto_1, ...args_5], void 0, function* (id, deviceOptionsDto, options = {}) {
|
|
156
163
|
// verify required parameter 'id' is not null or undefined
|
|
157
164
|
assertParamExists('updateDeviceOptions', 'id', id);
|
|
158
165
|
// verify required parameter 'deviceOptionsDto' is not null or undefined
|
|
@@ -233,14 +240,13 @@ const DevicesApiFp = function (configuration) {
|
|
|
233
240
|
/**
|
|
234
241
|
*
|
|
235
242
|
* @summary Get Devices.
|
|
236
|
-
* @param {boolean} [supportsSync] Gets or sets a value indicating whether [supports synchronize].
|
|
237
243
|
* @param {string} [userId] Gets or sets the user identifier.
|
|
238
244
|
* @param {*} [options] Override http request option.
|
|
239
245
|
* @throws {RequiredError}
|
|
240
246
|
*/
|
|
241
|
-
getDevices(
|
|
247
|
+
getDevices(userId, options) {
|
|
242
248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
243
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevices(
|
|
249
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevices(userId, options);
|
|
244
250
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
245
251
|
});
|
|
246
252
|
},
|
|
@@ -300,13 +306,12 @@ const DevicesApiFactory = function (configuration, basePath, axios) {
|
|
|
300
306
|
/**
|
|
301
307
|
*
|
|
302
308
|
* @summary Get Devices.
|
|
303
|
-
* @param {boolean} [supportsSync] Gets or sets a value indicating whether [supports synchronize].
|
|
304
309
|
* @param {string} [userId] Gets or sets the user identifier.
|
|
305
310
|
* @param {*} [options] Override http request option.
|
|
306
311
|
* @throws {RequiredError}
|
|
307
312
|
*/
|
|
308
|
-
getDevices(
|
|
309
|
-
return localVarFp.getDevices(
|
|
313
|
+
getDevices(userId, options) {
|
|
314
|
+
return localVarFp.getDevices(userId, options).then((request) => request(axios, basePath));
|
|
310
315
|
},
|
|
311
316
|
/**
|
|
312
317
|
*
|
|
@@ -370,7 +375,7 @@ class DevicesApi extends BaseAPI {
|
|
|
370
375
|
* @memberof DevicesApi
|
|
371
376
|
*/
|
|
372
377
|
getDevices(requestParameters = {}, options) {
|
|
373
|
-
return DevicesApiFp(this.configuration).getDevices(requestParameters.
|
|
378
|
+
return DevicesApiFp(this.configuration).getDevices(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
374
379
|
}
|
|
375
380
|
/**
|
|
376
381
|
*
|
|
@@ -21,23 +21,23 @@ export declare const DisplayPreferencesApiAxiosParamCreator: (configuration?: Co
|
|
|
21
21
|
*
|
|
22
22
|
* @summary Get Display Preferences.
|
|
23
23
|
* @param {string} displayPreferencesId Display preferences id.
|
|
24
|
-
* @param {string} userId User id.
|
|
25
24
|
* @param {string} client Client.
|
|
25
|
+
* @param {string} [userId] User id.
|
|
26
26
|
* @param {*} [options] Override http request option.
|
|
27
27
|
* @throws {RequiredError}
|
|
28
28
|
*/
|
|
29
|
-
getDisplayPreferences: (displayPreferencesId: string,
|
|
29
|
+
getDisplayPreferences: (displayPreferencesId: string, client: string, userId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @summary Update Display Preferences.
|
|
33
33
|
* @param {string} displayPreferencesId Display preferences id.
|
|
34
|
-
* @param {string} userId User Id.
|
|
35
34
|
* @param {string} client Client.
|
|
36
35
|
* @param {DisplayPreferencesDto} displayPreferencesDto New Display Preferences object.
|
|
36
|
+
* @param {string} [userId] User Id.
|
|
37
37
|
* @param {*} [options] Override http request option.
|
|
38
38
|
* @throws {RequiredError}
|
|
39
39
|
*/
|
|
40
|
-
updateDisplayPreferences: (displayPreferencesId: string,
|
|
40
|
+
updateDisplayPreferences: (displayPreferencesId: string, client: string, displayPreferencesDto: DisplayPreferencesDto, userId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* DisplayPreferencesApi - functional programming interface
|
|
@@ -48,23 +48,23 @@ export declare const DisplayPreferencesApiFp: (configuration?: Configuration) =>
|
|
|
48
48
|
*
|
|
49
49
|
* @summary Get Display Preferences.
|
|
50
50
|
* @param {string} displayPreferencesId Display preferences id.
|
|
51
|
-
* @param {string} userId User id.
|
|
52
51
|
* @param {string} client Client.
|
|
52
|
+
* @param {string} [userId] User id.
|
|
53
53
|
* @param {*} [options] Override http request option.
|
|
54
54
|
* @throws {RequiredError}
|
|
55
55
|
*/
|
|
56
|
-
getDisplayPreferences(displayPreferencesId: string,
|
|
56
|
+
getDisplayPreferences(displayPreferencesId: string, client: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisplayPreferencesDto>>;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
59
|
* @summary Update Display Preferences.
|
|
60
60
|
* @param {string} displayPreferencesId Display preferences id.
|
|
61
|
-
* @param {string} userId User Id.
|
|
62
61
|
* @param {string} client Client.
|
|
63
62
|
* @param {DisplayPreferencesDto} displayPreferencesDto New Display Preferences object.
|
|
63
|
+
* @param {string} [userId] User Id.
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
65
65
|
* @throws {RequiredError}
|
|
66
66
|
*/
|
|
67
|
-
updateDisplayPreferences(displayPreferencesId: string,
|
|
67
|
+
updateDisplayPreferences(displayPreferencesId: string, client: string, displayPreferencesDto: DisplayPreferencesDto, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
70
|
* DisplayPreferencesApi - factory interface
|
|
@@ -75,23 +75,23 @@ export declare const DisplayPreferencesApiFactory: (configuration?: Configuratio
|
|
|
75
75
|
*
|
|
76
76
|
* @summary Get Display Preferences.
|
|
77
77
|
* @param {string} displayPreferencesId Display preferences id.
|
|
78
|
-
* @param {string} userId User id.
|
|
79
78
|
* @param {string} client Client.
|
|
79
|
+
* @param {string} [userId] User id.
|
|
80
80
|
* @param {*} [options] Override http request option.
|
|
81
81
|
* @throws {RequiredError}
|
|
82
82
|
*/
|
|
83
|
-
getDisplayPreferences(displayPreferencesId: string,
|
|
83
|
+
getDisplayPreferences(displayPreferencesId: string, client: string, userId?: string, options?: any): AxiosPromise<DisplayPreferencesDto>;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @summary Update Display Preferences.
|
|
87
87
|
* @param {string} displayPreferencesId Display preferences id.
|
|
88
|
-
* @param {string} userId User Id.
|
|
89
88
|
* @param {string} client Client.
|
|
90
89
|
* @param {DisplayPreferencesDto} displayPreferencesDto New Display Preferences object.
|
|
90
|
+
* @param {string} [userId] User Id.
|
|
91
91
|
* @param {*} [options] Override http request option.
|
|
92
92
|
* @throws {RequiredError}
|
|
93
93
|
*/
|
|
94
|
-
updateDisplayPreferences(displayPreferencesId: string,
|
|
94
|
+
updateDisplayPreferences(displayPreferencesId: string, client: string, displayPreferencesDto: DisplayPreferencesDto, userId?: string, options?: any): AxiosPromise<void>;
|
|
95
95
|
};
|
|
96
96
|
/**
|
|
97
97
|
* Request parameters for getDisplayPreferences operation in DisplayPreferencesApi.
|
|
@@ -106,17 +106,17 @@ export interface DisplayPreferencesApiGetDisplayPreferencesRequest {
|
|
|
106
106
|
*/
|
|
107
107
|
readonly displayPreferencesId: string;
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* Client.
|
|
110
110
|
* @type {string}
|
|
111
111
|
* @memberof DisplayPreferencesApiGetDisplayPreferences
|
|
112
112
|
*/
|
|
113
|
-
readonly
|
|
113
|
+
readonly client: string;
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* User id.
|
|
116
116
|
* @type {string}
|
|
117
117
|
* @memberof DisplayPreferencesApiGetDisplayPreferences
|
|
118
118
|
*/
|
|
119
|
-
readonly
|
|
119
|
+
readonly userId?: string;
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
122
|
* Request parameters for updateDisplayPreferences operation in DisplayPreferencesApi.
|
|
@@ -130,12 +130,6 @@ export interface DisplayPreferencesApiUpdateDisplayPreferencesRequest {
|
|
|
130
130
|
* @memberof DisplayPreferencesApiUpdateDisplayPreferences
|
|
131
131
|
*/
|
|
132
132
|
readonly displayPreferencesId: string;
|
|
133
|
-
/**
|
|
134
|
-
* User Id.
|
|
135
|
-
* @type {string}
|
|
136
|
-
* @memberof DisplayPreferencesApiUpdateDisplayPreferences
|
|
137
|
-
*/
|
|
138
|
-
readonly userId: string;
|
|
139
133
|
/**
|
|
140
134
|
* Client.
|
|
141
135
|
* @type {string}
|
|
@@ -148,6 +142,12 @@ export interface DisplayPreferencesApiUpdateDisplayPreferencesRequest {
|
|
|
148
142
|
* @memberof DisplayPreferencesApiUpdateDisplayPreferences
|
|
149
143
|
*/
|
|
150
144
|
readonly displayPreferencesDto: DisplayPreferencesDto;
|
|
145
|
+
/**
|
|
146
|
+
* User Id.
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof DisplayPreferencesApiUpdateDisplayPreferences
|
|
149
|
+
*/
|
|
150
|
+
readonly userId?: string;
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
153
153
|
* DisplayPreferencesApi - object-oriented interface
|
|
@@ -4,6 +4,17 @@ import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams,
|
|
|
4
4
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
5
5
|
|
|
6
6
|
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*
|
|
12
|
+
* Jellyfin API
|
|
13
|
+
*
|
|
14
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
15
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
16
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
17
|
+
*/
|
|
7
18
|
/**
|
|
8
19
|
* DisplayPreferencesApi - axios parameter creator
|
|
9
20
|
* @export
|
|
@@ -14,16 +25,14 @@ const DisplayPreferencesApiAxiosParamCreator = function (configuration) {
|
|
|
14
25
|
*
|
|
15
26
|
* @summary Get Display Preferences.
|
|
16
27
|
* @param {string} displayPreferencesId Display preferences id.
|
|
17
|
-
* @param {string} userId User id.
|
|
18
28
|
* @param {string} client Client.
|
|
29
|
+
* @param {string} [userId] User id.
|
|
19
30
|
* @param {*} [options] Override http request option.
|
|
20
31
|
* @throws {RequiredError}
|
|
21
32
|
*/
|
|
22
|
-
getDisplayPreferences: (
|
|
33
|
+
getDisplayPreferences: (displayPreferencesId_1, client_1, userId_1, ...args_1) => __awaiter(this, [displayPreferencesId_1, client_1, userId_1, ...args_1], void 0, function* (displayPreferencesId, client, userId, options = {}) {
|
|
23
34
|
// verify required parameter 'displayPreferencesId' is not null or undefined
|
|
24
35
|
assertParamExists('getDisplayPreferences', 'displayPreferencesId', displayPreferencesId);
|
|
25
|
-
// verify required parameter 'userId' is not null or undefined
|
|
26
|
-
assertParamExists('getDisplayPreferences', 'userId', userId);
|
|
27
36
|
// verify required parameter 'client' is not null or undefined
|
|
28
37
|
assertParamExists('getDisplayPreferences', 'client', client);
|
|
29
38
|
const localVarPath = `/DisplayPreferences/{displayPreferencesId}`
|
|
@@ -57,17 +66,15 @@ const DisplayPreferencesApiAxiosParamCreator = function (configuration) {
|
|
|
57
66
|
*
|
|
58
67
|
* @summary Update Display Preferences.
|
|
59
68
|
* @param {string} displayPreferencesId Display preferences id.
|
|
60
|
-
* @param {string} userId User Id.
|
|
61
69
|
* @param {string} client Client.
|
|
62
70
|
* @param {DisplayPreferencesDto} displayPreferencesDto New Display Preferences object.
|
|
71
|
+
* @param {string} [userId] User Id.
|
|
63
72
|
* @param {*} [options] Override http request option.
|
|
64
73
|
* @throws {RequiredError}
|
|
65
74
|
*/
|
|
66
|
-
updateDisplayPreferences: (
|
|
75
|
+
updateDisplayPreferences: (displayPreferencesId_2, client_2, displayPreferencesDto_1, userId_2, ...args_2) => __awaiter(this, [displayPreferencesId_2, client_2, displayPreferencesDto_1, userId_2, ...args_2], void 0, function* (displayPreferencesId, client, displayPreferencesDto, userId, options = {}) {
|
|
67
76
|
// verify required parameter 'displayPreferencesId' is not null or undefined
|
|
68
77
|
assertParamExists('updateDisplayPreferences', 'displayPreferencesId', displayPreferencesId);
|
|
69
|
-
// verify required parameter 'userId' is not null or undefined
|
|
70
|
-
assertParamExists('updateDisplayPreferences', 'userId', userId);
|
|
71
78
|
// verify required parameter 'client' is not null or undefined
|
|
72
79
|
assertParamExists('updateDisplayPreferences', 'client', client);
|
|
73
80
|
// verify required parameter 'displayPreferencesDto' is not null or undefined
|
|
@@ -114,14 +121,14 @@ const DisplayPreferencesApiFp = function (configuration) {
|
|
|
114
121
|
*
|
|
115
122
|
* @summary Get Display Preferences.
|
|
116
123
|
* @param {string} displayPreferencesId Display preferences id.
|
|
117
|
-
* @param {string} userId User id.
|
|
118
124
|
* @param {string} client Client.
|
|
125
|
+
* @param {string} [userId] User id.
|
|
119
126
|
* @param {*} [options] Override http request option.
|
|
120
127
|
* @throws {RequiredError}
|
|
121
128
|
*/
|
|
122
|
-
getDisplayPreferences(displayPreferencesId,
|
|
129
|
+
getDisplayPreferences(displayPreferencesId, client, userId, options) {
|
|
123
130
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDisplayPreferences(displayPreferencesId,
|
|
131
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDisplayPreferences(displayPreferencesId, client, userId, options);
|
|
125
132
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
126
133
|
});
|
|
127
134
|
},
|
|
@@ -129,15 +136,15 @@ const DisplayPreferencesApiFp = function (configuration) {
|
|
|
129
136
|
*
|
|
130
137
|
* @summary Update Display Preferences.
|
|
131
138
|
* @param {string} displayPreferencesId Display preferences id.
|
|
132
|
-
* @param {string} userId User Id.
|
|
133
139
|
* @param {string} client Client.
|
|
134
140
|
* @param {DisplayPreferencesDto} displayPreferencesDto New Display Preferences object.
|
|
141
|
+
* @param {string} [userId] User Id.
|
|
135
142
|
* @param {*} [options] Override http request option.
|
|
136
143
|
* @throws {RequiredError}
|
|
137
144
|
*/
|
|
138
|
-
updateDisplayPreferences(displayPreferencesId,
|
|
145
|
+
updateDisplayPreferences(displayPreferencesId, client, displayPreferencesDto, userId, options) {
|
|
139
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDisplayPreferences(displayPreferencesId,
|
|
147
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDisplayPreferences(displayPreferencesId, client, displayPreferencesDto, userId, options);
|
|
141
148
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
142
149
|
});
|
|
143
150
|
},
|
|
@@ -154,26 +161,26 @@ const DisplayPreferencesApiFactory = function (configuration, basePath, axios) {
|
|
|
154
161
|
*
|
|
155
162
|
* @summary Get Display Preferences.
|
|
156
163
|
* @param {string} displayPreferencesId Display preferences id.
|
|
157
|
-
* @param {string} userId User id.
|
|
158
164
|
* @param {string} client Client.
|
|
165
|
+
* @param {string} [userId] User id.
|
|
159
166
|
* @param {*} [options] Override http request option.
|
|
160
167
|
* @throws {RequiredError}
|
|
161
168
|
*/
|
|
162
|
-
getDisplayPreferences(displayPreferencesId,
|
|
163
|
-
return localVarFp.getDisplayPreferences(displayPreferencesId,
|
|
169
|
+
getDisplayPreferences(displayPreferencesId, client, userId, options) {
|
|
170
|
+
return localVarFp.getDisplayPreferences(displayPreferencesId, client, userId, options).then((request) => request(axios, basePath));
|
|
164
171
|
},
|
|
165
172
|
/**
|
|
166
173
|
*
|
|
167
174
|
* @summary Update Display Preferences.
|
|
168
175
|
* @param {string} displayPreferencesId Display preferences id.
|
|
169
|
-
* @param {string} userId User Id.
|
|
170
176
|
* @param {string} client Client.
|
|
171
177
|
* @param {DisplayPreferencesDto} displayPreferencesDto New Display Preferences object.
|
|
178
|
+
* @param {string} [userId] User Id.
|
|
172
179
|
* @param {*} [options] Override http request option.
|
|
173
180
|
* @throws {RequiredError}
|
|
174
181
|
*/
|
|
175
|
-
updateDisplayPreferences(displayPreferencesId,
|
|
176
|
-
return localVarFp.updateDisplayPreferences(displayPreferencesId,
|
|
182
|
+
updateDisplayPreferences(displayPreferencesId, client, displayPreferencesDto, userId, options) {
|
|
183
|
+
return localVarFp.updateDisplayPreferences(displayPreferencesId, client, displayPreferencesDto, userId, options).then((request) => request(axios, basePath));
|
|
177
184
|
},
|
|
178
185
|
};
|
|
179
186
|
};
|
|
@@ -193,7 +200,7 @@ class DisplayPreferencesApi extends BaseAPI {
|
|
|
193
200
|
* @memberof DisplayPreferencesApi
|
|
194
201
|
*/
|
|
195
202
|
getDisplayPreferences(requestParameters, options) {
|
|
196
|
-
return DisplayPreferencesApiFp(this.configuration).getDisplayPreferences(requestParameters.displayPreferencesId, requestParameters.
|
|
203
|
+
return DisplayPreferencesApiFp(this.configuration).getDisplayPreferences(requestParameters.displayPreferencesId, requestParameters.client, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
197
204
|
}
|
|
198
205
|
/**
|
|
199
206
|
*
|
|
@@ -204,7 +211,7 @@ class DisplayPreferencesApi extends BaseAPI {
|
|
|
204
211
|
* @memberof DisplayPreferencesApi
|
|
205
212
|
*/
|
|
206
213
|
updateDisplayPreferences(requestParameters, options) {
|
|
207
|
-
return DisplayPreferencesApiFp(this.configuration).updateDisplayPreferences(requestParameters.displayPreferencesId, requestParameters.
|
|
214
|
+
return DisplayPreferencesApiFp(this.configuration).updateDisplayPreferences(requestParameters.displayPreferencesId, requestParameters.client, requestParameters.displayPreferencesDto, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
208
215
|
}
|
|
209
216
|
}
|
|
210
217
|
|