@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, serializeDataIfNeeded, 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
|
* LibraryApi - axios parameter creator
|
|
9
19
|
* @export
|
|
@@ -17,7 +27,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
17
27
|
* @param {*} [options] Override http request option.
|
|
18
28
|
* @throws {RequiredError}
|
|
19
29
|
*/
|
|
20
|
-
deleteItem: (itemId, options = {}) =>
|
|
30
|
+
deleteItem: async (itemId, options = {}) => {
|
|
21
31
|
// verify required parameter 'itemId' is not null or undefined
|
|
22
32
|
assertParamExists('deleteItem', 'itemId', itemId);
|
|
23
33
|
const localVarPath = `/Items/{itemId}`
|
|
@@ -28,19 +38,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
28
38
|
if (configuration) {
|
|
29
39
|
baseOptions = configuration.baseOptions;
|
|
30
40
|
}
|
|
31
|
-
const localVarRequestOptions =
|
|
41
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
32
42
|
const localVarHeaderParameter = {};
|
|
33
43
|
const localVarQueryParameter = {};
|
|
34
44
|
// authentication CustomAuthentication required
|
|
35
|
-
|
|
45
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
36
46
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37
47
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38
|
-
localVarRequestOptions.headers =
|
|
48
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
39
49
|
return {
|
|
40
50
|
url: toPathString(localVarUrlObj),
|
|
41
51
|
options: localVarRequestOptions,
|
|
42
52
|
};
|
|
43
|
-
}
|
|
53
|
+
},
|
|
44
54
|
/**
|
|
45
55
|
*
|
|
46
56
|
* @summary Deletes items from the library and filesystem.
|
|
@@ -48,7 +58,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
48
58
|
* @param {*} [options] Override http request option.
|
|
49
59
|
* @throws {RequiredError}
|
|
50
60
|
*/
|
|
51
|
-
deleteItems: (ids, options = {}) =>
|
|
61
|
+
deleteItems: async (ids, options = {}) => {
|
|
52
62
|
const localVarPath = `/Items`;
|
|
53
63
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
64
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -56,22 +66,22 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
56
66
|
if (configuration) {
|
|
57
67
|
baseOptions = configuration.baseOptions;
|
|
58
68
|
}
|
|
59
|
-
const localVarRequestOptions =
|
|
69
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
60
70
|
const localVarHeaderParameter = {};
|
|
61
71
|
const localVarQueryParameter = {};
|
|
62
72
|
// authentication CustomAuthentication required
|
|
63
|
-
|
|
73
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
64
74
|
if (ids) {
|
|
65
75
|
localVarQueryParameter['ids'] = ids;
|
|
66
76
|
}
|
|
67
77
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
68
78
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
69
|
-
localVarRequestOptions.headers =
|
|
79
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
70
80
|
return {
|
|
71
81
|
url: toPathString(localVarUrlObj),
|
|
72
82
|
options: localVarRequestOptions,
|
|
73
83
|
};
|
|
74
|
-
}
|
|
84
|
+
},
|
|
75
85
|
/**
|
|
76
86
|
*
|
|
77
87
|
* @summary Gets all parents of an item.
|
|
@@ -80,7 +90,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
80
90
|
* @param {*} [options] Override http request option.
|
|
81
91
|
* @throws {RequiredError}
|
|
82
92
|
*/
|
|
83
|
-
getAncestors: (itemId, userId, options = {}) =>
|
|
93
|
+
getAncestors: async (itemId, userId, options = {}) => {
|
|
84
94
|
// verify required parameter 'itemId' is not null or undefined
|
|
85
95
|
assertParamExists('getAncestors', 'itemId', itemId);
|
|
86
96
|
const localVarPath = `/Items/{itemId}/Ancestors`
|
|
@@ -91,22 +101,22 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
91
101
|
if (configuration) {
|
|
92
102
|
baseOptions = configuration.baseOptions;
|
|
93
103
|
}
|
|
94
|
-
const localVarRequestOptions =
|
|
104
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
95
105
|
const localVarHeaderParameter = {};
|
|
96
106
|
const localVarQueryParameter = {};
|
|
97
107
|
// authentication CustomAuthentication required
|
|
98
|
-
|
|
108
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
99
109
|
if (userId !== undefined) {
|
|
100
110
|
localVarQueryParameter['userId'] = userId;
|
|
101
111
|
}
|
|
102
112
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
103
113
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
104
|
-
localVarRequestOptions.headers =
|
|
114
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
105
115
|
return {
|
|
106
116
|
url: toPathString(localVarUrlObj),
|
|
107
117
|
options: localVarRequestOptions,
|
|
108
118
|
};
|
|
109
|
-
}
|
|
119
|
+
},
|
|
110
120
|
/**
|
|
111
121
|
*
|
|
112
122
|
* @summary Gets critic review for an item.
|
|
@@ -115,7 +125,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
115
125
|
* @deprecated
|
|
116
126
|
* @throws {RequiredError}
|
|
117
127
|
*/
|
|
118
|
-
getCriticReviews: (itemId, options = {}) =>
|
|
128
|
+
getCriticReviews: async (itemId, options = {}) => {
|
|
119
129
|
// verify required parameter 'itemId' is not null or undefined
|
|
120
130
|
assertParamExists('getCriticReviews', 'itemId', itemId);
|
|
121
131
|
const localVarPath = `/Items/{itemId}/CriticReviews`
|
|
@@ -126,19 +136,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
126
136
|
if (configuration) {
|
|
127
137
|
baseOptions = configuration.baseOptions;
|
|
128
138
|
}
|
|
129
|
-
const localVarRequestOptions =
|
|
139
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
130
140
|
const localVarHeaderParameter = {};
|
|
131
141
|
const localVarQueryParameter = {};
|
|
132
142
|
// authentication CustomAuthentication required
|
|
133
|
-
|
|
143
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
134
144
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
135
145
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
-
localVarRequestOptions.headers =
|
|
146
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
137
147
|
return {
|
|
138
148
|
url: toPathString(localVarUrlObj),
|
|
139
149
|
options: localVarRequestOptions,
|
|
140
150
|
};
|
|
141
|
-
}
|
|
151
|
+
},
|
|
142
152
|
/**
|
|
143
153
|
*
|
|
144
154
|
* @summary Downloads item media.
|
|
@@ -146,7 +156,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
146
156
|
* @param {*} [options] Override http request option.
|
|
147
157
|
* @throws {RequiredError}
|
|
148
158
|
*/
|
|
149
|
-
getDownload: (itemId, options = {}) =>
|
|
159
|
+
getDownload: async (itemId, options = {}) => {
|
|
150
160
|
// verify required parameter 'itemId' is not null or undefined
|
|
151
161
|
assertParamExists('getDownload', 'itemId', itemId);
|
|
152
162
|
const localVarPath = `/Items/{itemId}/Download`
|
|
@@ -157,19 +167,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
157
167
|
if (configuration) {
|
|
158
168
|
baseOptions = configuration.baseOptions;
|
|
159
169
|
}
|
|
160
|
-
const localVarRequestOptions =
|
|
170
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
161
171
|
const localVarHeaderParameter = {};
|
|
162
172
|
const localVarQueryParameter = {};
|
|
163
173
|
// authentication CustomAuthentication required
|
|
164
|
-
|
|
174
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
165
175
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
166
176
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
167
|
-
localVarRequestOptions.headers =
|
|
177
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
168
178
|
return {
|
|
169
179
|
url: toPathString(localVarUrlObj),
|
|
170
180
|
options: localVarRequestOptions,
|
|
171
181
|
};
|
|
172
|
-
}
|
|
182
|
+
},
|
|
173
183
|
/**
|
|
174
184
|
*
|
|
175
185
|
* @summary Get the original file of an item.
|
|
@@ -177,7 +187,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
177
187
|
* @param {*} [options] Override http request option.
|
|
178
188
|
* @throws {RequiredError}
|
|
179
189
|
*/
|
|
180
|
-
getFile: (itemId, options = {}) =>
|
|
190
|
+
getFile: async (itemId, options = {}) => {
|
|
181
191
|
// verify required parameter 'itemId' is not null or undefined
|
|
182
192
|
assertParamExists('getFile', 'itemId', itemId);
|
|
183
193
|
const localVarPath = `/Items/{itemId}/File`
|
|
@@ -188,19 +198,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
188
198
|
if (configuration) {
|
|
189
199
|
baseOptions = configuration.baseOptions;
|
|
190
200
|
}
|
|
191
|
-
const localVarRequestOptions =
|
|
201
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
192
202
|
const localVarHeaderParameter = {};
|
|
193
203
|
const localVarQueryParameter = {};
|
|
194
204
|
// authentication CustomAuthentication required
|
|
195
|
-
|
|
205
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
196
206
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
197
207
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
198
|
-
localVarRequestOptions.headers =
|
|
208
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
199
209
|
return {
|
|
200
210
|
url: toPathString(localVarUrlObj),
|
|
201
211
|
options: localVarRequestOptions,
|
|
202
212
|
};
|
|
203
|
-
}
|
|
213
|
+
},
|
|
204
214
|
/**
|
|
205
215
|
*
|
|
206
216
|
* @summary Get item counts.
|
|
@@ -209,7 +219,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
209
219
|
* @param {*} [options] Override http request option.
|
|
210
220
|
* @throws {RequiredError}
|
|
211
221
|
*/
|
|
212
|
-
getItemCounts: (userId, isFavorite, options = {}) =>
|
|
222
|
+
getItemCounts: async (userId, isFavorite, options = {}) => {
|
|
213
223
|
const localVarPath = `/Items/Counts`;
|
|
214
224
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
215
225
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -217,11 +227,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
217
227
|
if (configuration) {
|
|
218
228
|
baseOptions = configuration.baseOptions;
|
|
219
229
|
}
|
|
220
|
-
const localVarRequestOptions =
|
|
230
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
221
231
|
const localVarHeaderParameter = {};
|
|
222
232
|
const localVarQueryParameter = {};
|
|
223
233
|
// authentication CustomAuthentication required
|
|
224
|
-
|
|
234
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
225
235
|
if (userId !== undefined) {
|
|
226
236
|
localVarQueryParameter['userId'] = userId;
|
|
227
237
|
}
|
|
@@ -230,21 +240,21 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
230
240
|
}
|
|
231
241
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
232
242
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
233
|
-
localVarRequestOptions.headers =
|
|
243
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
234
244
|
return {
|
|
235
245
|
url: toPathString(localVarUrlObj),
|
|
236
246
|
options: localVarRequestOptions,
|
|
237
247
|
};
|
|
238
|
-
}
|
|
248
|
+
},
|
|
239
249
|
/**
|
|
240
250
|
*
|
|
241
251
|
* @summary Gets the library options info.
|
|
242
|
-
* @param {
|
|
252
|
+
* @param {CollectionType} [libraryContentType] Library content type.
|
|
243
253
|
* @param {boolean} [isNewLibrary] Whether this is a new library.
|
|
244
254
|
* @param {*} [options] Override http request option.
|
|
245
255
|
* @throws {RequiredError}
|
|
246
256
|
*/
|
|
247
|
-
getLibraryOptionsInfo: (libraryContentType, isNewLibrary, options = {}) =>
|
|
257
|
+
getLibraryOptionsInfo: async (libraryContentType, isNewLibrary, options = {}) => {
|
|
248
258
|
const localVarPath = `/Libraries/AvailableOptions`;
|
|
249
259
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
250
260
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -252,11 +262,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
252
262
|
if (configuration) {
|
|
253
263
|
baseOptions = configuration.baseOptions;
|
|
254
264
|
}
|
|
255
|
-
const localVarRequestOptions =
|
|
265
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
256
266
|
const localVarHeaderParameter = {};
|
|
257
267
|
const localVarQueryParameter = {};
|
|
258
268
|
// authentication CustomAuthentication required
|
|
259
|
-
|
|
269
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
260
270
|
if (libraryContentType !== undefined) {
|
|
261
271
|
localVarQueryParameter['libraryContentType'] = libraryContentType;
|
|
262
272
|
}
|
|
@@ -265,12 +275,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
265
275
|
}
|
|
266
276
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
267
277
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
268
|
-
localVarRequestOptions.headers =
|
|
278
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
269
279
|
return {
|
|
270
280
|
url: toPathString(localVarUrlObj),
|
|
271
281
|
options: localVarRequestOptions,
|
|
272
282
|
};
|
|
273
|
-
}
|
|
283
|
+
},
|
|
274
284
|
/**
|
|
275
285
|
*
|
|
276
286
|
* @summary Gets all user media folders.
|
|
@@ -278,7 +288,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
278
288
|
* @param {*} [options] Override http request option.
|
|
279
289
|
* @throws {RequiredError}
|
|
280
290
|
*/
|
|
281
|
-
getMediaFolders: (isHidden, options = {}) =>
|
|
291
|
+
getMediaFolders: async (isHidden, options = {}) => {
|
|
282
292
|
const localVarPath = `/Library/MediaFolders`;
|
|
283
293
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
284
294
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -286,29 +296,29 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
286
296
|
if (configuration) {
|
|
287
297
|
baseOptions = configuration.baseOptions;
|
|
288
298
|
}
|
|
289
|
-
const localVarRequestOptions =
|
|
299
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
290
300
|
const localVarHeaderParameter = {};
|
|
291
301
|
const localVarQueryParameter = {};
|
|
292
302
|
// authentication CustomAuthentication required
|
|
293
|
-
|
|
303
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
294
304
|
if (isHidden !== undefined) {
|
|
295
305
|
localVarQueryParameter['isHidden'] = isHidden;
|
|
296
306
|
}
|
|
297
307
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
298
308
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
|
-
localVarRequestOptions.headers =
|
|
309
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
300
310
|
return {
|
|
301
311
|
url: toPathString(localVarUrlObj),
|
|
302
312
|
options: localVarRequestOptions,
|
|
303
313
|
};
|
|
304
|
-
}
|
|
314
|
+
},
|
|
305
315
|
/**
|
|
306
316
|
*
|
|
307
317
|
* @summary Gets a list of physical paths from virtual folders.
|
|
308
318
|
* @param {*} [options] Override http request option.
|
|
309
319
|
* @throws {RequiredError}
|
|
310
320
|
*/
|
|
311
|
-
getPhysicalPaths: (options = {}) =>
|
|
321
|
+
getPhysicalPaths: async (options = {}) => {
|
|
312
322
|
const localVarPath = `/Library/PhysicalPaths`;
|
|
313
323
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
324
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -316,19 +326,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
316
326
|
if (configuration) {
|
|
317
327
|
baseOptions = configuration.baseOptions;
|
|
318
328
|
}
|
|
319
|
-
const localVarRequestOptions =
|
|
329
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
320
330
|
const localVarHeaderParameter = {};
|
|
321
331
|
const localVarQueryParameter = {};
|
|
322
332
|
// authentication CustomAuthentication required
|
|
323
|
-
|
|
333
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
324
334
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
325
335
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
326
|
-
localVarRequestOptions.headers =
|
|
336
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
327
337
|
return {
|
|
328
338
|
url: toPathString(localVarUrlObj),
|
|
329
339
|
options: localVarRequestOptions,
|
|
330
340
|
};
|
|
331
|
-
}
|
|
341
|
+
},
|
|
332
342
|
/**
|
|
333
343
|
*
|
|
334
344
|
* @summary Gets similar items.
|
|
@@ -340,7 +350,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
340
350
|
* @param {*} [options] Override http request option.
|
|
341
351
|
* @throws {RequiredError}
|
|
342
352
|
*/
|
|
343
|
-
getSimilarAlbums: (itemId, excludeArtistIds, userId, limit, fields, options = {}) =>
|
|
353
|
+
getSimilarAlbums: async (itemId, excludeArtistIds, userId, limit, fields, options = {}) => {
|
|
344
354
|
// verify required parameter 'itemId' is not null or undefined
|
|
345
355
|
assertParamExists('getSimilarAlbums', 'itemId', itemId);
|
|
346
356
|
const localVarPath = `/Albums/{itemId}/Similar`
|
|
@@ -351,11 +361,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
351
361
|
if (configuration) {
|
|
352
362
|
baseOptions = configuration.baseOptions;
|
|
353
363
|
}
|
|
354
|
-
const localVarRequestOptions =
|
|
364
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
355
365
|
const localVarHeaderParameter = {};
|
|
356
366
|
const localVarQueryParameter = {};
|
|
357
367
|
// authentication CustomAuthentication required
|
|
358
|
-
|
|
368
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
359
369
|
if (excludeArtistIds) {
|
|
360
370
|
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
361
371
|
}
|
|
@@ -370,12 +380,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
370
380
|
}
|
|
371
381
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
372
382
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
373
|
-
localVarRequestOptions.headers =
|
|
383
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
374
384
|
return {
|
|
375
385
|
url: toPathString(localVarUrlObj),
|
|
376
386
|
options: localVarRequestOptions,
|
|
377
387
|
};
|
|
378
|
-
}
|
|
388
|
+
},
|
|
379
389
|
/**
|
|
380
390
|
*
|
|
381
391
|
* @summary Gets similar items.
|
|
@@ -387,7 +397,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
387
397
|
* @param {*} [options] Override http request option.
|
|
388
398
|
* @throws {RequiredError}
|
|
389
399
|
*/
|
|
390
|
-
getSimilarArtists: (itemId, excludeArtistIds, userId, limit, fields, options = {}) =>
|
|
400
|
+
getSimilarArtists: async (itemId, excludeArtistIds, userId, limit, fields, options = {}) => {
|
|
391
401
|
// verify required parameter 'itemId' is not null or undefined
|
|
392
402
|
assertParamExists('getSimilarArtists', 'itemId', itemId);
|
|
393
403
|
const localVarPath = `/Artists/{itemId}/Similar`
|
|
@@ -398,11 +408,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
398
408
|
if (configuration) {
|
|
399
409
|
baseOptions = configuration.baseOptions;
|
|
400
410
|
}
|
|
401
|
-
const localVarRequestOptions =
|
|
411
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
402
412
|
const localVarHeaderParameter = {};
|
|
403
413
|
const localVarQueryParameter = {};
|
|
404
414
|
// authentication CustomAuthentication required
|
|
405
|
-
|
|
415
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
406
416
|
if (excludeArtistIds) {
|
|
407
417
|
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
408
418
|
}
|
|
@@ -417,12 +427,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
417
427
|
}
|
|
418
428
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
419
429
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
420
|
-
localVarRequestOptions.headers =
|
|
430
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
421
431
|
return {
|
|
422
432
|
url: toPathString(localVarUrlObj),
|
|
423
433
|
options: localVarRequestOptions,
|
|
424
434
|
};
|
|
425
|
-
}
|
|
435
|
+
},
|
|
426
436
|
/**
|
|
427
437
|
*
|
|
428
438
|
* @summary Gets similar items.
|
|
@@ -434,7 +444,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
434
444
|
* @param {*} [options] Override http request option.
|
|
435
445
|
* @throws {RequiredError}
|
|
436
446
|
*/
|
|
437
|
-
getSimilarItems: (itemId, excludeArtistIds, userId, limit, fields, options = {}) =>
|
|
447
|
+
getSimilarItems: async (itemId, excludeArtistIds, userId, limit, fields, options = {}) => {
|
|
438
448
|
// verify required parameter 'itemId' is not null or undefined
|
|
439
449
|
assertParamExists('getSimilarItems', 'itemId', itemId);
|
|
440
450
|
const localVarPath = `/Items/{itemId}/Similar`
|
|
@@ -445,11 +455,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
445
455
|
if (configuration) {
|
|
446
456
|
baseOptions = configuration.baseOptions;
|
|
447
457
|
}
|
|
448
|
-
const localVarRequestOptions =
|
|
458
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
449
459
|
const localVarHeaderParameter = {};
|
|
450
460
|
const localVarQueryParameter = {};
|
|
451
461
|
// authentication CustomAuthentication required
|
|
452
|
-
|
|
462
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
453
463
|
if (excludeArtistIds) {
|
|
454
464
|
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
455
465
|
}
|
|
@@ -464,12 +474,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
464
474
|
}
|
|
465
475
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
466
476
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
467
|
-
localVarRequestOptions.headers =
|
|
477
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
468
478
|
return {
|
|
469
479
|
url: toPathString(localVarUrlObj),
|
|
470
480
|
options: localVarRequestOptions,
|
|
471
481
|
};
|
|
472
|
-
}
|
|
482
|
+
},
|
|
473
483
|
/**
|
|
474
484
|
*
|
|
475
485
|
* @summary Gets similar items.
|
|
@@ -481,7 +491,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
481
491
|
* @param {*} [options] Override http request option.
|
|
482
492
|
* @throws {RequiredError}
|
|
483
493
|
*/
|
|
484
|
-
getSimilarMovies: (itemId, excludeArtistIds, userId, limit, fields, options = {}) =>
|
|
494
|
+
getSimilarMovies: async (itemId, excludeArtistIds, userId, limit, fields, options = {}) => {
|
|
485
495
|
// verify required parameter 'itemId' is not null or undefined
|
|
486
496
|
assertParamExists('getSimilarMovies', 'itemId', itemId);
|
|
487
497
|
const localVarPath = `/Movies/{itemId}/Similar`
|
|
@@ -492,11 +502,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
492
502
|
if (configuration) {
|
|
493
503
|
baseOptions = configuration.baseOptions;
|
|
494
504
|
}
|
|
495
|
-
const localVarRequestOptions =
|
|
505
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
496
506
|
const localVarHeaderParameter = {};
|
|
497
507
|
const localVarQueryParameter = {};
|
|
498
508
|
// authentication CustomAuthentication required
|
|
499
|
-
|
|
509
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
500
510
|
if (excludeArtistIds) {
|
|
501
511
|
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
502
512
|
}
|
|
@@ -511,12 +521,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
511
521
|
}
|
|
512
522
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
513
523
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
514
|
-
localVarRequestOptions.headers =
|
|
524
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
515
525
|
return {
|
|
516
526
|
url: toPathString(localVarUrlObj),
|
|
517
527
|
options: localVarRequestOptions,
|
|
518
528
|
};
|
|
519
|
-
}
|
|
529
|
+
},
|
|
520
530
|
/**
|
|
521
531
|
*
|
|
522
532
|
* @summary Gets similar items.
|
|
@@ -528,7 +538,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
528
538
|
* @param {*} [options] Override http request option.
|
|
529
539
|
* @throws {RequiredError}
|
|
530
540
|
*/
|
|
531
|
-
getSimilarShows: (itemId, excludeArtistIds, userId, limit, fields, options = {}) =>
|
|
541
|
+
getSimilarShows: async (itemId, excludeArtistIds, userId, limit, fields, options = {}) => {
|
|
532
542
|
// verify required parameter 'itemId' is not null or undefined
|
|
533
543
|
assertParamExists('getSimilarShows', 'itemId', itemId);
|
|
534
544
|
const localVarPath = `/Shows/{itemId}/Similar`
|
|
@@ -539,11 +549,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
539
549
|
if (configuration) {
|
|
540
550
|
baseOptions = configuration.baseOptions;
|
|
541
551
|
}
|
|
542
|
-
const localVarRequestOptions =
|
|
552
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
543
553
|
const localVarHeaderParameter = {};
|
|
544
554
|
const localVarQueryParameter = {};
|
|
545
555
|
// authentication CustomAuthentication required
|
|
546
|
-
|
|
556
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
547
557
|
if (excludeArtistIds) {
|
|
548
558
|
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
549
559
|
}
|
|
@@ -558,12 +568,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
558
568
|
}
|
|
559
569
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
560
570
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
561
|
-
localVarRequestOptions.headers =
|
|
571
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
562
572
|
return {
|
|
563
573
|
url: toPathString(localVarUrlObj),
|
|
564
574
|
options: localVarRequestOptions,
|
|
565
575
|
};
|
|
566
|
-
}
|
|
576
|
+
},
|
|
567
577
|
/**
|
|
568
578
|
*
|
|
569
579
|
* @summary Gets similar items.
|
|
@@ -575,7 +585,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
575
585
|
* @param {*} [options] Override http request option.
|
|
576
586
|
* @throws {RequiredError}
|
|
577
587
|
*/
|
|
578
|
-
getSimilarTrailers: (itemId, excludeArtistIds, userId, limit, fields, options = {}) =>
|
|
588
|
+
getSimilarTrailers: async (itemId, excludeArtistIds, userId, limit, fields, options = {}) => {
|
|
579
589
|
// verify required parameter 'itemId' is not null or undefined
|
|
580
590
|
assertParamExists('getSimilarTrailers', 'itemId', itemId);
|
|
581
591
|
const localVarPath = `/Trailers/{itemId}/Similar`
|
|
@@ -586,11 +596,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
586
596
|
if (configuration) {
|
|
587
597
|
baseOptions = configuration.baseOptions;
|
|
588
598
|
}
|
|
589
|
-
const localVarRequestOptions =
|
|
599
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
590
600
|
const localVarHeaderParameter = {};
|
|
591
601
|
const localVarQueryParameter = {};
|
|
592
602
|
// authentication CustomAuthentication required
|
|
593
|
-
|
|
603
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
594
604
|
if (excludeArtistIds) {
|
|
595
605
|
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
596
606
|
}
|
|
@@ -605,12 +615,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
605
615
|
}
|
|
606
616
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
607
617
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
608
|
-
localVarRequestOptions.headers =
|
|
618
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
609
619
|
return {
|
|
610
620
|
url: toPathString(localVarUrlObj),
|
|
611
621
|
options: localVarRequestOptions,
|
|
612
622
|
};
|
|
613
|
-
}
|
|
623
|
+
},
|
|
614
624
|
/**
|
|
615
625
|
*
|
|
616
626
|
* @summary Get theme songs and videos for an item.
|
|
@@ -620,7 +630,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
620
630
|
* @param {*} [options] Override http request option.
|
|
621
631
|
* @throws {RequiredError}
|
|
622
632
|
*/
|
|
623
|
-
getThemeMedia: (itemId, userId, inheritFromParent, options = {}) =>
|
|
633
|
+
getThemeMedia: async (itemId, userId, inheritFromParent, options = {}) => {
|
|
624
634
|
// verify required parameter 'itemId' is not null or undefined
|
|
625
635
|
assertParamExists('getThemeMedia', 'itemId', itemId);
|
|
626
636
|
const localVarPath = `/Items/{itemId}/ThemeMedia`
|
|
@@ -631,11 +641,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
631
641
|
if (configuration) {
|
|
632
642
|
baseOptions = configuration.baseOptions;
|
|
633
643
|
}
|
|
634
|
-
const localVarRequestOptions =
|
|
644
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
635
645
|
const localVarHeaderParameter = {};
|
|
636
646
|
const localVarQueryParameter = {};
|
|
637
647
|
// authentication CustomAuthentication required
|
|
638
|
-
|
|
648
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
639
649
|
if (userId !== undefined) {
|
|
640
650
|
localVarQueryParameter['userId'] = userId;
|
|
641
651
|
}
|
|
@@ -644,12 +654,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
644
654
|
}
|
|
645
655
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
646
656
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
647
|
-
localVarRequestOptions.headers =
|
|
657
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
648
658
|
return {
|
|
649
659
|
url: toPathString(localVarUrlObj),
|
|
650
660
|
options: localVarRequestOptions,
|
|
651
661
|
};
|
|
652
|
-
}
|
|
662
|
+
},
|
|
653
663
|
/**
|
|
654
664
|
*
|
|
655
665
|
* @summary Get theme songs for an item.
|
|
@@ -659,7 +669,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
659
669
|
* @param {*} [options] Override http request option.
|
|
660
670
|
* @throws {RequiredError}
|
|
661
671
|
*/
|
|
662
|
-
getThemeSongs: (itemId, userId, inheritFromParent, options = {}) =>
|
|
672
|
+
getThemeSongs: async (itemId, userId, inheritFromParent, options = {}) => {
|
|
663
673
|
// verify required parameter 'itemId' is not null or undefined
|
|
664
674
|
assertParamExists('getThemeSongs', 'itemId', itemId);
|
|
665
675
|
const localVarPath = `/Items/{itemId}/ThemeSongs`
|
|
@@ -670,11 +680,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
670
680
|
if (configuration) {
|
|
671
681
|
baseOptions = configuration.baseOptions;
|
|
672
682
|
}
|
|
673
|
-
const localVarRequestOptions =
|
|
683
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
674
684
|
const localVarHeaderParameter = {};
|
|
675
685
|
const localVarQueryParameter = {};
|
|
676
686
|
// authentication CustomAuthentication required
|
|
677
|
-
|
|
687
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
678
688
|
if (userId !== undefined) {
|
|
679
689
|
localVarQueryParameter['userId'] = userId;
|
|
680
690
|
}
|
|
@@ -683,12 +693,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
683
693
|
}
|
|
684
694
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
685
695
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
686
|
-
localVarRequestOptions.headers =
|
|
696
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
687
697
|
return {
|
|
688
698
|
url: toPathString(localVarUrlObj),
|
|
689
699
|
options: localVarRequestOptions,
|
|
690
700
|
};
|
|
691
|
-
}
|
|
701
|
+
},
|
|
692
702
|
/**
|
|
693
703
|
*
|
|
694
704
|
* @summary Get theme videos for an item.
|
|
@@ -698,7 +708,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
698
708
|
* @param {*} [options] Override http request option.
|
|
699
709
|
* @throws {RequiredError}
|
|
700
710
|
*/
|
|
701
|
-
getThemeVideos: (itemId, userId, inheritFromParent, options = {}) =>
|
|
711
|
+
getThemeVideos: async (itemId, userId, inheritFromParent, options = {}) => {
|
|
702
712
|
// verify required parameter 'itemId' is not null or undefined
|
|
703
713
|
assertParamExists('getThemeVideos', 'itemId', itemId);
|
|
704
714
|
const localVarPath = `/Items/{itemId}/ThemeVideos`
|
|
@@ -709,11 +719,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
709
719
|
if (configuration) {
|
|
710
720
|
baseOptions = configuration.baseOptions;
|
|
711
721
|
}
|
|
712
|
-
const localVarRequestOptions =
|
|
722
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
713
723
|
const localVarHeaderParameter = {};
|
|
714
724
|
const localVarQueryParameter = {};
|
|
715
725
|
// authentication CustomAuthentication required
|
|
716
|
-
|
|
726
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
717
727
|
if (userId !== undefined) {
|
|
718
728
|
localVarQueryParameter['userId'] = userId;
|
|
719
729
|
}
|
|
@@ -722,12 +732,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
722
732
|
}
|
|
723
733
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
724
734
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
725
|
-
localVarRequestOptions.headers =
|
|
735
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
726
736
|
return {
|
|
727
737
|
url: toPathString(localVarUrlObj),
|
|
728
738
|
options: localVarRequestOptions,
|
|
729
739
|
};
|
|
730
|
-
}
|
|
740
|
+
},
|
|
731
741
|
/**
|
|
732
742
|
*
|
|
733
743
|
* @summary Reports that new movies have been added by an external source.
|
|
@@ -736,7 +746,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
736
746
|
* @param {*} [options] Override http request option.
|
|
737
747
|
* @throws {RequiredError}
|
|
738
748
|
*/
|
|
739
|
-
postAddedMovies: (tmdbId, imdbId, options = {}) =>
|
|
749
|
+
postAddedMovies: async (tmdbId, imdbId, options = {}) => {
|
|
740
750
|
const localVarPath = `/Library/Movies/Added`;
|
|
741
751
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
742
752
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -744,11 +754,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
744
754
|
if (configuration) {
|
|
745
755
|
baseOptions = configuration.baseOptions;
|
|
746
756
|
}
|
|
747
|
-
const localVarRequestOptions =
|
|
757
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
748
758
|
const localVarHeaderParameter = {};
|
|
749
759
|
const localVarQueryParameter = {};
|
|
750
760
|
// authentication CustomAuthentication required
|
|
751
|
-
|
|
761
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
752
762
|
if (tmdbId !== undefined) {
|
|
753
763
|
localVarQueryParameter['tmdbId'] = tmdbId;
|
|
754
764
|
}
|
|
@@ -757,12 +767,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
757
767
|
}
|
|
758
768
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
759
769
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
760
|
-
localVarRequestOptions.headers =
|
|
770
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
761
771
|
return {
|
|
762
772
|
url: toPathString(localVarUrlObj),
|
|
763
773
|
options: localVarRequestOptions,
|
|
764
774
|
};
|
|
765
|
-
}
|
|
775
|
+
},
|
|
766
776
|
/**
|
|
767
777
|
*
|
|
768
778
|
* @summary Reports that new episodes of a series have been added by an external source.
|
|
@@ -770,7 +780,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
770
780
|
* @param {*} [options] Override http request option.
|
|
771
781
|
* @throws {RequiredError}
|
|
772
782
|
*/
|
|
773
|
-
postAddedSeries: (tvdbId, options = {}) =>
|
|
783
|
+
postAddedSeries: async (tvdbId, options = {}) => {
|
|
774
784
|
const localVarPath = `/Library/Series/Added`;
|
|
775
785
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
776
786
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -778,22 +788,22 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
778
788
|
if (configuration) {
|
|
779
789
|
baseOptions = configuration.baseOptions;
|
|
780
790
|
}
|
|
781
|
-
const localVarRequestOptions =
|
|
791
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
782
792
|
const localVarHeaderParameter = {};
|
|
783
793
|
const localVarQueryParameter = {};
|
|
784
794
|
// authentication CustomAuthentication required
|
|
785
|
-
|
|
795
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
786
796
|
if (tvdbId !== undefined) {
|
|
787
797
|
localVarQueryParameter['tvdbId'] = tvdbId;
|
|
788
798
|
}
|
|
789
799
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
790
800
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
791
|
-
localVarRequestOptions.headers =
|
|
801
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
792
802
|
return {
|
|
793
803
|
url: toPathString(localVarUrlObj),
|
|
794
804
|
options: localVarRequestOptions,
|
|
795
805
|
};
|
|
796
|
-
}
|
|
806
|
+
},
|
|
797
807
|
/**
|
|
798
808
|
*
|
|
799
809
|
* @summary Reports that new movies have been added by an external source.
|
|
@@ -801,7 +811,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
801
811
|
* @param {*} [options] Override http request option.
|
|
802
812
|
* @throws {RequiredError}
|
|
803
813
|
*/
|
|
804
|
-
postUpdatedMedia: (mediaUpdateInfoDto, options = {}) =>
|
|
814
|
+
postUpdatedMedia: async (mediaUpdateInfoDto, options = {}) => {
|
|
805
815
|
// verify required parameter 'mediaUpdateInfoDto' is not null or undefined
|
|
806
816
|
assertParamExists('postUpdatedMedia', 'mediaUpdateInfoDto', mediaUpdateInfoDto);
|
|
807
817
|
const localVarPath = `/Library/Media/Updated`;
|
|
@@ -811,21 +821,21 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
811
821
|
if (configuration) {
|
|
812
822
|
baseOptions = configuration.baseOptions;
|
|
813
823
|
}
|
|
814
|
-
const localVarRequestOptions =
|
|
824
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
815
825
|
const localVarHeaderParameter = {};
|
|
816
826
|
const localVarQueryParameter = {};
|
|
817
827
|
// authentication CustomAuthentication required
|
|
818
|
-
|
|
828
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
819
829
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
820
830
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
821
831
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
822
|
-
localVarRequestOptions.headers =
|
|
832
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
823
833
|
localVarRequestOptions.data = serializeDataIfNeeded(mediaUpdateInfoDto, localVarRequestOptions, configuration);
|
|
824
834
|
return {
|
|
825
835
|
url: toPathString(localVarUrlObj),
|
|
826
836
|
options: localVarRequestOptions,
|
|
827
837
|
};
|
|
828
|
-
}
|
|
838
|
+
},
|
|
829
839
|
/**
|
|
830
840
|
*
|
|
831
841
|
* @summary Reports that new movies have been added by an external source.
|
|
@@ -834,7 +844,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
834
844
|
* @param {*} [options] Override http request option.
|
|
835
845
|
* @throws {RequiredError}
|
|
836
846
|
*/
|
|
837
|
-
postUpdatedMovies: (tmdbId, imdbId, options = {}) =>
|
|
847
|
+
postUpdatedMovies: async (tmdbId, imdbId, options = {}) => {
|
|
838
848
|
const localVarPath = `/Library/Movies/Updated`;
|
|
839
849
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
840
850
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -842,11 +852,11 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
842
852
|
if (configuration) {
|
|
843
853
|
baseOptions = configuration.baseOptions;
|
|
844
854
|
}
|
|
845
|
-
const localVarRequestOptions =
|
|
855
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
846
856
|
const localVarHeaderParameter = {};
|
|
847
857
|
const localVarQueryParameter = {};
|
|
848
858
|
// authentication CustomAuthentication required
|
|
849
|
-
|
|
859
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
850
860
|
if (tmdbId !== undefined) {
|
|
851
861
|
localVarQueryParameter['tmdbId'] = tmdbId;
|
|
852
862
|
}
|
|
@@ -855,12 +865,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
855
865
|
}
|
|
856
866
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
857
867
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
858
|
-
localVarRequestOptions.headers =
|
|
868
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
859
869
|
return {
|
|
860
870
|
url: toPathString(localVarUrlObj),
|
|
861
871
|
options: localVarRequestOptions,
|
|
862
872
|
};
|
|
863
|
-
}
|
|
873
|
+
},
|
|
864
874
|
/**
|
|
865
875
|
*
|
|
866
876
|
* @summary Reports that new episodes of a series have been added by an external source.
|
|
@@ -868,7 +878,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
868
878
|
* @param {*} [options] Override http request option.
|
|
869
879
|
* @throws {RequiredError}
|
|
870
880
|
*/
|
|
871
|
-
postUpdatedSeries: (tvdbId, options = {}) =>
|
|
881
|
+
postUpdatedSeries: async (tvdbId, options = {}) => {
|
|
872
882
|
const localVarPath = `/Library/Series/Updated`;
|
|
873
883
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
874
884
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -876,29 +886,29 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
876
886
|
if (configuration) {
|
|
877
887
|
baseOptions = configuration.baseOptions;
|
|
878
888
|
}
|
|
879
|
-
const localVarRequestOptions =
|
|
889
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
880
890
|
const localVarHeaderParameter = {};
|
|
881
891
|
const localVarQueryParameter = {};
|
|
882
892
|
// authentication CustomAuthentication required
|
|
883
|
-
|
|
893
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
884
894
|
if (tvdbId !== undefined) {
|
|
885
895
|
localVarQueryParameter['tvdbId'] = tvdbId;
|
|
886
896
|
}
|
|
887
897
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
888
898
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
889
|
-
localVarRequestOptions.headers =
|
|
899
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
890
900
|
return {
|
|
891
901
|
url: toPathString(localVarUrlObj),
|
|
892
902
|
options: localVarRequestOptions,
|
|
893
903
|
};
|
|
894
|
-
}
|
|
904
|
+
},
|
|
895
905
|
/**
|
|
896
906
|
*
|
|
897
907
|
* @summary Starts a library scan.
|
|
898
908
|
* @param {*} [options] Override http request option.
|
|
899
909
|
* @throws {RequiredError}
|
|
900
910
|
*/
|
|
901
|
-
refreshLibrary: (options = {}) =>
|
|
911
|
+
refreshLibrary: async (options = {}) => {
|
|
902
912
|
const localVarPath = `/Library/Refresh`;
|
|
903
913
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
904
914
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -906,19 +916,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
|
|
|
906
916
|
if (configuration) {
|
|
907
917
|
baseOptions = configuration.baseOptions;
|
|
908
918
|
}
|
|
909
|
-
const localVarRequestOptions =
|
|
919
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
910
920
|
const localVarHeaderParameter = {};
|
|
911
921
|
const localVarQueryParameter = {};
|
|
912
922
|
// authentication CustomAuthentication required
|
|
913
|
-
|
|
923
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
914
924
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
915
925
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
916
|
-
localVarRequestOptions.headers =
|
|
926
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
917
927
|
return {
|
|
918
928
|
url: toPathString(localVarUrlObj),
|
|
919
929
|
options: localVarRequestOptions,
|
|
920
930
|
};
|
|
921
|
-
}
|
|
931
|
+
},
|
|
922
932
|
};
|
|
923
933
|
};
|
|
924
934
|
/**
|
|
@@ -935,11 +945,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
935
945
|
* @param {*} [options] Override http request option.
|
|
936
946
|
* @throws {RequiredError}
|
|
937
947
|
*/
|
|
938
|
-
deleteItem(itemId, options) {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
942
|
-
});
|
|
948
|
+
async deleteItem(itemId, options) {
|
|
949
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteItem(itemId, options);
|
|
950
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
943
951
|
},
|
|
944
952
|
/**
|
|
945
953
|
*
|
|
@@ -948,11 +956,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
948
956
|
* @param {*} [options] Override http request option.
|
|
949
957
|
* @throws {RequiredError}
|
|
950
958
|
*/
|
|
951
|
-
deleteItems(ids, options) {
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
955
|
-
});
|
|
959
|
+
async deleteItems(ids, options) {
|
|
960
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteItems(ids, options);
|
|
961
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
956
962
|
},
|
|
957
963
|
/**
|
|
958
964
|
*
|
|
@@ -962,11 +968,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
962
968
|
* @param {*} [options] Override http request option.
|
|
963
969
|
* @throws {RequiredError}
|
|
964
970
|
*/
|
|
965
|
-
getAncestors(itemId, userId, options) {
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
969
|
-
});
|
|
971
|
+
async getAncestors(itemId, userId, options) {
|
|
972
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAncestors(itemId, userId, options);
|
|
973
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
970
974
|
},
|
|
971
975
|
/**
|
|
972
976
|
*
|
|
@@ -976,11 +980,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
976
980
|
* @deprecated
|
|
977
981
|
* @throws {RequiredError}
|
|
978
982
|
*/
|
|
979
|
-
getCriticReviews(itemId, options) {
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
983
|
-
});
|
|
983
|
+
async getCriticReviews(itemId, options) {
|
|
984
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCriticReviews(itemId, options);
|
|
985
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
984
986
|
},
|
|
985
987
|
/**
|
|
986
988
|
*
|
|
@@ -989,11 +991,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
989
991
|
* @param {*} [options] Override http request option.
|
|
990
992
|
* @throws {RequiredError}
|
|
991
993
|
*/
|
|
992
|
-
getDownload(itemId, options) {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
996
|
-
});
|
|
994
|
+
async getDownload(itemId, options) {
|
|
995
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDownload(itemId, options);
|
|
996
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
997
997
|
},
|
|
998
998
|
/**
|
|
999
999
|
*
|
|
@@ -1002,11 +1002,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1002
1002
|
* @param {*} [options] Override http request option.
|
|
1003
1003
|
* @throws {RequiredError}
|
|
1004
1004
|
*/
|
|
1005
|
-
getFile(itemId, options) {
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1009
|
-
});
|
|
1005
|
+
async getFile(itemId, options) {
|
|
1006
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFile(itemId, options);
|
|
1007
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1010
1008
|
},
|
|
1011
1009
|
/**
|
|
1012
1010
|
*
|
|
@@ -1016,25 +1014,21 @@ const LibraryApiFp = function (configuration) {
|
|
|
1016
1014
|
* @param {*} [options] Override http request option.
|
|
1017
1015
|
* @throws {RequiredError}
|
|
1018
1016
|
*/
|
|
1019
|
-
getItemCounts(userId, isFavorite, options) {
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1023
|
-
});
|
|
1017
|
+
async getItemCounts(userId, isFavorite, options) {
|
|
1018
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getItemCounts(userId, isFavorite, options);
|
|
1019
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1024
1020
|
},
|
|
1025
1021
|
/**
|
|
1026
1022
|
*
|
|
1027
1023
|
* @summary Gets the library options info.
|
|
1028
|
-
* @param {
|
|
1024
|
+
* @param {CollectionType} [libraryContentType] Library content type.
|
|
1029
1025
|
* @param {boolean} [isNewLibrary] Whether this is a new library.
|
|
1030
1026
|
* @param {*} [options] Override http request option.
|
|
1031
1027
|
* @throws {RequiredError}
|
|
1032
1028
|
*/
|
|
1033
|
-
getLibraryOptionsInfo(libraryContentType, isNewLibrary, options) {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1037
|
-
});
|
|
1029
|
+
async getLibraryOptionsInfo(libraryContentType, isNewLibrary, options) {
|
|
1030
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options);
|
|
1031
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1038
1032
|
},
|
|
1039
1033
|
/**
|
|
1040
1034
|
*
|
|
@@ -1043,11 +1037,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1043
1037
|
* @param {*} [options] Override http request option.
|
|
1044
1038
|
* @throws {RequiredError}
|
|
1045
1039
|
*/
|
|
1046
|
-
getMediaFolders(isHidden, options) {
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1050
|
-
});
|
|
1040
|
+
async getMediaFolders(isHidden, options) {
|
|
1041
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMediaFolders(isHidden, options);
|
|
1042
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1051
1043
|
},
|
|
1052
1044
|
/**
|
|
1053
1045
|
*
|
|
@@ -1055,11 +1047,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1055
1047
|
* @param {*} [options] Override http request option.
|
|
1056
1048
|
* @throws {RequiredError}
|
|
1057
1049
|
*/
|
|
1058
|
-
getPhysicalPaths(options) {
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1062
|
-
});
|
|
1050
|
+
async getPhysicalPaths(options) {
|
|
1051
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPhysicalPaths(options);
|
|
1052
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1063
1053
|
},
|
|
1064
1054
|
/**
|
|
1065
1055
|
*
|
|
@@ -1072,11 +1062,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1072
1062
|
* @param {*} [options] Override http request option.
|
|
1073
1063
|
* @throws {RequiredError}
|
|
1074
1064
|
*/
|
|
1075
|
-
getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1079
|
-
});
|
|
1065
|
+
async getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1066
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1067
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1080
1068
|
},
|
|
1081
1069
|
/**
|
|
1082
1070
|
*
|
|
@@ -1089,11 +1077,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1089
1077
|
* @param {*} [options] Override http request option.
|
|
1090
1078
|
* @throws {RequiredError}
|
|
1091
1079
|
*/
|
|
1092
|
-
getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1096
|
-
});
|
|
1080
|
+
async getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1081
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1082
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1097
1083
|
},
|
|
1098
1084
|
/**
|
|
1099
1085
|
*
|
|
@@ -1106,11 +1092,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1106
1092
|
* @param {*} [options] Override http request option.
|
|
1107
1093
|
* @throws {RequiredError}
|
|
1108
1094
|
*/
|
|
1109
|
-
getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1113
|
-
});
|
|
1095
|
+
async getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1096
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1097
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1114
1098
|
},
|
|
1115
1099
|
/**
|
|
1116
1100
|
*
|
|
@@ -1123,11 +1107,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1123
1107
|
* @param {*} [options] Override http request option.
|
|
1124
1108
|
* @throws {RequiredError}
|
|
1125
1109
|
*/
|
|
1126
|
-
getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1130
|
-
});
|
|
1110
|
+
async getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1111
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1112
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1131
1113
|
},
|
|
1132
1114
|
/**
|
|
1133
1115
|
*
|
|
@@ -1140,11 +1122,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1140
1122
|
* @param {*} [options] Override http request option.
|
|
1141
1123
|
* @throws {RequiredError}
|
|
1142
1124
|
*/
|
|
1143
|
-
getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1147
|
-
});
|
|
1125
|
+
async getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1127
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1148
1128
|
},
|
|
1149
1129
|
/**
|
|
1150
1130
|
*
|
|
@@ -1157,11 +1137,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1157
1137
|
* @param {*} [options] Override http request option.
|
|
1158
1138
|
* @throws {RequiredError}
|
|
1159
1139
|
*/
|
|
1160
|
-
getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1164
|
-
});
|
|
1140
|
+
async getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1141
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1142
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1165
1143
|
},
|
|
1166
1144
|
/**
|
|
1167
1145
|
*
|
|
@@ -1172,11 +1150,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1172
1150
|
* @param {*} [options] Override http request option.
|
|
1173
1151
|
* @throws {RequiredError}
|
|
1174
1152
|
*/
|
|
1175
|
-
getThemeMedia(itemId, userId, inheritFromParent, options) {
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1179
|
-
});
|
|
1153
|
+
async getThemeMedia(itemId, userId, inheritFromParent, options) {
|
|
1154
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeMedia(itemId, userId, inheritFromParent, options);
|
|
1155
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1180
1156
|
},
|
|
1181
1157
|
/**
|
|
1182
1158
|
*
|
|
@@ -1187,11 +1163,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1187
1163
|
* @param {*} [options] Override http request option.
|
|
1188
1164
|
* @throws {RequiredError}
|
|
1189
1165
|
*/
|
|
1190
|
-
getThemeSongs(itemId, userId, inheritFromParent, options) {
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1194
|
-
});
|
|
1166
|
+
async getThemeSongs(itemId, userId, inheritFromParent, options) {
|
|
1167
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeSongs(itemId, userId, inheritFromParent, options);
|
|
1168
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1195
1169
|
},
|
|
1196
1170
|
/**
|
|
1197
1171
|
*
|
|
@@ -1202,11 +1176,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1202
1176
|
* @param {*} [options] Override http request option.
|
|
1203
1177
|
* @throws {RequiredError}
|
|
1204
1178
|
*/
|
|
1205
|
-
getThemeVideos(itemId, userId, inheritFromParent, options) {
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1209
|
-
});
|
|
1179
|
+
async getThemeVideos(itemId, userId, inheritFromParent, options) {
|
|
1180
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeVideos(itemId, userId, inheritFromParent, options);
|
|
1181
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1210
1182
|
},
|
|
1211
1183
|
/**
|
|
1212
1184
|
*
|
|
@@ -1216,11 +1188,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1216
1188
|
* @param {*} [options] Override http request option.
|
|
1217
1189
|
* @throws {RequiredError}
|
|
1218
1190
|
*/
|
|
1219
|
-
postAddedMovies(tmdbId, imdbId, options) {
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1223
|
-
});
|
|
1191
|
+
async postAddedMovies(tmdbId, imdbId, options) {
|
|
1192
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddedMovies(tmdbId, imdbId, options);
|
|
1193
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1224
1194
|
},
|
|
1225
1195
|
/**
|
|
1226
1196
|
*
|
|
@@ -1229,11 +1199,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1229
1199
|
* @param {*} [options] Override http request option.
|
|
1230
1200
|
* @throws {RequiredError}
|
|
1231
1201
|
*/
|
|
1232
|
-
postAddedSeries(tvdbId, options) {
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1236
|
-
});
|
|
1202
|
+
async postAddedSeries(tvdbId, options) {
|
|
1203
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddedSeries(tvdbId, options);
|
|
1204
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1237
1205
|
},
|
|
1238
1206
|
/**
|
|
1239
1207
|
*
|
|
@@ -1242,11 +1210,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1242
1210
|
* @param {*} [options] Override http request option.
|
|
1243
1211
|
* @throws {RequiredError}
|
|
1244
1212
|
*/
|
|
1245
|
-
postUpdatedMedia(mediaUpdateInfoDto, options) {
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1249
|
-
});
|
|
1213
|
+
async postUpdatedMedia(mediaUpdateInfoDto, options) {
|
|
1214
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postUpdatedMedia(mediaUpdateInfoDto, options);
|
|
1215
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1250
1216
|
},
|
|
1251
1217
|
/**
|
|
1252
1218
|
*
|
|
@@ -1256,11 +1222,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1256
1222
|
* @param {*} [options] Override http request option.
|
|
1257
1223
|
* @throws {RequiredError}
|
|
1258
1224
|
*/
|
|
1259
|
-
postUpdatedMovies(tmdbId, imdbId, options) {
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1263
|
-
});
|
|
1225
|
+
async postUpdatedMovies(tmdbId, imdbId, options) {
|
|
1226
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postUpdatedMovies(tmdbId, imdbId, options);
|
|
1227
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1264
1228
|
},
|
|
1265
1229
|
/**
|
|
1266
1230
|
*
|
|
@@ -1269,11 +1233,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1269
1233
|
* @param {*} [options] Override http request option.
|
|
1270
1234
|
* @throws {RequiredError}
|
|
1271
1235
|
*/
|
|
1272
|
-
postUpdatedSeries(tvdbId, options) {
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1276
|
-
});
|
|
1236
|
+
async postUpdatedSeries(tvdbId, options) {
|
|
1237
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postUpdatedSeries(tvdbId, options);
|
|
1238
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1277
1239
|
},
|
|
1278
1240
|
/**
|
|
1279
1241
|
*
|
|
@@ -1281,11 +1243,9 @@ const LibraryApiFp = function (configuration) {
|
|
|
1281
1243
|
* @param {*} [options] Override http request option.
|
|
1282
1244
|
* @throws {RequiredError}
|
|
1283
1245
|
*/
|
|
1284
|
-
refreshLibrary(options) {
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1288
|
-
});
|
|
1246
|
+
async refreshLibrary(options) {
|
|
1247
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshLibrary(options);
|
|
1248
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1289
1249
|
},
|
|
1290
1250
|
};
|
|
1291
1251
|
};
|
|
@@ -1372,7 +1332,7 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
1372
1332
|
/**
|
|
1373
1333
|
*
|
|
1374
1334
|
* @summary Gets the library options info.
|
|
1375
|
-
* @param {
|
|
1335
|
+
* @param {CollectionType} [libraryContentType] Library content type.
|
|
1376
1336
|
* @param {boolean} [isNewLibrary] Whether this is a new library.
|
|
1377
1337
|
* @param {*} [options] Override http request option.
|
|
1378
1338
|
* @throws {RequiredError}
|