@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, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -29,7 +28,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
deleteUserItemRating:
|
|
31
|
+
deleteUserItemRating: async (itemId, userId, options = {}) => {
|
|
33
32
|
// verify required parameter 'itemId' is not null or undefined
|
|
34
33
|
assertParamExists('deleteUserItemRating', 'itemId', itemId);
|
|
35
34
|
const localVarPath = `/UserItems/{itemId}/Rating`
|
|
@@ -40,22 +39,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
40
39
|
if (configuration) {
|
|
41
40
|
baseOptions = configuration.baseOptions;
|
|
42
41
|
}
|
|
43
|
-
const localVarRequestOptions =
|
|
42
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
44
43
|
const localVarHeaderParameter = {};
|
|
45
44
|
const localVarQueryParameter = {};
|
|
46
45
|
// authentication CustomAuthentication required
|
|
47
|
-
|
|
46
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
48
47
|
if (userId !== undefined) {
|
|
49
48
|
localVarQueryParameter['userId'] = userId;
|
|
50
49
|
}
|
|
51
50
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
52
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53
|
-
localVarRequestOptions.headers =
|
|
52
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
54
53
|
return {
|
|
55
54
|
url: toPathString(localVarUrlObj),
|
|
56
55
|
options: localVarRequestOptions,
|
|
57
56
|
};
|
|
58
|
-
}
|
|
57
|
+
},
|
|
59
58
|
/**
|
|
60
59
|
*
|
|
61
60
|
* @summary Gets intros to play before the main media item plays.
|
|
@@ -64,7 +63,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
64
63
|
* @param {*} [options] Override http request option.
|
|
65
64
|
* @throws {RequiredError}
|
|
66
65
|
*/
|
|
67
|
-
getIntros:
|
|
66
|
+
getIntros: async (itemId, userId, options = {}) => {
|
|
68
67
|
// verify required parameter 'itemId' is not null or undefined
|
|
69
68
|
assertParamExists('getIntros', 'itemId', itemId);
|
|
70
69
|
const localVarPath = `/Items/{itemId}/Intros`
|
|
@@ -75,22 +74,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
75
74
|
if (configuration) {
|
|
76
75
|
baseOptions = configuration.baseOptions;
|
|
77
76
|
}
|
|
78
|
-
const localVarRequestOptions =
|
|
77
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
79
78
|
const localVarHeaderParameter = {};
|
|
80
79
|
const localVarQueryParameter = {};
|
|
81
80
|
// authentication CustomAuthentication required
|
|
82
|
-
|
|
81
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
83
82
|
if (userId !== undefined) {
|
|
84
83
|
localVarQueryParameter['userId'] = userId;
|
|
85
84
|
}
|
|
86
85
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
87
86
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
88
|
-
localVarRequestOptions.headers =
|
|
87
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
89
88
|
return {
|
|
90
89
|
url: toPathString(localVarUrlObj),
|
|
91
90
|
options: localVarRequestOptions,
|
|
92
91
|
};
|
|
93
|
-
}
|
|
92
|
+
},
|
|
94
93
|
/**
|
|
95
94
|
*
|
|
96
95
|
* @summary Gets an item from a user\'s library.
|
|
@@ -99,7 +98,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
99
98
|
* @param {*} [options] Override http request option.
|
|
100
99
|
* @throws {RequiredError}
|
|
101
100
|
*/
|
|
102
|
-
getItem:
|
|
101
|
+
getItem: async (itemId, userId, options = {}) => {
|
|
103
102
|
// verify required parameter 'itemId' is not null or undefined
|
|
104
103
|
assertParamExists('getItem', 'itemId', itemId);
|
|
105
104
|
const localVarPath = `/Items/{itemId}`
|
|
@@ -110,22 +109,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
110
109
|
if (configuration) {
|
|
111
110
|
baseOptions = configuration.baseOptions;
|
|
112
111
|
}
|
|
113
|
-
const localVarRequestOptions =
|
|
112
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
114
113
|
const localVarHeaderParameter = {};
|
|
115
114
|
const localVarQueryParameter = {};
|
|
116
115
|
// authentication CustomAuthentication required
|
|
117
|
-
|
|
116
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
118
117
|
if (userId !== undefined) {
|
|
119
118
|
localVarQueryParameter['userId'] = userId;
|
|
120
119
|
}
|
|
121
120
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
122
121
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
123
|
-
localVarRequestOptions.headers =
|
|
122
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
124
123
|
return {
|
|
125
124
|
url: toPathString(localVarUrlObj),
|
|
126
125
|
options: localVarRequestOptions,
|
|
127
126
|
};
|
|
128
|
-
}
|
|
127
|
+
},
|
|
129
128
|
/**
|
|
130
129
|
*
|
|
131
130
|
* @summary Gets latest media.
|
|
@@ -143,7 +142,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
143
142
|
* @param {*} [options] Override http request option.
|
|
144
143
|
* @throws {RequiredError}
|
|
145
144
|
*/
|
|
146
|
-
getLatestMedia:
|
|
145
|
+
getLatestMedia: async (userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options = {}) => {
|
|
147
146
|
const localVarPath = `/Items/Latest`;
|
|
148
147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
148
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -151,11 +150,11 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
151
150
|
if (configuration) {
|
|
152
151
|
baseOptions = configuration.baseOptions;
|
|
153
152
|
}
|
|
154
|
-
const localVarRequestOptions =
|
|
153
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
155
154
|
const localVarHeaderParameter = {};
|
|
156
155
|
const localVarQueryParameter = {};
|
|
157
156
|
// authentication CustomAuthentication required
|
|
158
|
-
|
|
157
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
159
158
|
if (userId !== undefined) {
|
|
160
159
|
localVarQueryParameter['userId'] = userId;
|
|
161
160
|
}
|
|
@@ -191,12 +190,12 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
191
190
|
}
|
|
192
191
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
193
192
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
194
|
-
localVarRequestOptions.headers =
|
|
193
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
195
194
|
return {
|
|
196
195
|
url: toPathString(localVarUrlObj),
|
|
197
196
|
options: localVarRequestOptions,
|
|
198
197
|
};
|
|
199
|
-
}
|
|
198
|
+
},
|
|
200
199
|
/**
|
|
201
200
|
*
|
|
202
201
|
* @summary Gets local trailers for an item.
|
|
@@ -205,7 +204,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
205
204
|
* @param {*} [options] Override http request option.
|
|
206
205
|
* @throws {RequiredError}
|
|
207
206
|
*/
|
|
208
|
-
getLocalTrailers:
|
|
207
|
+
getLocalTrailers: async (itemId, userId, options = {}) => {
|
|
209
208
|
// verify required parameter 'itemId' is not null or undefined
|
|
210
209
|
assertParamExists('getLocalTrailers', 'itemId', itemId);
|
|
211
210
|
const localVarPath = `/Items/{itemId}/LocalTrailers`
|
|
@@ -216,22 +215,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
216
215
|
if (configuration) {
|
|
217
216
|
baseOptions = configuration.baseOptions;
|
|
218
217
|
}
|
|
219
|
-
const localVarRequestOptions =
|
|
218
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
220
219
|
const localVarHeaderParameter = {};
|
|
221
220
|
const localVarQueryParameter = {};
|
|
222
221
|
// authentication CustomAuthentication required
|
|
223
|
-
|
|
222
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
224
223
|
if (userId !== undefined) {
|
|
225
224
|
localVarQueryParameter['userId'] = userId;
|
|
226
225
|
}
|
|
227
226
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
228
227
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
-
localVarRequestOptions.headers =
|
|
228
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
230
229
|
return {
|
|
231
230
|
url: toPathString(localVarUrlObj),
|
|
232
231
|
options: localVarRequestOptions,
|
|
233
232
|
};
|
|
234
|
-
}
|
|
233
|
+
},
|
|
235
234
|
/**
|
|
236
235
|
*
|
|
237
236
|
* @summary Gets the root folder from a user\'s library.
|
|
@@ -239,7 +238,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
239
238
|
* @param {*} [options] Override http request option.
|
|
240
239
|
* @throws {RequiredError}
|
|
241
240
|
*/
|
|
242
|
-
getRootFolder:
|
|
241
|
+
getRootFolder: async (userId, options = {}) => {
|
|
243
242
|
const localVarPath = `/Items/Root`;
|
|
244
243
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
245
244
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -247,22 +246,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
247
246
|
if (configuration) {
|
|
248
247
|
baseOptions = configuration.baseOptions;
|
|
249
248
|
}
|
|
250
|
-
const localVarRequestOptions =
|
|
249
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
251
250
|
const localVarHeaderParameter = {};
|
|
252
251
|
const localVarQueryParameter = {};
|
|
253
252
|
// authentication CustomAuthentication required
|
|
254
|
-
|
|
253
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
255
254
|
if (userId !== undefined) {
|
|
256
255
|
localVarQueryParameter['userId'] = userId;
|
|
257
256
|
}
|
|
258
257
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
259
258
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
|
-
localVarRequestOptions.headers =
|
|
259
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
261
260
|
return {
|
|
262
261
|
url: toPathString(localVarUrlObj),
|
|
263
262
|
options: localVarRequestOptions,
|
|
264
263
|
};
|
|
265
|
-
}
|
|
264
|
+
},
|
|
266
265
|
/**
|
|
267
266
|
*
|
|
268
267
|
* @summary Gets special features for an item.
|
|
@@ -271,7 +270,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
271
270
|
* @param {*} [options] Override http request option.
|
|
272
271
|
* @throws {RequiredError}
|
|
273
272
|
*/
|
|
274
|
-
getSpecialFeatures:
|
|
273
|
+
getSpecialFeatures: async (itemId, userId, options = {}) => {
|
|
275
274
|
// verify required parameter 'itemId' is not null or undefined
|
|
276
275
|
assertParamExists('getSpecialFeatures', 'itemId', itemId);
|
|
277
276
|
const localVarPath = `/Items/{itemId}/SpecialFeatures`
|
|
@@ -282,22 +281,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
282
281
|
if (configuration) {
|
|
283
282
|
baseOptions = configuration.baseOptions;
|
|
284
283
|
}
|
|
285
|
-
const localVarRequestOptions =
|
|
284
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
286
285
|
const localVarHeaderParameter = {};
|
|
287
286
|
const localVarQueryParameter = {};
|
|
288
287
|
// authentication CustomAuthentication required
|
|
289
|
-
|
|
288
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
290
289
|
if (userId !== undefined) {
|
|
291
290
|
localVarQueryParameter['userId'] = userId;
|
|
292
291
|
}
|
|
293
292
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
294
293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
295
|
-
localVarRequestOptions.headers =
|
|
294
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
296
295
|
return {
|
|
297
296
|
url: toPathString(localVarUrlObj),
|
|
298
297
|
options: localVarRequestOptions,
|
|
299
298
|
};
|
|
300
|
-
}
|
|
299
|
+
},
|
|
301
300
|
/**
|
|
302
301
|
*
|
|
303
302
|
* @summary Marks an item as a favorite.
|
|
@@ -306,7 +305,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
306
305
|
* @param {*} [options] Override http request option.
|
|
307
306
|
* @throws {RequiredError}
|
|
308
307
|
*/
|
|
309
|
-
markFavoriteItem:
|
|
308
|
+
markFavoriteItem: async (itemId, userId, options = {}) => {
|
|
310
309
|
// verify required parameter 'itemId' is not null or undefined
|
|
311
310
|
assertParamExists('markFavoriteItem', 'itemId', itemId);
|
|
312
311
|
const localVarPath = `/UserFavoriteItems/{itemId}`
|
|
@@ -317,22 +316,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
317
316
|
if (configuration) {
|
|
318
317
|
baseOptions = configuration.baseOptions;
|
|
319
318
|
}
|
|
320
|
-
const localVarRequestOptions =
|
|
319
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
321
320
|
const localVarHeaderParameter = {};
|
|
322
321
|
const localVarQueryParameter = {};
|
|
323
322
|
// authentication CustomAuthentication required
|
|
324
|
-
|
|
323
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
325
324
|
if (userId !== undefined) {
|
|
326
325
|
localVarQueryParameter['userId'] = userId;
|
|
327
326
|
}
|
|
328
327
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
329
328
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
330
|
-
localVarRequestOptions.headers =
|
|
329
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
331
330
|
return {
|
|
332
331
|
url: toPathString(localVarUrlObj),
|
|
333
332
|
options: localVarRequestOptions,
|
|
334
333
|
};
|
|
335
|
-
}
|
|
334
|
+
},
|
|
336
335
|
/**
|
|
337
336
|
*
|
|
338
337
|
* @summary Unmarks item as a favorite.
|
|
@@ -341,7 +340,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
341
340
|
* @param {*} [options] Override http request option.
|
|
342
341
|
* @throws {RequiredError}
|
|
343
342
|
*/
|
|
344
|
-
unmarkFavoriteItem:
|
|
343
|
+
unmarkFavoriteItem: async (itemId, userId, options = {}) => {
|
|
345
344
|
// verify required parameter 'itemId' is not null or undefined
|
|
346
345
|
assertParamExists('unmarkFavoriteItem', 'itemId', itemId);
|
|
347
346
|
const localVarPath = `/UserFavoriteItems/{itemId}`
|
|
@@ -352,22 +351,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
352
351
|
if (configuration) {
|
|
353
352
|
baseOptions = configuration.baseOptions;
|
|
354
353
|
}
|
|
355
|
-
const localVarRequestOptions =
|
|
354
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
356
355
|
const localVarHeaderParameter = {};
|
|
357
356
|
const localVarQueryParameter = {};
|
|
358
357
|
// authentication CustomAuthentication required
|
|
359
|
-
|
|
358
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
360
359
|
if (userId !== undefined) {
|
|
361
360
|
localVarQueryParameter['userId'] = userId;
|
|
362
361
|
}
|
|
363
362
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
364
363
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
365
|
-
localVarRequestOptions.headers =
|
|
364
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
366
365
|
return {
|
|
367
366
|
url: toPathString(localVarUrlObj),
|
|
368
367
|
options: localVarRequestOptions,
|
|
369
368
|
};
|
|
370
|
-
}
|
|
369
|
+
},
|
|
371
370
|
/**
|
|
372
371
|
*
|
|
373
372
|
* @summary Updates a user\'s rating for an item.
|
|
@@ -377,7 +376,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
377
376
|
* @param {*} [options] Override http request option.
|
|
378
377
|
* @throws {RequiredError}
|
|
379
378
|
*/
|
|
380
|
-
updateUserItemRating:
|
|
379
|
+
updateUserItemRating: async (itemId, userId, likes, options = {}) => {
|
|
381
380
|
// verify required parameter 'itemId' is not null or undefined
|
|
382
381
|
assertParamExists('updateUserItemRating', 'itemId', itemId);
|
|
383
382
|
const localVarPath = `/UserItems/{itemId}/Rating`
|
|
@@ -388,11 +387,11 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
388
387
|
if (configuration) {
|
|
389
388
|
baseOptions = configuration.baseOptions;
|
|
390
389
|
}
|
|
391
|
-
const localVarRequestOptions =
|
|
390
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
392
391
|
const localVarHeaderParameter = {};
|
|
393
392
|
const localVarQueryParameter = {};
|
|
394
393
|
// authentication CustomAuthentication required
|
|
395
|
-
|
|
394
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
396
395
|
if (userId !== undefined) {
|
|
397
396
|
localVarQueryParameter['userId'] = userId;
|
|
398
397
|
}
|
|
@@ -401,12 +400,12 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
401
400
|
}
|
|
402
401
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
403
402
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
404
|
-
localVarRequestOptions.headers =
|
|
403
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
405
404
|
return {
|
|
406
405
|
url: toPathString(localVarUrlObj),
|
|
407
406
|
options: localVarRequestOptions,
|
|
408
407
|
};
|
|
409
|
-
}
|
|
408
|
+
},
|
|
410
409
|
};
|
|
411
410
|
};
|
|
412
411
|
/**
|
|
@@ -424,11 +423,9 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
424
423
|
* @param {*} [options] Override http request option.
|
|
425
424
|
* @throws {RequiredError}
|
|
426
425
|
*/
|
|
427
|
-
deleteUserItemRating(itemId, userId, options) {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
431
|
-
});
|
|
426
|
+
async deleteUserItemRating(itemId, userId, options) {
|
|
427
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserItemRating(itemId, userId, options);
|
|
428
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
432
429
|
},
|
|
433
430
|
/**
|
|
434
431
|
*
|
|
@@ -438,11 +435,9 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
438
435
|
* @param {*} [options] Override http request option.
|
|
439
436
|
* @throws {RequiredError}
|
|
440
437
|
*/
|
|
441
|
-
getIntros(itemId, userId, options) {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
445
|
-
});
|
|
438
|
+
async getIntros(itemId, userId, options) {
|
|
439
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getIntros(itemId, userId, options);
|
|
440
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
446
441
|
},
|
|
447
442
|
/**
|
|
448
443
|
*
|
|
@@ -452,11 +447,9 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
452
447
|
* @param {*} [options] Override http request option.
|
|
453
448
|
* @throws {RequiredError}
|
|
454
449
|
*/
|
|
455
|
-
getItem(itemId, userId, options) {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
459
|
-
});
|
|
450
|
+
async getItem(itemId, userId, options) {
|
|
451
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getItem(itemId, userId, options);
|
|
452
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
460
453
|
},
|
|
461
454
|
/**
|
|
462
455
|
*
|
|
@@ -475,11 +468,9 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
475
468
|
* @param {*} [options] Override http request option.
|
|
476
469
|
* @throws {RequiredError}
|
|
477
470
|
*/
|
|
478
|
-
getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options) {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
482
|
-
});
|
|
471
|
+
async getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options) {
|
|
472
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options);
|
|
473
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
483
474
|
},
|
|
484
475
|
/**
|
|
485
476
|
*
|
|
@@ -489,11 +480,9 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
489
480
|
* @param {*} [options] Override http request option.
|
|
490
481
|
* @throws {RequiredError}
|
|
491
482
|
*/
|
|
492
|
-
getLocalTrailers(itemId, userId, options) {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
496
|
-
});
|
|
483
|
+
async getLocalTrailers(itemId, userId, options) {
|
|
484
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLocalTrailers(itemId, userId, options);
|
|
485
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
497
486
|
},
|
|
498
487
|
/**
|
|
499
488
|
*
|
|
@@ -502,11 +491,9 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
502
491
|
* @param {*} [options] Override http request option.
|
|
503
492
|
* @throws {RequiredError}
|
|
504
493
|
*/
|
|
505
|
-
getRootFolder(userId, options) {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
509
|
-
});
|
|
494
|
+
async getRootFolder(userId, options) {
|
|
495
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRootFolder(userId, options);
|
|
496
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
510
497
|
},
|
|
511
498
|
/**
|
|
512
499
|
*
|
|
@@ -516,11 +503,9 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
516
503
|
* @param {*} [options] Override http request option.
|
|
517
504
|
* @throws {RequiredError}
|
|
518
505
|
*/
|
|
519
|
-
getSpecialFeatures(itemId, userId, options) {
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
523
|
-
});
|
|
506
|
+
async getSpecialFeatures(itemId, userId, options) {
|
|
507
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSpecialFeatures(itemId, userId, options);
|
|
508
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
524
509
|
},
|
|
525
510
|
/**
|
|
526
511
|
*
|
|
@@ -530,11 +515,9 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
530
515
|
* @param {*} [options] Override http request option.
|
|
531
516
|
* @throws {RequiredError}
|
|
532
517
|
*/
|
|
533
|
-
markFavoriteItem(itemId, userId, options) {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
537
|
-
});
|
|
518
|
+
async markFavoriteItem(itemId, userId, options) {
|
|
519
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.markFavoriteItem(itemId, userId, options);
|
|
520
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
538
521
|
},
|
|
539
522
|
/**
|
|
540
523
|
*
|
|
@@ -544,11 +527,9 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
544
527
|
* @param {*} [options] Override http request option.
|
|
545
528
|
* @throws {RequiredError}
|
|
546
529
|
*/
|
|
547
|
-
unmarkFavoriteItem(itemId, userId, options) {
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
551
|
-
});
|
|
530
|
+
async unmarkFavoriteItem(itemId, userId, options) {
|
|
531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unmarkFavoriteItem(itemId, userId, options);
|
|
532
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
552
533
|
},
|
|
553
534
|
/**
|
|
554
535
|
*
|
|
@@ -559,11 +540,9 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
559
540
|
* @param {*} [options] Override http request option.
|
|
560
541
|
* @throws {RequiredError}
|
|
561
542
|
*/
|
|
562
|
-
updateUserItemRating(itemId, userId, likes, options) {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
566
|
-
});
|
|
543
|
+
async updateUserItemRating(itemId, userId, likes, options) {
|
|
544
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserItemRating(itemId, userId, likes, options);
|
|
545
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
567
546
|
},
|
|
568
547
|
};
|
|
569
548
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -28,7 +27,7 @@ const UserViewsApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
getGroupingOptions:
|
|
30
|
+
getGroupingOptions: async (userId, options = {}) => {
|
|
32
31
|
const localVarPath = `/UserViews/GroupingOptions`;
|
|
33
32
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34
33
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -36,22 +35,22 @@ const UserViewsApiAxiosParamCreator = function (configuration) {
|
|
|
36
35
|
if (configuration) {
|
|
37
36
|
baseOptions = configuration.baseOptions;
|
|
38
37
|
}
|
|
39
|
-
const localVarRequestOptions =
|
|
38
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
40
39
|
const localVarHeaderParameter = {};
|
|
41
40
|
const localVarQueryParameter = {};
|
|
42
41
|
// authentication CustomAuthentication required
|
|
43
|
-
|
|
42
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
44
43
|
if (userId !== undefined) {
|
|
45
44
|
localVarQueryParameter['userId'] = userId;
|
|
46
45
|
}
|
|
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 Get user views.
|
|
@@ -62,7 +61,7 @@ const UserViewsApiAxiosParamCreator = function (configuration) {
|
|
|
62
61
|
* @param {*} [options] Override http request option.
|
|
63
62
|
* @throws {RequiredError}
|
|
64
63
|
*/
|
|
65
|
-
getUserViews:
|
|
64
|
+
getUserViews: async (userId, includeExternalContent, presetViews, includeHidden, options = {}) => {
|
|
66
65
|
const localVarPath = `/UserViews`;
|
|
67
66
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
68
67
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -70,11 +69,11 @@ const UserViewsApiAxiosParamCreator = function (configuration) {
|
|
|
70
69
|
if (configuration) {
|
|
71
70
|
baseOptions = configuration.baseOptions;
|
|
72
71
|
}
|
|
73
|
-
const localVarRequestOptions =
|
|
72
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
74
73
|
const localVarHeaderParameter = {};
|
|
75
74
|
const localVarQueryParameter = {};
|
|
76
75
|
// authentication CustomAuthentication required
|
|
77
|
-
|
|
76
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
78
77
|
if (userId !== undefined) {
|
|
79
78
|
localVarQueryParameter['userId'] = userId;
|
|
80
79
|
}
|
|
@@ -89,12 +88,12 @@ const UserViewsApiAxiosParamCreator = function (configuration) {
|
|
|
89
88
|
}
|
|
90
89
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
91
90
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
92
|
-
localVarRequestOptions.headers =
|
|
91
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
93
92
|
return {
|
|
94
93
|
url: toPathString(localVarUrlObj),
|
|
95
94
|
options: localVarRequestOptions,
|
|
96
95
|
};
|
|
97
|
-
}
|
|
96
|
+
},
|
|
98
97
|
};
|
|
99
98
|
};
|
|
100
99
|
/**
|
|
@@ -111,11 +110,9 @@ const UserViewsApiFp = function (configuration) {
|
|
|
111
110
|
* @param {*} [options] Override http request option.
|
|
112
111
|
* @throws {RequiredError}
|
|
113
112
|
*/
|
|
114
|
-
getGroupingOptions(userId, options) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
118
|
-
});
|
|
113
|
+
async getGroupingOptions(userId, options) {
|
|
114
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupingOptions(userId, options);
|
|
115
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
119
116
|
},
|
|
120
117
|
/**
|
|
121
118
|
*
|
|
@@ -127,11 +124,9 @@ const UserViewsApiFp = function (configuration) {
|
|
|
127
124
|
* @param {*} [options] Override http request option.
|
|
128
125
|
* @throws {RequiredError}
|
|
129
126
|
*/
|
|
130
|
-
getUserViews(userId, includeExternalContent, presetViews, includeHidden, options) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
134
|
-
});
|
|
127
|
+
async getUserViews(userId, includeExternalContent, presetViews, includeHidden, options) {
|
|
128
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserViews(userId, includeExternalContent, presetViews, includeHidden, options);
|
|
129
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
135
130
|
},
|
|
136
131
|
};
|
|
137
132
|
};
|