@jellyfin/sdk 0.8.2 → 0.10.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 +14 -4
- package/lib/api.d.ts +1 -0
- package/lib/api.js +4 -4
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +39 -36
- package/lib/generated-client/api/activity-log-api.js +19 -11
- package/lib/generated-client/api/api-key-api.js +35 -31
- package/lib/generated-client/api/artists-api.d.ts +28 -26
- package/lib/generated-client/api/artists-api.js +47 -43
- package/lib/generated-client/api/audio-api.d.ts +20 -20
- package/lib/generated-client/api/audio-api.js +45 -43
- package/lib/generated-client/api/branding-api.js +32 -28
- package/lib/generated-client/api/channels-api.d.ts +9 -8
- package/lib/generated-client/api/channels-api.js +54 -54
- package/lib/generated-client/api/client-log-api.js +19 -11
- package/lib/generated-client/api/collection-api.js +35 -31
- package/lib/generated-client/api/configuration-api.d.ts +0 -47
- package/lib/generated-client/api/configuration-api.js +51 -117
- package/lib/generated-client/api/dashboard-api.js +26 -20
- package/lib/generated-client/api/devices-api.d.ts +3 -12
- package/lib/generated-client/api/devices-api.js +54 -60
- package/lib/generated-client/api/display-preferences-api.d.ts +22 -22
- package/lib/generated-client/api/display-preferences-api.js +39 -37
- package/lib/generated-client/api/dynamic-hls-api.d.ts +49 -31
- package/lib/generated-client/api/dynamic-hls-api.js +104 -100
- package/lib/generated-client/api/environment-api.js +59 -61
- package/lib/generated-client/api/filter-api.d.ts +9 -8
- package/lib/generated-client/api/filter-api.js +30 -24
- package/lib/generated-client/api/genres-api.d.ts +9 -8
- package/lib/generated-client/api/genres-api.js +30 -24
- package/lib/generated-client/api/hls-segment-api.js +48 -48
- package/lib/generated-client/api/image-api.d.ts +109 -1184
- package/lib/generated-client/api/image-api.js +394 -1307
- package/lib/generated-client/api/instant-mix-api.d.ts +35 -35
- package/lib/generated-client/api/instant-mix-api.js +125 -131
- package/lib/generated-client/api/item-lookup-api.js +99 -111
- package/lib/generated-client/api/item-refresh-api.js +19 -11
- package/lib/generated-client/api/item-update-api.js +35 -31
- package/lib/generated-client/api/items-api.d.ts +333 -1012
- package/lib/generated-client/api/items-api.js +191 -617
- package/lib/generated-client/api/library-api.d.ts +9 -8
- package/lib/generated-client/api/library-api.js +214 -254
- package/lib/generated-client/api/library-structure-api.js +75 -81
- package/lib/generated-client/api/live-tv-api.d.ts +17 -16
- package/lib/generated-client/api/live-tv-api.js +343 -415
- package/lib/generated-client/api/localization-api.js +43 -41
- package/lib/generated-client/api/lyrics-api.d.ts +344 -0
- package/lib/generated-client/api/lyrics-api.js +449 -0
- package/lib/generated-client/api/media-info-api.d.ts +7 -7
- package/lib/generated-client/api/media-info-api.js +54 -56
- package/lib/generated-client/api/movies-api.js +19 -11
- package/lib/generated-client/api/music-genres-api.d.ts +9 -8
- package/lib/generated-client/api/music-genres-api.js +30 -24
- package/lib/generated-client/api/package-api.js +59 -61
- package/lib/generated-client/api/persons-api.js +27 -21
- package/lib/generated-client/api/playlists-api.d.ts +315 -36
- package/lib/generated-client/api/playlists-api.js +416 -71
- package/lib/generated-client/api/playstate-api.d.ts +41 -68
- package/lib/generated-client/api/playstate-api.js +127 -153
- package/lib/generated-client/api/plugins-api.js +83 -91
- package/lib/generated-client/api/quick-connect-api.d.ts +46 -37
- package/lib/generated-client/api/quick-connect-api.js +83 -75
- package/lib/generated-client/api/remote-image-api.js +35 -31
- package/lib/generated-client/api/scheduled-tasks-api.js +51 -51
- package/lib/generated-client/api/search-api.d.ts +41 -40
- package/lib/generated-client/api/search-api.js +34 -26
- package/lib/generated-client/api/session-api.d.ts +9 -17
- package/lib/generated-client/api/session-api.js +145 -173
- package/lib/generated-client/api/startup-api.js +67 -71
- package/lib/generated-client/api/studios-api.js +27 -21
- package/lib/generated-client/api/subtitle-api.d.ts +7 -7
- package/lib/generated-client/api/subtitle-api.js +99 -109
- package/lib/generated-client/api/suggestions-api.d.ts +14 -13
- package/lib/generated-client/api/suggestions-api.js +31 -23
- package/lib/generated-client/api/sync-play-api.js +179 -211
- package/lib/generated-client/api/system-api.js +88 -98
- package/lib/generated-client/api/time-sync-api.js +18 -10
- package/lib/generated-client/api/tmdb-api.js +19 -11
- package/lib/generated-client/api/trailers-api.d.ts +35 -33
- package/lib/generated-client/api/trailers-api.js +40 -32
- package/lib/generated-client/api/trickplay-api.d.ts +176 -0
- package/lib/generated-client/api/trickplay-api.js +208 -0
- package/lib/generated-client/api/tv-shows-api.d.ts +25 -15
- package/lib/generated-client/api/tv-shows-api.js +58 -50
- package/lib/generated-client/api/universal-audio-api.d.ts +17 -16
- package/lib/generated-client/api/universal-audio-api.js +33 -27
- package/lib/generated-client/api/user-api.d.ts +35 -155
- package/lib/generated-client/api/user-api.js +152 -319
- package/lib/generated-client/api/user-library-api.d.ts +100 -100
- package/lib/generated-client/api/user-library-api.js +190 -200
- package/lib/generated-client/api/user-views-api.d.ts +22 -21
- package/lib/generated-client/api/user-views-api.js +47 -41
- package/lib/generated-client/api/video-attachments-api.js +18 -10
- package/lib/generated-client/api/videos-api.d.ts +12 -12
- package/lib/generated-client/api/videos-api.js +63 -67
- package/lib/generated-client/api/years-api.d.ts +15 -13
- package/lib/generated-client/api/years-api.js +33 -27
- package/lib/generated-client/api.d.ts +2 -4
- package/lib/generated-client/base.js +13 -0
- package/lib/generated-client/common.js +19 -11
- 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 +19 -16
- 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/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 +115 -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-api.js +0 -422
- 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/node_modules/tslib/tslib.es6.js +0 -26
- 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
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
5
4
|
|
|
6
5
|
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Jellyfin API
|
|
12
|
+
*
|
|
13
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
14
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
15
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
16
|
+
*/
|
|
7
17
|
/**
|
|
8
18
|
* UserLibraryApi - axios parameter creator
|
|
9
19
|
* @export
|
|
@@ -13,18 +23,15 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
13
23
|
/**
|
|
14
24
|
*
|
|
15
25
|
* @summary Deletes a user\'s saved personal rating for an item.
|
|
16
|
-
* @param {string} userId User id.
|
|
17
26
|
* @param {string} itemId Item id.
|
|
27
|
+
* @param {string} [userId] User id.
|
|
18
28
|
* @param {*} [options] Override http request option.
|
|
19
29
|
* @throws {RequiredError}
|
|
20
30
|
*/
|
|
21
|
-
deleteUserItemRating: (
|
|
22
|
-
// verify required parameter 'userId' is not null or undefined
|
|
23
|
-
assertParamExists('deleteUserItemRating', 'userId', userId);
|
|
31
|
+
deleteUserItemRating: async (itemId, userId, options = {}) => {
|
|
24
32
|
// verify required parameter 'itemId' is not null or undefined
|
|
25
33
|
assertParamExists('deleteUserItemRating', 'itemId', itemId);
|
|
26
|
-
const localVarPath = `/
|
|
27
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
34
|
+
const localVarPath = `/UserItems/{itemId}/Rating`
|
|
28
35
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
29
36
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30
37
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -32,34 +39,34 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
32
39
|
if (configuration) {
|
|
33
40
|
baseOptions = configuration.baseOptions;
|
|
34
41
|
}
|
|
35
|
-
const localVarRequestOptions =
|
|
42
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
36
43
|
const localVarHeaderParameter = {};
|
|
37
44
|
const localVarQueryParameter = {};
|
|
38
45
|
// authentication CustomAuthentication required
|
|
39
|
-
|
|
46
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
47
|
+
if (userId !== undefined) {
|
|
48
|
+
localVarQueryParameter['userId'] = userId;
|
|
49
|
+
}
|
|
40
50
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42
|
-
localVarRequestOptions.headers =
|
|
52
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
43
53
|
return {
|
|
44
54
|
url: toPathString(localVarUrlObj),
|
|
45
55
|
options: localVarRequestOptions,
|
|
46
56
|
};
|
|
47
|
-
}
|
|
57
|
+
},
|
|
48
58
|
/**
|
|
49
59
|
*
|
|
50
60
|
* @summary Gets intros to play before the main media item plays.
|
|
51
|
-
* @param {string} userId User id.
|
|
52
61
|
* @param {string} itemId Item id.
|
|
62
|
+
* @param {string} [userId] User id.
|
|
53
63
|
* @param {*} [options] Override http request option.
|
|
54
64
|
* @throws {RequiredError}
|
|
55
65
|
*/
|
|
56
|
-
getIntros: (
|
|
57
|
-
// verify required parameter 'userId' is not null or undefined
|
|
58
|
-
assertParamExists('getIntros', 'userId', userId);
|
|
66
|
+
getIntros: async (itemId, userId, options = {}) => {
|
|
59
67
|
// verify required parameter 'itemId' is not null or undefined
|
|
60
68
|
assertParamExists('getIntros', 'itemId', itemId);
|
|
61
|
-
const localVarPath = `/
|
|
62
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
69
|
+
const localVarPath = `/Items/{itemId}/Intros`
|
|
63
70
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
64
71
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65
72
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -67,34 +74,34 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
67
74
|
if (configuration) {
|
|
68
75
|
baseOptions = configuration.baseOptions;
|
|
69
76
|
}
|
|
70
|
-
const localVarRequestOptions =
|
|
77
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
71
78
|
const localVarHeaderParameter = {};
|
|
72
79
|
const localVarQueryParameter = {};
|
|
73
80
|
// authentication CustomAuthentication required
|
|
74
|
-
|
|
81
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
82
|
+
if (userId !== undefined) {
|
|
83
|
+
localVarQueryParameter['userId'] = userId;
|
|
84
|
+
}
|
|
75
85
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
76
86
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
77
|
-
localVarRequestOptions.headers =
|
|
87
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
78
88
|
return {
|
|
79
89
|
url: toPathString(localVarUrlObj),
|
|
80
90
|
options: localVarRequestOptions,
|
|
81
91
|
};
|
|
82
|
-
}
|
|
92
|
+
},
|
|
83
93
|
/**
|
|
84
94
|
*
|
|
85
95
|
* @summary Gets an item from a user\'s library.
|
|
86
|
-
* @param {string} userId User id.
|
|
87
96
|
* @param {string} itemId Item id.
|
|
97
|
+
* @param {string} [userId] User id.
|
|
88
98
|
* @param {*} [options] Override http request option.
|
|
89
99
|
* @throws {RequiredError}
|
|
90
100
|
*/
|
|
91
|
-
getItem: (
|
|
92
|
-
// verify required parameter 'userId' is not null or undefined
|
|
93
|
-
assertParamExists('getItem', 'userId', userId);
|
|
101
|
+
getItem: async (itemId, userId, options = {}) => {
|
|
94
102
|
// verify required parameter 'itemId' is not null or undefined
|
|
95
103
|
assertParamExists('getItem', 'itemId', itemId);
|
|
96
|
-
const localVarPath = `/
|
|
97
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
104
|
+
const localVarPath = `/Items/{itemId}`
|
|
98
105
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
99
106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
100
107
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -102,23 +109,26 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
102
109
|
if (configuration) {
|
|
103
110
|
baseOptions = configuration.baseOptions;
|
|
104
111
|
}
|
|
105
|
-
const localVarRequestOptions =
|
|
112
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
106
113
|
const localVarHeaderParameter = {};
|
|
107
114
|
const localVarQueryParameter = {};
|
|
108
115
|
// authentication CustomAuthentication required
|
|
109
|
-
|
|
116
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
117
|
+
if (userId !== undefined) {
|
|
118
|
+
localVarQueryParameter['userId'] = userId;
|
|
119
|
+
}
|
|
110
120
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
111
121
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
|
-
localVarRequestOptions.headers =
|
|
122
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
113
123
|
return {
|
|
114
124
|
url: toPathString(localVarUrlObj),
|
|
115
125
|
options: localVarRequestOptions,
|
|
116
126
|
};
|
|
117
|
-
}
|
|
127
|
+
},
|
|
118
128
|
/**
|
|
119
129
|
*
|
|
120
130
|
* @summary Gets latest media.
|
|
121
|
-
* @param {string} userId User id.
|
|
131
|
+
* @param {string} [userId] User id.
|
|
122
132
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
123
133
|
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
124
134
|
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -132,22 +142,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
132
142
|
* @param {*} [options] Override http request option.
|
|
133
143
|
* @throws {RequiredError}
|
|
134
144
|
*/
|
|
135
|
-
getLatestMedia: (userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options = {}) =>
|
|
136
|
-
|
|
137
|
-
assertParamExists('getLatestMedia', 'userId', userId);
|
|
138
|
-
const localVarPath = `/Users/{userId}/Items/Latest`
|
|
139
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
145
|
+
getLatestMedia: async (userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options = {}) => {
|
|
146
|
+
const localVarPath = `/Items/Latest`;
|
|
140
147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
148
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
142
149
|
let baseOptions;
|
|
143
150
|
if (configuration) {
|
|
144
151
|
baseOptions = configuration.baseOptions;
|
|
145
152
|
}
|
|
146
|
-
const localVarRequestOptions =
|
|
153
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
147
154
|
const localVarHeaderParameter = {};
|
|
148
155
|
const localVarQueryParameter = {};
|
|
149
156
|
// authentication CustomAuthentication required
|
|
150
|
-
|
|
157
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
158
|
+
if (userId !== undefined) {
|
|
159
|
+
localVarQueryParameter['userId'] = userId;
|
|
160
|
+
}
|
|
151
161
|
if (parentId !== undefined) {
|
|
152
162
|
localVarQueryParameter['parentId'] = parentId;
|
|
153
163
|
}
|
|
@@ -180,27 +190,24 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
180
190
|
}
|
|
181
191
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
182
192
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
-
localVarRequestOptions.headers =
|
|
193
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
184
194
|
return {
|
|
185
195
|
url: toPathString(localVarUrlObj),
|
|
186
196
|
options: localVarRequestOptions,
|
|
187
197
|
};
|
|
188
|
-
}
|
|
198
|
+
},
|
|
189
199
|
/**
|
|
190
200
|
*
|
|
191
201
|
* @summary Gets local trailers for an item.
|
|
192
|
-
* @param {string} userId User id.
|
|
193
202
|
* @param {string} itemId Item id.
|
|
203
|
+
* @param {string} [userId] User id.
|
|
194
204
|
* @param {*} [options] Override http request option.
|
|
195
205
|
* @throws {RequiredError}
|
|
196
206
|
*/
|
|
197
|
-
getLocalTrailers: (
|
|
198
|
-
// verify required parameter 'userId' is not null or undefined
|
|
199
|
-
assertParamExists('getLocalTrailers', 'userId', userId);
|
|
207
|
+
getLocalTrailers: async (itemId, userId, options = {}) => {
|
|
200
208
|
// verify required parameter 'itemId' is not null or undefined
|
|
201
209
|
assertParamExists('getLocalTrailers', 'itemId', itemId);
|
|
202
|
-
const localVarPath = `/
|
|
203
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
210
|
+
const localVarPath = `/Items/{itemId}/LocalTrailers`
|
|
204
211
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
205
212
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
213
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -208,65 +215,65 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
208
215
|
if (configuration) {
|
|
209
216
|
baseOptions = configuration.baseOptions;
|
|
210
217
|
}
|
|
211
|
-
const localVarRequestOptions =
|
|
218
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
212
219
|
const localVarHeaderParameter = {};
|
|
213
220
|
const localVarQueryParameter = {};
|
|
214
221
|
// authentication CustomAuthentication required
|
|
215
|
-
|
|
222
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
223
|
+
if (userId !== undefined) {
|
|
224
|
+
localVarQueryParameter['userId'] = userId;
|
|
225
|
+
}
|
|
216
226
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
217
227
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
218
|
-
localVarRequestOptions.headers =
|
|
228
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
219
229
|
return {
|
|
220
230
|
url: toPathString(localVarUrlObj),
|
|
221
231
|
options: localVarRequestOptions,
|
|
222
232
|
};
|
|
223
|
-
}
|
|
233
|
+
},
|
|
224
234
|
/**
|
|
225
235
|
*
|
|
226
236
|
* @summary Gets the root folder from a user\'s library.
|
|
227
|
-
* @param {string} userId User id.
|
|
237
|
+
* @param {string} [userId] User id.
|
|
228
238
|
* @param {*} [options] Override http request option.
|
|
229
239
|
* @throws {RequiredError}
|
|
230
240
|
*/
|
|
231
|
-
getRootFolder: (userId, options = {}) =>
|
|
232
|
-
|
|
233
|
-
assertParamExists('getRootFolder', 'userId', userId);
|
|
234
|
-
const localVarPath = `/Users/{userId}/Items/Root`
|
|
235
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
241
|
+
getRootFolder: async (userId, options = {}) => {
|
|
242
|
+
const localVarPath = `/Items/Root`;
|
|
236
243
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
237
244
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
238
245
|
let baseOptions;
|
|
239
246
|
if (configuration) {
|
|
240
247
|
baseOptions = configuration.baseOptions;
|
|
241
248
|
}
|
|
242
|
-
const localVarRequestOptions =
|
|
249
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
243
250
|
const localVarHeaderParameter = {};
|
|
244
251
|
const localVarQueryParameter = {};
|
|
245
252
|
// authentication CustomAuthentication required
|
|
246
|
-
|
|
253
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
254
|
+
if (userId !== undefined) {
|
|
255
|
+
localVarQueryParameter['userId'] = userId;
|
|
256
|
+
}
|
|
247
257
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
248
258
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
249
|
-
localVarRequestOptions.headers =
|
|
259
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
250
260
|
return {
|
|
251
261
|
url: toPathString(localVarUrlObj),
|
|
252
262
|
options: localVarRequestOptions,
|
|
253
263
|
};
|
|
254
|
-
}
|
|
264
|
+
},
|
|
255
265
|
/**
|
|
256
266
|
*
|
|
257
267
|
* @summary Gets special features for an item.
|
|
258
|
-
* @param {string} userId User id.
|
|
259
268
|
* @param {string} itemId Item id.
|
|
269
|
+
* @param {string} [userId] User id.
|
|
260
270
|
* @param {*} [options] Override http request option.
|
|
261
271
|
* @throws {RequiredError}
|
|
262
272
|
*/
|
|
263
|
-
getSpecialFeatures: (
|
|
264
|
-
// verify required parameter 'userId' is not null or undefined
|
|
265
|
-
assertParamExists('getSpecialFeatures', 'userId', userId);
|
|
273
|
+
getSpecialFeatures: async (itemId, userId, options = {}) => {
|
|
266
274
|
// verify required parameter 'itemId' is not null or undefined
|
|
267
275
|
assertParamExists('getSpecialFeatures', 'itemId', itemId);
|
|
268
|
-
const localVarPath = `/
|
|
269
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
276
|
+
const localVarPath = `/Items/{itemId}/SpecialFeatures`
|
|
270
277
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
271
278
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
272
279
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -274,34 +281,34 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
274
281
|
if (configuration) {
|
|
275
282
|
baseOptions = configuration.baseOptions;
|
|
276
283
|
}
|
|
277
|
-
const localVarRequestOptions =
|
|
284
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
278
285
|
const localVarHeaderParameter = {};
|
|
279
286
|
const localVarQueryParameter = {};
|
|
280
287
|
// authentication CustomAuthentication required
|
|
281
|
-
|
|
288
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
289
|
+
if (userId !== undefined) {
|
|
290
|
+
localVarQueryParameter['userId'] = userId;
|
|
291
|
+
}
|
|
282
292
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
283
293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
284
|
-
localVarRequestOptions.headers =
|
|
294
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
285
295
|
return {
|
|
286
296
|
url: toPathString(localVarUrlObj),
|
|
287
297
|
options: localVarRequestOptions,
|
|
288
298
|
};
|
|
289
|
-
}
|
|
299
|
+
},
|
|
290
300
|
/**
|
|
291
301
|
*
|
|
292
302
|
* @summary Marks an item as a favorite.
|
|
293
|
-
* @param {string} userId User id.
|
|
294
303
|
* @param {string} itemId Item id.
|
|
304
|
+
* @param {string} [userId] User id.
|
|
295
305
|
* @param {*} [options] Override http request option.
|
|
296
306
|
* @throws {RequiredError}
|
|
297
307
|
*/
|
|
298
|
-
markFavoriteItem: (
|
|
299
|
-
// verify required parameter 'userId' is not null or undefined
|
|
300
|
-
assertParamExists('markFavoriteItem', 'userId', userId);
|
|
308
|
+
markFavoriteItem: async (itemId, userId, options = {}) => {
|
|
301
309
|
// verify required parameter 'itemId' is not null or undefined
|
|
302
310
|
assertParamExists('markFavoriteItem', 'itemId', itemId);
|
|
303
|
-
const localVarPath = `/
|
|
304
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
311
|
+
const localVarPath = `/UserFavoriteItems/{itemId}`
|
|
305
312
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
306
313
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
307
314
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -309,34 +316,34 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
309
316
|
if (configuration) {
|
|
310
317
|
baseOptions = configuration.baseOptions;
|
|
311
318
|
}
|
|
312
|
-
const localVarRequestOptions =
|
|
319
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
313
320
|
const localVarHeaderParameter = {};
|
|
314
321
|
const localVarQueryParameter = {};
|
|
315
322
|
// authentication CustomAuthentication required
|
|
316
|
-
|
|
323
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
324
|
+
if (userId !== undefined) {
|
|
325
|
+
localVarQueryParameter['userId'] = userId;
|
|
326
|
+
}
|
|
317
327
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
318
328
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
319
|
-
localVarRequestOptions.headers =
|
|
329
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
320
330
|
return {
|
|
321
331
|
url: toPathString(localVarUrlObj),
|
|
322
332
|
options: localVarRequestOptions,
|
|
323
333
|
};
|
|
324
|
-
}
|
|
334
|
+
},
|
|
325
335
|
/**
|
|
326
336
|
*
|
|
327
337
|
* @summary Unmarks item as a favorite.
|
|
328
|
-
* @param {string} userId User id.
|
|
329
338
|
* @param {string} itemId Item id.
|
|
339
|
+
* @param {string} [userId] User id.
|
|
330
340
|
* @param {*} [options] Override http request option.
|
|
331
341
|
* @throws {RequiredError}
|
|
332
342
|
*/
|
|
333
|
-
unmarkFavoriteItem: (
|
|
334
|
-
// verify required parameter 'userId' is not null or undefined
|
|
335
|
-
assertParamExists('unmarkFavoriteItem', 'userId', userId);
|
|
343
|
+
unmarkFavoriteItem: async (itemId, userId, options = {}) => {
|
|
336
344
|
// verify required parameter 'itemId' is not null or undefined
|
|
337
345
|
assertParamExists('unmarkFavoriteItem', 'itemId', itemId);
|
|
338
|
-
const localVarPath = `/
|
|
339
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
346
|
+
const localVarPath = `/UserFavoriteItems/{itemId}`
|
|
340
347
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
341
348
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
342
349
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -344,35 +351,35 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
344
351
|
if (configuration) {
|
|
345
352
|
baseOptions = configuration.baseOptions;
|
|
346
353
|
}
|
|
347
|
-
const localVarRequestOptions =
|
|
354
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
348
355
|
const localVarHeaderParameter = {};
|
|
349
356
|
const localVarQueryParameter = {};
|
|
350
357
|
// authentication CustomAuthentication required
|
|
351
|
-
|
|
358
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
359
|
+
if (userId !== undefined) {
|
|
360
|
+
localVarQueryParameter['userId'] = userId;
|
|
361
|
+
}
|
|
352
362
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
353
363
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
354
|
-
localVarRequestOptions.headers =
|
|
364
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
355
365
|
return {
|
|
356
366
|
url: toPathString(localVarUrlObj),
|
|
357
367
|
options: localVarRequestOptions,
|
|
358
368
|
};
|
|
359
|
-
}
|
|
369
|
+
},
|
|
360
370
|
/**
|
|
361
371
|
*
|
|
362
372
|
* @summary Updates a user\'s rating for an item.
|
|
363
|
-
* @param {string} userId User id.
|
|
364
373
|
* @param {string} itemId Item id.
|
|
365
|
-
* @param {
|
|
374
|
+
* @param {string} [userId] User id.
|
|
375
|
+
* @param {boolean} [likes] Whether this M:Jellyfin.Api.Controllers.UserLibraryController.UpdateUserItemRating(System.Nullable{System.Guid},System.Guid,System.Nullable{System.Boolean}) is likes.
|
|
366
376
|
* @param {*} [options] Override http request option.
|
|
367
377
|
* @throws {RequiredError}
|
|
368
378
|
*/
|
|
369
|
-
updateUserItemRating: (
|
|
370
|
-
// verify required parameter 'userId' is not null or undefined
|
|
371
|
-
assertParamExists('updateUserItemRating', 'userId', userId);
|
|
379
|
+
updateUserItemRating: async (itemId, userId, likes, options = {}) => {
|
|
372
380
|
// verify required parameter 'itemId' is not null or undefined
|
|
373
381
|
assertParamExists('updateUserItemRating', 'itemId', itemId);
|
|
374
|
-
const localVarPath = `/
|
|
375
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
382
|
+
const localVarPath = `/UserItems/{itemId}/Rating`
|
|
376
383
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
377
384
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
378
385
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -380,22 +387,25 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
380
387
|
if (configuration) {
|
|
381
388
|
baseOptions = configuration.baseOptions;
|
|
382
389
|
}
|
|
383
|
-
const localVarRequestOptions =
|
|
390
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
384
391
|
const localVarHeaderParameter = {};
|
|
385
392
|
const localVarQueryParameter = {};
|
|
386
393
|
// authentication CustomAuthentication required
|
|
387
|
-
|
|
394
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
395
|
+
if (userId !== undefined) {
|
|
396
|
+
localVarQueryParameter['userId'] = userId;
|
|
397
|
+
}
|
|
388
398
|
if (likes !== undefined) {
|
|
389
399
|
localVarQueryParameter['likes'] = likes;
|
|
390
400
|
}
|
|
391
401
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
392
402
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
393
|
-
localVarRequestOptions.headers =
|
|
403
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
394
404
|
return {
|
|
395
405
|
url: toPathString(localVarUrlObj),
|
|
396
406
|
options: localVarRequestOptions,
|
|
397
407
|
};
|
|
398
|
-
}
|
|
408
|
+
},
|
|
399
409
|
};
|
|
400
410
|
};
|
|
401
411
|
/**
|
|
@@ -408,49 +418,43 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
408
418
|
/**
|
|
409
419
|
*
|
|
410
420
|
* @summary Deletes a user\'s saved personal rating for an item.
|
|
411
|
-
* @param {string} userId User id.
|
|
412
421
|
* @param {string} itemId Item id.
|
|
422
|
+
* @param {string} [userId] User id.
|
|
413
423
|
* @param {*} [options] Override http request option.
|
|
414
424
|
* @throws {RequiredError}
|
|
415
425
|
*/
|
|
416
|
-
deleteUserItemRating(
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
420
|
-
});
|
|
426
|
+
async deleteUserItemRating(itemId, userId, options) {
|
|
427
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserItemRating(itemId, userId, options);
|
|
428
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
421
429
|
},
|
|
422
430
|
/**
|
|
423
431
|
*
|
|
424
432
|
* @summary Gets intros to play before the main media item plays.
|
|
425
|
-
* @param {string} userId User id.
|
|
426
433
|
* @param {string} itemId Item id.
|
|
434
|
+
* @param {string} [userId] User id.
|
|
427
435
|
* @param {*} [options] Override http request option.
|
|
428
436
|
* @throws {RequiredError}
|
|
429
437
|
*/
|
|
430
|
-
getIntros(
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
434
|
-
});
|
|
438
|
+
async getIntros(itemId, userId, options) {
|
|
439
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getIntros(itemId, userId, options);
|
|
440
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
435
441
|
},
|
|
436
442
|
/**
|
|
437
443
|
*
|
|
438
444
|
* @summary Gets an item from a user\'s library.
|
|
439
|
-
* @param {string} userId User id.
|
|
440
445
|
* @param {string} itemId Item id.
|
|
446
|
+
* @param {string} [userId] User id.
|
|
441
447
|
* @param {*} [options] Override http request option.
|
|
442
448
|
* @throws {RequiredError}
|
|
443
449
|
*/
|
|
444
|
-
getItem(
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
448
|
-
});
|
|
450
|
+
async getItem(itemId, userId, options) {
|
|
451
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getItem(itemId, userId, options);
|
|
452
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
449
453
|
},
|
|
450
454
|
/**
|
|
451
455
|
*
|
|
452
456
|
* @summary Gets latest media.
|
|
453
|
-
* @param {string} userId User id.
|
|
457
|
+
* @param {string} [userId] User id.
|
|
454
458
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
455
459
|
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
456
460
|
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -464,95 +468,81 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
464
468
|
* @param {*} [options] Override http request option.
|
|
465
469
|
* @throws {RequiredError}
|
|
466
470
|
*/
|
|
467
|
-
getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options) {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
471
|
-
});
|
|
471
|
+
async getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options) {
|
|
472
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options);
|
|
473
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
472
474
|
},
|
|
473
475
|
/**
|
|
474
476
|
*
|
|
475
477
|
* @summary Gets local trailers for an item.
|
|
476
|
-
* @param {string} userId User id.
|
|
477
478
|
* @param {string} itemId Item id.
|
|
479
|
+
* @param {string} [userId] User id.
|
|
478
480
|
* @param {*} [options] Override http request option.
|
|
479
481
|
* @throws {RequiredError}
|
|
480
482
|
*/
|
|
481
|
-
getLocalTrailers(
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
485
|
-
});
|
|
483
|
+
async getLocalTrailers(itemId, userId, options) {
|
|
484
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLocalTrailers(itemId, userId, options);
|
|
485
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
486
486
|
},
|
|
487
487
|
/**
|
|
488
488
|
*
|
|
489
489
|
* @summary Gets the root folder from a user\'s library.
|
|
490
|
-
* @param {string} userId User id.
|
|
490
|
+
* @param {string} [userId] User id.
|
|
491
491
|
* @param {*} [options] Override http request option.
|
|
492
492
|
* @throws {RequiredError}
|
|
493
493
|
*/
|
|
494
|
-
getRootFolder(userId, options) {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
498
|
-
});
|
|
494
|
+
async getRootFolder(userId, options) {
|
|
495
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRootFolder(userId, options);
|
|
496
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
499
497
|
},
|
|
500
498
|
/**
|
|
501
499
|
*
|
|
502
500
|
* @summary Gets special features for an item.
|
|
503
|
-
* @param {string} userId User id.
|
|
504
501
|
* @param {string} itemId Item id.
|
|
502
|
+
* @param {string} [userId] User id.
|
|
505
503
|
* @param {*} [options] Override http request option.
|
|
506
504
|
* @throws {RequiredError}
|
|
507
505
|
*/
|
|
508
|
-
getSpecialFeatures(
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
512
|
-
});
|
|
506
|
+
async getSpecialFeatures(itemId, userId, options) {
|
|
507
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSpecialFeatures(itemId, userId, options);
|
|
508
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
513
509
|
},
|
|
514
510
|
/**
|
|
515
511
|
*
|
|
516
512
|
* @summary Marks an item as a favorite.
|
|
517
|
-
* @param {string} userId User id.
|
|
518
513
|
* @param {string} itemId Item id.
|
|
514
|
+
* @param {string} [userId] User id.
|
|
519
515
|
* @param {*} [options] Override http request option.
|
|
520
516
|
* @throws {RequiredError}
|
|
521
517
|
*/
|
|
522
|
-
markFavoriteItem(
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
526
|
-
});
|
|
518
|
+
async markFavoriteItem(itemId, userId, options) {
|
|
519
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.markFavoriteItem(itemId, userId, options);
|
|
520
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
527
521
|
},
|
|
528
522
|
/**
|
|
529
523
|
*
|
|
530
524
|
* @summary Unmarks item as a favorite.
|
|
531
|
-
* @param {string} userId User id.
|
|
532
525
|
* @param {string} itemId Item id.
|
|
526
|
+
* @param {string} [userId] User id.
|
|
533
527
|
* @param {*} [options] Override http request option.
|
|
534
528
|
* @throws {RequiredError}
|
|
535
529
|
*/
|
|
536
|
-
unmarkFavoriteItem(
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
540
|
-
});
|
|
530
|
+
async unmarkFavoriteItem(itemId, userId, options) {
|
|
531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unmarkFavoriteItem(itemId, userId, options);
|
|
532
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
541
533
|
},
|
|
542
534
|
/**
|
|
543
535
|
*
|
|
544
536
|
* @summary Updates a user\'s rating for an item.
|
|
545
|
-
* @param {string} userId User id.
|
|
546
537
|
* @param {string} itemId Item id.
|
|
547
|
-
* @param {
|
|
538
|
+
* @param {string} [userId] User id.
|
|
539
|
+
* @param {boolean} [likes] Whether this M:Jellyfin.Api.Controllers.UserLibraryController.UpdateUserItemRating(System.Nullable{System.Guid},System.Guid,System.Nullable{System.Boolean}) is likes.
|
|
548
540
|
* @param {*} [options] Override http request option.
|
|
549
541
|
* @throws {RequiredError}
|
|
550
542
|
*/
|
|
551
|
-
updateUserItemRating(
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
555
|
-
});
|
|
543
|
+
async updateUserItemRating(itemId, userId, likes, options) {
|
|
544
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserItemRating(itemId, userId, likes, options);
|
|
545
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
556
546
|
},
|
|
557
547
|
};
|
|
558
548
|
};
|
|
@@ -566,40 +556,40 @@ const UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
566
556
|
/**
|
|
567
557
|
*
|
|
568
558
|
* @summary Deletes a user\'s saved personal rating for an item.
|
|
569
|
-
* @param {string} userId User id.
|
|
570
559
|
* @param {string} itemId Item id.
|
|
560
|
+
* @param {string} [userId] User id.
|
|
571
561
|
* @param {*} [options] Override http request option.
|
|
572
562
|
* @throws {RequiredError}
|
|
573
563
|
*/
|
|
574
|
-
deleteUserItemRating(
|
|
575
|
-
return localVarFp.deleteUserItemRating(
|
|
564
|
+
deleteUserItemRating(itemId, userId, options) {
|
|
565
|
+
return localVarFp.deleteUserItemRating(itemId, userId, options).then((request) => request(axios, basePath));
|
|
576
566
|
},
|
|
577
567
|
/**
|
|
578
568
|
*
|
|
579
569
|
* @summary Gets intros to play before the main media item plays.
|
|
580
|
-
* @param {string} userId User id.
|
|
581
570
|
* @param {string} itemId Item id.
|
|
571
|
+
* @param {string} [userId] User id.
|
|
582
572
|
* @param {*} [options] Override http request option.
|
|
583
573
|
* @throws {RequiredError}
|
|
584
574
|
*/
|
|
585
|
-
getIntros(
|
|
586
|
-
return localVarFp.getIntros(
|
|
575
|
+
getIntros(itemId, userId, options) {
|
|
576
|
+
return localVarFp.getIntros(itemId, userId, options).then((request) => request(axios, basePath));
|
|
587
577
|
},
|
|
588
578
|
/**
|
|
589
579
|
*
|
|
590
580
|
* @summary Gets an item from a user\'s library.
|
|
591
|
-
* @param {string} userId User id.
|
|
592
581
|
* @param {string} itemId Item id.
|
|
582
|
+
* @param {string} [userId] User id.
|
|
593
583
|
* @param {*} [options] Override http request option.
|
|
594
584
|
* @throws {RequiredError}
|
|
595
585
|
*/
|
|
596
|
-
getItem(
|
|
597
|
-
return localVarFp.getItem(
|
|
586
|
+
getItem(itemId, userId, options) {
|
|
587
|
+
return localVarFp.getItem(itemId, userId, options).then((request) => request(axios, basePath));
|
|
598
588
|
},
|
|
599
589
|
/**
|
|
600
590
|
*
|
|
601
591
|
* @summary Gets latest media.
|
|
602
|
-
* @param {string} userId User id.
|
|
592
|
+
* @param {string} [userId] User id.
|
|
603
593
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
604
594
|
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
605
595
|
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -619,18 +609,18 @@ const UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
619
609
|
/**
|
|
620
610
|
*
|
|
621
611
|
* @summary Gets local trailers for an item.
|
|
622
|
-
* @param {string} userId User id.
|
|
623
612
|
* @param {string} itemId Item id.
|
|
613
|
+
* @param {string} [userId] User id.
|
|
624
614
|
* @param {*} [options] Override http request option.
|
|
625
615
|
* @throws {RequiredError}
|
|
626
616
|
*/
|
|
627
|
-
getLocalTrailers(
|
|
628
|
-
return localVarFp.getLocalTrailers(
|
|
617
|
+
getLocalTrailers(itemId, userId, options) {
|
|
618
|
+
return localVarFp.getLocalTrailers(itemId, userId, options).then((request) => request(axios, basePath));
|
|
629
619
|
},
|
|
630
620
|
/**
|
|
631
621
|
*
|
|
632
622
|
* @summary Gets the root folder from a user\'s library.
|
|
633
|
-
* @param {string} userId User id.
|
|
623
|
+
* @param {string} [userId] User id.
|
|
634
624
|
* @param {*} [options] Override http request option.
|
|
635
625
|
* @throws {RequiredError}
|
|
636
626
|
*/
|
|
@@ -640,47 +630,47 @@ const UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
640
630
|
/**
|
|
641
631
|
*
|
|
642
632
|
* @summary Gets special features for an item.
|
|
643
|
-
* @param {string} userId User id.
|
|
644
633
|
* @param {string} itemId Item id.
|
|
634
|
+
* @param {string} [userId] User id.
|
|
645
635
|
* @param {*} [options] Override http request option.
|
|
646
636
|
* @throws {RequiredError}
|
|
647
637
|
*/
|
|
648
|
-
getSpecialFeatures(
|
|
649
|
-
return localVarFp.getSpecialFeatures(
|
|
638
|
+
getSpecialFeatures(itemId, userId, options) {
|
|
639
|
+
return localVarFp.getSpecialFeatures(itemId, userId, options).then((request) => request(axios, basePath));
|
|
650
640
|
},
|
|
651
641
|
/**
|
|
652
642
|
*
|
|
653
643
|
* @summary Marks an item as a favorite.
|
|
654
|
-
* @param {string} userId User id.
|
|
655
644
|
* @param {string} itemId Item id.
|
|
645
|
+
* @param {string} [userId] User id.
|
|
656
646
|
* @param {*} [options] Override http request option.
|
|
657
647
|
* @throws {RequiredError}
|
|
658
648
|
*/
|
|
659
|
-
markFavoriteItem(
|
|
660
|
-
return localVarFp.markFavoriteItem(
|
|
649
|
+
markFavoriteItem(itemId, userId, options) {
|
|
650
|
+
return localVarFp.markFavoriteItem(itemId, userId, options).then((request) => request(axios, basePath));
|
|
661
651
|
},
|
|
662
652
|
/**
|
|
663
653
|
*
|
|
664
654
|
* @summary Unmarks item as a favorite.
|
|
665
|
-
* @param {string} userId User id.
|
|
666
655
|
* @param {string} itemId Item id.
|
|
656
|
+
* @param {string} [userId] User id.
|
|
667
657
|
* @param {*} [options] Override http request option.
|
|
668
658
|
* @throws {RequiredError}
|
|
669
659
|
*/
|
|
670
|
-
unmarkFavoriteItem(
|
|
671
|
-
return localVarFp.unmarkFavoriteItem(
|
|
660
|
+
unmarkFavoriteItem(itemId, userId, options) {
|
|
661
|
+
return localVarFp.unmarkFavoriteItem(itemId, userId, options).then((request) => request(axios, basePath));
|
|
672
662
|
},
|
|
673
663
|
/**
|
|
674
664
|
*
|
|
675
665
|
* @summary Updates a user\'s rating for an item.
|
|
676
|
-
* @param {string} userId User id.
|
|
677
666
|
* @param {string} itemId Item id.
|
|
678
|
-
* @param {
|
|
667
|
+
* @param {string} [userId] User id.
|
|
668
|
+
* @param {boolean} [likes] Whether this M:Jellyfin.Api.Controllers.UserLibraryController.UpdateUserItemRating(System.Nullable{System.Guid},System.Guid,System.Nullable{System.Boolean}) is likes.
|
|
679
669
|
* @param {*} [options] Override http request option.
|
|
680
670
|
* @throws {RequiredError}
|
|
681
671
|
*/
|
|
682
|
-
updateUserItemRating(
|
|
683
|
-
return localVarFp.updateUserItemRating(
|
|
672
|
+
updateUserItemRating(itemId, userId, likes, options) {
|
|
673
|
+
return localVarFp.updateUserItemRating(itemId, userId, likes, options).then((request) => request(axios, basePath));
|
|
684
674
|
},
|
|
685
675
|
};
|
|
686
676
|
};
|
|
@@ -700,7 +690,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
700
690
|
* @memberof UserLibraryApi
|
|
701
691
|
*/
|
|
702
692
|
deleteUserItemRating(requestParameters, options) {
|
|
703
|
-
return UserLibraryApiFp(this.configuration).deleteUserItemRating(requestParameters.
|
|
693
|
+
return UserLibraryApiFp(this.configuration).deleteUserItemRating(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
704
694
|
}
|
|
705
695
|
/**
|
|
706
696
|
*
|
|
@@ -711,7 +701,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
711
701
|
* @memberof UserLibraryApi
|
|
712
702
|
*/
|
|
713
703
|
getIntros(requestParameters, options) {
|
|
714
|
-
return UserLibraryApiFp(this.configuration).getIntros(requestParameters.
|
|
704
|
+
return UserLibraryApiFp(this.configuration).getIntros(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
715
705
|
}
|
|
716
706
|
/**
|
|
717
707
|
*
|
|
@@ -722,7 +712,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
722
712
|
* @memberof UserLibraryApi
|
|
723
713
|
*/
|
|
724
714
|
getItem(requestParameters, options) {
|
|
725
|
-
return UserLibraryApiFp(this.configuration).getItem(requestParameters.
|
|
715
|
+
return UserLibraryApiFp(this.configuration).getItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
726
716
|
}
|
|
727
717
|
/**
|
|
728
718
|
*
|
|
@@ -732,7 +722,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
732
722
|
* @throws {RequiredError}
|
|
733
723
|
* @memberof UserLibraryApi
|
|
734
724
|
*/
|
|
735
|
-
getLatestMedia(requestParameters, options) {
|
|
725
|
+
getLatestMedia(requestParameters = {}, options) {
|
|
736
726
|
return UserLibraryApiFp(this.configuration).getLatestMedia(requestParameters.userId, requestParameters.parentId, requestParameters.fields, requestParameters.includeItemTypes, requestParameters.isPlayed, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.enableUserData, requestParameters.limit, requestParameters.groupItems, options).then((request) => request(this.axios, this.basePath));
|
|
737
727
|
}
|
|
738
728
|
/**
|
|
@@ -744,7 +734,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
744
734
|
* @memberof UserLibraryApi
|
|
745
735
|
*/
|
|
746
736
|
getLocalTrailers(requestParameters, options) {
|
|
747
|
-
return UserLibraryApiFp(this.configuration).getLocalTrailers(requestParameters.
|
|
737
|
+
return UserLibraryApiFp(this.configuration).getLocalTrailers(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
748
738
|
}
|
|
749
739
|
/**
|
|
750
740
|
*
|
|
@@ -754,7 +744,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
754
744
|
* @throws {RequiredError}
|
|
755
745
|
* @memberof UserLibraryApi
|
|
756
746
|
*/
|
|
757
|
-
getRootFolder(requestParameters, options) {
|
|
747
|
+
getRootFolder(requestParameters = {}, options) {
|
|
758
748
|
return UserLibraryApiFp(this.configuration).getRootFolder(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
759
749
|
}
|
|
760
750
|
/**
|
|
@@ -766,7 +756,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
766
756
|
* @memberof UserLibraryApi
|
|
767
757
|
*/
|
|
768
758
|
getSpecialFeatures(requestParameters, options) {
|
|
769
|
-
return UserLibraryApiFp(this.configuration).getSpecialFeatures(requestParameters.
|
|
759
|
+
return UserLibraryApiFp(this.configuration).getSpecialFeatures(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
770
760
|
}
|
|
771
761
|
/**
|
|
772
762
|
*
|
|
@@ -777,7 +767,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
777
767
|
* @memberof UserLibraryApi
|
|
778
768
|
*/
|
|
779
769
|
markFavoriteItem(requestParameters, options) {
|
|
780
|
-
return UserLibraryApiFp(this.configuration).markFavoriteItem(requestParameters.
|
|
770
|
+
return UserLibraryApiFp(this.configuration).markFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
781
771
|
}
|
|
782
772
|
/**
|
|
783
773
|
*
|
|
@@ -788,7 +778,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
788
778
|
* @memberof UserLibraryApi
|
|
789
779
|
*/
|
|
790
780
|
unmarkFavoriteItem(requestParameters, options) {
|
|
791
|
-
return UserLibraryApiFp(this.configuration).unmarkFavoriteItem(requestParameters.
|
|
781
|
+
return UserLibraryApiFp(this.configuration).unmarkFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
792
782
|
}
|
|
793
783
|
/**
|
|
794
784
|
*
|
|
@@ -799,7 +789,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
799
789
|
* @memberof UserLibraryApi
|
|
800
790
|
*/
|
|
801
791
|
updateUserItemRating(requestParameters, options) {
|
|
802
|
-
return UserLibraryApiFp(this.configuration).updateUserItemRating(requestParameters.
|
|
792
|
+
return UserLibraryApiFp(this.configuration).updateUserItemRating(requestParameters.itemId, requestParameters.userId, requestParameters.likes, options).then((request) => request(this.axios, this.basePath));
|
|
803
793
|
}
|
|
804
794
|
}
|
|
805
795
|
|