@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 { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, assertParamExists, serializeDataIfNeeded, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -27,7 +26,7 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
getDefaultDirectoryBrowser:
|
|
29
|
+
getDefaultDirectoryBrowser: async (options = {}) => {
|
|
31
30
|
const localVarPath = `/Environment/DefaultDirectoryBrowser`;
|
|
32
31
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33
32
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -35,19 +34,19 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
35
34
|
if (configuration) {
|
|
36
35
|
baseOptions = configuration.baseOptions;
|
|
37
36
|
}
|
|
38
|
-
const localVarRequestOptions =
|
|
37
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
39
38
|
const localVarHeaderParameter = {};
|
|
40
39
|
const localVarQueryParameter = {};
|
|
41
40
|
// authentication CustomAuthentication required
|
|
42
|
-
|
|
41
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
43
42
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44
43
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45
|
-
localVarRequestOptions.headers =
|
|
44
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
46
45
|
return {
|
|
47
46
|
url: toPathString(localVarUrlObj),
|
|
48
47
|
options: localVarRequestOptions,
|
|
49
48
|
};
|
|
50
|
-
}
|
|
49
|
+
},
|
|
51
50
|
/**
|
|
52
51
|
*
|
|
53
52
|
* @summary Gets the contents of a given directory in the file system.
|
|
@@ -57,7 +56,7 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
57
56
|
* @param {*} [options] Override http request option.
|
|
58
57
|
* @throws {RequiredError}
|
|
59
58
|
*/
|
|
60
|
-
getDirectoryContents:
|
|
59
|
+
getDirectoryContents: async (path, includeFiles, includeDirectories, options = {}) => {
|
|
61
60
|
// verify required parameter 'path' is not null or undefined
|
|
62
61
|
assertParamExists('getDirectoryContents', 'path', path);
|
|
63
62
|
const localVarPath = `/Environment/DirectoryContents`;
|
|
@@ -67,11 +66,11 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
67
66
|
if (configuration) {
|
|
68
67
|
baseOptions = configuration.baseOptions;
|
|
69
68
|
}
|
|
70
|
-
const localVarRequestOptions =
|
|
69
|
+
const localVarRequestOptions = { method: 'GET', ...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 (path !== undefined) {
|
|
76
75
|
localVarQueryParameter['path'] = path;
|
|
77
76
|
}
|
|
@@ -83,19 +82,19 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
83
82
|
}
|
|
84
83
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
85
84
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
86
|
-
localVarRequestOptions.headers =
|
|
85
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
87
86
|
return {
|
|
88
87
|
url: toPathString(localVarUrlObj),
|
|
89
88
|
options: localVarRequestOptions,
|
|
90
89
|
};
|
|
91
|
-
}
|
|
90
|
+
},
|
|
92
91
|
/**
|
|
93
92
|
*
|
|
94
93
|
* @summary Gets available drives from the server\'s file system.
|
|
95
94
|
* @param {*} [options] Override http request option.
|
|
96
95
|
* @throws {RequiredError}
|
|
97
96
|
*/
|
|
98
|
-
getDrives:
|
|
97
|
+
getDrives: async (options = {}) => {
|
|
99
98
|
const localVarPath = `/Environment/Drives`;
|
|
100
99
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
101
100
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -103,19 +102,19 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
103
102
|
if (configuration) {
|
|
104
103
|
baseOptions = configuration.baseOptions;
|
|
105
104
|
}
|
|
106
|
-
const localVarRequestOptions =
|
|
105
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
107
106
|
const localVarHeaderParameter = {};
|
|
108
107
|
const localVarQueryParameter = {};
|
|
109
108
|
// authentication CustomAuthentication required
|
|
110
|
-
|
|
109
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
111
110
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
112
111
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
113
|
-
localVarRequestOptions.headers =
|
|
112
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
114
113
|
return {
|
|
115
114
|
url: toPathString(localVarUrlObj),
|
|
116
115
|
options: localVarRequestOptions,
|
|
117
116
|
};
|
|
118
|
-
}
|
|
117
|
+
},
|
|
119
118
|
/**
|
|
120
119
|
*
|
|
121
120
|
* @summary Gets network paths.
|
|
@@ -123,7 +122,7 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
123
122
|
* @deprecated
|
|
124
123
|
* @throws {RequiredError}
|
|
125
124
|
*/
|
|
126
|
-
getNetworkShares:
|
|
125
|
+
getNetworkShares: async (options = {}) => {
|
|
127
126
|
const localVarPath = `/Environment/NetworkShares`;
|
|
128
127
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
129
128
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -131,19 +130,19 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
131
130
|
if (configuration) {
|
|
132
131
|
baseOptions = configuration.baseOptions;
|
|
133
132
|
}
|
|
134
|
-
const localVarRequestOptions =
|
|
133
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
135
134
|
const localVarHeaderParameter = {};
|
|
136
135
|
const localVarQueryParameter = {};
|
|
137
136
|
// authentication CustomAuthentication required
|
|
138
|
-
|
|
137
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
139
138
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
140
139
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
-
localVarRequestOptions.headers =
|
|
140
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
142
141
|
return {
|
|
143
142
|
url: toPathString(localVarUrlObj),
|
|
144
143
|
options: localVarRequestOptions,
|
|
145
144
|
};
|
|
146
|
-
}
|
|
145
|
+
},
|
|
147
146
|
/**
|
|
148
147
|
*
|
|
149
148
|
* @summary Gets the parent path of a given path.
|
|
@@ -151,7 +150,7 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
151
150
|
* @param {*} [options] Override http request option.
|
|
152
151
|
* @throws {RequiredError}
|
|
153
152
|
*/
|
|
154
|
-
getParentPath:
|
|
153
|
+
getParentPath: async (path, options = {}) => {
|
|
155
154
|
// verify required parameter 'path' is not null or undefined
|
|
156
155
|
assertParamExists('getParentPath', 'path', path);
|
|
157
156
|
const localVarPath = `/Environment/ParentPath`;
|
|
@@ -161,22 +160,22 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
161
160
|
if (configuration) {
|
|
162
161
|
baseOptions = configuration.baseOptions;
|
|
163
162
|
}
|
|
164
|
-
const localVarRequestOptions =
|
|
163
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
165
164
|
const localVarHeaderParameter = {};
|
|
166
165
|
const localVarQueryParameter = {};
|
|
167
166
|
// authentication CustomAuthentication required
|
|
168
|
-
|
|
167
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
169
168
|
if (path !== undefined) {
|
|
170
169
|
localVarQueryParameter['path'] = path;
|
|
171
170
|
}
|
|
172
171
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
173
172
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
174
|
-
localVarRequestOptions.headers =
|
|
173
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
175
174
|
return {
|
|
176
175
|
url: toPathString(localVarUrlObj),
|
|
177
176
|
options: localVarRequestOptions,
|
|
178
177
|
};
|
|
179
|
-
}
|
|
178
|
+
},
|
|
180
179
|
/**
|
|
181
180
|
*
|
|
182
181
|
* @summary Validates path.
|
|
@@ -184,7 +183,7 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
184
183
|
* @param {*} [options] Override http request option.
|
|
185
184
|
* @throws {RequiredError}
|
|
186
185
|
*/
|
|
187
|
-
validatePath:
|
|
186
|
+
validatePath: async (validatePathDto, options = {}) => {
|
|
188
187
|
// verify required parameter 'validatePathDto' is not null or undefined
|
|
189
188
|
assertParamExists('validatePath', 'validatePathDto', validatePathDto);
|
|
190
189
|
const localVarPath = `/Environment/ValidatePath`;
|
|
@@ -194,21 +193,21 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
194
193
|
if (configuration) {
|
|
195
194
|
baseOptions = configuration.baseOptions;
|
|
196
195
|
}
|
|
197
|
-
const localVarRequestOptions =
|
|
196
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
198
197
|
const localVarHeaderParameter = {};
|
|
199
198
|
const localVarQueryParameter = {};
|
|
200
199
|
// authentication CustomAuthentication required
|
|
201
|
-
|
|
200
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
202
201
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
203
202
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
204
203
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
205
|
-
localVarRequestOptions.headers =
|
|
204
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
206
205
|
localVarRequestOptions.data = serializeDataIfNeeded(validatePathDto, localVarRequestOptions, configuration);
|
|
207
206
|
return {
|
|
208
207
|
url: toPathString(localVarUrlObj),
|
|
209
208
|
options: localVarRequestOptions,
|
|
210
209
|
};
|
|
211
|
-
}
|
|
210
|
+
},
|
|
212
211
|
};
|
|
213
212
|
};
|
|
214
213
|
/**
|
|
@@ -224,11 +223,9 @@ const EnvironmentApiFp = function (configuration) {
|
|
|
224
223
|
* @param {*} [options] Override http request option.
|
|
225
224
|
* @throws {RequiredError}
|
|
226
225
|
*/
|
|
227
|
-
getDefaultDirectoryBrowser(options) {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
231
|
-
});
|
|
226
|
+
async getDefaultDirectoryBrowser(options) {
|
|
227
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultDirectoryBrowser(options);
|
|
228
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
232
229
|
},
|
|
233
230
|
/**
|
|
234
231
|
*
|
|
@@ -239,11 +236,9 @@ const EnvironmentApiFp = function (configuration) {
|
|
|
239
236
|
* @param {*} [options] Override http request option.
|
|
240
237
|
* @throws {RequiredError}
|
|
241
238
|
*/
|
|
242
|
-
getDirectoryContents(path, includeFiles, includeDirectories, options) {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
246
|
-
});
|
|
239
|
+
async getDirectoryContents(path, includeFiles, includeDirectories, options) {
|
|
240
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDirectoryContents(path, includeFiles, includeDirectories, options);
|
|
241
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
247
242
|
},
|
|
248
243
|
/**
|
|
249
244
|
*
|
|
@@ -251,11 +246,9 @@ const EnvironmentApiFp = function (configuration) {
|
|
|
251
246
|
* @param {*} [options] Override http request option.
|
|
252
247
|
* @throws {RequiredError}
|
|
253
248
|
*/
|
|
254
|
-
getDrives(options) {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
258
|
-
});
|
|
249
|
+
async getDrives(options) {
|
|
250
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDrives(options);
|
|
251
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
259
252
|
},
|
|
260
253
|
/**
|
|
261
254
|
*
|
|
@@ -264,11 +257,9 @@ const EnvironmentApiFp = function (configuration) {
|
|
|
264
257
|
* @deprecated
|
|
265
258
|
* @throws {RequiredError}
|
|
266
259
|
*/
|
|
267
|
-
getNetworkShares(options) {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
271
|
-
});
|
|
260
|
+
async getNetworkShares(options) {
|
|
261
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getNetworkShares(options);
|
|
262
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
272
263
|
},
|
|
273
264
|
/**
|
|
274
265
|
*
|
|
@@ -277,11 +268,9 @@ const EnvironmentApiFp = function (configuration) {
|
|
|
277
268
|
* @param {*} [options] Override http request option.
|
|
278
269
|
* @throws {RequiredError}
|
|
279
270
|
*/
|
|
280
|
-
getParentPath(path, options) {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
284
|
-
});
|
|
271
|
+
async getParentPath(path, options) {
|
|
272
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getParentPath(path, options);
|
|
273
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
285
274
|
},
|
|
286
275
|
/**
|
|
287
276
|
*
|
|
@@ -290,11 +279,9 @@ const EnvironmentApiFp = function (configuration) {
|
|
|
290
279
|
* @param {*} [options] Override http request option.
|
|
291
280
|
* @throws {RequiredError}
|
|
292
281
|
*/
|
|
293
|
-
validatePath(validatePathDto, options) {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
297
|
-
});
|
|
282
|
+
async validatePath(validatePathDto, options) {
|
|
283
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validatePath(validatePathDto, options);
|
|
284
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
298
285
|
},
|
|
299
286
|
};
|
|
300
287
|
};
|
|
@@ -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';
|
|
@@ -37,7 +36,7 @@ const FilterApiAxiosParamCreator = function (configuration) {
|
|
|
37
36
|
* @param {*} [options] Override http request option.
|
|
38
37
|
* @throws {RequiredError}
|
|
39
38
|
*/
|
|
40
|
-
getQueryFilters:
|
|
39
|
+
getQueryFilters: async (userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options = {}) => {
|
|
41
40
|
const localVarPath = `/Items/Filters2`;
|
|
42
41
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
42
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -45,11 +44,11 @@ const FilterApiAxiosParamCreator = function (configuration) {
|
|
|
45
44
|
if (configuration) {
|
|
46
45
|
baseOptions = configuration.baseOptions;
|
|
47
46
|
}
|
|
48
|
-
const localVarRequestOptions =
|
|
47
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
49
48
|
const localVarHeaderParameter = {};
|
|
50
49
|
const localVarQueryParameter = {};
|
|
51
50
|
// authentication CustomAuthentication required
|
|
52
|
-
|
|
51
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
53
52
|
if (userId !== undefined) {
|
|
54
53
|
localVarQueryParameter['userId'] = userId;
|
|
55
54
|
}
|
|
@@ -82,12 +81,12 @@ const FilterApiAxiosParamCreator = function (configuration) {
|
|
|
82
81
|
}
|
|
83
82
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
84
83
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
85
|
-
localVarRequestOptions.headers =
|
|
84
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
86
85
|
return {
|
|
87
86
|
url: toPathString(localVarUrlObj),
|
|
88
87
|
options: localVarRequestOptions,
|
|
89
88
|
};
|
|
90
|
-
}
|
|
89
|
+
},
|
|
91
90
|
/**
|
|
92
91
|
*
|
|
93
92
|
* @summary Gets legacy query filters.
|
|
@@ -98,7 +97,7 @@ const FilterApiAxiosParamCreator = function (configuration) {
|
|
|
98
97
|
* @param {*} [options] Override http request option.
|
|
99
98
|
* @throws {RequiredError}
|
|
100
99
|
*/
|
|
101
|
-
getQueryFiltersLegacy:
|
|
100
|
+
getQueryFiltersLegacy: async (userId, parentId, includeItemTypes, mediaTypes, options = {}) => {
|
|
102
101
|
const localVarPath = `/Items/Filters`;
|
|
103
102
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
103
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -106,11 +105,11 @@ const FilterApiAxiosParamCreator = function (configuration) {
|
|
|
106
105
|
if (configuration) {
|
|
107
106
|
baseOptions = configuration.baseOptions;
|
|
108
107
|
}
|
|
109
|
-
const localVarRequestOptions =
|
|
108
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
110
109
|
const localVarHeaderParameter = {};
|
|
111
110
|
const localVarQueryParameter = {};
|
|
112
111
|
// authentication CustomAuthentication required
|
|
113
|
-
|
|
112
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
114
113
|
if (userId !== undefined) {
|
|
115
114
|
localVarQueryParameter['userId'] = userId;
|
|
116
115
|
}
|
|
@@ -125,12 +124,12 @@ const FilterApiAxiosParamCreator = function (configuration) {
|
|
|
125
124
|
}
|
|
126
125
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
127
126
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
128
|
-
localVarRequestOptions.headers =
|
|
127
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
129
128
|
return {
|
|
130
129
|
url: toPathString(localVarUrlObj),
|
|
131
130
|
options: localVarRequestOptions,
|
|
132
131
|
};
|
|
133
|
-
}
|
|
132
|
+
},
|
|
134
133
|
};
|
|
135
134
|
};
|
|
136
135
|
/**
|
|
@@ -156,11 +155,9 @@ const FilterApiFp = function (configuration) {
|
|
|
156
155
|
* @param {*} [options] Override http request option.
|
|
157
156
|
* @throws {RequiredError}
|
|
158
157
|
*/
|
|
159
|
-
getQueryFilters(userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options) {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
163
|
-
});
|
|
158
|
+
async getQueryFilters(userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options) {
|
|
159
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getQueryFilters(userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options);
|
|
160
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
161
|
},
|
|
165
162
|
/**
|
|
166
163
|
*
|
|
@@ -172,11 +169,9 @@ const FilterApiFp = function (configuration) {
|
|
|
172
169
|
* @param {*} [options] Override http request option.
|
|
173
170
|
* @throws {RequiredError}
|
|
174
171
|
*/
|
|
175
|
-
getQueryFiltersLegacy(userId, parentId, includeItemTypes, mediaTypes, options) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
179
|
-
});
|
|
172
|
+
async getQueryFiltersLegacy(userId, parentId, includeItemTypes, mediaTypes, options) {
|
|
173
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getQueryFiltersLegacy(userId, parentId, includeItemTypes, mediaTypes, options);
|
|
174
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
180
175
|
},
|
|
181
176
|
};
|
|
182
177
|
};
|
|
@@ -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 GenresApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
getGenre:
|
|
31
|
+
getGenre: async (genreName, userId, options = {}) => {
|
|
33
32
|
// verify required parameter 'genreName' is not null or undefined
|
|
34
33
|
assertParamExists('getGenre', 'genreName', genreName);
|
|
35
34
|
const localVarPath = `/Genres/{genreName}`
|
|
@@ -40,22 +39,22 @@ const GenresApiAxiosParamCreator = 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 all genres from a given item, folder, or the entire library.
|
|
@@ -80,7 +79,7 @@ const GenresApiAxiosParamCreator = function (configuration) {
|
|
|
80
79
|
* @param {*} [options] Override http request option.
|
|
81
80
|
* @throws {RequiredError}
|
|
82
81
|
*/
|
|
83
|
-
getGenres:
|
|
82
|
+
getGenres: async (startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options = {}) => {
|
|
84
83
|
const localVarPath = `/Genres`;
|
|
85
84
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
85
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -88,11 +87,11 @@ const GenresApiAxiosParamCreator = function (configuration) {
|
|
|
88
87
|
if (configuration) {
|
|
89
88
|
baseOptions = configuration.baseOptions;
|
|
90
89
|
}
|
|
91
|
-
const localVarRequestOptions =
|
|
90
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
92
91
|
const localVarHeaderParameter = {};
|
|
93
92
|
const localVarQueryParameter = {};
|
|
94
93
|
// authentication CustomAuthentication required
|
|
95
|
-
|
|
94
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
96
95
|
if (startIndex !== undefined) {
|
|
97
96
|
localVarQueryParameter['startIndex'] = startIndex;
|
|
98
97
|
}
|
|
@@ -149,12 +148,12 @@ const GenresApiAxiosParamCreator = function (configuration) {
|
|
|
149
148
|
}
|
|
150
149
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
151
150
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
152
|
-
localVarRequestOptions.headers =
|
|
151
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
153
152
|
return {
|
|
154
153
|
url: toPathString(localVarUrlObj),
|
|
155
154
|
options: localVarRequestOptions,
|
|
156
155
|
};
|
|
157
|
-
}
|
|
156
|
+
},
|
|
158
157
|
};
|
|
159
158
|
};
|
|
160
159
|
/**
|
|
@@ -172,11 +171,9 @@ const GenresApiFp = function (configuration) {
|
|
|
172
171
|
* @param {*} [options] Override http request option.
|
|
173
172
|
* @throws {RequiredError}
|
|
174
173
|
*/
|
|
175
|
-
getGenre(genreName, userId, options) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
179
|
-
});
|
|
174
|
+
async getGenre(genreName, userId, options) {
|
|
175
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGenre(genreName, userId, options);
|
|
176
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
180
177
|
},
|
|
181
178
|
/**
|
|
182
179
|
*
|
|
@@ -202,11 +199,9 @@ const GenresApiFp = function (configuration) {
|
|
|
202
199
|
* @param {*} [options] Override http request option.
|
|
203
200
|
* @throws {RequiredError}
|
|
204
201
|
*/
|
|
205
|
-
getGenres(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
209
|
-
});
|
|
202
|
+
async getGenres(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options) {
|
|
203
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGenres(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options);
|
|
204
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
210
205
|
},
|
|
211
206
|
};
|
|
212
207
|
};
|