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