@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 ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
getConfiguration:
|
|
29
|
+
getConfiguration: async (options = {}) => {
|
|
31
30
|
const localVarPath = `/System/Configuration`;
|
|
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 ConfigurationApiAxiosParamCreator = 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 default MetadataOptions object.
|
|
54
53
|
* @param {*} [options] Override http request option.
|
|
55
54
|
* @throws {RequiredError}
|
|
56
55
|
*/
|
|
57
|
-
getDefaultMetadataOptions:
|
|
56
|
+
getDefaultMetadataOptions: async (options = {}) => {
|
|
58
57
|
const localVarPath = `/System/Configuration/MetadataOptions/Default`;
|
|
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,19 +61,19 @@ const ConfigurationApiAxiosParamCreator = 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 a named configuration.
|
|
@@ -82,7 +81,7 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
82
81
|
* @param {*} [options] Override http request option.
|
|
83
82
|
* @throws {RequiredError}
|
|
84
83
|
*/
|
|
85
|
-
getNamedConfiguration:
|
|
84
|
+
getNamedConfiguration: async (key, options = {}) => {
|
|
86
85
|
// verify required parameter 'key' is not null or undefined
|
|
87
86
|
assertParamExists('getNamedConfiguration', 'key', key);
|
|
88
87
|
const localVarPath = `/System/Configuration/{key}`
|
|
@@ -93,19 +92,19 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
93
92
|
if (configuration) {
|
|
94
93
|
baseOptions = configuration.baseOptions;
|
|
95
94
|
}
|
|
96
|
-
const localVarRequestOptions =
|
|
95
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
97
96
|
const localVarHeaderParameter = {};
|
|
98
97
|
const localVarQueryParameter = {};
|
|
99
98
|
// authentication CustomAuthentication required
|
|
100
|
-
|
|
99
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
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 Updates application configuration.
|
|
@@ -113,7 +112,7 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
113
112
|
* @param {*} [options] Override http request option.
|
|
114
113
|
* @throws {RequiredError}
|
|
115
114
|
*/
|
|
116
|
-
updateConfiguration:
|
|
115
|
+
updateConfiguration: async (serverConfiguration, options = {}) => {
|
|
117
116
|
// verify required parameter 'serverConfiguration' is not null or undefined
|
|
118
117
|
assertParamExists('updateConfiguration', 'serverConfiguration', serverConfiguration);
|
|
119
118
|
const localVarPath = `/System/Configuration`;
|
|
@@ -123,21 +122,21 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
123
122
|
if (configuration) {
|
|
124
123
|
baseOptions = configuration.baseOptions;
|
|
125
124
|
}
|
|
126
|
-
const localVarRequestOptions =
|
|
125
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
127
126
|
const localVarHeaderParameter = {};
|
|
128
127
|
const localVarQueryParameter = {};
|
|
129
128
|
// authentication CustomAuthentication required
|
|
130
|
-
|
|
129
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
131
130
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
131
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
133
132
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
-
localVarRequestOptions.headers =
|
|
133
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
135
134
|
localVarRequestOptions.data = serializeDataIfNeeded(serverConfiguration, localVarRequestOptions, configuration);
|
|
136
135
|
return {
|
|
137
136
|
url: toPathString(localVarUrlObj),
|
|
138
137
|
options: localVarRequestOptions,
|
|
139
138
|
};
|
|
140
|
-
}
|
|
139
|
+
},
|
|
141
140
|
/**
|
|
142
141
|
*
|
|
143
142
|
* @summary Updates named configuration.
|
|
@@ -146,7 +145,7 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
146
145
|
* @param {*} [options] Override http request option.
|
|
147
146
|
* @throws {RequiredError}
|
|
148
147
|
*/
|
|
149
|
-
updateNamedConfiguration:
|
|
148
|
+
updateNamedConfiguration: async (key, body, options = {}) => {
|
|
150
149
|
// verify required parameter 'key' is not null or undefined
|
|
151
150
|
assertParamExists('updateNamedConfiguration', 'key', key);
|
|
152
151
|
// verify required parameter 'body' is not null or undefined
|
|
@@ -159,21 +158,21 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
159
158
|
if (configuration) {
|
|
160
159
|
baseOptions = configuration.baseOptions;
|
|
161
160
|
}
|
|
162
|
-
const localVarRequestOptions =
|
|
161
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
163
162
|
const localVarHeaderParameter = {};
|
|
164
163
|
const localVarQueryParameter = {};
|
|
165
164
|
// authentication CustomAuthentication required
|
|
166
|
-
|
|
165
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
167
166
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
168
167
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
169
168
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
170
|
-
localVarRequestOptions.headers =
|
|
169
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
171
170
|
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
172
171
|
return {
|
|
173
172
|
url: toPathString(localVarUrlObj),
|
|
174
173
|
options: localVarRequestOptions,
|
|
175
174
|
};
|
|
176
|
-
}
|
|
175
|
+
},
|
|
177
176
|
};
|
|
178
177
|
};
|
|
179
178
|
/**
|
|
@@ -189,11 +188,9 @@ const ConfigurationApiFp = function (configuration) {
|
|
|
189
188
|
* @param {*} [options] Override http request option.
|
|
190
189
|
* @throws {RequiredError}
|
|
191
190
|
*/
|
|
192
|
-
getConfiguration(options) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
196
|
-
});
|
|
191
|
+
async getConfiguration(options) {
|
|
192
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getConfiguration(options);
|
|
193
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
197
194
|
},
|
|
198
195
|
/**
|
|
199
196
|
*
|
|
@@ -201,11 +198,9 @@ const ConfigurationApiFp = function (configuration) {
|
|
|
201
198
|
* @param {*} [options] Override http request option.
|
|
202
199
|
* @throws {RequiredError}
|
|
203
200
|
*/
|
|
204
|
-
getDefaultMetadataOptions(options) {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
208
|
-
});
|
|
201
|
+
async getDefaultMetadataOptions(options) {
|
|
202
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultMetadataOptions(options);
|
|
203
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
209
204
|
},
|
|
210
205
|
/**
|
|
211
206
|
*
|
|
@@ -214,11 +209,9 @@ const ConfigurationApiFp = function (configuration) {
|
|
|
214
209
|
* @param {*} [options] Override http request option.
|
|
215
210
|
* @throws {RequiredError}
|
|
216
211
|
*/
|
|
217
|
-
getNamedConfiguration(key, options) {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
221
|
-
});
|
|
212
|
+
async getNamedConfiguration(key, options) {
|
|
213
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getNamedConfiguration(key, options);
|
|
214
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
222
215
|
},
|
|
223
216
|
/**
|
|
224
217
|
*
|
|
@@ -227,11 +220,9 @@ const ConfigurationApiFp = function (configuration) {
|
|
|
227
220
|
* @param {*} [options] Override http request option.
|
|
228
221
|
* @throws {RequiredError}
|
|
229
222
|
*/
|
|
230
|
-
updateConfiguration(serverConfiguration, options) {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
234
|
-
});
|
|
223
|
+
async updateConfiguration(serverConfiguration, options) {
|
|
224
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfiguration(serverConfiguration, options);
|
|
225
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
235
226
|
},
|
|
236
227
|
/**
|
|
237
228
|
*
|
|
@@ -241,11 +232,9 @@ const ConfigurationApiFp = function (configuration) {
|
|
|
241
232
|
* @param {*} [options] Override http request option.
|
|
242
233
|
* @throws {RequiredError}
|
|
243
234
|
*/
|
|
244
|
-
updateNamedConfiguration(key, body, options) {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
248
|
-
});
|
|
235
|
+
async updateNamedConfiguration(key, body, options) {
|
|
236
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateNamedConfiguration(key, body, options);
|
|
237
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
249
238
|
},
|
|
250
239
|
};
|
|
251
240
|
};
|
|
@@ -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';
|
|
@@ -28,7 +27,7 @@ const DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
getConfigurationPages:
|
|
30
|
+
getConfigurationPages: async (enableInMainMenu, options = {}) => {
|
|
32
31
|
const localVarPath = `/web/ConfigurationPages`;
|
|
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,22 +35,22 @@ const DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
36
35
|
if (configuration) {
|
|
37
36
|
baseOptions = configuration.baseOptions;
|
|
38
37
|
}
|
|
39
|
-
const localVarRequestOptions =
|
|
38
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
40
39
|
const localVarHeaderParameter = {};
|
|
41
40
|
const localVarQueryParameter = {};
|
|
42
41
|
// authentication CustomAuthentication required
|
|
43
|
-
|
|
42
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
44
43
|
if (enableInMainMenu !== undefined) {
|
|
45
44
|
localVarQueryParameter['enableInMainMenu'] = enableInMainMenu;
|
|
46
45
|
}
|
|
47
46
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
48
47
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
49
|
-
localVarRequestOptions.headers =
|
|
48
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
50
49
|
return {
|
|
51
50
|
url: toPathString(localVarUrlObj),
|
|
52
51
|
options: localVarRequestOptions,
|
|
53
52
|
};
|
|
54
|
-
}
|
|
53
|
+
},
|
|
55
54
|
/**
|
|
56
55
|
*
|
|
57
56
|
* @summary Gets a dashboard configuration page.
|
|
@@ -59,7 +58,7 @@ const DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
59
58
|
* @param {*} [options] Override http request option.
|
|
60
59
|
* @throws {RequiredError}
|
|
61
60
|
*/
|
|
62
|
-
getDashboardConfigurationPage:
|
|
61
|
+
getDashboardConfigurationPage: async (name, options = {}) => {
|
|
63
62
|
const localVarPath = `/web/ConfigurationPage`;
|
|
64
63
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65
64
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -67,7 +66,7 @@ const DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
67
66
|
if (configuration) {
|
|
68
67
|
baseOptions = configuration.baseOptions;
|
|
69
68
|
}
|
|
70
|
-
const localVarRequestOptions =
|
|
69
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
71
70
|
const localVarHeaderParameter = {};
|
|
72
71
|
const localVarQueryParameter = {};
|
|
73
72
|
if (name !== undefined) {
|
|
@@ -75,12 +74,12 @@ const DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
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
|
/**
|
|
@@ -97,11 +96,9 @@ const DashboardApiFp = function (configuration) {
|
|
|
97
96
|
* @param {*} [options] Override http request option.
|
|
98
97
|
* @throws {RequiredError}
|
|
99
98
|
*/
|
|
100
|
-
getConfigurationPages(enableInMainMenu, options) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
104
|
-
});
|
|
99
|
+
async getConfigurationPages(enableInMainMenu, options) {
|
|
100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getConfigurationPages(enableInMainMenu, options);
|
|
101
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
105
102
|
},
|
|
106
103
|
/**
|
|
107
104
|
*
|
|
@@ -110,11 +107,9 @@ const DashboardApiFp = function (configuration) {
|
|
|
110
107
|
* @param {*} [options] Override http request option.
|
|
111
108
|
* @throws {RequiredError}
|
|
112
109
|
*/
|
|
113
|
-
getDashboardConfigurationPage(name, options) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
117
|
-
});
|
|
110
|
+
async getDashboardConfigurationPage(name, options) {
|
|
111
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDashboardConfigurationPage(name, options);
|
|
112
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
118
113
|
},
|
|
119
114
|
};
|
|
120
115
|
};
|
|
@@ -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, serializeDataIfNeeded, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -28,7 +27,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
deleteDevice:
|
|
30
|
+
deleteDevice: async (id, options = {}) => {
|
|
32
31
|
// verify required parameter 'id' is not null or undefined
|
|
33
32
|
assertParamExists('deleteDevice', 'id', id);
|
|
34
33
|
const localVarPath = `/Devices`;
|
|
@@ -38,22 +37,22 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
38
37
|
if (configuration) {
|
|
39
38
|
baseOptions = configuration.baseOptions;
|
|
40
39
|
}
|
|
41
|
-
const localVarRequestOptions =
|
|
40
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
42
41
|
const localVarHeaderParameter = {};
|
|
43
42
|
const localVarQueryParameter = {};
|
|
44
43
|
// authentication CustomAuthentication required
|
|
45
|
-
|
|
44
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
46
45
|
if (id !== undefined) {
|
|
47
46
|
localVarQueryParameter['id'] = id;
|
|
48
47
|
}
|
|
49
48
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50
49
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51
|
-
localVarRequestOptions.headers =
|
|
50
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
52
51
|
return {
|
|
53
52
|
url: toPathString(localVarUrlObj),
|
|
54
53
|
options: localVarRequestOptions,
|
|
55
54
|
};
|
|
56
|
-
}
|
|
55
|
+
},
|
|
57
56
|
/**
|
|
58
57
|
*
|
|
59
58
|
* @summary Get info for a device.
|
|
@@ -61,7 +60,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
61
60
|
* @param {*} [options] Override http request option.
|
|
62
61
|
* @throws {RequiredError}
|
|
63
62
|
*/
|
|
64
|
-
getDeviceInfo:
|
|
63
|
+
getDeviceInfo: async (id, options = {}) => {
|
|
65
64
|
// verify required parameter 'id' is not null or undefined
|
|
66
65
|
assertParamExists('getDeviceInfo', 'id', id);
|
|
67
66
|
const localVarPath = `/Devices/Info`;
|
|
@@ -71,22 +70,22 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
71
70
|
if (configuration) {
|
|
72
71
|
baseOptions = configuration.baseOptions;
|
|
73
72
|
}
|
|
74
|
-
const localVarRequestOptions =
|
|
73
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
75
74
|
const localVarHeaderParameter = {};
|
|
76
75
|
const localVarQueryParameter = {};
|
|
77
76
|
// authentication CustomAuthentication required
|
|
78
|
-
|
|
77
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
79
78
|
if (id !== undefined) {
|
|
80
79
|
localVarQueryParameter['id'] = id;
|
|
81
80
|
}
|
|
82
81
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
82
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
-
localVarRequestOptions.headers =
|
|
83
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
85
84
|
return {
|
|
86
85
|
url: toPathString(localVarUrlObj),
|
|
87
86
|
options: localVarRequestOptions,
|
|
88
87
|
};
|
|
89
|
-
}
|
|
88
|
+
},
|
|
90
89
|
/**
|
|
91
90
|
*
|
|
92
91
|
* @summary Get options for a device.
|
|
@@ -94,7 +93,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
94
93
|
* @param {*} [options] Override http request option.
|
|
95
94
|
* @throws {RequiredError}
|
|
96
95
|
*/
|
|
97
|
-
getDeviceOptions:
|
|
96
|
+
getDeviceOptions: async (id, options = {}) => {
|
|
98
97
|
// verify required parameter 'id' is not null or undefined
|
|
99
98
|
assertParamExists('getDeviceOptions', 'id', id);
|
|
100
99
|
const localVarPath = `/Devices/Options`;
|
|
@@ -104,22 +103,22 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
104
103
|
if (configuration) {
|
|
105
104
|
baseOptions = configuration.baseOptions;
|
|
106
105
|
}
|
|
107
|
-
const localVarRequestOptions =
|
|
106
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
108
107
|
const localVarHeaderParameter = {};
|
|
109
108
|
const localVarQueryParameter = {};
|
|
110
109
|
// authentication CustomAuthentication required
|
|
111
|
-
|
|
110
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
112
111
|
if (id !== undefined) {
|
|
113
112
|
localVarQueryParameter['id'] = id;
|
|
114
113
|
}
|
|
115
114
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
116
115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
117
|
-
localVarRequestOptions.headers =
|
|
116
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
118
117
|
return {
|
|
119
118
|
url: toPathString(localVarUrlObj),
|
|
120
119
|
options: localVarRequestOptions,
|
|
121
120
|
};
|
|
122
|
-
}
|
|
121
|
+
},
|
|
123
122
|
/**
|
|
124
123
|
*
|
|
125
124
|
* @summary Get Devices.
|
|
@@ -127,7 +126,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
127
126
|
* @param {*} [options] Override http request option.
|
|
128
127
|
* @throws {RequiredError}
|
|
129
128
|
*/
|
|
130
|
-
getDevices:
|
|
129
|
+
getDevices: async (userId, options = {}) => {
|
|
131
130
|
const localVarPath = `/Devices`;
|
|
132
131
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
133
132
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -135,22 +134,22 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
135
134
|
if (configuration) {
|
|
136
135
|
baseOptions = configuration.baseOptions;
|
|
137
136
|
}
|
|
138
|
-
const localVarRequestOptions =
|
|
137
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
139
138
|
const localVarHeaderParameter = {};
|
|
140
139
|
const localVarQueryParameter = {};
|
|
141
140
|
// authentication CustomAuthentication required
|
|
142
|
-
|
|
141
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
143
142
|
if (userId !== undefined) {
|
|
144
143
|
localVarQueryParameter['userId'] = userId;
|
|
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
|
* @summary Update device options.
|
|
@@ -159,7 +158,7 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
159
158
|
* @param {*} [options] Override http request option.
|
|
160
159
|
* @throws {RequiredError}
|
|
161
160
|
*/
|
|
162
|
-
updateDeviceOptions:
|
|
161
|
+
updateDeviceOptions: async (id, deviceOptionsDto, options = {}) => {
|
|
163
162
|
// verify required parameter 'id' is not null or undefined
|
|
164
163
|
assertParamExists('updateDeviceOptions', 'id', id);
|
|
165
164
|
// verify required parameter 'deviceOptionsDto' is not null or undefined
|
|
@@ -171,24 +170,24 @@ const DevicesApiAxiosParamCreator = function (configuration) {
|
|
|
171
170
|
if (configuration) {
|
|
172
171
|
baseOptions = configuration.baseOptions;
|
|
173
172
|
}
|
|
174
|
-
const localVarRequestOptions =
|
|
173
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
175
174
|
const localVarHeaderParameter = {};
|
|
176
175
|
const localVarQueryParameter = {};
|
|
177
176
|
// authentication CustomAuthentication required
|
|
178
|
-
|
|
177
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
179
178
|
if (id !== undefined) {
|
|
180
179
|
localVarQueryParameter['id'] = id;
|
|
181
180
|
}
|
|
182
181
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
183
182
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
184
183
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
|
-
localVarRequestOptions.headers =
|
|
184
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
186
185
|
localVarRequestOptions.data = serializeDataIfNeeded(deviceOptionsDto, localVarRequestOptions, configuration);
|
|
187
186
|
return {
|
|
188
187
|
url: toPathString(localVarUrlObj),
|
|
189
188
|
options: localVarRequestOptions,
|
|
190
189
|
};
|
|
191
|
-
}
|
|
190
|
+
},
|
|
192
191
|
};
|
|
193
192
|
};
|
|
194
193
|
/**
|
|
@@ -205,11 +204,9 @@ const DevicesApiFp = function (configuration) {
|
|
|
205
204
|
* @param {*} [options] Override http request option.
|
|
206
205
|
* @throws {RequiredError}
|
|
207
206
|
*/
|
|
208
|
-
deleteDevice(id, options) {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
212
|
-
});
|
|
207
|
+
async deleteDevice(id, options) {
|
|
208
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDevice(id, options);
|
|
209
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
213
210
|
},
|
|
214
211
|
/**
|
|
215
212
|
*
|
|
@@ -218,11 +215,9 @@ const DevicesApiFp = function (configuration) {
|
|
|
218
215
|
* @param {*} [options] Override http request option.
|
|
219
216
|
* @throws {RequiredError}
|
|
220
217
|
*/
|
|
221
|
-
getDeviceInfo(id, options) {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
225
|
-
});
|
|
218
|
+
async getDeviceInfo(id, options) {
|
|
219
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeviceInfo(id, options);
|
|
220
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
226
221
|
},
|
|
227
222
|
/**
|
|
228
223
|
*
|
|
@@ -231,11 +226,9 @@ const DevicesApiFp = function (configuration) {
|
|
|
231
226
|
* @param {*} [options] Override http request option.
|
|
232
227
|
* @throws {RequiredError}
|
|
233
228
|
*/
|
|
234
|
-
getDeviceOptions(id, options) {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
238
|
-
});
|
|
229
|
+
async getDeviceOptions(id, options) {
|
|
230
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeviceOptions(id, options);
|
|
231
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
239
232
|
},
|
|
240
233
|
/**
|
|
241
234
|
*
|
|
@@ -244,11 +237,9 @@ const DevicesApiFp = function (configuration) {
|
|
|
244
237
|
* @param {*} [options] Override http request option.
|
|
245
238
|
* @throws {RequiredError}
|
|
246
239
|
*/
|
|
247
|
-
getDevices(userId, options) {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
251
|
-
});
|
|
240
|
+
async getDevices(userId, options) {
|
|
241
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDevices(userId, options);
|
|
242
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
252
243
|
},
|
|
253
244
|
/**
|
|
254
245
|
*
|
|
@@ -258,11 +249,9 @@ const DevicesApiFp = function (configuration) {
|
|
|
258
249
|
* @param {*} [options] Override http request option.
|
|
259
250
|
* @throws {RequiredError}
|
|
260
251
|
*/
|
|
261
|
-
updateDeviceOptions(id, deviceOptionsDto, options) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
265
|
-
});
|
|
252
|
+
async updateDeviceOptions(id, deviceOptionsDto, options) {
|
|
253
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeviceOptions(id, deviceOptionsDto, options);
|
|
254
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
266
255
|
},
|
|
267
256
|
};
|
|
268
257
|
};
|