@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, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -27,7 +26,7 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
getAllChannelFeatures:
|
|
29
|
+
getAllChannelFeatures: async (options = {}) => {
|
|
31
30
|
const localVarPath = `/Channels/Features`;
|
|
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 ChannelsApiAxiosParamCreator = 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 Get channel features.
|
|
@@ -55,7 +54,7 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
55
54
|
* @param {*} [options] Override http request option.
|
|
56
55
|
* @throws {RequiredError}
|
|
57
56
|
*/
|
|
58
|
-
getChannelFeatures:
|
|
57
|
+
getChannelFeatures: async (channelId, options = {}) => {
|
|
59
58
|
// verify required parameter 'channelId' is not null or undefined
|
|
60
59
|
assertParamExists('getChannelFeatures', 'channelId', channelId);
|
|
61
60
|
const localVarPath = `/Channels/{channelId}/Features`
|
|
@@ -66,19 +65,19 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
66
65
|
if (configuration) {
|
|
67
66
|
baseOptions = configuration.baseOptions;
|
|
68
67
|
}
|
|
69
|
-
const localVarRequestOptions =
|
|
68
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
70
69
|
const localVarHeaderParameter = {};
|
|
71
70
|
const localVarQueryParameter = {};
|
|
72
71
|
// authentication CustomAuthentication required
|
|
73
|
-
|
|
72
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
74
73
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
74
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
-
localVarRequestOptions.headers =
|
|
75
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
77
76
|
return {
|
|
78
77
|
url: toPathString(localVarUrlObj),
|
|
79
78
|
options: localVarRequestOptions,
|
|
80
79
|
};
|
|
81
|
-
}
|
|
80
|
+
},
|
|
82
81
|
/**
|
|
83
82
|
*
|
|
84
83
|
* @summary Get channel items.
|
|
@@ -94,7 +93,7 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
94
93
|
* @param {*} [options] Override http request option.
|
|
95
94
|
* @throws {RequiredError}
|
|
96
95
|
*/
|
|
97
|
-
getChannelItems:
|
|
96
|
+
getChannelItems: async (channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options = {}) => {
|
|
98
97
|
// verify required parameter 'channelId' is not null or undefined
|
|
99
98
|
assertParamExists('getChannelItems', 'channelId', channelId);
|
|
100
99
|
const localVarPath = `/Channels/{channelId}/Items`
|
|
@@ -105,11 +104,11 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
105
104
|
if (configuration) {
|
|
106
105
|
baseOptions = configuration.baseOptions;
|
|
107
106
|
}
|
|
108
|
-
const localVarRequestOptions =
|
|
107
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
109
108
|
const localVarHeaderParameter = {};
|
|
110
109
|
const localVarQueryParameter = {};
|
|
111
110
|
// authentication CustomAuthentication required
|
|
112
|
-
|
|
111
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
113
112
|
if (folderId !== undefined) {
|
|
114
113
|
localVarQueryParameter['folderId'] = folderId;
|
|
115
114
|
}
|
|
@@ -136,12 +135,12 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
136
135
|
}
|
|
137
136
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
138
137
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
139
|
-
localVarRequestOptions.headers =
|
|
138
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
140
139
|
return {
|
|
141
140
|
url: toPathString(localVarUrlObj),
|
|
142
141
|
options: localVarRequestOptions,
|
|
143
142
|
};
|
|
144
|
-
}
|
|
143
|
+
},
|
|
145
144
|
/**
|
|
146
145
|
*
|
|
147
146
|
* @summary Gets available channels.
|
|
@@ -154,7 +153,7 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
154
153
|
* @param {*} [options] Override http request option.
|
|
155
154
|
* @throws {RequiredError}
|
|
156
155
|
*/
|
|
157
|
-
getChannels:
|
|
156
|
+
getChannels: async (userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options = {}) => {
|
|
158
157
|
const localVarPath = `/Channels`;
|
|
159
158
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
160
159
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -162,11 +161,11 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
162
161
|
if (configuration) {
|
|
163
162
|
baseOptions = configuration.baseOptions;
|
|
164
163
|
}
|
|
165
|
-
const localVarRequestOptions =
|
|
164
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
166
165
|
const localVarHeaderParameter = {};
|
|
167
166
|
const localVarQueryParameter = {};
|
|
168
167
|
// authentication CustomAuthentication required
|
|
169
|
-
|
|
168
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
170
169
|
if (userId !== undefined) {
|
|
171
170
|
localVarQueryParameter['userId'] = userId;
|
|
172
171
|
}
|
|
@@ -187,12 +186,12 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
187
186
|
}
|
|
188
187
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
189
188
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
190
|
-
localVarRequestOptions.headers =
|
|
189
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
191
190
|
return {
|
|
192
191
|
url: toPathString(localVarUrlObj),
|
|
193
192
|
options: localVarRequestOptions,
|
|
194
193
|
};
|
|
195
|
-
}
|
|
194
|
+
},
|
|
196
195
|
/**
|
|
197
196
|
*
|
|
198
197
|
* @summary Gets latest channel items.
|
|
@@ -205,7 +204,7 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
205
204
|
* @param {*} [options] Override http request option.
|
|
206
205
|
* @throws {RequiredError}
|
|
207
206
|
*/
|
|
208
|
-
getLatestChannelItems:
|
|
207
|
+
getLatestChannelItems: async (userId, startIndex, limit, filters, fields, channelIds, options = {}) => {
|
|
209
208
|
const localVarPath = `/Channels/Items/Latest`;
|
|
210
209
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
211
210
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -213,11 +212,11 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
213
212
|
if (configuration) {
|
|
214
213
|
baseOptions = configuration.baseOptions;
|
|
215
214
|
}
|
|
216
|
-
const localVarRequestOptions =
|
|
215
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
217
216
|
const localVarHeaderParameter = {};
|
|
218
217
|
const localVarQueryParameter = {};
|
|
219
218
|
// authentication CustomAuthentication required
|
|
220
|
-
|
|
219
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
221
220
|
if (userId !== undefined) {
|
|
222
221
|
localVarQueryParameter['userId'] = userId;
|
|
223
222
|
}
|
|
@@ -238,12 +237,12 @@ const ChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
238
237
|
}
|
|
239
238
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
240
239
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
241
|
-
localVarRequestOptions.headers =
|
|
240
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
242
241
|
return {
|
|
243
242
|
url: toPathString(localVarUrlObj),
|
|
244
243
|
options: localVarRequestOptions,
|
|
245
244
|
};
|
|
246
|
-
}
|
|
245
|
+
},
|
|
247
246
|
};
|
|
248
247
|
};
|
|
249
248
|
/**
|
|
@@ -259,11 +258,9 @@ const ChannelsApiFp = function (configuration) {
|
|
|
259
258
|
* @param {*} [options] Override http request option.
|
|
260
259
|
* @throws {RequiredError}
|
|
261
260
|
*/
|
|
262
|
-
getAllChannelFeatures(options) {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
266
|
-
});
|
|
261
|
+
async getAllChannelFeatures(options) {
|
|
262
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllChannelFeatures(options);
|
|
263
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
267
264
|
},
|
|
268
265
|
/**
|
|
269
266
|
*
|
|
@@ -272,11 +269,9 @@ const ChannelsApiFp = function (configuration) {
|
|
|
272
269
|
* @param {*} [options] Override http request option.
|
|
273
270
|
* @throws {RequiredError}
|
|
274
271
|
*/
|
|
275
|
-
getChannelFeatures(channelId, options) {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
279
|
-
});
|
|
272
|
+
async getChannelFeatures(channelId, options) {
|
|
273
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getChannelFeatures(channelId, options);
|
|
274
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
280
275
|
},
|
|
281
276
|
/**
|
|
282
277
|
*
|
|
@@ -293,11 +288,9 @@ const ChannelsApiFp = function (configuration) {
|
|
|
293
288
|
* @param {*} [options] Override http request option.
|
|
294
289
|
* @throws {RequiredError}
|
|
295
290
|
*/
|
|
296
|
-
getChannelItems(channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options) {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
300
|
-
});
|
|
291
|
+
async getChannelItems(channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options) {
|
|
292
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getChannelItems(channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options);
|
|
293
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
301
294
|
},
|
|
302
295
|
/**
|
|
303
296
|
*
|
|
@@ -311,11 +304,9 @@ const ChannelsApiFp = function (configuration) {
|
|
|
311
304
|
* @param {*} [options] Override http request option.
|
|
312
305
|
* @throws {RequiredError}
|
|
313
306
|
*/
|
|
314
|
-
getChannels(userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options) {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
318
|
-
});
|
|
307
|
+
async getChannels(userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options) {
|
|
308
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getChannels(userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options);
|
|
309
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
319
310
|
},
|
|
320
311
|
/**
|
|
321
312
|
*
|
|
@@ -329,11 +320,9 @@ const ChannelsApiFp = function (configuration) {
|
|
|
329
320
|
* @param {*} [options] Override http request option.
|
|
330
321
|
* @throws {RequiredError}
|
|
331
322
|
*/
|
|
332
|
-
getLatestChannelItems(userId, startIndex, limit, filters, fields, channelIds, options) {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
336
|
-
});
|
|
323
|
+
async getLatestChannelItems(userId, startIndex, limit, filters, fields, channelIds, options) {
|
|
324
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLatestChannelItems(userId, startIndex, limit, filters, fields, channelIds, options);
|
|
325
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
337
326
|
},
|
|
338
327
|
};
|
|
339
328
|
};
|
|
@@ -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, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -28,7 +27,7 @@ const ClientLogApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
logFile:
|
|
30
|
+
logFile: async (body, options = {}) => {
|
|
32
31
|
const localVarPath = `/ClientLog/Document`;
|
|
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,21 +35,21 @@ const ClientLogApiAxiosParamCreator = function (configuration) {
|
|
|
36
35
|
if (configuration) {
|
|
37
36
|
baseOptions = configuration.baseOptions;
|
|
38
37
|
}
|
|
39
|
-
const localVarRequestOptions =
|
|
38
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
40
39
|
const localVarHeaderParameter = {};
|
|
41
40
|
const localVarQueryParameter = {};
|
|
42
41
|
// authentication CustomAuthentication required
|
|
43
|
-
|
|
42
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
44
43
|
localVarHeaderParameter['Content-Type'] = 'text/plain';
|
|
45
44
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46
45
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
47
|
-
localVarRequestOptions.headers =
|
|
46
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
48
47
|
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
49
48
|
return {
|
|
50
49
|
url: toPathString(localVarUrlObj),
|
|
51
50
|
options: localVarRequestOptions,
|
|
52
51
|
};
|
|
53
|
-
}
|
|
52
|
+
},
|
|
54
53
|
};
|
|
55
54
|
};
|
|
56
55
|
/**
|
|
@@ -67,11 +66,9 @@ const ClientLogApiFp = function (configuration) {
|
|
|
67
66
|
* @param {*} [options] Override http request option.
|
|
68
67
|
* @throws {RequiredError}
|
|
69
68
|
*/
|
|
70
|
-
logFile(body, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
74
|
-
});
|
|
69
|
+
async logFile(body, options) {
|
|
70
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.logFile(body, options);
|
|
71
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
75
72
|
},
|
|
76
73
|
};
|
|
77
74
|
};
|
|
@@ -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 CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
addToCollection:
|
|
31
|
+
addToCollection: async (collectionId, ids, options = {}) => {
|
|
33
32
|
// verify required parameter 'collectionId' is not null or undefined
|
|
34
33
|
assertParamExists('addToCollection', 'collectionId', collectionId);
|
|
35
34
|
// verify required parameter 'ids' is not null or undefined
|
|
@@ -42,22 +41,22 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
42
41
|
if (configuration) {
|
|
43
42
|
baseOptions = configuration.baseOptions;
|
|
44
43
|
}
|
|
45
|
-
const localVarRequestOptions =
|
|
44
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
46
45
|
const localVarHeaderParameter = {};
|
|
47
46
|
const localVarQueryParameter = {};
|
|
48
47
|
// authentication CustomAuthentication required
|
|
49
|
-
|
|
48
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
50
49
|
if (ids) {
|
|
51
50
|
localVarQueryParameter['ids'] = ids;
|
|
52
51
|
}
|
|
53
52
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54
53
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55
|
-
localVarRequestOptions.headers =
|
|
54
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
56
55
|
return {
|
|
57
56
|
url: toPathString(localVarUrlObj),
|
|
58
57
|
options: localVarRequestOptions,
|
|
59
58
|
};
|
|
60
|
-
}
|
|
59
|
+
},
|
|
61
60
|
/**
|
|
62
61
|
*
|
|
63
62
|
* @summary Creates a new collection.
|
|
@@ -68,7 +67,7 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
68
67
|
* @param {*} [options] Override http request option.
|
|
69
68
|
* @throws {RequiredError}
|
|
70
69
|
*/
|
|
71
|
-
createCollection:
|
|
70
|
+
createCollection: async (name, ids, parentId, isLocked, options = {}) => {
|
|
72
71
|
const localVarPath = `/Collections`;
|
|
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 CollectionApiAxiosParamCreator = 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
|
}
|
|
@@ -95,12 +94,12 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
95
94
|
}
|
|
96
95
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
97
96
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
98
|
-
localVarRequestOptions.headers =
|
|
97
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
99
98
|
return {
|
|
100
99
|
url: toPathString(localVarUrlObj),
|
|
101
100
|
options: localVarRequestOptions,
|
|
102
101
|
};
|
|
103
|
-
}
|
|
102
|
+
},
|
|
104
103
|
/**
|
|
105
104
|
*
|
|
106
105
|
* @summary Removes items from a collection.
|
|
@@ -109,7 +108,7 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
109
108
|
* @param {*} [options] Override http request option.
|
|
110
109
|
* @throws {RequiredError}
|
|
111
110
|
*/
|
|
112
|
-
removeFromCollection:
|
|
111
|
+
removeFromCollection: async (collectionId, ids, options = {}) => {
|
|
113
112
|
// verify required parameter 'collectionId' is not null or undefined
|
|
114
113
|
assertParamExists('removeFromCollection', 'collectionId', collectionId);
|
|
115
114
|
// verify required parameter 'ids' is not null or undefined
|
|
@@ -122,22 +121,22 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
122
121
|
if (configuration) {
|
|
123
122
|
baseOptions = configuration.baseOptions;
|
|
124
123
|
}
|
|
125
|
-
const localVarRequestOptions =
|
|
124
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
126
125
|
const localVarHeaderParameter = {};
|
|
127
126
|
const localVarQueryParameter = {};
|
|
128
127
|
// authentication CustomAuthentication required
|
|
129
|
-
|
|
128
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
130
129
|
if (ids) {
|
|
131
130
|
localVarQueryParameter['ids'] = ids;
|
|
132
131
|
}
|
|
133
132
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
134
133
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
-
localVarRequestOptions.headers =
|
|
134
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
136
135
|
return {
|
|
137
136
|
url: toPathString(localVarUrlObj),
|
|
138
137
|
options: localVarRequestOptions,
|
|
139
138
|
};
|
|
140
|
-
}
|
|
139
|
+
},
|
|
141
140
|
};
|
|
142
141
|
};
|
|
143
142
|
/**
|
|
@@ -155,11 +154,9 @@ const CollectionApiFp = function (configuration) {
|
|
|
155
154
|
* @param {*} [options] Override http request option.
|
|
156
155
|
* @throws {RequiredError}
|
|
157
156
|
*/
|
|
158
|
-
addToCollection(collectionId, ids, options) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
162
|
-
});
|
|
157
|
+
async addToCollection(collectionId, ids, options) {
|
|
158
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addToCollection(collectionId, ids, options);
|
|
159
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
163
160
|
},
|
|
164
161
|
/**
|
|
165
162
|
*
|
|
@@ -171,11 +168,9 @@ const CollectionApiFp = function (configuration) {
|
|
|
171
168
|
* @param {*} [options] Override http request option.
|
|
172
169
|
* @throws {RequiredError}
|
|
173
170
|
*/
|
|
174
|
-
createCollection(name, ids, parentId, isLocked, options) {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
178
|
-
});
|
|
171
|
+
async createCollection(name, ids, parentId, isLocked, options) {
|
|
172
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCollection(name, ids, parentId, isLocked, options);
|
|
173
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
179
174
|
},
|
|
180
175
|
/**
|
|
181
176
|
*
|
|
@@ -185,11 +180,9 @@ const CollectionApiFp = function (configuration) {
|
|
|
185
180
|
* @param {*} [options] Override http request option.
|
|
186
181
|
* @throws {RequiredError}
|
|
187
182
|
*/
|
|
188
|
-
removeFromCollection(collectionId, ids, options) {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
192
|
-
});
|
|
183
|
+
async removeFromCollection(collectionId, ids, options) {
|
|
184
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeFromCollection(collectionId, ids, options);
|
|
185
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
193
186
|
},
|
|
194
187
|
};
|
|
195
188
|
};
|