@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, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -29,7 +28,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
addMediaPath:
|
|
31
|
+
addMediaPath: async (mediaPathDto, refreshLibrary, options = {}) => {
|
|
33
32
|
// verify required parameter 'mediaPathDto' is not null or undefined
|
|
34
33
|
assertParamExists('addMediaPath', 'mediaPathDto', mediaPathDto);
|
|
35
34
|
const localVarPath = `/Library/VirtualFolders/Paths`;
|
|
@@ -39,24 +38,24 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
39
38
|
if (configuration) {
|
|
40
39
|
baseOptions = configuration.baseOptions;
|
|
41
40
|
}
|
|
42
|
-
const localVarRequestOptions =
|
|
41
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
43
42
|
const localVarHeaderParameter = {};
|
|
44
43
|
const localVarQueryParameter = {};
|
|
45
44
|
// authentication CustomAuthentication required
|
|
46
|
-
|
|
45
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
47
46
|
if (refreshLibrary !== undefined) {
|
|
48
47
|
localVarQueryParameter['refreshLibrary'] = refreshLibrary;
|
|
49
48
|
}
|
|
50
49
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
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
|
localVarRequestOptions.data = serializeDataIfNeeded(mediaPathDto, localVarRequestOptions, configuration);
|
|
55
54
|
return {
|
|
56
55
|
url: toPathString(localVarUrlObj),
|
|
57
56
|
options: localVarRequestOptions,
|
|
58
57
|
};
|
|
59
|
-
}
|
|
58
|
+
},
|
|
60
59
|
/**
|
|
61
60
|
*
|
|
62
61
|
* @summary Adds a virtual folder.
|
|
@@ -68,7 +67,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
68
67
|
* @param {*} [options] Override http request option.
|
|
69
68
|
* @throws {RequiredError}
|
|
70
69
|
*/
|
|
71
|
-
addVirtualFolder:
|
|
70
|
+
addVirtualFolder: async (name, collectionType, paths, refreshLibrary, addVirtualFolderDto, options = {}) => {
|
|
72
71
|
const localVarPath = `/Library/VirtualFolders`;
|
|
73
72
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
74
73
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -76,11 +75,11 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
76
75
|
if (configuration) {
|
|
77
76
|
baseOptions = configuration.baseOptions;
|
|
78
77
|
}
|
|
79
|
-
const localVarRequestOptions =
|
|
78
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
80
79
|
const localVarHeaderParameter = {};
|
|
81
80
|
const localVarQueryParameter = {};
|
|
82
81
|
// authentication CustomAuthentication required
|
|
83
|
-
|
|
82
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
84
83
|
if (name !== undefined) {
|
|
85
84
|
localVarQueryParameter['name'] = name;
|
|
86
85
|
}
|
|
@@ -96,20 +95,20 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
96
95
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
97
96
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
98
97
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
99
|
-
localVarRequestOptions.headers =
|
|
98
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
100
99
|
localVarRequestOptions.data = serializeDataIfNeeded(addVirtualFolderDto, localVarRequestOptions, configuration);
|
|
101
100
|
return {
|
|
102
101
|
url: toPathString(localVarUrlObj),
|
|
103
102
|
options: localVarRequestOptions,
|
|
104
103
|
};
|
|
105
|
-
}
|
|
104
|
+
},
|
|
106
105
|
/**
|
|
107
106
|
*
|
|
108
107
|
* @summary Gets all virtual folders.
|
|
109
108
|
* @param {*} [options] Override http request option.
|
|
110
109
|
* @throws {RequiredError}
|
|
111
110
|
*/
|
|
112
|
-
getVirtualFolders:
|
|
111
|
+
getVirtualFolders: async (options = {}) => {
|
|
113
112
|
const localVarPath = `/Library/VirtualFolders`;
|
|
114
113
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
115
114
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -117,19 +116,19 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
117
116
|
if (configuration) {
|
|
118
117
|
baseOptions = configuration.baseOptions;
|
|
119
118
|
}
|
|
120
|
-
const localVarRequestOptions =
|
|
119
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
121
120
|
const localVarHeaderParameter = {};
|
|
122
121
|
const localVarQueryParameter = {};
|
|
123
122
|
// authentication CustomAuthentication required
|
|
124
|
-
|
|
123
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
125
124
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
126
125
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
|
-
localVarRequestOptions.headers =
|
|
126
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
128
127
|
return {
|
|
129
128
|
url: toPathString(localVarUrlObj),
|
|
130
129
|
options: localVarRequestOptions,
|
|
131
130
|
};
|
|
132
|
-
}
|
|
131
|
+
},
|
|
133
132
|
/**
|
|
134
133
|
*
|
|
135
134
|
* @summary Remove a media path.
|
|
@@ -139,7 +138,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
139
138
|
* @param {*} [options] Override http request option.
|
|
140
139
|
* @throws {RequiredError}
|
|
141
140
|
*/
|
|
142
|
-
removeMediaPath:
|
|
141
|
+
removeMediaPath: async (name, path, refreshLibrary, options = {}) => {
|
|
143
142
|
const localVarPath = `/Library/VirtualFolders/Paths`;
|
|
144
143
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
145
144
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -147,11 +146,11 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
147
146
|
if (configuration) {
|
|
148
147
|
baseOptions = configuration.baseOptions;
|
|
149
148
|
}
|
|
150
|
-
const localVarRequestOptions =
|
|
149
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
151
150
|
const localVarHeaderParameter = {};
|
|
152
151
|
const localVarQueryParameter = {};
|
|
153
152
|
// authentication CustomAuthentication required
|
|
154
|
-
|
|
153
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
155
154
|
if (name !== undefined) {
|
|
156
155
|
localVarQueryParameter['name'] = name;
|
|
157
156
|
}
|
|
@@ -163,12 +162,12 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
163
162
|
}
|
|
164
163
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
165
164
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
166
|
-
localVarRequestOptions.headers =
|
|
165
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
167
166
|
return {
|
|
168
167
|
url: toPathString(localVarUrlObj),
|
|
169
168
|
options: localVarRequestOptions,
|
|
170
169
|
};
|
|
171
|
-
}
|
|
170
|
+
},
|
|
172
171
|
/**
|
|
173
172
|
*
|
|
174
173
|
* @summary Removes a virtual folder.
|
|
@@ -177,7 +176,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
177
176
|
* @param {*} [options] Override http request option.
|
|
178
177
|
* @throws {RequiredError}
|
|
179
178
|
*/
|
|
180
|
-
removeVirtualFolder:
|
|
179
|
+
removeVirtualFolder: async (name, refreshLibrary, options = {}) => {
|
|
181
180
|
const localVarPath = `/Library/VirtualFolders`;
|
|
182
181
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
183
182
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -185,11 +184,11 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
185
184
|
if (configuration) {
|
|
186
185
|
baseOptions = configuration.baseOptions;
|
|
187
186
|
}
|
|
188
|
-
const localVarRequestOptions =
|
|
187
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
189
188
|
const localVarHeaderParameter = {};
|
|
190
189
|
const localVarQueryParameter = {};
|
|
191
190
|
// authentication CustomAuthentication required
|
|
192
|
-
|
|
191
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
193
192
|
if (name !== undefined) {
|
|
194
193
|
localVarQueryParameter['name'] = name;
|
|
195
194
|
}
|
|
@@ -198,12 +197,12 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
198
197
|
}
|
|
199
198
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
200
199
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
-
localVarRequestOptions.headers =
|
|
200
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
202
201
|
return {
|
|
203
202
|
url: toPathString(localVarUrlObj),
|
|
204
203
|
options: localVarRequestOptions,
|
|
205
204
|
};
|
|
206
|
-
}
|
|
205
|
+
},
|
|
207
206
|
/**
|
|
208
207
|
*
|
|
209
208
|
* @summary Renames a virtual folder.
|
|
@@ -213,7 +212,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
213
212
|
* @param {*} [options] Override http request option.
|
|
214
213
|
* @throws {RequiredError}
|
|
215
214
|
*/
|
|
216
|
-
renameVirtualFolder:
|
|
215
|
+
renameVirtualFolder: async (name, newName, refreshLibrary, options = {}) => {
|
|
217
216
|
const localVarPath = `/Library/VirtualFolders/Name`;
|
|
218
217
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
219
218
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -221,11 +220,11 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
221
220
|
if (configuration) {
|
|
222
221
|
baseOptions = configuration.baseOptions;
|
|
223
222
|
}
|
|
224
|
-
const localVarRequestOptions =
|
|
223
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
225
224
|
const localVarHeaderParameter = {};
|
|
226
225
|
const localVarQueryParameter = {};
|
|
227
226
|
// authentication CustomAuthentication required
|
|
228
|
-
|
|
227
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
229
228
|
if (name !== undefined) {
|
|
230
229
|
localVarQueryParameter['name'] = name;
|
|
231
230
|
}
|
|
@@ -237,12 +236,12 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
237
236
|
}
|
|
238
237
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
239
238
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
240
|
-
localVarRequestOptions.headers =
|
|
239
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
241
240
|
return {
|
|
242
241
|
url: toPathString(localVarUrlObj),
|
|
243
242
|
options: localVarRequestOptions,
|
|
244
243
|
};
|
|
245
|
-
}
|
|
244
|
+
},
|
|
246
245
|
/**
|
|
247
246
|
*
|
|
248
247
|
* @summary Update library options.
|
|
@@ -250,7 +249,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
250
249
|
* @param {*} [options] Override http request option.
|
|
251
250
|
* @throws {RequiredError}
|
|
252
251
|
*/
|
|
253
|
-
updateLibraryOptions:
|
|
252
|
+
updateLibraryOptions: async (updateLibraryOptionsDto, options = {}) => {
|
|
254
253
|
const localVarPath = `/Library/VirtualFolders/LibraryOptions`;
|
|
255
254
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
256
255
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -258,21 +257,21 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
258
257
|
if (configuration) {
|
|
259
258
|
baseOptions = configuration.baseOptions;
|
|
260
259
|
}
|
|
261
|
-
const localVarRequestOptions =
|
|
260
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
262
261
|
const localVarHeaderParameter = {};
|
|
263
262
|
const localVarQueryParameter = {};
|
|
264
263
|
// authentication CustomAuthentication required
|
|
265
|
-
|
|
264
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
266
265
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
267
266
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
268
267
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
|
-
localVarRequestOptions.headers =
|
|
268
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
270
269
|
localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryOptionsDto, localVarRequestOptions, configuration);
|
|
271
270
|
return {
|
|
272
271
|
url: toPathString(localVarUrlObj),
|
|
273
272
|
options: localVarRequestOptions,
|
|
274
273
|
};
|
|
275
|
-
}
|
|
274
|
+
},
|
|
276
275
|
/**
|
|
277
276
|
*
|
|
278
277
|
* @summary Updates a media path.
|
|
@@ -280,7 +279,7 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
280
279
|
* @param {*} [options] Override http request option.
|
|
281
280
|
* @throws {RequiredError}
|
|
282
281
|
*/
|
|
283
|
-
updateMediaPath:
|
|
282
|
+
updateMediaPath: async (updateMediaPathRequestDto, options = {}) => {
|
|
284
283
|
// verify required parameter 'updateMediaPathRequestDto' is not null or undefined
|
|
285
284
|
assertParamExists('updateMediaPath', 'updateMediaPathRequestDto', updateMediaPathRequestDto);
|
|
286
285
|
const localVarPath = `/Library/VirtualFolders/Paths/Update`;
|
|
@@ -290,21 +289,21 @@ const LibraryStructureApiAxiosParamCreator = function (configuration) {
|
|
|
290
289
|
if (configuration) {
|
|
291
290
|
baseOptions = configuration.baseOptions;
|
|
292
291
|
}
|
|
293
|
-
const localVarRequestOptions =
|
|
292
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
294
293
|
const localVarHeaderParameter = {};
|
|
295
294
|
const localVarQueryParameter = {};
|
|
296
295
|
// authentication CustomAuthentication required
|
|
297
|
-
|
|
296
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
298
297
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
299
298
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
300
299
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
301
|
-
localVarRequestOptions.headers =
|
|
300
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
302
301
|
localVarRequestOptions.data = serializeDataIfNeeded(updateMediaPathRequestDto, localVarRequestOptions, configuration);
|
|
303
302
|
return {
|
|
304
303
|
url: toPathString(localVarUrlObj),
|
|
305
304
|
options: localVarRequestOptions,
|
|
306
305
|
};
|
|
307
|
-
}
|
|
306
|
+
},
|
|
308
307
|
};
|
|
309
308
|
};
|
|
310
309
|
/**
|
|
@@ -322,11 +321,9 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
322
321
|
* @param {*} [options] Override http request option.
|
|
323
322
|
* @throws {RequiredError}
|
|
324
323
|
*/
|
|
325
|
-
addMediaPath(mediaPathDto, refreshLibrary, options) {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
329
|
-
});
|
|
324
|
+
async addMediaPath(mediaPathDto, refreshLibrary, options) {
|
|
325
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addMediaPath(mediaPathDto, refreshLibrary, options);
|
|
326
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
330
327
|
},
|
|
331
328
|
/**
|
|
332
329
|
*
|
|
@@ -339,11 +336,9 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
339
336
|
* @param {*} [options] Override http request option.
|
|
340
337
|
* @throws {RequiredError}
|
|
341
338
|
*/
|
|
342
|
-
addVirtualFolder(name, collectionType, paths, refreshLibrary, addVirtualFolderDto, options) {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
346
|
-
});
|
|
339
|
+
async addVirtualFolder(name, collectionType, paths, refreshLibrary, addVirtualFolderDto, options) {
|
|
340
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addVirtualFolder(name, collectionType, paths, refreshLibrary, addVirtualFolderDto, options);
|
|
341
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
347
342
|
},
|
|
348
343
|
/**
|
|
349
344
|
*
|
|
@@ -351,11 +346,9 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
351
346
|
* @param {*} [options] Override http request option.
|
|
352
347
|
* @throws {RequiredError}
|
|
353
348
|
*/
|
|
354
|
-
getVirtualFolders(options) {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
358
|
-
});
|
|
349
|
+
async getVirtualFolders(options) {
|
|
350
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVirtualFolders(options);
|
|
351
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
359
352
|
},
|
|
360
353
|
/**
|
|
361
354
|
*
|
|
@@ -366,11 +359,9 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
366
359
|
* @param {*} [options] Override http request option.
|
|
367
360
|
* @throws {RequiredError}
|
|
368
361
|
*/
|
|
369
|
-
removeMediaPath(name, path, refreshLibrary, options) {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
373
|
-
});
|
|
362
|
+
async removeMediaPath(name, path, refreshLibrary, options) {
|
|
363
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeMediaPath(name, path, refreshLibrary, options);
|
|
364
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
374
365
|
},
|
|
375
366
|
/**
|
|
376
367
|
*
|
|
@@ -380,11 +371,9 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
380
371
|
* @param {*} [options] Override http request option.
|
|
381
372
|
* @throws {RequiredError}
|
|
382
373
|
*/
|
|
383
|
-
removeVirtualFolder(name, refreshLibrary, options) {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
387
|
-
});
|
|
374
|
+
async removeVirtualFolder(name, refreshLibrary, options) {
|
|
375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeVirtualFolder(name, refreshLibrary, options);
|
|
376
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
388
377
|
},
|
|
389
378
|
/**
|
|
390
379
|
*
|
|
@@ -395,11 +384,9 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
395
384
|
* @param {*} [options] Override http request option.
|
|
396
385
|
* @throws {RequiredError}
|
|
397
386
|
*/
|
|
398
|
-
renameVirtualFolder(name, newName, refreshLibrary, options) {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
402
|
-
});
|
|
387
|
+
async renameVirtualFolder(name, newName, refreshLibrary, options) {
|
|
388
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.renameVirtualFolder(name, newName, refreshLibrary, options);
|
|
389
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
403
390
|
},
|
|
404
391
|
/**
|
|
405
392
|
*
|
|
@@ -408,11 +395,9 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
408
395
|
* @param {*} [options] Override http request option.
|
|
409
396
|
* @throws {RequiredError}
|
|
410
397
|
*/
|
|
411
|
-
updateLibraryOptions(updateLibraryOptionsDto, options) {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
415
|
-
});
|
|
398
|
+
async updateLibraryOptions(updateLibraryOptionsDto, options) {
|
|
399
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibraryOptions(updateLibraryOptionsDto, options);
|
|
400
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
416
401
|
},
|
|
417
402
|
/**
|
|
418
403
|
*
|
|
@@ -421,11 +406,9 @@ const LibraryStructureApiFp = function (configuration) {
|
|
|
421
406
|
* @param {*} [options] Override http request option.
|
|
422
407
|
* @throws {RequiredError}
|
|
423
408
|
*/
|
|
424
|
-
updateMediaPath(updateMediaPathRequestDto, options) {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
428
|
-
});
|
|
409
|
+
async updateMediaPath(updateMediaPathRequestDto, options) {
|
|
410
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateMediaPath(updateMediaPathRequestDto, options);
|
|
411
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
429
412
|
},
|
|
430
413
|
};
|
|
431
414
|
};
|