@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 SystemApiAxiosParamCreator = function (configuration) {
|
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
getEndpointInfo:
|
|
29
|
+
getEndpointInfo: async (options = {}) => {
|
|
31
30
|
const localVarPath = `/System/Endpoint`;
|
|
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 SystemApiAxiosParamCreator = 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 a log file.
|
|
@@ -55,7 +54,7 @@ const SystemApiAxiosParamCreator = function (configuration) {
|
|
|
55
54
|
* @param {*} [options] Override http request option.
|
|
56
55
|
* @throws {RequiredError}
|
|
57
56
|
*/
|
|
58
|
-
getLogFile:
|
|
57
|
+
getLogFile: async (name, options = {}) => {
|
|
59
58
|
// verify required parameter 'name' is not null or undefined
|
|
60
59
|
assertParamExists('getLogFile', 'name', name);
|
|
61
60
|
const localVarPath = `/System/Logs/Log`;
|
|
@@ -65,29 +64,29 @@ const SystemApiAxiosParamCreator = function (configuration) {
|
|
|
65
64
|
if (configuration) {
|
|
66
65
|
baseOptions = configuration.baseOptions;
|
|
67
66
|
}
|
|
68
|
-
const localVarRequestOptions =
|
|
67
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
69
68
|
const localVarHeaderParameter = {};
|
|
70
69
|
const localVarQueryParameter = {};
|
|
71
70
|
// authentication CustomAuthentication required
|
|
72
|
-
|
|
71
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
73
72
|
if (name !== undefined) {
|
|
74
73
|
localVarQueryParameter['name'] = name;
|
|
75
74
|
}
|
|
76
75
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
76
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
|
-
localVarRequestOptions.headers =
|
|
77
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
79
78
|
return {
|
|
80
79
|
url: toPathString(localVarUrlObj),
|
|
81
80
|
options: localVarRequestOptions,
|
|
82
81
|
};
|
|
83
|
-
}
|
|
82
|
+
},
|
|
84
83
|
/**
|
|
85
84
|
*
|
|
86
85
|
* @summary Pings the system.
|
|
87
86
|
* @param {*} [options] Override http request option.
|
|
88
87
|
* @throws {RequiredError}
|
|
89
88
|
*/
|
|
90
|
-
getPingSystem:
|
|
89
|
+
getPingSystem: async (options = {}) => {
|
|
91
90
|
const localVarPath = `/System/Ping`;
|
|
92
91
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
93
92
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -95,24 +94,24 @@ const SystemApiAxiosParamCreator = function (configuration) {
|
|
|
95
94
|
if (configuration) {
|
|
96
95
|
baseOptions = configuration.baseOptions;
|
|
97
96
|
}
|
|
98
|
-
const localVarRequestOptions =
|
|
97
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
99
98
|
const localVarHeaderParameter = {};
|
|
100
99
|
const localVarQueryParameter = {};
|
|
101
100
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
102
101
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
103
|
-
localVarRequestOptions.headers =
|
|
102
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
104
103
|
return {
|
|
105
104
|
url: toPathString(localVarUrlObj),
|
|
106
105
|
options: localVarRequestOptions,
|
|
107
106
|
};
|
|
108
|
-
}
|
|
107
|
+
},
|
|
109
108
|
/**
|
|
110
109
|
*
|
|
111
110
|
* @summary Gets public information about the server.
|
|
112
111
|
* @param {*} [options] Override http request option.
|
|
113
112
|
* @throws {RequiredError}
|
|
114
113
|
*/
|
|
115
|
-
getPublicSystemInfo:
|
|
114
|
+
getPublicSystemInfo: async (options = {}) => {
|
|
116
115
|
const localVarPath = `/System/Info/Public`;
|
|
117
116
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
118
117
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -120,24 +119,24 @@ const SystemApiAxiosParamCreator = function (configuration) {
|
|
|
120
119
|
if (configuration) {
|
|
121
120
|
baseOptions = configuration.baseOptions;
|
|
122
121
|
}
|
|
123
|
-
const localVarRequestOptions =
|
|
122
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
124
123
|
const localVarHeaderParameter = {};
|
|
125
124
|
const localVarQueryParameter = {};
|
|
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
|
* @summary Gets a list of available server log files.
|
|
137
136
|
* @param {*} [options] Override http request option.
|
|
138
137
|
* @throws {RequiredError}
|
|
139
138
|
*/
|
|
140
|
-
getServerLogs:
|
|
139
|
+
getServerLogs: async (options = {}) => {
|
|
141
140
|
const localVarPath = `/System/Logs`;
|
|
142
141
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
143
142
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -145,26 +144,26 @@ const SystemApiAxiosParamCreator = function (configuration) {
|
|
|
145
144
|
if (configuration) {
|
|
146
145
|
baseOptions = configuration.baseOptions;
|
|
147
146
|
}
|
|
148
|
-
const localVarRequestOptions =
|
|
147
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
149
148
|
const localVarHeaderParameter = {};
|
|
150
149
|
const localVarQueryParameter = {};
|
|
151
150
|
// authentication CustomAuthentication required
|
|
152
|
-
|
|
151
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
153
152
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
154
153
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
155
|
-
localVarRequestOptions.headers =
|
|
154
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
156
155
|
return {
|
|
157
156
|
url: toPathString(localVarUrlObj),
|
|
158
157
|
options: localVarRequestOptions,
|
|
159
158
|
};
|
|
160
|
-
}
|
|
159
|
+
},
|
|
161
160
|
/**
|
|
162
161
|
*
|
|
163
162
|
* @summary Gets information about the server.
|
|
164
163
|
* @param {*} [options] Override http request option.
|
|
165
164
|
* @throws {RequiredError}
|
|
166
165
|
*/
|
|
167
|
-
getSystemInfo:
|
|
166
|
+
getSystemInfo: async (options = {}) => {
|
|
168
167
|
const localVarPath = `/System/Info`;
|
|
169
168
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
170
169
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -172,19 +171,19 @@ const SystemApiAxiosParamCreator = function (configuration) {
|
|
|
172
171
|
if (configuration) {
|
|
173
172
|
baseOptions = configuration.baseOptions;
|
|
174
173
|
}
|
|
175
|
-
const localVarRequestOptions =
|
|
174
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
176
175
|
const localVarHeaderParameter = {};
|
|
177
176
|
const localVarQueryParameter = {};
|
|
178
177
|
// authentication CustomAuthentication required
|
|
179
|
-
|
|
178
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
180
179
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
181
180
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
182
|
-
localVarRequestOptions.headers =
|
|
181
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
183
182
|
return {
|
|
184
183
|
url: toPathString(localVarUrlObj),
|
|
185
184
|
options: localVarRequestOptions,
|
|
186
185
|
};
|
|
187
|
-
}
|
|
186
|
+
},
|
|
188
187
|
/**
|
|
189
188
|
*
|
|
190
189
|
* @summary Gets wake on lan information.
|
|
@@ -192,7 +191,7 @@ const SystemApiAxiosParamCreator = function (configuration) {
|
|
|
192
191
|
* @deprecated
|
|
193
192
|
* @throws {RequiredError}
|
|
194
193
|
*/
|
|
195
|
-
getWakeOnLanInfo:
|
|
194
|
+
getWakeOnLanInfo: async (options = {}) => {
|
|
196
195
|
const localVarPath = `/System/WakeOnLanInfo`;
|
|
197
196
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
198
197
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -200,26 +199,26 @@ const SystemApiAxiosParamCreator = function (configuration) {
|
|
|
200
199
|
if (configuration) {
|
|
201
200
|
baseOptions = configuration.baseOptions;
|
|
202
201
|
}
|
|
203
|
-
const localVarRequestOptions =
|
|
202
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
204
203
|
const localVarHeaderParameter = {};
|
|
205
204
|
const localVarQueryParameter = {};
|
|
206
205
|
// authentication CustomAuthentication required
|
|
207
|
-
|
|
206
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
208
207
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
209
208
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
210
|
-
localVarRequestOptions.headers =
|
|
209
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
211
210
|
return {
|
|
212
211
|
url: toPathString(localVarUrlObj),
|
|
213
212
|
options: localVarRequestOptions,
|
|
214
213
|
};
|
|
215
|
-
}
|
|
214
|
+
},
|
|
216
215
|
/**
|
|
217
216
|
*
|
|
218
217
|
* @summary Pings the system.
|
|
219
218
|
* @param {*} [options] Override http request option.
|
|
220
219
|
* @throws {RequiredError}
|
|
221
220
|
*/
|
|
222
|
-
postPingSystem:
|
|
221
|
+
postPingSystem: async (options = {}) => {
|
|
223
222
|
const localVarPath = `/System/Ping`;
|
|
224
223
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
225
224
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -227,24 +226,24 @@ const SystemApiAxiosParamCreator = function (configuration) {
|
|
|
227
226
|
if (configuration) {
|
|
228
227
|
baseOptions = configuration.baseOptions;
|
|
229
228
|
}
|
|
230
|
-
const localVarRequestOptions =
|
|
229
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
231
230
|
const localVarHeaderParameter = {};
|
|
232
231
|
const localVarQueryParameter = {};
|
|
233
232
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
234
233
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
|
-
localVarRequestOptions.headers =
|
|
234
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
236
235
|
return {
|
|
237
236
|
url: toPathString(localVarUrlObj),
|
|
238
237
|
options: localVarRequestOptions,
|
|
239
238
|
};
|
|
240
|
-
}
|
|
239
|
+
},
|
|
241
240
|
/**
|
|
242
241
|
*
|
|
243
242
|
* @summary Restarts the application.
|
|
244
243
|
* @param {*} [options] Override http request option.
|
|
245
244
|
* @throws {RequiredError}
|
|
246
245
|
*/
|
|
247
|
-
restartApplication:
|
|
246
|
+
restartApplication: async (options = {}) => {
|
|
248
247
|
const localVarPath = `/System/Restart`;
|
|
249
248
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
250
249
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -252,26 +251,26 @@ const SystemApiAxiosParamCreator = function (configuration) {
|
|
|
252
251
|
if (configuration) {
|
|
253
252
|
baseOptions = configuration.baseOptions;
|
|
254
253
|
}
|
|
255
|
-
const localVarRequestOptions =
|
|
254
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
256
255
|
const localVarHeaderParameter = {};
|
|
257
256
|
const localVarQueryParameter = {};
|
|
258
257
|
// authentication CustomAuthentication required
|
|
259
|
-
|
|
258
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
260
259
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
261
260
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
262
|
-
localVarRequestOptions.headers =
|
|
261
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
263
262
|
return {
|
|
264
263
|
url: toPathString(localVarUrlObj),
|
|
265
264
|
options: localVarRequestOptions,
|
|
266
265
|
};
|
|
267
|
-
}
|
|
266
|
+
},
|
|
268
267
|
/**
|
|
269
268
|
*
|
|
270
269
|
* @summary Shuts down the application.
|
|
271
270
|
* @param {*} [options] Override http request option.
|
|
272
271
|
* @throws {RequiredError}
|
|
273
272
|
*/
|
|
274
|
-
shutdownApplication:
|
|
273
|
+
shutdownApplication: async (options = {}) => {
|
|
275
274
|
const localVarPath = `/System/Shutdown`;
|
|
276
275
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
277
276
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -279,19 +278,19 @@ const SystemApiAxiosParamCreator = function (configuration) {
|
|
|
279
278
|
if (configuration) {
|
|
280
279
|
baseOptions = configuration.baseOptions;
|
|
281
280
|
}
|
|
282
|
-
const localVarRequestOptions =
|
|
281
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
283
282
|
const localVarHeaderParameter = {};
|
|
284
283
|
const localVarQueryParameter = {};
|
|
285
284
|
// authentication CustomAuthentication required
|
|
286
|
-
|
|
285
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
287
286
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
288
287
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
289
|
-
localVarRequestOptions.headers =
|
|
288
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
290
289
|
return {
|
|
291
290
|
url: toPathString(localVarUrlObj),
|
|
292
291
|
options: localVarRequestOptions,
|
|
293
292
|
};
|
|
294
|
-
}
|
|
293
|
+
},
|
|
295
294
|
};
|
|
296
295
|
};
|
|
297
296
|
/**
|
|
@@ -307,11 +306,9 @@ const SystemApiFp = function (configuration) {
|
|
|
307
306
|
* @param {*} [options] Override http request option.
|
|
308
307
|
* @throws {RequiredError}
|
|
309
308
|
*/
|
|
310
|
-
getEndpointInfo(options) {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
314
|
-
});
|
|
309
|
+
async getEndpointInfo(options) {
|
|
310
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEndpointInfo(options);
|
|
311
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
315
312
|
},
|
|
316
313
|
/**
|
|
317
314
|
*
|
|
@@ -320,11 +317,9 @@ const SystemApiFp = function (configuration) {
|
|
|
320
317
|
* @param {*} [options] Override http request option.
|
|
321
318
|
* @throws {RequiredError}
|
|
322
319
|
*/
|
|
323
|
-
getLogFile(name, options) {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
327
|
-
});
|
|
320
|
+
async getLogFile(name, options) {
|
|
321
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLogFile(name, options);
|
|
322
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
328
323
|
},
|
|
329
324
|
/**
|
|
330
325
|
*
|
|
@@ -332,11 +327,9 @@ const SystemApiFp = function (configuration) {
|
|
|
332
327
|
* @param {*} [options] Override http request option.
|
|
333
328
|
* @throws {RequiredError}
|
|
334
329
|
*/
|
|
335
|
-
getPingSystem(options) {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
339
|
-
});
|
|
330
|
+
async getPingSystem(options) {
|
|
331
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPingSystem(options);
|
|
332
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
340
333
|
},
|
|
341
334
|
/**
|
|
342
335
|
*
|
|
@@ -344,11 +337,9 @@ const SystemApiFp = function (configuration) {
|
|
|
344
337
|
* @param {*} [options] Override http request option.
|
|
345
338
|
* @throws {RequiredError}
|
|
346
339
|
*/
|
|
347
|
-
getPublicSystemInfo(options) {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
351
|
-
});
|
|
340
|
+
async getPublicSystemInfo(options) {
|
|
341
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicSystemInfo(options);
|
|
342
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
352
343
|
},
|
|
353
344
|
/**
|
|
354
345
|
*
|
|
@@ -356,11 +347,9 @@ const SystemApiFp = function (configuration) {
|
|
|
356
347
|
* @param {*} [options] Override http request option.
|
|
357
348
|
* @throws {RequiredError}
|
|
358
349
|
*/
|
|
359
|
-
getServerLogs(options) {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
363
|
-
});
|
|
350
|
+
async getServerLogs(options) {
|
|
351
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getServerLogs(options);
|
|
352
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
353
|
},
|
|
365
354
|
/**
|
|
366
355
|
*
|
|
@@ -368,11 +357,9 @@ const SystemApiFp = function (configuration) {
|
|
|
368
357
|
* @param {*} [options] Override http request option.
|
|
369
358
|
* @throws {RequiredError}
|
|
370
359
|
*/
|
|
371
|
-
getSystemInfo(options) {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
|
-
});
|
|
360
|
+
async getSystemInfo(options) {
|
|
361
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSystemInfo(options);
|
|
362
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
376
363
|
},
|
|
377
364
|
/**
|
|
378
365
|
*
|
|
@@ -381,11 +368,9 @@ const SystemApiFp = function (configuration) {
|
|
|
381
368
|
* @deprecated
|
|
382
369
|
* @throws {RequiredError}
|
|
383
370
|
*/
|
|
384
|
-
getWakeOnLanInfo(options) {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
388
|
-
});
|
|
371
|
+
async getWakeOnLanInfo(options) {
|
|
372
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWakeOnLanInfo(options);
|
|
373
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
389
374
|
},
|
|
390
375
|
/**
|
|
391
376
|
*
|
|
@@ -393,11 +378,9 @@ const SystemApiFp = function (configuration) {
|
|
|
393
378
|
* @param {*} [options] Override http request option.
|
|
394
379
|
* @throws {RequiredError}
|
|
395
380
|
*/
|
|
396
|
-
postPingSystem(options) {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
400
|
-
});
|
|
381
|
+
async postPingSystem(options) {
|
|
382
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postPingSystem(options);
|
|
383
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
401
384
|
},
|
|
402
385
|
/**
|
|
403
386
|
*
|
|
@@ -405,11 +388,9 @@ const SystemApiFp = function (configuration) {
|
|
|
405
388
|
* @param {*} [options] Override http request option.
|
|
406
389
|
* @throws {RequiredError}
|
|
407
390
|
*/
|
|
408
|
-
restartApplication(options) {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
412
|
-
});
|
|
391
|
+
async restartApplication(options) {
|
|
392
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.restartApplication(options);
|
|
393
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
413
394
|
},
|
|
414
395
|
/**
|
|
415
396
|
*
|
|
@@ -417,11 +398,9 @@ const SystemApiFp = function (configuration) {
|
|
|
417
398
|
* @param {*} [options] Override http request option.
|
|
418
399
|
* @throws {RequiredError}
|
|
419
400
|
*/
|
|
420
|
-
shutdownApplication(options) {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
424
|
-
});
|
|
401
|
+
async shutdownApplication(options) {
|
|
402
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.shutdownApplication(options);
|
|
403
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
425
404
|
},
|
|
426
405
|
};
|
|
427
406
|
};
|
|
@@ -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, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -27,7 +26,7 @@ const TimeSyncApiAxiosParamCreator = function (configuration) {
|
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
getUtcTime:
|
|
29
|
+
getUtcTime: async (options = {}) => {
|
|
31
30
|
const localVarPath = `/GetUtcTime`;
|
|
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,17 +34,17 @@ const TimeSyncApiAxiosParamCreator = 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
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42
41
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43
|
-
localVarRequestOptions.headers =
|
|
42
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
44
43
|
return {
|
|
45
44
|
url: toPathString(localVarUrlObj),
|
|
46
45
|
options: localVarRequestOptions,
|
|
47
46
|
};
|
|
48
|
-
}
|
|
47
|
+
},
|
|
49
48
|
};
|
|
50
49
|
};
|
|
51
50
|
/**
|
|
@@ -61,11 +60,9 @@ const TimeSyncApiFp = function (configuration) {
|
|
|
61
60
|
* @param {*} [options] Override http request option.
|
|
62
61
|
* @throws {RequiredError}
|
|
63
62
|
*/
|
|
64
|
-
getUtcTime(options) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
68
|
-
});
|
|
63
|
+
async getUtcTime(options) {
|
|
64
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUtcTime(options);
|
|
65
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
69
66
|
},
|
|
70
67
|
};
|
|
71
68
|
};
|
|
@@ -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';
|
|
@@ -27,7 +26,7 @@ const TmdbApiAxiosParamCreator = function (configuration) {
|
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
tmdbClientConfiguration:
|
|
29
|
+
tmdbClientConfiguration: async (options = {}) => {
|
|
31
30
|
const localVarPath = `/Tmdb/ClientConfiguration`;
|
|
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 TmdbApiAxiosParamCreator = 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
|
/**
|
|
@@ -63,11 +62,9 @@ const TmdbApiFp = function (configuration) {
|
|
|
63
62
|
* @param {*} [options] Override http request option.
|
|
64
63
|
* @throws {RequiredError}
|
|
65
64
|
*/
|
|
66
|
-
tmdbClientConfiguration(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
70
|
-
});
|
|
65
|
+
async tmdbClientConfiguration(options) {
|
|
66
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.tmdbClientConfiguration(options);
|
|
67
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
71
68
|
},
|
|
72
69
|
};
|
|
73
70
|
};
|