@jellyfin/sdk 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +17 -22
- package/lib/generated-client/api/activity-log-api.js +8 -11
- package/lib/generated-client/api/api-key-api.js +24 -31
- package/lib/generated-client/api/artists-api.js +24 -31
- package/lib/generated-client/api/audio-api.d.ts +12 -12
- package/lib/generated-client/api/audio-api.js +28 -37
- package/lib/generated-client/api/branding-api.js +21 -28
- package/lib/generated-client/api/channels-api.js +40 -51
- package/lib/generated-client/api/client-log-api.js +8 -11
- package/lib/generated-client/api/collection-api.js +24 -31
- package/lib/generated-client/api/configuration-api.js +40 -51
- package/lib/generated-client/api/dashboard-api.js +15 -20
- package/lib/generated-client/api/devices-api.js +40 -51
- package/lib/generated-client/api/display-preferences-api.js +16 -21
- package/lib/generated-client/api/dynamic-hls-api.d.ts +27 -27
- package/lib/generated-client/api/dynamic-hls-api.js +72 -91
- package/lib/generated-client/api/environment-api.js +48 -61
- package/lib/generated-client/api/filter-api.js +16 -21
- package/lib/generated-client/api/genres-api.js +16 -21
- package/lib/generated-client/api/hls-segment-api.js +37 -48
- package/lib/generated-client/api/image-api.js +269 -344
- package/lib/generated-client/api/instant-mix-api.js +64 -81
- package/lib/generated-client/api/item-lookup-api.js +88 -111
- package/lib/generated-client/api/item-refresh-api.js +8 -11
- package/lib/generated-client/api/item-update-api.js +24 -31
- package/lib/generated-client/api/items-api.js +32 -41
- package/lib/generated-client/api/library-api.js +200 -251
- package/lib/generated-client/api/library-structure-api.js +64 -81
- package/lib/generated-client/api/live-tv-api.js +326 -409
- package/lib/generated-client/api/localization-api.js +32 -41
- package/lib/generated-client/api/lyrics-api.js +48 -61
- package/lib/generated-client/api/media-info-api.js +40 -51
- package/lib/generated-client/api/movies-api.js +8 -11
- package/lib/generated-client/api/music-genres-api.js +16 -21
- package/lib/generated-client/api/package-api.js +48 -61
- package/lib/generated-client/api/persons-api.js +16 -21
- package/lib/generated-client/api/playlists-api.js +80 -101
- package/lib/generated-client/api/playstate-api.js +72 -91
- package/lib/generated-client/api/plugins-api.js +72 -91
- package/lib/generated-client/api/quick-connect-api.js +29 -38
- package/lib/generated-client/api/remote-image-api.js +24 -31
- package/lib/generated-client/api/scheduled-tasks-api.js +40 -51
- package/lib/generated-client/api/search-api.js +8 -11
- package/lib/generated-client/api/session-api.js +128 -161
- package/lib/generated-client/api/startup-api.js +56 -71
- package/lib/generated-client/api/studios-api.js +16 -21
- package/lib/generated-client/api/subtitle-api.js +78 -99
- package/lib/generated-client/api/suggestions-api.js +8 -11
- package/lib/generated-client/api/sync-play-api.js +168 -211
- package/lib/generated-client/api/system-api.js +77 -98
- package/lib/generated-client/api/time-sync-api.js +7 -10
- package/lib/generated-client/api/tmdb-api.js +8 -11
- package/lib/generated-client/api/trailers-api.js +8 -11
- package/lib/generated-client/api/trickplay-api.js +16 -21
- package/lib/generated-client/api/tv-shows-api.js +32 -41
- package/lib/generated-client/api/universal-audio-api.js +16 -21
- package/lib/generated-client/api/user-api.js +107 -136
- package/lib/generated-client/api/user-library-api.js +80 -101
- package/lib/generated-client/api/user-views-api.js +16 -21
- package/lib/generated-client/api/video-attachments-api.js +7 -10
- package/lib/generated-client/api/videos-api.d.ts +12 -12
- package/lib/generated-client/api/videos-api.js +52 -67
- package/lib/generated-client/api/years-api.js +16 -21
- package/lib/generated-client/common.js +8 -11
- package/lib/generated-client/models/search-hint.d.ts +1 -1
- package/lib/utils/api/image-urls-api.js +16 -4
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +10 -10
- package/lib/node_modules/tslib/tslib.es6.js +0 -33
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setSearchParams, serializeDataIfNeeded, toPathString, setApiKeyToObject, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -28,7 +27,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
authenticateUserByName:
|
|
30
|
+
authenticateUserByName: async (authenticateUserByName, options = {}) => {
|
|
32
31
|
// verify required parameter 'authenticateUserByName' is not null or undefined
|
|
33
32
|
assertParamExists('authenticateUserByName', 'authenticateUserByName', authenticateUserByName);
|
|
34
33
|
const localVarPath = `/Users/AuthenticateByName`;
|
|
@@ -38,19 +37,19 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
38
37
|
if (configuration) {
|
|
39
38
|
baseOptions = configuration.baseOptions;
|
|
40
39
|
}
|
|
41
|
-
const localVarRequestOptions =
|
|
40
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
42
41
|
const localVarHeaderParameter = {};
|
|
43
42
|
const localVarQueryParameter = {};
|
|
44
43
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
45
44
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46
45
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
47
|
-
localVarRequestOptions.headers =
|
|
46
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
48
47
|
localVarRequestOptions.data = serializeDataIfNeeded(authenticateUserByName, localVarRequestOptions, configuration);
|
|
49
48
|
return {
|
|
50
49
|
url: toPathString(localVarUrlObj),
|
|
51
50
|
options: localVarRequestOptions,
|
|
52
51
|
};
|
|
53
|
-
}
|
|
52
|
+
},
|
|
54
53
|
/**
|
|
55
54
|
*
|
|
56
55
|
* @summary Authenticates a user with quick connect.
|
|
@@ -58,7 +57,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
58
57
|
* @param {*} [options] Override http request option.
|
|
59
58
|
* @throws {RequiredError}
|
|
60
59
|
*/
|
|
61
|
-
authenticateWithQuickConnect:
|
|
60
|
+
authenticateWithQuickConnect: async (quickConnectDto, options = {}) => {
|
|
62
61
|
// verify required parameter 'quickConnectDto' is not null or undefined
|
|
63
62
|
assertParamExists('authenticateWithQuickConnect', 'quickConnectDto', quickConnectDto);
|
|
64
63
|
const localVarPath = `/Users/AuthenticateWithQuickConnect`;
|
|
@@ -68,19 +67,19 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
68
67
|
if (configuration) {
|
|
69
68
|
baseOptions = configuration.baseOptions;
|
|
70
69
|
}
|
|
71
|
-
const localVarRequestOptions =
|
|
70
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
72
71
|
const localVarHeaderParameter = {};
|
|
73
72
|
const localVarQueryParameter = {};
|
|
74
73
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
75
74
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
76
75
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
77
|
-
localVarRequestOptions.headers =
|
|
76
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
78
77
|
localVarRequestOptions.data = serializeDataIfNeeded(quickConnectDto, localVarRequestOptions, configuration);
|
|
79
78
|
return {
|
|
80
79
|
url: toPathString(localVarUrlObj),
|
|
81
80
|
options: localVarRequestOptions,
|
|
82
81
|
};
|
|
83
|
-
}
|
|
82
|
+
},
|
|
84
83
|
/**
|
|
85
84
|
*
|
|
86
85
|
* @summary Creates a user.
|
|
@@ -88,7 +87,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
88
87
|
* @param {*} [options] Override http request option.
|
|
89
88
|
* @throws {RequiredError}
|
|
90
89
|
*/
|
|
91
|
-
createUserByName:
|
|
90
|
+
createUserByName: async (createUserByName, options = {}) => {
|
|
92
91
|
// verify required parameter 'createUserByName' is not null or undefined
|
|
93
92
|
assertParamExists('createUserByName', 'createUserByName', createUserByName);
|
|
94
93
|
const localVarPath = `/Users/New`;
|
|
@@ -98,21 +97,21 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
98
97
|
if (configuration) {
|
|
99
98
|
baseOptions = configuration.baseOptions;
|
|
100
99
|
}
|
|
101
|
-
const localVarRequestOptions =
|
|
100
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
102
101
|
const localVarHeaderParameter = {};
|
|
103
102
|
const localVarQueryParameter = {};
|
|
104
103
|
// authentication CustomAuthentication required
|
|
105
|
-
|
|
104
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
106
105
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
107
106
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
108
107
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
109
|
-
localVarRequestOptions.headers =
|
|
108
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
110
109
|
localVarRequestOptions.data = serializeDataIfNeeded(createUserByName, localVarRequestOptions, configuration);
|
|
111
110
|
return {
|
|
112
111
|
url: toPathString(localVarUrlObj),
|
|
113
112
|
options: localVarRequestOptions,
|
|
114
113
|
};
|
|
115
|
-
}
|
|
114
|
+
},
|
|
116
115
|
/**
|
|
117
116
|
*
|
|
118
117
|
* @summary Deletes a user.
|
|
@@ -120,7 +119,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
120
119
|
* @param {*} [options] Override http request option.
|
|
121
120
|
* @throws {RequiredError}
|
|
122
121
|
*/
|
|
123
|
-
deleteUser:
|
|
122
|
+
deleteUser: async (userId, options = {}) => {
|
|
124
123
|
// verify required parameter 'userId' is not null or undefined
|
|
125
124
|
assertParamExists('deleteUser', 'userId', userId);
|
|
126
125
|
const localVarPath = `/Users/{userId}`
|
|
@@ -131,19 +130,19 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
131
130
|
if (configuration) {
|
|
132
131
|
baseOptions = configuration.baseOptions;
|
|
133
132
|
}
|
|
134
|
-
const localVarRequestOptions =
|
|
133
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
135
134
|
const localVarHeaderParameter = {};
|
|
136
135
|
const localVarQueryParameter = {};
|
|
137
136
|
// authentication CustomAuthentication required
|
|
138
|
-
|
|
137
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
139
138
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
140
139
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
-
localVarRequestOptions.headers =
|
|
140
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
142
141
|
return {
|
|
143
142
|
url: toPathString(localVarUrlObj),
|
|
144
143
|
options: localVarRequestOptions,
|
|
145
144
|
};
|
|
146
|
-
}
|
|
145
|
+
},
|
|
147
146
|
/**
|
|
148
147
|
*
|
|
149
148
|
* @summary Initiates the forgot password process for a local user.
|
|
@@ -151,7 +150,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
151
150
|
* @param {*} [options] Override http request option.
|
|
152
151
|
* @throws {RequiredError}
|
|
153
152
|
*/
|
|
154
|
-
forgotPassword:
|
|
153
|
+
forgotPassword: async (forgotPasswordDto, options = {}) => {
|
|
155
154
|
// verify required parameter 'forgotPasswordDto' is not null or undefined
|
|
156
155
|
assertParamExists('forgotPassword', 'forgotPasswordDto', forgotPasswordDto);
|
|
157
156
|
const localVarPath = `/Users/ForgotPassword`;
|
|
@@ -161,19 +160,19 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
161
160
|
if (configuration) {
|
|
162
161
|
baseOptions = configuration.baseOptions;
|
|
163
162
|
}
|
|
164
|
-
const localVarRequestOptions =
|
|
163
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
165
164
|
const localVarHeaderParameter = {};
|
|
166
165
|
const localVarQueryParameter = {};
|
|
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(forgotPasswordDto, localVarRequestOptions, configuration);
|
|
172
171
|
return {
|
|
173
172
|
url: toPathString(localVarUrlObj),
|
|
174
173
|
options: localVarRequestOptions,
|
|
175
174
|
};
|
|
176
|
-
}
|
|
175
|
+
},
|
|
177
176
|
/**
|
|
178
177
|
*
|
|
179
178
|
* @summary Redeems a forgot password pin.
|
|
@@ -181,7 +180,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
181
180
|
* @param {*} [options] Override http request option.
|
|
182
181
|
* @throws {RequiredError}
|
|
183
182
|
*/
|
|
184
|
-
forgotPasswordPin:
|
|
183
|
+
forgotPasswordPin: async (forgotPasswordPinDto, options = {}) => {
|
|
185
184
|
// verify required parameter 'forgotPasswordPinDto' is not null or undefined
|
|
186
185
|
assertParamExists('forgotPasswordPin', 'forgotPasswordPinDto', forgotPasswordPinDto);
|
|
187
186
|
const localVarPath = `/Users/ForgotPassword/Pin`;
|
|
@@ -191,26 +190,26 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
191
190
|
if (configuration) {
|
|
192
191
|
baseOptions = configuration.baseOptions;
|
|
193
192
|
}
|
|
194
|
-
const localVarRequestOptions =
|
|
193
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
195
194
|
const localVarHeaderParameter = {};
|
|
196
195
|
const localVarQueryParameter = {};
|
|
197
196
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
198
197
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
199
198
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
|
-
localVarRequestOptions.headers =
|
|
199
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
201
200
|
localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordPinDto, localVarRequestOptions, configuration);
|
|
202
201
|
return {
|
|
203
202
|
url: toPathString(localVarUrlObj),
|
|
204
203
|
options: localVarRequestOptions,
|
|
205
204
|
};
|
|
206
|
-
}
|
|
205
|
+
},
|
|
207
206
|
/**
|
|
208
207
|
*
|
|
209
208
|
* @summary Gets the user based on auth token.
|
|
210
209
|
* @param {*} [options] Override http request option.
|
|
211
210
|
* @throws {RequiredError}
|
|
212
211
|
*/
|
|
213
|
-
getCurrentUser:
|
|
212
|
+
getCurrentUser: async (options = {}) => {
|
|
214
213
|
const localVarPath = `/Users/Me`;
|
|
215
214
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
216
215
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -218,26 +217,26 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
218
217
|
if (configuration) {
|
|
219
218
|
baseOptions = configuration.baseOptions;
|
|
220
219
|
}
|
|
221
|
-
const localVarRequestOptions =
|
|
220
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
222
221
|
const localVarHeaderParameter = {};
|
|
223
222
|
const localVarQueryParameter = {};
|
|
224
223
|
// authentication CustomAuthentication required
|
|
225
|
-
|
|
224
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
226
225
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
227
226
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
228
|
-
localVarRequestOptions.headers =
|
|
227
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
229
228
|
return {
|
|
230
229
|
url: toPathString(localVarUrlObj),
|
|
231
230
|
options: localVarRequestOptions,
|
|
232
231
|
};
|
|
233
|
-
}
|
|
232
|
+
},
|
|
234
233
|
/**
|
|
235
234
|
*
|
|
236
235
|
* @summary Gets a list of publicly visible users for display on a login screen.
|
|
237
236
|
* @param {*} [options] Override http request option.
|
|
238
237
|
* @throws {RequiredError}
|
|
239
238
|
*/
|
|
240
|
-
getPublicUsers:
|
|
239
|
+
getPublicUsers: async (options = {}) => {
|
|
241
240
|
const localVarPath = `/Users/Public`;
|
|
242
241
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
243
242
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -245,17 +244,17 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
245
244
|
if (configuration) {
|
|
246
245
|
baseOptions = configuration.baseOptions;
|
|
247
246
|
}
|
|
248
|
-
const localVarRequestOptions =
|
|
247
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
249
248
|
const localVarHeaderParameter = {};
|
|
250
249
|
const localVarQueryParameter = {};
|
|
251
250
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
252
251
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
253
|
-
localVarRequestOptions.headers =
|
|
252
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
254
253
|
return {
|
|
255
254
|
url: toPathString(localVarUrlObj),
|
|
256
255
|
options: localVarRequestOptions,
|
|
257
256
|
};
|
|
258
|
-
}
|
|
257
|
+
},
|
|
259
258
|
/**
|
|
260
259
|
*
|
|
261
260
|
* @summary Gets a user by Id.
|
|
@@ -263,7 +262,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
263
262
|
* @param {*} [options] Override http request option.
|
|
264
263
|
* @throws {RequiredError}
|
|
265
264
|
*/
|
|
266
|
-
getUserById:
|
|
265
|
+
getUserById: async (userId, options = {}) => {
|
|
267
266
|
// verify required parameter 'userId' is not null or undefined
|
|
268
267
|
assertParamExists('getUserById', 'userId', userId);
|
|
269
268
|
const localVarPath = `/Users/{userId}`
|
|
@@ -274,19 +273,19 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
274
273
|
if (configuration) {
|
|
275
274
|
baseOptions = configuration.baseOptions;
|
|
276
275
|
}
|
|
277
|
-
const localVarRequestOptions =
|
|
276
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
278
277
|
const localVarHeaderParameter = {};
|
|
279
278
|
const localVarQueryParameter = {};
|
|
280
279
|
// authentication CustomAuthentication required
|
|
281
|
-
|
|
280
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
282
281
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
283
282
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
284
|
-
localVarRequestOptions.headers =
|
|
283
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
285
284
|
return {
|
|
286
285
|
url: toPathString(localVarUrlObj),
|
|
287
286
|
options: localVarRequestOptions,
|
|
288
287
|
};
|
|
289
|
-
}
|
|
288
|
+
},
|
|
290
289
|
/**
|
|
291
290
|
*
|
|
292
291
|
* @summary Gets a list of users.
|
|
@@ -295,7 +294,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
295
294
|
* @param {*} [options] Override http request option.
|
|
296
295
|
* @throws {RequiredError}
|
|
297
296
|
*/
|
|
298
|
-
getUsers:
|
|
297
|
+
getUsers: async (isHidden, isDisabled, options = {}) => {
|
|
299
298
|
const localVarPath = `/Users`;
|
|
300
299
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
301
300
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -303,11 +302,11 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
303
302
|
if (configuration) {
|
|
304
303
|
baseOptions = configuration.baseOptions;
|
|
305
304
|
}
|
|
306
|
-
const localVarRequestOptions =
|
|
305
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
307
306
|
const localVarHeaderParameter = {};
|
|
308
307
|
const localVarQueryParameter = {};
|
|
309
308
|
// authentication CustomAuthentication required
|
|
310
|
-
|
|
309
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
311
310
|
if (isHidden !== undefined) {
|
|
312
311
|
localVarQueryParameter['isHidden'] = isHidden;
|
|
313
312
|
}
|
|
@@ -316,12 +315,12 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
316
315
|
}
|
|
317
316
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
318
317
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
319
|
-
localVarRequestOptions.headers =
|
|
318
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
320
319
|
return {
|
|
321
320
|
url: toPathString(localVarUrlObj),
|
|
322
321
|
options: localVarRequestOptions,
|
|
323
322
|
};
|
|
324
|
-
}
|
|
323
|
+
},
|
|
325
324
|
/**
|
|
326
325
|
*
|
|
327
326
|
* @summary Updates a user.
|
|
@@ -330,7 +329,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
330
329
|
* @param {*} [options] Override http request option.
|
|
331
330
|
* @throws {RequiredError}
|
|
332
331
|
*/
|
|
333
|
-
updateUser:
|
|
332
|
+
updateUser: async (userDto, userId, options = {}) => {
|
|
334
333
|
// verify required parameter 'userDto' is not null or undefined
|
|
335
334
|
assertParamExists('updateUser', 'userDto', userDto);
|
|
336
335
|
const localVarPath = `/Users`;
|
|
@@ -340,24 +339,24 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
340
339
|
if (configuration) {
|
|
341
340
|
baseOptions = configuration.baseOptions;
|
|
342
341
|
}
|
|
343
|
-
const localVarRequestOptions =
|
|
342
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
344
343
|
const localVarHeaderParameter = {};
|
|
345
344
|
const localVarQueryParameter = {};
|
|
346
345
|
// authentication CustomAuthentication required
|
|
347
|
-
|
|
346
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
348
347
|
if (userId !== undefined) {
|
|
349
348
|
localVarQueryParameter['userId'] = userId;
|
|
350
349
|
}
|
|
351
350
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
352
351
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
353
352
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
354
|
-
localVarRequestOptions.headers =
|
|
353
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
355
354
|
localVarRequestOptions.data = serializeDataIfNeeded(userDto, localVarRequestOptions, configuration);
|
|
356
355
|
return {
|
|
357
356
|
url: toPathString(localVarUrlObj),
|
|
358
357
|
options: localVarRequestOptions,
|
|
359
358
|
};
|
|
360
|
-
}
|
|
359
|
+
},
|
|
361
360
|
/**
|
|
362
361
|
*
|
|
363
362
|
* @summary Updates a user configuration.
|
|
@@ -366,7 +365,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
366
365
|
* @param {*} [options] Override http request option.
|
|
367
366
|
* @throws {RequiredError}
|
|
368
367
|
*/
|
|
369
|
-
updateUserConfiguration:
|
|
368
|
+
updateUserConfiguration: async (userConfiguration, userId, options = {}) => {
|
|
370
369
|
// verify required parameter 'userConfiguration' is not null or undefined
|
|
371
370
|
assertParamExists('updateUserConfiguration', 'userConfiguration', userConfiguration);
|
|
372
371
|
const localVarPath = `/Users/Configuration`;
|
|
@@ -376,24 +375,24 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
376
375
|
if (configuration) {
|
|
377
376
|
baseOptions = configuration.baseOptions;
|
|
378
377
|
}
|
|
379
|
-
const localVarRequestOptions =
|
|
378
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
380
379
|
const localVarHeaderParameter = {};
|
|
381
380
|
const localVarQueryParameter = {};
|
|
382
381
|
// authentication CustomAuthentication required
|
|
383
|
-
|
|
382
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
384
383
|
if (userId !== undefined) {
|
|
385
384
|
localVarQueryParameter['userId'] = userId;
|
|
386
385
|
}
|
|
387
386
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
388
387
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
389
388
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
390
|
-
localVarRequestOptions.headers =
|
|
389
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
391
390
|
localVarRequestOptions.data = serializeDataIfNeeded(userConfiguration, localVarRequestOptions, configuration);
|
|
392
391
|
return {
|
|
393
392
|
url: toPathString(localVarUrlObj),
|
|
394
393
|
options: localVarRequestOptions,
|
|
395
394
|
};
|
|
396
|
-
}
|
|
395
|
+
},
|
|
397
396
|
/**
|
|
398
397
|
*
|
|
399
398
|
* @summary Updates a user\'s password.
|
|
@@ -402,7 +401,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
402
401
|
* @param {*} [options] Override http request option.
|
|
403
402
|
* @throws {RequiredError}
|
|
404
403
|
*/
|
|
405
|
-
updateUserPassword:
|
|
404
|
+
updateUserPassword: async (updateUserPassword, userId, options = {}) => {
|
|
406
405
|
// verify required parameter 'updateUserPassword' is not null or undefined
|
|
407
406
|
assertParamExists('updateUserPassword', 'updateUserPassword', updateUserPassword);
|
|
408
407
|
const localVarPath = `/Users/Password`;
|
|
@@ -412,24 +411,24 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
412
411
|
if (configuration) {
|
|
413
412
|
baseOptions = configuration.baseOptions;
|
|
414
413
|
}
|
|
415
|
-
const localVarRequestOptions =
|
|
414
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
416
415
|
const localVarHeaderParameter = {};
|
|
417
416
|
const localVarQueryParameter = {};
|
|
418
417
|
// authentication CustomAuthentication required
|
|
419
|
-
|
|
418
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
420
419
|
if (userId !== undefined) {
|
|
421
420
|
localVarQueryParameter['userId'] = userId;
|
|
422
421
|
}
|
|
423
422
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
424
423
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
425
424
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
426
|
-
localVarRequestOptions.headers =
|
|
425
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
427
426
|
localVarRequestOptions.data = serializeDataIfNeeded(updateUserPassword, localVarRequestOptions, configuration);
|
|
428
427
|
return {
|
|
429
428
|
url: toPathString(localVarUrlObj),
|
|
430
429
|
options: localVarRequestOptions,
|
|
431
430
|
};
|
|
432
|
-
}
|
|
431
|
+
},
|
|
433
432
|
/**
|
|
434
433
|
*
|
|
435
434
|
* @summary Updates a user policy.
|
|
@@ -438,7 +437,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
438
437
|
* @param {*} [options] Override http request option.
|
|
439
438
|
* @throws {RequiredError}
|
|
440
439
|
*/
|
|
441
|
-
updateUserPolicy:
|
|
440
|
+
updateUserPolicy: async (userId, userPolicy, options = {}) => {
|
|
442
441
|
// verify required parameter 'userId' is not null or undefined
|
|
443
442
|
assertParamExists('updateUserPolicy', 'userId', userId);
|
|
444
443
|
// verify required parameter 'userPolicy' is not null or undefined
|
|
@@ -451,21 +450,21 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
451
450
|
if (configuration) {
|
|
452
451
|
baseOptions = configuration.baseOptions;
|
|
453
452
|
}
|
|
454
|
-
const localVarRequestOptions =
|
|
453
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
455
454
|
const localVarHeaderParameter = {};
|
|
456
455
|
const localVarQueryParameter = {};
|
|
457
456
|
// authentication CustomAuthentication required
|
|
458
|
-
|
|
457
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
459
458
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
460
459
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
461
460
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
462
|
-
localVarRequestOptions.headers =
|
|
461
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
463
462
|
localVarRequestOptions.data = serializeDataIfNeeded(userPolicy, localVarRequestOptions, configuration);
|
|
464
463
|
return {
|
|
465
464
|
url: toPathString(localVarUrlObj),
|
|
466
465
|
options: localVarRequestOptions,
|
|
467
466
|
};
|
|
468
|
-
}
|
|
467
|
+
},
|
|
469
468
|
};
|
|
470
469
|
};
|
|
471
470
|
/**
|
|
@@ -482,11 +481,9 @@ const UserApiFp = function (configuration) {
|
|
|
482
481
|
* @param {*} [options] Override http request option.
|
|
483
482
|
* @throws {RequiredError}
|
|
484
483
|
*/
|
|
485
|
-
authenticateUserByName(authenticateUserByName, options) {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
489
|
-
});
|
|
484
|
+
async authenticateUserByName(authenticateUserByName, options) {
|
|
485
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateUserByName(authenticateUserByName, options);
|
|
486
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
490
487
|
},
|
|
491
488
|
/**
|
|
492
489
|
*
|
|
@@ -495,11 +492,9 @@ const UserApiFp = function (configuration) {
|
|
|
495
492
|
* @param {*} [options] Override http request option.
|
|
496
493
|
* @throws {RequiredError}
|
|
497
494
|
*/
|
|
498
|
-
authenticateWithQuickConnect(quickConnectDto, options) {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
502
|
-
});
|
|
495
|
+
async authenticateWithQuickConnect(quickConnectDto, options) {
|
|
496
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateWithQuickConnect(quickConnectDto, options);
|
|
497
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
503
498
|
},
|
|
504
499
|
/**
|
|
505
500
|
*
|
|
@@ -508,11 +503,9 @@ const UserApiFp = function (configuration) {
|
|
|
508
503
|
* @param {*} [options] Override http request option.
|
|
509
504
|
* @throws {RequiredError}
|
|
510
505
|
*/
|
|
511
|
-
createUserByName(createUserByName, options) {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
515
|
-
});
|
|
506
|
+
async createUserByName(createUserByName, options) {
|
|
507
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createUserByName(createUserByName, options);
|
|
508
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
516
509
|
},
|
|
517
510
|
/**
|
|
518
511
|
*
|
|
@@ -521,11 +514,9 @@ const UserApiFp = function (configuration) {
|
|
|
521
514
|
* @param {*} [options] Override http request option.
|
|
522
515
|
* @throws {RequiredError}
|
|
523
516
|
*/
|
|
524
|
-
deleteUser(userId, options) {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
528
|
-
});
|
|
517
|
+
async deleteUser(userId, options) {
|
|
518
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(userId, options);
|
|
519
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
529
520
|
},
|
|
530
521
|
/**
|
|
531
522
|
*
|
|
@@ -534,11 +525,9 @@ const UserApiFp = function (configuration) {
|
|
|
534
525
|
* @param {*} [options] Override http request option.
|
|
535
526
|
* @throws {RequiredError}
|
|
536
527
|
*/
|
|
537
|
-
forgotPassword(forgotPasswordDto, options) {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
541
|
-
});
|
|
528
|
+
async forgotPassword(forgotPasswordDto, options) {
|
|
529
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.forgotPassword(forgotPasswordDto, options);
|
|
530
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
542
531
|
},
|
|
543
532
|
/**
|
|
544
533
|
*
|
|
@@ -547,11 +536,9 @@ const UserApiFp = function (configuration) {
|
|
|
547
536
|
* @param {*} [options] Override http request option.
|
|
548
537
|
* @throws {RequiredError}
|
|
549
538
|
*/
|
|
550
|
-
forgotPasswordPin(forgotPasswordPinDto, options) {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
554
|
-
});
|
|
539
|
+
async forgotPasswordPin(forgotPasswordPinDto, options) {
|
|
540
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.forgotPasswordPin(forgotPasswordPinDto, options);
|
|
541
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
555
542
|
},
|
|
556
543
|
/**
|
|
557
544
|
*
|
|
@@ -559,11 +546,9 @@ const UserApiFp = function (configuration) {
|
|
|
559
546
|
* @param {*} [options] Override http request option.
|
|
560
547
|
* @throws {RequiredError}
|
|
561
548
|
*/
|
|
562
|
-
getCurrentUser(options) {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
566
|
-
});
|
|
549
|
+
async getCurrentUser(options) {
|
|
550
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUser(options);
|
|
551
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
567
552
|
},
|
|
568
553
|
/**
|
|
569
554
|
*
|
|
@@ -571,11 +556,9 @@ const UserApiFp = function (configuration) {
|
|
|
571
556
|
* @param {*} [options] Override http request option.
|
|
572
557
|
* @throws {RequiredError}
|
|
573
558
|
*/
|
|
574
|
-
getPublicUsers(options) {
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
578
|
-
});
|
|
559
|
+
async getPublicUsers(options) {
|
|
560
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicUsers(options);
|
|
561
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
579
562
|
},
|
|
580
563
|
/**
|
|
581
564
|
*
|
|
@@ -584,11 +567,9 @@ const UserApiFp = function (configuration) {
|
|
|
584
567
|
* @param {*} [options] Override http request option.
|
|
585
568
|
* @throws {RequiredError}
|
|
586
569
|
*/
|
|
587
|
-
getUserById(userId, options) {
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
591
|
-
});
|
|
570
|
+
async getUserById(userId, options) {
|
|
571
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(userId, options);
|
|
572
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
592
573
|
},
|
|
593
574
|
/**
|
|
594
575
|
*
|
|
@@ -598,11 +579,9 @@ const UserApiFp = function (configuration) {
|
|
|
598
579
|
* @param {*} [options] Override http request option.
|
|
599
580
|
* @throws {RequiredError}
|
|
600
581
|
*/
|
|
601
|
-
getUsers(isHidden, isDisabled, options) {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
605
|
-
});
|
|
582
|
+
async getUsers(isHidden, isDisabled, options) {
|
|
583
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUsers(isHidden, isDisabled, options);
|
|
584
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
606
585
|
},
|
|
607
586
|
/**
|
|
608
587
|
*
|
|
@@ -612,11 +591,9 @@ const UserApiFp = function (configuration) {
|
|
|
612
591
|
* @param {*} [options] Override http request option.
|
|
613
592
|
* @throws {RequiredError}
|
|
614
593
|
*/
|
|
615
|
-
updateUser(userDto, userId, options) {
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
619
|
-
});
|
|
594
|
+
async updateUser(userDto, userId, options) {
|
|
595
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(userDto, userId, options);
|
|
596
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
620
597
|
},
|
|
621
598
|
/**
|
|
622
599
|
*
|
|
@@ -626,11 +603,9 @@ const UserApiFp = function (configuration) {
|
|
|
626
603
|
* @param {*} [options] Override http request option.
|
|
627
604
|
* @throws {RequiredError}
|
|
628
605
|
*/
|
|
629
|
-
updateUserConfiguration(userConfiguration, userId, options) {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
633
|
-
});
|
|
606
|
+
async updateUserConfiguration(userConfiguration, userId, options) {
|
|
607
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserConfiguration(userConfiguration, userId, options);
|
|
608
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
634
609
|
},
|
|
635
610
|
/**
|
|
636
611
|
*
|
|
@@ -640,11 +615,9 @@ const UserApiFp = function (configuration) {
|
|
|
640
615
|
* @param {*} [options] Override http request option.
|
|
641
616
|
* @throws {RequiredError}
|
|
642
617
|
*/
|
|
643
|
-
updateUserPassword(updateUserPassword, userId, options) {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
647
|
-
});
|
|
618
|
+
async updateUserPassword(updateUserPassword, userId, options) {
|
|
619
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserPassword(updateUserPassword, userId, options);
|
|
620
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
648
621
|
},
|
|
649
622
|
/**
|
|
650
623
|
*
|
|
@@ -654,11 +627,9 @@ const UserApiFp = function (configuration) {
|
|
|
654
627
|
* @param {*} [options] Override http request option.
|
|
655
628
|
* @throws {RequiredError}
|
|
656
629
|
*/
|
|
657
|
-
updateUserPolicy(userId, userPolicy, options) {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
661
|
-
});
|
|
630
|
+
async updateUserPolicy(userId, userPolicy, options) {
|
|
631
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserPolicy(userId, userPolicy, options);
|
|
632
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
662
633
|
},
|
|
663
634
|
};
|
|
664
635
|
};
|