@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 ItemUpdateApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
getMetadataEditorInfo:
|
|
30
|
+
getMetadataEditorInfo: async (itemId, options = {}) => {
|
|
32
31
|
// verify required parameter 'itemId' is not null or undefined
|
|
33
32
|
assertParamExists('getMetadataEditorInfo', 'itemId', itemId);
|
|
34
33
|
const localVarPath = `/Items/{itemId}/MetadataEditor`
|
|
@@ -39,19 +38,19 @@ const ItemUpdateApiAxiosParamCreator = function (configuration) {
|
|
|
39
38
|
if (configuration) {
|
|
40
39
|
baseOptions = configuration.baseOptions;
|
|
41
40
|
}
|
|
42
|
-
const localVarRequestOptions =
|
|
41
|
+
const localVarRequestOptions = { method: 'GET', ...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 Updates an item.
|
|
@@ -60,7 +59,7 @@ const ItemUpdateApiAxiosParamCreator = function (configuration) {
|
|
|
60
59
|
* @param {*} [options] Override http request option.
|
|
61
60
|
* @throws {RequiredError}
|
|
62
61
|
*/
|
|
63
|
-
updateItem:
|
|
62
|
+
updateItem: async (itemId, baseItemDto, options = {}) => {
|
|
64
63
|
// verify required parameter 'itemId' is not null or undefined
|
|
65
64
|
assertParamExists('updateItem', 'itemId', itemId);
|
|
66
65
|
// verify required parameter 'baseItemDto' is not null or undefined
|
|
@@ -73,21 +72,21 @@ const ItemUpdateApiAxiosParamCreator = function (configuration) {
|
|
|
73
72
|
if (configuration) {
|
|
74
73
|
baseOptions = configuration.baseOptions;
|
|
75
74
|
}
|
|
76
|
-
const localVarRequestOptions =
|
|
75
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
77
76
|
const localVarHeaderParameter = {};
|
|
78
77
|
const localVarQueryParameter = {};
|
|
79
78
|
// authentication CustomAuthentication required
|
|
80
|
-
|
|
79
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
81
80
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
82
81
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
82
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
-
localVarRequestOptions.headers =
|
|
83
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
85
84
|
localVarRequestOptions.data = serializeDataIfNeeded(baseItemDto, localVarRequestOptions, configuration);
|
|
86
85
|
return {
|
|
87
86
|
url: toPathString(localVarUrlObj),
|
|
88
87
|
options: localVarRequestOptions,
|
|
89
88
|
};
|
|
90
|
-
}
|
|
89
|
+
},
|
|
91
90
|
/**
|
|
92
91
|
*
|
|
93
92
|
* @summary Updates an item\'s content type.
|
|
@@ -96,7 +95,7 @@ const ItemUpdateApiAxiosParamCreator = function (configuration) {
|
|
|
96
95
|
* @param {*} [options] Override http request option.
|
|
97
96
|
* @throws {RequiredError}
|
|
98
97
|
*/
|
|
99
|
-
updateItemContentType:
|
|
98
|
+
updateItemContentType: async (itemId, contentType, options = {}) => {
|
|
100
99
|
// verify required parameter 'itemId' is not null or undefined
|
|
101
100
|
assertParamExists('updateItemContentType', 'itemId', itemId);
|
|
102
101
|
const localVarPath = `/Items/{itemId}/ContentType`
|
|
@@ -107,22 +106,22 @@ const ItemUpdateApiAxiosParamCreator = function (configuration) {
|
|
|
107
106
|
if (configuration) {
|
|
108
107
|
baseOptions = configuration.baseOptions;
|
|
109
108
|
}
|
|
110
|
-
const localVarRequestOptions =
|
|
109
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
111
110
|
const localVarHeaderParameter = {};
|
|
112
111
|
const localVarQueryParameter = {};
|
|
113
112
|
// authentication CustomAuthentication required
|
|
114
|
-
|
|
113
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
115
114
|
if (contentType !== undefined) {
|
|
116
115
|
localVarQueryParameter['contentType'] = contentType;
|
|
117
116
|
}
|
|
118
117
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
119
118
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
|
-
localVarRequestOptions.headers =
|
|
119
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
121
120
|
return {
|
|
122
121
|
url: toPathString(localVarUrlObj),
|
|
123
122
|
options: localVarRequestOptions,
|
|
124
123
|
};
|
|
125
|
-
}
|
|
124
|
+
},
|
|
126
125
|
};
|
|
127
126
|
};
|
|
128
127
|
/**
|
|
@@ -139,11 +138,9 @@ const ItemUpdateApiFp = function (configuration) {
|
|
|
139
138
|
* @param {*} [options] Override http request option.
|
|
140
139
|
* @throws {RequiredError}
|
|
141
140
|
*/
|
|
142
|
-
getMetadataEditorInfo(itemId, options) {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
146
|
-
});
|
|
141
|
+
async getMetadataEditorInfo(itemId, options) {
|
|
142
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMetadataEditorInfo(itemId, options);
|
|
143
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
147
144
|
},
|
|
148
145
|
/**
|
|
149
146
|
*
|
|
@@ -153,11 +150,9 @@ const ItemUpdateApiFp = function (configuration) {
|
|
|
153
150
|
* @param {*} [options] Override http request option.
|
|
154
151
|
* @throws {RequiredError}
|
|
155
152
|
*/
|
|
156
|
-
updateItem(itemId, baseItemDto, options) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
160
|
-
});
|
|
153
|
+
async updateItem(itemId, baseItemDto, options) {
|
|
154
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateItem(itemId, baseItemDto, options);
|
|
155
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
161
156
|
},
|
|
162
157
|
/**
|
|
163
158
|
*
|
|
@@ -167,11 +162,9 @@ const ItemUpdateApiFp = function (configuration) {
|
|
|
167
162
|
* @param {*} [options] Override http request option.
|
|
168
163
|
* @throws {RequiredError}
|
|
169
164
|
*/
|
|
170
|
-
updateItemContentType(itemId, contentType, options) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
174
|
-
});
|
|
165
|
+
async updateItemContentType(itemId, contentType, options) {
|
|
166
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateItemContentType(itemId, contentType, options);
|
|
167
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
175
168
|
},
|
|
176
169
|
};
|
|
177
170
|
};
|
|
@@ -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';
|
|
@@ -29,7 +28,7 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
getItemUserData:
|
|
31
|
+
getItemUserData: async (itemId, userId, options = {}) => {
|
|
33
32
|
// verify required parameter 'itemId' is not null or undefined
|
|
34
33
|
assertParamExists('getItemUserData', 'itemId', itemId);
|
|
35
34
|
const localVarPath = `/UserItems/{itemId}/UserData`
|
|
@@ -40,22 +39,22 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
40
39
|
if (configuration) {
|
|
41
40
|
baseOptions = configuration.baseOptions;
|
|
42
41
|
}
|
|
43
|
-
const localVarRequestOptions =
|
|
42
|
+
const localVarRequestOptions = { method: 'GET', ...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 items based on a query.
|
|
@@ -147,7 +146,7 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
147
146
|
* @param {*} [options] Override http request option.
|
|
148
147
|
* @throws {RequiredError}
|
|
149
148
|
*/
|
|
150
|
-
getItems:
|
|
149
|
+
getItems: async (userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options = {}) => {
|
|
151
150
|
const localVarPath = `/Items`;
|
|
152
151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
153
152
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -155,11 +154,11 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
155
154
|
if (configuration) {
|
|
156
155
|
baseOptions = configuration.baseOptions;
|
|
157
156
|
}
|
|
158
|
-
const localVarRequestOptions =
|
|
157
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
159
158
|
const localVarHeaderParameter = {};
|
|
160
159
|
const localVarQueryParameter = {};
|
|
161
160
|
// authentication CustomAuthentication required
|
|
162
|
-
|
|
161
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
163
162
|
if (userId !== undefined) {
|
|
164
163
|
localVarQueryParameter['userId'] = userId;
|
|
165
164
|
}
|
|
@@ -425,12 +424,12 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
425
424
|
}
|
|
426
425
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
427
426
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
428
|
-
localVarRequestOptions.headers =
|
|
427
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
429
428
|
return {
|
|
430
429
|
url: toPathString(localVarUrlObj),
|
|
431
430
|
options: localVarRequestOptions,
|
|
432
431
|
};
|
|
433
|
-
}
|
|
432
|
+
},
|
|
434
433
|
/**
|
|
435
434
|
*
|
|
436
435
|
* @summary Gets items based on a query.
|
|
@@ -452,7 +451,7 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
452
451
|
* @param {*} [options] Override http request option.
|
|
453
452
|
* @throws {RequiredError}
|
|
454
453
|
*/
|
|
455
|
-
getResumeItems:
|
|
454
|
+
getResumeItems: async (userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options = {}) => {
|
|
456
455
|
const localVarPath = `/UserItems/Resume`;
|
|
457
456
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
458
457
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -460,11 +459,11 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
460
459
|
if (configuration) {
|
|
461
460
|
baseOptions = configuration.baseOptions;
|
|
462
461
|
}
|
|
463
|
-
const localVarRequestOptions =
|
|
462
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
464
463
|
const localVarHeaderParameter = {};
|
|
465
464
|
const localVarQueryParameter = {};
|
|
466
465
|
// authentication CustomAuthentication required
|
|
467
|
-
|
|
466
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
468
467
|
if (userId !== undefined) {
|
|
469
468
|
localVarQueryParameter['userId'] = userId;
|
|
470
469
|
}
|
|
@@ -512,12 +511,12 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
512
511
|
}
|
|
513
512
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
514
513
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
515
|
-
localVarRequestOptions.headers =
|
|
514
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
516
515
|
return {
|
|
517
516
|
url: toPathString(localVarUrlObj),
|
|
518
517
|
options: localVarRequestOptions,
|
|
519
518
|
};
|
|
520
|
-
}
|
|
519
|
+
},
|
|
521
520
|
/**
|
|
522
521
|
*
|
|
523
522
|
* @summary Update Item User Data.
|
|
@@ -527,7 +526,7 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
527
526
|
* @param {*} [options] Override http request option.
|
|
528
527
|
* @throws {RequiredError}
|
|
529
528
|
*/
|
|
530
|
-
updateItemUserData:
|
|
529
|
+
updateItemUserData: async (itemId, updateUserItemDataDto, userId, options = {}) => {
|
|
531
530
|
// verify required parameter 'itemId' is not null or undefined
|
|
532
531
|
assertParamExists('updateItemUserData', 'itemId', itemId);
|
|
533
532
|
// verify required parameter 'updateUserItemDataDto' is not null or undefined
|
|
@@ -540,24 +539,24 @@ const ItemsApiAxiosParamCreator = function (configuration) {
|
|
|
540
539
|
if (configuration) {
|
|
541
540
|
baseOptions = configuration.baseOptions;
|
|
542
541
|
}
|
|
543
|
-
const localVarRequestOptions =
|
|
542
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
544
543
|
const localVarHeaderParameter = {};
|
|
545
544
|
const localVarQueryParameter = {};
|
|
546
545
|
// authentication CustomAuthentication required
|
|
547
|
-
|
|
546
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
548
547
|
if (userId !== undefined) {
|
|
549
548
|
localVarQueryParameter['userId'] = userId;
|
|
550
549
|
}
|
|
551
550
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
552
551
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
553
552
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
554
|
-
localVarRequestOptions.headers =
|
|
553
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
555
554
|
localVarRequestOptions.data = serializeDataIfNeeded(updateUserItemDataDto, localVarRequestOptions, configuration);
|
|
556
555
|
return {
|
|
557
556
|
url: toPathString(localVarUrlObj),
|
|
558
557
|
options: localVarRequestOptions,
|
|
559
558
|
};
|
|
560
|
-
}
|
|
559
|
+
},
|
|
561
560
|
};
|
|
562
561
|
};
|
|
563
562
|
/**
|
|
@@ -575,11 +574,9 @@ const ItemsApiFp = function (configuration) {
|
|
|
575
574
|
* @param {*} [options] Override http request option.
|
|
576
575
|
* @throws {RequiredError}
|
|
577
576
|
*/
|
|
578
|
-
getItemUserData(itemId, userId, options) {
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
582
|
-
});
|
|
577
|
+
async getItemUserData(itemId, userId, options) {
|
|
578
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getItemUserData(itemId, userId, options);
|
|
579
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
583
580
|
},
|
|
584
581
|
/**
|
|
585
582
|
*
|
|
@@ -672,11 +669,9 @@ const ItemsApiFp = function (configuration) {
|
|
|
672
669
|
* @param {*} [options] Override http request option.
|
|
673
670
|
* @throws {RequiredError}
|
|
674
671
|
*/
|
|
675
|
-
getItems(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options) {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
679
|
-
});
|
|
672
|
+
async getItems(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options) {
|
|
673
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getItems(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options);
|
|
674
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
680
675
|
},
|
|
681
676
|
/**
|
|
682
677
|
*
|
|
@@ -699,11 +694,9 @@ const ItemsApiFp = function (configuration) {
|
|
|
699
694
|
* @param {*} [options] Override http request option.
|
|
700
695
|
* @throws {RequiredError}
|
|
701
696
|
*/
|
|
702
|
-
getResumeItems(userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options) {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
706
|
-
});
|
|
697
|
+
async getResumeItems(userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options) {
|
|
698
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getResumeItems(userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options);
|
|
699
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
707
700
|
},
|
|
708
701
|
/**
|
|
709
702
|
*
|
|
@@ -714,11 +707,9 @@ const ItemsApiFp = function (configuration) {
|
|
|
714
707
|
* @param {*} [options] Override http request option.
|
|
715
708
|
* @throws {RequiredError}
|
|
716
709
|
*/
|
|
717
|
-
updateItemUserData(itemId, updateUserItemDataDto, userId, options) {
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
721
|
-
});
|
|
710
|
+
async updateItemUserData(itemId, updateUserItemDataDto, userId, options) {
|
|
711
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateItemUserData(itemId, updateUserItemDataDto, userId, options);
|
|
712
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
722
713
|
},
|
|
723
714
|
};
|
|
724
715
|
};
|