@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 StartupApiAxiosParamCreator = function (configuration) {
|
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
completeWizard:
|
|
29
|
+
completeWizard: async (options = {}) => {
|
|
31
30
|
const localVarPath = `/Startup/Complete`;
|
|
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,26 +34,26 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
35
34
|
if (configuration) {
|
|
36
35
|
baseOptions = configuration.baseOptions;
|
|
37
36
|
}
|
|
38
|
-
const localVarRequestOptions =
|
|
37
|
+
const localVarRequestOptions = { method: 'POST', ...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 first user.
|
|
54
53
|
* @param {*} [options] Override http request option.
|
|
55
54
|
* @throws {RequiredError}
|
|
56
55
|
*/
|
|
57
|
-
getFirstUser:
|
|
56
|
+
getFirstUser: async (options = {}) => {
|
|
58
57
|
const localVarPath = `/Startup/User`;
|
|
59
58
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
60
59
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -62,26 +61,26 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
62
61
|
if (configuration) {
|
|
63
62
|
baseOptions = configuration.baseOptions;
|
|
64
63
|
}
|
|
65
|
-
const localVarRequestOptions =
|
|
64
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
66
65
|
const localVarHeaderParameter = {};
|
|
67
66
|
const localVarQueryParameter = {};
|
|
68
67
|
// authentication CustomAuthentication required
|
|
69
|
-
|
|
68
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
70
69
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
70
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
-
localVarRequestOptions.headers =
|
|
71
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
73
72
|
return {
|
|
74
73
|
url: toPathString(localVarUrlObj),
|
|
75
74
|
options: localVarRequestOptions,
|
|
76
75
|
};
|
|
77
|
-
}
|
|
76
|
+
},
|
|
78
77
|
/**
|
|
79
78
|
*
|
|
80
79
|
* @summary Gets the first user.
|
|
81
80
|
* @param {*} [options] Override http request option.
|
|
82
81
|
* @throws {RequiredError}
|
|
83
82
|
*/
|
|
84
|
-
getFirstUser2:
|
|
83
|
+
getFirstUser2: async (options = {}) => {
|
|
85
84
|
const localVarPath = `/Startup/FirstUser`;
|
|
86
85
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
87
86
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -89,26 +88,26 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
89
88
|
if (configuration) {
|
|
90
89
|
baseOptions = configuration.baseOptions;
|
|
91
90
|
}
|
|
92
|
-
const localVarRequestOptions =
|
|
91
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
93
92
|
const localVarHeaderParameter = {};
|
|
94
93
|
const localVarQueryParameter = {};
|
|
95
94
|
// authentication CustomAuthentication required
|
|
96
|
-
|
|
95
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
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
|
return {
|
|
101
100
|
url: toPathString(localVarUrlObj),
|
|
102
101
|
options: localVarRequestOptions,
|
|
103
102
|
};
|
|
104
|
-
}
|
|
103
|
+
},
|
|
105
104
|
/**
|
|
106
105
|
*
|
|
107
106
|
* @summary Gets the initial startup wizard configuration.
|
|
108
107
|
* @param {*} [options] Override http request option.
|
|
109
108
|
* @throws {RequiredError}
|
|
110
109
|
*/
|
|
111
|
-
getStartupConfiguration:
|
|
110
|
+
getStartupConfiguration: async (options = {}) => {
|
|
112
111
|
const localVarPath = `/Startup/Configuration`;
|
|
113
112
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
114
113
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -116,19 +115,19 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
116
115
|
if (configuration) {
|
|
117
116
|
baseOptions = configuration.baseOptions;
|
|
118
117
|
}
|
|
119
|
-
const localVarRequestOptions =
|
|
118
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
120
119
|
const localVarHeaderParameter = {};
|
|
121
120
|
const localVarQueryParameter = {};
|
|
122
121
|
// authentication CustomAuthentication required
|
|
123
|
-
|
|
122
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
124
123
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
124
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
-
localVarRequestOptions.headers =
|
|
125
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
127
126
|
return {
|
|
128
127
|
url: toPathString(localVarUrlObj),
|
|
129
128
|
options: localVarRequestOptions,
|
|
130
129
|
};
|
|
131
|
-
}
|
|
130
|
+
},
|
|
132
131
|
/**
|
|
133
132
|
*
|
|
134
133
|
* @summary Sets remote access and UPnP.
|
|
@@ -136,7 +135,7 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
136
135
|
* @param {*} [options] Override http request option.
|
|
137
136
|
* @throws {RequiredError}
|
|
138
137
|
*/
|
|
139
|
-
setRemoteAccess:
|
|
138
|
+
setRemoteAccess: async (startupRemoteAccessDto, options = {}) => {
|
|
140
139
|
// verify required parameter 'startupRemoteAccessDto' is not null or undefined
|
|
141
140
|
assertParamExists('setRemoteAccess', 'startupRemoteAccessDto', startupRemoteAccessDto);
|
|
142
141
|
const localVarPath = `/Startup/RemoteAccess`;
|
|
@@ -146,21 +145,21 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
146
145
|
if (configuration) {
|
|
147
146
|
baseOptions = configuration.baseOptions;
|
|
148
147
|
}
|
|
149
|
-
const localVarRequestOptions =
|
|
148
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
150
149
|
const localVarHeaderParameter = {};
|
|
151
150
|
const localVarQueryParameter = {};
|
|
152
151
|
// authentication CustomAuthentication required
|
|
153
|
-
|
|
152
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
154
153
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
155
154
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
156
155
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
157
|
-
localVarRequestOptions.headers =
|
|
156
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
158
157
|
localVarRequestOptions.data = serializeDataIfNeeded(startupRemoteAccessDto, localVarRequestOptions, configuration);
|
|
159
158
|
return {
|
|
160
159
|
url: toPathString(localVarUrlObj),
|
|
161
160
|
options: localVarRequestOptions,
|
|
162
161
|
};
|
|
163
|
-
}
|
|
162
|
+
},
|
|
164
163
|
/**
|
|
165
164
|
*
|
|
166
165
|
* @summary Sets the initial startup wizard configuration.
|
|
@@ -168,7 +167,7 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
168
167
|
* @param {*} [options] Override http request option.
|
|
169
168
|
* @throws {RequiredError}
|
|
170
169
|
*/
|
|
171
|
-
updateInitialConfiguration:
|
|
170
|
+
updateInitialConfiguration: async (startupConfigurationDto, options = {}) => {
|
|
172
171
|
// verify required parameter 'startupConfigurationDto' is not null or undefined
|
|
173
172
|
assertParamExists('updateInitialConfiguration', 'startupConfigurationDto', startupConfigurationDto);
|
|
174
173
|
const localVarPath = `/Startup/Configuration`;
|
|
@@ -178,21 +177,21 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
178
177
|
if (configuration) {
|
|
179
178
|
baseOptions = configuration.baseOptions;
|
|
180
179
|
}
|
|
181
|
-
const localVarRequestOptions =
|
|
180
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
182
181
|
const localVarHeaderParameter = {};
|
|
183
182
|
const localVarQueryParameter = {};
|
|
184
183
|
// authentication CustomAuthentication required
|
|
185
|
-
|
|
184
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
186
185
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
187
186
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
188
187
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
189
|
-
localVarRequestOptions.headers =
|
|
188
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
190
189
|
localVarRequestOptions.data = serializeDataIfNeeded(startupConfigurationDto, localVarRequestOptions, configuration);
|
|
191
190
|
return {
|
|
192
191
|
url: toPathString(localVarUrlObj),
|
|
193
192
|
options: localVarRequestOptions,
|
|
194
193
|
};
|
|
195
|
-
}
|
|
194
|
+
},
|
|
196
195
|
/**
|
|
197
196
|
*
|
|
198
197
|
* @summary Sets the user name and password.
|
|
@@ -200,7 +199,7 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
200
199
|
* @param {*} [options] Override http request option.
|
|
201
200
|
* @throws {RequiredError}
|
|
202
201
|
*/
|
|
203
|
-
updateStartupUser:
|
|
202
|
+
updateStartupUser: async (startupUserDto, options = {}) => {
|
|
204
203
|
const localVarPath = `/Startup/User`;
|
|
205
204
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
205
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -208,21 +207,21 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
208
207
|
if (configuration) {
|
|
209
208
|
baseOptions = configuration.baseOptions;
|
|
210
209
|
}
|
|
211
|
-
const localVarRequestOptions =
|
|
210
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
212
211
|
const localVarHeaderParameter = {};
|
|
213
212
|
const localVarQueryParameter = {};
|
|
214
213
|
// authentication CustomAuthentication required
|
|
215
|
-
|
|
214
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
216
215
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
217
216
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
218
217
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
219
|
-
localVarRequestOptions.headers =
|
|
218
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
220
219
|
localVarRequestOptions.data = serializeDataIfNeeded(startupUserDto, localVarRequestOptions, configuration);
|
|
221
220
|
return {
|
|
222
221
|
url: toPathString(localVarUrlObj),
|
|
223
222
|
options: localVarRequestOptions,
|
|
224
223
|
};
|
|
225
|
-
}
|
|
224
|
+
},
|
|
226
225
|
};
|
|
227
226
|
};
|
|
228
227
|
/**
|
|
@@ -238,11 +237,9 @@ const StartupApiFp = function (configuration) {
|
|
|
238
237
|
* @param {*} [options] Override http request option.
|
|
239
238
|
* @throws {RequiredError}
|
|
240
239
|
*/
|
|
241
|
-
completeWizard(options) {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
245
|
-
});
|
|
240
|
+
async completeWizard(options) {
|
|
241
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completeWizard(options);
|
|
242
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
246
243
|
},
|
|
247
244
|
/**
|
|
248
245
|
*
|
|
@@ -250,11 +247,9 @@ const StartupApiFp = function (configuration) {
|
|
|
250
247
|
* @param {*} [options] Override http request option.
|
|
251
248
|
* @throws {RequiredError}
|
|
252
249
|
*/
|
|
253
|
-
getFirstUser(options) {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
257
|
-
});
|
|
250
|
+
async getFirstUser(options) {
|
|
251
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstUser(options);
|
|
252
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
258
253
|
},
|
|
259
254
|
/**
|
|
260
255
|
*
|
|
@@ -262,11 +257,9 @@ const StartupApiFp = function (configuration) {
|
|
|
262
257
|
* @param {*} [options] Override http request option.
|
|
263
258
|
* @throws {RequiredError}
|
|
264
259
|
*/
|
|
265
|
-
getFirstUser2(options) {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
269
|
-
});
|
|
260
|
+
async getFirstUser2(options) {
|
|
261
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstUser2(options);
|
|
262
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
270
263
|
},
|
|
271
264
|
/**
|
|
272
265
|
*
|
|
@@ -274,11 +267,9 @@ const StartupApiFp = function (configuration) {
|
|
|
274
267
|
* @param {*} [options] Override http request option.
|
|
275
268
|
* @throws {RequiredError}
|
|
276
269
|
*/
|
|
277
|
-
getStartupConfiguration(options) {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
281
|
-
});
|
|
270
|
+
async getStartupConfiguration(options) {
|
|
271
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStartupConfiguration(options);
|
|
272
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
282
273
|
},
|
|
283
274
|
/**
|
|
284
275
|
*
|
|
@@ -287,11 +278,9 @@ const StartupApiFp = function (configuration) {
|
|
|
287
278
|
* @param {*} [options] Override http request option.
|
|
288
279
|
* @throws {RequiredError}
|
|
289
280
|
*/
|
|
290
|
-
setRemoteAccess(startupRemoteAccessDto, options) {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
294
|
-
});
|
|
281
|
+
async setRemoteAccess(startupRemoteAccessDto, options) {
|
|
282
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setRemoteAccess(startupRemoteAccessDto, options);
|
|
283
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
295
284
|
},
|
|
296
285
|
/**
|
|
297
286
|
*
|
|
@@ -300,11 +289,9 @@ const StartupApiFp = function (configuration) {
|
|
|
300
289
|
* @param {*} [options] Override http request option.
|
|
301
290
|
* @throws {RequiredError}
|
|
302
291
|
*/
|
|
303
|
-
updateInitialConfiguration(startupConfigurationDto, options) {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
307
|
-
});
|
|
292
|
+
async updateInitialConfiguration(startupConfigurationDto, options) {
|
|
293
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateInitialConfiguration(startupConfigurationDto, options);
|
|
294
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
308
295
|
},
|
|
309
296
|
/**
|
|
310
297
|
*
|
|
@@ -313,11 +300,9 @@ const StartupApiFp = function (configuration) {
|
|
|
313
300
|
* @param {*} [options] Override http request option.
|
|
314
301
|
* @throws {RequiredError}
|
|
315
302
|
*/
|
|
316
|
-
updateStartupUser(startupUserDto, options) {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
320
|
-
});
|
|
303
|
+
async updateStartupUser(startupUserDto, options) {
|
|
304
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateStartupUser(startupUserDto, options);
|
|
305
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
306
|
},
|
|
322
307
|
};
|
|
323
308
|
};
|
|
@@ -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 StudiosApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
getStudio:
|
|
31
|
+
getStudio: async (name, userId, options = {}) => {
|
|
33
32
|
// verify required parameter 'name' is not null or undefined
|
|
34
33
|
assertParamExists('getStudio', 'name', name);
|
|
35
34
|
const localVarPath = `/Studios/{name}`
|
|
@@ -40,22 +39,22 @@ const StudiosApiAxiosParamCreator = 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 studios from a given item, folder, or the entire library.
|
|
@@ -79,7 +78,7 @@ const StudiosApiAxiosParamCreator = function (configuration) {
|
|
|
79
78
|
* @param {*} [options] Override http request option.
|
|
80
79
|
* @throws {RequiredError}
|
|
81
80
|
*/
|
|
82
|
-
getStudios:
|
|
81
|
+
getStudios: async (startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options = {}) => {
|
|
83
82
|
const localVarPath = `/Studios`;
|
|
84
83
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
85
84
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -87,11 +86,11 @@ const StudiosApiAxiosParamCreator = function (configuration) {
|
|
|
87
86
|
if (configuration) {
|
|
88
87
|
baseOptions = configuration.baseOptions;
|
|
89
88
|
}
|
|
90
|
-
const localVarRequestOptions =
|
|
89
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
91
90
|
const localVarHeaderParameter = {};
|
|
92
91
|
const localVarQueryParameter = {};
|
|
93
92
|
// authentication CustomAuthentication required
|
|
94
|
-
|
|
93
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
95
94
|
if (startIndex !== undefined) {
|
|
96
95
|
localVarQueryParameter['startIndex'] = startIndex;
|
|
97
96
|
}
|
|
@@ -145,12 +144,12 @@ const StudiosApiAxiosParamCreator = function (configuration) {
|
|
|
145
144
|
}
|
|
146
145
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
147
146
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
148
|
-
localVarRequestOptions.headers =
|
|
147
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
149
148
|
return {
|
|
150
149
|
url: toPathString(localVarUrlObj),
|
|
151
150
|
options: localVarRequestOptions,
|
|
152
151
|
};
|
|
153
|
-
}
|
|
152
|
+
},
|
|
154
153
|
};
|
|
155
154
|
};
|
|
156
155
|
/**
|
|
@@ -168,11 +167,9 @@ const StudiosApiFp = function (configuration) {
|
|
|
168
167
|
* @param {*} [options] Override http request option.
|
|
169
168
|
* @throws {RequiredError}
|
|
170
169
|
*/
|
|
171
|
-
getStudio(name, userId, options) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
175
|
-
});
|
|
170
|
+
async getStudio(name, userId, options) {
|
|
171
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStudio(name, userId, options);
|
|
172
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
176
173
|
},
|
|
177
174
|
/**
|
|
178
175
|
*
|
|
@@ -197,11 +194,9 @@ const StudiosApiFp = function (configuration) {
|
|
|
197
194
|
* @param {*} [options] Override http request option.
|
|
198
195
|
* @throws {RequiredError}
|
|
199
196
|
*/
|
|
200
|
-
getStudios(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
204
|
-
});
|
|
197
|
+
async getStudios(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) {
|
|
198
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStudios(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options);
|
|
199
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
205
200
|
},
|
|
206
201
|
};
|
|
207
202
|
};
|